provider/authType.ts

AionUi · packages/desktop/src/common/types/provider/authType.ts · typescript · Apache-2.0
auth

Defines stable authentication mode constants for provider configs and API clients.

// Source: https://github.com/iOfficeAI/AionUi | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Authentication modes used by provider configuration and API clients.
 * Values are persisted, so they must remain stable.
 */
export const AuthType = {
  LOGIN_WITH_GOOGLE: 'oauth-personal',
  USE_GEMINI: 'gemini-api-key',
  USE_VERTEX_AI: 'vertex-ai',
  LEGACY_CLOUD_SHELL: 'cloud-shell',
  COMPUTE_ADC: 'compute-default-credentials',
  USE_OPENAI: 'openai',
  USE_ANTHROPIC: 'anthropic',
  USE_BEDROCK: 'bedrock',
} as const;

export type AuthType = (typeof AuthType)[keyof typeof AuthType];

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key