@alm-allen/dsh-multi-provider 0.0.0-stage → 0.90.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -0
- package/LICENSE +21 -0
- package/README.md +229 -2
- package/cordis.patch.yml +6 -0
- package/icon.svg +28 -0
- package/lib/client.js +25708 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +93587 -0
- package/lib/types/client/CodexComposerQuota.d.ts +13 -0
- package/lib/types/client/CodexComposerQuota.d.ts.map +1 -0
- package/lib/types/client/CodexSubscriptionSection.d.ts +42 -0
- package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -0
- package/lib/types/client/ProviderHubSection.d.ts +21 -0
- package/lib/types/client/ProviderHubSection.d.ts.map +1 -0
- package/lib/types/client/api.d.ts +66 -0
- package/lib/types/client/api.d.ts.map +1 -0
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts +29 -0
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/claude/ClaudeSection.d.ts +12 -0
- package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -0
- package/lib/types/client/claude/locales.d.ts +489 -0
- package/lib/types/client/claude/locales.d.ts.map +1 -0
- package/lib/types/client/claude/styles.d.ts +15 -0
- package/lib/types/client/claude/styles.d.ts.map +1 -0
- package/lib/types/client/claude/useClaudeSection.d.ts +106 -0
- package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -0
- package/lib/types/client/claude-api/ClaudeApiSection.d.ts +5 -0
- package/lib/types/client/claude-api/ClaudeApiSection.d.ts.map +1 -0
- package/lib/types/client/claude-api/api.d.ts +23 -0
- package/lib/types/client/claude-api/api.d.ts.map +1 -0
- package/lib/types/client/claude-api/locales.d.ts +161 -0
- package/lib/types/client/claude-api/locales.d.ts.map +1 -0
- package/lib/types/client/claude-api/styles.d.ts +4 -0
- package/lib/types/client/claude-api/styles.d.ts.map +1 -0
- package/lib/types/client/claude-api/useClaudeApiSection.d.ts +37 -0
- package/lib/types/client/claude-api/useClaudeApiSection.d.ts.map +1 -0
- package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts +23 -0
- package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts.map +1 -0
- package/lib/types/client/cline-pass/ClinePassSection.d.ts +17 -0
- package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -0
- package/lib/types/client/cline-pass/api.d.ts +85 -0
- package/lib/types/client/cline-pass/api.d.ts.map +1 -0
- package/lib/types/client/cline-pass/locales.d.ts +911 -0
- package/lib/types/client/cline-pass/locales.d.ts.map +1 -0
- package/lib/types/client/cline-pass/styles.d.ts +7 -0
- package/lib/types/client/cline-pass/styles.d.ts.map +1 -0
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts +20 -0
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/command-code/CommandCodeSection.d.ts +8 -0
- package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -0
- package/lib/types/client/command-code/locales.d.ts +305 -0
- package/lib/types/client/command-code/locales.d.ts.map +1 -0
- package/lib/types/client/common/AccountPoolSection.d.ts +104 -0
- package/lib/types/client/common/AccountPoolSection.d.ts.map +1 -0
- package/lib/types/client/common/ComposerQuotaBadge.d.ts +63 -0
- package/lib/types/client/common/ComposerQuotaBadge.d.ts.map +1 -0
- package/lib/types/client/common/ContextWindowEditor.d.ts +71 -0
- package/lib/types/client/common/ContextWindowEditor.d.ts.map +1 -0
- package/lib/types/client/common/LineProxySection.d.ts +78 -0
- package/lib/types/client/common/LineProxySection.d.ts.map +1 -0
- package/lib/types/client/common/ModelChecklist.d.ts +29 -0
- package/lib/types/client/common/ModelChecklist.d.ts.map +1 -0
- package/lib/types/client/common/account-pool-labels.d.ts +74 -0
- package/lib/types/client/common/account-pool-labels.d.ts.map +1 -0
- package/lib/types/client/common/account-quota.d.ts +60 -0
- package/lib/types/client/common/account-quota.d.ts.map +1 -0
- package/lib/types/client/common/format.d.ts +70 -0
- package/lib/types/client/common/format.d.ts.map +1 -0
- package/lib/types/client/common/host-locale-mirror.d.ts +24 -0
- package/lib/types/client/common/host-locale-mirror.d.ts.map +1 -0
- package/lib/types/client/common/line-api.d.ts +8 -0
- package/lib/types/client/common/line-api.d.ts.map +1 -0
- package/lib/types/client/common/line-locale.d.ts +21 -0
- package/lib/types/client/common/line-locale.d.ts.map +1 -0
- package/lib/types/client/common/model-checklist-styles.d.ts +2 -0
- package/lib/types/client/common/model-checklist-styles.d.ts.map +1 -0
- package/lib/types/client/common/plugin-style.d.ts +23 -0
- package/lib/types/client/common/plugin-style.d.ts.map +1 -0
- package/lib/types/client/common/quota-follow-up.d.ts +30 -0
- package/lib/types/client/common/quota-follow-up.d.ts.map +1 -0
- package/lib/types/client/common/styles.d.ts +11 -0
- package/lib/types/client/common/styles.d.ts.map +1 -0
- package/lib/types/client/common/use-store.d.ts +3 -0
- package/lib/types/client/common/use-store.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts +27 -0
- package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts +22 -0
- package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/api.d.ts +4 -0
- package/lib/types/client/glm-coding-plan/api.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/locales.d.ts +409 -0
- package/lib/types/client/glm-coding-plan/locales.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/styles.d.ts +16 -0
- package/lib/types/client/glm-coding-plan/styles.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts +65 -0
- package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts.map +1 -0
- package/lib/types/client/hub/HubOverview.d.ts +16 -0
- package/lib/types/client/hub/HubOverview.d.ts.map +1 -0
- package/lib/types/client/hub/brand-icons.d.ts +64 -0
- package/lib/types/client/hub/brand-icons.d.ts.map +1 -0
- package/lib/types/client/hub/brand-svg.d.ts +51 -0
- package/lib/types/client/hub/brand-svg.d.ts.map +1 -0
- package/lib/types/client/hub/hub-styles.d.ts +2 -0
- package/lib/types/client/hub/hub-styles.d.ts.map +1 -0
- package/lib/types/client/hub/providers.d.ts +55 -0
- package/lib/types/client/hub/providers.d.ts.map +1 -0
- package/lib/types/client/index.d.ts +67 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts +21 -0
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts +8 -0
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -0
- package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts +16 -0
- package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +1 -0
- package/lib/types/client/kimi-code/KimiQuotaCard.d.ts +31 -0
- package/lib/types/client/kimi-code/KimiQuotaCard.d.ts.map +1 -0
- package/lib/types/client/kimi-code/labels.d.ts +66 -0
- package/lib/types/client/kimi-code/labels.d.ts.map +1 -0
- package/lib/types/client/kimi-code/locales.d.ts +640 -0
- package/lib/types/client/kimi-code/locales.d.ts.map +1 -0
- package/lib/types/client/kimi-code/staff-art.d.ts +19 -0
- package/lib/types/client/kimi-code/staff-art.d.ts.map +1 -0
- package/lib/types/client/kimi-code/styles.d.ts +4 -0
- package/lib/types/client/kimi-code/styles.d.ts.map +1 -0
- package/lib/types/client/locales-ru/account-pool.d.ts +11 -0
- package/lib/types/client/locales-ru/account-pool.d.ts.map +1 -0
- package/lib/types/client/locales-ru/claude-api.d.ts +3 -0
- package/lib/types/client/locales-ru/claude-api.d.ts.map +1 -0
- package/lib/types/client/locales-ru/claude.d.ts +3 -0
- package/lib/types/client/locales-ru/claude.d.ts.map +1 -0
- package/lib/types/client/locales-ru/cline-pass.d.ts +11 -0
- package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -0
- package/lib/types/client/locales-ru/command-code.d.ts +9 -0
- package/lib/types/client/locales-ru/command-code.d.ts.map +1 -0
- package/lib/types/client/locales-ru/glm-coding-plan.d.ts +10 -0
- package/lib/types/client/locales-ru/glm-coding-plan.d.ts.map +1 -0
- package/lib/types/client/locales-ru/hub.d.ts +3 -0
- package/lib/types/client/locales-ru/hub.d.ts.map +1 -0
- package/lib/types/client/locales-ru/index.d.ts +26 -0
- package/lib/types/client/locales-ru/index.d.ts.map +1 -0
- package/lib/types/client/locales-ru/kimi-code.d.ts +10 -0
- package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -0
- package/lib/types/client/locales-ru/minimax-code.d.ts +9 -0
- package/lib/types/client/locales-ru/minimax-code.d.ts.map +1 -0
- package/lib/types/client/locales-ru/ollama.d.ts +10 -0
- package/lib/types/client/locales-ru/ollama.d.ts.map +1 -0
- package/lib/types/client/locales-ru/opencode-go.d.ts +3 -0
- package/lib/types/client/locales-ru/opencode-go.d.ts.map +1 -0
- package/lib/types/client/locales-ru/opendesign.d.ts +10 -0
- package/lib/types/client/locales-ru/opendesign.d.ts.map +1 -0
- package/lib/types/client/locales-ru/qianwen-token-plan.d.ts +3 -0
- package/lib/types/client/locales-ru/qianwen-token-plan.d.ts.map +1 -0
- package/lib/types/client/locales-ru/qoder.d.ts +11 -0
- package/lib/types/client/locales-ru/qoder.d.ts.map +1 -0
- package/lib/types/client/locales-ru/relayone.d.ts +3 -0
- package/lib/types/client/locales-ru/relayone.d.ts.map +1 -0
- package/lib/types/client/locales-ru/step-code.d.ts +9 -0
- package/lib/types/client/locales-ru/step-code.d.ts.map +1 -0
- package/lib/types/client/locales-ru/workbuddy.d.ts +10 -0
- package/lib/types/client/locales-ru/workbuddy.d.ts.map +1 -0
- package/lib/types/client/locales.d.ts +497 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts +23 -0
- package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts +23 -0
- package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +1 -0
- package/lib/types/client/minimax-code/api.d.ts +35 -0
- package/lib/types/client/minimax-code/api.d.ts.map +1 -0
- package/lib/types/client/minimax-code/commands-contract.d.ts +46 -0
- package/lib/types/client/minimax-code/commands-contract.d.ts.map +1 -0
- package/lib/types/client/minimax-code/locales.d.ts +422 -0
- package/lib/types/client/minimax-code/locales.d.ts.map +1 -0
- package/lib/types/client/minimax-code/styles.d.ts +12 -0
- package/lib/types/client/minimax-code/styles.d.ts.map +1 -0
- package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts +164 -0
- package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts.map +1 -0
- package/lib/types/client/ollama/OllamaSection.d.ts +25 -0
- package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -0
- package/lib/types/client/ollama/api.d.ts +49 -0
- package/lib/types/client/ollama/api.d.ts.map +1 -0
- package/lib/types/client/ollama/locales.d.ts +479 -0
- package/lib/types/client/ollama/locales.d.ts.map +1 -0
- package/lib/types/client/opencode-go/OpenCodeGoQuotaCard.d.ts +20 -0
- package/lib/types/client/opencode-go/OpenCodeGoQuotaCard.d.ts.map +1 -0
- package/lib/types/client/opencode-go/OpenCodeGoSection.d.ts +8 -0
- package/lib/types/client/opencode-go/OpenCodeGoSection.d.ts.map +1 -0
- package/lib/types/client/opencode-go/locales.d.ts +210 -0
- package/lib/types/client/opencode-go/locales.d.ts.map +1 -0
- package/lib/types/client/opencode-go/styles.d.ts +10 -0
- package/lib/types/client/opencode-go/styles.d.ts.map +1 -0
- package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts +26 -0
- package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts.map +1 -0
- package/lib/types/client/opendesign/OpenDesignSection.d.ts +19 -0
- package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -0
- package/lib/types/client/opendesign/api.d.ts +45 -0
- package/lib/types/client/opendesign/api.d.ts.map +1 -0
- package/lib/types/client/opendesign/locales.d.ts +815 -0
- package/lib/types/client/opendesign/locales.d.ts.map +1 -0
- package/lib/types/client/opendesign/styles.d.ts +16 -0
- package/lib/types/client/opendesign/styles.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts +14 -0
- package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts +4 -0
- package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/api.d.ts +5 -0
- package/lib/types/client/qianwen-token-plan/api.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/locales.d.ts +158 -0
- package/lib/types/client/qianwen-token-plan/locales.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/styles.d.ts +3 -0
- package/lib/types/client/qianwen-token-plan/styles.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts +32 -0
- package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts.map +1 -0
- package/lib/types/client/qoder/QoderComposerQuota.d.ts +41 -0
- package/lib/types/client/qoder/QoderComposerQuota.d.ts.map +1 -0
- package/lib/types/client/qoder/QoderSection.d.ts +37 -0
- package/lib/types/client/qoder/QoderSection.d.ts.map +1 -0
- package/lib/types/client/qoder/api.d.ts +4 -0
- package/lib/types/client/qoder/api.d.ts.map +1 -0
- package/lib/types/client/qoder/locales.d.ts +322 -0
- package/lib/types/client/qoder/locales.d.ts.map +1 -0
- package/lib/types/client/qoder/styles.d.ts +16 -0
- package/lib/types/client/qoder/styles.d.ts.map +1 -0
- package/lib/types/client/qoder/useQoderSection.d.ts +97 -0
- package/lib/types/client/qoder/useQoderSection.d.ts.map +1 -0
- package/lib/types/client/quota.d.ts +9 -0
- package/lib/types/client/quota.d.ts.map +1 -0
- package/lib/types/client/relayone/RelayOneComposerQuota.d.ts +14 -0
- package/lib/types/client/relayone/RelayOneComposerQuota.d.ts.map +1 -0
- package/lib/types/client/relayone/RelayOneSection.d.ts +4 -0
- package/lib/types/client/relayone/RelayOneSection.d.ts.map +1 -0
- package/lib/types/client/relayone/api.d.ts +5 -0
- package/lib/types/client/relayone/api.d.ts.map +1 -0
- package/lib/types/client/relayone/locales.d.ts +221 -0
- package/lib/types/client/relayone/locales.d.ts.map +1 -0
- package/lib/types/client/relayone/quota-format.d.ts +6 -0
- package/lib/types/client/relayone/quota-format.d.ts.map +1 -0
- package/lib/types/client/relayone/styles.d.ts +3 -0
- package/lib/types/client/relayone/styles.d.ts.map +1 -0
- package/lib/types/client/relayone/useRelayOneSection.d.ts +32 -0
- package/lib/types/client/relayone/useRelayOneSection.d.ts.map +1 -0
- package/lib/types/client/step-code/StepCodeComposerQuota.d.ts +50 -0
- package/lib/types/client/step-code/StepCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/step-code/StepCodeSection.d.ts +28 -0
- package/lib/types/client/step-code/StepCodeSection.d.ts.map +1 -0
- package/lib/types/client/step-code/api.d.ts +4 -0
- package/lib/types/client/step-code/api.d.ts.map +1 -0
- package/lib/types/client/step-code/locales.d.ts +657 -0
- package/lib/types/client/step-code/locales.d.ts.map +1 -0
- package/lib/types/client/step-code/styles.d.ts +28 -0
- package/lib/types/client/step-code/styles.d.ts.map +1 -0
- package/lib/types/client/step-code/useStepCodeSection.d.ts +122 -0
- package/lib/types/client/step-code/useStepCodeSection.d.ts.map +1 -0
- package/lib/types/client/store.d.ts +19 -0
- package/lib/types/client/store.d.ts.map +1 -0
- package/lib/types/client/styles.d.ts +26 -0
- package/lib/types/client/styles.d.ts.map +1 -0
- package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts +34 -0
- package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts.map +1 -0
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts +91 -0
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -0
- package/lib/types/client/workbuddy/locales.d.ts +768 -0
- package/lib/types/client/workbuddy/locales.d.ts.map +1 -0
- package/lib/types/client/workbuddy/styles.d.ts +21 -0
- package/lib/types/client/workbuddy/styles.d.ts.map +1 -0
- package/lib/types/client/workbuddy/useWorkBuddySection.d.ts +149 -0
- package/lib/types/client/workbuddy/useWorkBuddySection.d.ts.map +1 -0
- package/lib/types/compat.d.ts +139 -0
- package/lib/types/compat.d.ts.map +1 -0
- package/lib/types/host/adapter.d.ts +43 -0
- package/lib/types/host/adapter.d.ts.map +1 -0
- package/lib/types/host/callback-server.d.ts +22 -0
- package/lib/types/host/callback-server.d.ts.map +1 -0
- package/lib/types/host/claude/account-pool.d.ts +583 -0
- package/lib/types/host/claude/account-pool.d.ts.map +1 -0
- package/lib/types/host/claude/adapter.d.ts +424 -0
- package/lib/types/host/claude/adapter.d.ts.map +1 -0
- package/lib/types/host/claude/adopt.d.ts +292 -0
- package/lib/types/host/claude/adopt.d.ts.map +1 -0
- package/lib/types/host/claude/client.d.ts +579 -0
- package/lib/types/host/claude/client.d.ts.map +1 -0
- package/lib/types/host/claude/mapper.d.ts +802 -0
- package/lib/types/host/claude/mapper.d.ts.map +1 -0
- package/lib/types/host/claude/model-catalog.d.ts +560 -0
- package/lib/types/host/claude/model-catalog.d.ts.map +1 -0
- package/lib/types/host/claude/oauth.d.ts +419 -0
- package/lib/types/host/claude/oauth.d.ts.map +1 -0
- package/lib/types/host/claude/routes.d.ts +131 -0
- package/lib/types/host/claude/routes.d.ts.map +1 -0
- package/lib/types/host/claude/token-store.d.ts +347 -0
- package/lib/types/host/claude/token-store.d.ts.map +1 -0
- package/lib/types/host/claude/types.d.ts +417 -0
- package/lib/types/host/claude/types.d.ts.map +1 -0
- package/lib/types/host/claude-api/adapter.d.ts +70 -0
- package/lib/types/host/claude-api/adapter.d.ts.map +1 -0
- package/lib/types/host/claude-api/capability-memory.d.ts +4 -0
- package/lib/types/host/claude-api/capability-memory.d.ts.map +1 -0
- package/lib/types/host/claude-api/catalog-manager.d.ts +57 -0
- package/lib/types/host/claude-api/catalog-manager.d.ts.map +1 -0
- package/lib/types/host/claude-api/client-version.d.ts +4 -0
- package/lib/types/host/claude-api/client-version.d.ts.map +1 -0
- package/lib/types/host/claude-api/client.d.ts +55 -0
- package/lib/types/host/claude-api/client.d.ts.map +1 -0
- package/lib/types/host/claude-api/compaction-instruction.d.ts +23 -0
- package/lib/types/host/claude-api/compaction-instruction.d.ts.map +1 -0
- package/lib/types/host/claude-api/compaction-store.d.ts +62 -0
- package/lib/types/host/claude-api/compaction-store.d.ts.map +1 -0
- package/lib/types/host/claude-api/compaction.d.ts +47 -0
- package/lib/types/host/claude-api/compaction.d.ts.map +1 -0
- package/lib/types/host/claude-api/mapper.d.ts +61 -0
- package/lib/types/host/claude-api/mapper.d.ts.map +1 -0
- package/lib/types/host/claude-api/model-catalog.d.ts +76 -0
- package/lib/types/host/claude-api/model-catalog.d.ts.map +1 -0
- package/lib/types/host/claude-api/routes.d.ts +22 -0
- package/lib/types/host/claude-api/routes.d.ts.map +1 -0
- package/lib/types/host/claude-api/stream.d.ts +88 -0
- package/lib/types/host/claude-api/stream.d.ts.map +1 -0
- package/lib/types/host/claude-api/token-store.d.ts +60 -0
- package/lib/types/host/claude-api/token-store.d.ts.map +1 -0
- package/lib/types/host/claude-api/types.d.ts +68 -0
- package/lib/types/host/claude-api/types.d.ts.map +1 -0
- package/lib/types/host/cline-pass/account-pool.d.ts +63 -0
- package/lib/types/host/cline-pass/account-pool.d.ts.map +1 -0
- package/lib/types/host/cline-pass/adapter.d.ts +60 -0
- package/lib/types/host/cline-pass/adapter.d.ts.map +1 -0
- package/lib/types/host/cline-pass/catalog.d.ts +49 -0
- package/lib/types/host/cline-pass/catalog.d.ts.map +1 -0
- package/lib/types/host/cline-pass/client.d.ts +109 -0
- package/lib/types/host/cline-pass/client.d.ts.map +1 -0
- package/lib/types/host/cline-pass/engine.d.ts +93 -0
- package/lib/types/host/cline-pass/engine.d.ts.map +1 -0
- package/lib/types/host/cline-pass/line.d.ts +55 -0
- package/lib/types/host/cline-pass/line.d.ts.map +1 -0
- package/lib/types/host/cline-pass/mapper.d.ts +138 -0
- package/lib/types/host/cline-pass/mapper.d.ts.map +1 -0
- package/lib/types/host/cline-pass/oauth.d.ts +134 -0
- package/lib/types/host/cline-pass/oauth.d.ts.map +1 -0
- package/lib/types/host/cline-pass/protocol.d.ts +44 -0
- package/lib/types/host/cline-pass/protocol.d.ts.map +1 -0
- package/lib/types/host/cline-pass/routes.d.ts +92 -0
- package/lib/types/host/cline-pass/routes.d.ts.map +1 -0
- package/lib/types/host/cline-pass/store.d.ts +75 -0
- package/lib/types/host/cline-pass/store.d.ts.map +1 -0
- package/lib/types/host/cline-pass/token-store.d.ts +170 -0
- package/lib/types/host/cline-pass/token-store.d.ts.map +1 -0
- package/lib/types/host/cline-pass/tools.d.ts +21 -0
- package/lib/types/host/cline-pass/tools.d.ts.map +1 -0
- package/lib/types/host/cline-pass/types.d.ts +127 -0
- package/lib/types/host/cline-pass/types.d.ts.map +1 -0
- package/lib/types/host/codex-account-pool.d.ts +223 -0
- package/lib/types/host/codex-account-pool.d.ts.map +1 -0
- package/lib/types/host/codex-adopt.d.ts +255 -0
- package/lib/types/host/codex-adopt.d.ts.map +1 -0
- package/lib/types/host/codex-catalog.d.ts +69 -0
- package/lib/types/host/codex-catalog.d.ts.map +1 -0
- package/lib/types/host/codex-fetch.d.ts +17 -0
- package/lib/types/host/codex-fetch.d.ts.map +1 -0
- package/lib/types/host/codex-file-import.d.ts +35 -0
- package/lib/types/host/codex-file-import.d.ts.map +1 -0
- package/lib/types/host/codex-identity.d.ts +132 -0
- package/lib/types/host/codex-identity.d.ts.map +1 -0
- package/lib/types/host/codex-remote-compaction.d.ts +41 -0
- package/lib/types/host/codex-remote-compaction.d.ts.map +1 -0
- package/lib/types/host/codex-search.d.ts +11 -0
- package/lib/types/host/codex-search.d.ts.map +1 -0
- package/lib/types/host/command-code/account-pool.d.ts +72 -0
- package/lib/types/host/command-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/command-code/adapter.d.ts +89 -0
- package/lib/types/host/command-code/adapter.d.ts.map +1 -0
- package/lib/types/host/command-code/client.d.ts +126 -0
- package/lib/types/host/command-code/client.d.ts.map +1 -0
- package/lib/types/host/command-code/mapper.d.ts +199 -0
- package/lib/types/host/command-code/mapper.d.ts.map +1 -0
- package/lib/types/host/command-code/model-catalog.d.ts +90 -0
- package/lib/types/host/command-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/command-code/oauth.d.ts +95 -0
- package/lib/types/host/command-code/oauth.d.ts.map +1 -0
- package/lib/types/host/command-code/plans.d.ts +40 -0
- package/lib/types/host/command-code/plans.d.ts.map +1 -0
- package/lib/types/host/command-code/routes.d.ts +44 -0
- package/lib/types/host/command-code/routes.d.ts.map +1 -0
- package/lib/types/host/command-code/token-store.d.ts +100 -0
- package/lib/types/host/command-code/token-store.d.ts.map +1 -0
- package/lib/types/host/command-code/types.d.ts +222 -0
- package/lib/types/host/command-code/types.d.ts.map +1 -0
- package/lib/types/host/common/account-pool.d.ts +584 -0
- package/lib/types/host/common/account-pool.d.ts.map +1 -0
- package/lib/types/host/common/account-quota.d.ts +44 -0
- package/lib/types/host/common/account-quota.d.ts.map +1 -0
- package/lib/types/host/common/brand-compat.d.ts +4 -0
- package/lib/types/host/common/brand-compat.d.ts.map +1 -0
- package/lib/types/host/common/cache-activity.d.ts +16 -0
- package/lib/types/host/common/cache-activity.d.ts.map +1 -0
- package/lib/types/host/common/cache-affinity.d.ts +23 -0
- package/lib/types/host/common/cache-affinity.d.ts.map +1 -0
- package/lib/types/host/common/cache-hint.d.ts +18 -0
- package/lib/types/host/common/cache-hint.d.ts.map +1 -0
- package/lib/types/host/common/capabilities.d.ts +100 -0
- package/lib/types/host/common/capabilities.d.ts.map +1 -0
- package/lib/types/host/common/catalog-snapshot.d.ts +80 -0
- package/lib/types/host/common/catalog-snapshot.d.ts.map +1 -0
- package/lib/types/host/common/claude-capability-memory.d.ts +51 -0
- package/lib/types/host/common/claude-capability-memory.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-cch.d.ts +28 -0
- package/lib/types/host/common/claude-code-cch.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-corrections.d.ts +6 -0
- package/lib/types/host/common/claude-code-corrections.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-first-party.d.ts +68 -0
- package/lib/types/host/common/claude-code-first-party.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-version.d.ts +90 -0
- package/lib/types/host/common/claude-code-version.d.ts.map +1 -0
- package/lib/types/host/common/concurrency-gate.d.ts +46 -0
- package/lib/types/host/common/concurrency-gate.d.ts.map +1 -0
- package/lib/types/host/common/context-budget-fetch.d.ts +7 -0
- package/lib/types/host/common/context-budget-fetch.d.ts.map +1 -0
- package/lib/types/host/common/context-overflow.d.ts +7 -0
- package/lib/types/host/common/context-overflow.d.ts.map +1 -0
- package/lib/types/host/common/context-window-overrides.d.ts +12 -0
- package/lib/types/host/common/context-window-overrides.d.ts.map +1 -0
- package/lib/types/host/common/credential-read-cache.d.ts +82 -0
- package/lib/types/host/common/credential-read-cache.d.ts.map +1 -0
- package/lib/types/host/common/credentials-compat.d.ts +73 -0
- package/lib/types/host/common/credentials-compat.d.ts.map +1 -0
- package/lib/types/host/common/failure-classification.d.ts +21 -0
- package/lib/types/host/common/failure-classification.d.ts.map +1 -0
- package/lib/types/host/common/file-preferences.d.ts +49 -0
- package/lib/types/host/common/file-preferences.d.ts.map +1 -0
- package/lib/types/host/common/gpt-engineering-guidance.d.ts +16 -0
- package/lib/types/host/common/gpt-engineering-guidance.d.ts.map +1 -0
- package/lib/types/host/common/home.d.ts +8 -0
- package/lib/types/host/common/home.d.ts.map +1 -0
- package/lib/types/host/common/hosted-media.d.ts +36 -0
- package/lib/types/host/common/hosted-media.d.ts.map +1 -0
- package/lib/types/host/common/i18n/en.d.ts +9 -0
- package/lib/types/host/common/i18n/en.d.ts.map +1 -0
- package/lib/types/host/common/i18n/index.d.ts +13 -0
- package/lib/types/host/common/i18n/index.d.ts.map +1 -0
- package/lib/types/host/common/i18n/provider-name.d.ts +10 -0
- package/lib/types/host/common/i18n/provider-name.d.ts.map +1 -0
- package/lib/types/host/common/i18n/ru.d.ts +10 -0
- package/lib/types/host/common/i18n/ru.d.ts.map +1 -0
- package/lib/types/host/common/i18n/runtime.d.ts +54 -0
- package/lib/types/host/common/i18n/runtime.d.ts.map +1 -0
- package/lib/types/host/common/i18n/t.d.ts +38 -0
- package/lib/types/host/common/i18n/t.d.ts.map +1 -0
- package/lib/types/host/common/i18n/zh.d.ts +172 -0
- package/lib/types/host/common/i18n/zh.d.ts.map +1 -0
- package/lib/types/host/common/idle-watchdog.d.ts +58 -0
- package/lib/types/host/common/idle-watchdog.d.ts.map +1 -0
- package/lib/types/host/common/legacy-preferences.d.ts +29 -0
- package/lib/types/host/common/legacy-preferences.d.ts.map +1 -0
- package/lib/types/host/common/llm-compat.d.ts +157 -0
- package/lib/types/host/common/llm-compat.d.ts.map +1 -0
- package/lib/types/host/common/model-request-control.d.ts +21 -0
- package/lib/types/host/common/model-request-control.d.ts.map +1 -0
- package/lib/types/host/common/orphan-tool-calls.d.ts +47 -0
- package/lib/types/host/common/orphan-tool-calls.d.ts.map +1 -0
- package/lib/types/host/common/output-reservation.d.ts +11 -0
- package/lib/types/host/common/output-reservation.d.ts.map +1 -0
- package/lib/types/host/common/pool-storage-settings.d.ts +41 -0
- package/lib/types/host/common/pool-storage-settings.d.ts.map +1 -0
- package/lib/types/host/common/pool-storage.d.ts +143 -0
- package/lib/types/host/common/pool-storage.d.ts.map +1 -0
- package/lib/types/host/common/prefix-request-coordinator.d.ts +46 -0
- package/lib/types/host/common/prefix-request-coordinator.d.ts.map +1 -0
- package/lib/types/host/common/prefix-stability.d.ts +24 -0
- package/lib/types/host/common/prefix-stability.d.ts.map +1 -0
- package/lib/types/host/common/prompt-cache-policy.d.ts +47 -0
- package/lib/types/host/common/prompt-cache-policy.d.ts.map +1 -0
- package/lib/types/host/common/prompt-estimate.d.ts +22 -0
- package/lib/types/host/common/prompt-estimate.d.ts.map +1 -0
- package/lib/types/host/common/provider-route.d.ts +56 -0
- package/lib/types/host/common/provider-route.d.ts.map +1 -0
- package/lib/types/host/common/quota-refresh.d.ts +35 -0
- package/lib/types/host/common/quota-refresh.d.ts.map +1 -0
- package/lib/types/host/common/reasoning-dialect.d.ts +24 -0
- package/lib/types/host/common/reasoning-dialect.d.ts.map +1 -0
- package/lib/types/host/common/reasoning-efforts.d.ts +2 -0
- package/lib/types/host/common/reasoning-efforts.d.ts.map +1 -0
- package/lib/types/host/common/request-diagnostics.d.ts +79 -0
- package/lib/types/host/common/request-diagnostics.d.ts.map +1 -0
- package/lib/types/host/common/request-images.d.ts +275 -0
- package/lib/types/host/common/request-images.d.ts.map +1 -0
- package/lib/types/host/common/same-origin.d.ts +30 -0
- package/lib/types/host/common/same-origin.d.ts.map +1 -0
- package/lib/types/host/common/session-cache-state.d.ts +29 -0
- package/lib/types/host/common/session-cache-state.d.ts.map +1 -0
- package/lib/types/host/common/session-effort-memory.d.ts +35 -0
- package/lib/types/host/common/session-effort-memory.d.ts.map +1 -0
- package/lib/types/host/common/settings-compat.d.ts +55 -0
- package/lib/types/host/common/settings-compat.d.ts.map +1 -0
- package/lib/types/host/common/sticky-image-budget.d.ts +10 -0
- package/lib/types/host/common/sticky-image-budget.d.ts.map +1 -0
- package/lib/types/host/common/stream-error.d.ts +93 -0
- package/lib/types/host/common/stream-error.d.ts.map +1 -0
- package/lib/types/host/common/tool-schema.d.ts +27 -0
- package/lib/types/host/common/tool-schema.d.ts.map +1 -0
- package/lib/types/host/common/video-request.d.ts +81 -0
- package/lib/types/host/common/video-request.d.ts.map +1 -0
- package/lib/types/host/common/video.d.ts +90 -0
- package/lib/types/host/common/video.d.ts.map +1 -0
- package/lib/types/host/common/webserver-compat.d.ts +7 -0
- package/lib/types/host/common/webserver-compat.d.ts.map +1 -0
- package/lib/types/host/credential-store-secret-service.d.ts +66 -0
- package/lib/types/host/credential-store-secret-service.d.ts.map +1 -0
- package/lib/types/host/fetch-address-policy.d.ts +79 -0
- package/lib/types/host/fetch-address-policy.d.ts.map +1 -0
- package/lib/types/host/fetch-configuration.d.ts +6 -0
- package/lib/types/host/fetch-configuration.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/account-pool.d.ts +152 -0
- package/lib/types/host/glm-coding-plan/account-pool.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/adapter.d.ts +169 -0
- package/lib/types/host/glm-coding-plan/adapter.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/adopt.d.ts +354 -0
- package/lib/types/host/glm-coding-plan/adopt.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts +99 -0
- package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/client.d.ts +218 -0
- package/lib/types/host/glm-coding-plan/client.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/exchange.d.ts +223 -0
- package/lib/types/host/glm-coding-plan/exchange.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts +312 -0
- package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/mapper-openai.d.ts +213 -0
- package/lib/types/host/glm-coding-plan/mapper-openai.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/model-catalog.d.ts +241 -0
- package/lib/types/host/glm-coding-plan/model-catalog.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/oauth.d.ts +211 -0
- package/lib/types/host/glm-coding-plan/oauth.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/routes.d.ts +93 -0
- package/lib/types/host/glm-coding-plan/routes.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/token-store.d.ts +202 -0
- package/lib/types/host/glm-coding-plan/token-store.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/types.d.ts +492 -0
- package/lib/types/host/glm-coding-plan/types.d.ts.map +1 -0
- package/lib/types/host/hub-overview.d.ts +32 -0
- package/lib/types/host/hub-overview.d.ts.map +1 -0
- package/lib/types/host/kimi-code/account-pool.d.ts +124 -0
- package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/kimi-code/adapter.d.ts +451 -0
- package/lib/types/host/kimi-code/adapter.d.ts.map +1 -0
- package/lib/types/host/kimi-code/api-key.d.ts +55 -0
- package/lib/types/host/kimi-code/api-key.d.ts.map +1 -0
- package/lib/types/host/kimi-code/cache-affinity.d.ts +112 -0
- package/lib/types/host/kimi-code/cache-affinity.d.ts.map +1 -0
- package/lib/types/host/kimi-code/cache-hint.d.ts +65 -0
- package/lib/types/host/kimi-code/cache-hint.d.ts.map +1 -0
- package/lib/types/host/kimi-code/client.d.ts +306 -0
- package/lib/types/host/kimi-code/client.d.ts.map +1 -0
- package/lib/types/host/kimi-code/mapper.d.ts +913 -0
- package/lib/types/host/kimi-code/mapper.d.ts.map +1 -0
- package/lib/types/host/kimi-code/media-files.d.ts +206 -0
- package/lib/types/host/kimi-code/media-files.d.ts.map +1 -0
- package/lib/types/host/kimi-code/modalities.d.ts +23 -0
- package/lib/types/host/kimi-code/modalities.d.ts.map +1 -0
- package/lib/types/host/kimi-code/model-catalog.d.ts +125 -0
- package/lib/types/host/kimi-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/kimi-code/oauth.d.ts +213 -0
- package/lib/types/host/kimi-code/oauth.d.ts.map +1 -0
- package/lib/types/host/kimi-code/routes.d.ts +52 -0
- package/lib/types/host/kimi-code/routes.d.ts.map +1 -0
- package/lib/types/host/kimi-code/session-cache-state.d.ts +156 -0
- package/lib/types/host/kimi-code/session-cache-state.d.ts.map +1 -0
- package/lib/types/host/kimi-code/token-store.d.ts +182 -0
- package/lib/types/host/kimi-code/token-store.d.ts.map +1 -0
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts +43 -0
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts.map +1 -0
- package/lib/types/host/kimi-code/types.d.ts +458 -0
- package/lib/types/host/kimi-code/types.d.ts.map +1 -0
- package/lib/types/host/kimi-code/warmup-streak.d.ts +66 -0
- package/lib/types/host/kimi-code/warmup-streak.d.ts.map +1 -0
- package/lib/types/host/minimax-code/account-pool.d.ts +309 -0
- package/lib/types/host/minimax-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/minimax-code/adapter.d.ts +207 -0
- package/lib/types/host/minimax-code/adapter.d.ts.map +1 -0
- package/lib/types/host/minimax-code/checkin-gateway.d.ts +145 -0
- package/lib/types/host/minimax-code/checkin-gateway.d.ts.map +1 -0
- package/lib/types/host/minimax-code/checkin.d.ts +207 -0
- package/lib/types/host/minimax-code/checkin.d.ts.map +1 -0
- package/lib/types/host/minimax-code/client.d.ts +242 -0
- package/lib/types/host/minimax-code/client.d.ts.map +1 -0
- package/lib/types/host/minimax-code/files-api.d.ts +117 -0
- package/lib/types/host/minimax-code/files-api.d.ts.map +1 -0
- package/lib/types/host/minimax-code/iso-bmff-duration.d.ts +84 -0
- package/lib/types/host/minimax-code/iso-bmff-duration.d.ts.map +1 -0
- package/lib/types/host/minimax-code/mapper.d.ts +351 -0
- package/lib/types/host/minimax-code/mapper.d.ts.map +1 -0
- package/lib/types/host/minimax-code/matrix-client.d.ts +168 -0
- package/lib/types/host/minimax-code/matrix-client.d.ts.map +1 -0
- package/lib/types/host/minimax-code/modalities.d.ts +20 -0
- package/lib/types/host/minimax-code/modalities.d.ts.map +1 -0
- package/lib/types/host/minimax-code/model-catalog.d.ts +227 -0
- package/lib/types/host/minimax-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/minimax-code/oauth.d.ts +220 -0
- package/lib/types/host/minimax-code/oauth.d.ts.map +1 -0
- package/lib/types/host/minimax-code/reset-card.d.ts +136 -0
- package/lib/types/host/minimax-code/reset-card.d.ts.map +1 -0
- package/lib/types/host/minimax-code/routes.d.ts +82 -0
- package/lib/types/host/minimax-code/routes.d.ts.map +1 -0
- package/lib/types/host/minimax-code/token-store.d.ts +328 -0
- package/lib/types/host/minimax-code/token-store.d.ts.map +1 -0
- package/lib/types/host/minimax-code/tool-argument-repair.d.ts +72 -0
- package/lib/types/host/minimax-code/tool-argument-repair.d.ts.map +1 -0
- package/lib/types/host/minimax-code/types.d.ts +378 -0
- package/lib/types/host/minimax-code/types.d.ts.map +1 -0
- package/lib/types/host/model-catalog.d.ts +43 -0
- package/lib/types/host/model-catalog.d.ts.map +1 -0
- package/lib/types/host/oauth-service.d.ts +242 -0
- package/lib/types/host/oauth-service.d.ts.map +1 -0
- package/lib/types/host/ollama/account-pool.d.ts +65 -0
- package/lib/types/host/ollama/account-pool.d.ts.map +1 -0
- package/lib/types/host/ollama/adapter.d.ts +90 -0
- package/lib/types/host/ollama/adapter.d.ts.map +1 -0
- package/lib/types/host/ollama/client.d.ts +166 -0
- package/lib/types/host/ollama/client.d.ts.map +1 -0
- package/lib/types/host/ollama/mapper.d.ts +49 -0
- package/lib/types/host/ollama/mapper.d.ts.map +1 -0
- package/lib/types/host/ollama/routes.d.ts +22 -0
- package/lib/types/host/ollama/routes.d.ts.map +1 -0
- package/lib/types/host/ollama/token-store.d.ts +78 -0
- package/lib/types/host/ollama/token-store.d.ts.map +1 -0
- package/lib/types/host/ollama/types.d.ts +247 -0
- package/lib/types/host/ollama/types.d.ts.map +1 -0
- package/lib/types/host/opencode-go/account-pool.d.ts +50 -0
- package/lib/types/host/opencode-go/account-pool.d.ts.map +1 -0
- package/lib/types/host/opencode-go/adapter.d.ts +38 -0
- package/lib/types/host/opencode-go/adapter.d.ts.map +1 -0
- package/lib/types/host/opencode-go/client.d.ts +13 -0
- package/lib/types/host/opencode-go/client.d.ts.map +1 -0
- package/lib/types/host/opencode-go/mapper-gemini.d.ts +13 -0
- package/lib/types/host/opencode-go/mapper-gemini.d.ts.map +1 -0
- package/lib/types/host/opencode-go/mapper-messages.d.ts +8 -0
- package/lib/types/host/opencode-go/mapper-messages.d.ts.map +1 -0
- package/lib/types/host/opencode-go/mapper-responses.d.ts +9 -0
- package/lib/types/host/opencode-go/mapper-responses.d.ts.map +1 -0
- package/lib/types/host/opencode-go/mapper.d.ts +38 -0
- package/lib/types/host/opencode-go/mapper.d.ts.map +1 -0
- package/lib/types/host/opencode-go/model-catalog.d.ts +57 -0
- package/lib/types/host/opencode-go/model-catalog.d.ts.map +1 -0
- package/lib/types/host/opencode-go/native-shared.d.ts +31 -0
- package/lib/types/host/opencode-go/native-shared.d.ts.map +1 -0
- package/lib/types/host/opencode-go/protocol.d.ts +13 -0
- package/lib/types/host/opencode-go/protocol.d.ts.map +1 -0
- package/lib/types/host/opencode-go/routes.d.ts +13 -0
- package/lib/types/host/opencode-go/routes.d.ts.map +1 -0
- package/lib/types/host/opencode-go/token-store.d.ts +29 -0
- package/lib/types/host/opencode-go/token-store.d.ts.map +1 -0
- package/lib/types/host/opencode-go/types.d.ts +20 -0
- package/lib/types/host/opencode-go/types.d.ts.map +1 -0
- package/lib/types/host/opendesign/account-pool.d.ts +54 -0
- package/lib/types/host/opendesign/account-pool.d.ts.map +1 -0
- package/lib/types/host/opendesign/adapter.d.ts +88 -0
- package/lib/types/host/opendesign/adapter.d.ts.map +1 -0
- package/lib/types/host/opendesign/catalog.d.ts +58 -0
- package/lib/types/host/opendesign/catalog.d.ts.map +1 -0
- package/lib/types/host/opendesign/client.d.ts +304 -0
- package/lib/types/host/opendesign/client.d.ts.map +1 -0
- package/lib/types/host/opendesign/line.d.ts +60 -0
- package/lib/types/host/opendesign/line.d.ts.map +1 -0
- package/lib/types/host/opendesign/mapper.d.ts +218 -0
- package/lib/types/host/opendesign/mapper.d.ts.map +1 -0
- package/lib/types/host/opendesign/oauth.d.ts +105 -0
- package/lib/types/host/opendesign/oauth.d.ts.map +1 -0
- package/lib/types/host/opendesign/routes.d.ts +75 -0
- package/lib/types/host/opendesign/routes.d.ts.map +1 -0
- package/lib/types/host/opendesign/token-store.d.ts +241 -0
- package/lib/types/host/opendesign/token-store.d.ts.map +1 -0
- package/lib/types/host/opendesign/types.d.ts +235 -0
- package/lib/types/host/opendesign/types.d.ts.map +1 -0
- package/lib/types/host/platform-token-store.d.ts +3 -0
- package/lib/types/host/platform-token-store.d.ts.map +1 -0
- package/lib/types/host/preferences.d.ts +26 -0
- package/lib/types/host/preferences.d.ts.map +1 -0
- package/lib/types/host/proxy-manager.d.ts +261 -0
- package/lib/types/host/proxy-manager.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/adapter.d.ts +37 -0
- package/lib/types/host/qianwen-token-plan/adapter.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/cache-stats.d.ts +17 -0
- package/lib/types/host/qianwen-token-plan/cache-stats.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/client.d.ts +5 -0
- package/lib/types/host/qianwen-token-plan/client.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/mapper.d.ts +71 -0
- package/lib/types/host/qianwen-token-plan/mapper.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/model-catalog.d.ts +28 -0
- package/lib/types/host/qianwen-token-plan/model-catalog.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/routes.d.ts +12 -0
- package/lib/types/host/qianwen-token-plan/routes.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/token-store.d.ts +56 -0
- package/lib/types/host/qianwen-token-plan/token-store.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/types.d.ts +13 -0
- package/lib/types/host/qianwen-token-plan/types.d.ts.map +1 -0
- package/lib/types/host/qoder/account-pool.d.ts +141 -0
- package/lib/types/host/qoder/account-pool.d.ts.map +1 -0
- package/lib/types/host/qoder/adapter.d.ts +167 -0
- package/lib/types/host/qoder/adapter.d.ts.map +1 -0
- package/lib/types/host/qoder/adopt.d.ts +146 -0
- package/lib/types/host/qoder/adopt.d.ts.map +1 -0
- package/lib/types/host/qoder/client.d.ts +323 -0
- package/lib/types/host/qoder/client.d.ts.map +1 -0
- package/lib/types/host/qoder/cosy.d.ts +173 -0
- package/lib/types/host/qoder/cosy.d.ts.map +1 -0
- package/lib/types/host/qoder/mapper.d.ts +332 -0
- package/lib/types/host/qoder/mapper.d.ts.map +1 -0
- package/lib/types/host/qoder/model-catalog.d.ts +231 -0
- package/lib/types/host/qoder/model-catalog.d.ts.map +1 -0
- package/lib/types/host/qoder/oauth.d.ts +151 -0
- package/lib/types/host/qoder/oauth.d.ts.map +1 -0
- package/lib/types/host/qoder/routes.d.ts +119 -0
- package/lib/types/host/qoder/routes.d.ts.map +1 -0
- package/lib/types/host/qoder/token-store.d.ts +280 -0
- package/lib/types/host/qoder/token-store.d.ts.map +1 -0
- package/lib/types/host/qoder/types.d.ts +262 -0
- package/lib/types/host/qoder/types.d.ts.map +1 -0
- package/lib/types/host/relayone/account-pool.d.ts +129 -0
- package/lib/types/host/relayone/account-pool.d.ts.map +1 -0
- package/lib/types/host/relayone/adapter.d.ts +87 -0
- package/lib/types/host/relayone/adapter.d.ts.map +1 -0
- package/lib/types/host/relayone/catalog-manager.d.ts +45 -0
- package/lib/types/host/relayone/catalog-manager.d.ts.map +1 -0
- package/lib/types/host/relayone/client.d.ts +5 -0
- package/lib/types/host/relayone/client.d.ts.map +1 -0
- package/lib/types/host/relayone/mapper-anthropic.d.ts +49 -0
- package/lib/types/host/relayone/mapper-anthropic.d.ts.map +1 -0
- package/lib/types/host/relayone/mapper-openai.d.ts +36 -0
- package/lib/types/host/relayone/mapper-openai.d.ts.map +1 -0
- package/lib/types/host/relayone/mapper-shared.d.ts +25 -0
- package/lib/types/host/relayone/mapper-shared.d.ts.map +1 -0
- package/lib/types/host/relayone/model-catalog.d.ts +70 -0
- package/lib/types/host/relayone/model-catalog.d.ts.map +1 -0
- package/lib/types/host/relayone/quota.d.ts +29 -0
- package/lib/types/host/relayone/quota.d.ts.map +1 -0
- package/lib/types/host/relayone/routes.d.ts +33 -0
- package/lib/types/host/relayone/routes.d.ts.map +1 -0
- package/lib/types/host/relayone/token-store.d.ts +49 -0
- package/lib/types/host/relayone/token-store.d.ts.map +1 -0
- package/lib/types/host/relayone/types.d.ts +22 -0
- package/lib/types/host/relayone/types.d.ts.map +1 -0
- package/lib/types/host/responses-client.d.ts +125 -0
- package/lib/types/host/responses-client.d.ts.map +1 -0
- package/lib/types/host/responses-mapper.d.ts +133 -0
- package/lib/types/host/responses-mapper.d.ts.map +1 -0
- package/lib/types/host/routes.d.ts +30 -0
- package/lib/types/host/routes.d.ts.map +1 -0
- package/lib/types/host/search-provider-switcher.d.ts +45 -0
- package/lib/types/host/search-provider-switcher.d.ts.map +1 -0
- package/lib/types/host/session-title-guard/index.d.ts +80 -0
- package/lib/types/host/session-title-guard/index.d.ts.map +1 -0
- package/lib/types/host/step-code/account-pool.d.ts +187 -0
- package/lib/types/host/step-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/step-code/adapter.d.ts +156 -0
- package/lib/types/host/step-code/adapter.d.ts.map +1 -0
- package/lib/types/host/step-code/adopt.d.ts +201 -0
- package/lib/types/host/step-code/adopt.d.ts.map +1 -0
- package/lib/types/host/step-code/cache-stats.d.ts +181 -0
- package/lib/types/host/step-code/cache-stats.d.ts.map +1 -0
- package/lib/types/host/step-code/client.d.ts +339 -0
- package/lib/types/host/step-code/client.d.ts.map +1 -0
- package/lib/types/host/step-code/mapper.d.ts +305 -0
- package/lib/types/host/step-code/mapper.d.ts.map +1 -0
- package/lib/types/host/step-code/model-catalog.d.ts +247 -0
- package/lib/types/host/step-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/step-code/oauth.d.ts +265 -0
- package/lib/types/host/step-code/oauth.d.ts.map +1 -0
- package/lib/types/host/step-code/routes.d.ts +129 -0
- package/lib/types/host/step-code/routes.d.ts.map +1 -0
- package/lib/types/host/step-code/token-store.d.ts +325 -0
- package/lib/types/host/step-code/token-store.d.ts.map +1 -0
- package/lib/types/host/step-code/types.d.ts +492 -0
- package/lib/types/host/step-code/types.d.ts.map +1 -0
- package/lib/types/host/token-store-linux.d.ts +20 -0
- package/lib/types/host/token-store-linux.d.ts.map +1 -0
- package/lib/types/host/token-store-macos.d.ts +39 -0
- package/lib/types/host/token-store-macos.d.ts.map +1 -0
- package/lib/types/host/token-store-windows.d.ts +26 -0
- package/lib/types/host/token-store-windows.d.ts.map +1 -0
- package/lib/types/host/token-store.d.ts +81 -0
- package/lib/types/host/token-store.d.ts.map +1 -0
- package/lib/types/host/usage-service.d.ts +109 -0
- package/lib/types/host/usage-service.d.ts.map +1 -0
- package/lib/types/host/web-provider-reconciler.d.ts +34 -0
- package/lib/types/host/web-provider-reconciler.d.ts.map +1 -0
- package/lib/types/host/wire-auth.d.ts +63 -0
- package/lib/types/host/wire-auth.d.ts.map +1 -0
- package/lib/types/host/workbuddy/account-pool.d.ts +389 -0
- package/lib/types/host/workbuddy/account-pool.d.ts.map +1 -0
- package/lib/types/host/workbuddy/adapter.d.ts +248 -0
- package/lib/types/host/workbuddy/adapter.d.ts.map +1 -0
- package/lib/types/host/workbuddy/atrest.d.ts +98 -0
- package/lib/types/host/workbuddy/atrest.d.ts.map +1 -0
- package/lib/types/host/workbuddy/checkin.d.ts +150 -0
- package/lib/types/host/workbuddy/checkin.d.ts.map +1 -0
- package/lib/types/host/workbuddy/client.d.ts +214 -0
- package/lib/types/host/workbuddy/client.d.ts.map +1 -0
- package/lib/types/host/workbuddy/dsml.d.ts +55 -0
- package/lib/types/host/workbuddy/dsml.d.ts.map +1 -0
- package/lib/types/host/workbuddy/guardrails.d.ts +111 -0
- package/lib/types/host/workbuddy/guardrails.d.ts.map +1 -0
- package/lib/types/host/workbuddy/identity.d.ts +71 -0
- package/lib/types/host/workbuddy/identity.d.ts.map +1 -0
- package/lib/types/host/workbuddy/mapper.d.ts +238 -0
- package/lib/types/host/workbuddy/mapper.d.ts.map +1 -0
- package/lib/types/host/workbuddy/model-catalog.d.ts +239 -0
- package/lib/types/host/workbuddy/model-catalog.d.ts.map +1 -0
- package/lib/types/host/workbuddy/oauth.d.ts +47 -0
- package/lib/types/host/workbuddy/oauth.d.ts.map +1 -0
- package/lib/types/host/workbuddy/outbound-identity.d.ts +139 -0
- package/lib/types/host/workbuddy/outbound-identity.d.ts.map +1 -0
- package/lib/types/host/workbuddy/routes.d.ts +56 -0
- package/lib/types/host/workbuddy/routes.d.ts.map +1 -0
- package/lib/types/host/workbuddy/token-store.d.ts +370 -0
- package/lib/types/host/workbuddy/token-store.d.ts.map +1 -0
- package/lib/types/host/workbuddy/types.d.ts +185 -0
- package/lib/types/host/workbuddy/types.d.ts.map +1 -0
- package/lib/types/index.d.ts +248 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/shared/account-pool-contracts.d.ts +99 -0
- package/lib/types/shared/account-pool-contracts.d.ts.map +1 -0
- package/lib/types/shared/claude-api-contracts.d.ts +98 -0
- package/lib/types/shared/claude-api-contracts.d.ts.map +1 -0
- package/lib/types/shared/claude-contracts.d.ts +370 -0
- package/lib/types/shared/claude-contracts.d.ts.map +1 -0
- package/lib/types/shared/cline-pass-contracts.d.ts +234 -0
- package/lib/types/shared/cline-pass-contracts.d.ts.map +1 -0
- package/lib/types/shared/command-code-contracts.d.ts +163 -0
- package/lib/types/shared/command-code-contracts.d.ts.map +1 -0
- package/lib/types/shared/contracts.d.ts +343 -0
- package/lib/types/shared/contracts.d.ts.map +1 -0
- package/lib/types/shared/glm-coding-plan-contracts.d.ts +315 -0
- package/lib/types/shared/glm-coding-plan-contracts.d.ts.map +1 -0
- package/lib/types/shared/hub-contracts.d.ts +37 -0
- package/lib/types/shared/hub-contracts.d.ts.map +1 -0
- package/lib/types/shared/i18n-contracts.d.ts +35 -0
- package/lib/types/shared/i18n-contracts.d.ts.map +1 -0
- package/lib/types/shared/kimi-code-contracts.d.ts +435 -0
- package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -0
- package/lib/types/shared/minimax-code-contracts.d.ts +263 -0
- package/lib/types/shared/minimax-code-contracts.d.ts.map +1 -0
- package/lib/types/shared/model-catalog.d.ts +302 -0
- package/lib/types/shared/model-catalog.d.ts.map +1 -0
- package/lib/types/shared/ollama-contracts.d.ts +73 -0
- package/lib/types/shared/ollama-contracts.d.ts.map +1 -0
- package/lib/types/shared/opencode-go-contracts.d.ts +80 -0
- package/lib/types/shared/opencode-go-contracts.d.ts.map +1 -0
- package/lib/types/shared/opendesign-contracts.d.ts +262 -0
- package/lib/types/shared/opendesign-contracts.d.ts.map +1 -0
- package/lib/types/shared/preferences.d.ts +60 -0
- package/lib/types/shared/preferences.d.ts.map +1 -0
- package/lib/types/shared/qianwen-token-plan-contracts.d.ts +94 -0
- package/lib/types/shared/qianwen-token-plan-contracts.d.ts.map +1 -0
- package/lib/types/shared/qoder-contracts.d.ts +342 -0
- package/lib/types/shared/qoder-contracts.d.ts.map +1 -0
- package/lib/types/shared/relayone-contracts.d.ts +95 -0
- package/lib/types/shared/relayone-contracts.d.ts.map +1 -0
- package/lib/types/shared/step-code-contracts.d.ts +443 -0
- package/lib/types/shared/step-code-contracts.d.ts.map +1 -0
- package/lib/types/shared/workbuddy-contracts.d.ts +531 -0
- package/lib/types/shared/workbuddy-contracts.d.ts.map +1 -0
- package/package.json +147 -4
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Qoder(订阅)线路的共享契约。
|
|
3
|
+
*
|
|
4
|
+
* host 与 client 两半只依赖本文件的类型与常量,互不 import。
|
|
5
|
+
* 本文件由调度者冻结:类型名与常量名不得更改,可追加。
|
|
6
|
+
*
|
|
7
|
+
* 边界精神与 `account-pool-contracts.ts` 首行一致:这里的一切都是公开信息,
|
|
8
|
+
* **任何凭据都不越过这条边界**。Qoder 的三种凭据——设备流换到的 job token、
|
|
9
|
+
* 手动粘贴的 PAT(`pt-...`)、adopt 读到的 `~/.qoder/.auth/user` 快照——一律不出现在
|
|
10
|
+
* 下列任何类型里。手动粘贴 PAT 的请求体也正因如此**刻意不在本文件声明**:它必然带凭据,
|
|
11
|
+
* 由 host 侧自行解析,不进冻结契约。
|
|
12
|
+
*
|
|
13
|
+
* 取值依据:`docs/qoder-line-plan.md` §1-§5,以及逐字来源
|
|
14
|
+
* Qoder 官方文档(docs.qoder.com/cli/authentication)、
|
|
15
|
+
* 开源实现 simonsmh/pi-provider-qoder(live 验证)与 Liki4/qodercli2api
|
|
16
|
+
* (qodercli v1.1.34 的全合成 frozen fixtures)。
|
|
17
|
+
*/
|
|
18
|
+
import type { AccountPoolStatusDto, PoolAccountSummaryDto } from './account-pool-contracts.ts';
|
|
19
|
+
/** 线路 id。与官方 CLI 的 `qoder` 同名是有意的:模型 id 与端点词汇都照它。 */
|
|
20
|
+
export declare const QODER_PROVIDER_ID = "qoder";
|
|
21
|
+
/** 设置卡片与 hub 卡片上显示的名字。 */
|
|
22
|
+
export declare const QODER_PROVIDER_NAME = "Qoder\uFF08\u8BA2\u9605\uFF09";
|
|
23
|
+
/**
|
|
24
|
+
* 路由前缀(host 暴露、client 消费)。
|
|
25
|
+
*
|
|
26
|
+
* 与其余各订阅线路一致:每条线路把自己的设置面挂在 `/<line>/api` 下,
|
|
27
|
+
* 不挂到 Codex 那条线路的 `/api/dsh-multi-provider` 前缀下面。
|
|
28
|
+
*/
|
|
29
|
+
export declare const QODER_ROUTE_PREFIX = "/qoder/api";
|
|
30
|
+
/**
|
|
31
|
+
* 账号所属区域。
|
|
32
|
+
*
|
|
33
|
+
* `qoder.sh`(全球)与 `qoder.com.cn`(中国)两套部署互不通用:一个区铸造的凭据
|
|
34
|
+
* 打另一个区的端点会被拒。区域因此是**凭据的属性**而不是请求的属性,一个号池可以同时
|
|
35
|
+
* 持有两区账号且互不串用(计划 §1;与 step-code 的 profile 同一原则)。
|
|
36
|
+
*
|
|
37
|
+
* 取值逐字来自 pi-provider-qoder `src/region.ts` 的 `QoderMode`。
|
|
38
|
+
*/
|
|
39
|
+
export type QoderRegion = 'global' | 'cn';
|
|
40
|
+
/** 全部区域,声明顺序即设置页的默认顺序(全球区在前:它是唯一支持浏览器设备流的)。 */
|
|
41
|
+
export declare const QODER_REGIONS: readonly QoderRegion[];
|
|
42
|
+
/** 参数是否是本线路认识的区域(供 route 层校验自由输入)。 */
|
|
43
|
+
export declare function isQoderRegion(value: unknown): value is QoderRegion;
|
|
44
|
+
/**
|
|
45
|
+
* 本线路能命名的思考档位。
|
|
46
|
+
*
|
|
47
|
+
* 取值就是 DSH 的完整档位词汇,而不是上游那几档:上游不认识的档位一律被
|
|
48
|
+
* `convergeQoderEffort`(host 侧 `types.ts`)收敛到**模型真实梯子**上再发出去,
|
|
49
|
+
* 两份词汇表是分开的——详见 `QODER_REASONING_EFFORTS` 的注释。
|
|
50
|
+
*/
|
|
51
|
+
export type QoderReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
52
|
+
/**
|
|
53
|
+
* 线路级档位词汇表,从低到高。
|
|
54
|
+
*
|
|
55
|
+
* 上游的档位是**逐模型**声明的(目录条目的 `thinking_config.enabled.efforts` 的键集,
|
|
56
|
+
* pi-provider `catalog.ts` `buildThinkingLevelMap`),未在集合里的档位不能发。
|
|
57
|
+
* 线路级词汇表比上游宽是**故意的**:本地收敛即可,而窄表一旦上游加了新档位就无处安放。
|
|
58
|
+
*/
|
|
59
|
+
export declare const QODER_REASONING_EFFORTS: readonly QoderReasoningEffort[];
|
|
60
|
+
/** 档位参数是否是本线路词汇表里的值(供 route 层校验自由输入)。 */
|
|
61
|
+
export declare function isQoderReasoningEffort(value: unknown): value is QoderReasoningEffort;
|
|
62
|
+
/**
|
|
63
|
+
* 一只额度桶的稳定标识。
|
|
64
|
+
*
|
|
65
|
+
* 逐字取自 `GET {openapi}/api/v2/quota/usage` 的载荷键(pi-provider `auth/usage.ts`):
|
|
66
|
+
*
|
|
67
|
+
* - `personal`:`userQuota`,账号自带的周期额度;
|
|
68
|
+
* - `add-on`:`addOnQuota`,加购 Credits;
|
|
69
|
+
* - `org`:`orgResourcePackage`,组织资源包(总额字段是 `cap` 而不是 `total`)。
|
|
70
|
+
*
|
|
71
|
+
* 刻意是封闭联合而不是自由字符串:上游给出一个认不出的桶时**不下发、不发明**。
|
|
72
|
+
*/
|
|
73
|
+
export type QoderQuotaBucketKind = 'personal' | 'add-on' | 'org';
|
|
74
|
+
/**
|
|
75
|
+
* 一只额度桶。
|
|
76
|
+
*
|
|
77
|
+
* Qoder 的额度是**绝对量**(总额 / 已用 / 剩余 + 单位),不是窗口——没有「已用百分比
|
|
78
|
+
* 与重置时刻」这一对,所以不硬塞进窗口形状。所有数字都可能缺失:上游没报就是没报,
|
|
79
|
+
* 缺失渲染成占位符,而不是 0(计划 §5;技能规约「零不是未知」)。
|
|
80
|
+
*/
|
|
81
|
+
export interface QoderQuotaBucketDto {
|
|
82
|
+
/** 线路自己的桶标识,由客户端本地化成桶名。 */
|
|
83
|
+
kind: QoderQuotaBucketKind;
|
|
84
|
+
/** 该桶的总额度;上游未给出时为 null。 */
|
|
85
|
+
total: number | null;
|
|
86
|
+
/** 该桶的已用额度;上游未给出时为 null。 */
|
|
87
|
+
used: number | null;
|
|
88
|
+
/** 该桶的剩余额度;上游未给出时为 null。 */
|
|
89
|
+
remaining: number | null;
|
|
90
|
+
/** 上游自述的单位(如 Credits);未给出时为 null。 */
|
|
91
|
+
unit: string | null;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* 某一时刻的整份额度快照。
|
|
95
|
+
*
|
|
96
|
+
* `buckets` 只装上游真的报了的桶;一只桶都不认识时快照本身不下发(卡片显示
|
|
97
|
+
* 「读不出来」而不是一张全空的卡)。
|
|
98
|
+
*/
|
|
99
|
+
export interface QoderQuotaSnapshotDto {
|
|
100
|
+
buckets: QoderQuotaBucketDto[];
|
|
101
|
+
/** 账号周期截止(Unix 毫秒);上游未给出时为 null。 */
|
|
102
|
+
expiresAt: number | null;
|
|
103
|
+
/**
|
|
104
|
+
* 上游明说「额度已用尽」。
|
|
105
|
+
*
|
|
106
|
+
* 它是**账号层面的事实**,不是某只桶的数字:三只桶全是 0 时上游也会这么报,
|
|
107
|
+
* 而卡片此前只看得见 0/0,于是「额度看着还在」与「请求被拒」同时成立。
|
|
108
|
+
* 上游没报这个字段时为 false(快照里的桶仍然是事实)。
|
|
109
|
+
*/
|
|
110
|
+
quotaExceeded: boolean;
|
|
111
|
+
/** 额度用尽时的升级/购买页(上游给的);上游没给时为 null。 */
|
|
112
|
+
upgradeUrl: string | null;
|
|
113
|
+
/** 本次读取时刻(Unix 毫秒),卡片据此判断数据新旧。 */
|
|
114
|
+
fetchedAt: number;
|
|
115
|
+
/** 这份快照是在哪个区域读到的(额度跟着账号走,账号的区域即快照的区域)。 */
|
|
116
|
+
region: QoderRegion;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 设置卡片渲染的一行模型(图标 + 名称 + 行尾勾)。
|
|
120
|
+
*
|
|
121
|
+
* 能力**不得从模型名推断**(计划 §4):目录完全靠运行时发现,能力字段一律来自
|
|
122
|
+
* 端点字段(`is_vl` / `is_reasoning` / `thinking_config` / `context_config`),
|
|
123
|
+
* 拿不到的走区域兜底值。
|
|
124
|
+
*/
|
|
125
|
+
export interface QoderModelOption {
|
|
126
|
+
/** 公开 id:上游 `display_name` 去空白(pi-provider `toQoderModelId` 同一规则)。 */
|
|
127
|
+
id: string;
|
|
128
|
+
/** 显示名(上游 `display_name` 原样)。 */
|
|
129
|
+
name: string;
|
|
130
|
+
/** 一句话能力描述:思考形态 / 可选档位 / 输入模态 / 上下文窗口。 */
|
|
131
|
+
hint: string;
|
|
132
|
+
/** 是否由 DSH 提供给会话模型选择器。 */
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
/** 目录声明的默认上下文窗口(token)。 */
|
|
135
|
+
defaultContextWindow: number;
|
|
136
|
+
/** 生效窗口:有覆盖值时用覆盖值,否则等于 `defaultContextWindow`。 */
|
|
137
|
+
contextWindow: number;
|
|
138
|
+
/** 调用方不指定时,本线路请求的输出上限(目录不报输出上限,取文档化的上游上限)。 */
|
|
139
|
+
defaultMaxTokens: number;
|
|
140
|
+
/** 该模型**真实**接受的思考档位;空数组表示它不接受 `reasoning_effort`。 */
|
|
141
|
+
reasoningEfforts: readonly QoderReasoningEffort[];
|
|
142
|
+
/** 思考能否关闭。与上一条正交:档位非空而本项为 false = 恒定开启。 */
|
|
143
|
+
thinkingDisableable: boolean;
|
|
144
|
+
/** 是否接受 image 输入(上游 `is_vl`)。 */
|
|
145
|
+
supportsImages: boolean;
|
|
146
|
+
/** 服务该模型的区域;同一个 id 在两区的可用性可能不同。 */
|
|
147
|
+
regions: readonly QoderRegion[];
|
|
148
|
+
/** 上游描述;目录没有时为 null。 */
|
|
149
|
+
description: string | null;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* 一个池内账号的展示行。
|
|
153
|
+
*
|
|
154
|
+
* 扩展共享的 `PoolAccountSummaryDto`,因此同样只带非机密信息:
|
|
155
|
+
* 这里没有任何字段派生自 job token、PAT 或刷新令牌,连 token 的片段也不给。
|
|
156
|
+
*/
|
|
157
|
+
export interface QoderAccountSummaryDto extends PoolAccountSummaryDto {
|
|
158
|
+
/** 账号所属区域;区域属于凭据,池内可混有 global 与 cn。 */
|
|
159
|
+
region: QoderRegion;
|
|
160
|
+
/** 凭据来源:浏览器设备流 / 手动粘贴 PAT / adopt 本机登录态。 */
|
|
161
|
+
origin: 'device' | 'pat' | 'adopt';
|
|
162
|
+
/** 账号邮箱(非机密,上游 userinfo 自述);没有时缺省(与基类 `email?: string` 同形)。 */
|
|
163
|
+
email?: string;
|
|
164
|
+
/** 账号显示名(非机密);没有时缺省。 */
|
|
165
|
+
accountName?: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* 设备流登录流程的实时状态,卡片轮询它。
|
|
169
|
+
*
|
|
170
|
+
* 这条线路**不开本地回调端口**:流程跑在 host 上,卡片只跟随这里
|
|
171
|
+
* (与其余各线路的登录面同构)。用户在浏览器里人工确认,host 轮询取回凭据。
|
|
172
|
+
*
|
|
173
|
+
* `authorizeUrl` 始终下发,即使 host 同时打开过浏览器——启动失败时用户还能手动打开。
|
|
174
|
+
*/
|
|
175
|
+
export interface QoderLoginFlowStatus {
|
|
176
|
+
status: 'idle' | 'pending' | 'complete' | 'error';
|
|
177
|
+
/** 本次流程要登录的区域(设备流只会是 `global`,但如实记录)。 */
|
|
178
|
+
region?: QoderRegion;
|
|
179
|
+
/** 浏览器必须打开的授权页(`https://qoder.com/device/selectAccounts?…`,由 host 拼)。 */
|
|
180
|
+
authorizeUrl?: string;
|
|
181
|
+
startedAt?: number;
|
|
182
|
+
completedAt?: number;
|
|
183
|
+
/** 本地总超时换算出的绝对时刻(Unix 毫秒)。 */
|
|
184
|
+
expiresAt?: number;
|
|
185
|
+
/** 轮询间隔(秒);客户端据此显示「每 N 秒查询一次」。 */
|
|
186
|
+
pollIntervalSec?: number;
|
|
187
|
+
/** pending 阶段的人类可读进度。 */
|
|
188
|
+
progress?: string;
|
|
189
|
+
/** 流程完成后拿到的账号标识(上游 `user_id`)。 */
|
|
190
|
+
uid?: string;
|
|
191
|
+
/** 失败原因(面向用户,不是堆栈)。 */
|
|
192
|
+
error?: string;
|
|
193
|
+
/** 本次失败是否值得自动重试(传输类失败为 true,协议类与用户取消为 false)。 */
|
|
194
|
+
retryable?: boolean;
|
|
195
|
+
}
|
|
196
|
+
/** 设置面接受的补丁。 */
|
|
197
|
+
export interface QoderSettingsUpdateDto {
|
|
198
|
+
enabled?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* 模型勾选,**三态**(与 host 的 `QoderModelSettings` 同源):
|
|
201
|
+
*
|
|
202
|
+
* - `null` = 不过滤,目录里的每一个模型都可用(出厂状态);
|
|
203
|
+
* - `[]` = 用户明确把每一个模型都关掉;
|
|
204
|
+
* - 非空 = 白名单,只有列出的那些可用。
|
|
205
|
+
*
|
|
206
|
+
* 三态而不是「空数组即不过滤」:后者让「全不选」与「全选」提交同一个值,
|
|
207
|
+
* 卡片上那个按钮就永远点不出效果。
|
|
208
|
+
*
|
|
209
|
+
* 白名单是**对着某一版实时目录**勾出来的 id(上游 `display_name` 去空白),
|
|
210
|
+
* 与随包兜底表不是同一套词汇(`DeepSeek-Flash` 对 `DeepSeek-V4-Flash`)。
|
|
211
|
+
* 所以它只在实时目录上收敛生效;进程里还只有兜底表时不按它过滤,
|
|
212
|
+
* 但 `[]`(全关)仍然照旧生效——那是明确的用户意图,与词汇表无关。
|
|
213
|
+
*/
|
|
214
|
+
enabledModelIds?: string[] | null;
|
|
215
|
+
/** 数字表示为该模型设置覆盖值;`null` 恢复目录默认。 */
|
|
216
|
+
contextWindowOverrides?: Record<string, number | null>;
|
|
217
|
+
/** `null` 表示各模型用自己的默认档位。 */
|
|
218
|
+
defaultReasoningEffort?: QoderReasoningEffort | null;
|
|
219
|
+
/** 手动指定下一个请求使用的账号;`null` 交回号池调度。 */
|
|
220
|
+
selectedAccountId?: string | null;
|
|
221
|
+
}
|
|
222
|
+
/** 显式连通性测试的结果。 */
|
|
223
|
+
export interface QoderConnectionDto {
|
|
224
|
+
connected: boolean;
|
|
225
|
+
/** 探测请求的往返耗时。 */
|
|
226
|
+
latencyMs: number;
|
|
227
|
+
/** 探测用到的账号;未登录时为 null。 */
|
|
228
|
+
account: QoderAccountSummaryDto | null;
|
|
229
|
+
/** 探测所用的目录首行模型 id;读不到时为 null。 */
|
|
230
|
+
model: string | null;
|
|
231
|
+
checkedAt: number;
|
|
232
|
+
/** 失败原因(面向用户)。 */
|
|
233
|
+
error?: string;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* adopt(本机已登录的 qodercli 客户端登录态)的一次尝试结果。
|
|
237
|
+
*
|
|
238
|
+
* adopt 只是省一次登录的快捷路径,**失败永不阻断**:每个 `reason` 对应一种
|
|
239
|
+
* 「换一条路登录」的说明,卡片据此给出不同的下一步。
|
|
240
|
+
*/
|
|
241
|
+
export interface QoderAdoptResultDto {
|
|
242
|
+
/** 是否真的尝试了 adopt(没找到凭据文件时为 false)。 */
|
|
243
|
+
attempted: boolean;
|
|
244
|
+
/** 是否拿到可用登录态。 */
|
|
245
|
+
adopted: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* 失败原因。
|
|
248
|
+
*
|
|
249
|
+
* `unsupported-shape` 是「读懂了但没有认出的字段组合」;`not-a-qoder-login` 是
|
|
250
|
+
* 「文件在、能解密,但里面没有 access_token」;`region-unresolved` 是「解密成功但
|
|
251
|
+
* 两个区域的 userinfo 都不认这把 token」——三者的下一步不同,所以分开。
|
|
252
|
+
*/
|
|
253
|
+
reason?: 'no-credentials-file' | 'invalid-credentials' | 'unsupported-shape' | 'not-a-qoder-login' | 'region-unresolved';
|
|
254
|
+
/** 成功时采用的区域。 */
|
|
255
|
+
region?: QoderRegion;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* 本进程累计的缓存用量(**只读展示**,不含任何金额)。
|
|
259
|
+
*
|
|
260
|
+
* 只放 token:Qoder 订阅没有公开的 token 单价(计划 §5),卡片能诚实给出的只有
|
|
261
|
+
* 「读入多少、写出多少、样本多大」。命中率由客户端算——**分母为 0 时是「还不知道」,
|
|
262
|
+
* 不是「一个都没命中」**,因此这个 DTO 不带百分比字段。
|
|
263
|
+
*
|
|
264
|
+
* 与 step-code 不同,本线路的写侧**不**恒为 0:上游的
|
|
265
|
+
* `prompt_tokens_details.cache_write_tokens` 可能真的报数(pi-provider `stream.ts`
|
|
266
|
+
* 的 usage 解析),所以写侧如实累计,不发「恒零」声明。
|
|
267
|
+
*/
|
|
268
|
+
export interface QoderCacheStatsDto {
|
|
269
|
+
/** 缓存读入 token(`prompt_tokens_details.cached_tokens`)。 */
|
|
270
|
+
cacheReadTokens: number;
|
|
271
|
+
/** 未命中的输入 token:本轮聚合 prompt 减去缓存读入与写入的那部分。 */
|
|
272
|
+
missedInputTokens: number;
|
|
273
|
+
/** 缓存写入 token(`prompt_tokens_details.cache_write_tokens`;上游没报就是 0)。 */
|
|
274
|
+
cacheWriteTokens: number;
|
|
275
|
+
/** 这些数字覆盖了几次请求;样本未知时为 null。 */
|
|
276
|
+
requests: number | null;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* 设置卡片与 composer 徽标渲染所需的全部状态。
|
|
280
|
+
*
|
|
281
|
+
* 继承共享的号池切片,因此每条元素只带非机密展示信息;令牌永远不过这条边界。
|
|
282
|
+
*/
|
|
283
|
+
export interface QoderStatusDto extends Partial<AccountPoolStatusDto> {
|
|
284
|
+
/** 线路总开关;关闭时适配器不暴露任何模型。 */
|
|
285
|
+
enabled?: boolean;
|
|
286
|
+
authenticated: boolean;
|
|
287
|
+
hasCredentials: boolean;
|
|
288
|
+
providerId: typeof QODER_PROVIDER_ID;
|
|
289
|
+
/** 凭据存储位置说明(Windows DPAPI / macOS Keychain / Linux SecretService)。 */
|
|
290
|
+
storagePath: string;
|
|
291
|
+
/** 下一次登录要用的区域(设备流只在全球区开放)。 */
|
|
292
|
+
region: QoderRegion;
|
|
293
|
+
account: QoderAccountSummaryDto | null;
|
|
294
|
+
/** 无可用快照时为 null,UI 应优雅降级。 */
|
|
295
|
+
quota: QoderQuotaSnapshotDto | null;
|
|
296
|
+
lastFetchedAt: number | null;
|
|
297
|
+
/** 本次应答背后是否正在刷新额度。 */
|
|
298
|
+
quotaRefreshing?: boolean;
|
|
299
|
+
/** 额度读取失败的原因;与快照并列给出,而不是互相取代。 */
|
|
300
|
+
quotaError?: string | null;
|
|
301
|
+
/**
|
|
302
|
+
* 本次应答背后是否正在刷新**模型目录**。
|
|
303
|
+
*
|
|
304
|
+
* 形状与 {@link quotaRefreshing} 同一条约定:host 先拿缓存(或随包兜底表)把
|
|
305
|
+
* 应答发出去,源头上那次刷新跑在应答背后。客户端据此知道「选择器里的兜底行
|
|
306
|
+
* 马上会被真实目录顶掉」,从而排一次补读——60 秒轮询太慢,用户等不到。
|
|
307
|
+
*
|
|
308
|
+
* 它与「用户有没有点刷新」无关:手动刷新是 POST /catalog/refresh,在应答
|
|
309
|
+
* 之前就完成了,不靠这个字段。
|
|
310
|
+
*/
|
|
311
|
+
catalogRefreshing?: boolean;
|
|
312
|
+
models: QoderModelOption[];
|
|
313
|
+
/**
|
|
314
|
+
* 用户存下来的模型勾选,**三态**:`null` = 不过滤(全部可用)、
|
|
315
|
+
* `[]` = 全关、非空 = 白名单。
|
|
316
|
+
*
|
|
317
|
+
* 如实下发(`null` 也是一个要下发的值):客户端要靠它区分「没挑过」与
|
|
318
|
+
* 「挑完又全清」,两者在 `models[].enabled` 上看起来是一样的。
|
|
319
|
+
*
|
|
320
|
+
* 它是**生效**的选择,不是落盘的原文:进程里还只有随包兜底表(没有实时目录)
|
|
321
|
+
* 时,白名单与那份目录不是同一套 id 词汇,按它筛只会把每一行都筛掉,所以这个
|
|
322
|
+
* 字段此时收敛成 `null`(不过滤、全部可用),勾选标记跟着全部亮起;
|
|
323
|
+
* `[]`(全关)不受影响。实时目录一到,它立刻变回真实的收敛结果。
|
|
324
|
+
*/
|
|
325
|
+
enabledModelIds: string[] | null;
|
|
326
|
+
contextWindowOverrides: Record<string, number>;
|
|
327
|
+
defaultReasoningEffort: QoderReasoningEffort | null;
|
|
328
|
+
/** 当前进行中的登录流程;无流程时为 null。 */
|
|
329
|
+
login?: QoderLoginFlowStatus | null;
|
|
330
|
+
/**
|
|
331
|
+
* 本进程累计的缓存用量;尚无样本时为 undefined。
|
|
332
|
+
*
|
|
333
|
+
* 客户端把「未下发」与「下发了一个 0」分开渲染(占位符 vs 真实的 0%),
|
|
334
|
+
* 所以这里刻意是可选的:缺失表达的是「还不知道」,不是「没有命中」。
|
|
335
|
+
*/
|
|
336
|
+
cacheStats?: QoderCacheStatsDto;
|
|
337
|
+
/** 本插件是否正在服务该 Provider 路由。 */
|
|
338
|
+
serving: boolean;
|
|
339
|
+
/** 路由被别的适配器占用时的诊断文案。 */
|
|
340
|
+
conflict: string | null;
|
|
341
|
+
}
|
|
342
|
+
//# sourceMappingURL=qoder-contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qoder-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/qoder-contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,6BAA6B,CAAA;AAEpC,qDAAqD;AACrD,eAAO,MAAM,iBAAiB,UAAU,CAAA;AAExC,0BAA0B;AAC1B,eAAO,MAAM,mBAAmB,kCAAc,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,eAAe,CAAA;AAE9C;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,IAAI,CAAA;AAEzC,+CAA+C;AAC/C,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAAqB,CAAA;AAErE,sCAAsC;AACtC,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAElE;AAED;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,oBAAoB,EAOlE,CAAA;AAED,yCAAyC;AACzC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,oBAAoB,CAEpF;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAA;AAEhE;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,2BAA2B;IAC3B,IAAI,EAAE,oBAAoB,CAAA;IAC1B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,GAAG,I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GAAG,IAAI,CAAA;IACnC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,sBAAsB;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B;;;;;;;;;OASG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B;;;;;;;;;;;OAWG;IACH,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9C,sBAAsB,EAAE,oBAAoB,GAAG,IAAI,CAAA;IACnD,6BAA6B;IAC7B,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;IACnC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAA;IAC/B,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAA;IAChB,wBAAwB;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { AccountPoolStatusDto, PoolAccountSummaryDto } from './account-pool-contracts.ts';
|
|
2
|
+
/** Public host/client contract for RelayOne. No API key crosses this boundary. */
|
|
3
|
+
export declare const RELAYONE_PROVIDER_ID = "relayone";
|
|
4
|
+
export declare const RELAYONE_PROVIDER_NAME = "RelayOne";
|
|
5
|
+
export declare const RELAYONE_ROUTE_PREFIX = "/relayone/api";
|
|
6
|
+
export type RelayOneProtocol = 'openai-responses' | 'openai-chat' | 'anthropic';
|
|
7
|
+
export type RelayOneModelKind = 'chat' | 'image' | 'video';
|
|
8
|
+
export type RelayOneReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
9
|
+
export declare const RELAYONE_REASONING_EFFORTS: readonly RelayOneReasoningEffort[];
|
|
10
|
+
export declare function isRelayOneReasoningEffort(value: unknown): value is RelayOneReasoningEffort;
|
|
11
|
+
export interface RelayOneModelDto {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
kind: RelayOneModelKind;
|
|
15
|
+
hint: string;
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
groups: readonly string[];
|
|
18
|
+
endpoints: readonly string[];
|
|
19
|
+
protocol: RelayOneProtocol | null;
|
|
20
|
+
vendor: string | null;
|
|
21
|
+
description: string | null;
|
|
22
|
+
contextWindow: number;
|
|
23
|
+
defaultContextWindow: number;
|
|
24
|
+
maxOutputTokens: number;
|
|
25
|
+
reasoningEfforts: readonly RelayOneReasoningEffort[];
|
|
26
|
+
supportsImages: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface RelayOneCatalogDto {
|
|
29
|
+
state: 'idle' | 'ready' | 'stale' | 'error';
|
|
30
|
+
fetchedAt: number | null;
|
|
31
|
+
error: string | null;
|
|
32
|
+
groups: readonly string[];
|
|
33
|
+
}
|
|
34
|
+
export type RelayOneQuotaState = 'idle' | 'ready' | 'unlimited' | 'stale' | 'error';
|
|
35
|
+
export interface RelayOneQuotaDto {
|
|
36
|
+
state: RelayOneQuotaState;
|
|
37
|
+
totalGranted: number | null;
|
|
38
|
+
totalUsed: number | null;
|
|
39
|
+
totalAvailable: number | null;
|
|
40
|
+
remainingPercent: number | null;
|
|
41
|
+
quotaPerUnit: number | null;
|
|
42
|
+
expiresAt: number | null;
|
|
43
|
+
fetchedAt: number | null;
|
|
44
|
+
error: string | null;
|
|
45
|
+
}
|
|
46
|
+
/** One pooled key as the settings card renders it. Never carries the key. */
|
|
47
|
+
export interface RelayOneAccountSummaryDto extends PoolAccountSummaryDto {
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Account actions the card may send.
|
|
51
|
+
*
|
|
52
|
+
* `add` is the one that takes a key: the pool is how a user enters several
|
|
53
|
+
* keys, and `test` verifies one without storing it.
|
|
54
|
+
*/
|
|
55
|
+
export type RelayOneAccountAction = 'add' | 'test'
|
|
56
|
+
/** Make this key the one every request uses. */
|
|
57
|
+
| 'use' | 'set-primary' | 'set-alias' | 'delete' | 'clear-cooldown';
|
|
58
|
+
export interface RelayOneStatusDto {
|
|
59
|
+
providerId: typeof RELAYONE_PROVIDER_ID;
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
authenticated: boolean;
|
|
62
|
+
storagePath: string;
|
|
63
|
+
/** The pool slice: every key this line can switch between. */
|
|
64
|
+
accounts: RelayOneAccountSummaryDto[];
|
|
65
|
+
activeAccountId?: string;
|
|
66
|
+
rotationStrategy: AccountPoolStatusDto['rotationStrategy'];
|
|
67
|
+
models: readonly RelayOneModelDto[];
|
|
68
|
+
mediaModels: readonly RelayOneModelDto[];
|
|
69
|
+
contextWindowOverrides: Readonly<Record<string, number>>;
|
|
70
|
+
defaultReasoningEffort: RelayOneReasoningEffort | null;
|
|
71
|
+
imageModel: string | null;
|
|
72
|
+
videoModel: string | null;
|
|
73
|
+
catalog: RelayOneCatalogDto;
|
|
74
|
+
quota: RelayOneQuotaDto;
|
|
75
|
+
serving: boolean;
|
|
76
|
+
conflict: string | null;
|
|
77
|
+
}
|
|
78
|
+
export interface RelayOneSettingsUpdateDto {
|
|
79
|
+
enabled?: boolean;
|
|
80
|
+
/** An empty array is an explicit all-off selection; null is not accepted by a patch. */
|
|
81
|
+
enabledModelIds?: string[];
|
|
82
|
+
contextWindowOverrides?: Record<string, number | null>;
|
|
83
|
+
defaultReasoningEffort?: RelayOneReasoningEffort | null;
|
|
84
|
+
imageModel?: string | null;
|
|
85
|
+
videoModel?: string | null;
|
|
86
|
+
}
|
|
87
|
+
export interface RelayOneConnectionDto {
|
|
88
|
+
connected: boolean;
|
|
89
|
+
latencyMs: number;
|
|
90
|
+
checkedAt: number;
|
|
91
|
+
modelCount: number;
|
|
92
|
+
groups: readonly string[];
|
|
93
|
+
error?: string;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=relayone-contracts.d.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