@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.
Files changed (857) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/LICENSE +21 -0
  3. package/README.md +229 -2
  4. package/cordis.patch.yml +6 -0
  5. package/icon.svg +28 -0
  6. package/lib/client.js +25708 -0
  7. package/lib/client.js.map +1 -0
  8. package/lib/index.js +93587 -0
  9. package/lib/types/client/CodexComposerQuota.d.ts +13 -0
  10. package/lib/types/client/CodexComposerQuota.d.ts.map +1 -0
  11. package/lib/types/client/CodexSubscriptionSection.d.ts +42 -0
  12. package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -0
  13. package/lib/types/client/ProviderHubSection.d.ts +21 -0
  14. package/lib/types/client/ProviderHubSection.d.ts.map +1 -0
  15. package/lib/types/client/api.d.ts +66 -0
  16. package/lib/types/client/api.d.ts.map +1 -0
  17. package/lib/types/client/claude/ClaudeComposerQuota.d.ts +29 -0
  18. package/lib/types/client/claude/ClaudeComposerQuota.d.ts.map +1 -0
  19. package/lib/types/client/claude/ClaudeSection.d.ts +12 -0
  20. package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -0
  21. package/lib/types/client/claude/locales.d.ts +489 -0
  22. package/lib/types/client/claude/locales.d.ts.map +1 -0
  23. package/lib/types/client/claude/styles.d.ts +15 -0
  24. package/lib/types/client/claude/styles.d.ts.map +1 -0
  25. package/lib/types/client/claude/useClaudeSection.d.ts +106 -0
  26. package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -0
  27. package/lib/types/client/claude-api/ClaudeApiSection.d.ts +5 -0
  28. package/lib/types/client/claude-api/ClaudeApiSection.d.ts.map +1 -0
  29. package/lib/types/client/claude-api/api.d.ts +23 -0
  30. package/lib/types/client/claude-api/api.d.ts.map +1 -0
  31. package/lib/types/client/claude-api/locales.d.ts +161 -0
  32. package/lib/types/client/claude-api/locales.d.ts.map +1 -0
  33. package/lib/types/client/claude-api/styles.d.ts +4 -0
  34. package/lib/types/client/claude-api/styles.d.ts.map +1 -0
  35. package/lib/types/client/claude-api/useClaudeApiSection.d.ts +37 -0
  36. package/lib/types/client/claude-api/useClaudeApiSection.d.ts.map +1 -0
  37. package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts +23 -0
  38. package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts.map +1 -0
  39. package/lib/types/client/cline-pass/ClinePassSection.d.ts +17 -0
  40. package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -0
  41. package/lib/types/client/cline-pass/api.d.ts +85 -0
  42. package/lib/types/client/cline-pass/api.d.ts.map +1 -0
  43. package/lib/types/client/cline-pass/locales.d.ts +911 -0
  44. package/lib/types/client/cline-pass/locales.d.ts.map +1 -0
  45. package/lib/types/client/cline-pass/styles.d.ts +7 -0
  46. package/lib/types/client/cline-pass/styles.d.ts.map +1 -0
  47. package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts +20 -0
  48. package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts.map +1 -0
  49. package/lib/types/client/command-code/CommandCodeSection.d.ts +8 -0
  50. package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -0
  51. package/lib/types/client/command-code/locales.d.ts +305 -0
  52. package/lib/types/client/command-code/locales.d.ts.map +1 -0
  53. package/lib/types/client/common/AccountPoolSection.d.ts +104 -0
  54. package/lib/types/client/common/AccountPoolSection.d.ts.map +1 -0
  55. package/lib/types/client/common/ComposerQuotaBadge.d.ts +63 -0
  56. package/lib/types/client/common/ComposerQuotaBadge.d.ts.map +1 -0
  57. package/lib/types/client/common/ContextWindowEditor.d.ts +71 -0
  58. package/lib/types/client/common/ContextWindowEditor.d.ts.map +1 -0
  59. package/lib/types/client/common/LineProxySection.d.ts +78 -0
  60. package/lib/types/client/common/LineProxySection.d.ts.map +1 -0
  61. package/lib/types/client/common/ModelChecklist.d.ts +29 -0
  62. package/lib/types/client/common/ModelChecklist.d.ts.map +1 -0
  63. package/lib/types/client/common/account-pool-labels.d.ts +74 -0
  64. package/lib/types/client/common/account-pool-labels.d.ts.map +1 -0
  65. package/lib/types/client/common/account-quota.d.ts +60 -0
  66. package/lib/types/client/common/account-quota.d.ts.map +1 -0
  67. package/lib/types/client/common/format.d.ts +70 -0
  68. package/lib/types/client/common/format.d.ts.map +1 -0
  69. package/lib/types/client/common/host-locale-mirror.d.ts +24 -0
  70. package/lib/types/client/common/host-locale-mirror.d.ts.map +1 -0
  71. package/lib/types/client/common/line-api.d.ts +8 -0
  72. package/lib/types/client/common/line-api.d.ts.map +1 -0
  73. package/lib/types/client/common/line-locale.d.ts +21 -0
  74. package/lib/types/client/common/line-locale.d.ts.map +1 -0
  75. package/lib/types/client/common/model-checklist-styles.d.ts +2 -0
  76. package/lib/types/client/common/model-checklist-styles.d.ts.map +1 -0
  77. package/lib/types/client/common/plugin-style.d.ts +23 -0
  78. package/lib/types/client/common/plugin-style.d.ts.map +1 -0
  79. package/lib/types/client/common/quota-follow-up.d.ts +30 -0
  80. package/lib/types/client/common/quota-follow-up.d.ts.map +1 -0
  81. package/lib/types/client/common/styles.d.ts +11 -0
  82. package/lib/types/client/common/styles.d.ts.map +1 -0
  83. package/lib/types/client/common/use-store.d.ts +3 -0
  84. package/lib/types/client/common/use-store.d.ts.map +1 -0
  85. package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts +27 -0
  86. package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts.map +1 -0
  87. package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts +22 -0
  88. package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts.map +1 -0
  89. package/lib/types/client/glm-coding-plan/api.d.ts +4 -0
  90. package/lib/types/client/glm-coding-plan/api.d.ts.map +1 -0
  91. package/lib/types/client/glm-coding-plan/locales.d.ts +409 -0
  92. package/lib/types/client/glm-coding-plan/locales.d.ts.map +1 -0
  93. package/lib/types/client/glm-coding-plan/styles.d.ts +16 -0
  94. package/lib/types/client/glm-coding-plan/styles.d.ts.map +1 -0
  95. package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts +65 -0
  96. package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts.map +1 -0
  97. package/lib/types/client/hub/HubOverview.d.ts +16 -0
  98. package/lib/types/client/hub/HubOverview.d.ts.map +1 -0
  99. package/lib/types/client/hub/brand-icons.d.ts +64 -0
  100. package/lib/types/client/hub/brand-icons.d.ts.map +1 -0
  101. package/lib/types/client/hub/brand-svg.d.ts +51 -0
  102. package/lib/types/client/hub/brand-svg.d.ts.map +1 -0
  103. package/lib/types/client/hub/hub-styles.d.ts +2 -0
  104. package/lib/types/client/hub/hub-styles.d.ts.map +1 -0
  105. package/lib/types/client/hub/providers.d.ts +55 -0
  106. package/lib/types/client/hub/providers.d.ts.map +1 -0
  107. package/lib/types/client/index.d.ts +67 -0
  108. package/lib/types/client/index.d.ts.map +1 -0
  109. package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts +21 -0
  110. package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts.map +1 -0
  111. package/lib/types/client/kimi-code/KimiCodeSection.d.ts +8 -0
  112. package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -0
  113. package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts +16 -0
  114. package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +1 -0
  115. package/lib/types/client/kimi-code/KimiQuotaCard.d.ts +31 -0
  116. package/lib/types/client/kimi-code/KimiQuotaCard.d.ts.map +1 -0
  117. package/lib/types/client/kimi-code/labels.d.ts +66 -0
  118. package/lib/types/client/kimi-code/labels.d.ts.map +1 -0
  119. package/lib/types/client/kimi-code/locales.d.ts +640 -0
  120. package/lib/types/client/kimi-code/locales.d.ts.map +1 -0
  121. package/lib/types/client/kimi-code/staff-art.d.ts +19 -0
  122. package/lib/types/client/kimi-code/staff-art.d.ts.map +1 -0
  123. package/lib/types/client/kimi-code/styles.d.ts +4 -0
  124. package/lib/types/client/kimi-code/styles.d.ts.map +1 -0
  125. package/lib/types/client/locales-ru/account-pool.d.ts +11 -0
  126. package/lib/types/client/locales-ru/account-pool.d.ts.map +1 -0
  127. package/lib/types/client/locales-ru/claude-api.d.ts +3 -0
  128. package/lib/types/client/locales-ru/claude-api.d.ts.map +1 -0
  129. package/lib/types/client/locales-ru/claude.d.ts +3 -0
  130. package/lib/types/client/locales-ru/claude.d.ts.map +1 -0
  131. package/lib/types/client/locales-ru/cline-pass.d.ts +11 -0
  132. package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -0
  133. package/lib/types/client/locales-ru/command-code.d.ts +9 -0
  134. package/lib/types/client/locales-ru/command-code.d.ts.map +1 -0
  135. package/lib/types/client/locales-ru/glm-coding-plan.d.ts +10 -0
  136. package/lib/types/client/locales-ru/glm-coding-plan.d.ts.map +1 -0
  137. package/lib/types/client/locales-ru/hub.d.ts +3 -0
  138. package/lib/types/client/locales-ru/hub.d.ts.map +1 -0
  139. package/lib/types/client/locales-ru/index.d.ts +26 -0
  140. package/lib/types/client/locales-ru/index.d.ts.map +1 -0
  141. package/lib/types/client/locales-ru/kimi-code.d.ts +10 -0
  142. package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -0
  143. package/lib/types/client/locales-ru/minimax-code.d.ts +9 -0
  144. package/lib/types/client/locales-ru/minimax-code.d.ts.map +1 -0
  145. package/lib/types/client/locales-ru/ollama.d.ts +10 -0
  146. package/lib/types/client/locales-ru/ollama.d.ts.map +1 -0
  147. package/lib/types/client/locales-ru/opencode-go.d.ts +3 -0
  148. package/lib/types/client/locales-ru/opencode-go.d.ts.map +1 -0
  149. package/lib/types/client/locales-ru/opendesign.d.ts +10 -0
  150. package/lib/types/client/locales-ru/opendesign.d.ts.map +1 -0
  151. package/lib/types/client/locales-ru/qianwen-token-plan.d.ts +3 -0
  152. package/lib/types/client/locales-ru/qianwen-token-plan.d.ts.map +1 -0
  153. package/lib/types/client/locales-ru/qoder.d.ts +11 -0
  154. package/lib/types/client/locales-ru/qoder.d.ts.map +1 -0
  155. package/lib/types/client/locales-ru/relayone.d.ts +3 -0
  156. package/lib/types/client/locales-ru/relayone.d.ts.map +1 -0
  157. package/lib/types/client/locales-ru/step-code.d.ts +9 -0
  158. package/lib/types/client/locales-ru/step-code.d.ts.map +1 -0
  159. package/lib/types/client/locales-ru/workbuddy.d.ts +10 -0
  160. package/lib/types/client/locales-ru/workbuddy.d.ts.map +1 -0
  161. package/lib/types/client/locales.d.ts +497 -0
  162. package/lib/types/client/locales.d.ts.map +1 -0
  163. package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts +23 -0
  164. package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts.map +1 -0
  165. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts +23 -0
  166. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +1 -0
  167. package/lib/types/client/minimax-code/api.d.ts +35 -0
  168. package/lib/types/client/minimax-code/api.d.ts.map +1 -0
  169. package/lib/types/client/minimax-code/commands-contract.d.ts +46 -0
  170. package/lib/types/client/minimax-code/commands-contract.d.ts.map +1 -0
  171. package/lib/types/client/minimax-code/locales.d.ts +422 -0
  172. package/lib/types/client/minimax-code/locales.d.ts.map +1 -0
  173. package/lib/types/client/minimax-code/styles.d.ts +12 -0
  174. package/lib/types/client/minimax-code/styles.d.ts.map +1 -0
  175. package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts +164 -0
  176. package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts.map +1 -0
  177. package/lib/types/client/ollama/OllamaSection.d.ts +25 -0
  178. package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -0
  179. package/lib/types/client/ollama/api.d.ts +49 -0
  180. package/lib/types/client/ollama/api.d.ts.map +1 -0
  181. package/lib/types/client/ollama/locales.d.ts +479 -0
  182. package/lib/types/client/ollama/locales.d.ts.map +1 -0
  183. package/lib/types/client/opencode-go/OpenCodeGoQuotaCard.d.ts +20 -0
  184. package/lib/types/client/opencode-go/OpenCodeGoQuotaCard.d.ts.map +1 -0
  185. package/lib/types/client/opencode-go/OpenCodeGoSection.d.ts +8 -0
  186. package/lib/types/client/opencode-go/OpenCodeGoSection.d.ts.map +1 -0
  187. package/lib/types/client/opencode-go/locales.d.ts +210 -0
  188. package/lib/types/client/opencode-go/locales.d.ts.map +1 -0
  189. package/lib/types/client/opencode-go/styles.d.ts +10 -0
  190. package/lib/types/client/opencode-go/styles.d.ts.map +1 -0
  191. package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts +26 -0
  192. package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts.map +1 -0
  193. package/lib/types/client/opendesign/OpenDesignSection.d.ts +19 -0
  194. package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -0
  195. package/lib/types/client/opendesign/api.d.ts +45 -0
  196. package/lib/types/client/opendesign/api.d.ts.map +1 -0
  197. package/lib/types/client/opendesign/locales.d.ts +815 -0
  198. package/lib/types/client/opendesign/locales.d.ts.map +1 -0
  199. package/lib/types/client/opendesign/styles.d.ts +16 -0
  200. package/lib/types/client/opendesign/styles.d.ts.map +1 -0
  201. package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts +14 -0
  202. package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts.map +1 -0
  203. package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts +4 -0
  204. package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts.map +1 -0
  205. package/lib/types/client/qianwen-token-plan/api.d.ts +5 -0
  206. package/lib/types/client/qianwen-token-plan/api.d.ts.map +1 -0
  207. package/lib/types/client/qianwen-token-plan/locales.d.ts +158 -0
  208. package/lib/types/client/qianwen-token-plan/locales.d.ts.map +1 -0
  209. package/lib/types/client/qianwen-token-plan/styles.d.ts +3 -0
  210. package/lib/types/client/qianwen-token-plan/styles.d.ts.map +1 -0
  211. package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts +32 -0
  212. package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts.map +1 -0
  213. package/lib/types/client/qoder/QoderComposerQuota.d.ts +41 -0
  214. package/lib/types/client/qoder/QoderComposerQuota.d.ts.map +1 -0
  215. package/lib/types/client/qoder/QoderSection.d.ts +37 -0
  216. package/lib/types/client/qoder/QoderSection.d.ts.map +1 -0
  217. package/lib/types/client/qoder/api.d.ts +4 -0
  218. package/lib/types/client/qoder/api.d.ts.map +1 -0
  219. package/lib/types/client/qoder/locales.d.ts +322 -0
  220. package/lib/types/client/qoder/locales.d.ts.map +1 -0
  221. package/lib/types/client/qoder/styles.d.ts +16 -0
  222. package/lib/types/client/qoder/styles.d.ts.map +1 -0
  223. package/lib/types/client/qoder/useQoderSection.d.ts +97 -0
  224. package/lib/types/client/qoder/useQoderSection.d.ts.map +1 -0
  225. package/lib/types/client/quota.d.ts +9 -0
  226. package/lib/types/client/quota.d.ts.map +1 -0
  227. package/lib/types/client/relayone/RelayOneComposerQuota.d.ts +14 -0
  228. package/lib/types/client/relayone/RelayOneComposerQuota.d.ts.map +1 -0
  229. package/lib/types/client/relayone/RelayOneSection.d.ts +4 -0
  230. package/lib/types/client/relayone/RelayOneSection.d.ts.map +1 -0
  231. package/lib/types/client/relayone/api.d.ts +5 -0
  232. package/lib/types/client/relayone/api.d.ts.map +1 -0
  233. package/lib/types/client/relayone/locales.d.ts +221 -0
  234. package/lib/types/client/relayone/locales.d.ts.map +1 -0
  235. package/lib/types/client/relayone/quota-format.d.ts +6 -0
  236. package/lib/types/client/relayone/quota-format.d.ts.map +1 -0
  237. package/lib/types/client/relayone/styles.d.ts +3 -0
  238. package/lib/types/client/relayone/styles.d.ts.map +1 -0
  239. package/lib/types/client/relayone/useRelayOneSection.d.ts +32 -0
  240. package/lib/types/client/relayone/useRelayOneSection.d.ts.map +1 -0
  241. package/lib/types/client/step-code/StepCodeComposerQuota.d.ts +50 -0
  242. package/lib/types/client/step-code/StepCodeComposerQuota.d.ts.map +1 -0
  243. package/lib/types/client/step-code/StepCodeSection.d.ts +28 -0
  244. package/lib/types/client/step-code/StepCodeSection.d.ts.map +1 -0
  245. package/lib/types/client/step-code/api.d.ts +4 -0
  246. package/lib/types/client/step-code/api.d.ts.map +1 -0
  247. package/lib/types/client/step-code/locales.d.ts +657 -0
  248. package/lib/types/client/step-code/locales.d.ts.map +1 -0
  249. package/lib/types/client/step-code/styles.d.ts +28 -0
  250. package/lib/types/client/step-code/styles.d.ts.map +1 -0
  251. package/lib/types/client/step-code/useStepCodeSection.d.ts +122 -0
  252. package/lib/types/client/step-code/useStepCodeSection.d.ts.map +1 -0
  253. package/lib/types/client/store.d.ts +19 -0
  254. package/lib/types/client/store.d.ts.map +1 -0
  255. package/lib/types/client/styles.d.ts +26 -0
  256. package/lib/types/client/styles.d.ts.map +1 -0
  257. package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts +34 -0
  258. package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts.map +1 -0
  259. package/lib/types/client/workbuddy/WorkBuddySection.d.ts +91 -0
  260. package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -0
  261. package/lib/types/client/workbuddy/locales.d.ts +768 -0
  262. package/lib/types/client/workbuddy/locales.d.ts.map +1 -0
  263. package/lib/types/client/workbuddy/styles.d.ts +21 -0
  264. package/lib/types/client/workbuddy/styles.d.ts.map +1 -0
  265. package/lib/types/client/workbuddy/useWorkBuddySection.d.ts +149 -0
  266. package/lib/types/client/workbuddy/useWorkBuddySection.d.ts.map +1 -0
  267. package/lib/types/compat.d.ts +139 -0
  268. package/lib/types/compat.d.ts.map +1 -0
  269. package/lib/types/host/adapter.d.ts +43 -0
  270. package/lib/types/host/adapter.d.ts.map +1 -0
  271. package/lib/types/host/callback-server.d.ts +22 -0
  272. package/lib/types/host/callback-server.d.ts.map +1 -0
  273. package/lib/types/host/claude/account-pool.d.ts +583 -0
  274. package/lib/types/host/claude/account-pool.d.ts.map +1 -0
  275. package/lib/types/host/claude/adapter.d.ts +424 -0
  276. package/lib/types/host/claude/adapter.d.ts.map +1 -0
  277. package/lib/types/host/claude/adopt.d.ts +292 -0
  278. package/lib/types/host/claude/adopt.d.ts.map +1 -0
  279. package/lib/types/host/claude/client.d.ts +579 -0
  280. package/lib/types/host/claude/client.d.ts.map +1 -0
  281. package/lib/types/host/claude/mapper.d.ts +802 -0
  282. package/lib/types/host/claude/mapper.d.ts.map +1 -0
  283. package/lib/types/host/claude/model-catalog.d.ts +560 -0
  284. package/lib/types/host/claude/model-catalog.d.ts.map +1 -0
  285. package/lib/types/host/claude/oauth.d.ts +419 -0
  286. package/lib/types/host/claude/oauth.d.ts.map +1 -0
  287. package/lib/types/host/claude/routes.d.ts +131 -0
  288. package/lib/types/host/claude/routes.d.ts.map +1 -0
  289. package/lib/types/host/claude/token-store.d.ts +347 -0
  290. package/lib/types/host/claude/token-store.d.ts.map +1 -0
  291. package/lib/types/host/claude/types.d.ts +417 -0
  292. package/lib/types/host/claude/types.d.ts.map +1 -0
  293. package/lib/types/host/claude-api/adapter.d.ts +70 -0
  294. package/lib/types/host/claude-api/adapter.d.ts.map +1 -0
  295. package/lib/types/host/claude-api/capability-memory.d.ts +4 -0
  296. package/lib/types/host/claude-api/capability-memory.d.ts.map +1 -0
  297. package/lib/types/host/claude-api/catalog-manager.d.ts +57 -0
  298. package/lib/types/host/claude-api/catalog-manager.d.ts.map +1 -0
  299. package/lib/types/host/claude-api/client-version.d.ts +4 -0
  300. package/lib/types/host/claude-api/client-version.d.ts.map +1 -0
  301. package/lib/types/host/claude-api/client.d.ts +55 -0
  302. package/lib/types/host/claude-api/client.d.ts.map +1 -0
  303. package/lib/types/host/claude-api/compaction-instruction.d.ts +23 -0
  304. package/lib/types/host/claude-api/compaction-instruction.d.ts.map +1 -0
  305. package/lib/types/host/claude-api/compaction-store.d.ts +62 -0
  306. package/lib/types/host/claude-api/compaction-store.d.ts.map +1 -0
  307. package/lib/types/host/claude-api/compaction.d.ts +47 -0
  308. package/lib/types/host/claude-api/compaction.d.ts.map +1 -0
  309. package/lib/types/host/claude-api/mapper.d.ts +61 -0
  310. package/lib/types/host/claude-api/mapper.d.ts.map +1 -0
  311. package/lib/types/host/claude-api/model-catalog.d.ts +76 -0
  312. package/lib/types/host/claude-api/model-catalog.d.ts.map +1 -0
  313. package/lib/types/host/claude-api/routes.d.ts +22 -0
  314. package/lib/types/host/claude-api/routes.d.ts.map +1 -0
  315. package/lib/types/host/claude-api/stream.d.ts +88 -0
  316. package/lib/types/host/claude-api/stream.d.ts.map +1 -0
  317. package/lib/types/host/claude-api/token-store.d.ts +60 -0
  318. package/lib/types/host/claude-api/token-store.d.ts.map +1 -0
  319. package/lib/types/host/claude-api/types.d.ts +68 -0
  320. package/lib/types/host/claude-api/types.d.ts.map +1 -0
  321. package/lib/types/host/cline-pass/account-pool.d.ts +63 -0
  322. package/lib/types/host/cline-pass/account-pool.d.ts.map +1 -0
  323. package/lib/types/host/cline-pass/adapter.d.ts +60 -0
  324. package/lib/types/host/cline-pass/adapter.d.ts.map +1 -0
  325. package/lib/types/host/cline-pass/catalog.d.ts +49 -0
  326. package/lib/types/host/cline-pass/catalog.d.ts.map +1 -0
  327. package/lib/types/host/cline-pass/client.d.ts +109 -0
  328. package/lib/types/host/cline-pass/client.d.ts.map +1 -0
  329. package/lib/types/host/cline-pass/engine.d.ts +93 -0
  330. package/lib/types/host/cline-pass/engine.d.ts.map +1 -0
  331. package/lib/types/host/cline-pass/line.d.ts +55 -0
  332. package/lib/types/host/cline-pass/line.d.ts.map +1 -0
  333. package/lib/types/host/cline-pass/mapper.d.ts +138 -0
  334. package/lib/types/host/cline-pass/mapper.d.ts.map +1 -0
  335. package/lib/types/host/cline-pass/oauth.d.ts +134 -0
  336. package/lib/types/host/cline-pass/oauth.d.ts.map +1 -0
  337. package/lib/types/host/cline-pass/protocol.d.ts +44 -0
  338. package/lib/types/host/cline-pass/protocol.d.ts.map +1 -0
  339. package/lib/types/host/cline-pass/routes.d.ts +92 -0
  340. package/lib/types/host/cline-pass/routes.d.ts.map +1 -0
  341. package/lib/types/host/cline-pass/store.d.ts +75 -0
  342. package/lib/types/host/cline-pass/store.d.ts.map +1 -0
  343. package/lib/types/host/cline-pass/token-store.d.ts +170 -0
  344. package/lib/types/host/cline-pass/token-store.d.ts.map +1 -0
  345. package/lib/types/host/cline-pass/tools.d.ts +21 -0
  346. package/lib/types/host/cline-pass/tools.d.ts.map +1 -0
  347. package/lib/types/host/cline-pass/types.d.ts +127 -0
  348. package/lib/types/host/cline-pass/types.d.ts.map +1 -0
  349. package/lib/types/host/codex-account-pool.d.ts +223 -0
  350. package/lib/types/host/codex-account-pool.d.ts.map +1 -0
  351. package/lib/types/host/codex-adopt.d.ts +255 -0
  352. package/lib/types/host/codex-adopt.d.ts.map +1 -0
  353. package/lib/types/host/codex-catalog.d.ts +69 -0
  354. package/lib/types/host/codex-catalog.d.ts.map +1 -0
  355. package/lib/types/host/codex-fetch.d.ts +17 -0
  356. package/lib/types/host/codex-fetch.d.ts.map +1 -0
  357. package/lib/types/host/codex-file-import.d.ts +35 -0
  358. package/lib/types/host/codex-file-import.d.ts.map +1 -0
  359. package/lib/types/host/codex-identity.d.ts +132 -0
  360. package/lib/types/host/codex-identity.d.ts.map +1 -0
  361. package/lib/types/host/codex-remote-compaction.d.ts +41 -0
  362. package/lib/types/host/codex-remote-compaction.d.ts.map +1 -0
  363. package/lib/types/host/codex-search.d.ts +11 -0
  364. package/lib/types/host/codex-search.d.ts.map +1 -0
  365. package/lib/types/host/command-code/account-pool.d.ts +72 -0
  366. package/lib/types/host/command-code/account-pool.d.ts.map +1 -0
  367. package/lib/types/host/command-code/adapter.d.ts +89 -0
  368. package/lib/types/host/command-code/adapter.d.ts.map +1 -0
  369. package/lib/types/host/command-code/client.d.ts +126 -0
  370. package/lib/types/host/command-code/client.d.ts.map +1 -0
  371. package/lib/types/host/command-code/mapper.d.ts +199 -0
  372. package/lib/types/host/command-code/mapper.d.ts.map +1 -0
  373. package/lib/types/host/command-code/model-catalog.d.ts +90 -0
  374. package/lib/types/host/command-code/model-catalog.d.ts.map +1 -0
  375. package/lib/types/host/command-code/oauth.d.ts +95 -0
  376. package/lib/types/host/command-code/oauth.d.ts.map +1 -0
  377. package/lib/types/host/command-code/plans.d.ts +40 -0
  378. package/lib/types/host/command-code/plans.d.ts.map +1 -0
  379. package/lib/types/host/command-code/routes.d.ts +44 -0
  380. package/lib/types/host/command-code/routes.d.ts.map +1 -0
  381. package/lib/types/host/command-code/token-store.d.ts +100 -0
  382. package/lib/types/host/command-code/token-store.d.ts.map +1 -0
  383. package/lib/types/host/command-code/types.d.ts +222 -0
  384. package/lib/types/host/command-code/types.d.ts.map +1 -0
  385. package/lib/types/host/common/account-pool.d.ts +584 -0
  386. package/lib/types/host/common/account-pool.d.ts.map +1 -0
  387. package/lib/types/host/common/account-quota.d.ts +44 -0
  388. package/lib/types/host/common/account-quota.d.ts.map +1 -0
  389. package/lib/types/host/common/brand-compat.d.ts +4 -0
  390. package/lib/types/host/common/brand-compat.d.ts.map +1 -0
  391. package/lib/types/host/common/cache-activity.d.ts +16 -0
  392. package/lib/types/host/common/cache-activity.d.ts.map +1 -0
  393. package/lib/types/host/common/cache-affinity.d.ts +23 -0
  394. package/lib/types/host/common/cache-affinity.d.ts.map +1 -0
  395. package/lib/types/host/common/cache-hint.d.ts +18 -0
  396. package/lib/types/host/common/cache-hint.d.ts.map +1 -0
  397. package/lib/types/host/common/capabilities.d.ts +100 -0
  398. package/lib/types/host/common/capabilities.d.ts.map +1 -0
  399. package/lib/types/host/common/catalog-snapshot.d.ts +80 -0
  400. package/lib/types/host/common/catalog-snapshot.d.ts.map +1 -0
  401. package/lib/types/host/common/claude-capability-memory.d.ts +51 -0
  402. package/lib/types/host/common/claude-capability-memory.d.ts.map +1 -0
  403. package/lib/types/host/common/claude-code-cch.d.ts +28 -0
  404. package/lib/types/host/common/claude-code-cch.d.ts.map +1 -0
  405. package/lib/types/host/common/claude-code-corrections.d.ts +6 -0
  406. package/lib/types/host/common/claude-code-corrections.d.ts.map +1 -0
  407. package/lib/types/host/common/claude-code-first-party.d.ts +68 -0
  408. package/lib/types/host/common/claude-code-first-party.d.ts.map +1 -0
  409. package/lib/types/host/common/claude-code-version.d.ts +90 -0
  410. package/lib/types/host/common/claude-code-version.d.ts.map +1 -0
  411. package/lib/types/host/common/concurrency-gate.d.ts +46 -0
  412. package/lib/types/host/common/concurrency-gate.d.ts.map +1 -0
  413. package/lib/types/host/common/context-budget-fetch.d.ts +7 -0
  414. package/lib/types/host/common/context-budget-fetch.d.ts.map +1 -0
  415. package/lib/types/host/common/context-overflow.d.ts +7 -0
  416. package/lib/types/host/common/context-overflow.d.ts.map +1 -0
  417. package/lib/types/host/common/context-window-overrides.d.ts +12 -0
  418. package/lib/types/host/common/context-window-overrides.d.ts.map +1 -0
  419. package/lib/types/host/common/credential-read-cache.d.ts +82 -0
  420. package/lib/types/host/common/credential-read-cache.d.ts.map +1 -0
  421. package/lib/types/host/common/credentials-compat.d.ts +73 -0
  422. package/lib/types/host/common/credentials-compat.d.ts.map +1 -0
  423. package/lib/types/host/common/failure-classification.d.ts +21 -0
  424. package/lib/types/host/common/failure-classification.d.ts.map +1 -0
  425. package/lib/types/host/common/file-preferences.d.ts +49 -0
  426. package/lib/types/host/common/file-preferences.d.ts.map +1 -0
  427. package/lib/types/host/common/gpt-engineering-guidance.d.ts +16 -0
  428. package/lib/types/host/common/gpt-engineering-guidance.d.ts.map +1 -0
  429. package/lib/types/host/common/home.d.ts +8 -0
  430. package/lib/types/host/common/home.d.ts.map +1 -0
  431. package/lib/types/host/common/hosted-media.d.ts +36 -0
  432. package/lib/types/host/common/hosted-media.d.ts.map +1 -0
  433. package/lib/types/host/common/i18n/en.d.ts +9 -0
  434. package/lib/types/host/common/i18n/en.d.ts.map +1 -0
  435. package/lib/types/host/common/i18n/index.d.ts +13 -0
  436. package/lib/types/host/common/i18n/index.d.ts.map +1 -0
  437. package/lib/types/host/common/i18n/provider-name.d.ts +10 -0
  438. package/lib/types/host/common/i18n/provider-name.d.ts.map +1 -0
  439. package/lib/types/host/common/i18n/ru.d.ts +10 -0
  440. package/lib/types/host/common/i18n/ru.d.ts.map +1 -0
  441. package/lib/types/host/common/i18n/runtime.d.ts +54 -0
  442. package/lib/types/host/common/i18n/runtime.d.ts.map +1 -0
  443. package/lib/types/host/common/i18n/t.d.ts +38 -0
  444. package/lib/types/host/common/i18n/t.d.ts.map +1 -0
  445. package/lib/types/host/common/i18n/zh.d.ts +172 -0
  446. package/lib/types/host/common/i18n/zh.d.ts.map +1 -0
  447. package/lib/types/host/common/idle-watchdog.d.ts +58 -0
  448. package/lib/types/host/common/idle-watchdog.d.ts.map +1 -0
  449. package/lib/types/host/common/legacy-preferences.d.ts +29 -0
  450. package/lib/types/host/common/legacy-preferences.d.ts.map +1 -0
  451. package/lib/types/host/common/llm-compat.d.ts +157 -0
  452. package/lib/types/host/common/llm-compat.d.ts.map +1 -0
  453. package/lib/types/host/common/model-request-control.d.ts +21 -0
  454. package/lib/types/host/common/model-request-control.d.ts.map +1 -0
  455. package/lib/types/host/common/orphan-tool-calls.d.ts +47 -0
  456. package/lib/types/host/common/orphan-tool-calls.d.ts.map +1 -0
  457. package/lib/types/host/common/output-reservation.d.ts +11 -0
  458. package/lib/types/host/common/output-reservation.d.ts.map +1 -0
  459. package/lib/types/host/common/pool-storage-settings.d.ts +41 -0
  460. package/lib/types/host/common/pool-storage-settings.d.ts.map +1 -0
  461. package/lib/types/host/common/pool-storage.d.ts +143 -0
  462. package/lib/types/host/common/pool-storage.d.ts.map +1 -0
  463. package/lib/types/host/common/prefix-request-coordinator.d.ts +46 -0
  464. package/lib/types/host/common/prefix-request-coordinator.d.ts.map +1 -0
  465. package/lib/types/host/common/prefix-stability.d.ts +24 -0
  466. package/lib/types/host/common/prefix-stability.d.ts.map +1 -0
  467. package/lib/types/host/common/prompt-cache-policy.d.ts +47 -0
  468. package/lib/types/host/common/prompt-cache-policy.d.ts.map +1 -0
  469. package/lib/types/host/common/prompt-estimate.d.ts +22 -0
  470. package/lib/types/host/common/prompt-estimate.d.ts.map +1 -0
  471. package/lib/types/host/common/provider-route.d.ts +56 -0
  472. package/lib/types/host/common/provider-route.d.ts.map +1 -0
  473. package/lib/types/host/common/quota-refresh.d.ts +35 -0
  474. package/lib/types/host/common/quota-refresh.d.ts.map +1 -0
  475. package/lib/types/host/common/reasoning-dialect.d.ts +24 -0
  476. package/lib/types/host/common/reasoning-dialect.d.ts.map +1 -0
  477. package/lib/types/host/common/reasoning-efforts.d.ts +2 -0
  478. package/lib/types/host/common/reasoning-efforts.d.ts.map +1 -0
  479. package/lib/types/host/common/request-diagnostics.d.ts +79 -0
  480. package/lib/types/host/common/request-diagnostics.d.ts.map +1 -0
  481. package/lib/types/host/common/request-images.d.ts +275 -0
  482. package/lib/types/host/common/request-images.d.ts.map +1 -0
  483. package/lib/types/host/common/same-origin.d.ts +30 -0
  484. package/lib/types/host/common/same-origin.d.ts.map +1 -0
  485. package/lib/types/host/common/session-cache-state.d.ts +29 -0
  486. package/lib/types/host/common/session-cache-state.d.ts.map +1 -0
  487. package/lib/types/host/common/session-effort-memory.d.ts +35 -0
  488. package/lib/types/host/common/session-effort-memory.d.ts.map +1 -0
  489. package/lib/types/host/common/settings-compat.d.ts +55 -0
  490. package/lib/types/host/common/settings-compat.d.ts.map +1 -0
  491. package/lib/types/host/common/sticky-image-budget.d.ts +10 -0
  492. package/lib/types/host/common/sticky-image-budget.d.ts.map +1 -0
  493. package/lib/types/host/common/stream-error.d.ts +93 -0
  494. package/lib/types/host/common/stream-error.d.ts.map +1 -0
  495. package/lib/types/host/common/tool-schema.d.ts +27 -0
  496. package/lib/types/host/common/tool-schema.d.ts.map +1 -0
  497. package/lib/types/host/common/video-request.d.ts +81 -0
  498. package/lib/types/host/common/video-request.d.ts.map +1 -0
  499. package/lib/types/host/common/video.d.ts +90 -0
  500. package/lib/types/host/common/video.d.ts.map +1 -0
  501. package/lib/types/host/common/webserver-compat.d.ts +7 -0
  502. package/lib/types/host/common/webserver-compat.d.ts.map +1 -0
  503. package/lib/types/host/credential-store-secret-service.d.ts +66 -0
  504. package/lib/types/host/credential-store-secret-service.d.ts.map +1 -0
  505. package/lib/types/host/fetch-address-policy.d.ts +79 -0
  506. package/lib/types/host/fetch-address-policy.d.ts.map +1 -0
  507. package/lib/types/host/fetch-configuration.d.ts +6 -0
  508. package/lib/types/host/fetch-configuration.d.ts.map +1 -0
  509. package/lib/types/host/glm-coding-plan/account-pool.d.ts +152 -0
  510. package/lib/types/host/glm-coding-plan/account-pool.d.ts.map +1 -0
  511. package/lib/types/host/glm-coding-plan/adapter.d.ts +169 -0
  512. package/lib/types/host/glm-coding-plan/adapter.d.ts.map +1 -0
  513. package/lib/types/host/glm-coding-plan/adopt.d.ts +354 -0
  514. package/lib/types/host/glm-coding-plan/adopt.d.ts.map +1 -0
  515. package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts +99 -0
  516. package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts.map +1 -0
  517. package/lib/types/host/glm-coding-plan/client.d.ts +218 -0
  518. package/lib/types/host/glm-coding-plan/client.d.ts.map +1 -0
  519. package/lib/types/host/glm-coding-plan/exchange.d.ts +223 -0
  520. package/lib/types/host/glm-coding-plan/exchange.d.ts.map +1 -0
  521. package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts +312 -0
  522. package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts.map +1 -0
  523. package/lib/types/host/glm-coding-plan/mapper-openai.d.ts +213 -0
  524. package/lib/types/host/glm-coding-plan/mapper-openai.d.ts.map +1 -0
  525. package/lib/types/host/glm-coding-plan/model-catalog.d.ts +241 -0
  526. package/lib/types/host/glm-coding-plan/model-catalog.d.ts.map +1 -0
  527. package/lib/types/host/glm-coding-plan/oauth.d.ts +211 -0
  528. package/lib/types/host/glm-coding-plan/oauth.d.ts.map +1 -0
  529. package/lib/types/host/glm-coding-plan/routes.d.ts +93 -0
  530. package/lib/types/host/glm-coding-plan/routes.d.ts.map +1 -0
  531. package/lib/types/host/glm-coding-plan/token-store.d.ts +202 -0
  532. package/lib/types/host/glm-coding-plan/token-store.d.ts.map +1 -0
  533. package/lib/types/host/glm-coding-plan/types.d.ts +492 -0
  534. package/lib/types/host/glm-coding-plan/types.d.ts.map +1 -0
  535. package/lib/types/host/hub-overview.d.ts +32 -0
  536. package/lib/types/host/hub-overview.d.ts.map +1 -0
  537. package/lib/types/host/kimi-code/account-pool.d.ts +124 -0
  538. package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -0
  539. package/lib/types/host/kimi-code/adapter.d.ts +451 -0
  540. package/lib/types/host/kimi-code/adapter.d.ts.map +1 -0
  541. package/lib/types/host/kimi-code/api-key.d.ts +55 -0
  542. package/lib/types/host/kimi-code/api-key.d.ts.map +1 -0
  543. package/lib/types/host/kimi-code/cache-affinity.d.ts +112 -0
  544. package/lib/types/host/kimi-code/cache-affinity.d.ts.map +1 -0
  545. package/lib/types/host/kimi-code/cache-hint.d.ts +65 -0
  546. package/lib/types/host/kimi-code/cache-hint.d.ts.map +1 -0
  547. package/lib/types/host/kimi-code/client.d.ts +306 -0
  548. package/lib/types/host/kimi-code/client.d.ts.map +1 -0
  549. package/lib/types/host/kimi-code/mapper.d.ts +913 -0
  550. package/lib/types/host/kimi-code/mapper.d.ts.map +1 -0
  551. package/lib/types/host/kimi-code/media-files.d.ts +206 -0
  552. package/lib/types/host/kimi-code/media-files.d.ts.map +1 -0
  553. package/lib/types/host/kimi-code/modalities.d.ts +23 -0
  554. package/lib/types/host/kimi-code/modalities.d.ts.map +1 -0
  555. package/lib/types/host/kimi-code/model-catalog.d.ts +125 -0
  556. package/lib/types/host/kimi-code/model-catalog.d.ts.map +1 -0
  557. package/lib/types/host/kimi-code/oauth.d.ts +213 -0
  558. package/lib/types/host/kimi-code/oauth.d.ts.map +1 -0
  559. package/lib/types/host/kimi-code/routes.d.ts +52 -0
  560. package/lib/types/host/kimi-code/routes.d.ts.map +1 -0
  561. package/lib/types/host/kimi-code/session-cache-state.d.ts +156 -0
  562. package/lib/types/host/kimi-code/session-cache-state.d.ts.map +1 -0
  563. package/lib/types/host/kimi-code/token-store.d.ts +182 -0
  564. package/lib/types/host/kimi-code/token-store.d.ts.map +1 -0
  565. package/lib/types/host/kimi-code/tool-argument-guard.d.ts +43 -0
  566. package/lib/types/host/kimi-code/tool-argument-guard.d.ts.map +1 -0
  567. package/lib/types/host/kimi-code/types.d.ts +458 -0
  568. package/lib/types/host/kimi-code/types.d.ts.map +1 -0
  569. package/lib/types/host/kimi-code/warmup-streak.d.ts +66 -0
  570. package/lib/types/host/kimi-code/warmup-streak.d.ts.map +1 -0
  571. package/lib/types/host/minimax-code/account-pool.d.ts +309 -0
  572. package/lib/types/host/minimax-code/account-pool.d.ts.map +1 -0
  573. package/lib/types/host/minimax-code/adapter.d.ts +207 -0
  574. package/lib/types/host/minimax-code/adapter.d.ts.map +1 -0
  575. package/lib/types/host/minimax-code/checkin-gateway.d.ts +145 -0
  576. package/lib/types/host/minimax-code/checkin-gateway.d.ts.map +1 -0
  577. package/lib/types/host/minimax-code/checkin.d.ts +207 -0
  578. package/lib/types/host/minimax-code/checkin.d.ts.map +1 -0
  579. package/lib/types/host/minimax-code/client.d.ts +242 -0
  580. package/lib/types/host/minimax-code/client.d.ts.map +1 -0
  581. package/lib/types/host/minimax-code/files-api.d.ts +117 -0
  582. package/lib/types/host/minimax-code/files-api.d.ts.map +1 -0
  583. package/lib/types/host/minimax-code/iso-bmff-duration.d.ts +84 -0
  584. package/lib/types/host/minimax-code/iso-bmff-duration.d.ts.map +1 -0
  585. package/lib/types/host/minimax-code/mapper.d.ts +351 -0
  586. package/lib/types/host/minimax-code/mapper.d.ts.map +1 -0
  587. package/lib/types/host/minimax-code/matrix-client.d.ts +168 -0
  588. package/lib/types/host/minimax-code/matrix-client.d.ts.map +1 -0
  589. package/lib/types/host/minimax-code/modalities.d.ts +20 -0
  590. package/lib/types/host/minimax-code/modalities.d.ts.map +1 -0
  591. package/lib/types/host/minimax-code/model-catalog.d.ts +227 -0
  592. package/lib/types/host/minimax-code/model-catalog.d.ts.map +1 -0
  593. package/lib/types/host/minimax-code/oauth.d.ts +220 -0
  594. package/lib/types/host/minimax-code/oauth.d.ts.map +1 -0
  595. package/lib/types/host/minimax-code/reset-card.d.ts +136 -0
  596. package/lib/types/host/minimax-code/reset-card.d.ts.map +1 -0
  597. package/lib/types/host/minimax-code/routes.d.ts +82 -0
  598. package/lib/types/host/minimax-code/routes.d.ts.map +1 -0
  599. package/lib/types/host/minimax-code/token-store.d.ts +328 -0
  600. package/lib/types/host/minimax-code/token-store.d.ts.map +1 -0
  601. package/lib/types/host/minimax-code/tool-argument-repair.d.ts +72 -0
  602. package/lib/types/host/minimax-code/tool-argument-repair.d.ts.map +1 -0
  603. package/lib/types/host/minimax-code/types.d.ts +378 -0
  604. package/lib/types/host/minimax-code/types.d.ts.map +1 -0
  605. package/lib/types/host/model-catalog.d.ts +43 -0
  606. package/lib/types/host/model-catalog.d.ts.map +1 -0
  607. package/lib/types/host/oauth-service.d.ts +242 -0
  608. package/lib/types/host/oauth-service.d.ts.map +1 -0
  609. package/lib/types/host/ollama/account-pool.d.ts +65 -0
  610. package/lib/types/host/ollama/account-pool.d.ts.map +1 -0
  611. package/lib/types/host/ollama/adapter.d.ts +90 -0
  612. package/lib/types/host/ollama/adapter.d.ts.map +1 -0
  613. package/lib/types/host/ollama/client.d.ts +166 -0
  614. package/lib/types/host/ollama/client.d.ts.map +1 -0
  615. package/lib/types/host/ollama/mapper.d.ts +49 -0
  616. package/lib/types/host/ollama/mapper.d.ts.map +1 -0
  617. package/lib/types/host/ollama/routes.d.ts +22 -0
  618. package/lib/types/host/ollama/routes.d.ts.map +1 -0
  619. package/lib/types/host/ollama/token-store.d.ts +78 -0
  620. package/lib/types/host/ollama/token-store.d.ts.map +1 -0
  621. package/lib/types/host/ollama/types.d.ts +247 -0
  622. package/lib/types/host/ollama/types.d.ts.map +1 -0
  623. package/lib/types/host/opencode-go/account-pool.d.ts +50 -0
  624. package/lib/types/host/opencode-go/account-pool.d.ts.map +1 -0
  625. package/lib/types/host/opencode-go/adapter.d.ts +38 -0
  626. package/lib/types/host/opencode-go/adapter.d.ts.map +1 -0
  627. package/lib/types/host/opencode-go/client.d.ts +13 -0
  628. package/lib/types/host/opencode-go/client.d.ts.map +1 -0
  629. package/lib/types/host/opencode-go/mapper-gemini.d.ts +13 -0
  630. package/lib/types/host/opencode-go/mapper-gemini.d.ts.map +1 -0
  631. package/lib/types/host/opencode-go/mapper-messages.d.ts +8 -0
  632. package/lib/types/host/opencode-go/mapper-messages.d.ts.map +1 -0
  633. package/lib/types/host/opencode-go/mapper-responses.d.ts +9 -0
  634. package/lib/types/host/opencode-go/mapper-responses.d.ts.map +1 -0
  635. package/lib/types/host/opencode-go/mapper.d.ts +38 -0
  636. package/lib/types/host/opencode-go/mapper.d.ts.map +1 -0
  637. package/lib/types/host/opencode-go/model-catalog.d.ts +57 -0
  638. package/lib/types/host/opencode-go/model-catalog.d.ts.map +1 -0
  639. package/lib/types/host/opencode-go/native-shared.d.ts +31 -0
  640. package/lib/types/host/opencode-go/native-shared.d.ts.map +1 -0
  641. package/lib/types/host/opencode-go/protocol.d.ts +13 -0
  642. package/lib/types/host/opencode-go/protocol.d.ts.map +1 -0
  643. package/lib/types/host/opencode-go/routes.d.ts +13 -0
  644. package/lib/types/host/opencode-go/routes.d.ts.map +1 -0
  645. package/lib/types/host/opencode-go/token-store.d.ts +29 -0
  646. package/lib/types/host/opencode-go/token-store.d.ts.map +1 -0
  647. package/lib/types/host/opencode-go/types.d.ts +20 -0
  648. package/lib/types/host/opencode-go/types.d.ts.map +1 -0
  649. package/lib/types/host/opendesign/account-pool.d.ts +54 -0
  650. package/lib/types/host/opendesign/account-pool.d.ts.map +1 -0
  651. package/lib/types/host/opendesign/adapter.d.ts +88 -0
  652. package/lib/types/host/opendesign/adapter.d.ts.map +1 -0
  653. package/lib/types/host/opendesign/catalog.d.ts +58 -0
  654. package/lib/types/host/opendesign/catalog.d.ts.map +1 -0
  655. package/lib/types/host/opendesign/client.d.ts +304 -0
  656. package/lib/types/host/opendesign/client.d.ts.map +1 -0
  657. package/lib/types/host/opendesign/line.d.ts +60 -0
  658. package/lib/types/host/opendesign/line.d.ts.map +1 -0
  659. package/lib/types/host/opendesign/mapper.d.ts +218 -0
  660. package/lib/types/host/opendesign/mapper.d.ts.map +1 -0
  661. package/lib/types/host/opendesign/oauth.d.ts +105 -0
  662. package/lib/types/host/opendesign/oauth.d.ts.map +1 -0
  663. package/lib/types/host/opendesign/routes.d.ts +75 -0
  664. package/lib/types/host/opendesign/routes.d.ts.map +1 -0
  665. package/lib/types/host/opendesign/token-store.d.ts +241 -0
  666. package/lib/types/host/opendesign/token-store.d.ts.map +1 -0
  667. package/lib/types/host/opendesign/types.d.ts +235 -0
  668. package/lib/types/host/opendesign/types.d.ts.map +1 -0
  669. package/lib/types/host/platform-token-store.d.ts +3 -0
  670. package/lib/types/host/platform-token-store.d.ts.map +1 -0
  671. package/lib/types/host/preferences.d.ts +26 -0
  672. package/lib/types/host/preferences.d.ts.map +1 -0
  673. package/lib/types/host/proxy-manager.d.ts +261 -0
  674. package/lib/types/host/proxy-manager.d.ts.map +1 -0
  675. package/lib/types/host/qianwen-token-plan/adapter.d.ts +37 -0
  676. package/lib/types/host/qianwen-token-plan/adapter.d.ts.map +1 -0
  677. package/lib/types/host/qianwen-token-plan/cache-stats.d.ts +17 -0
  678. package/lib/types/host/qianwen-token-plan/cache-stats.d.ts.map +1 -0
  679. package/lib/types/host/qianwen-token-plan/client.d.ts +5 -0
  680. package/lib/types/host/qianwen-token-plan/client.d.ts.map +1 -0
  681. package/lib/types/host/qianwen-token-plan/mapper.d.ts +71 -0
  682. package/lib/types/host/qianwen-token-plan/mapper.d.ts.map +1 -0
  683. package/lib/types/host/qianwen-token-plan/model-catalog.d.ts +28 -0
  684. package/lib/types/host/qianwen-token-plan/model-catalog.d.ts.map +1 -0
  685. package/lib/types/host/qianwen-token-plan/routes.d.ts +12 -0
  686. package/lib/types/host/qianwen-token-plan/routes.d.ts.map +1 -0
  687. package/lib/types/host/qianwen-token-plan/token-store.d.ts +56 -0
  688. package/lib/types/host/qianwen-token-plan/token-store.d.ts.map +1 -0
  689. package/lib/types/host/qianwen-token-plan/types.d.ts +13 -0
  690. package/lib/types/host/qianwen-token-plan/types.d.ts.map +1 -0
  691. package/lib/types/host/qoder/account-pool.d.ts +141 -0
  692. package/lib/types/host/qoder/account-pool.d.ts.map +1 -0
  693. package/lib/types/host/qoder/adapter.d.ts +167 -0
  694. package/lib/types/host/qoder/adapter.d.ts.map +1 -0
  695. package/lib/types/host/qoder/adopt.d.ts +146 -0
  696. package/lib/types/host/qoder/adopt.d.ts.map +1 -0
  697. package/lib/types/host/qoder/client.d.ts +323 -0
  698. package/lib/types/host/qoder/client.d.ts.map +1 -0
  699. package/lib/types/host/qoder/cosy.d.ts +173 -0
  700. package/lib/types/host/qoder/cosy.d.ts.map +1 -0
  701. package/lib/types/host/qoder/mapper.d.ts +332 -0
  702. package/lib/types/host/qoder/mapper.d.ts.map +1 -0
  703. package/lib/types/host/qoder/model-catalog.d.ts +231 -0
  704. package/lib/types/host/qoder/model-catalog.d.ts.map +1 -0
  705. package/lib/types/host/qoder/oauth.d.ts +151 -0
  706. package/lib/types/host/qoder/oauth.d.ts.map +1 -0
  707. package/lib/types/host/qoder/routes.d.ts +119 -0
  708. package/lib/types/host/qoder/routes.d.ts.map +1 -0
  709. package/lib/types/host/qoder/token-store.d.ts +280 -0
  710. package/lib/types/host/qoder/token-store.d.ts.map +1 -0
  711. package/lib/types/host/qoder/types.d.ts +262 -0
  712. package/lib/types/host/qoder/types.d.ts.map +1 -0
  713. package/lib/types/host/relayone/account-pool.d.ts +129 -0
  714. package/lib/types/host/relayone/account-pool.d.ts.map +1 -0
  715. package/lib/types/host/relayone/adapter.d.ts +87 -0
  716. package/lib/types/host/relayone/adapter.d.ts.map +1 -0
  717. package/lib/types/host/relayone/catalog-manager.d.ts +45 -0
  718. package/lib/types/host/relayone/catalog-manager.d.ts.map +1 -0
  719. package/lib/types/host/relayone/client.d.ts +5 -0
  720. package/lib/types/host/relayone/client.d.ts.map +1 -0
  721. package/lib/types/host/relayone/mapper-anthropic.d.ts +49 -0
  722. package/lib/types/host/relayone/mapper-anthropic.d.ts.map +1 -0
  723. package/lib/types/host/relayone/mapper-openai.d.ts +36 -0
  724. package/lib/types/host/relayone/mapper-openai.d.ts.map +1 -0
  725. package/lib/types/host/relayone/mapper-shared.d.ts +25 -0
  726. package/lib/types/host/relayone/mapper-shared.d.ts.map +1 -0
  727. package/lib/types/host/relayone/model-catalog.d.ts +70 -0
  728. package/lib/types/host/relayone/model-catalog.d.ts.map +1 -0
  729. package/lib/types/host/relayone/quota.d.ts +29 -0
  730. package/lib/types/host/relayone/quota.d.ts.map +1 -0
  731. package/lib/types/host/relayone/routes.d.ts +33 -0
  732. package/lib/types/host/relayone/routes.d.ts.map +1 -0
  733. package/lib/types/host/relayone/token-store.d.ts +49 -0
  734. package/lib/types/host/relayone/token-store.d.ts.map +1 -0
  735. package/lib/types/host/relayone/types.d.ts +22 -0
  736. package/lib/types/host/relayone/types.d.ts.map +1 -0
  737. package/lib/types/host/responses-client.d.ts +125 -0
  738. package/lib/types/host/responses-client.d.ts.map +1 -0
  739. package/lib/types/host/responses-mapper.d.ts +133 -0
  740. package/lib/types/host/responses-mapper.d.ts.map +1 -0
  741. package/lib/types/host/routes.d.ts +30 -0
  742. package/lib/types/host/routes.d.ts.map +1 -0
  743. package/lib/types/host/search-provider-switcher.d.ts +45 -0
  744. package/lib/types/host/search-provider-switcher.d.ts.map +1 -0
  745. package/lib/types/host/session-title-guard/index.d.ts +80 -0
  746. package/lib/types/host/session-title-guard/index.d.ts.map +1 -0
  747. package/lib/types/host/step-code/account-pool.d.ts +187 -0
  748. package/lib/types/host/step-code/account-pool.d.ts.map +1 -0
  749. package/lib/types/host/step-code/adapter.d.ts +156 -0
  750. package/lib/types/host/step-code/adapter.d.ts.map +1 -0
  751. package/lib/types/host/step-code/adopt.d.ts +201 -0
  752. package/lib/types/host/step-code/adopt.d.ts.map +1 -0
  753. package/lib/types/host/step-code/cache-stats.d.ts +181 -0
  754. package/lib/types/host/step-code/cache-stats.d.ts.map +1 -0
  755. package/lib/types/host/step-code/client.d.ts +339 -0
  756. package/lib/types/host/step-code/client.d.ts.map +1 -0
  757. package/lib/types/host/step-code/mapper.d.ts +305 -0
  758. package/lib/types/host/step-code/mapper.d.ts.map +1 -0
  759. package/lib/types/host/step-code/model-catalog.d.ts +247 -0
  760. package/lib/types/host/step-code/model-catalog.d.ts.map +1 -0
  761. package/lib/types/host/step-code/oauth.d.ts +265 -0
  762. package/lib/types/host/step-code/oauth.d.ts.map +1 -0
  763. package/lib/types/host/step-code/routes.d.ts +129 -0
  764. package/lib/types/host/step-code/routes.d.ts.map +1 -0
  765. package/lib/types/host/step-code/token-store.d.ts +325 -0
  766. package/lib/types/host/step-code/token-store.d.ts.map +1 -0
  767. package/lib/types/host/step-code/types.d.ts +492 -0
  768. package/lib/types/host/step-code/types.d.ts.map +1 -0
  769. package/lib/types/host/token-store-linux.d.ts +20 -0
  770. package/lib/types/host/token-store-linux.d.ts.map +1 -0
  771. package/lib/types/host/token-store-macos.d.ts +39 -0
  772. package/lib/types/host/token-store-macos.d.ts.map +1 -0
  773. package/lib/types/host/token-store-windows.d.ts +26 -0
  774. package/lib/types/host/token-store-windows.d.ts.map +1 -0
  775. package/lib/types/host/token-store.d.ts +81 -0
  776. package/lib/types/host/token-store.d.ts.map +1 -0
  777. package/lib/types/host/usage-service.d.ts +109 -0
  778. package/lib/types/host/usage-service.d.ts.map +1 -0
  779. package/lib/types/host/web-provider-reconciler.d.ts +34 -0
  780. package/lib/types/host/web-provider-reconciler.d.ts.map +1 -0
  781. package/lib/types/host/wire-auth.d.ts +63 -0
  782. package/lib/types/host/wire-auth.d.ts.map +1 -0
  783. package/lib/types/host/workbuddy/account-pool.d.ts +389 -0
  784. package/lib/types/host/workbuddy/account-pool.d.ts.map +1 -0
  785. package/lib/types/host/workbuddy/adapter.d.ts +248 -0
  786. package/lib/types/host/workbuddy/adapter.d.ts.map +1 -0
  787. package/lib/types/host/workbuddy/atrest.d.ts +98 -0
  788. package/lib/types/host/workbuddy/atrest.d.ts.map +1 -0
  789. package/lib/types/host/workbuddy/checkin.d.ts +150 -0
  790. package/lib/types/host/workbuddy/checkin.d.ts.map +1 -0
  791. package/lib/types/host/workbuddy/client.d.ts +214 -0
  792. package/lib/types/host/workbuddy/client.d.ts.map +1 -0
  793. package/lib/types/host/workbuddy/dsml.d.ts +55 -0
  794. package/lib/types/host/workbuddy/dsml.d.ts.map +1 -0
  795. package/lib/types/host/workbuddy/guardrails.d.ts +111 -0
  796. package/lib/types/host/workbuddy/guardrails.d.ts.map +1 -0
  797. package/lib/types/host/workbuddy/identity.d.ts +71 -0
  798. package/lib/types/host/workbuddy/identity.d.ts.map +1 -0
  799. package/lib/types/host/workbuddy/mapper.d.ts +238 -0
  800. package/lib/types/host/workbuddy/mapper.d.ts.map +1 -0
  801. package/lib/types/host/workbuddy/model-catalog.d.ts +239 -0
  802. package/lib/types/host/workbuddy/model-catalog.d.ts.map +1 -0
  803. package/lib/types/host/workbuddy/oauth.d.ts +47 -0
  804. package/lib/types/host/workbuddy/oauth.d.ts.map +1 -0
  805. package/lib/types/host/workbuddy/outbound-identity.d.ts +139 -0
  806. package/lib/types/host/workbuddy/outbound-identity.d.ts.map +1 -0
  807. package/lib/types/host/workbuddy/routes.d.ts +56 -0
  808. package/lib/types/host/workbuddy/routes.d.ts.map +1 -0
  809. package/lib/types/host/workbuddy/token-store.d.ts +370 -0
  810. package/lib/types/host/workbuddy/token-store.d.ts.map +1 -0
  811. package/lib/types/host/workbuddy/types.d.ts +185 -0
  812. package/lib/types/host/workbuddy/types.d.ts.map +1 -0
  813. package/lib/types/index.d.ts +248 -0
  814. package/lib/types/index.d.ts.map +1 -0
  815. package/lib/types/shared/account-pool-contracts.d.ts +99 -0
  816. package/lib/types/shared/account-pool-contracts.d.ts.map +1 -0
  817. package/lib/types/shared/claude-api-contracts.d.ts +98 -0
  818. package/lib/types/shared/claude-api-contracts.d.ts.map +1 -0
  819. package/lib/types/shared/claude-contracts.d.ts +370 -0
  820. package/lib/types/shared/claude-contracts.d.ts.map +1 -0
  821. package/lib/types/shared/cline-pass-contracts.d.ts +234 -0
  822. package/lib/types/shared/cline-pass-contracts.d.ts.map +1 -0
  823. package/lib/types/shared/command-code-contracts.d.ts +163 -0
  824. package/lib/types/shared/command-code-contracts.d.ts.map +1 -0
  825. package/lib/types/shared/contracts.d.ts +343 -0
  826. package/lib/types/shared/contracts.d.ts.map +1 -0
  827. package/lib/types/shared/glm-coding-plan-contracts.d.ts +315 -0
  828. package/lib/types/shared/glm-coding-plan-contracts.d.ts.map +1 -0
  829. package/lib/types/shared/hub-contracts.d.ts +37 -0
  830. package/lib/types/shared/hub-contracts.d.ts.map +1 -0
  831. package/lib/types/shared/i18n-contracts.d.ts +35 -0
  832. package/lib/types/shared/i18n-contracts.d.ts.map +1 -0
  833. package/lib/types/shared/kimi-code-contracts.d.ts +435 -0
  834. package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -0
  835. package/lib/types/shared/minimax-code-contracts.d.ts +263 -0
  836. package/lib/types/shared/minimax-code-contracts.d.ts.map +1 -0
  837. package/lib/types/shared/model-catalog.d.ts +302 -0
  838. package/lib/types/shared/model-catalog.d.ts.map +1 -0
  839. package/lib/types/shared/ollama-contracts.d.ts +73 -0
  840. package/lib/types/shared/ollama-contracts.d.ts.map +1 -0
  841. package/lib/types/shared/opencode-go-contracts.d.ts +80 -0
  842. package/lib/types/shared/opencode-go-contracts.d.ts.map +1 -0
  843. package/lib/types/shared/opendesign-contracts.d.ts +262 -0
  844. package/lib/types/shared/opendesign-contracts.d.ts.map +1 -0
  845. package/lib/types/shared/preferences.d.ts +60 -0
  846. package/lib/types/shared/preferences.d.ts.map +1 -0
  847. package/lib/types/shared/qianwen-token-plan-contracts.d.ts +94 -0
  848. package/lib/types/shared/qianwen-token-plan-contracts.d.ts.map +1 -0
  849. package/lib/types/shared/qoder-contracts.d.ts +342 -0
  850. package/lib/types/shared/qoder-contracts.d.ts.map +1 -0
  851. package/lib/types/shared/relayone-contracts.d.ts +95 -0
  852. package/lib/types/shared/relayone-contracts.d.ts.map +1 -0
  853. package/lib/types/shared/step-code-contracts.d.ts +443 -0
  854. package/lib/types/shared/step-code-contracts.d.ts.map +1 -0
  855. package/lib/types/shared/workbuddy-contracts.d.ts +531 -0
  856. package/lib/types/shared/workbuddy-contracts.d.ts.map +1 -0
  857. package/package.json +147 -4
