@blade-hq/agent-kit 1.0.24 → 1.0.27

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 (272) hide show
  1. package/dist/{chunk-7F6UP5LP.js → chunk-34GDDOWY.js} +5 -208
  2. package/dist/chunk-34GDDOWY.js.map +1 -0
  3. package/dist/{chunk-2QYV43YP.js → chunk-C2FKVGJU.js} +2 -2
  4. package/dist/{chunk-TYM7KL2L.js → chunk-JU5SL4HP.js} +2 -2
  5. package/dist/chunk-M72OL7ZJ.js +23 -0
  6. package/dist/chunk-M72OL7ZJ.js.map +1 -0
  7. package/dist/{chunk-IMMRWXI7.js → chunk-SBASG3M2.js} +128 -98
  8. package/dist/chunk-SBASG3M2.js.map +1 -0
  9. package/dist/{chunk-BQKF6HJH.js → chunk-TE6G6NVX.js} +6 -6
  10. package/dist/{chunk-ICV7OTGX.js → chunk-X2NJKKXR.js} +10 -10
  11. package/dist/client/auth.d.ts +8 -0
  12. package/dist/client/blade-client.d.ts +80 -0
  13. package/dist/client/index.d.ts +22 -18769
  14. package/dist/client/index.js +1 -5
  15. package/dist/client/resources/api-keys.d.ts +28 -0
  16. package/dist/client/resources/auth.d.ts +26 -0
  17. package/dist/client/resources/env-buckets.d.ts +20 -0
  18. package/dist/client/resources/gis.d.ts +8 -0
  19. package/dist/client/resources/headless.d.ts +33 -0
  20. package/dist/client/resources/memories.d.ts +63 -0
  21. package/dist/client/resources/models.d.ts +23 -0
  22. package/dist/client/resources/published-apps.d.ts +8 -0
  23. package/dist/client/resources/registry.d.ts +58 -0
  24. package/dist/client/resources/runs.d.ts +8 -0
  25. package/dist/client/resources/scenarios.d.ts +49 -0
  26. package/dist/client/resources/sessions.d.ts +253 -0
  27. package/dist/client/resources/skills.d.ts +38 -0
  28. package/dist/client/resources/solutions.d.ts +31 -0
  29. package/dist/client/resources/user-preferences.d.ts +26 -0
  30. package/dist/client/rest.d.ts +19 -0
  31. package/dist/client/socket.d.ts +9 -0
  32. package/dist/client/types/index.d.ts +8 -0
  33. package/dist/client/types/rest.d.ts +15335 -0
  34. package/dist/client/types/sdk-profile.d.ts +47 -0
  35. package/dist/client/types/socket-events.d.ts +503 -0
  36. package/dist/react/api/api-keys.d.ts +6 -0
  37. package/dist/react/api/auth.d.ts +7 -0
  38. package/dist/react/api/client.d.ts +8 -0
  39. package/dist/react/api/env-buckets.d.ts +10 -0
  40. package/dist/react/api/gis-api.d.ts +4 -0
  41. package/dist/react/api/memories.d.ts +14 -0
  42. package/dist/react/api/models.d.ts +11 -0
  43. package/dist/react/api/partner-skill.d.ts +2 -0
  44. package/dist/react/api/prod-solution.d.ts +456 -0
  45. package/dist/react/api/published-apps.d.ts +21 -0
  46. package/dist/react/api/published-apps.js +14 -0
  47. package/dist/react/api/published-apps.js.map +1 -0
  48. package/dist/react/api/registry.d.ts +46 -0
  49. package/dist/react/api/scenarios.d.ts +9 -0
  50. package/dist/react/api/scheduled-tasks.d.ts +24 -0
  51. package/dist/react/api/session-skill.d.ts +2 -0
  52. package/dist/react/api/sessions.d.ts +109 -0
  53. package/dist/react/api/sessions.js +93 -0
  54. package/dist/react/api/sessions.js.map +1 -0
  55. package/dist/react/api/skills.d.ts +27 -0
  56. package/dist/react/api/socket.d.ts +5 -0
  57. package/dist/react/api/solutions.d.ts +11 -0
  58. package/dist/react/api/user-preferences.d.ts +8 -0
  59. package/dist/react/asr/VoiceWaveform.d.ts +10 -0
  60. package/dist/react/asr/use-tiptap-voice-input.d.ts +29 -0
  61. package/dist/react/asr/use-voice-input.d.ts +17 -0
  62. package/dist/react/asr/voice-input-support.d.ts +5 -0
  63. package/dist/react/bootstrap.d.ts +4 -0
  64. package/dist/react/cards/register.d.ts +1 -2
  65. package/dist/react/components/ai-elements/file-tree.d.ts +26 -0
  66. package/dist/react/components/ai-elements/reasoning.d.ts +32 -0
  67. package/dist/react/components/ai-elements/shimmer.d.ts +11 -0
  68. package/dist/react/components/card/CardCodeBlock.d.ts +5 -0
  69. package/dist/react/components/card/CardContext.d.ts +7 -0
  70. package/dist/react/components/card/CardRenderer.d.ts +7 -0
  71. package/dist/react/components/card/CardStates.d.ts +8 -0
  72. package/dist/react/components/card/cards/attraction-card.d.ts +2 -0
  73. package/dist/react/components/card/cards/cite-card.d.ts +10 -0
  74. package/dist/react/components/card/cards/comprehensive-analysis-card.d.ts +2 -0
  75. package/dist/react/components/card/cards/conflict-detection-card.d.ts +4 -0
  76. package/dist/react/components/card/cards/counter.d.ts +2 -0
  77. package/dist/react/components/card/cards/damage-effect-card.d.ts +4 -0
  78. package/dist/react/components/card/cards/destination-card.d.ts +2 -0
  79. package/dist/react/components/card/cards/diff-card.d.ts +2 -0
  80. package/dist/react/components/card/cards/execution-order-card.d.ts +2 -0
  81. package/dist/react/components/card/cards/experience-card-with-options.d.ts +4 -0
  82. package/dist/react/components/card/cards/flight-card.d.ts +2 -0
  83. package/dist/react/components/card/cards/hotel-card.d.ts +2 -0
  84. package/dist/react/components/card/cards/kill-chain-card.d.ts +2 -0
  85. package/dist/react/components/card/cards/kill-chain-types.d.ts +157 -0
  86. package/dist/react/components/card/cards/map-card.d.ts +2 -0
  87. package/dist/react/components/card/cards/order-status-card.d.ts +2 -0
  88. package/dist/react/components/card/cards/patch-card.d.ts +15 -0
  89. package/dist/react/components/card/cards/product-recommendation-card.d.ts +2 -0
  90. package/dist/react/components/card/cards/reflection-optimization-card.d.ts +2 -0
  91. package/dist/react/components/card/cards/resolution-modifications-card.d.ts +2 -0
  92. package/dist/react/components/card/cards/resolution-summary-card.d.ts +2 -0
  93. package/dist/react/components/card/cards/restaurant-card.d.ts +2 -0
  94. package/dist/react/components/card/cards/shopping-list-card.d.ts +2 -0
  95. package/dist/react/components/card/cards/simulation-event-card.d.ts +4 -0
  96. package/dist/react/components/card/cards/survival-effect-card.d.ts +4 -0
  97. package/dist/react/components/card/cards/travel-itinerary-card.d.ts +2 -0
  98. package/dist/react/components/card/register.d.ts +1 -0
  99. package/dist/react/components/chat/AgentLoopBlock.d.ts +8 -0
  100. package/dist/react/components/chat/AskUserQuestionBlock.d.ts +32 -0
  101. package/dist/react/components/chat/AssistantTurnBlock.d.ts +28 -0
  102. package/dist/react/components/chat/AttachmentPreviewDialog.d.ts +26 -0
  103. package/dist/react/components/chat/BackgroundTasksPill.d.ts +3 -0
  104. package/dist/react/components/chat/ChatInput.d.ts +94 -0
  105. package/dist/react/components/chat/ChatView.d.ts +16 -0
  106. package/dist/react/components/chat/CompactionCard.d.ts +6 -0
  107. package/dist/react/components/chat/ConnectionBanner.d.ts +1 -0
  108. package/dist/react/components/chat/FileCompletionMenu.d.ts +13 -0
  109. package/dist/react/components/chat/FileSizeLimitDialog.d.ts +9 -0
  110. package/dist/react/components/chat/ImageLightbox.d.ts +11 -0
  111. package/dist/react/components/chat/MessageActions.d.ts +6 -0
  112. package/dist/react/components/chat/MessageContextPills.d.ts +6 -0
  113. package/dist/react/components/chat/MessageFileAttachmentList.d.ts +13 -0
  114. package/dist/react/components/chat/MessageList.d.ts +13 -0
  115. package/dist/react/components/chat/ProgressCircle.d.ts +12 -0
  116. package/dist/react/components/chat/RenderErrorBoundary.d.ts +19 -0
  117. package/dist/react/components/chat/ResourceIframe.d.ts +5 -0
  118. package/dist/react/components/chat/Shimmer.d.ts +6 -0
  119. package/dist/react/components/chat/SkillCompletionMenu.d.ts +9 -0
  120. package/dist/react/components/chat/SkillStatusBar.d.ts +8 -0
  121. package/dist/react/components/chat/StickyStatusBar.d.ts +10 -0
  122. package/dist/react/components/chat/TextAttachmentPills.d.ts +10 -0
  123. package/dist/react/components/chat/ThinkingToggle.d.ts +7 -0
  124. package/dist/react/components/chat/ToolCallBlock.d.ts +18 -0
  125. package/dist/react/components/chat/TurnNavRail.d.ts +11 -0
  126. package/dist/react/components/chat/UserMessageBubble.d.ts +20 -0
  127. package/dist/react/components/chat/WhatIfUserBubble.d.ts +13 -0
  128. package/dist/react/components/chat/customization.d.ts +82 -0
  129. package/dist/react/components/chat/display-utils.d.ts +35 -0
  130. package/dist/react/components/chat/extensions/file-mention.d.ts +12 -0
  131. package/dist/react/components/chat/extensions/skill-mention.d.ts +25 -0
  132. package/dist/react/components/chat/index.d.ts +16 -115
  133. package/dist/react/components/chat/index.js +6 -6
  134. package/dist/react/components/chat/tool-renderers/BashRenderer.d.ts +2 -0
  135. package/dist/react/components/chat/tool-renderers/FileEditRenderer.d.ts +2 -0
  136. package/dist/react/components/chat/tool-renderers/FileReadRenderer.d.ts +2 -0
  137. package/dist/react/components/chat/tool-renderers/SearchRenderer.d.ts +2 -0
  138. package/dist/react/components/chat/tool-renderers/SubmitResultRenderer.d.ts +2 -0
  139. package/dist/react/components/chat/tool-renderers/registry.d.ts +9 -0
  140. package/dist/react/components/chat/tool-renderers/shared.d.ts +26 -0
  141. package/dist/react/components/chat/whatif-quote-context.d.ts +15 -0
  142. package/dist/react/components/markdown/ExternalLinkDialog.d.ts +8 -0
  143. package/dist/react/components/markdown/FileCardComponent.d.ts +10 -0
  144. package/dist/react/components/markdown/MarkdownContent.d.ts +19 -0
  145. package/dist/react/components/model/ModelSelector.d.ts +9 -0
  146. package/dist/react/components/plan/PlanSummaryCard.d.ts +8 -0
  147. package/dist/react/components/plan/PlanVisualization.d.ts +13 -0
  148. package/dist/react/components/plan/debug-log.d.ts +21 -0
  149. package/dist/react/components/plan/extract-plan-messages.d.ts +2 -0
  150. package/dist/react/components/plan/index.d.ts +6 -110
  151. package/dist/react/components/plan/index.js +4 -4
  152. package/dist/react/components/plan/parse-plan-messages.d.ts +10 -0
  153. package/dist/react/components/plan/parse-plan-tree.d.ts +16 -0
  154. package/dist/react/components/plan/phases/PlanMindMap.d.ts +8 -0
  155. package/dist/react/components/plan/phases/PlanStatusIcon.d.ts +5 -0
  156. package/dist/react/components/plan/phases/PlanTree.d.ts +8 -0
  157. package/dist/react/components/plan/phases/SkillAnalysis.d.ts +7 -0
  158. package/dist/react/components/plan/phases/SkillDiscovery.d.ts +10 -0
  159. package/dist/react/components/plan/types.d.ts +56 -0
  160. package/dist/react/components/session/SessionDetail.d.ts +8 -0
  161. package/dist/react/components/session/SessionList.d.ts +9 -0
  162. package/dist/react/components/session/SessionListItem.d.ts +8 -0
  163. package/dist/react/components/session/StatusBadge.d.ts +3 -0
  164. package/dist/react/components/session/index.d.ts +5 -53
  165. package/dist/react/components/session/index.js +3 -3
  166. package/dist/react/components/session/session-utils.d.ts +19 -0
  167. package/dist/react/components/ui/collapsible.d.ts +5 -0
  168. package/dist/react/components/workspace/FileTree.d.ts +21 -0
  169. package/dist/react/components/workspace/WorkspaceFilesPanel.d.ts +30 -0
  170. package/dist/react/components/workspace/file-icon-assets.d.ts +3 -0
  171. package/dist/react/components/workspace/index.d.ts +2 -59
  172. package/dist/react/components/workspace/index.js +3 -3
  173. package/dist/react/context.d.ts +2 -0
  174. package/dist/react/devtools/bridge-devtools/BridgeDevtoolsFab.d.ts +1 -0
  175. package/dist/react/devtools/bridge-devtools/index.d.ts +3 -36
  176. package/dist/react/devtools/bridge-devtools/mount.d.ts +1 -0
  177. package/dist/react/devtools/bridge-devtools/store.d.ts +15 -0
  178. package/dist/react/devtools/bridge-devtools/tap.d.ts +5 -0
  179. package/dist/react/devtools/bridge-devtools/types.d.ts +29 -0
  180. package/dist/react/hooks/use-background-tasks.d.ts +7 -0
  181. package/dist/react/hooks/use-card-state.d.ts +1 -0
  182. package/dist/react/hooks/use-chat.d.ts +13 -0
  183. package/dist/react/hooks/use-check-skill-file.d.ts +4 -0
  184. package/dist/react/hooks/use-check-solution-file.d.ts +4 -0
  185. package/dist/react/hooks/use-context-stats.d.ts +7 -0
  186. package/dist/react/hooks/use-gis.d.ts +17 -0
  187. package/dist/react/hooks/use-global-skill-stats.d.ts +6 -0
  188. package/dist/react/hooks/use-input-history.d.ts +7 -0
  189. package/dist/react/hooks/use-model-preferences.d.ts +17 -0
  190. package/dist/react/hooks/use-registry.d.ts +53 -0
  191. package/dist/react/hooks/use-resolved-model.d.ts +5 -0
  192. package/dist/react/hooks/use-session.d.ts +10 -0
  193. package/dist/react/hooks/use-skill-stats.d.ts +7 -0
  194. package/dist/react/hooks/use-skills.d.ts +6 -0
  195. package/dist/react/hooks/use-token-pressure.d.ts +6 -0
  196. package/dist/react/index.d.ts +121 -2111
  197. package/dist/react/index.js +41 -97
  198. package/dist/react/index.js.map +1 -1
  199. package/dist/react/lib/analytics.d.ts +7 -0
  200. package/dist/react/lib/attachment-upload.d.ts +10 -0
  201. package/dist/react/lib/card-registry.d.ts +35 -0
  202. package/dist/react/lib/chat.d.ts +48 -0
  203. package/dist/react/lib/code-highlight.d.ts +9 -0
  204. package/dist/react/lib/html-element-selection.d.ts +140 -0
  205. package/dist/react/lib/html-source-locator.d.ts +16 -0
  206. package/dist/react/lib/open-session-file.d.ts +2 -0
  207. package/dist/react/lib/parent-bridge.d.ts +22 -0
  208. package/dist/react/lib/preview-dispatch.d.ts +24 -0
  209. package/dist/react/lib/resource-bridge.d.ts +11 -0
  210. package/dist/react/lib/session-file-preview.d.ts +8 -0
  211. package/dist/react/lib/step-ranges.d.ts +42 -0
  212. package/dist/react/lib/tool-preview.d.ts +2 -0
  213. package/dist/react/lib/ui-meta.d.ts +9 -0
  214. package/dist/react/lib/utils.d.ts +3 -0
  215. package/dist/react/lib/whatif-prompt.d.ts +45 -0
  216. package/dist/react/projection/builder.d.ts +59 -0
  217. package/dist/react/projection/helpers.d.ts +34 -0
  218. package/dist/react/projection/index.d.ts +2 -0
  219. package/dist/react/projection/state.d.ts +22 -0
  220. package/dist/react/provider.d.ts +8 -0
  221. package/dist/react/routes.d.ts +1 -0
  222. package/dist/react/schemas/background.d.ts +16 -0
  223. package/dist/react/schemas/event.d.ts +51 -0
  224. package/dist/react/schemas/gis.d.ts +50 -0
  225. package/dist/{AskUserQuestionBlock---kOTouk.d.ts → react/schemas/message.d.ts} +15 -48
  226. package/dist/react/schemas/partner-skill.d.ts +46 -0
  227. package/dist/{projection-BWYEFYNn.d.ts → react/schemas/projection.d.ts} +12 -10
  228. package/dist/react/schemas/published-apps.d.ts +38 -0
  229. package/dist/react/schemas/scheduled-task.d.ts +32 -0
  230. package/dist/react/schemas/session.d.ts +121 -0
  231. package/dist/react/schemas/skill.d.ts +50 -0
  232. package/dist/react/schemas/studio/agent.d.ts +12 -0
  233. package/dist/react/schemas/studio/database.d.ts +39 -0
  234. package/dist/react/schemas/studio/env.d.ts +7 -0
  235. package/dist/react/schemas/studio/knowledge.d.ts +18 -0
  236. package/dist/react/schemas/studio/resource-base.d.ts +7 -0
  237. package/dist/react/schemas/studio/scene.d.ts +12 -0
  238. package/dist/react/schemas/studio/tool.d.ts +25 -0
  239. package/dist/react/schemas/task.d.ts +12 -0
  240. package/dist/react/sockets/event-bridge.d.ts +115 -0
  241. package/dist/react/sockets/socket-state.d.ts +4 -0
  242. package/dist/react/stores/answer-callback-store.d.ts +9 -0
  243. package/dist/react/stores/auth-store.d.ts +38 -0
  244. package/dist/react/stores/background-store.d.ts +13 -0
  245. package/dist/react/stores/card-state-store.d.ts +10 -0
  246. package/dist/react/stores/chat-store.d.ts +34 -0
  247. package/dist/react/stores/client-aware.d.ts +7 -0
  248. package/dist/react/stores/connection-store.d.ts +14 -0
  249. package/dist/react/stores/gis-store.d.ts +19 -0
  250. package/dist/react/stores/index.d.ts +14 -0
  251. package/dist/react/stores/runtime-features-store.d.ts +21 -0
  252. package/dist/react/stores/runtime-store.d.ts +18 -0
  253. package/dist/react/stores/session-store.d.ts +44 -0
  254. package/dist/react/stores/task-store.d.ts +9 -0
  255. package/dist/react/stores/ui-bridge-store.d.ts +32 -0
  256. package/dist/react/stores/ui-store.d.ts +69 -0
  257. package/dist/react/types/index.d.ts +7 -0
  258. package/dist/react/types/solution.d.ts +101 -0
  259. package/package.json +41 -12
  260. package/dist/SkillStatusBar-DluiBsVj.d.ts +0 -340
  261. package/dist/blade-client-CseN7OW9.d.ts +0 -1867
  262. package/dist/chunk-7F6UP5LP.js.map +0 -1
  263. package/dist/chunk-IMMRWXI7.js.map +0 -1
  264. package/dist/react/api/vibe-coding.d.ts +0 -55
  265. package/dist/react/api/vibe-coding.js +0 -47
  266. package/dist/react/api/vibe-coding.js.map +0 -1
  267. package/dist/session-CT8Y2KHr.d.ts +0 -227
  268. package/dist/sessions-DI9DVun7.d.ts +0 -177
  269. /package/dist/{chunk-2QYV43YP.js.map → chunk-C2FKVGJU.js.map} +0 -0
  270. /package/dist/{chunk-TYM7KL2L.js.map → chunk-JU5SL4HP.js.map} +0 -0
  271. /package/dist/{chunk-BQKF6HJH.js.map → chunk-TE6G6NVX.js.map} +0 -0
  272. /package/dist/{chunk-ICV7OTGX.js.map → chunk-X2NJKKXR.js.map} +0 -0
