Download packages/oauth/src/index.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 5.75 kB
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/oauth/src/index.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/oauth/src/index.ts
-
curl -L -o index.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/oauth/src/index.ts
5.75 kB
| export { | |
| DeviceCodeExpiredError, | |
| DeviceCodeTimeoutError, | |
| OAuthAccessDeniedError, | |
| OAuthConnectionError, | |
| OAuthError, | |
| OAuthUnauthorizedError, | |
| RetryableRefreshError, | |
| } from './errors'; | |
| export type { | |
| DeviceAuthorization, | |
| DeviceHeaders, | |
| OAuthFlowConfig, | |
| OAuthStorageBackend, | |
| TokenInfo, | |
| TokenInfoWire, | |
| } from './types'; | |
| export { tokenFromWire, tokenToWire } from './types'; | |
| export type { TokenStorage } from './storage'; | |
| export { FileTokenStorage } from './storage'; | |
| export type { DevicePollResult, RefreshOptions } from './oauth'; | |
| export { pollDeviceToken, refreshAccessToken, requestDeviceAuthorization } from './oauth'; | |
| export type { LoginOptions, OAuthManagerOptions, OAuthRefreshOutcome } from './oauth-manager'; | |
| export { OAuthManager, defaultRefreshThreshold, newInstanceId } from './oauth-manager'; | |
| export { | |
| assertKimiHostIdentity, | |
| createKimiDefaultHeaders, | |
| createKimiDeviceHeaders, | |
| createKimiDeviceId, | |
| createKimiUserAgent, | |
| KIMI_CODE_CUSTOM_HEADERS_ENV, | |
| KIMI_CODE_PLATFORM, | |
| parseKimiCodeCustomHeaders, | |
| readKimiDeviceId, | |
| replaceUserAgentProduct, | |
| } from './identity'; | |
| export type { KimiHostIdentity, KimiIdentityOptions } from './identity'; | |
| export { KIMI_CODE_FLOW_CONFIG } from './constants'; | |
| export { | |
| KIMI_REGION_MARKER_FILENAME, | |
| KIMI_REGION_PROFILES, | |
| kimiCdnContentUrl, | |
| kimiRegionLoginHosts, | |
| kimiRegionProfile, | |
| kimiRegionSchema, | |
| resolveKimiRegion, | |
| } from './region'; | |
| export type { KimiRegion, KimiRegionProfile, ResolveKimiRegionOptions } from './region'; | |
| export { | |
| applyManagedApiKeyProviderModels, | |
| applyManagedKimiCodeLogoutConfig, | |
| applyManagedKimiCodeConfig, | |
| clearManagedKimiCodeConfig, | |
| fetchManagedKimiCodeModels, | |
| kimiCodeEnvBaseUrl, | |
| kimiCodeEnvOAuthHost, | |
| KIMI_CODE_OAUTH_KEY, | |
| KIMI_CODE_PLATFORM_ID, | |
| KIMI_CODE_PROVIDER_NAME, | |
| ManagedKimiCodeModelsAuthError, | |
| provisionManagedKimiCodeConfig, | |
| resolveKimiCodeLoginAuth, | |
| resolveKimiCodeOAuthKey, | |
| resolveKimiCodeOAuthRef, | |
| resolveKimiCodeRuntimeAuth, | |
| toManagedModelAlias, | |
| } from './managed-kimi-code'; | |
| export type { | |
| FetchManagedKimiCodeModelsOptions, | |
| ManagedKimiCodeApplyResult, | |
| ManagedKimiCodeCleanupResult, | |
| ManagedKimiCodeProtocol, | |
| ManagedKimiEnv, | |
| ManagedKimiLoginAuth, | |
| ManagedKimiCodeModelInfo, | |
| ManagedKimiCodeProvisionResult, | |
| ManagedKimiConfigAdapter, | |
| ManagedKimiConfigShape, | |
| ManagedKimiOAuthRef, | |
| ManagedKimiOAuthRefInput, | |
| ManagedKimiRuntimeAuth, | |
| ProvisionManagedKimiCodeConfigOptions, | |
| } from './managed-kimi-code'; | |
| export { | |
| fetchManagedUserInfo, | |
| kimiCodeUserInfoUrl, | |
| managedUserInfoPhoneSchema, | |
| managedUserInfoResultSchema, | |
| managedUserInfoSchema, | |
| parseManagedUserInfoPayload, | |
| } from './managed-userinfo'; | |
| export type { | |
| FetchManagedUserInfoError, | |
| FetchManagedUserInfoResult, | |
| ManagedUserInfo, | |
| ManagedUserInfoPhone, | |
| ManagedUserInfoResult, | |
| } from './managed-userinfo'; | |
| export { | |
| boosterWalletInfoSchema, | |
| fetchManagedUsage, | |
| formatDuration, | |
| isManagedKimiCode, | |
| isManagedKimiCodeBaseUrl, | |
| kimiCodeBaseUrl, | |
| kimiCodeUsageUrl, | |
| managedQuotaEntrySchema, | |
| managedQuotaSchema, | |
| managedQuotaUsagesSchema, | |
| managedUsageResultSchema, | |
| parseManagedUsagePayload, | |
| } from './managed-usage'; | |
| export type { | |
| BoosterWalletInfo, | |
| FetchManagedUsageError, | |
| FetchManagedUsageResult, | |
| ManagedQuota, | |
| ManagedQuotaEntry, | |
| ManagedQuotaUsages, | |
| ManagedUsageResult, | |
| } from './managed-usage'; | |
| export { fetchChatTitle, kimiCodeToolsUrl } from './managed-tools'; | |
| export type { | |
| FetchChatTitleError, | |
| FetchChatTitleOk, | |
| FetchChatTitleResult, | |
| } from './managed-tools'; | |
| export { fetchSubmitFeedback, kimiCodeFeedbackUrl } from './managed-feedback'; | |
| export type { | |
| FetchSubmitFeedbackError, | |
| FetchSubmitFeedbackOk, | |
| FetchSubmitFeedbackResult, | |
| SubmitFeedbackBody, | |
| } from './managed-feedback'; | |
| export { | |
| fetchCompleteFeedbackUpload, | |
| fetchCreateFeedbackUploadUrl, | |
| kimiCodeFeedbackUploadCompleteUrl, | |
| kimiCodeFeedbackUploadUrl, | |
| } from './managed-feedback-upload'; | |
| export type { | |
| CompleteFeedbackUploadBody, | |
| CreateFeedbackUploadUrlBody, | |
| CreateFeedbackUploadUrlResponse, | |
| FetchCompleteFeedbackUploadResult, | |
| FetchCreateFeedbackUploadUrlResult, | |
| FetchFeedbackUploadError, | |
| } from './managed-feedback-upload'; | |
| export { | |
| applyOpenPlatformConfig, | |
| capabilitiesForModel, | |
| fetchOpenPlatformModels, | |
| filterModelsByPrefix, | |
| getOpenPlatformById, | |
| isOpenPlatformId, | |
| OPEN_PLATFORMS, | |
| OpenPlatformApiError, | |
| removeOpenPlatformConfig, | |
| } from './open-platform'; | |
| export type { | |
| ApplyOpenPlatformResult, | |
| OpenPlatformDefinition, | |
| } from './open-platform'; | |
| export { | |
| applyCustomRegistryEntries, | |
| applyCustomRegistryProvider, | |
| capabilitiesFromCustomEntry, | |
| CustomRegistryApiError, | |
| CUSTOM_REGISTRY_DEFAULT_CAPABILITIES, | |
| CUSTOM_REGISTRY_DEFAULT_MAX_CONTEXT, | |
| fetchCustomRegistry, | |
| removeCustomRegistryProvider, | |
| } from './custom-registry'; | |
| export type { | |
| CustomRegistryModelEntry, | |
| CustomRegistryProviderEntry, | |
| CustomRegistryProviderType, | |
| CustomRegistrySource, | |
| FetchCustomRegistryOptions, | |
| } from './custom-registry'; | |
| export { KimiOAuthToolkit, resolveKimiTokenStorageName } from './toolkit'; | |
| export type { | |
| AuthManagedUsageResult, | |
| AuthManagedUserInfoResult, | |
| AuthProviderStatus, | |
| AuthStatus, | |
| BearerTokenProvider, | |
| KimiOAuthLoginOptions, | |
| KimiOAuthLoginResult, | |
| KimiOAuthLogoutResult, | |
| KimiOAuthTokenRef, | |
| KimiOAuthToolkitOptions, | |
| } from './toolkit'; | |
| export { refreshProviderModels } from './refreshProviderModels'; | |
| export type { | |
| ProviderChange, | |
| RefreshProviderHost, | |
| RefreshProviderOptions, | |
| RefreshProviderScope, | |
| RefreshResult, | |
| } from './refreshProviderModels'; | |
| export type { OAuthTokenTransactionOptions } from './oauth-token-transaction'; | |
| export { OAuthTokenTransaction } from './oauth-token-transaction'; | |