@@ -0,0 +1,343 @@
1
+ import type { AccountRotationStrategy, PoolAccountSummaryDto } from './account-pool-contracts.ts';
2
+ export interface SanitizedAccountDto {
3
+ email: string | null;
4
+ planType: string | null;
5
+ accountIdSuffix: string | null;
6
+ tokenExpiresAt: number;
7
+ }
8
+ export type CredentialStorageKind = 'windows-dpapi' | 'macos-keychain' | 'linux-file' | 'memory';
9
+ export interface CredentialStorageDto {
10
+ kind: CredentialStorageKind;
11
+ encrypted: boolean;
12
+ available: boolean;
13
+ }
14
+ /**
15
+ * The configured account-pool storage choice (`poolStorage`).
16
+ *
17
+ * Two values and no automatic mode: which store holds the account pool is a
18
+ * deployment fact, and inferring it from whatever the host happens to answer is
19
+ * how a pool silently moves between stores. `keyring` is the default because it
20
+ * is what every desktop install already had.
21
+ */
22
+ export type PoolStorageMode = 'keyring' | 'credentials';
23
+ /**
24
+ * The backend that actually holds the pool document on this host.
25
+ *
26
+ * `keyring` resolves to DPAPI on Windows and the Keychain on macOS, so the card
27
+ * has to name the store a user got rather than the value they picked.
28
+ */
29
+ export type PoolStorageBackend = 'keyring' | 'credentials' | 'dpapi' | 'keychain';
30
+ /** Which backend stores the account pool, and whether it encrypts the document at rest. */
31
+ export interface PoolStorageDto {
32
+ /** The configured value this host was resolved with. */
33
+ mode: PoolStorageMode;
34
+ /** The backend in use. */
35
+ backend: PoolStorageBackend;
36
+ /** Whether the document is encrypted at rest by this backend. */
37
+ encrypted: boolean;
38
+ /**
39
+ * Why the configured backend cannot be used here. Absent means it works.
40
+ *
41
+ * A reason CODE rather than a sentence: the card translates it, and a host
42
+ * sentence travelling through the wire would reach a Russian page in English.
43
+ */
44
+ unavailable?: PoolStorageUnavailableReason;
45
+ }
46
+ /**
47
+ * Why the pool cannot be read or written here.
48
+ *
49
+ * `keyring-unreachable` is a server without a desktop keyring (or with a locked
50
+ * one) — the state this option exists for; `no-credentials-service` is a host
51
+ * older than DSH's credential seam, which cannot honour an explicit
52
+ * `credentials` choice; `store-unreadable` is a store that IS configured and
53
+ * usable but did not answer this time (a keyring that refused, a process that
54
+ * timed out). It exists because that failure used to render as "no accounts",
55
+ * which reads as data loss over a document that is still intact.
56
+ */
57
+ export type PoolStorageUnavailableReason = 'keyring-unreachable' | 'no-credentials-service' | 'store-unreadable';
58
+ export interface FetchConfigurationDto {
59
+ fetchProvider: 'auto' | 'plugin' | 'dsh';
60
+ fetchMaxBodyChars: number;
61
+ fetchMaxResponseBytes: number;
62
+ }
63
+ export interface PluginStatusDto {
64
+ fetchConfiguration?: FetchConfigurationDto;
65
+ switcher?: {
66
+ state: 'idle' | 'applying' | 'applied' | 'missing' | 'failed';
67
+ configuredSearchProvider: string | null;
68
+ configuredFetchProvider: string | null;
69
+ } | null;
70
+ authenticated: boolean;
71
+ account: SanitizedAccountDto | null;
72
+ storage: CredentialStorageDto;
73
+ login: {
74
+ active: boolean;
75
+ loginId: string | null;
76
+ expiresAt: number | null;
77
+ /**
78
+ * The device code of the sign-in in progress, when that is what is running.
79
+ *
80
+ * Carried on the status so a card reloaded mid-flow can still show the code
81
+ * the user has to type: losing it would strand a sign-in that is still
82
+ * waiting upstream. Absent for the browser flow and when nothing is running.
83
+ */
84
+ device?: DeviceLoginDto | null;
85
+ };
86
+ quota: QuotaStatusDto;
87
+ /**
88
+ * Whether a quota refresh is running behind this answer.
89
+ *
90
+ * The card renders the snapshot it already had instead of waiting on the
91
+ * upstream request; when this is true the client asks again shortly so the
92
+ * refreshed snapshot reaches the UI.
93
+ */
94
+ quotaRefreshing?: boolean;
95
+ preferences: SubscriptionPreferencesDto;
96
+ /** Signed-in accounts; empty or absent when no pool is installed. */
97
+ accounts?: PoolAccountSummaryDto[];
98
+ /** Account the next request would use. */
99
+ activeAccountId?: string;
100
+ rotationStrategy?: AccountRotationStrategy;
101
+ /**
102
+ * Where the account pool document actually lives on this host.
103
+ *
104
+ * `storage` above describes the single-credential mirror; this describes the
105
+ * pool, which `poolStorage` may have put in a different store. Absent when the
106
+ * pool is not installed, or while the backend has not been resolved yet.
107
+ */
108
+ poolStorage?: PoolStorageDto;
109
+ /**
110
+ * Whether a local Codex CLI sign-in exists to import.
111
+ *
112
+ * Presence only, answered by a stat: the settings card has to offer the import
113
+ * BEFORE the user agrees to it, and a startup path that read the file "just in
114
+ * case" would make that agreement decorative. Validity is answered by the adopt
115
+ * route itself, after opt-in.
116
+ */
117
+ codexCliSignInAvailable?: boolean;
118
+ /**
119
+ * The exact file that was consulted to answer `codexCliSignInAvailable`.
120
+ *
121
+ * Presence alone cannot answer "why was nothing found?", so the path travels
122
+ * with the flag. It is a location, never a credential: `codex-adopt.ts`
123
+ * resolves it from CODEX_HOME and the flag is a stat of that one file, so
124
+ * printing it says where the plugin looked without opening anything.
125
+ *
126
+ * One path rather than a list, because this reader defines exactly one
127
+ * candidate — a list here would imply a precedence this provider does not
128
+ * have. A host that does not consult the file simply omits the field.
129
+ */
130
+ codexCliSignInPath?: string;
131
+ detectedProxy?: string | null;
132
+ activeProxy?: string | null;
133
+ /**
134
+ * The proxy each provider line resolves to right now, keyed by provider id.
135
+ *
136
+ * Credentials are stripped: a custom proxy URL may carry `user:pass@`, and the
137
+ * card only needs to name the proxy that answered. Absent when the host has no
138
+ * proxy manager wired.
139
+ */
140
+ activeProxies?: Partial<Record<LineProxyProviderId, string | null>>;
141
+ error?: PublicErrorDto;
142
+ }
143
+ /**
144
+ * The answer to a CPA / sub2api file import.
145
+ *
146
+ * Carries the refreshed status — the same one every other pool mutation answers
147
+ * with — so the card re-renders the new rows from this single reply. The two
148
+ * counts are the file's own verdict: `skipped` is records the export carried
149
+ * that were not a usable ChatGPT OAuth account, and saying so is the difference
150
+ * between "nothing was in my file" and "one of my four accounts was broken".
151
+ */
152
+ export interface CodexCredentialImportResultDto {
153
+ status: PluginStatusDto;
154
+ format: 'cpa' | 'sub2api';
155
+ imported: number;
156
+ skipped: number;
157
+ }
158
+ export type OAuthStatusDto = Omit<PluginStatusDto, 'quota' | 'preferences'>;
159
+ export type SearchProviderPreference = 'dsh' | 'codex';
160
+ export type CodexOutputVerbosity = 'low' | 'medium' | 'high';
161
+ export type CodexReasoningSummary = 'auto' | 'concise' | 'detailed' | 'none';
162
+ /** Persisted context window overrides, keyed by Codex model id. A model absent here uses its catalog default. */
163
+ export type CodexContextWindowOverridesDto = Record<string, number>;
164
+ /** An override patch: a number sets one, `null` clears it back to the catalog default. */
165
+ export type CodexContextWindowOverridesUpdateDto = Record<string, number | null>;
166
+ export type ProxyMode = 'auto' | 'custom' | 'direct';
167
+ /** One line's proxy choice: the same three modes the plugin always had, per provider. */
168
+ export interface LineProxyConfigDto {
169
+ mode: ProxyMode;
170
+ /** Used only when `mode` is `custom`; null otherwise. */
171
+ customProxyUrl: string | null;
172
+ }
173
+ /**
174
+ * Every provider line a proxy choice can be stored for.
175
+ *
176
+ * The ids are the LLM route ids this plugin registers, not the shorthand some
177
+ * host tables use: model request control spells the Claude line `claude` while
178
+ * its route id is `claude-subscription`, and it never lists `opendesign` or
179
+ * `workbuddy-subscription` under those names. Keeping one list here means the
180
+ * card, the store and the fetch wiring cannot drift apart.
181
+ */
182
+ export declare const LINE_PROXY_PROVIDER_IDS: readonly ["codex-chatgpt", "claude-subscription", "kimi-code", "minimax-code", "command-code", "ollama", "glm-coding-plan", "step-code", "cline-pass", "qoder", "opendesign", "workbuddy-subscription", "qianwen-token-plan", "relayone", "claude-api", "opencode-go"];
183
+ export type LineProxyProviderId = typeof LINE_PROXY_PROVIDER_IDS[number];
184
+ /** One line's proxy choice as stored in the preferences document, keyed by provider id. */
185
+ export type LineProxiesDto = Partial<Record<LineProxyProviderId, LineProxyConfigDto>>;
186
+ export interface SubscriptionPreferencesDto {
187
+ enabled?: boolean;
188
+ fastMode: boolean;
189
+ outputVerbosity: CodexOutputVerbosity | null;
190
+ reasoningSummary: CodexReasoningSummary | null;
191
+ visibleModelIds: string[];
192
+ searchProvider: SearchProviderPreference;
193
+ contextWindowOverrides: CodexContextWindowOverridesDto;
194
+ proxyMode: ProxyMode;
195
+ customProxyUrl: string | null;
196
+ /**
197
+ * Hosts that bypass the proxy, written as a standard `NO_PROXY` list.
198
+ *
199
+ * Kept beside `proxyMode` rather than only in `$DSH_HOME/.env` because the
200
+ * settings card is the one place a user can discover it. The host merges this
201
+ * list with the environment/file list, so neither source silently replaces
202
+ * the other. `null` means the card has never set one.
203
+ */
204
+ noProxy?: string | null;
205
+ /**
206
+ * The proxy each provider line uses on its own.
207
+ *
208
+ * A missing entry means "the shipped default", which is `auto` (system proxy):
209
+ * a fresh install behaves exactly like the old shared setting did, and a line
210
+ * a user never touched keeps following the machine.
211
+ */
212
+ lineProxies?: LineProxiesDto;
213
+ writable: boolean;
214
+ }
215
+ export interface SubscriptionPreferencesUpdateDto {
216
+ enabled?: boolean;
217
+ fastMode?: boolean;
218
+ outputVerbosity?: CodexOutputVerbosity | null;
219
+ reasoningSummary?: CodexReasoningSummary | null;
220
+ visibleModelIds?: string[];
221
+ searchProvider?: SearchProviderPreference;
222
+ contextWindowOverrides?: CodexContextWindowOverridesUpdateDto;
223
+ proxyMode?: ProxyMode;
224
+ customProxyUrl?: string | null;
225
+ /** Replace the bypass list; `null` (or an empty string) clears it. */
226
+ noProxy?: string | null;
227
+ /**
228
+ * Merge one line's proxy choice; `null` clears that line back to `auto`.
229
+ *
230
+ * A merge rather than a replace, so saving one card never rewrites the other
231
+ * twelve, and `null` is how a line returns to the shipped default.
232
+ */
233
+ lineProxies?: Partial<Record<LineProxyProviderId, Partial<LineProxyConfigDto> | null>>;
234
+ }
235
+ export interface QuotaWindowDto {
236
+ usedPercent: number;
237
+ windowDurationMins: number | null;
238
+ resetsAt: number | null;
239
+ }
240
+ export interface QuotaBucketDto {
241
+ id: string;
242
+ name: string;
243
+ planType: string | null;
244
+ primary: QuotaWindowDto | null;
245
+ secondary: QuotaWindowDto | null;
246
+ windows: QuotaWindowDto[];
247
+ }
248
+ export interface QuotaCreditDto {
249
+ hasCredits: boolean;
250
+ unlimited: boolean;
251
+ balance: string | null;
252
+ }
253
+ export interface QuotaIndividualLimitDto {
254
+ limit: string | null;
255
+ used: string | null;
256
+ remainingPercent: number | null;
257
+ resetsAt: number | null;
258
+ }
259
+ export interface QuotaResetCreditsDto {
260
+ availableCount: number;
261
+ /** Earliest expiration among currently available reset credits, as Unix seconds. */
262
+ expiresAt: number | null;
263
+ }
264
+ export interface QuotaUsageDto {
265
+ buckets: QuotaBucketDto[];
266
+ credits: QuotaCreditDto | null;
267
+ individualLimit: QuotaIndividualLimitDto | null;
268
+ spendControlReached: boolean | null;
269
+ resetCredits: QuotaResetCreditsDto | null;
270
+ }
271
+ export interface QuotaStatusDto {
272
+ state: 'signed-out' | 'empty' | 'ready' | 'stale' | 'error';
273
+ buckets: QuotaBucketDto[];
274
+ credits: QuotaCreditDto | null;
275
+ individualLimit: QuotaIndividualLimitDto | null;
276
+ spendControlReached: boolean | null;
277
+ resetCredits: QuotaResetCreditsDto | null;
278
+ fetchedAt: number | null;
279
+ stale: boolean;
280
+ error?: PublicErrorDto;
281
+ }
282
+ export interface ConnectionTestDto {
283
+ connected: true;
284
+ latencyMs: number;
285
+ checkedAt: number;
286
+ }
287
+ export interface LoginStartDto {
288
+ loginId: string;
289
+ authUrl: string;
290
+ expiresAt: number;
291
+ }
292
+ /**
293
+ * A device-code sign-in the user is completing on another machine.
294
+ *
295
+ * The card needs the code, the page to type it on and a countdown, nothing else:
296
+ * the grant's own identifiers (`device_auth_id`) and the PKCE verifier stay on
297
+ * the host, because they are the parts that can redeem the sign-in.
298
+ */
299
+ export interface DeviceLoginDto {
300
+ userCode: string;
301
+ verificationUrl: string;
302
+ /** Grant deadline, Unix **seconds** (the unit the status DTO uses). */
303
+ expiresAt: number;
304
+ /**
305
+ * The host's clock when this answer was built, Unix **seconds**.
306
+ *
307
+ * The countdown is `expiresAt - now`, measured with the browser's own elapsed
308
+ * time. Comparing `expiresAt` against the browser's wall clock instead would
309
+ * render a wrong countdown whenever the two clocks disagree — the normal case
310
+ * for this feature, whose whole reason to exist is a remote host.
311
+ */
312
+ now: number;
313
+ }
314
+ /** What starting a device-code sign-in answers: the flow id plus the panel's data. */
315
+ export interface DeviceLoginStartDto extends DeviceLoginDto {
316
+ loginId: string;
317
+ }
318
+ export type LoginEventDto = {
319
+ type: 'pending';
320
+ loginId: string;
321
+ } | {
322
+ type: 'completed';
323
+ loginId: string;
324
+ } | {
325
+ type: 'cancelled';
326
+ loginId: string;
327
+ } | {
328
+ type: 'failed';
329
+ loginId: string;
330
+ error: PublicErrorDto;
331
+ };
332
+ export interface PublicErrorDto {
333
+ code: 'bad-request' | 'csrf-rejected' | 'login-active' | 'login-cancelled' | 'login-expired' | 'oauth-callback-invalid' | 'oauth-token-exchange-failed' | 'not-authenticated' | 'refresh-failed' | 'storage-failed' | 'connection-failed' | 'quota-failed' | 'preference-failed' | 'rate-limited' | 'route-audit-failed' | 'internal';
334
+ message: string;
335
+ }
336
+ export type ApiEnvelope<T> = {
337
+ ok: true;
338
+ value: T;
339
+ } | {
340
+ ok: false;
341
+ error: PublicErrorDto;
342
+ };
343
+ //# sourceMappingURL=contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/contracts.ts"],"names":[],"mappings":"AA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AED,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GACtB;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,CAAA"}
@@ -0,0 +1,315 @@
1
+ /**
2
+ * GLM(ZCode 账号)线路的共享契约。
3
+ *
4
+ * host 与 client 两半只依赖本文件的类型与常量,互不 import。
5
+ * 本文件由调度者冻结:类型名与常量名不得更改,可追加。
6
+ *
7
+ * 边界精神与 `account-pool-contracts.ts` 首行一致:这里的一切都是公开信息,
8
+ * **任何凭据都不越过这条边界**。OAuth access_token、业务 JWT(zcodejwttoken)、
9
+ * 兑换链换出的 Coding Plan Key(`{apiKey}.{secretKey}`)、pollToken 一律不出现在
10
+ * 下列任何类型里;手工粘贴兜底的请求体也正因如此**刻意不在本文件声明**——
11
+ * 它必然带凭据,由 host 侧自行解析,不进冻结契约。
12
+ *
13
+ * 取值依据:`docs/glm-zcode-line-plan.md` §3(逐字证据)、§4(决策 D1-D9)。
14
+ */
15
+ import type { AccountPoolStatusDto, PoolAccountSummaryDto } from './account-pool-contracts.ts';
16
+ /** 线路 id。与用户自建的 `zai` / `zhipu` 兼容路由、已退役的 `zhipu-coding-plan` 都不同名(D1)。 */
17
+ export declare const GLM_CODING_PLAN_PROVIDER_ID = "glm-coding-plan";
18
+ /** 设置卡片与 hub 卡片上显示的名字(D1)。 */
19
+ export declare const GLM_CODING_PLAN_PROVIDER_NAME = "GLM\uFF08ZCode \u8D26\u53F7\uFF09";
20
+ /**
21
+ * 路由前缀(host 暴露、client 消费)。
22
+ *
23
+ * 与其余各订阅线路一致:每条线路把自己的设置面挂在 `/<line>/api` 下,
24
+ * 不挂到 Codex 那条线路的 `/api/dsh-multi-provider` 前缀下面。
25
+ */
26
+ export declare const GLM_CODING_PLAN_ROUTE_PREFIX = "/glm-coding-plan/api";
27
+ /**
28
+ * 账号所属区域。
29
+ *
30
+ * 两个部署彼此独立:一区铸造的 Coding Plan Key 会被另一区拒绝,所以区域是**凭据的属性**
31
+ * 而不是请求的属性,一个号池可以同时持有两区账号且互不串用(计划 §1、§3.3、§8.2)。
32
+ *
33
+ * - `cn`:国区智谱开放平台(业务 bigmodel.cn / 模型 open.bigmodel.cn)
34
+ * - `intl`:国际区 Z.ai(业务与模型同为 api.z.ai)
35
+ */
36
+ export type GlmRegion = 'cn' | 'intl';
37
+ /**
38
+ * 该模型走哪个协议面(D3:双协议,逐模型声明)。
39
+ *
40
+ * 官方 Coding Plan 同时提供 Anthropic 兼容面与 OpenAI 兼容面,但**不是每个模型都上两面**,
41
+ * 所以协议归属由模型目录逐行声明;未知模型不猜协议(D3 明确要求)。
42
+ */
43
+ export type GlmWire = 'anthropic' | 'openai';
44
+ /**
45
+ * 本线路能命名的思考档位。
46
+ *
47
+ * GLM-5.x 家族在 Coding Plan 上只接受 `low` / `high` / `max` 三档,
48
+ * 其它取值上游直接报错(计划 §3.5 前的历史转录、9ad8a53 `CODING_EFFORTS`)。
49
+ */
50
+ export type GlmReasoningEffort = 'low' | 'high' | 'max';
51
+ /**
52
+ * 线路级档位词汇表,从低到高。
53
+ *
54
+ * 设置卡片只渲染这一份列表——它是**线路级词汇表**,不是某个模型的能力表。
55
+ * 某个模型真实接受哪些档位由 `GlmModelOption.reasoningEfforts` 单独给出;
56
+ * 把两者合成一份会让卡片在给一个只认 `low` 的模型显示 `max` 时,
57
+ * 无从判断是模型不支持还是文案没写。
58
+ */
59
+ export declare const GLM_REASONING_EFFORTS: readonly GlmReasoningEffort[];
60
+ /** 区域参数是否落在这条线路认识的部署上(供 route 层校验自由输入的 region)。 */
61
+ export declare function isGlmRegion(value: unknown): value is GlmRegion;
62
+ /** 协议面参数是否是这条线路的两种面之一。 */
63
+ export declare function isGlmWire(value: unknown): value is GlmWire;
64
+ /**
65
+ * 配额窗口的稳定标识。
66
+ *
67
+ * 取值直接对应上游 `/api/monitor/usage/quota/limit` 的 `unit` 字段
68
+ * (计划 §3.4,证据等级 A):
69
+ *
70
+ * - `five-hour` ← unit 3(5 小时滚动窗口)
71
+ * - `monthly` ← unit 5
72
+ * - `weekly` ← unit 6
73
+ *
74
+ * 刻意是封闭联合而不是自由字符串:未知 unit **不下发、不发明窗口**
75
+ * (计划 §3.4 引用 dsh-usage `glmPlan()` 的解析语义),
76
+ * 做成 `string` 等于把「不发明」这条规则从类型上撤掉。
77
+ */
78
+ export type GlmQuotaWindowKey = 'five-hour' | 'weekly' | 'monthly';
79
+ /**
80
+ * 账号当前**用的是什么额度**。
81
+ *
82
+ * 官方文档(逐字:zcode.z.ai/cn/docs/configuration):新用户连接 BigModel 账号后自动获得
83
+ * 「体验套餐:无需付费,在首次使用起的 5 天内,每天提供 800 万 token 的 GLM 系列模型体验额度」;
84
+ * welcome 页同样写明「新用户可享受每日免费的 GLM 旗舰模型体验额度」。
85
+ * 所以**「没有付费 Coding Plan」不等于「没有额度」**——这条类型就是为如实区分两者而存在的。
86
+ *
87
+ * - `plan`:配额面给出付费套餐的机器档位(lite / pro / max)。
88
+ * - `free-trial`:探活被配额面明确拒绝,但拒绝原因是**套餐/额度**维度(无余额、套餐不含该
89
+ * API、套餐失效、额度用尽),不是凭据本身无效。按上面的官方文档,这类账号应放行并由上游
90
+ * 在额度耗尽时以 429 告知。
91
+ * - `unknown`:探活结果不足以区分「凭据无效」与「没有付费套餐」时的**保守取值**。
92
+ *
93
+ * **未验证**:`free-trial` 与 `unknown` 的分界依赖上游在「凭据无效」时是否一定给出鉴权类
94
+ * 业务码(1000 / 1001 / 1003)。本插件没有实机账号,无法确认;因此 `unknown` 这一档存在的
95
+ * 意义就是「分不出来时不假装知道」。
96
+ */
97
+ export type GlmAllowanceKind = 'plan' | 'free-trial' | 'unknown';
98
+ /** 额度类型参数是否落在本线路认识的三个取值上。 */
99
+ export declare function isGlmAllowanceKind(value: unknown): value is GlmAllowanceKind;
100
+ /**
101
+ * 一个配额窗口。
102
+ *
103
+ * 呈现单位是「已用百分比」而不是「剩余百分比」:额度型套餐(CREDIT_LIMIT)
104
+ * 的比例 = `currentValue`/`usage`,与 token 型(TOKENS_LIMIT)不同源,
105
+ * 归一成本线路统一的一个已用百分比才能画同一条进度条。
106
+ */
107
+ export interface GlmQuotaWindow {
108
+ /** 上游 `unit` 映射出的窗口标识,由客户端本地化成窗口名。 */
109
+ key: GlmQuotaWindowKey;
110
+ /** 已用百分比,0-100。上游没给出有界额度时为 null。 */
111
+ usedPercent: number | null;
112
+ /** 该窗口重置的绝对时刻(Unix 毫秒);上游未给出时为 null。 */
113
+ resetsAt: number | null;
114
+ }
115
+ /** 某一时刻的整份配额快照。 */
116
+ export interface GlmQuotaSnapshotDto {
117
+ /** 展示用套餐名(订阅列表给出时才有)。 */
118
+ planName: string | null;
119
+ /** `data.level` 的机器档位:lite / pro / max(计划 §3.4,证据等级 A)。 */
120
+ planLevel: string | null;
121
+ windows: GlmQuotaWindow[];
122
+ /** 套餐续费时刻(Unix 毫秒);上游未给出时为 null。 */
123
+ renewsAt: number | null;
124
+ /** 本次读取时刻(Unix 毫秒),卡片据此判断数据新旧。 */
125
+ fetchedAt: number;
126
+ /** 实际应答的端点路径,供设置卡片诊断。 */
127
+ sources: string[];
128
+ /**
129
+ * 当前这份快照背后用的是付费套餐还是免费体验额度。
130
+ *
131
+ * 可选是为了**不破坏既有构造点**:旧版本 host / 旧快照里没有这个键时,
132
+ * 客户端按 'unknown' 渲染(见客户端本地化),而不是假装是付费套餐。
133
+ */
134
+ allowance?: GlmAllowanceKind;
135
+ }
136
+ /**
137
+ * 设置卡片渲染的一行模型(计划 §7:图标 + 名称 + 一句话描述 + 行尾勾)。
138
+ *
139
+ * 能力**不得从模型名推断**(计划 §1、§7):`glm-5.3-flash` 收图而 `glm-5.3` 不收、
140
+ * `glm-5.2` 两个档位而 `glm-5.3` 三个,都是历史草案记录过的反例。
141
+ */
142
+ export interface GlmModelOption {
143
+ id: string;
144
+ name: string;
145
+ /** 一句话能力描述:思考形态 / 可选档位 / 输入模态 / 上下文窗口。 */
146
+ hint: string;
147
+ /** 是否由 DSH 提供给会话模型选择器。 */
148
+ enabled: boolean;
149
+ /** 目录声明的默认上下文窗口(token)。 */
150
+ defaultContextWindow: number;
151
+ /** 生效窗口:有覆盖值时用覆盖值,否则等于 `defaultContextWindow`。 */
152
+ contextWindow: number;
153
+ /** 调用方不指定时,本线路请求的输出上限。 */
154
+ defaultMaxTokens: number;
155
+ /**
156
+ * 该模型**真实**接受的思考档位;空数组表示它不接受 `reasoning_effort`。
157
+ *
158
+ * 这是「模型真实梯子」,与 `GLM_REASONING_EFFORTS`(线路级词汇表)是两回事。
159
+ */
160
+ reasoningEfforts: readonly GlmReasoningEffort[];
161
+ /** 思考能否关闭。与上一条正交:档位非空而本项为 false = 恒定开启。 */
162
+ thinkingDisableable: boolean;
163
+ /** 该模型走哪个协议面。 */
164
+ wire: GlmWire;
165
+ /** 是否接受 image 输入。 */
166
+ supportsImages: boolean;
167
+ /** 服务该模型的区域;账号自身区域必须落在其中(R8:两区模型 id 不一致)。 */
168
+ regions: readonly GlmRegion[];
169
+ /** 官方描述;目录没有时为 null。 */
170
+ description: string | null;
171
+ }
172
+ /**
173
+ * 一个池内账号的展示行。
174
+ *
175
+ * 扩展共享的 `PoolAccountSummaryDto`,因此同样只带非机密信息:
176
+ * 这里没有任何字段派生自 OAuth token、业务 JWT 或 Coding Plan Key,
177
+ * 连「Key 的后四位」这类片段也不给。
178
+ */
179
+ export interface GlmAccountSummaryDto extends PoolAccountSummaryDto {
180
+ /** 该账号登录的部署;区域属于凭据,池内可混有 cn 与 intl。 */
181
+ region: GlmRegion;
182
+ /** 兑换链解析出的默认机构 id(非机密,用于诊断两区是否串号)。 */
183
+ organizationId?: string;
184
+ /** 控制台侧的账号显示名。 */
185
+ accountName?: string;
186
+ }
187
+ /** 账号身份(设置卡片渲染用),不带任何凭据。 */
188
+ export interface GlmAccountDto {
189
+ /** 稳定、非机密的选中键。 */
190
+ id: string;
191
+ /** 上游 `user.user_id`。 */
192
+ userId: string | null;
193
+ /** 上游 `user.email`。 */
194
+ email: string | null;
195
+ /** 上游 `user.name`。 */
196
+ displayName: string | null;
197
+ region: GlmRegion;
198
+ /** Unix 毫秒;本插件不落 `user.avatar` 的原始字节,只保留是否已取到。 */
199
+ authenticatedAt: number | null;
200
+ }
201
+ /**
202
+ * 浏览器 OAuth 登录流程的实时状态,卡片轮询它。
203
+ *
204
+ * 浏览器不是卡片能控制的东西,所以流程跑在 host 上,卡片只跟随这里
205
+ * (与其余各线路的登录面同构)。
206
+ *
207
+ * `authorizeUrl` 始终下发,即使 host 同时打开过浏览器——启动失败时用户还能手动打开。
208
+ */
209
+ export interface GlmLoginFlowStatus {
210
+ status: 'idle' | 'pending' | 'complete' | 'error';
211
+ /** 本次流程要登录的部署。 */
212
+ region?: GlmRegion;
213
+ /** 浏览器必须打开的授权页(已带上 appId / client_id 参数)。 */
214
+ authorizeUrl?: string;
215
+ startedAt?: number;
216
+ completedAt?: number;
217
+ /** 上游 `expires_at` 换算出的绝对时刻(Unix 毫秒);总超时以它为上界。 */
218
+ expiresAt?: number;
219
+ /** 上游 `poll_interval_sec`;客户端据此显示「每 N 秒查询一次」。 */
220
+ pollIntervalSec?: number;
221
+ /** pending 阶段的人类可读进度。 */
222
+ progress?: string;
223
+ /** 流程完成后账号的邮箱。 */
224
+ email?: string;
225
+ /** 失败原因(面向用户,不是堆栈)。 */
226
+ error?: string;
227
+ /**
228
+ * 本次失败是否值得自动回落。
229
+ *
230
+ * 轮询错误语义(计划 §3.1,证据等级 B):4xx(除 408/429)、信封 `code !== 0`、
231
+ * 未知 status 都是**致命**;5xx / 网络错误 / 畸形 200 按 pending 重试。
232
+ */
233
+ retryable?: boolean;
234
+ }
235
+ /** 设置面接受的补丁。 */
236
+ export interface GlmSettingsUpdateDto {
237
+ enabled?: boolean;
238
+ enabledModelIds?: string[];
239
+ /** 数字表示为该模型设置覆盖值;`null` 恢复目录默认。 */
240
+ contextWindowOverrides?: Record<string, number | null>;
241
+ /** `null` 表示各模型用自己的默认档位。 */
242
+ defaultReasoningEffort?: GlmReasoningEffort | null;
243
+ /** 手动指定下一个请求使用的账号;`null` 交回号池调度。 */
244
+ selectedAccountId?: string | null;
245
+ }
246
+ /** 显式连通性测试的结果。 */
247
+ export interface GlmConnectionDto {
248
+ connected: boolean;
249
+ /** 探测请求的往返耗时。 */
250
+ latencyMs: number;
251
+ /** 探测用到的账号;未登录时为 null。 */
252
+ account: GlmAccountSummaryDto | null;
253
+ /** 探测所用的模型。 */
254
+ model: string | null;
255
+ checkedAt: number;
256
+ /** 失败原因(面向用户)。 */
257
+ error?: string;
258
+ }
259
+ /**
260
+ * adopt(本机已登录的 ZCode 客户端登录态)的一次尝试结果。
261
+ *
262
+ * adopt 只是省一次登录的快捷路径,**失败永不阻断**(计划 D6、R6):
263
+ * 每个 `reason` 对应一种「回落浏览器登录」的说明,卡片据此给出不同的下一步。
264
+ */
265
+ export interface GlmAdoptResultDto {
266
+ /** 是否真的尝试了 adopt(没找到凭据文件时为 false)。 */
267
+ attempted: boolean;
268
+ /** 是否拿到可用登录态。 */
269
+ adopted: boolean;
270
+ reason?: 'no-credentials-file' | 'secret-unavailable' | 'decrypt-failed' | 'token-expired' | 'exchange-failed' | 'not-a-zcode-login';
271
+ /** 成功时采用的部署。 */
272
+ region?: GlmRegion;
273
+ }
274
+ /**
275
+ * 设置卡片与 composer 徽标渲染所需的全部状态。
276
+ *
277
+ * 继承共享的号池切片,因此每条元素只带非机密展示信息;令牌永远不过这条边界。
278
+ */
279
+ export interface GlmStatusDto extends Partial<AccountPoolStatusDto> {
280
+ /** 线路总开关;关闭时适配器不暴露任何模型。 */
281
+ enabled?: boolean;
282
+ authenticated: boolean;
283
+ hasCredentials: boolean;
284
+ providerId: typeof GLM_CODING_PLAN_PROVIDER_ID;
285
+ /** 凭据存储位置说明(Windows DPAPI / macOS Keychain / Linux SecretService)。 */
286
+ storagePath: string;
287
+ /** 下一次登录要用的部署。 */
288
+ region: GlmRegion;
289
+ account: GlmAccountDto | null;
290
+ /** 无可用快照时为 null,UI 应优雅降级。 */
291
+ quota: GlmQuotaSnapshotDto | null;
292
+ lastFetchedAt: number | null;
293
+ /** 本次应答背后是否正在刷新配额。 */
294
+ quotaRefreshing?: boolean;
295
+ /** 配额读取失败的原因;与快照并列给出,而不是互相取代。 */
296
+ quotaError?: string | null;
297
+ models: GlmModelOption[];
298
+ contextWindowOverrides: Record<string, number>;
299
+ defaultReasoningEffort: GlmReasoningEffort | null;
300
+ /** 当前进行中的登录流程;无流程时为 null。 */
301
+ login?: GlmLoginFlowStatus | null;
302
+ /**
303
+ * 登录落盘时探活认定的额度类型(付费套餐 / 免费体验额度 / 未判定)。
304
+ *
305
+ * 与 `quota.allowance` 分开给:免费额度账号很可能**读不到配额快照**
306
+ * (配额接口本身可能就是它拒绝服务的那一面),那时只有这一项能诚实地告诉用户
307
+ * 「你是免费体验额度,不是付费套餐」。
308
+ */
309
+ allowance?: GlmAllowanceKind;
310
+ /** 本插件是否正在服务该 Provider 路由。 */
311
+ serving: boolean;
312
+ /** 路由被别的适配器占用时的诊断文案。 */
313
+ conflict: string | null;
314
+ }
315
+ //# sourceMappingURL=glm-coding-plan-contracts.d.ts.map