@@ -1,1867 +0,0 @@
1
- import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
2
- import * as arktype_internal_variants_string_ts from 'arktype/internal/variants/string.ts';
3
- import { T as TurnProjection } from './projection-BWYEFYNn.js';
4
- import { a as SessionInfo, T as TemplateId, S as SessionDetail, c as Solution, B as BizRole } from './session-CT8Y2KHr.js';
5
- import { Socket } from 'socket.io-client';
6
-
7
- declare class BladeApiError extends Error {
8
- readonly response: Response;
9
- readonly status: number;
10
- readonly statusText: string;
11
- constructor(response: Response, message?: string);
12
- }
13
- type HttpMethod = "DELETE" | "GET" | "PATCH" | "POST" | "PUT" | (string & {});
14
- interface BladeFetchInit {
15
- body?: BodyInit | null;
16
- credentials?: RequestCredentials;
17
- expectOk?: boolean;
18
- headers?: HeadersInit;
19
- signal?: AbortSignal | null;
20
- }
21
-
22
- interface ApiKeyPublic {
23
- id: string;
24
- name: string;
25
- masked: string;
26
- created_at: string;
27
- last_used_at: string | null;
28
- /**
29
- * 完整 key 原文。后端按 #761 设计存明文,支持反复获取;存量 hash-only 行为 null。
30
- */
31
- plaintext: string | null;
32
- /**
33
- * 只读行(如经 bo 经纪人下发的 GIT_ACCESS_TOKEN):UI 只给复制,不给改名/撤销。
34
- */
35
- readonly?: boolean;
36
- }
37
- interface ApiKeyCreateResponse {
38
- key: ApiKeyPublic;
39
- plaintext: string;
40
- }
41
- declare class ApiKeysResource {
42
- private client;
43
- constructor(client: BladeClient);
44
- listApiKeys(): Promise<ApiKeyPublic[]>;
45
- createApiKey(name: string): Promise<ApiKeyCreateResponse>;
46
- renameApiKey(id: string, name: string): Promise<ApiKeyPublic>;
47
- deleteApiKey(id: string): Promise<void>;
48
- }
49
-
50
- interface UserInfo {
51
- id: string;
52
- username: string;
53
- display_name?: string | null;
54
- avatar_url: string | null;
55
- token: string;
56
- auth_type: "casdoor";
57
- is_admin?: boolean;
58
- }
59
- interface ProvidersResponse {
60
- providers: Array<{
61
- name: string;
62
- authorize_url: string;
63
- }>;
64
- password_enabled: boolean;
65
- }
66
- declare class AuthResource {
67
- private client;
68
- constructor(client: BladeClient);
69
- getProviders(): Promise<ProvidersResponse>;
70
- getMe(): Promise<UserInfo>;
71
- logout(): Promise<{
72
- logout_url: string;
73
- }>;
74
- }
75
-
76
- interface EnvBucket {
77
- bucket: string;
78
- env: Record<string, string>;
79
- }
80
- interface PlatformEnvBucket {
81
- env: Record<string, string>;
82
- }
83
- declare class EnvBucketsResource {
84
- private client;
85
- constructor(client: BladeClient);
86
- listEnvBuckets(): Promise<EnvBucket[]>;
87
- getEnvBucket(bucket: string): Promise<EnvBucket>;
88
- setEnvBucket(bucket: string, env: Record<string, string>): Promise<EnvBucket>;
89
- deleteEnvBucket(bucket: string): Promise<void>;
90
- getPlatformEnv(): Promise<PlatformEnvBucket>;
91
- getPlatformEnvReadonly(): Promise<PlatformEnvBucket>;
92
- setPlatformEnv(env: Record<string, string>): Promise<PlatformEnvBucket>;
93
- deletePlatformEnv(): Promise<void>;
94
- }
95
-
96
- type GisGoalStatus = "pending" | "active" | "done" | "cancelled";
97
- interface GisGoal {
98
- id: string;
99
- title: string;
100
- description?: string | null;
101
- status: GisGoalStatus;
102
- priority: 1 | 2 | 3;
103
- created_at: string;
104
- updated_at: string;
105
- }
106
- interface GisResource$1 {
107
- id: string;
108
- name: string;
109
- type: string;
110
- quantity: number;
111
- unit?: string | null;
112
- location?: string | null;
113
- note?: string | null;
114
- created_at: string;
115
- updated_at: string;
116
- }
117
- interface GisState {
118
- goals: GisGoal[];
119
- resources: GisResource$1[];
120
- targets: GisTarget[];
121
- }
122
- interface GisTarget {
123
- id: string;
124
- name: string;
125
- description?: string | null;
126
- location?: string | null;
127
- lat?: number | null;
128
- lng?: number | null;
129
- status: GisGoalStatus;
130
- priority: 1 | 2 | 3;
131
- created_at: string;
132
- updated_at: string;
133
- }
134
- interface GisMapCommand {
135
- id: string;
136
- action: string;
137
- payload?: unknown;
138
- toolCallId?: string | null;
139
- createdAt: number;
140
- }
141
- interface RuntimeConfig {
142
- sentryDsn: string;
143
- gisMapUrl: string;
144
- bladeOsPath: string;
145
- }
146
-
147
- declare class GisResource {
148
- private client;
149
- constructor(client: BladeClient);
150
- fetchGisState(sessionId: string, init?: RequestInit): Promise<GisState>;
151
- fetchRuntimeConfig(init?: RequestInit): Promise<RuntimeConfig>;
152
- }
153
-
154
- type JsonSchemaObject = Record<string, unknown>;
155
- interface HeadlessRunOptions {
156
- schema?: JsonSchemaObject | null;
157
- model?: string | null;
158
- timeoutMs?: number;
159
- }
160
- interface HeadlessRunInSessionResult<T = unknown> {
161
- session_id: string;
162
- chat_run_id: string | null;
163
- result: T | string;
164
- }
165
- declare class HeadlessError extends Error {
166
- readonly detail?: unknown | undefined;
167
- constructor(message: string, detail?: unknown | undefined);
168
- }
169
- declare class HeadlessResource {
170
- private client;
171
- constructor(client: BladeClient);
172
- run<T = unknown>(prompt: string, options: HeadlessRunOptions & {
173
- schema: JsonSchemaObject;
174
- }): Promise<T>;
175
- run(prompt: string, options?: HeadlessRunOptions): Promise<string>;
176
- runInSession<T = unknown>(sessionId: string, prompt: string, options: HeadlessRunOptions & {
177
- schema: JsonSchemaObject;
178
- }): Promise<T>;
179
- runInSession(sessionId: string, prompt: string, options?: HeadlessRunOptions): Promise<string>;
180
- runWithSession<T = unknown>(prompt: string, options: HeadlessRunOptions & {
181
- schema: JsonSchemaObject;
182
- }): Promise<HeadlessRunInSessionResult<T>>;
183
- runWithSession(prompt: string, options?: HeadlessRunOptions): Promise<HeadlessRunInSessionResult<string>>;
184
- private runTracked;
185
- }
186
-
187
- interface Memory {
188
- id: number;
189
- type: "feedback" | "experience";
190
- content: string;
191
- skill_name: string | null;
192
- record_type: "memory" | "skill_comment" | null;
193
- scope: string | null;
194
- owner: string | null;
195
- topic: string | null;
196
- mem0_id: string | null;
197
- superseded_by: number | null;
198
- write_reason: string | null;
199
- created_at: string;
200
- updated_at: string | null;
201
- hit_count: number;
202
- last_hit_at: string | null;
203
- disabled: boolean;
204
- source_session: string;
205
- }
206
- interface MemoryListResponse {
207
- items: Memory[];
208
- total: number;
209
- }
210
- interface MemoryListParams {
211
- keyword?: string;
212
- skill_name?: string;
213
- type?: string;
214
- record_type?: string;
215
- scope?: string;
216
- owner?: string;
217
- topic?: string;
218
- status?: string;
219
- offset?: number;
220
- limit?: number;
221
- }
222
- interface MemoryCreateBody {
223
- content: string;
224
- type?: "feedback" | "experience";
225
- skill_name?: string | null;
226
- record_type?: "memory" | "skill_comment" | null;
227
- scope?: string | null;
228
- owner?: string | null;
229
- topic?: string | null;
230
- mem0_id?: string | null;
231
- write_reason?: string | null;
232
- }
233
- declare class MemoriesResource {
234
- private client;
235
- constructor(client: BladeClient);
236
- createMemory(body: MemoryCreateBody): Promise<Memory>;
237
- listMemories(params?: MemoryListParams): Promise<MemoryListResponse>;
238
- getMemory(id: number): Promise<Memory>;
239
- updateMemory(id: number, body: Partial<MemoryCreateBody>): Promise<Memory>;
240
- patchMemory(id: number, disabled: boolean): Promise<Memory>;
241
- deleteMemory(id: number): Promise<{
242
- ok: boolean;
243
- }>;
244
- batchMemories(action: "delete" | "disable" | "enable", ids: number[]): Promise<{
245
- ok: boolean;
246
- count: number;
247
- }>;
248
- }
249
-
250
- declare const ModelOption: arktype_internal_variants_object_ts.ObjectType<{
251
- id: string;
252
- label: string;
253
- inputModalities?: string[] | undefined;
254
- supportsImage?: boolean | undefined;
255
- }, {}>;
256
- type ModelOption = typeof ModelOption.infer;
257
- declare const ModelsConfig: arktype_internal_variants_object_ts.ObjectType<{
258
- default: string;
259
- models: {
260
- id: string;
261
- label: string;
262
- inputModalities?: string[] | undefined;
263
- supportsImage?: boolean | undefined;
264
- }[];
265
- }, {}>;
266
- type ModelsConfig = typeof ModelsConfig.infer;
267
- declare class ModelsResource {
268
- private client;
269
- constructor(client: BladeClient);
270
- getModelsConfig(init?: RequestInit): Promise<ModelsConfig>;
271
- }
272
-
273
- declare const PublishedAppStatus: arktype_internal_variants_string_ts.StringType<"running" | "restarting" | "exited", {}>;
274
- type PublishedAppStatus = typeof PublishedAppStatus.infer;
275
- declare const PublishedApp: arktype_internal_variants_object_ts.ObjectType<{
276
- session_id: string;
277
- name: string;
278
- url: string;
279
- host_port: number;
280
- app_port: number;
281
- icon: string;
282
- open_in: string;
283
- created_at: number;
284
- status: "running" | "restarting" | "exited";
285
- os_app_id: string;
286
- os_registered: boolean;
287
- }, {}>;
288
- type PublishedApp = typeof PublishedApp.infer;
289
- declare const PublishedAppListResponse: arktype_internal_variants_object_ts.ObjectType<{
290
- items: {
291
- session_id: string;
292
- name: string;
293
- url: string;
294
- host_port: number;
295
- app_port: number;
296
- icon: string;
297
- open_in: string;
298
- created_at: number;
299
- status: "running" | "restarting" | "exited";
300
- os_app_id: string;
301
- os_registered: boolean;
302
- }[];
303
- }, {}>;
304
- type PublishedAppListResponse = typeof PublishedAppListResponse.infer;
305
- declare const UnpublishAppResponse: arktype_internal_variants_object_ts.ObjectType<{
306
- ok: boolean;
307
- os_app_id?: string | undefined;
308
- os_registered?: boolean | undefined;
309
- }, {}>;
310
- type UnpublishAppResponse = typeof UnpublishAppResponse.infer;
311
-
312
- declare class PublishedAppsResource {
313
- private client;
314
- constructor(client: BladeClient);
315
- listPublishedApps(): Promise<PublishedApp[]>;
316
- unpublishApp(sessionId: string, appName?: string): Promise<UnpublishAppResponse>;
317
- }
318
-
319
- declare const AgentDriver: arktype_internal_variants_string_ts.StringType<"dify", {}>;
320
- type AgentDriver = typeof AgentDriver.infer;
321
- declare const AgentResource: arktype_internal_variants_object_ts.ObjectType<{
322
- id: string;
323
- name: string;
324
- description: string;
325
- tags: string[];
326
- type: "agent";
327
- subtype: "dify";
328
- config: Record<string, unknown>;
329
- }, {}>;
330
- type AgentResource = typeof AgentResource.infer;
331
-
332
- declare const MysqlConfig: arktype_internal_variants_object_ts.ObjectType<{
333
- host: string;
334
- port: number;
335
- user: string;
336
- password: string;
337
- database: string;
338
- charset?: string | undefined;
339
- tables?: string[] | undefined;
340
- ssl?: boolean | undefined;
341
- connection_pool_size?: number | undefined;
342
- query_timeout?: number | undefined;
343
- }, {}>;
344
- type MysqlConfig = typeof MysqlConfig.infer;
345
- declare const PostgresqlConfig: arktype_internal_variants_object_ts.ObjectType<{
346
- host: string;
347
- port: number;
348
- user: string;
349
- password: string;
350
- database: string;
351
- schema?: string | undefined;
352
- tables?: string[] | undefined;
353
- ssl_mode?: string | undefined;
354
- connection_pool_size?: number | undefined;
355
- query_timeout?: number | undefined;
356
- }, {}>;
357
- type PostgresqlConfig = typeof PostgresqlConfig.infer;
358
- declare const DatabaseDriver: arktype_internal_variants_string_ts.StringType<"mysql" | "postgresql", {}>;
359
- type DatabaseDriver = typeof DatabaseDriver.infer;
360
- declare const DatabaseResource: arktype_internal_variants_object_ts.ObjectType<{
361
- id: string;
362
- name: string;
363
- description: string;
364
- tags: string[];
365
- type: "data";
366
- subtype: "db";
367
- driver: "mysql" | "postgresql";
368
- config: Record<string, unknown>;
369
- }, {}>;
370
- type DatabaseResource = typeof DatabaseResource.infer;
371
-
372
- declare const DifyKnowledgeConfig: arktype_internal_variants_object_ts.ObjectType<{
373
- base_url: string;
374
- api_key: string;
375
- kg_name: string;
376
- }, {}>;
377
- type DifyKnowledgeConfig = typeof DifyKnowledgeConfig.infer;
378
- declare const KnowledgeDriver: arktype_internal_variants_string_ts.StringType<"dify", {}>;
379
- type KnowledgeDriver = typeof KnowledgeDriver.infer;
380
- declare const KnowledgeResource: arktype_internal_variants_object_ts.ObjectType<{
381
- id: string;
382
- name: string;
383
- description: string;
384
- tags: string[];
385
- type: "knowledge";
386
- subtype: "dify";
387
- config: Record<string, unknown>;
388
- }, {}>;
389
- type KnowledgeResource = typeof KnowledgeResource.infer;
390
-
391
- declare const McpToolConfig: arktype_internal_variants_object_ts.ObjectType<{
392
- server_url?: string | undefined;
393
- command?: string | undefined;
394
- args?: string[] | undefined;
395
- env?: Record<string, string> | undefined;
396
- }, {}>;
397
- type McpToolConfig = typeof McpToolConfig.infer;
398
- declare const HttpToolConfig: arktype_internal_variants_object_ts.ObjectType<{
399
- openapi_json_path: string;
400
- base_url?: string | undefined;
401
- auth_header?: string | undefined;
402
- }, {}>;
403
- type HttpToolConfig = typeof HttpToolConfig.infer;
404
- declare const ToolDriver: arktype_internal_variants_string_ts.StringType<"mcp" | "http", {}>;
405
- type ToolDriver = typeof ToolDriver.infer;
406
- declare const ToolResource: arktype_internal_variants_object_ts.ObjectType<{
407
- id: string;
408
- name: string;
409
- description: string;
410
- tags: string[];
411
- type: "tools";
412
- subtype: "mcp" | "http";
413
- config: Record<string, unknown>;
414
- }, {}>;
415
- type ToolResource = typeof ToolResource.infer;
416
-
417
- declare const REGISTRY_PREFIX = "/api-registry";
418
- type RawResourceResponse = {
419
- id: number | string;
420
- type: string;
421
- subtype: string;
422
- driver?: string | null;
423
- name: string;
424
- description: string;
425
- tags: string[];
426
- config: Record<string, unknown>;
427
- status?: string | null;
428
- status_message?: string | null;
429
- last_checked_at?: string | null;
430
- extra?: Record<string, unknown>;
431
- capabilities?: string[];
432
- actions?: unknown[];
433
- created_at?: string;
434
- updated_at?: string;
435
- [key: string]: unknown;
436
- };
437
- declare function normalizeResource<T extends Record<string, unknown>>(raw: RawResourceResponse): T;
438
- type ResourceApi<T extends Record<string, unknown>> = {
439
- list(init?: RequestInit): Promise<T[]>;
440
- get(id: string, init?: RequestInit): Promise<T>;
441
- create(data: Partial<T>, init?: RequestInit): Promise<T>;
442
- update(id: string, data: Partial<T>, init?: RequestInit): Promise<T>;
443
- delete(id: string, init?: RequestInit): Promise<void>;
444
- };
445
- type SkillOrgOption = {
446
- id: string;
447
- display_name: string;
448
- kind: "personal" | "org";
449
- is_mine: boolean;
450
- };
451
- type SkillOrgListResponse = {
452
- orgs: string[];
453
- org_options?: SkillOrgOption[];
454
- };
455
- declare class RegistryResource {
456
- private client;
457
- readonly databaseApi: ResourceApi<DatabaseResource>;
458
- readonly toolApi: ResourceApi<ToolResource>;
459
- readonly knowledgeApi: ResourceApi<KnowledgeResource>;
460
- readonly agentApi: ResourceApi<AgentResource>;
461
- constructor(client: BladeClient);
462
- createResourceApi<T extends Record<string, unknown>>(apiType: string): ResourceApi<T>;
463
- listSkillOrgs(): Promise<SkillOrgListResponse>;
464
- publishSkill(sessionId: string, org: string): Promise<{
465
- success: boolean;
466
- skill_id: string;
467
- }>;
468
- }
469
-
470
- interface ExistingSolutionRef {
471
- kind: "existing";
472
- solutionId: string;
473
- bizRoleId?: string;
474
- }
475
- interface PreparedSolutionAsset {
476
- kind: "prepared";
477
- assetId: string;
478
- bizRoleId?: string;
479
- }
480
- type SolutionRef = ExistingSolutionRef | PreparedSolutionAsset;
481
- interface SessionProfile {
482
- solution?: SolutionRef;
483
- model?: string;
484
- compactionRatio?: number;
485
- enableThinking?: boolean;
486
- memoryEnabled?: boolean;
487
- disableTools?: string[];
488
- env?: Record<string, string>;
489
- }
490
- interface RunOptions {
491
- headless?: boolean;
492
- outputSchema?: Record<string, unknown>;
493
- runtimeEnv?: Record<string, string>;
494
- timeoutMs?: number;
495
- trace?: boolean;
496
- compactionRatio?: number;
497
- model?: string;
498
- }
499
- interface PreparedSolution extends PreparedSolutionAsset {
500
- assetId: string;
501
- solutionId: string;
502
- roles: string[];
503
- expiresAt: string;
504
- }
505
- interface RunResult {
506
- sessionId: string;
507
- chatRunId?: string;
508
- result: unknown;
509
- events: unknown[];
510
- }
511
- interface RunTrace {
512
- events: unknown[];
513
- history: unknown[];
514
- result: unknown;
515
- configSnapshot: Record<string, unknown>;
516
- }
517
-
518
- declare class RunsResource {
519
- private client;
520
- constructor(client: BladeClient);
521
- run(sessionId: string, message: string, options?: RunOptions): Promise<RunResult>;
522
- collectTrace(run: RunResult): Promise<RunTrace>;
523
- }
524
-
525
- interface PreviewUrlItem {
526
- name: string;
527
- url: string;
528
- }
529
- interface QuickScenario {
530
- id: number;
531
- name: string;
532
- prompt_template: string;
533
- skills: string[];
534
- preview_urls: PreviewUrlItem[];
535
- init_script: string;
536
- icon: string;
537
- created_at: string;
538
- updated_at: string;
539
- }
540
- interface BladeHubScenarioResource {
541
- resource_id: string;
542
- resource_name: string;
543
- name: string;
544
- description: string;
545
- prompt_template: string;
546
- skills: string[];
547
- preview_urls: PreviewUrlItem[];
548
- init_script: string;
549
- icon: string;
550
- raw?: Record<string, unknown>;
551
- }
552
- interface CreateQuickScenarioPayload {
553
- name: string;
554
- prompt_template?: string;
555
- skills?: string[];
556
- preview_urls?: PreviewUrlItem[];
557
- init_script?: string;
558
- icon?: string;
559
- }
560
- interface UpdateQuickScenarioPayload extends CreateQuickScenarioPayload {
561
- }
562
- declare class ScenariosResource {
563
- private client;
564
- constructor(client: BladeClient);
565
- listQuickScenarios(init?: RequestInit): Promise<QuickScenario[]>;
566
- createQuickScenario(payload: CreateQuickScenarioPayload, init?: RequestInit): Promise<QuickScenario>;
567
- deleteQuickScenario(scenarioId: number, init?: RequestInit): Promise<{
568
- ok: boolean;
569
- }>;
570
- updateQuickScenario(scenarioId: number, payload: UpdateQuickScenarioPayload, init?: RequestInit): Promise<QuickScenario>;
571
- listBladeHubScenarioResources(limit?: number, init?: RequestInit): Promise<BladeHubScenarioResource[]>;
572
- }
573
-
574
- interface BackgroundTask {
575
- id: string;
576
- command: string;
577
- description?: string;
578
- status: "queued" | "starting" | "running" | "succeeded" | "done" | "failed" | "timeout" | "cancelled" | "lost";
579
- legacy_status?: "running" | "done" | "failed";
580
- exit_code?: number | null;
581
- elapsed_seconds: number;
582
- output_lines_count?: number;
583
- output_preview?: string[];
584
- output?: string;
585
- log_path?: string | null;
586
- started_at?: number | null;
587
- finished_at?: number | null;
588
- heartbeat_at?: number | null;
589
- }
590
-
591
- declare const TaskStatus: arktype_internal_variants_string_ts.StringType<"pending" | "done" | "failed" | "in_progress" | "skipped", {}>;
592
- type TaskStatus = typeof TaskStatus.infer;
593
- declare const Task: arktype_internal_variants_object_ts.ObjectType<{
594
- id: string;
595
- goal: string;
596
- skills: string[];
597
- depends_on: string[];
598
- status: "pending" | "done" | "failed" | "in_progress" | "skipped";
599
- result_summary: string;
600
- number: string;
601
- }, {}>;
602
- type Task = typeof Task.infer;
603
-
604
- interface CreateSessionRequest {
605
- intent?: string;
606
- template_id?: TemplateId;
607
- solution_id?: string;
608
- biz_role_id?: string | null;
609
- primary_skill_id?: string | null;
610
- workspace_id?: string | null;
611
- is_persistent?: boolean | null;
612
- model?: string | null;
613
- enable_thinking?: boolean | null;
614
- software_factory_id?: number | null;
615
- memory_enabled?: boolean | null;
616
- env?: Record<string, string>;
617
- disable_tools?: string[] | null;
618
- session_solution_asset_id?: string | null;
619
- compaction_ratio?: number | null;
620
- }
621
- interface CheckpointNode {
622
- id: string;
623
- parent_id: string | null;
624
- content_preview: string;
625
- content: string;
626
- timestamp: string;
627
- }
628
- type ContentPart = {
629
- type: "text";
630
- text: string;
631
- } | {
632
- type: "image_url";
633
- image_url: {
634
- url: string;
635
- detail?: string;
636
- };
637
- };
638
- interface HistoryNode {
639
- id: string;
640
- parent_id: string | null;
641
- kind: string;
642
- role: string;
643
- timestamp: string;
644
- preview: string;
645
- content: string | ContentPart[];
646
- tool_calls: Array<{
647
- id?: string;
648
- type?: string;
649
- function?: {
650
- name?: string;
651
- arguments?: string;
652
- };
653
- }> | null;
654
- usage: {
655
- prompt_tokens?: number;
656
- completion_tokens?: number;
657
- total_tokens?: number;
658
- } | null;
659
- total_tokens: number;
660
- token_diff: number;
661
- is_deprecated: boolean;
662
- loop_name: string;
663
- }
664
- interface SessionHistory {
665
- nodes: HistoryNode[];
666
- active_branch: string | null;
667
- branches: string[];
668
- system_prompt_tokens?: number | null;
669
- tools_tokens?: number | null;
670
- tokenizer_model?: string | null;
671
- }
672
- interface TokenizeResult {
673
- model: string;
674
- prompt_tokens: number;
675
- prompt: string;
676
- }
677
- interface PaginatedSessionsResult {
678
- items: SessionInfo[];
679
- total: number;
680
- limit: number;
681
- offset: number;
682
- content_match_truncated?: boolean;
683
- }
684
- interface SkillDevSession {
685
- session: SessionInfo;
686
- skill_id: string;
687
- display_name: string;
688
- skill_description: string;
689
- }
690
- interface ShareLinkResult {
691
- token: string;
692
- url: string;
693
- expires_at: string | null;
694
- }
695
- interface SessionContextStats {
696
- tokens_used: number;
697
- context_window: number;
698
- compaction_ratio: number;
699
- }
700
- interface FileEntry {
701
- name: string;
702
- path: string;
703
- is_dir: boolean;
704
- created_at: number;
705
- tags?: string[];
706
- }
707
- type UploadFileEntry = File | {
708
- file: File;
709
- name: string;
710
- };
711
- interface UploadFilesOptions {
712
- onProgress?: (progress: UploadProgress) => void;
713
- }
714
- interface ImportPreviewSkill {
715
- name: string;
716
- description: string;
717
- path: string;
718
- }
719
- interface ImportPreviewScenario {
720
- scenario?: {
721
- name?: string;
722
- };
723
- skills?: string[];
724
- preview_urls?: string[];
725
- init_script?: string;
726
- generated_at?: string;
727
- }
728
- interface ImportPreview {
729
- user_messages: string[];
730
- turn_count: number;
731
- skills: ImportPreviewSkill[];
732
- scenario: ImportPreviewScenario | null;
733
- }
734
- declare class SessionsResource {
735
- private client;
736
- constructor(client: BladeClient);
737
- private fetchSessionsPage;
738
- listSessions(template_id_prefix?: string, solution_id?: string): Promise<SessionInfo[]>;
739
- listSessionsPaginated(params: {
740
- limit: number;
741
- offset: number;
742
- template_id_prefix?: string;
743
- solution_id?: string;
744
- q?: string;
745
- }): Promise<PaginatedSessionsResult>;
746
- listSessionsWithSkillData(): Promise<SkillDevSession[]>;
747
- createSession(intent?: string, template_id?: TemplateId, primary_skill_id?: string | null): Promise<{
748
- session_id: string;
749
- }>;
750
- createSessionWithRequest(request: CreateSessionRequest): Promise<{
751
- session_id: string;
752
- }>;
753
- createWithProfile(params: {
754
- intent: string;
755
- profile: SessionProfile;
756
- }): Promise<{
757
- session_id: string;
758
- }>;
759
- getSession(sessionId: string, init?: RequestInit): Promise<SessionDetail>;
760
- updateSession(sessionId: string, payload: {
761
- intent?: string;
762
- }): Promise<SessionDetail>;
763
- setSessionEnv(sessionId: string, env: Record<string, string>): Promise<SessionDetail>;
764
- pinSession(sessionId: string, pinned: boolean): Promise<SessionInfo>;
765
- startReplaySession(sourceSessionId: string, speed?: 1 | 2 | 5): Promise<{
766
- session_id: string;
767
- }>;
768
- updateReplaySession(sessionId: string, payload: {
769
- speed?: 1 | 2 | 5;
770
- status?: "autonomous";
771
- }): Promise<{
772
- replay_state: SessionInfo["replay_state"];
773
- }>;
774
- updateSharing(sessionId: string, shared: boolean): Promise<{
775
- shared: boolean;
776
- }>;
777
- updateSessionMemory(sessionId: string, memoryEnabled: boolean): Promise<{
778
- memory_enabled: boolean;
779
- }>;
780
- createShare(sessionId: string): Promise<ShareLinkResult>;
781
- revokeShare(sessionId: string, token: string): Promise<{
782
- revoked: boolean;
783
- }>;
784
- getSharedSession(token: string): Promise<TurnProjection[]>;
785
- getSessionTasks(sessionId: string): Promise<Task[]>;
786
- getSessionTurns(sessionId: string): Promise<TurnProjection[]>;
787
- getSessionContextStats(sessionId: string, init?: RequestInit): Promise<SessionContextStats>;
788
- getSessionHistory(sessionId: string, init?: RequestInit): Promise<SessionHistory>;
789
- tokenizePrompt(prompt: string, model?: string): Promise<TokenizeResult>;
790
- tokenizeMessages(messages: Array<Record<string, unknown>>, options?: {
791
- model?: string;
792
- add_generation_prompt?: boolean;
793
- enable_thinking?: boolean | null;
794
- tools?: Array<Record<string, unknown>>;
795
- }): Promise<TokenizeResult>;
796
- getSessionCheckpoints(sessionId: string, init?: RequestInit): Promise<{
797
- nodes: CheckpointNode[];
798
- leaf_id: string | null;
799
- }>;
800
- checkoutSession(sessionId: string, checkpointId: string, position: "before" | "turn_end", mode?: "both" | "conversation" | "code", linear?: boolean): Promise<{
801
- id: string;
802
- content: string;
803
- position: string;
804
- mode?: string;
805
- files_restored?: boolean;
806
- linear?: boolean;
807
- }>;
808
- rewindSession(sessionId: string, checkpointId: string): Promise<{
809
- id: string;
810
- content: string;
811
- }>;
812
- switchBranch(sessionId: string, checkpointId: string): Promise<{
813
- id: string;
814
- leaf_id: string;
815
- }>;
816
- deleteSession(sessionId: string): Promise<{
817
- deleted: boolean;
818
- }>;
819
- listBackgroundTasks(sessionId: string, init?: RequestInit): Promise<BackgroundTask[]>;
820
- getBackgroundTask(sessionId: string, taskId: string, tail?: number, init?: RequestInit): Promise<BackgroundTask>;
821
- stopBackgroundTask(sessionId: string, taskId: string): Promise<{
822
- message: string;
823
- task?: BackgroundTask | null;
824
- }>;
825
- probeSessionUrl(sessionId: string, url: string): Promise<{
826
- reachable: boolean;
827
- }>;
828
- listDir(sessionId: string, dirPath: string): Promise<FileEntry[]>;
829
- uploadFiles(sessionId: string, dirPath: string, files: FileList | File[] | UploadFileEntry[], options?: UploadFilesOptions): Promise<{
830
- uploaded: string[];
831
- failed: string[];
832
- }>;
833
- deleteFile(sessionId: string, filePath: string): Promise<void>;
834
- writeFile(sessionId: string, filePath: string, content: string): Promise<{
835
- success: boolean;
836
- }>;
837
- renameFile(sessionId: string, filePath: string, newName: string): Promise<{
838
- path: string;
839
- }>;
840
- copyFile(sessionId: string, filePath: string): Promise<{
841
- path: string;
842
- }>;
843
- shareFile(sessionId: string, sourcePath: string, linkName?: string, shareFolder?: string): Promise<{
844
- path: string;
845
- target: string;
846
- }>;
847
- getDownloadDirUrl(sessionId: string, dirPath: string): string;
848
- exportSession(sessionId: string): Promise<void>;
849
- previewImport(file: File): Promise<ImportPreview>;
850
- importSession(file: File, name?: string, solutionId?: string | null): Promise<{
851
- session_id: string;
852
- }>;
853
- }
854
-
855
- declare const PartnerSkillName: arktype_internal_variants_string_ts.StringType<`${string}/${string}`, {}>;
856
- type PartnerSkillName = typeof PartnerSkillName.infer;
857
- declare const SessionSkillName: arktype_internal_variants_string_ts.StringType<`${string}/${string}`, {}>;
858
- type SessionSkillName = PartnerSkillName;
859
- declare const PartnerSkillFile: arktype_internal_variants_object_ts.ObjectType<{
860
- path: string;
861
- content: string;
862
- }, {}>;
863
- type PartnerSkillFile = typeof PartnerSkillFile.infer;
864
- declare const SessionSkillFile: arktype_internal_variants_object_ts.ObjectType<{
865
- path: string;
866
- content: string;
867
- }, {}>;
868
- type SessionSkillFile = PartnerSkillFile;
869
- declare const PartnerSkillInstallPayload: arktype_internal_variants_object_ts.ObjectType<{
870
- name: `${string}/${string}`;
871
- files: {
872
- path: string;
873
- content: string;
874
- }[];
875
- }, {}>;
876
- type PartnerSkillInstallPayload = typeof PartnerSkillInstallPayload.infer;
877
- declare const SessionSkillUploadPayload: arktype_internal_variants_object_ts.ObjectType<{
878
- name: `${string}/${string}`;
879
- files: {
880
- path: string;
881
- content: string;
882
- }[];
883
- }, {}>;
884
- type SessionSkillUploadPayload = PartnerSkillInstallPayload;
885
- declare const PartnerSkillInstallResult: arktype_internal_variants_object_ts.ObjectType<{
886
- name: `${string}/${string}`;
887
- skill_dir: string;
888
- file_count: number;
889
- overwritten: boolean;
890
- }, {}>;
891
- type PartnerSkillInstallResult = typeof PartnerSkillInstallResult.infer;
892
- declare const SessionSkillUploadResult: arktype_internal_variants_object_ts.ObjectType<{
893
- name: `${string}/${string}`;
894
- skill_dir: string;
895
- file_count: number;
896
- overwritten: boolean;
897
- }, {}>;
898
- type SessionSkillUploadResult = PartnerSkillInstallResult;
899
-
900
- interface SkillSummary {
901
- skill_id: string;
902
- display_name: string;
903
- dir_name: string;
904
- description: string;
905
- path: string;
906
- references: string[];
907
- local: boolean;
908
- }
909
- interface SkillSearchResult {
910
- skill_id: string;
911
- display_name: string;
912
- dir_name: string;
913
- description: string;
914
- local: boolean;
915
- }
916
- type SkillDisplayTarget = {
917
- skill_id?: string | null;
918
- display_name?: string | null;
919
- skillId?: string | null;
920
- displayName?: string | null;
921
- };
922
- declare function skillDisplayName(skill: SkillDisplayTarget): string;
923
- interface SkillStats {
924
- loaded_skill_count: number;
925
- loaded_skill_names: string[];
926
- remote_configured: boolean;
927
- remote_connected: boolean;
928
- installed_skill_count: number;
929
- }
930
- interface StepSpec {
931
- n: number;
932
- label: string;
933
- }
934
- interface StageSpec {
935
- id: string;
936
- name: string;
937
- steps: StepSpec[];
938
- }
939
- interface ParallelMode {
940
- id: string;
941
- name: string;
942
- prompt_hint: string;
943
- }
944
- interface SkillDetail extends SkillSummary {
945
- content: string;
946
- stages?: StageSpec[];
947
- parallel_modes?: ParallelMode[];
948
- }
949
-
950
- interface GlobalSkillStats {
951
- remote_configured: boolean;
952
- remote_connected: boolean;
953
- installed_skill_count: number;
954
- }
955
- interface InstalledRegistrySkill {
956
- id: string;
957
- name: string;
958
- display_name?: string | null;
959
- description?: string | null;
960
- is_installed?: boolean;
961
- is_preset?: boolean;
962
- preinstalled?: boolean;
963
- org_display_name?: string | null;
964
- has_tools?: boolean;
965
- }
966
- declare class SkillsResource {
967
- private client;
968
- constructor(client: BladeClient);
969
- listSkills(init?: RequestInit): Promise<SkillSummary[]>;
970
- listInstalledRegistrySkills(init?: RequestInit): Promise<InstalledRegistrySkill[]>;
971
- listSessionSkills(sessionId: string, init?: RequestInit): Promise<SkillSummary[]>;
972
- resyncSkills(sessionId: string, init?: RequestInit): Promise<{
973
- detail?: string;
974
- copied: number;
975
- removed: number;
976
- preserved: number;
977
- }>;
978
- searchSkills(query: string, limit?: number, init?: RequestInit): Promise<SkillSearchResult[]>;
979
- getSkillStats(sessionId: string, init?: RequestInit): Promise<SkillStats>;
980
- getGlobalSkillStats(init?: RequestInit): Promise<GlobalSkillStats>;
981
- getSkill(skillName: string, init?: RequestInit): Promise<SkillDetail>;
982
- uploadSessionSkill(sessionId: string, payload: SessionSkillUploadPayload, init?: RequestInit): Promise<SessionSkillUploadResult>;
983
- installPartnerSkill(sessionId: string, payload: PartnerSkillInstallPayload, init?: RequestInit): Promise<PartnerSkillInstallResult>;
984
- }
985
-
986
- interface SoftwareFactoryTopicModule {
987
- software_id: number;
988
- topic_key: string;
989
- topic_title: string;
990
- topic_description: string;
991
- module_key: string;
992
- module_name: string;
993
- required: boolean;
994
- enabled: boolean;
995
- order_index: number;
996
- session_id: string | null;
997
- sub_key: string;
998
- label: string;
999
- opt: string;
1000
- assignee_name: string | null;
1001
- assignee_type: string | null;
1002
- timeline_json: string;
1003
- created_at: string;
1004
- updated_at: string;
1005
- }
1006
- interface SoftwareFactoryModuleBlueprint {
1007
- key: string;
1008
- name: string;
1009
- required: boolean;
1010
- order_index: number;
1011
- }
1012
- interface SoftwareFactorySoftware {
1013
- id: number;
1014
- name: string;
1015
- description: string;
1016
- issue_session_id: string | null;
1017
- created_at: string;
1018
- updated_at: string;
1019
- module_blueprints: SoftwareFactoryModuleBlueprint[];
1020
- topic_modules: SoftwareFactoryTopicModule[];
1021
- }
1022
- interface CreateSoftwareFactorySoftwarePayload {
1023
- name: string;
1024
- description?: string;
1025
- }
1026
- interface SoftwareFactorySharedFile {
1027
- id: number;
1028
- software_id: number;
1029
- module_key: string;
1030
- module_name: string;
1031
- session_id: string;
1032
- file_path: string;
1033
- file_name: string;
1034
- created_at: string;
1035
- updated_at: string;
1036
- }
1037
- interface CreateSoftwareFactorySharedFilePayload {
1038
- module_key: string;
1039
- session_id: string;
1040
- file_path: string;
1041
- file_name?: string;
1042
- }
1043
- interface SoftwareFactoryTopic {
1044
- id: number;
1045
- software_id: number;
1046
- topic_key: string;
1047
- title: string;
1048
- description: string;
1049
- order_index: number;
1050
- created_at: string;
1051
- updated_at: string;
1052
- }
1053
- interface CodingTask {
1054
- name: string;
1055
- path: string;
1056
- files: string[];
1057
- }
1058
- interface CodingTaskTopic {
1059
- topic_name: string;
1060
- tasks: CodingTask[];
1061
- }
1062
- declare class SoftwareFactoryResource {
1063
- private client;
1064
- constructor(client: BladeClient);
1065
- listSoftware(): Promise<SoftwareFactorySoftware[]>;
1066
- getSoftware(softwareId: number): Promise<SoftwareFactorySoftware>;
1067
- deleteSoftware(softwareId: number): Promise<{
1068
- ok: boolean;
1069
- }>;
1070
- createSoftware(payload: CreateSoftwareFactorySoftwarePayload): Promise<SoftwareFactorySoftware>;
1071
- updateSoftware(softwareId: number, payload: {
1072
- name?: string;
1073
- description?: string;
1074
- }): Promise<SoftwareFactorySoftware>;
1075
- bindTopicModuleSession(softwareId: number, topicKey: string, moduleKey: string, sessionId: string, assignee?: {
1076
- name?: string | null;
1077
- type?: string | null;
1078
- }): Promise<SoftwareFactorySoftware>;
1079
- submitModuleForReview(softwareId: number, topicKey: string, moduleKey: string, subKey?: string): Promise<SoftwareFactoryTopicModule>;
1080
- completeModule(softwareId: number, topicKey: string, moduleKey: string, subKey?: string): Promise<SoftwareFactoryTopicModule>;
1081
- reopenModule(softwareId: number, topicKey: string, moduleKey: string, subKey?: string): Promise<SoftwareFactoryTopicModule>;
1082
- listSharedFiles(softwareId: number): Promise<SoftwareFactorySharedFile[]>;
1083
- createSharedFile(softwareId: number, payload: CreateSoftwareFactorySharedFilePayload): Promise<SoftwareFactorySharedFile>;
1084
- uploadSoftwareDocuments(softwareId: number, files: File[]): Promise<{
1085
- uploaded: string[];
1086
- failed: string[];
1087
- }>;
1088
- ensureIssueSession(softwareId: number): Promise<{
1089
- session_id: string;
1090
- }>;
1091
- listCodingTasks(softwareId: number): Promise<{
1092
- topics: CodingTaskTopic[];
1093
- }>;
1094
- startCoding(softwareId: number, payload: {
1095
- topic_name: string;
1096
- task_paths: string[];
1097
- assignee_name?: string | null;
1098
- assignee_type?: string | null;
1099
- }): Promise<{
1100
- session_id: string;
1101
- topic_name: string;
1102
- task_names: string[];
1103
- }>;
1104
- readShareFileContent(softwareId: number, path: string): Promise<{
1105
- content: string;
1106
- }>;
1107
- syncShare(softwareId: number): Promise<{
1108
- synced_sessions: string[];
1109
- }>;
1110
- listTopics(softwareId: number): Promise<SoftwareFactoryTopic[]>;
1111
- replaceTopics(softwareId: number, topics: Array<{
1112
- topic_key: string;
1113
- title: string;
1114
- description?: string;
1115
- }>): Promise<SoftwareFactoryTopic[]>;
1116
- getFactoryExportUrl(softwareId: number): string;
1117
- importFactory(file: File): Promise<{
1118
- software_id: number;
1119
- session_id_map: Record<string, string>;
1120
- }>;
1121
- }
1122
-
1123
- type ExportedSolutionFile = {
1124
- blob: Blob;
1125
- filename: string;
1126
- };
1127
- declare class SolutionsResource {
1128
- private client;
1129
- constructor(client: BladeClient);
1130
- fetchSolutions(): Promise<Solution[]>;
1131
- prepareFromZip(file: File | Blob): Promise<PreparedSolution>;
1132
- ensureFromRegistry(registryId: string): Promise<ExistingSolutionRef>;
1133
- fetchSolutionFile(solutionId: string, filePath: string): Promise<string>;
1134
- fetchSolutionBizRoles(solutionId: string, userId?: string): Promise<BizRole[]>;
1135
- /**
1136
- * 把编辑会话里的 solution_name/ 打成 zip 并下载。
1137
- * 返回 Blob 和从 Content-Disposition 解析出来的文件名,
1138
- * 调用方自己负责触发浏览器下载(<a download> 或 window.URL.createObjectURL)。
1139
- */
1140
- exportSolution(sessionId: string): Promise<ExportedSolutionFile>;
1141
- /**
1142
- * 把编辑会话里的 solution 打包并发布到 skill_registry 商店。
1143
- * 后端会打 zip 并 POST 到 registry,这里只传 org + name + overwrite。
1144
- */
1145
- publishSolution(sessionId: string, org: string, name: string, overwrite?: boolean): Promise<{
1146
- success: boolean;
1147
- solution_id: string;
1148
- message: string;
1149
- }>;
1150
- }
1151
-
1152
- type ComputerUpgradeReason = "no_container" | "no_target" | "current_latest" | "up_to_date" | "upgrade_available";
1153
- interface ComputerUpgradeStatusResponse {
1154
- upgrade_available: boolean;
1155
- reason: ComputerUpgradeReason;
1156
- current_version: string | null;
1157
- target_version: string | null;
1158
- }
1159
- interface UpgradeComputerResponse {
1160
- target_version: string | null;
1161
- previous_version: string | null;
1162
- removed_containers: number;
1163
- removed_volume: boolean;
1164
- cleared_memo: number;
1165
- }
1166
- declare class UserPreferencesResource {
1167
- private client;
1168
- constructor(client: BladeClient);
1169
- getUserPreference(key: string): Promise<string | null>;
1170
- setUserPreference(key: string, value: string): Promise<void>;
1171
- getPersistentDefault(): Promise<boolean>;
1172
- setPersistentDefault(value: boolean): Promise<void>;
1173
- resetComputer(): Promise<void>;
1174
- getComputerUpgradeStatus(): Promise<ComputerUpgradeStatusResponse>;
1175
- upgradeComputer(): Promise<UpgradeComputerResponse>;
1176
- }
1177
-
1178
- interface PortMapping {
1179
- host_port: number;
1180
- container_port: number;
1181
- }
1182
- interface VibeCodingSessionInfo {
1183
- session_id: string;
1184
- name: string;
1185
- coding_template: string;
1186
- test_port: number;
1187
- deploy_port: number | null;
1188
- test_service: string | null;
1189
- deploy_service: string | null;
1190
- deploy_version: string | null;
1191
- max_version: string | null;
1192
- }
1193
- interface VibeCodingSessionStatus extends VibeCodingSessionInfo {
1194
- }
1195
- interface VibeCodingDebugSessionStatus {
1196
- session_id: string;
1197
- running: boolean;
1198
- test_running: boolean;
1199
- ports: PortMapping[];
1200
- }
1201
- interface VibeCodingDeployStatus {
1202
- deploy_running: boolean;
1203
- deploy_version: string | null;
1204
- deploy_port: number | null;
1205
- }
1206
- interface VibeCodingDeployRecord {
1207
- version: string;
1208
- release_path: string;
1209
- note: string | null;
1210
- created_at: string;
1211
- }
1212
- type DeployBumpMode = "major" | "minor" | "patch";
1213
- interface CreateVibeCodingSessionParams {
1214
- name?: string;
1215
- coding_template?: string;
1216
- model?: string | null;
1217
- }
1218
- interface CreateVibeCodingSessionResult {
1219
- session_id: string;
1220
- test_port: number;
1221
- }
1222
- declare class VibeCodingResource {
1223
- private client;
1224
- constructor(client: BladeClient);
1225
- createVibeCodingSession(params: CreateVibeCodingSessionParams): Promise<CreateVibeCodingSessionResult>;
1226
- listVibeCodingSessionInfos(): Promise<VibeCodingSessionInfo[]>;
1227
- getVibeCodingSessionDebugStatus(sessionId: string): Promise<VibeCodingDebugSessionStatus>;
1228
- getVibeCodingSessionStatus(sessionId: string): Promise<VibeCodingSessionStatus>;
1229
- getVibeCodingDeployStatus(sessionId: string): Promise<VibeCodingDeployStatus>;
1230
- startVibeCodingService(sessionId: string): Promise<{
1231
- ok: boolean;
1232
- details: string;
1233
- }>;
1234
- stopVibeCodingService(sessionId: string): Promise<{
1235
- ok: boolean;
1236
- details: string;
1237
- }>;
1238
- updateVibeCodingDebugService(sessionId: string): Promise<{
1239
- ok: boolean;
1240
- session_id: string;
1241
- }>;
1242
- deployVibeCodingSession(sessionId: string, note?: string, bump?: DeployBumpMode): Promise<{
1243
- ok: boolean;
1244
- version: string;
1245
- deploy_port: number;
1246
- release_dir: string;
1247
- }>;
1248
- listVibeCodingDeployVersions(sessionId: string): Promise<VibeCodingDeployRecord[]>;
1249
- startVibeCodingDeployService(sessionId: string, version?: string): Promise<{
1250
- ok: boolean;
1251
- details: string;
1252
- deploy_version: string;
1253
- release_dir: string;
1254
- }>;
1255
- stopVibeCodingDeployService(sessionId: string, version?: string): Promise<{
1256
- ok: boolean;
1257
- details: string;
1258
- }>;
1259
- deleteVibeCodingDeployVersion(sessionId: string, version: string): Promise<{
1260
- ok: boolean;
1261
- }>;
1262
- deleteVibeCodingSession(sessionId: string): Promise<{
1263
- ok: boolean;
1264
- }>;
1265
- probeVibeCodingService(sessionId: string, url: string): Promise<{
1266
- reachable: boolean;
1267
- }>;
1268
- exportVibeCodingSession(sessionId: string): Promise<void>;
1269
- importVibeCodingSession(file: File, name?: string, codingTemplate?: string): Promise<CreateVibeCodingSessionResult>;
1270
- }
1271
-
1272
- interface AuthOptions {
1273
- token?: string | (() => string | null | undefined);
1274
- }
1275
-
1276
- type AsrAudioPayload = ArrayBuffer | Uint8Array;
1277
- declare namespace ChatSendPayloadSchema {
1278
- type SessionId = string;
1279
- type Mode = (("planning" | "executing") | null);
1280
- type AskuserAnswer = ({
1281
- [k: string]: unknown;
1282
- } | null);
1283
- type Model = (string | null);
1284
- type ThinkingOverride = (boolean | null);
1285
- type Headless = boolean;
1286
- type OutputSchema = ({
1287
- [k: string]: unknown;
1288
- } | null);
1289
- type FromStep = (number | string | null);
1290
- type Quotes = (unknown[] | null);
1291
- type DeprecateEntryIds = (string[] | null);
1292
- type ReplayDecision = (string | null);
1293
- type RuntimeEnv = ({
1294
- [k: string]: string;
1295
- } | null);
1296
- type CompactionRatio = (number | null);
1297
- interface ChatSendPayload {
1298
- session_id: SessionId;
1299
- message: Message;
1300
- mode?: Mode;
1301
- askuser_answer?: AskuserAnswer;
1302
- model?: Model;
1303
- thinking_override?: ThinkingOverride;
1304
- headless?: Headless;
1305
- output_schema?: OutputSchema;
1306
- whatif?: (WhatIfPayload | null);
1307
- replay_decision?: ReplayDecision;
1308
- runtime_env?: RuntimeEnv;
1309
- compaction_ratio?: CompactionRatio;
1310
- [k: string]: unknown;
1311
- }
1312
- interface Message {
1313
- [k: string]: unknown;
1314
- }
1315
- interface WhatIfPayload {
1316
- from_step?: FromStep;
1317
- quotes?: Quotes;
1318
- deprecate_entry_ids?: DeprecateEntryIds;
1319
- [k: string]: unknown;
1320
- }
1321
- }
1322
- type ChatSendPayload = ChatSendPayloadSchema.ChatSendPayload;
1323
- declare namespace ChatStopPayloadSchema {
1324
- type SessionId = string;
1325
- interface ChatStopPayload {
1326
- session_id: SessionId;
1327
- [k: string]: unknown;
1328
- }
1329
- }
1330
- type ChatStopPayload = ChatStopPayloadSchema.ChatStopPayload;
1331
- declare namespace ChatAppendPayloadSchema {
1332
- type SessionId = string;
1333
- type Message = string;
1334
- interface ChatAppendPayload {
1335
- session_id: SessionId;
1336
- message: Message;
1337
- [k: string]: unknown;
1338
- }
1339
- }
1340
- type ChatAppendPayload = ChatAppendPayloadSchema.ChatAppendPayload;
1341
- declare namespace ChatCompactPayloadSchema {
1342
- type SessionId = string;
1343
- interface ChatCompactPayload {
1344
- session_id: SessionId;
1345
- [k: string]: unknown;
1346
- }
1347
- }
1348
- type ChatCompactPayload = ChatCompactPayloadSchema.ChatCompactPayload;
1349
- declare namespace SessionSubscribePayloadSchema {
1350
- type SessionId = string;
1351
- type Mode = string;
1352
- interface SessionSubscribePayload {
1353
- session_id: SessionId;
1354
- mode?: Mode;
1355
- [k: string]: unknown;
1356
- }
1357
- }
1358
- type SessionSubscribePayload = SessionSubscribePayloadSchema.SessionSubscribePayload;
1359
- declare namespace SessionSubscribeBatchPayloadSchema {
1360
- /**
1361
- * @minItems 1
1362
- * @maxItems 200
1363
- */
1364
- type Sessions = [SessionSubscribe, ...(SessionSubscribe)[]];
1365
- type SessionId = string;
1366
- type Mode = string;
1367
- interface SessionSubscribeBatchPayload {
1368
- sessions: Sessions;
1369
- [k: string]: unknown;
1370
- }
1371
- interface SessionSubscribe {
1372
- session_id: SessionId;
1373
- mode?: Mode;
1374
- [k: string]: unknown;
1375
- }
1376
- }
1377
- type SessionSubscribeBatchPayload = SessionSubscribeBatchPayloadSchema.SessionSubscribeBatchPayload;
1378
- declare namespace SessionUnsubscribePayloadSchema {
1379
- type SessionId = string;
1380
- interface SessionUnsubscribePayload {
1381
- session_id: SessionId;
1382
- [k: string]: unknown;
1383
- }
1384
- }
1385
- type SessionUnsubscribePayload = SessionUnsubscribePayloadSchema.SessionUnsubscribePayload;
1386
- declare namespace AgentBoardProjectSubscribePayloadSchema {
1387
- type ProjectId = number;
1388
- interface AgentBoardProjectSubscribePayload {
1389
- project_id: ProjectId;
1390
- [k: string]: unknown;
1391
- }
1392
- }
1393
- type AgentBoardProjectSubscribePayload = AgentBoardProjectSubscribePayloadSchema.AgentBoardProjectSubscribePayload;
1394
- declare namespace AgentBoardProjectUnsubscribePayloadSchema {
1395
- type ProjectId = number;
1396
- interface AgentBoardProjectUnsubscribePayload {
1397
- project_id: ProjectId;
1398
- [k: string]: unknown;
1399
- }
1400
- }
1401
- type AgentBoardProjectUnsubscribePayload = AgentBoardProjectUnsubscribePayloadSchema.AgentBoardProjectUnsubscribePayload;
1402
- declare namespace ChatStartPayloadSchema {
1403
- type SessionId = (string | null);
1404
- interface ChatStartPayload {
1405
- session_id?: SessionId;
1406
- [k: string]: unknown;
1407
- }
1408
- }
1409
- type ChatStartPayload = ChatStartPayloadSchema.ChatStartPayload;
1410
- declare namespace ChatEndPayloadSchema {
1411
- type SessionId = (string | null);
1412
- type Status = (string | null);
1413
- type FinishReason = (string | null);
1414
- type ChatRunId = (string | null);
1415
- interface ChatEndPayload {
1416
- session_id?: SessionId;
1417
- status?: Status;
1418
- result?: unknown;
1419
- finish_reason?: FinishReason;
1420
- chat_run_id?: ChatRunId;
1421
- [k: string]: unknown;
1422
- }
1423
- }
1424
- type ChatEndPayload = ChatEndPayloadSchema.ChatEndPayload;
1425
- declare namespace SessionUpdatedPayloadSchema {
1426
- type SessionId = string;
1427
- type Model = (string | null);
1428
- type ReplayState = ({
1429
- [k: string]: unknown;
1430
- } | null);
1431
- type Intent = (string | null);
1432
- interface SessionUpdatedPayload {
1433
- session_id: SessionId;
1434
- model?: Model;
1435
- replay_state?: ReplayState;
1436
- intent?: Intent;
1437
- [k: string]: unknown;
1438
- }
1439
- }
1440
- type SessionUpdatedPayload = SessionUpdatedPayloadSchema.SessionUpdatedPayload;
1441
- declare namespace WorkspaceFilesChangedPayloadSchema {
1442
- type SessionId = string;
1443
- type FilePath = (string | null);
1444
- interface WorkspaceFilesChangedPayload {
1445
- session_id: SessionId;
1446
- file_path?: FilePath;
1447
- [k: string]: unknown;
1448
- }
1449
- }
1450
- type WorkspaceFilesChangedPayload = WorkspaceFilesChangedPayloadSchema.WorkspaceFilesChangedPayload;
1451
- declare namespace SystemErrorPayloadSchema {
1452
- type Message = string;
1453
- type SessionId = (string | null);
1454
- type Code = (string | number | null);
1455
- interface SystemErrorPayload {
1456
- message: Message;
1457
- session_id?: SessionId;
1458
- code?: Code;
1459
- detail?: Detail;
1460
- [k: string]: unknown;
1461
- }
1462
- interface Detail {
1463
- [k: string]: unknown;
1464
- }
1465
- }
1466
- type SystemErrorPayload = SystemErrorPayloadSchema.SystemErrorPayload;
1467
- declare namespace SystemNotificationPayloadSchema {
1468
- type SessionId = (string | null);
1469
- type NotificationType = string;
1470
- type Title = string;
1471
- type Detail = (string | null);
1472
- type Status = (string | null);
1473
- type Metadata = ({
1474
- [k: string]: unknown;
1475
- } | null);
1476
- interface SystemNotificationPayload {
1477
- session_id?: SessionId;
1478
- notification_type: NotificationType;
1479
- title: Title;
1480
- detail?: Detail;
1481
- status?: Status;
1482
- metadata?: Metadata;
1483
- [k: string]: unknown;
1484
- }
1485
- }
1486
- type SystemNotificationPayload = SystemNotificationPayloadSchema.SystemNotificationPayload;
1487
- declare namespace TurnProjectionPayloadSchema {
1488
- type Id = string;
1489
- type Sequence = number;
1490
- type TurnId = string;
1491
- type LoopId = string;
1492
- type TurnKind = ("message" | "compaction");
1493
- type Role = ("user" | "assistant" | "system");
1494
- type Status = ("streaming" | "completed" | "paused" | "failed" | "interrupted");
1495
- type Type = ("text" | "thinking" | "tool_use" | "tool_result" | "tool_ui" | "tool_bridge" | "system_notification" | "mode_change" | "plan_status" | "ask_user_answer");
1496
- type Content = string;
1497
- type ToolCallId = (string | null);
1498
- type ToolName = (string | null);
1499
- type DisplayName = (string | null);
1500
- type Blocks = ContentBlock[];
1501
- type Id1 = string;
1502
- type ToolName1 = string;
1503
- type DisplayName1 = string;
1504
- type Arguments = string;
1505
- type Status1 = ("pending" | "done" | "error" | "cancelled" | "awaiting_answer");
1506
- type DurationMs = (number | null);
1507
- type ChildLoopName = string;
1508
- type ChildToolCallId = string;
1509
- type Description = (string | null);
1510
- type ToolCalls = ToolCallProjection[];
1511
- type Model = (string | null);
1512
- type Usage = ({
1513
- [k: string]: unknown;
1514
- } | null);
1515
- type DurationMs1 = number;
1516
- type StartedAt = (string | null);
1517
- type ContextWindow = number;
1518
- type MemoryRefs = (MemoryRef[] | null);
1519
- type Id2 = number;
1520
- type ContentPreview = string;
1521
- type SkillName = (string | null);
1522
- type ParentForkToolCallId = (string | null);
1523
- type CompactionId = (string | null);
1524
- type SummaryPreview = (string | null);
1525
- type SummaryFull = (string | null);
1526
- type ArchivedCount = (number | null);
1527
- type TokensBefore = (number | null);
1528
- type TokensAfter = (number | null);
1529
- type SavedRatio = (number | null);
1530
- type Trigger = (("auto" | "manual" | "forced_retry") | null);
1531
- type FailureReason = (string | null);
1532
- type FallbackApplied = (boolean | null);
1533
- type SessionId = string;
1534
- type SolutionId = (string | null);
1535
- type TemplateId = (string | null);
1536
- interface TurnProjectionPayload {
1537
- id: Id;
1538
- sequence: Sequence;
1539
- turn_id: TurnId;
1540
- loop_id: LoopId;
1541
- kind?: TurnKind;
1542
- role: Role;
1543
- status: Status;
1544
- blocks?: Blocks;
1545
- tool_calls?: ToolCalls;
1546
- model?: Model;
1547
- usage?: Usage;
1548
- duration_ms?: DurationMs1;
1549
- started_at?: StartedAt;
1550
- context_window?: ContextWindow;
1551
- memory_refs?: MemoryRefs;
1552
- parent_fork_tool_call_id?: ParentForkToolCallId;
1553
- compaction_id?: CompactionId;
1554
- summary_preview?: SummaryPreview;
1555
- summary_full?: SummaryFull;
1556
- archived_count?: ArchivedCount;
1557
- tokens_before?: TokensBefore;
1558
- tokens_after?: TokensAfter;
1559
- saved_ratio?: SavedRatio;
1560
- trigger?: Trigger;
1561
- failure_reason?: FailureReason;
1562
- fallback_applied?: FallbackApplied;
1563
- session_id: SessionId;
1564
- solution_id?: SolutionId;
1565
- template_id?: TemplateId;
1566
- [k: string]: unknown;
1567
- }
1568
- interface ContentBlock {
1569
- type: Type;
1570
- content?: Content;
1571
- tool_call_id?: ToolCallId;
1572
- tool_name?: ToolName;
1573
- display_name?: DisplayName;
1574
- [k: string]: unknown;
1575
- }
1576
- interface ToolCallProjection {
1577
- id: Id1;
1578
- tool_name: ToolName1;
1579
- display_name: DisplayName1;
1580
- arguments?: Arguments;
1581
- status?: Status1;
1582
- result?: Result;
1583
- duration_ms?: DurationMs;
1584
- pending_question_ref?: (PendingQuestionRef | null);
1585
- [k: string]: unknown;
1586
- }
1587
- interface Result {
1588
- [k: string]: unknown;
1589
- }
1590
- interface PendingQuestionRef {
1591
- child_loop_name: ChildLoopName;
1592
- child_tool_call_id: ChildToolCallId;
1593
- description?: Description;
1594
- [k: string]: unknown;
1595
- }
1596
- interface MemoryRef {
1597
- id: Id2;
1598
- content_preview: ContentPreview;
1599
- skill_name?: SkillName;
1600
- [k: string]: unknown;
1601
- }
1602
- }
1603
- type TurnProjectionPayload = TurnProjectionPayloadSchema.TurnProjectionPayload;
1604
- declare namespace PatchEnvelopePayloadSchema {
1605
- type Sequence = number;
1606
- type TurnId = string;
1607
- type LoopId = string;
1608
- type PatchType = string;
1609
- type SessionId = string;
1610
- interface PatchEnvelopePayload {
1611
- sequence: Sequence;
1612
- turn_id: TurnId;
1613
- loop_id: LoopId;
1614
- patch_type: PatchType;
1615
- data?: Data;
1616
- session_id: SessionId;
1617
- [k: string]: unknown;
1618
- }
1619
- interface Data {
1620
- [k: string]: unknown;
1621
- }
1622
- }
1623
- type PatchEnvelopePayload = PatchEnvelopePayloadSchema.PatchEnvelopePayload;
1624
- declare namespace AsrReadyPayloadSchema {
1625
- type RequestId = string;
1626
- type Provider = string;
1627
- interface AsrReadyPayload {
1628
- request_id: RequestId;
1629
- provider: Provider;
1630
- [k: string]: unknown;
1631
- }
1632
- }
1633
- type AsrReadyPayload = AsrReadyPayloadSchema.AsrReadyPayload;
1634
- declare namespace AsrTextPayloadSchema {
1635
- type Text = string;
1636
- type RequestId = (string | null);
1637
- interface AsrTextPayload {
1638
- text: Text;
1639
- request_id?: RequestId;
1640
- [k: string]: unknown;
1641
- }
1642
- }
1643
- type AsrTextPayload = AsrTextPayloadSchema.AsrTextPayload;
1644
- declare namespace AsrClosedPayloadSchema {
1645
- type RequestId = string;
1646
- interface AsrClosedPayload {
1647
- request_id: RequestId;
1648
- [k: string]: unknown;
1649
- }
1650
- }
1651
- type AsrClosedPayload = AsrClosedPayloadSchema.AsrClosedPayload;
1652
- declare namespace AsrErrorPayloadSchema {
1653
- type Message = string;
1654
- type RequestId = (string | null);
1655
- interface AsrErrorPayload {
1656
- message: Message;
1657
- request_id?: RequestId;
1658
- [k: string]: unknown;
1659
- }
1660
- }
1661
- type AsrErrorPayload = AsrErrorPayloadSchema.AsrErrorPayload;
1662
- declare namespace VibeLogsLinePayloadSchema {
1663
- type SessionId = string;
1664
- type Line = string;
1665
- interface VibeLogsLinePayload {
1666
- session_id: SessionId;
1667
- line: Line;
1668
- [k: string]: unknown;
1669
- }
1670
- }
1671
- type VibeLogsLinePayload = VibeLogsLinePayloadSchema.VibeLogsLinePayload;
1672
- declare namespace VibeLogsEndPayloadSchema {
1673
- type SessionId = string;
1674
- interface VibeLogsEndPayload {
1675
- session_id: SessionId;
1676
- [k: string]: unknown;
1677
- }
1678
- }
1679
- type VibeLogsEndPayload = VibeLogsEndPayloadSchema.VibeLogsEndPayload;
1680
- declare namespace AgentBoardBoardTaskChangedPayloadSchema {
1681
- type ProjectId = number;
1682
- type Action = ("created" | "updated" | "deleted");
1683
- interface AgentBoardBoardTaskChangedPayload {
1684
- project_id: ProjectId;
1685
- action: Action;
1686
- task: Task;
1687
- [k: string]: unknown;
1688
- }
1689
- interface Task {
1690
- [k: string]: unknown;
1691
- }
1692
- }
1693
- type AgentBoardBoardTaskChangedPayload = AgentBoardBoardTaskChangedPayloadSchema.AgentBoardBoardTaskChangedPayload;
1694
- declare namespace AgentBoardFileOpPayloadSchema {
1695
- type ProjectId = number;
1696
- type SessionId = string;
1697
- type ToolCallId = (string | null);
1698
- type Action = string;
1699
- type FilePath = string;
1700
- type Description = (string | null);
1701
- type ContentPreview = (string | null);
1702
- type FinalContent = (string | null);
1703
- type ContentDelta = (boolean | null);
1704
- type IsFinal = (boolean | null);
1705
- type CreatedAt = string;
1706
- interface AgentBoardFileOpPayload {
1707
- project_id: ProjectId;
1708
- session_id: SessionId;
1709
- tool_call_id?: ToolCallId;
1710
- action: Action;
1711
- file_path: FilePath;
1712
- description?: Description;
1713
- content_preview?: ContentPreview;
1714
- final_content?: FinalContent;
1715
- content_delta?: ContentDelta;
1716
- is_final?: IsFinal;
1717
- created_at: CreatedAt;
1718
- [k: string]: unknown;
1719
- }
1720
- }
1721
- type AgentBoardFileOpPayload = AgentBoardFileOpPayloadSchema.AgentBoardFileOpPayload;
1722
- declare namespace ChatStopAckSchema {
1723
- type Status = string;
1724
- type Message = (string | null);
1725
- type Code = (string | number | null);
1726
- interface ChatStopAck {
1727
- status: Status;
1728
- message?: Message;
1729
- code?: Code;
1730
- [k: string]: unknown;
1731
- }
1732
- }
1733
- type ChatStopAck = ChatStopAckSchema.ChatStopAck;
1734
- declare namespace ChatCompactAckSchema {
1735
- type Status = string;
1736
- type Message = (string | null);
1737
- type Code = (string | number | null);
1738
- interface ChatCompactAck {
1739
- status: Status;
1740
- message?: Message;
1741
- code?: Code;
1742
- [k: string]: unknown;
1743
- }
1744
- }
1745
- type ChatCompactAck = ChatCompactAckSchema.ChatCompactAck;
1746
- interface ClientToServerEvents {
1747
- "chat:send": (payload: ChatSendPayload) => void;
1748
- "chat:stop": (payload: ChatStopPayload, ack: (response: ChatStopAck) => void) => void;
1749
- "chat:append": (payload: ChatAppendPayload) => void;
1750
- "chat:compact": (payload: ChatCompactPayload, ack: (response: ChatCompactAck) => void) => void;
1751
- "session:subscribe": (payload: SessionSubscribePayload) => void;
1752
- "session:subscribe_batch": (payload: SessionSubscribeBatchPayload) => void;
1753
- "session:unsubscribe": (payload: SessionUnsubscribePayload) => void;
1754
- "agent-board:project:subscribe": (payload: AgentBoardProjectSubscribePayload) => void;
1755
- "agent-board:project:unsubscribe": (payload: AgentBoardProjectUnsubscribePayload) => void;
1756
- "asr:start": (payload: unknown) => void;
1757
- "asr:audio": (payload: AsrAudioPayload) => void;
1758
- "asr:stop": (payload: unknown) => void;
1759
- "vibe:logs:start": (payload: unknown) => void;
1760
- "vibe:logs:stop": (payload: unknown) => void;
1761
- "gis.event.analysis.request": (payload: unknown, ack: (response: unknown) => void) => void;
1762
- }
1763
- interface ServerToClientEvents {
1764
- "chat:start": (payload: ChatStartPayload) => void;
1765
- "chat:end": (payload: ChatEndPayload) => void;
1766
- "chat:append:ack": (payload: unknown) => void;
1767
- "session:updated": (payload: SessionUpdatedPayload) => void;
1768
- "workspace:files_changed": (payload: WorkspaceFilesChangedPayload) => void;
1769
- "system:error": (payload: SystemErrorPayload) => void;
1770
- "system:notification": (payload: SystemNotificationPayload) => void;
1771
- "turn:start": (payload: TurnProjectionPayload) => void;
1772
- "turn:patch": (payload: PatchEnvelopePayload) => void;
1773
- "turn:end": (payload: TurnProjectionPayload) => void;
1774
- "task:updated": (payload: unknown) => void;
1775
- "task:synced": (payload: unknown) => void;
1776
- "artifact:created": (payload: unknown) => void;
1777
- "artifact:updated": (payload: unknown) => void;
1778
- "bg:started": (payload: unknown) => void;
1779
- "bg:tasks_completed": (payload: unknown) => void;
1780
- "skills:changed": (payload: unknown) => void;
1781
- "session:rewind": (payload: unknown) => void;
1782
- "asr:ready": (payload: AsrReadyPayload) => void;
1783
- "asr:partial": (payload: AsrTextPayload) => void;
1784
- "asr:final": (payload: AsrTextPayload) => void;
1785
- "asr:closed": (payload: AsrClosedPayload) => void;
1786
- "asr:error": (payload: AsrErrorPayload) => void;
1787
- "vibe:logs:line": (payload: VibeLogsLinePayload) => void;
1788
- "vibe:logs:end": (payload: VibeLogsEndPayload) => void;
1789
- "replay:input_mismatch": (payload: unknown) => void;
1790
- "agent-board:board-task:changed": (payload: AgentBoardBoardTaskChangedPayload) => void;
1791
- "agent-board:file-op": (payload: AgentBoardFileOpPayload) => void;
1792
- }
1793
-
1794
- type TypedSocket = Socket<ServerToClientEvents, ClientToServerEvents>;
1795
- interface CreateSocketOptions extends AuthOptions {
1796
- baseUrl: string;
1797
- path?: string;
1798
- }
1799
- declare function createSocket(options: CreateSocketOptions): TypedSocket;
1800
-
1801
- interface BladeClientOptions {
1802
- baseUrl: string;
1803
- token?: string | (() => string | null | undefined);
1804
- fetchImpl?: typeof fetch;
1805
- onRefreshSuccess?: () => void | Promise<void>;
1806
- }
1807
- declare class BladeClient {
1808
- private refreshPromise;
1809
- private socketInstance;
1810
- private storeRestTokenResolver;
1811
- private storeSocketTokenResolver;
1812
- readonly options: BladeClientOptions;
1813
- readonly apiKeys: ApiKeysResource;
1814
- readonly auth: AuthResource;
1815
- readonly envBuckets: EnvBucketsResource;
1816
- readonly gis: GisResource;
1817
- readonly headless: HeadlessResource;
1818
- readonly memories: MemoriesResource;
1819
- readonly models: ModelsResource;
1820
- readonly publishedApps: PublishedAppsResource;
1821
- readonly registry: RegistryResource;
1822
- readonly runs: RunsResource;
1823
- readonly scenarios: ScenariosResource;
1824
- readonly sessions: SessionsResource;
1825
- readonly skills: SkillsResource;
1826
- readonly softwareFactory: SoftwareFactoryResource;
1827
- readonly solutions: SolutionsResource;
1828
- readonly userPreferences: UserPreferencesResource;
1829
- readonly vibeCoding: VibeCodingResource;
1830
- constructor(options: BladeClientOptions);
1831
- _attachStoreRestTokenResolver(fn: () => string | null | undefined): void;
1832
- _attachStoreSocketTokenResolver(fn: () => string | null | undefined): void;
1833
- setBaseUrl(baseUrl: string): void;
1834
- socket(): TypedSocket;
1835
- json<T>(method: HttpMethod, path: string, body?: unknown): Promise<T>;
1836
- jsonFromInit<T>(path: string, init?: RequestInit): Promise<T>;
1837
- text(method: HttpMethod, path: string): Promise<string>;
1838
- textFromInit(path: string, init?: RequestInit): Promise<string>;
1839
- responseFromInit(path: string, init?: RequestInit): Promise<Response>;
1840
- blob(method: HttpMethod, path: string): Promise<Blob>;
1841
- formData(method: HttpMethod, path: string, form: FormData, options?: {
1842
- expectOk?: boolean;
1843
- onUploadProgress?: (progress: UploadProgress) => void;
1844
- }): Promise<Response>;
1845
- fetch(method: HttpMethod, path: string, init?: BladeFetchInit, isRetry?: boolean): Promise<Response>;
1846
- buildAuthedUrl(path: string): string;
1847
- private buildHeaders;
1848
- private buildUrl;
1849
- private baseUrlWithTrailingSlash;
1850
- private toBaseRelativePath;
1851
- private isSameBackendUrl;
1852
- private shouldRefreshFor401;
1853
- private hasExplicitBearerToken;
1854
- private tryRefresh;
1855
- private resolveTokenForUrl;
1856
- private resolveRestToken;
1857
- private resolveSocketToken;
1858
- private resolveToken;
1859
- private formDataWithUploadProgress;
1860
- }
1861
- interface UploadProgress {
1862
- loaded: number;
1863
- total?: number;
1864
- percent?: number;
1865
- }
1866
-
1867
- export { HeadlessResource as $, type ApiKeyCreateResponse as A, type BackgroundTask as B, type CreateVibeCodingSessionResult as C, type DeployBumpMode as D, type ChatSendPayload as E, type FileEntry as F, type ClientToServerEvents as G, type HistoryNode as H, type ImportPreview as I, type CodingTask as J, type CodingTaskTopic as K, type ComputerUpgradeReason as L, type ComputerUpgradeStatusResponse as M, type CreateQuickScenarioPayload as N, type CreateSocketOptions as O, type PortMapping as P, type CreateSoftwareFactorySharedFilePayload as Q, type CreateSoftwareFactorySoftwarePayload as R, SessionsResource as S, type TokenizeResult as T, type UploadFileEntry as U, VibeCodingResource as V, type ExistingSolutionRef as W, type ExportedSolutionFile as X, GisResource as Y, type GlobalSkillStats as Z, HeadlessError as _, type VibeCodingDeployStatus as a, SessionSkillUploadResult as a$, type HeadlessRunInSessionResult as a0, type HeadlessRunOptions as a1, type HttpMethod as a2, type InstalledRegistrySkill as a3, type JsonSchemaObject as a4, MemoriesResource as a5, type Memory as a6, type MemoryCreateBody as a7, type MemoryListParams as a8, type MemoryListResponse as a9, type SoftwareFactorySoftware as aA, type SoftwareFactoryTopic as aB, type SoftwareFactoryTopicModule as aC, type SolutionRef as aD, SolutionsResource as aE, type SystemErrorPayload as aF, type SystemNotificationPayload as aG, type TurnProjectionPayload as aH, type TypedSocket as aI, type UpdateQuickScenarioPayload as aJ, type UpgradeComputerResponse as aK, type UserInfo as aL, UserPreferencesResource as aM, createSocket as aN, normalizeResource as aO, EnvBucketsResource as aP, type EnvBucket as aQ, type PlatformEnvBucket as aR, type GisState as aS, type RuntimeConfig as aT, type SkillDetail as aU, type SkillStats as aV, type SkillSummary as aW, type SkillSearchResult as aX, PartnerSkillInstallPayload as aY, PartnerSkillInstallResult as aZ, SessionSkillUploadPayload as a_, ModelOption as aa, ModelsConfig as ab, ModelsResource as ac, type PreparedSolution as ad, type PreparedSolutionAsset as ae, type PreviewUrlItem as af, type ProvidersResponse as ag, PublishedAppsResource as ah, type QuickScenario as ai, REGISTRY_PREFIX as aj, RegistryResource as ak, type ResourceApi as al, type RunOptions as am, type RunResult as an, type RunTrace as ao, RunsResource as ap, ScenariosResource as aq, type ServerToClientEvents as ar, type SessionProfile as as, type SessionUpdatedPayload as at, type SkillOrgListResponse as au, type SkillOrgOption as av, SkillsResource as aw, type SoftwareFactoryModuleBlueprint as ax, SoftwareFactoryResource as ay, type SoftwareFactorySharedFile as az, type VibeCodingDebugSessionStatus as b, PublishedApp as b0, PublishedAppListResponse as b1, PublishedAppStatus as b2, UnpublishAppResponse as b3, type GisGoal as b4, type GisResource$1 as b5, type GisTarget as b6, type GisMapCommand as b7, Task as b8, AgentDriver as b9, AgentResource as ba, DatabaseDriver as bb, DatabaseResource as bc, DifyKnowledgeConfig as bd, type GisGoalStatus as be, HttpToolConfig as bf, KnowledgeDriver as bg, KnowledgeResource as bh, McpToolConfig as bi, MysqlConfig as bj, type ParallelMode as bk, PartnerSkillFile as bl, PartnerSkillName as bm, PostgresqlConfig as bn, SessionSkillFile as bo, SessionSkillName as bp, type StageSpec as bq, type StepSpec as br, TaskStatus as bs, ToolDriver as bt, ToolResource as bu, skillDisplayName as bv, type VibeCodingSessionStatus as c, type VibeCodingDeployRecord as d, type VibeCodingSessionInfo as e, type CreateVibeCodingSessionParams as f, type ShareLinkResult as g, type CheckpointNode as h, type SessionContextStats as i, type SessionHistory as j, type PaginatedSessionsResult as k, type SkillDevSession as l, type ContentPart as m, type CreateSessionRequest as n, type ImportPreviewScenario as o, type ImportPreviewSkill as p, type UploadFilesOptions as q, type ApiKeyPublic as r, ApiKeysResource as s, AuthResource as t, BladeApiError as u, BladeClient as v, type BladeClientOptions as w, type BladeFetchInit as x, type BladeHubScenarioResource as y, type ChatEndPayload as z };