// @generated by protoc-gen-es v2.6.0 with parameter "target=js+dts,import_extension=none,json_types=true"
// @generated from file agent/v1/credentials.proto (package agent.v1, syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
import type { Message } from "@bufbuild/protobuf";
import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";

/**
 * Describes the file agent/v1/credentials.proto.
 */
export declare const file_agent_v1_credentials: GenFile;

/**
 * @generated from message agent.v1.OAuthToken
 */
export declare type OAuthToken = Message<"agent.v1.OAuthToken"> & {
  /**
   * The OAuth token.
   *
   * @generated from field: string access_token = 1;
   */
  accessToken: string;

  /**
   * The type of the token.
   * e.g. "Bearer"
   *
   * @generated from field: string token_type = 2;
   */
  tokenType: string;

  /**
   * @generated from field: string refresh_token = 3;
   */
  refreshToken: string;

  /**
   * The expiration time of the token in seconds since epoch.
   *
   * @generated from field: int64 expires_at = 4;
   */
  expiresAt: bigint;

  /**
   * Expiration time
   *
   * @generated from field: google.protobuf.Timestamp expiry = 5;
   */
  expiry?: Timestamp;

  /**
   * The number of seconds until the token expires.
   *
   * @generated from field: int64 expires_in = 6;
   */
  expiresIn: bigint;
};

/**
 * @generated from message agent.v1.OAuthToken
 */
export declare type OAuthTokenJson = {
  /**
   * The OAuth token.
   *
   * @generated from field: string access_token = 1;
   */
  accessToken?: string;

  /**
   * The type of the token.
   * e.g. "Bearer"
   *
   * @generated from field: string token_type = 2;
   */
  tokenType?: string;

  /**
   * @generated from field: string refresh_token = 3;
   */
  refreshToken?: string;

  /**
   * The expiration time of the token in seconds since epoch.
   *
   * @generated from field: int64 expires_at = 4;
   */
  expiresAt?: string;

  /**
   * Expiration time
   *
   * @generated from field: google.protobuf.Timestamp expiry = 5;
   */
  expiry?: TimestampJson;

  /**
   * The number of seconds until the token expires.
   *
   * @generated from field: int64 expires_in = 6;
   */
  expiresIn?: string;
};

/**
 * Describes the message agent.v1.OAuthToken.
 * Use `create(OAuthTokenSchema)` to create a new message.
 */
export declare const OAuthTokenSchema: GenMessage<OAuthToken, {jsonType: OAuthTokenJson}>;
