Files
orca/src/shared/zcode-plan-sites.ts
T
Neil 4bdeff3ec3 chore: remove verified unused Orca code (#27175)
* chore: remove verified unused Orca code

* chore: remove translations orphaned by dead code cleanup
2026-10-10 02:01:24 -07:00

29 lines
973 B
TypeScript

import type { SecretAtRestProtection } from './secret-at-rest-protection'
/**
* GLM Coding Plan site table shared by the zcode credential store, the usage
* fetcher, and the Accounts settings section. The provider id stays `zcode`;
* the two sites are the international Z.AI console and Zhipu's mainland
* BigModel platform.
*/
export type ZcodePlanSite = 'zai' | 'bigmodel'
export const ZCODE_PLAN_SITES: readonly ZcodePlanSite[] = ['zai', 'bigmodel']
export const ZCODE_PLAN_SITE_BASE_URLS: Record<ZcodePlanSite, string> = {
zai: 'https://api.z.ai',
bigmodel: 'https://open.bigmodel.cn'
}
export const ZCODE_PLAN_SITE_CONSOLE_URLS: Record<ZcodePlanSite, string> = {
zai: 'https://z.ai/manage-apikey',
bigmodel: 'https://open.bigmodel.cn/usercenter/proj-mgmt/apikeys'
}
export type ZcodePlanCredentialsStatus = {
detailsUnavailable?: boolean
apiKeyConfigured: boolean
zcodeCliConfigured: boolean
apiKeyProtection: SecretAtRestProtection | null
}