@belonguniverseai/react-sdk 0.6.21 → 0.6.23

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 (226) hide show
  1. package/README.md +69 -0
  2. package/dist/api/account-connectors.d.ts +2 -2
  3. package/dist/api/api-keys.d.ts +22 -0
  4. package/dist/api/client-identity.d.ts +12 -0
  5. package/dist/api/client.d.ts +2453 -92
  6. package/dist/api/goals.d.ts +179 -0
  7. package/dist/api/issue-reports.d.ts +13 -0
  8. package/dist/api/query-keys.d.ts +19 -0
  9. package/dist/api/report-client-error.d.ts +3 -0
  10. package/dist/api/retry-fetch.d.ts +19 -0
  11. package/dist/api/session-end.d.ts +2 -0
  12. package/dist/api/skill-library.d.ts +100 -0
  13. package/dist/api/skills.d.ts +3 -1
  14. package/dist/api/task-schedule-sharing.d.ts +166 -0
  15. package/dist/api/task-schedules.d.ts +23 -1
  16. package/dist/app/BelongDock.d.ts +0 -28
  17. package/dist/app/dock-demo-features.d.ts +13 -0
  18. package/dist/app/dock-demo-transport.d.ts +37 -0
  19. package/dist/app/dock-outlet.d.ts +15 -5
  20. package/dist/app/dock-story-data.d.ts +116 -0
  21. package/dist/browser/allowed-ops.d.ts +18 -0
  22. package/dist/browser/host-mcp.d.ts +31 -0
  23. package/dist/component/THIRD_PARTY_NOTICES.txt +24 -0
  24. package/dist/component/{abnfDiagram-N423BO3Z-DZRUOUZQ.js → abnfDiagram-N423BO3Z-bM1BoI0O.js} +4 -4
  25. package/dist/component/{arc-B4biduil.js → arc-DaSgre52.js} +2 -2
  26. package/dist/component/{architectureDiagram-T3A2C74G-q8voStNN.js → architectureDiagram-T3A2C74G-avMCXzQw.js} +3 -3
  27. package/dist/component/{blockDiagram-VBNYF7ZC-C0TDyTgw.js → blockDiagram-VBNYF7ZC-Cg6EDrdt.js} +4 -4
  28. package/dist/component/{c4Diagram-5PPSVZJV-rxRyd6rh.js → c4Diagram-5PPSVZJV-DhUs6wdK.js} +3 -3
  29. package/dist/component/{channel-CUruDJSx.js → channel-DlmuDpcv.js} +2 -2
  30. package/dist/component/{chunk-2GRJ4B5K-Kff5Fvbi.js → chunk-2GRJ4B5K-Drdf-9Az.js} +2 -2
  31. package/dist/component/{chunk-2Q5K7J3B-BT3ZD31a.js → chunk-2Q5K7J3B-CG6mCJjr.js} +2 -2
  32. package/dist/component/{chunk-5RXB4S5H-CYZ36tQD.js → chunk-5RXB4S5H-DYJwqjr4.js} +5 -5
  33. package/dist/component/{chunk-5VM5RSS4-BweQRk7u.js → chunk-5VM5RSS4-B21XfkBj.js} +2 -2
  34. package/dist/component/{chunk-6Q2QTUOP-DHcoXRhe.js → chunk-6Q2QTUOP-DZkWqf90.js} +2 -2
  35. package/dist/component/{chunk-GF5L2VYU-DtE5ljCc.js → chunk-GF5L2VYU-5hBEo1f5.js} +6 -6
  36. package/dist/component/{chunk-JWPE2WC7-ClHq4gN2.js → chunk-JWPE2WC7-DAn-TcDC.js} +2 -2
  37. package/dist/component/{chunk-KBJHAD2P-BeCfHf5W.js → chunk-KBJHAD2P-CEMDhN2A.js} +2 -2
  38. package/dist/component/{chunk-RYQCIY6F-CuAngwHt.js → chunk-RYQCIY6F-BWL1otLK.js} +2 -2
  39. package/dist/component/{chunk-XXDRQBXY-D9c0CJyR.js → chunk-XXDRQBXY-D0TWnqlD.js} +2 -2
  40. package/dist/component/{classDiagram-JCYQIIEL-DdzIbKj1.js → classDiagram-JCYQIIEL-CjU-7xK0.js} +3 -3
  41. package/dist/component/{classDiagram-v2-OCEON4UE-DdzIbKj1.js → classDiagram-v2-OCEON4UE-CjU-7xK0.js} +3 -3
  42. package/dist/component/{cose-bilkent-JH36ORCC-hME9BYGm.js → cose-bilkent-JH36ORCC-MkPQhZKJ.js} +2 -2
  43. package/dist/component/{cynefinDiagram-MW4NZA55-BiceKBPh.js → cynefinDiagram-MW4NZA55-Wf-Eh_MR.js} +3 -3
  44. package/dist/component/{dagre-VZM6K2ZE-DiPOLAUX.js → dagre-VZM6K2ZE-D1ND11ws.js} +3 -3
  45. package/dist/component/{diagram-7IWD3JNH-BSDWgxjs.js → diagram-7IWD3JNH-ChO63Ikp.js} +4 -4
  46. package/dist/component/{diagram-B4RE2ZJO-BdpGOPaT.js → diagram-B4RE2ZJO-CFVIZBxd.js} +3 -3
  47. package/dist/component/{diagram-LBJQPF4R-B0V6_5ih.js → diagram-LBJQPF4R-BFErKt-H.js} +3 -3
  48. package/dist/component/{diagram-Q27KOJAE-CYDb40TJ.js → diagram-Q27KOJAE-3EA2fDKz.js} +4 -4
  49. package/dist/component/{diagram-UB23O5K3-DgwjRdl5.js → diagram-UB23O5K3-D914yr1r.js} +3 -3
  50. package/dist/component/{ebnfDiagram-BXEA7PRR-D-C7SWec.js → ebnfDiagram-BXEA7PRR-BlRDglJm.js} +4 -4
  51. package/dist/component/{erDiagram-JOGREHBK-DLJCjcXM.js → erDiagram-JOGREHBK-BgHUzm41.js} +5 -5
  52. package/dist/component/{flowDiagram-UKHOOZJN-BZfBucKB.js → flowDiagram-UKHOOZJN-Cf42sXVK.js} +7 -7
  53. package/dist/component/{ganttDiagram-PKOTCBZU-CxTHmusv.js → ganttDiagram-PKOTCBZU-Bqai8Nqw.js} +3 -3
  54. package/dist/component/{gitGraphDiagram-DS77QQ5N-B_dWXxMf.js → gitGraphDiagram-DS77QQ5N-M6yX_E4b.js} +4 -4
  55. package/dist/component/{highlighted-body-OFNGDK62-CQ1ZdhQ-.js → highlighted-body-OFNGDK62-C2rmuXAs.js} +2 -2
  56. package/dist/component/index.js +2 -2
  57. package/dist/component/{infoDiagram-6WML65LV-P4GO-aVw.js → infoDiagram-6WML65LV-Bk4qDfY4.js} +2 -2
  58. package/dist/component/{ishikawaDiagram-WSZJBQD7-BMXMrxKI.js → ishikawaDiagram-WSZJBQD7-CQ0-i0XP.js} +2 -2
  59. package/dist/component/{journeyDiagram-NVQOT4AX-DPdTmxkF.js → journeyDiagram-NVQOT4AX-CK9lX22d.js} +5 -5
  60. package/dist/component/{kanban-definition-27J2QSJJ-sYw64NrE.js → kanban-definition-27J2QSJJ-CrIKfzfe.js} +3 -3
  61. package/dist/component/{linear-DYjDg3gl.js → linear-CzN3Xd3g.js} +2 -2
  62. package/dist/component/{mermaid-GHXKKRXX-DfdCmrs3.js → mermaid-GHXKKRXX-B-ea5OKA.js} +116618 -105206
  63. package/dist/component/{mindmap-definition-FAOFIHXS-UkAbrucA.js → mindmap-definition-FAOFIHXS-DUDsEObz.js} +4 -4
  64. package/dist/component/{pegDiagram-VL7TDLO6-BGab1it6.js → pegDiagram-VL7TDLO6-DFJ-rOLH.js} +4 -4
  65. package/dist/component/{pieDiagram-7S7Q4E2Y-BnY70Pr-.js → pieDiagram-7S7Q4E2Y-OwliOUdN.js} +4 -4
  66. package/dist/component/{quadrantDiagram-CIZ2JOQS-Cv1bjdQb.js → quadrantDiagram-CIZ2JOQS-CLKxzqPi.js} +3 -3
  67. package/dist/component/{railroadDiagram-AXF67PYL-DJhLbGB_.js → railroadDiagram-AXF67PYL-_jBOX7-D.js} +4 -4
  68. package/dist/component/{requirementDiagram-LRYGKXZP-CLW3CgbU.js → requirementDiagram-LRYGKXZP-CxfMaDPH.js} +4 -4
  69. package/dist/component/{sankeyDiagram-W5VNT64P-vnapx0yf.js → sankeyDiagram-W5VNT64P-D-qOUzh7.js} +2 -2
  70. package/dist/component/{sequenceDiagram-SI44F4Z6-I43iQsY0.js → sequenceDiagram-SI44F4Z6-B57h29Ae.js} +4 -4
  71. package/dist/component/{sizeCapture-X5ZJPWSS-D9LGwwwC.js → sizeCapture-X5ZJPWSS-DlIoKfk1.js} +2 -2
  72. package/dist/component/snapdom-DkzCA8S0.js +7061 -0
  73. package/dist/component/{stateDiagram-OKZ733FA-BXejMYGk.js → stateDiagram-OKZ733FA-CNNoDNwB.js} +3 -3
  74. package/dist/component/{stateDiagram-v2-UEYNNEHI-BP05TJSl.js → stateDiagram-v2-UEYNNEHI-xYjW9R-s.js} +3 -3
  75. package/dist/component/{swimlanes-SLNWSIFB-CfmDVYhs.js → swimlanes-SLNWSIFB-Chjr6NCU.js} +4 -4
  76. package/dist/component/{swimlanesDiagram-ULZ7WXOC-DfjQBUfV.js → swimlanesDiagram-ULZ7WXOC-A9mWwnCX.js} +3 -3
  77. package/dist/component/{timeline-definition-Z64GVDOM-C0BwzTs3.js → timeline-definition-Z64GVDOM-DldyCd1l.js} +3 -3
  78. package/dist/component/{vennDiagram-T6HMQDX7-CRf8sGBL.js → vennDiagram-T6HMQDX7-BGfiPWG2.js} +2 -2
  79. package/dist/component/{wardleyDiagram-T6FBY63Y-C2h7TQ4a.js → wardleyDiagram-T6FBY63Y-Bzn9DJ27.js} +3 -3
  80. package/dist/component/{xychartDiagram-ELKLHX3M-CBcAwmdF.js → xychartDiagram-ELKLHX3M-nMaNgT12.js} +3 -3
  81. package/dist/components/ai-elements/message.d.ts +2 -2
  82. package/dist/components/ai-elements/prompt-input.d.ts +3 -1
  83. package/dist/components/ai-elements/task.d.ts +2 -1
  84. package/dist/components/ai-elements/terminal-task.d.ts +2 -1
  85. package/dist/components/connectors/portal-theme.d.ts +2 -8
  86. package/dist/components/embed/AgentChatIcon.d.ts +1 -1
  87. package/dist/components/embed/AgentPhaseIcon.d.ts +16 -14
  88. package/dist/components/embed/ApiKeysSettings.d.ts +1 -0
  89. package/dist/components/embed/BetaBadge.d.ts +8 -10
  90. package/dist/components/embed/ComposerContext.d.ts +9 -0
  91. package/dist/components/embed/EmbedAvatar.d.ts +19 -18
  92. package/dist/components/embed/EmbedComposer.d.ts +13 -1
  93. package/dist/components/embed/EmbedHeader.d.ts +13 -30
  94. package/dist/components/embed/EmbedRail.d.ts +29 -10
  95. package/dist/components/embed/EmbedSessions.d.ts +10 -12
  96. package/dist/components/embed/GoalActions.d.ts +15 -0
  97. package/dist/components/embed/GoalBadge.d.ts +17 -0
  98. package/dist/components/embed/GoalClearDialog.d.ts +6 -0
  99. package/dist/components/embed/GoalClearedLine.d.ts +3 -0
  100. package/dist/components/embed/GoalCompletionCard.d.ts +12 -0
  101. package/dist/components/embed/GoalComposeSheet.d.ts +20 -0
  102. package/dist/components/embed/GoalProposalCard.d.ts +29 -0
  103. package/dist/components/embed/GoalRailView.d.ts +15 -0
  104. package/dist/components/embed/GoalRefusalCard.d.ts +22 -0
  105. package/dist/components/embed/GoalSetCard.d.ts +5 -0
  106. package/dist/components/embed/GoalSnoozeMenu.d.ts +14 -0
  107. package/dist/components/embed/GoalStatusRow.d.ts +6 -0
  108. package/dist/components/embed/GoalTimeline.d.ts +6 -0
  109. package/dist/components/embed/LegalShortDisclaimer.d.ts +6 -8
  110. package/dist/components/embed/MentionInput.d.ts +9 -3
  111. package/dist/components/embed/MobileNavBar.d.ts +16 -10
  112. package/dist/components/embed/OnboardingOverlay.d.ts +3 -1
  113. package/dist/components/embed/OnboardingTour.d.ts +1 -10
  114. package/dist/components/embed/OnboardingWelcome.d.ts +1 -11
  115. package/dist/components/embed/PlanPanel.d.ts +3 -1
  116. package/dist/components/embed/PreviewPanel.d.ts +3 -1
  117. package/dist/components/embed/QuestionCard.d.ts +12 -1
  118. package/dist/components/embed/ScheduleNotices.d.ts +23 -0
  119. package/dist/components/embed/SentAsGoalTag.d.ts +1 -0
  120. package/dist/components/embed/SessionSwitcher.d.ts +12 -0
  121. package/dist/components/embed/SubagentAvatar.d.ts +8 -0
  122. package/dist/components/embed/SubagentsPaneBody.d.ts +3 -0
  123. package/dist/components/embed/WorkspacePane.d.ts +3 -1
  124. package/dist/components/embed/navigation-layout.d.ts +7 -0
  125. package/dist/components/embed/rail-flags.d.ts +6 -0
  126. package/dist/components/embed/use-prompt-invocations.d.ts +6 -1
  127. package/dist/components/feedback/IssueReportController.d.ts +1 -0
  128. package/dist/components/feedback/IssueReportDialog.d.ts +6 -0
  129. package/dist/components/prompts/PromptPreviewDialog.d.ts +10 -0
  130. package/dist/components/prompts/PromptsListSurface.d.ts +4 -4
  131. package/dist/components/scheduled/ConfirmDeleteScheduleDialog.d.ts +1 -0
  132. package/dist/components/scheduled/ScheduleDialog.d.ts +4 -0
  133. package/dist/components/scheduled/ScheduledDetailSurface.d.ts +1 -0
  134. package/dist/components/scheduled/ScheduledHeader.d.ts +3 -0
  135. package/dist/components/scheduled/ScheduledListSurface.d.ts +1 -1
  136. package/dist/components/scheduled/ShareScheduleDialog.d.ts +10 -0
  137. package/dist/components/scheduled/SharedSchedulesSurface.d.ts +1 -0
  138. package/dist/components/scheduled/schedule-dialog-model.d.ts +5 -2
  139. package/dist/components/skills/ConfirmDeleteSkillDialog.d.ts +9 -0
  140. package/dist/components/skills/SkillDiscover.d.ts +1 -0
  141. package/dist/components/skills/SkillLibraryToolSync.d.ts +4 -0
  142. package/dist/components/skills/SkillsListSurface.d.ts +29 -0
  143. package/dist/components/skills/UploadSkillDialog.d.ts +32 -0
  144. package/dist/components/skills/skill-archive-file.d.ts +15 -0
  145. package/dist/components/ui/card.d.ts +1 -1
  146. package/dist/components/ui/dialog.d.ts +1 -1
  147. package/dist/components/ui/dropdown-menu.d.ts +2 -2
  148. package/dist/components/ui/hover-card.d.ts +1 -1
  149. package/dist/components/ui/popover.d.ts +1 -1
  150. package/dist/components/ui/select.d.ts +1 -1
  151. package/dist/components/ui/shadow-dialog-focus.d.ts +5 -0
  152. package/dist/components/ui/tooltip.d.ts +1 -1
  153. package/dist/embed/brand-marks.d.ts +3 -3
  154. package/dist/embed/client-error-log.d.ts +72 -0
  155. package/dist/embed/copy.d.ts +8 -2
  156. package/dist/embed/dock-open-request.d.ts +32 -0
  157. package/dist/embed/dock-state.d.ts +1 -1
  158. package/dist/embed/goal-actions-model.d.ts +9 -0
  159. package/dist/embed/goal-cap-notice.d.ts +36 -0
  160. package/dist/embed/goal-deep-link.d.ts +24 -0
  161. package/dist/embed/goal-edit-command.d.ts +25 -0
  162. package/dist/embed/goal-journal.d.ts +53 -0
  163. package/dist/embed/goal-live-status.d.ts +2 -0
  164. package/dist/embed/goal-plain-units.d.ts +35 -0
  165. package/dist/embed/goal-progress.d.ts +15 -0
  166. package/dist/embed/goal-proposal-dismissal.d.ts +11 -0
  167. package/dist/embed/goal-resume-time.d.ts +22 -0
  168. package/dist/embed/goal-row-model.d.ts +27 -0
  169. package/dist/embed/goal-runway.d.ts +5 -0
  170. package/dist/embed/goal-schedule-handoff.d.ts +12 -0
  171. package/dist/embed/goal-status-label.d.ts +3 -0
  172. package/dist/embed/goal-time-usage.d.ts +19 -0
  173. package/dist/embed/issue-report-bus.d.ts +14 -0
  174. package/dist/embed/issue-report-open.d.ts +8 -0
  175. package/dist/embed/issue-report.d.ts +41 -0
  176. package/dist/embed/legal-disclaimer.d.ts +5 -1
  177. package/dist/embed/library-composer.d.ts +24 -0
  178. package/dist/embed/library-navigation.d.ts +6 -0
  179. package/dist/embed/portal-container.d.ts +17 -16
  180. package/dist/embed/presets.d.ts +2 -2
  181. package/dist/embed/schedule-invitation.d.ts +5 -0
  182. package/dist/embed/screen-capture.d.ts +74 -0
  183. package/dist/embed/slash-commands.d.ts +24 -0
  184. package/dist/embed/task-schedule-command.d.ts +7 -0
  185. package/dist/embed/use-session-draft.d.ts +11 -0
  186. package/dist/i18n/messages/en.d.ts +599 -4
  187. package/dist/i18n/messages/surfaces/feedback.d.ts +84 -0
  188. package/dist/i18n/messages/surfaces/files.d.ts +4 -0
  189. package/dist/i18n/messages/surfaces/header.d.ts +20 -0
  190. package/dist/i18n/messages/surfaces/navigation.d.ts +149 -0
  191. package/dist/i18n/messages/surfaces/prompts.d.ts +56 -5
  192. package/dist/i18n/messages/surfaces/scheduled.d.ts +233 -1
  193. package/dist/i18n/messages/surfaces/sessions.d.ts +16 -0
  194. package/dist/i18n/messages/surfaces/settings.d.ts +229 -0
  195. package/dist/i18n/messages/surfaces/skills.d.ts +299 -0
  196. package/dist/i18n/messages/surfaces/stream.d.ts +232 -0
  197. package/dist/i18n/messages/surfaces/usage.d.ts +56 -0
  198. package/dist/i18n/messages/surfaces/workspace.d.ts +20 -0
  199. package/dist/public-api.d.ts +1 -1
  200. package/dist/routes/chat/part-renderer-extra-props.d.ts +43 -0
  201. package/dist/routes/chat/use-goal-receipt.d.ts +37 -0
  202. package/dist/routes/chat/use-host-draft-request.d.ts +2 -0
  203. package/dist/routes/chat/use-session-goal.d.ts +227 -0
  204. package/dist/routes/chat.d.ts +11 -1
  205. package/dist/routes/goal.d.ts +1 -0
  206. package/dist/routes/library.d.ts +4 -0
  207. package/dist/routes/skills.d.ts +2 -0
  208. package/dist/stream/activity-items.d.ts +25 -0
  209. package/dist/stream/ai-sdk-part-renderers.d.ts +67 -32
  210. package/dist/stream/belong-chat-transport.d.ts +157 -2
  211. package/dist/stream/belong-data-parts.d.ts +56 -6
  212. package/dist/stream/goal-store.d.ts +43 -0
  213. package/dist/stream/message-metadata.d.ts +1 -0
  214. package/dist/stream/message-parts.d.ts +42 -0
  215. package/dist/stream/select-goal-set-part-id.d.ts +2 -0
  216. package/dist/stream/select-latest-goal.d.ts +13 -0
  217. package/dist/stream/subagent-controls-store.d.ts +20 -0
  218. package/dist/stream/subagent-lanes-model.d.ts +175 -0
  219. package/dist/stream/subagent-lanes.d.ts +90 -0
  220. package/dist/stream/use-publish-subagent-controls.d.ts +11 -0
  221. package/dist/stream/workspace-focus-store.d.ts +7 -1
  222. package/dist/test/render.d.ts +18 -1
  223. package/dist/test/subagent-fixtures.d.ts +24 -0
  224. package/dist/types/public.d.ts +54 -1
  225. package/package.json +1 -1
  226. package/dist/components/ai-elements/reasoning.d.ts +0 -26
@@ -7,6 +7,8 @@
7
7
  * `window.belong.setToken`); each request reads the current value and
8
8
  * attaches `Authorization: Bearer <jwt>`.
9
9
  */
10
+ type ResolvedGetterTokenObserver = (token: string | null) => void;
11
+ export declare const observeEffectiveToken: (observer: ResolvedGetterTokenObserver) => (() => void);
10
12
  export declare const setBelongToken: (token: string) => void;
11
13
  /** Register a fresh-per-request token source (takes precedence over setToken). */
12
14
  export declare const setBelongTokenProvider: (provider: () => string | null) => void;
@@ -17,6 +19,8 @@ export declare const setBelongTokenProvider: (provider: () => string | null) =>
17
19
  * cached (see `resolveBelongToken`).
18
20
  */
19
21
  export declare const setBelongTokenGetter: (getter: (() => Promise<string>) | null) => void;
22
+ /** Observe the async getter's freshly resolved tokens without storing them. */
23
+ export declare const observeResolvedGetterToken: (observer: ResolvedGetterTokenObserver) => (() => void);
20
24
  /** Register the host agent id sent as `X-Belong-Agent-Id` on every request. */
21
25
  export declare const setBelongAgentId: (agentId: string | null) => void;
22
26
  /** Register the tenant slug sent as `X-Belong-Tenant` on every request. */
@@ -32,6 +36,8 @@ export declare const setBelongTokenRefresher: (refresher: ((opts?: {
32
36
  }) => Promise<void>) | null) => void;
33
37
  export declare const clearBelongToken: () => void;
34
38
  export declare const peekBelongToken: () => string | null;
39
+ /** Synchronous identity for private browser storage; async auth overrides stale sync tokens. */
40
+ export declare const peekStorageIdentityToken: () => string | null;
35
41
  /**
36
42
  * Whether ANY auth source is registered — async getter, sync provider, or a
37
43
  * non-empty static token. The dock login gate (`app/BelongDock.tsx`) reads this
@@ -888,6 +894,7 @@ export declare const createApiClient: (baseUrl: string) => {
888
894
  };
889
895
  output: {
890
896
  messages: {
897
+ clientMessageId?: string | null | undefined;
891
898
  metadata?: {
892
899
  taskId: import('node_modules/@belong/cloud/src/platform/ids').TaskId;
893
900
  feedback: {
@@ -941,6 +948,11 @@ export declare const createApiClient: (baseUrl: string) => {
941
948
  locale?: "en" | "es" | "pt" | "it" | undefined;
942
949
  questionPresentation?: "text" | "card" | undefined;
943
950
  workspaceExternalId?: string | undefined;
951
+ goal?: {
952
+ objective: string;
953
+ criteria?: string[] | undefined;
954
+ runway?: "quick" | "normal" | "long" | undefined;
955
+ } | undefined;
944
956
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
945
957
  llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
946
958
  llmModel?: string | undefined;
@@ -970,6 +982,11 @@ export declare const createApiClient: (baseUrl: string) => {
970
982
  locale?: "en" | "es" | "pt" | "it" | undefined;
971
983
  questionPresentation?: "text" | "card" | undefined;
972
984
  workspaceExternalId?: string | undefined;
985
+ goal?: {
986
+ objective: string;
987
+ criteria?: string[] | undefined;
988
+ runway?: "quick" | "normal" | "long" | undefined;
989
+ } | undefined;
973
990
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
974
991
  llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
975
992
  llmModel?: string | undefined;
@@ -998,6 +1015,11 @@ export declare const createApiClient: (baseUrl: string) => {
998
1015
  locale?: "en" | "es" | "pt" | "it" | undefined;
999
1016
  questionPresentation?: "text" | "card" | undefined;
1000
1017
  workspaceExternalId?: string | undefined;
1018
+ goal?: {
1019
+ objective: string;
1020
+ criteria?: string[] | undefined;
1021
+ runway?: "quick" | "normal" | "long" | undefined;
1022
+ } | undefined;
1001
1023
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1002
1024
  llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1003
1025
  llmModel?: string | undefined;
@@ -1026,6 +1048,11 @@ export declare const createApiClient: (baseUrl: string) => {
1026
1048
  locale?: "en" | "es" | "pt" | "it" | undefined;
1027
1049
  questionPresentation?: "text" | "card" | undefined;
1028
1050
  workspaceExternalId?: string | undefined;
1051
+ goal?: {
1052
+ objective: string;
1053
+ criteria?: string[] | undefined;
1054
+ runway?: "quick" | "normal" | "long" | undefined;
1055
+ } | undefined;
1029
1056
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1030
1057
  llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1031
1058
  llmModel?: string | undefined;
@@ -1046,6 +1073,106 @@ export declare const createApiClient: (baseUrl: string) => {
1046
1073
  };
1047
1074
  outputFormat: "json";
1048
1075
  status: 403;
1076
+ } | {
1077
+ input: {
1078
+ json: {
1079
+ text: string;
1080
+ timezone?: string | undefined;
1081
+ locale?: "en" | "es" | "pt" | "it" | undefined;
1082
+ questionPresentation?: "text" | "card" | undefined;
1083
+ workspaceExternalId?: string | undefined;
1084
+ goal?: {
1085
+ objective: string;
1086
+ criteria?: string[] | undefined;
1087
+ runway?: "quick" | "normal" | "long" | undefined;
1088
+ } | undefined;
1089
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1090
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1091
+ llmModel?: string | undefined;
1092
+ fileIds?: string[] | undefined;
1093
+ clientMessageId?: string | undefined;
1094
+ skill?: string | undefined;
1095
+ mode?: "plan" | "execute" | "approve" | "balanced" | "bypass" | undefined;
1096
+ };
1097
+ } & {
1098
+ param: {
1099
+ sessionId: string;
1100
+ };
1101
+ };
1102
+ output: {
1103
+ error: {
1104
+ type: string;
1105
+ };
1106
+ };
1107
+ outputFormat: "json";
1108
+ status: 503;
1109
+ } | {
1110
+ input: {
1111
+ json: {
1112
+ text: string;
1113
+ timezone?: string | undefined;
1114
+ locale?: "en" | "es" | "pt" | "it" | undefined;
1115
+ questionPresentation?: "text" | "card" | undefined;
1116
+ workspaceExternalId?: string | undefined;
1117
+ goal?: {
1118
+ objective: string;
1119
+ criteria?: string[] | undefined;
1120
+ runway?: "quick" | "normal" | "long" | undefined;
1121
+ } | undefined;
1122
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1123
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1124
+ llmModel?: string | undefined;
1125
+ fileIds?: string[] | undefined;
1126
+ clientMessageId?: string | undefined;
1127
+ skill?: string | undefined;
1128
+ mode?: "plan" | "execute" | "approve" | "balanced" | "bypass" | undefined;
1129
+ };
1130
+ } & {
1131
+ param: {
1132
+ sessionId: string;
1133
+ };
1134
+ };
1135
+ output: {
1136
+ error: {
1137
+ type: string;
1138
+ };
1139
+ };
1140
+ outputFormat: "json";
1141
+ status: 422;
1142
+ } | {
1143
+ input: {
1144
+ json: {
1145
+ text: string;
1146
+ timezone?: string | undefined;
1147
+ locale?: "en" | "es" | "pt" | "it" | undefined;
1148
+ questionPresentation?: "text" | "card" | undefined;
1149
+ workspaceExternalId?: string | undefined;
1150
+ goal?: {
1151
+ objective: string;
1152
+ criteria?: string[] | undefined;
1153
+ runway?: "quick" | "normal" | "long" | undefined;
1154
+ } | undefined;
1155
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1156
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1157
+ llmModel?: string | undefined;
1158
+ fileIds?: string[] | undefined;
1159
+ clientMessageId?: string | undefined;
1160
+ skill?: string | undefined;
1161
+ mode?: "plan" | "execute" | "approve" | "balanced" | "bypass" | undefined;
1162
+ };
1163
+ } & {
1164
+ param: {
1165
+ sessionId: string;
1166
+ };
1167
+ };
1168
+ output: {
1169
+ error: {
1170
+ type: string;
1171
+ limit: number;
1172
+ };
1173
+ };
1174
+ outputFormat: "json";
1175
+ status: 429;
1049
1176
  };
1050
1177
  }>;
1051
1178
  };
@@ -1193,6 +1320,172 @@ export declare const createApiClient: (baseUrl: string) => {
1193
1320
  };
1194
1321
  };
1195
1322
  };
1323
+ } & {
1324
+ v1: {
1325
+ sessions: {
1326
+ ":sessionId": {
1327
+ end: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/end", {
1328
+ $post: {
1329
+ input: {
1330
+ param: {
1331
+ sessionId: string;
1332
+ };
1333
+ };
1334
+ output: null;
1335
+ outputFormat: "body";
1336
+ status: 202;
1337
+ } | {
1338
+ input: {
1339
+ param: {
1340
+ sessionId: string;
1341
+ };
1342
+ };
1343
+ output: {
1344
+ error: {
1345
+ type: string;
1346
+ };
1347
+ };
1348
+ outputFormat: "json";
1349
+ status: 404;
1350
+ };
1351
+ }>;
1352
+ };
1353
+ };
1354
+ };
1355
+ } & {
1356
+ v1: {
1357
+ sessions: {
1358
+ ":sessionId": {
1359
+ goal: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal", {
1360
+ $get: {
1361
+ input: {
1362
+ param: {
1363
+ sessionId: string;
1364
+ };
1365
+ };
1366
+ output: {};
1367
+ outputFormat: string;
1368
+ status: import('hono/utils/http-status').StatusCode;
1369
+ };
1370
+ }>;
1371
+ };
1372
+ };
1373
+ };
1374
+ } & {
1375
+ v1: {
1376
+ sessions: {
1377
+ ":sessionId": {
1378
+ goal: {
1379
+ pause: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/pause", {
1380
+ $post: {
1381
+ input: {
1382
+ param: {
1383
+ sessionId: string;
1384
+ };
1385
+ };
1386
+ output: {};
1387
+ outputFormat: string;
1388
+ status: import('hono/utils/http-status').StatusCode;
1389
+ };
1390
+ }>;
1391
+ };
1392
+ };
1393
+ };
1394
+ };
1395
+ } & {
1396
+ v1: {
1397
+ sessions: {
1398
+ ":sessionId": {
1399
+ goal: {
1400
+ resume: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/resume", {
1401
+ $post: {
1402
+ input: {
1403
+ param: {
1404
+ sessionId: string;
1405
+ };
1406
+ };
1407
+ output: {};
1408
+ outputFormat: string;
1409
+ status: import('hono/utils/http-status').StatusCode;
1410
+ };
1411
+ }>;
1412
+ };
1413
+ };
1414
+ };
1415
+ };
1416
+ } & {
1417
+ v1: {
1418
+ sessions: {
1419
+ ":sessionId": {
1420
+ goal: {
1421
+ clear: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/clear", {
1422
+ $post: {
1423
+ input: {
1424
+ param: {
1425
+ sessionId: string;
1426
+ };
1427
+ };
1428
+ output: {};
1429
+ outputFormat: string;
1430
+ status: import('hono/utils/http-status').StatusCode;
1431
+ };
1432
+ }>;
1433
+ };
1434
+ };
1435
+ };
1436
+ };
1437
+ } & {
1438
+ v1: {
1439
+ sessions: {
1440
+ ":sessionId": {
1441
+ goal: {
1442
+ edit: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/edit", {
1443
+ $post: {
1444
+ input: {
1445
+ json: {
1446
+ objective?: string | undefined;
1447
+ tokenBudget?: number | undefined;
1448
+ maxTurns?: number | undefined;
1449
+ };
1450
+ } & {
1451
+ param: {
1452
+ sessionId: string;
1453
+ };
1454
+ };
1455
+ output: {};
1456
+ outputFormat: string;
1457
+ status: import('hono/utils/http-status').StatusCode;
1458
+ };
1459
+ }>;
1460
+ };
1461
+ };
1462
+ };
1463
+ };
1464
+ } & {
1465
+ v1: {
1466
+ sessions: {
1467
+ ":sessionId": {
1468
+ goal: {
1469
+ snooze: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/snooze", {
1470
+ $post: {
1471
+ input: {
1472
+ json: {
1473
+ wakeAt: string;
1474
+ };
1475
+ } & {
1476
+ param: {
1477
+ sessionId: string;
1478
+ };
1479
+ };
1480
+ output: {};
1481
+ outputFormat: string;
1482
+ status: import('hono/utils/http-status').StatusCode;
1483
+ };
1484
+ }>;
1485
+ };
1486
+ };
1487
+ };
1488
+ };
1196
1489
  } & {
1197
1490
  v1: {
1198
1491
  sessions: {
@@ -1528,19 +1821,69 @@ export declare const createApiClient: (baseUrl: string) => {
1528
1821
  };
1529
1822
  } & {
1530
1823
  v1: {
1531
- legal: {
1532
- "disclaimer-acceptance": import('hono/client').ClientRequest<string, "/v1/legal/disclaimer-acceptance", {
1533
- $get: {
1534
- input: {
1535
- query: {
1536
- version: string;
1537
- };
1538
- };
1539
- output: {
1540
- readonly accepted: boolean;
1824
+ "issue-reports": import('hono/client').ClientRequest<string, "/v1/issue-reports", {
1825
+ $post: {
1826
+ input: {};
1827
+ output: {
1828
+ readonly error: {
1829
+ readonly type: "screenshot_too_large";
1830
+ readonly maxBytes: 2000000;
1541
1831
  };
1542
- outputFormat: "json";
1543
- status: 200;
1832
+ };
1833
+ outputFormat: "json";
1834
+ status: 413;
1835
+ } | {
1836
+ input: {};
1837
+ output: {
1838
+ error: {
1839
+ type: string;
1840
+ };
1841
+ };
1842
+ outputFormat: "json";
1843
+ status: 400;
1844
+ } | {
1845
+ input: {};
1846
+ output: {
1847
+ error: {
1848
+ type: string;
1849
+ };
1850
+ };
1851
+ outputFormat: "json";
1852
+ status: 415;
1853
+ } | {
1854
+ input: {};
1855
+ output: {
1856
+ reportId: import('node_modules/@belong/cloud/src/platform/ids').IssueReportId;
1857
+ };
1858
+ outputFormat: "json";
1859
+ status: 202;
1860
+ } | {
1861
+ input: {};
1862
+ output: {
1863
+ error: {
1864
+ type: string;
1865
+ };
1866
+ };
1867
+ outputFormat: "json";
1868
+ status: 404;
1869
+ };
1870
+ }>;
1871
+ };
1872
+ } & {
1873
+ v1: {
1874
+ legal: {
1875
+ "disclaimer-acceptance": import('hono/client').ClientRequest<string, "/v1/legal/disclaimer-acceptance", {
1876
+ $get: {
1877
+ input: {
1878
+ query: {
1879
+ version: string;
1880
+ };
1881
+ };
1882
+ output: {
1883
+ readonly accepted: boolean;
1884
+ };
1885
+ outputFormat: "json";
1886
+ status: 200;
1544
1887
  };
1545
1888
  $post: {
1546
1889
  input: {
@@ -1616,6 +1959,63 @@ export declare const createApiClient: (baseUrl: string) => {
1616
1959
  };
1617
1960
  };
1618
1961
  };
1962
+ } & {
1963
+ v1: {
1964
+ runs: {
1965
+ ":runId": {
1966
+ subagents: {
1967
+ ":subagentId": {
1968
+ stop: import('hono/client').ClientRequest<string, "/v1/runs/:runId/subagents/:subagentId/stop", {
1969
+ $post: {
1970
+ input: {
1971
+ param: {
1972
+ runId: string;
1973
+ } & {
1974
+ subagentId: string;
1975
+ };
1976
+ };
1977
+ output: {
1978
+ error: {
1979
+ type: string;
1980
+ };
1981
+ };
1982
+ outputFormat: "json";
1983
+ status: 404;
1984
+ } | {
1985
+ input: {
1986
+ param: {
1987
+ runId: string;
1988
+ } & {
1989
+ subagentId: string;
1990
+ };
1991
+ };
1992
+ output: {
1993
+ status: string;
1994
+ };
1995
+ outputFormat: "json";
1996
+ status: 202;
1997
+ } | {
1998
+ input: {
1999
+ param: {
2000
+ runId: string;
2001
+ } & {
2002
+ subagentId: string;
2003
+ };
2004
+ };
2005
+ output: {
2006
+ error: {
2007
+ type: string;
2008
+ };
2009
+ };
2010
+ outputFormat: "json";
2011
+ status: 409;
2012
+ };
2013
+ }>;
2014
+ };
2015
+ };
2016
+ };
2017
+ };
2018
+ };
1619
2019
  } & {
1620
2020
  v1: {
1621
2021
  approvals: {
@@ -3000,11 +3400,17 @@ export declare const createApiClient: (baseUrl: string) => {
3000
3400
  snapshot?: string | undefined;
3001
3401
  text?: string | undefined;
3002
3402
  url?: string | undefined;
3403
+ http?: {
3404
+ status: number;
3405
+ body: string;
3406
+ truncated: boolean;
3407
+ redirected: boolean;
3408
+ } | undefined;
3003
3409
  };
3004
3410
  } | {
3005
3411
  ok: false;
3006
3412
  error: {
3007
- code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op";
3413
+ code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op" | "mcp_not_allowed" | "mcp_fetch_failed" | "op_not_allowed";
3008
3414
  message: string;
3009
3415
  };
3010
3416
  };
@@ -3025,11 +3431,17 @@ export declare const createApiClient: (baseUrl: string) => {
3025
3431
  snapshot?: string | undefined;
3026
3432
  text?: string | undefined;
3027
3433
  url?: string | undefined;
3434
+ http?: {
3435
+ status: number;
3436
+ body: string;
3437
+ truncated: boolean;
3438
+ redirected: boolean;
3439
+ } | undefined;
3028
3440
  };
3029
3441
  } | {
3030
3442
  ok: false;
3031
3443
  error: {
3032
- code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op";
3444
+ code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op" | "mcp_not_allowed" | "mcp_fetch_failed" | "op_not_allowed";
3033
3445
  message: string;
3034
3446
  };
3035
3447
  };
@@ -3078,6 +3490,11 @@ export declare const createApiClient: (baseUrl: string) => {
3078
3490
  } | {
3079
3491
  op: "eval";
3080
3492
  code: string;
3493
+ } | {
3494
+ op: "mcp_call";
3495
+ path: string;
3496
+ tool: string;
3497
+ arguments: Record<string, unknown>;
3081
3498
  } | {
3082
3499
  command: {
3083
3500
  op: "snapshot";
@@ -3105,6 +3522,11 @@ export declare const createApiClient: (baseUrl: string) => {
3105
3522
  } | {
3106
3523
  op: "eval";
3107
3524
  code: string;
3525
+ } | {
3526
+ op: "mcp_call";
3527
+ path: string;
3528
+ tool: string;
3529
+ arguments: Record<string, unknown>;
3108
3530
  };
3109
3531
  sessionId?: string | null | undefined;
3110
3532
  };
@@ -3116,11 +3538,17 @@ export declare const createApiClient: (baseUrl: string) => {
3116
3538
  snapshot?: string | undefined;
3117
3539
  text?: string | undefined;
3118
3540
  url?: string | undefined;
3541
+ http?: {
3542
+ status: number;
3543
+ body: string;
3544
+ truncated: boolean;
3545
+ redirected: boolean;
3546
+ } | undefined;
3119
3547
  };
3120
3548
  } | {
3121
3549
  ok: false;
3122
3550
  error: {
3123
- code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op";
3551
+ code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op" | "mcp_not_allowed" | "mcp_fetch_failed" | "op_not_allowed";
3124
3552
  message: string;
3125
3553
  };
3126
3554
  };
@@ -3155,6 +3583,11 @@ export declare const createApiClient: (baseUrl: string) => {
3155
3583
  } | {
3156
3584
  op: "eval";
3157
3585
  code: string;
3586
+ } | {
3587
+ op: "mcp_call";
3588
+ path: string;
3589
+ tool: string;
3590
+ arguments: Record<string, unknown>;
3158
3591
  } | {
3159
3592
  command: {
3160
3593
  op: "snapshot";
@@ -3182,6 +3615,11 @@ export declare const createApiClient: (baseUrl: string) => {
3182
3615
  } | {
3183
3616
  op: "eval";
3184
3617
  code: string;
3618
+ } | {
3619
+ op: "mcp_call";
3620
+ path: string;
3621
+ tool: string;
3622
+ arguments: Record<string, unknown>;
3185
3623
  };
3186
3624
  sessionId?: string | null | undefined;
3187
3625
  };
@@ -3221,6 +3659,11 @@ export declare const createApiClient: (baseUrl: string) => {
3221
3659
  } | {
3222
3660
  op: "eval";
3223
3661
  code: string;
3662
+ } | {
3663
+ op: "mcp_call";
3664
+ path: string;
3665
+ tool: string;
3666
+ arguments: Record<string, unknown>;
3224
3667
  } | {
3225
3668
  command: {
3226
3669
  op: "snapshot";
@@ -3248,6 +3691,11 @@ export declare const createApiClient: (baseUrl: string) => {
3248
3691
  } | {
3249
3692
  op: "eval";
3250
3693
  code: string;
3694
+ } | {
3695
+ op: "mcp_call";
3696
+ path: string;
3697
+ tool: string;
3698
+ arguments: Record<string, unknown>;
3251
3699
  };
3252
3700
  sessionId?: string | null | undefined;
3253
3701
  };
@@ -3287,6 +3735,11 @@ export declare const createApiClient: (baseUrl: string) => {
3287
3735
  } | {
3288
3736
  op: "eval";
3289
3737
  code: string;
3738
+ } | {
3739
+ op: "mcp_call";
3740
+ path: string;
3741
+ tool: string;
3742
+ arguments: Record<string, unknown>;
3290
3743
  } | {
3291
3744
  command: {
3292
3745
  op: "snapshot";
@@ -3314,6 +3767,11 @@ export declare const createApiClient: (baseUrl: string) => {
3314
3767
  } | {
3315
3768
  op: "eval";
3316
3769
  code: string;
3770
+ } | {
3771
+ op: "mcp_call";
3772
+ path: string;
3773
+ tool: string;
3774
+ arguments: Record<string, unknown>;
3317
3775
  };
3318
3776
  sessionId?: string | null | undefined;
3319
3777
  };
@@ -3353,6 +3811,11 @@ export declare const createApiClient: (baseUrl: string) => {
3353
3811
  } | {
3354
3812
  op: "eval";
3355
3813
  code: string;
3814
+ } | {
3815
+ op: "mcp_call";
3816
+ path: string;
3817
+ tool: string;
3818
+ arguments: Record<string, unknown>;
3356
3819
  } | {
3357
3820
  command: {
3358
3821
  op: "snapshot";
@@ -3380,6 +3843,11 @@ export declare const createApiClient: (baseUrl: string) => {
3380
3843
  } | {
3381
3844
  op: "eval";
3382
3845
  code: string;
3846
+ } | {
3847
+ op: "mcp_call";
3848
+ path: string;
3849
+ tool: string;
3850
+ arguments: Record<string, unknown>;
3383
3851
  };
3384
3852
  sessionId?: string | null | undefined;
3385
3853
  };
@@ -3419,6 +3887,11 @@ export declare const createApiClient: (baseUrl: string) => {
3419
3887
  } | {
3420
3888
  op: "eval";
3421
3889
  code: string;
3890
+ } | {
3891
+ op: "mcp_call";
3892
+ path: string;
3893
+ tool: string;
3894
+ arguments: Record<string, unknown>;
3422
3895
  } | {
3423
3896
  command: {
3424
3897
  op: "snapshot";
@@ -3446,6 +3919,11 @@ export declare const createApiClient: (baseUrl: string) => {
3446
3919
  } | {
3447
3920
  op: "eval";
3448
3921
  code: string;
3922
+ } | {
3923
+ op: "mcp_call";
3924
+ path: string;
3925
+ tool: string;
3926
+ arguments: Record<string, unknown>;
3449
3927
  };
3450
3928
  sessionId?: string | null | undefined;
3451
3929
  };
@@ -3951,7 +4429,11 @@ export declare const createApiClient: (baseUrl: string) => {
3951
4429
  v1: {
3952
4430
  skills: import('hono/client').ClientRequest<string, "/v1/skills", {
3953
4431
  $get: {
3954
- input: {};
4432
+ input: {
4433
+ query: {
4434
+ workspaceExternalId?: string | string[];
4435
+ };
4436
+ };
3955
4437
  output: {
3956
4438
  skills: readonly {
3957
4439
  readonly name: string;
@@ -3970,6 +4452,107 @@ export declare const createApiClient: (baseUrl: string) => {
3970
4452
  };
3971
4453
  }>;
3972
4454
  };
4455
+ } & {
4456
+ v1: {
4457
+ "api-keys": import('hono/client').ClientRequest<string, "/v1/api-keys", {
4458
+ $get: {
4459
+ input: {};
4460
+ output: {
4461
+ apiKeys: {
4462
+ apiKeyId: string;
4463
+ name: string;
4464
+ createdAt: string;
4465
+ }[];
4466
+ };
4467
+ outputFormat: "json";
4468
+ status: 200;
4469
+ };
4470
+ $post: {
4471
+ input: {
4472
+ json: {
4473
+ name: string;
4474
+ };
4475
+ };
4476
+ output: {
4477
+ error: {
4478
+ type: string;
4479
+ requiredScope: string;
4480
+ };
4481
+ };
4482
+ outputFormat: "json";
4483
+ status: 403;
4484
+ } | {
4485
+ input: {
4486
+ json: {
4487
+ name: string;
4488
+ };
4489
+ };
4490
+ output: {
4491
+ apiKeyId: string;
4492
+ key: string;
4493
+ };
4494
+ outputFormat: "json";
4495
+ status: 201;
4496
+ } | {
4497
+ input: {
4498
+ json: {
4499
+ name: string;
4500
+ };
4501
+ };
4502
+ output: {
4503
+ error: {
4504
+ type: "tenant_inactive";
4505
+ };
4506
+ };
4507
+ outputFormat: "json";
4508
+ status: 403;
4509
+ };
4510
+ }>;
4511
+ };
4512
+ } & {
4513
+ v1: {
4514
+ "api-keys": {
4515
+ ":apiKeyId": import('hono/client').ClientRequest<string, "/v1/api-keys/:apiKeyId", {
4516
+ $delete: {
4517
+ input: {
4518
+ param: {
4519
+ apiKeyId: string;
4520
+ };
4521
+ };
4522
+ output: null;
4523
+ outputFormat: "body";
4524
+ status: 204;
4525
+ } | {
4526
+ input: {
4527
+ param: {
4528
+ apiKeyId: string;
4529
+ };
4530
+ };
4531
+ output: {
4532
+ error: {
4533
+ type: string;
4534
+ requiredScope: string;
4535
+ };
4536
+ };
4537
+ outputFormat: "json";
4538
+ status: 403;
4539
+ } | {
4540
+ input: {
4541
+ param: {
4542
+ apiKeyId: string;
4543
+ };
4544
+ };
4545
+ output: {
4546
+ error: {
4547
+ type: string;
4548
+ };
4549
+ };
4550
+ outputFormat: "json";
4551
+ status: 404;
4552
+ };
4553
+ }>;
4554
+ };
4555
+ };
3973
4556
  } & {
3974
4557
  v1: {
3975
4558
  "agent-grants": import('hono/client').ClientRequest<string, "/v1/agent-grants", {
@@ -4576,6 +5159,7 @@ export declare const createApiClient: (baseUrl: string) => {
4576
5159
  output: {
4577
5160
  taskSchedules: {
4578
5161
  taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
5162
+ shared: boolean;
4579
5163
  title: string;
4580
5164
  status: "active" | "completed" | "paused" | "deleted";
4581
5165
  recurrence: {
@@ -4601,33 +5185,99 @@ export declare const createApiClient: (baseUrl: string) => {
4601
5185
  } & {
4602
5186
  v1: {
4603
5187
  "task-schedules": {
4604
- ":taskScheduleId": import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId", {
4605
- $get: {
4606
- input: {
4607
- param: {
4608
- taskScheduleId: string;
4609
- };
4610
- } & {
4611
- query: {
4612
- workspaceExternalId?: string | string[];
5188
+ ":taskScheduleId": {
5189
+ share: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/share", {
5190
+ $post: {
5191
+ input: {
5192
+ param: {
5193
+ taskScheduleId: string;
5194
+ };
5195
+ } & {
5196
+ query: {
5197
+ workspaceExternalId?: string | string[];
5198
+ };
4613
5199
  };
4614
- };
4615
- output: {
4616
- explicitTitle: string | null;
4617
- message: string;
4618
- notification: {
4619
- kind: "completion_email";
4620
- recipients?: string[] | undefined;
4621
- } | {
4622
- kind: "custom_email";
4623
- templatePath: string;
4624
- recipients?: string[] | undefined;
5200
+ output: {
5201
+ error: {
5202
+ type: string;
5203
+ requiredScope: string;
5204
+ };
4625
5205
  };
4626
- mode: "plan" | "approve" | "balanced" | "bypass";
4627
- timeExpression: string;
4628
- anchorAt: string;
4629
- totalRunsCount: number;
4630
- updatedAt: string;
5206
+ outputFormat: "json";
5207
+ status: 403;
5208
+ } | {
5209
+ input: {
5210
+ param: {
5211
+ taskScheduleId: string;
5212
+ };
5213
+ } & {
5214
+ query: {
5215
+ workspaceExternalId?: string | string[];
5216
+ };
5217
+ };
5218
+ output: {
5219
+ definitionId: string;
5220
+ };
5221
+ outputFormat: "json";
5222
+ status: import('hono/utils/http-status').ContentfulStatusCode;
5223
+ } | {
5224
+ input: {
5225
+ param: {
5226
+ taskScheduleId: string;
5227
+ };
5228
+ } & {
5229
+ query: {
5230
+ workspaceExternalId?: string | string[];
5231
+ };
5232
+ };
5233
+ output: {
5234
+ error: {
5235
+ type: string;
5236
+ };
5237
+ };
5238
+ outputFormat: "json";
5239
+ status: 404;
5240
+ };
5241
+ }>;
5242
+ };
5243
+ };
5244
+ };
5245
+ } & {
5246
+ v1: {
5247
+ "task-schedules": {
5248
+ ":taskScheduleId": import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId", {
5249
+ $get: {
5250
+ input: {
5251
+ param: {
5252
+ taskScheduleId: string;
5253
+ };
5254
+ } & {
5255
+ query: {
5256
+ workspaceExternalId?: string | string[];
5257
+ };
5258
+ };
5259
+ output: {
5260
+ sharing: {
5261
+ readonly definitionId: string;
5262
+ readonly role: "owner" | "use" | "edit" | "revoked";
5263
+ readonly revision: number;
5264
+ readonly workspaceCount: number;
5265
+ } | null;
5266
+ explicitTitle: string | null;
5267
+ message: string;
5268
+ notification: {
5269
+ kind: "completion_email";
5270
+ recipients?: string[] | undefined;
5271
+ } | {
5272
+ kind: "custom_email";
5273
+ templatePath: string;
5274
+ recipients?: string[] | undefined;
5275
+ };
5276
+ mode: "plan" | "approve" | "balanced" | "bypass";
5277
+ timeExpression: string;
5278
+ anchorAt: string;
5279
+ totalRunsCount: number;
5280
+ updatedAt: string;
4631
5281
  microsoftTeamsDelivery: {
4632
5282
  expiresAt: string;
4633
5283
  destination: {
@@ -4643,6 +5293,7 @@ export declare const createApiClient: (baseUrl: string) => {
4643
5293
  maxMessagesPerRun: number;
4644
5294
  } | null;
4645
5295
  taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
5296
+ shared: boolean;
4646
5297
  title: string;
4647
5298
  status: "active" | "completed" | "paused" | "deleted";
4648
5299
  recurrence: {
@@ -4689,6 +5340,7 @@ export declare const createApiClient: (baseUrl: string) => {
4689
5340
  };
4690
5341
  } & {
4691
5342
  json: {
5343
+ expectedRevision?: number | undefined;
4692
5344
  title?: string | null | undefined;
4693
5345
  message?: string | undefined;
4694
5346
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -4712,13 +5364,12 @@ export declare const createApiClient: (baseUrl: string) => {
4712
5364
  };
4713
5365
  };
4714
5366
  output: {
4715
- error: {
4716
- type: string;
4717
- requiredScope: string;
4718
- };
5367
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
5368
+ status: "active" | "completed" | "paused" | "deleted";
5369
+ nextRunAt: string | null;
4719
5370
  };
4720
5371
  outputFormat: "json";
4721
- status: 403;
5372
+ status: 200;
4722
5373
  } | {
4723
5374
  input: {
4724
5375
  param: {
@@ -4730,6 +5381,7 @@ export declare const createApiClient: (baseUrl: string) => {
4730
5381
  };
4731
5382
  } & {
4732
5383
  json: {
5384
+ expectedRevision?: number | undefined;
4733
5385
  title?: string | null | undefined;
4734
5386
  message?: string | undefined;
4735
5387
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -4753,12 +5405,12 @@ export declare const createApiClient: (baseUrl: string) => {
4753
5405
  };
4754
5406
  };
4755
5407
  output: {
4756
- taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
4757
- status: "active" | "completed" | "paused" | "deleted";
4758
- nextRunAt: string | null;
5408
+ error: {
5409
+ type: string;
5410
+ };
4759
5411
  };
4760
5412
  outputFormat: "json";
4761
- status: 200;
5413
+ status: 404;
4762
5414
  } | {
4763
5415
  input: {
4764
5416
  param: {
@@ -4770,6 +5422,7 @@ export declare const createApiClient: (baseUrl: string) => {
4770
5422
  };
4771
5423
  } & {
4772
5424
  json: {
5425
+ expectedRevision?: number | undefined;
4773
5426
  title?: string | null | undefined;
4774
5427
  message?: string | undefined;
4775
5428
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -4798,7 +5451,7 @@ export declare const createApiClient: (baseUrl: string) => {
4798
5451
  };
4799
5452
  };
4800
5453
  outputFormat: "json";
4801
- status: 404;
5454
+ status: 403;
4802
5455
  } | {
4803
5456
  input: {
4804
5457
  param: {
@@ -4810,6 +5463,7 @@ export declare const createApiClient: (baseUrl: string) => {
4810
5463
  };
4811
5464
  } & {
4812
5465
  json: {
5466
+ expectedRevision?: number | undefined;
4813
5467
  title?: string | null | undefined;
4814
5468
  message?: string | undefined;
4815
5469
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -4850,6 +5504,7 @@ export declare const createApiClient: (baseUrl: string) => {
4850
5504
  };
4851
5505
  } & {
4852
5506
  json: {
5507
+ expectedRevision?: number | undefined;
4853
5508
  title?: string | null | undefined;
4854
5509
  message?: string | undefined;
4855
5510
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5172,6 +5827,27 @@ export declare const createApiClient: (baseUrl: string) => {
5172
5827
  };
5173
5828
  outputFormat: "json";
5174
5829
  status: 403;
5830
+ } | {
5831
+ input: {
5832
+ param: {
5833
+ taskScheduleId: string;
5834
+ };
5835
+ } & {
5836
+ query: {
5837
+ workspaceExternalId?: string | string[];
5838
+ };
5839
+ } & {
5840
+ json: {
5841
+ clientRequestId?: string | undefined;
5842
+ };
5843
+ };
5844
+ output: {
5845
+ error: {
5846
+ readonly type: "idempotency_key_required" | "idempotency_key_invalid" | "idempotency_key_conflict";
5847
+ };
5848
+ };
5849
+ outputFormat: "json";
5850
+ status: 400;
5175
5851
  } | {
5176
5852
  input: {
5177
5853
  param: {
@@ -5240,34 +5916,44 @@ export declare const createApiClient: (baseUrl: string) => {
5240
5916
  };
5241
5917
  } & {
5242
5918
  v1: {
5243
- "pre-prompts": import('hono/client').ClientRequest<string, "/v1/pre-prompts", {
5244
- $get: {
5245
- input: {
5246
- query: {
5247
- workspaceExternalId?: string | string[];
5248
- limit?: string | string[];
5249
- };
5250
- };
5251
- output: {
5252
- prePrompts: {
5253
- prePromptId: import('node_modules/@belong/cloud/src/platform/ids').PrePromptId;
5254
- name: string;
5255
- description: string;
5256
- body: string;
5257
- createdAt: string;
5258
- }[];
5259
- };
5260
- outputFormat: "json";
5261
- status: 200;
5262
- };
5919
+ "task-schedules": import('hono/client').ClientRequest<string, "/v1/task-schedules", {
5263
5920
  $post: {
5264
5921
  input: {
5265
5922
  json: {
5266
- name: string;
5267
- body: string;
5268
- clientPrePromptId: string;
5269
- description?: string | undefined;
5923
+ scheduledFor: string;
5924
+ timeExpression: string;
5925
+ timezone: string;
5926
+ message: string;
5927
+ clientScheduleId: string;
5928
+ notification?: {
5929
+ kind: "completion_email";
5930
+ recipients?: string[] | undefined;
5931
+ } | {
5932
+ kind: "custom_email";
5933
+ templatePath: string;
5934
+ recipients?: string[] | undefined;
5935
+ } | undefined;
5936
+ title?: string | undefined;
5937
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
5938
+ recurrence?: {
5939
+ kind: "none";
5940
+ } | {
5941
+ kind: "daily";
5942
+ } | {
5943
+ kind: "weekdays";
5944
+ } | {
5945
+ kind: "weekly";
5946
+ } | {
5947
+ kind: "manual";
5948
+ } | {
5949
+ kind: "interval";
5950
+ intervalMinutes: number;
5951
+ } | undefined;
5952
+ originatingSessionId?: string | undefined;
5270
5953
  workspaceExternalId?: string | undefined;
5954
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
5955
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5956
+ llmModel?: string | undefined;
5271
5957
  };
5272
5958
  };
5273
5959
  output: {
@@ -5281,40 +5967,1495 @@ export declare const createApiClient: (baseUrl: string) => {
5281
5967
  } | {
5282
5968
  input: {
5283
5969
  json: {
5284
- name: string;
5285
- body: string;
5286
- clientPrePromptId: string;
5287
- description?: string | undefined;
5970
+ scheduledFor: string;
5971
+ timeExpression: string;
5972
+ timezone: string;
5973
+ message: string;
5974
+ clientScheduleId: string;
5975
+ notification?: {
5976
+ kind: "completion_email";
5977
+ recipients?: string[] | undefined;
5978
+ } | {
5979
+ kind: "custom_email";
5980
+ templatePath: string;
5981
+ recipients?: string[] | undefined;
5982
+ } | undefined;
5983
+ title?: string | undefined;
5984
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
5985
+ recurrence?: {
5986
+ kind: "none";
5987
+ } | {
5988
+ kind: "daily";
5989
+ } | {
5990
+ kind: "weekdays";
5991
+ } | {
5992
+ kind: "weekly";
5993
+ } | {
5994
+ kind: "manual";
5995
+ } | {
5996
+ kind: "interval";
5997
+ intervalMinutes: number;
5998
+ } | undefined;
5999
+ originatingSessionId?: string | undefined;
5288
6000
  workspaceExternalId?: string | undefined;
6001
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6002
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
6003
+ llmModel?: string | undefined;
5289
6004
  };
5290
6005
  };
5291
6006
  output: {
5292
- prePromptId: import('node_modules/@belong/cloud/src/platform/ids').PrePromptId;
5293
- name: string;
6007
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
6008
+ status: "scheduled" | "failed" | "completed" | "running";
6009
+ scheduledFor: string;
6010
+ seriesStatus: "active" | "completed" | "paused" | "deleted";
6011
+ recurrence: {
6012
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
6013
+ };
6014
+ nextRunAt: string | null;
6015
+ title: string;
5294
6016
  };
5295
6017
  outputFormat: "json";
5296
6018
  status: 200 | 201;
5297
6019
  } | {
5298
6020
  input: {
5299
6021
  json: {
5300
- name: string;
5301
- body: string;
5302
- clientPrePromptId: string;
5303
- description?: string | undefined;
6022
+ scheduledFor: string;
6023
+ timeExpression: string;
6024
+ timezone: string;
6025
+ message: string;
6026
+ clientScheduleId: string;
6027
+ notification?: {
6028
+ kind: "completion_email";
6029
+ recipients?: string[] | undefined;
6030
+ } | {
6031
+ kind: "custom_email";
6032
+ templatePath: string;
6033
+ recipients?: string[] | undefined;
6034
+ } | undefined;
6035
+ title?: string | undefined;
6036
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6037
+ recurrence?: {
6038
+ kind: "none";
6039
+ } | {
6040
+ kind: "daily";
6041
+ } | {
6042
+ kind: "weekdays";
6043
+ } | {
6044
+ kind: "weekly";
6045
+ } | {
6046
+ kind: "manual";
6047
+ } | {
6048
+ kind: "interval";
6049
+ intervalMinutes: number;
6050
+ } | undefined;
6051
+ originatingSessionId?: string | undefined;
5304
6052
  workspaceExternalId?: string | undefined;
6053
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6054
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
6055
+ llmModel?: string | undefined;
5305
6056
  };
5306
6057
  };
5307
6058
  output: {
5308
6059
  error: {
5309
6060
  type: string;
5310
- name: string;
5311
6061
  };
5312
6062
  };
5313
6063
  outputFormat: "json";
5314
- status: 409;
5315
- };
5316
- }>;
5317
- };
6064
+ status: 422;
6065
+ } | {
6066
+ input: {
6067
+ json: {
6068
+ scheduledFor: string;
6069
+ timeExpression: string;
6070
+ timezone: string;
6071
+ message: string;
6072
+ clientScheduleId: string;
6073
+ notification?: {
6074
+ kind: "completion_email";
6075
+ recipients?: string[] | undefined;
6076
+ } | {
6077
+ kind: "custom_email";
6078
+ templatePath: string;
6079
+ recipients?: string[] | undefined;
6080
+ } | undefined;
6081
+ title?: string | undefined;
6082
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6083
+ recurrence?: {
6084
+ kind: "none";
6085
+ } | {
6086
+ kind: "daily";
6087
+ } | {
6088
+ kind: "weekdays";
6089
+ } | {
6090
+ kind: "weekly";
6091
+ } | {
6092
+ kind: "manual";
6093
+ } | {
6094
+ kind: "interval";
6095
+ intervalMinutes: number;
6096
+ } | undefined;
6097
+ originatingSessionId?: string | undefined;
6098
+ workspaceExternalId?: string | undefined;
6099
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6100
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
6101
+ llmModel?: string | undefined;
6102
+ };
6103
+ };
6104
+ output: {
6105
+ error: {
6106
+ type: string;
6107
+ };
6108
+ };
6109
+ outputFormat: "json";
6110
+ status: 409;
6111
+ };
6112
+ $get: {
6113
+ input: {
6114
+ query: {
6115
+ filter?: string | string[];
6116
+ q?: string | string[];
6117
+ workspaceExternalId?: string | string[];
6118
+ limit?: string | string[];
6119
+ offset?: string | string[];
6120
+ };
6121
+ };
6122
+ output: {
6123
+ taskSchedules: {
6124
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
6125
+ shared: boolean;
6126
+ title: string;
6127
+ status: "active" | "completed" | "paused" | "deleted";
6128
+ recurrence: {
6129
+ intervalMinutes?: number | undefined;
6130
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
6131
+ };
6132
+ timezone: string;
6133
+ nextRunAt: string | null;
6134
+ lastRun: {
6135
+ status: "failed" | "completed" | "running";
6136
+ at: string | null;
6137
+ } | null;
6138
+ messagePreview: string;
6139
+ createdAt: string;
6140
+ }[];
6141
+ nextOffset: number | null;
6142
+ };
6143
+ outputFormat: "json";
6144
+ status: 200;
6145
+ };
6146
+ }>;
6147
+ };
6148
+ } & {
6149
+ v1: {
6150
+ "task-schedules": {
6151
+ ":taskScheduleId": {
6152
+ share: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/share", {
6153
+ $post: {
6154
+ input: {
6155
+ param: {
6156
+ taskScheduleId: string;
6157
+ };
6158
+ } & {
6159
+ query: {
6160
+ workspaceExternalId?: string | string[];
6161
+ };
6162
+ };
6163
+ output: {
6164
+ error: {
6165
+ type: string;
6166
+ requiredScope: string;
6167
+ };
6168
+ };
6169
+ outputFormat: "json";
6170
+ status: 403;
6171
+ } | {
6172
+ input: {
6173
+ param: {
6174
+ taskScheduleId: string;
6175
+ };
6176
+ } & {
6177
+ query: {
6178
+ workspaceExternalId?: string | string[];
6179
+ };
6180
+ };
6181
+ output: {
6182
+ definitionId: string;
6183
+ };
6184
+ outputFormat: "json";
6185
+ status: import('hono/utils/http-status').ContentfulStatusCode;
6186
+ } | {
6187
+ input: {
6188
+ param: {
6189
+ taskScheduleId: string;
6190
+ };
6191
+ } & {
6192
+ query: {
6193
+ workspaceExternalId?: string | string[];
6194
+ };
6195
+ };
6196
+ output: {
6197
+ error: {
6198
+ type: string;
6199
+ };
6200
+ };
6201
+ outputFormat: "json";
6202
+ status: 404;
6203
+ };
6204
+ }>;
6205
+ };
6206
+ };
6207
+ };
6208
+ } & {
6209
+ v1: {
6210
+ "task-schedules": {
6211
+ ":taskScheduleId": import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId", {
6212
+ $get: {
6213
+ input: {
6214
+ param: {
6215
+ taskScheduleId: string;
6216
+ };
6217
+ } & {
6218
+ query: {
6219
+ workspaceExternalId?: string | string[];
6220
+ };
6221
+ };
6222
+ output: {
6223
+ sharing: {
6224
+ readonly definitionId: string;
6225
+ readonly role: "owner" | "use" | "edit" | "revoked";
6226
+ readonly revision: number;
6227
+ readonly workspaceCount: number;
6228
+ } | null;
6229
+ explicitTitle: string | null;
6230
+ message: string;
6231
+ notification: {
6232
+ kind: "completion_email";
6233
+ recipients?: string[] | undefined;
6234
+ } | {
6235
+ kind: "custom_email";
6236
+ templatePath: string;
6237
+ recipients?: string[] | undefined;
6238
+ };
6239
+ mode: "plan" | "approve" | "balanced" | "bypass";
6240
+ timeExpression: string;
6241
+ anchorAt: string;
6242
+ totalRunsCount: number;
6243
+ updatedAt: string;
6244
+ microsoftTeamsDelivery: {
6245
+ expiresAt: string;
6246
+ destination: {
6247
+ kind: "chat";
6248
+ chatId: string;
6249
+ } | {
6250
+ kind: "channel";
6251
+ teamId: string;
6252
+ channelId: string;
6253
+ };
6254
+ status: import('../../../../apps/belong-cloud/src/features/microsoft/microsoft.schemas').MicrosoftTeamsMandateStatus;
6255
+ allowExternalRecipients: boolean;
6256
+ maxMessagesPerRun: number;
6257
+ } | null;
6258
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
6259
+ shared: boolean;
6260
+ title: string;
6261
+ status: "active" | "completed" | "paused" | "deleted";
6262
+ recurrence: {
6263
+ intervalMinutes?: number | undefined;
6264
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
6265
+ };
6266
+ timezone: string;
6267
+ nextRunAt: string | null;
6268
+ lastRun: {
6269
+ status: "failed" | "completed" | "running";
6270
+ at: string | null;
6271
+ } | null;
6272
+ messagePreview: string;
6273
+ createdAt: string;
6274
+ };
6275
+ outputFormat: "json";
6276
+ status: 200;
6277
+ } | {
6278
+ input: {
6279
+ param: {
6280
+ taskScheduleId: string;
6281
+ };
6282
+ } & {
6283
+ query: {
6284
+ workspaceExternalId?: string | string[];
6285
+ };
6286
+ };
6287
+ output: {
6288
+ error: {
6289
+ type: string;
6290
+ };
6291
+ };
6292
+ outputFormat: "json";
6293
+ status: 404;
6294
+ };
6295
+ $patch: {
6296
+ input: {
6297
+ param: {
6298
+ taskScheduleId: string;
6299
+ };
6300
+ } & {
6301
+ query: {
6302
+ workspaceExternalId?: string | string[];
6303
+ };
6304
+ } & {
6305
+ json: {
6306
+ expectedRevision?: number | undefined;
6307
+ title?: string | null | undefined;
6308
+ message?: string | undefined;
6309
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6310
+ scheduledFor?: string | undefined;
6311
+ timeExpression?: string | undefined;
6312
+ timezone?: string | undefined;
6313
+ recurrence?: {
6314
+ kind: "none";
6315
+ } | {
6316
+ kind: "daily";
6317
+ } | {
6318
+ kind: "weekdays";
6319
+ } | {
6320
+ kind: "weekly";
6321
+ } | {
6322
+ kind: "manual";
6323
+ } | {
6324
+ kind: "interval";
6325
+ intervalMinutes: number;
6326
+ } | undefined;
6327
+ };
6328
+ };
6329
+ output: {
6330
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
6331
+ status: "active" | "completed" | "paused" | "deleted";
6332
+ nextRunAt: string | null;
6333
+ };
6334
+ outputFormat: "json";
6335
+ status: 200;
6336
+ } | {
6337
+ input: {
6338
+ param: {
6339
+ taskScheduleId: string;
6340
+ };
6341
+ } & {
6342
+ query: {
6343
+ workspaceExternalId?: string | string[];
6344
+ };
6345
+ } & {
6346
+ json: {
6347
+ expectedRevision?: number | undefined;
6348
+ title?: string | null | undefined;
6349
+ message?: string | undefined;
6350
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6351
+ scheduledFor?: string | undefined;
6352
+ timeExpression?: string | undefined;
6353
+ timezone?: string | undefined;
6354
+ recurrence?: {
6355
+ kind: "none";
6356
+ } | {
6357
+ kind: "daily";
6358
+ } | {
6359
+ kind: "weekdays";
6360
+ } | {
6361
+ kind: "weekly";
6362
+ } | {
6363
+ kind: "manual";
6364
+ } | {
6365
+ kind: "interval";
6366
+ intervalMinutes: number;
6367
+ } | undefined;
6368
+ };
6369
+ };
6370
+ output: {
6371
+ error: {
6372
+ type: string;
6373
+ };
6374
+ };
6375
+ outputFormat: "json";
6376
+ status: 404;
6377
+ } | {
6378
+ input: {
6379
+ param: {
6380
+ taskScheduleId: string;
6381
+ };
6382
+ } & {
6383
+ query: {
6384
+ workspaceExternalId?: string | string[];
6385
+ };
6386
+ } & {
6387
+ json: {
6388
+ expectedRevision?: number | undefined;
6389
+ title?: string | null | undefined;
6390
+ message?: string | undefined;
6391
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6392
+ scheduledFor?: string | undefined;
6393
+ timeExpression?: string | undefined;
6394
+ timezone?: string | undefined;
6395
+ recurrence?: {
6396
+ kind: "none";
6397
+ } | {
6398
+ kind: "daily";
6399
+ } | {
6400
+ kind: "weekdays";
6401
+ } | {
6402
+ kind: "weekly";
6403
+ } | {
6404
+ kind: "manual";
6405
+ } | {
6406
+ kind: "interval";
6407
+ intervalMinutes: number;
6408
+ } | undefined;
6409
+ };
6410
+ };
6411
+ output: {
6412
+ error: {
6413
+ type: string;
6414
+ };
6415
+ };
6416
+ outputFormat: "json";
6417
+ status: 403;
6418
+ } | {
6419
+ input: {
6420
+ param: {
6421
+ taskScheduleId: string;
6422
+ };
6423
+ } & {
6424
+ query: {
6425
+ workspaceExternalId?: string | string[];
6426
+ };
6427
+ } & {
6428
+ json: {
6429
+ expectedRevision?: number | undefined;
6430
+ title?: string | null | undefined;
6431
+ message?: string | undefined;
6432
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6433
+ scheduledFor?: string | undefined;
6434
+ timeExpression?: string | undefined;
6435
+ timezone?: string | undefined;
6436
+ recurrence?: {
6437
+ kind: "none";
6438
+ } | {
6439
+ kind: "daily";
6440
+ } | {
6441
+ kind: "weekdays";
6442
+ } | {
6443
+ kind: "weekly";
6444
+ } | {
6445
+ kind: "manual";
6446
+ } | {
6447
+ kind: "interval";
6448
+ intervalMinutes: number;
6449
+ } | undefined;
6450
+ };
6451
+ };
6452
+ output: {
6453
+ error: {
6454
+ type: string;
6455
+ };
6456
+ };
6457
+ outputFormat: "json";
6458
+ status: 409;
6459
+ } | {
6460
+ input: {
6461
+ param: {
6462
+ taskScheduleId: string;
6463
+ };
6464
+ } & {
6465
+ query: {
6466
+ workspaceExternalId?: string | string[];
6467
+ };
6468
+ } & {
6469
+ json: {
6470
+ expectedRevision?: number | undefined;
6471
+ title?: string | null | undefined;
6472
+ message?: string | undefined;
6473
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6474
+ scheduledFor?: string | undefined;
6475
+ timeExpression?: string | undefined;
6476
+ timezone?: string | undefined;
6477
+ recurrence?: {
6478
+ kind: "none";
6479
+ } | {
6480
+ kind: "daily";
6481
+ } | {
6482
+ kind: "weekdays";
6483
+ } | {
6484
+ kind: "weekly";
6485
+ } | {
6486
+ kind: "manual";
6487
+ } | {
6488
+ kind: "interval";
6489
+ intervalMinutes: number;
6490
+ } | undefined;
6491
+ };
6492
+ };
6493
+ output: {
6494
+ error: {
6495
+ type: string;
6496
+ };
6497
+ };
6498
+ outputFormat: "json";
6499
+ status: 422;
6500
+ };
6501
+ $delete: {
6502
+ input: {
6503
+ param: {
6504
+ taskScheduleId: string;
6505
+ };
6506
+ } & {
6507
+ query: {
6508
+ workspaceExternalId?: string | string[];
6509
+ };
6510
+ };
6511
+ output: null;
6512
+ outputFormat: "body";
6513
+ status: 204;
6514
+ } | {
6515
+ input: {
6516
+ param: {
6517
+ taskScheduleId: string;
6518
+ };
6519
+ } & {
6520
+ query: {
6521
+ workspaceExternalId?: string | string[];
6522
+ };
6523
+ };
6524
+ output: {
6525
+ error: {
6526
+ type: string;
6527
+ requiredScope: string;
6528
+ };
6529
+ };
6530
+ outputFormat: "json";
6531
+ status: 403;
6532
+ } | {
6533
+ input: {
6534
+ param: {
6535
+ taskScheduleId: string;
6536
+ };
6537
+ } & {
6538
+ query: {
6539
+ workspaceExternalId?: string | string[];
6540
+ };
6541
+ };
6542
+ output: {
6543
+ error: {
6544
+ type: string;
6545
+ };
6546
+ };
6547
+ outputFormat: "json";
6548
+ status: 404;
6549
+ };
6550
+ }>;
6551
+ };
6552
+ };
6553
+ } & {
6554
+ v1: {
6555
+ "task-schedules": {
6556
+ ":taskScheduleId": {
6557
+ runs: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/runs", {
6558
+ $get: {
6559
+ input: {
6560
+ param: {
6561
+ taskScheduleId: string;
6562
+ };
6563
+ } & {
6564
+ query: {
6565
+ workspaceExternalId?: string | string[];
6566
+ limit?: string | string[];
6567
+ offset?: string | string[];
6568
+ };
6569
+ };
6570
+ output: {
6571
+ runs: {
6572
+ taskScheduleRunId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleId;
6573
+ occurrenceKind: "scheduled" | "manual";
6574
+ displayStatus: import('node_modules/@belong/cloud/src/features/task-schedules/task-schedule.service').TaskScheduleRunDisplayStatus;
6575
+ scheduledFor: string;
6576
+ startedAt: string | null;
6577
+ finishedAt: string | null;
6578
+ failureReason: string | null;
6579
+ sessionId: import('node_modules/@belong/cloud/src/platform/ids').SessionId | null;
6580
+ taskId: import('node_modules/@belong/cloud/src/platform/ids').TaskId | null;
6581
+ runId: import('node_modules/@belong/cloud/src/platform/ids').RunId | null;
6582
+ }[];
6583
+ nextOffset: number | null;
6584
+ };
6585
+ outputFormat: "json";
6586
+ status: 200;
6587
+ } | {
6588
+ input: {
6589
+ param: {
6590
+ taskScheduleId: string;
6591
+ };
6592
+ } & {
6593
+ query: {
6594
+ workspaceExternalId?: string | string[];
6595
+ limit?: string | string[];
6596
+ offset?: string | string[];
6597
+ };
6598
+ };
6599
+ output: {
6600
+ error: {
6601
+ type: string;
6602
+ };
6603
+ };
6604
+ outputFormat: "json";
6605
+ status: 404;
6606
+ };
6607
+ }>;
6608
+ };
6609
+ };
6610
+ };
6611
+ } & {
6612
+ v1: {
6613
+ "task-schedules": {
6614
+ ":taskScheduleId": {
6615
+ pause: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/pause", {
6616
+ $post: {
6617
+ input: {
6618
+ param: {
6619
+ taskScheduleId: string;
6620
+ };
6621
+ } & {
6622
+ query: {
6623
+ workspaceExternalId?: string | string[];
6624
+ };
6625
+ };
6626
+ output: {
6627
+ error: {
6628
+ type: string;
6629
+ requiredScope: string;
6630
+ };
6631
+ };
6632
+ outputFormat: "json";
6633
+ status: 403;
6634
+ } | {
6635
+ input: {
6636
+ param: {
6637
+ taskScheduleId: string;
6638
+ };
6639
+ } & {
6640
+ query: {
6641
+ workspaceExternalId?: string | string[];
6642
+ };
6643
+ };
6644
+ output: {
6645
+ status: "paused";
6646
+ };
6647
+ outputFormat: "json";
6648
+ status: 200;
6649
+ } | {
6650
+ input: {
6651
+ param: {
6652
+ taskScheduleId: string;
6653
+ };
6654
+ } & {
6655
+ query: {
6656
+ workspaceExternalId?: string | string[];
6657
+ };
6658
+ };
6659
+ output: {
6660
+ error: {
6661
+ type: string;
6662
+ };
6663
+ };
6664
+ outputFormat: "json";
6665
+ status: 404;
6666
+ } | {
6667
+ input: {
6668
+ param: {
6669
+ taskScheduleId: string;
6670
+ };
6671
+ } & {
6672
+ query: {
6673
+ workspaceExternalId?: string | string[];
6674
+ };
6675
+ };
6676
+ output: {
6677
+ error: {
6678
+ type: string;
6679
+ };
6680
+ };
6681
+ outputFormat: "json";
6682
+ status: 409;
6683
+ };
6684
+ }>;
6685
+ };
6686
+ };
6687
+ };
6688
+ } & {
6689
+ v1: {
6690
+ "task-schedules": {
6691
+ ":taskScheduleId": {
6692
+ resume: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/resume", {
6693
+ $post: {
6694
+ input: {
6695
+ param: {
6696
+ taskScheduleId: string;
6697
+ };
6698
+ } & {
6699
+ query: {
6700
+ workspaceExternalId?: string | string[];
6701
+ };
6702
+ };
6703
+ output: {
6704
+ error: {
6705
+ type: string;
6706
+ requiredScope: string;
6707
+ };
6708
+ };
6709
+ outputFormat: "json";
6710
+ status: 403;
6711
+ } | {
6712
+ input: {
6713
+ param: {
6714
+ taskScheduleId: string;
6715
+ };
6716
+ } & {
6717
+ query: {
6718
+ workspaceExternalId?: string | string[];
6719
+ };
6720
+ };
6721
+ output: {
6722
+ status: "active" | "completed" | "needs_attention";
6723
+ nextRunAt: string | null;
6724
+ };
6725
+ outputFormat: "json";
6726
+ status: 200;
6727
+ } | {
6728
+ input: {
6729
+ param: {
6730
+ taskScheduleId: string;
6731
+ };
6732
+ } & {
6733
+ query: {
6734
+ workspaceExternalId?: string | string[];
6735
+ };
6736
+ };
6737
+ output: {
6738
+ error: {
6739
+ type: string;
6740
+ };
6741
+ };
6742
+ outputFormat: "json";
6743
+ status: 404;
6744
+ } | {
6745
+ input: {
6746
+ param: {
6747
+ taskScheduleId: string;
6748
+ };
6749
+ } & {
6750
+ query: {
6751
+ workspaceExternalId?: string | string[];
6752
+ };
6753
+ };
6754
+ output: {
6755
+ error: {
6756
+ type: string;
6757
+ };
6758
+ };
6759
+ outputFormat: "json";
6760
+ status: 409;
6761
+ };
6762
+ }>;
6763
+ };
6764
+ };
6765
+ };
6766
+ } & {
6767
+ v1: {
6768
+ "task-schedules": {
6769
+ ":taskScheduleId": {
6770
+ "run-now": import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/run-now", {
6771
+ $post: {
6772
+ input: {
6773
+ param: {
6774
+ taskScheduleId: string;
6775
+ };
6776
+ } & {
6777
+ query: {
6778
+ workspaceExternalId?: string | string[];
6779
+ };
6780
+ } & {
6781
+ json: {
6782
+ clientRequestId?: string | undefined;
6783
+ };
6784
+ };
6785
+ output: {
6786
+ error: {
6787
+ type: string;
6788
+ requiredScope: string;
6789
+ };
6790
+ };
6791
+ outputFormat: "json";
6792
+ status: 403;
6793
+ } | {
6794
+ input: {
6795
+ param: {
6796
+ taskScheduleId: string;
6797
+ };
6798
+ } & {
6799
+ query: {
6800
+ workspaceExternalId?: string | string[];
6801
+ };
6802
+ } & {
6803
+ json: {
6804
+ clientRequestId?: string | undefined;
6805
+ };
6806
+ };
6807
+ output: {
6808
+ error: {
6809
+ readonly type: "idempotency_key_required" | "idempotency_key_invalid" | "idempotency_key_conflict";
6810
+ };
6811
+ };
6812
+ outputFormat: "json";
6813
+ status: 400;
6814
+ } | {
6815
+ input: {
6816
+ param: {
6817
+ taskScheduleId: string;
6818
+ };
6819
+ } & {
6820
+ query: {
6821
+ workspaceExternalId?: string | string[];
6822
+ };
6823
+ } & {
6824
+ json: {
6825
+ clientRequestId?: string | undefined;
6826
+ };
6827
+ };
6828
+ output: {
6829
+ taskScheduleRunId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleId;
6830
+ };
6831
+ outputFormat: "json";
6832
+ status: 202;
6833
+ } | {
6834
+ input: {
6835
+ param: {
6836
+ taskScheduleId: string;
6837
+ };
6838
+ } & {
6839
+ query: {
6840
+ workspaceExternalId?: string | string[];
6841
+ };
6842
+ } & {
6843
+ json: {
6844
+ clientRequestId?: string | undefined;
6845
+ };
6846
+ };
6847
+ output: {
6848
+ error: {
6849
+ type: string;
6850
+ };
6851
+ };
6852
+ outputFormat: "json";
6853
+ status: 404;
6854
+ } | {
6855
+ input: {
6856
+ param: {
6857
+ taskScheduleId: string;
6858
+ };
6859
+ } & {
6860
+ query: {
6861
+ workspaceExternalId?: string | string[];
6862
+ };
6863
+ } & {
6864
+ json: {
6865
+ clientRequestId?: string | undefined;
6866
+ };
6867
+ };
6868
+ output: {
6869
+ error: {
6870
+ type: string;
6871
+ };
6872
+ };
6873
+ outputFormat: "json";
6874
+ status: 409;
6875
+ };
6876
+ }>;
6877
+ };
6878
+ };
6879
+ };
6880
+ } & {
6881
+ v1: {
6882
+ "task-schedules": {
6883
+ shared: {
6884
+ account: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/account", {
6885
+ $get: {
6886
+ input: {};
6887
+ output: {
6888
+ account: string;
6889
+ tenant: string;
6890
+ };
6891
+ outputFormat: "json";
6892
+ status: import('hono/utils/http-status').ContentfulStatusCode;
6893
+ };
6894
+ }>;
6895
+ };
6896
+ };
6897
+ };
6898
+ } & {
6899
+ v1: {
6900
+ "task-schedules": {
6901
+ shared: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared", {
6902
+ $get: {
6903
+ input: {
6904
+ query: {
6905
+ limit?: string | string[];
6906
+ offset?: string | string[];
6907
+ };
6908
+ };
6909
+ output: {
6910
+ tasks: {
6911
+ definitionId: string;
6912
+ title: string;
6913
+ explicitTitle: string | null;
6914
+ message: string;
6915
+ role: "edit" | "use" | "owner";
6916
+ owner: string;
6917
+ ownerTenant: string;
6918
+ revision: number;
6919
+ timeExpression: string;
6920
+ timezone: string;
6921
+ recurrence: {
6922
+ intervalMinutes?: number | undefined;
6923
+ kind: string;
6924
+ };
6925
+ anchorAt: string;
6926
+ templateName: string | null;
6927
+ updatedAt: string;
6928
+ }[];
6929
+ nextOffset: number | null;
6930
+ };
6931
+ outputFormat: "json";
6932
+ status: import('hono/utils/http-status').ContentfulStatusCode;
6933
+ };
6934
+ }>;
6935
+ };
6936
+ };
6937
+ } & {
6938
+ v1: {
6939
+ "task-schedules": {
6940
+ shared: {
6941
+ accept: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/accept", {
6942
+ $post: {
6943
+ input: {
6944
+ json: {
6945
+ token: string;
6946
+ };
6947
+ };
6948
+ output: {
6949
+ error: {
6950
+ type: string;
6951
+ };
6952
+ };
6953
+ outputFormat: "json";
6954
+ status: 403 | 404 | 409 | 503;
6955
+ } | {
6956
+ input: {
6957
+ json: {
6958
+ token: string;
6959
+ };
6960
+ };
6961
+ output: {
6962
+ definitionId: string;
6963
+ };
6964
+ outputFormat: "json";
6965
+ status: import('hono/utils/http-status').ContentfulStatusCode;
6966
+ };
6967
+ }>;
6968
+ };
6969
+ };
6970
+ };
6971
+ } & {
6972
+ v1: {
6973
+ "task-schedules": {
6974
+ shared: {
6975
+ ":definitionId": import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId", {
6976
+ $get: {
6977
+ input: {
6978
+ param: {
6979
+ definitionId: string;
6980
+ };
6981
+ };
6982
+ output: {
6983
+ error: {
6984
+ type: string;
6985
+ };
6986
+ };
6987
+ outputFormat: "json";
6988
+ status: 403 | 404 | 409 | 503;
6989
+ } | {
6990
+ input: {
6991
+ param: {
6992
+ definitionId: string;
6993
+ };
6994
+ };
6995
+ output: {
6996
+ definitionId: string;
6997
+ title: string;
6998
+ explicitTitle: string | null;
6999
+ message: string;
7000
+ role: "edit" | "use" | "owner";
7001
+ owner: string;
7002
+ ownerTenant: string;
7003
+ revision: number;
7004
+ timeExpression: string;
7005
+ timezone: string;
7006
+ recurrence: {
7007
+ intervalMinutes?: number | undefined;
7008
+ kind: string;
7009
+ };
7010
+ anchorAt: string;
7011
+ templateName: string | null;
7012
+ updatedAt: string;
7013
+ };
7014
+ outputFormat: "json";
7015
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7016
+ };
7017
+ $patch: {
7018
+ input: {
7019
+ param: {
7020
+ definitionId: string;
7021
+ };
7022
+ } & {
7023
+ json: {
7024
+ expectedRevision: number;
7025
+ title?: string | null | undefined;
7026
+ message?: string | undefined;
7027
+ scheduledFor?: string | undefined;
7028
+ timeExpression?: string | undefined;
7029
+ timezone?: string | undefined;
7030
+ recurrence?: {
7031
+ kind: "none";
7032
+ } | {
7033
+ kind: "daily";
7034
+ } | {
7035
+ kind: "weekdays";
7036
+ } | {
7037
+ kind: "weekly";
7038
+ } | {
7039
+ kind: "manual";
7040
+ } | {
7041
+ kind: "interval";
7042
+ intervalMinutes: number;
7043
+ } | undefined;
7044
+ mode?: undefined;
7045
+ };
7046
+ };
7047
+ output: {
7048
+ error: {
7049
+ type: string;
7050
+ };
7051
+ };
7052
+ outputFormat: "json";
7053
+ status: 403 | 404 | 409 | 503;
7054
+ } | {
7055
+ input: {
7056
+ param: {
7057
+ definitionId: string;
7058
+ };
7059
+ } & {
7060
+ json: {
7061
+ expectedRevision: number;
7062
+ title?: string | null | undefined;
7063
+ message?: string | undefined;
7064
+ scheduledFor?: string | undefined;
7065
+ timeExpression?: string | undefined;
7066
+ timezone?: string | undefined;
7067
+ recurrence?: {
7068
+ kind: "none";
7069
+ } | {
7070
+ kind: "daily";
7071
+ } | {
7072
+ kind: "weekdays";
7073
+ } | {
7074
+ kind: "weekly";
7075
+ } | {
7076
+ kind: "manual";
7077
+ } | {
7078
+ kind: "interval";
7079
+ intervalMinutes: number;
7080
+ } | undefined;
7081
+ mode?: undefined;
7082
+ };
7083
+ };
7084
+ output: {
7085
+ status: string;
7086
+ revision: number;
7087
+ };
7088
+ outputFormat: "json";
7089
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7090
+ } | {
7091
+ input: {
7092
+ param: {
7093
+ definitionId: string;
7094
+ };
7095
+ } & {
7096
+ json: {
7097
+ expectedRevision: number;
7098
+ title?: string | null | undefined;
7099
+ message?: string | undefined;
7100
+ scheduledFor?: string | undefined;
7101
+ timeExpression?: string | undefined;
7102
+ timezone?: string | undefined;
7103
+ recurrence?: {
7104
+ kind: "none";
7105
+ } | {
7106
+ kind: "daily";
7107
+ } | {
7108
+ kind: "weekdays";
7109
+ } | {
7110
+ kind: "weekly";
7111
+ } | {
7112
+ kind: "manual";
7113
+ } | {
7114
+ kind: "interval";
7115
+ intervalMinutes: number;
7116
+ } | undefined;
7117
+ mode?: undefined;
7118
+ };
7119
+ };
7120
+ output: {
7121
+ error: {
7122
+ type: "scheduled_time_in_past" | "scheduled_time_too_far";
7123
+ };
7124
+ };
7125
+ outputFormat: "json";
7126
+ status: 400;
7127
+ };
7128
+ }>;
7129
+ };
7130
+ };
7131
+ };
7132
+ } & {
7133
+ v1: {
7134
+ "task-schedules": {
7135
+ shared: {
7136
+ ":definitionId": {
7137
+ enable: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId/enable", {
7138
+ $post: {
7139
+ input: {
7140
+ param: {
7141
+ definitionId: string;
7142
+ };
7143
+ } & {
7144
+ query: {
7145
+ workspaceExternalId?: string | string[];
7146
+ };
7147
+ };
7148
+ output: {
7149
+ error: {
7150
+ type: string;
7151
+ };
7152
+ };
7153
+ outputFormat: "json";
7154
+ status: 403 | 404 | 409 | 503;
7155
+ } | {
7156
+ input: {
7157
+ param: {
7158
+ definitionId: string;
7159
+ };
7160
+ } & {
7161
+ query: {
7162
+ workspaceExternalId?: string | string[];
7163
+ };
7164
+ };
7165
+ output: {
7166
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
7167
+ };
7168
+ outputFormat: "json";
7169
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7170
+ };
7171
+ }>;
7172
+ };
7173
+ };
7174
+ };
7175
+ };
7176
+ } & {
7177
+ v1: {
7178
+ "task-schedules": {
7179
+ shared: {
7180
+ ":definitionId": {
7181
+ invitations: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId/invitations", {
7182
+ $post: {
7183
+ input: {
7184
+ param: {
7185
+ definitionId: string;
7186
+ };
7187
+ } & {
7188
+ json: {
7189
+ role: "edit" | "use";
7190
+ };
7191
+ };
7192
+ output: {
7193
+ error: {
7194
+ type: string;
7195
+ };
7196
+ };
7197
+ outputFormat: "json";
7198
+ status: 403 | 404 | 409 | 503;
7199
+ } | {
7200
+ input: {
7201
+ param: {
7202
+ definitionId: string;
7203
+ };
7204
+ } & {
7205
+ json: {
7206
+ role: "edit" | "use";
7207
+ };
7208
+ };
7209
+ output: {
7210
+ invitationId: string;
7211
+ token: string;
7212
+ expiresAt: string;
7213
+ };
7214
+ outputFormat: "json";
7215
+ status: 201;
7216
+ };
7217
+ }>;
7218
+ };
7219
+ };
7220
+ };
7221
+ };
7222
+ } & {
7223
+ v1: {
7224
+ "task-schedules": {
7225
+ shared: {
7226
+ ":definitionId": {
7227
+ invitations: {
7228
+ ":invitationId": import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId/invitations/:invitationId", {
7229
+ $delete: {
7230
+ input: {
7231
+ param: {
7232
+ definitionId: string;
7233
+ invitationId: string;
7234
+ };
7235
+ };
7236
+ output: {
7237
+ error: {
7238
+ type: string;
7239
+ };
7240
+ };
7241
+ outputFormat: "json";
7242
+ status: 403 | 404 | 409 | 503;
7243
+ } | {
7244
+ input: {
7245
+ param: {
7246
+ definitionId: string;
7247
+ invitationId: string;
7248
+ };
7249
+ };
7250
+ output: {
7251
+ status: string;
7252
+ };
7253
+ outputFormat: "json";
7254
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7255
+ };
7256
+ }>;
7257
+ };
7258
+ };
7259
+ };
7260
+ };
7261
+ };
7262
+ } & {
7263
+ v1: {
7264
+ "task-schedules": {
7265
+ shared: {
7266
+ ":definitionId": {
7267
+ access: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId/access", {
7268
+ $get: {
7269
+ input: {
7270
+ param: {
7271
+ definitionId: string;
7272
+ };
7273
+ };
7274
+ output: {
7275
+ error: {
7276
+ type: string;
7277
+ };
7278
+ };
7279
+ outputFormat: "json";
7280
+ status: 403 | 404 | 409 | 503;
7281
+ } | {
7282
+ input: {
7283
+ param: {
7284
+ definitionId: string;
7285
+ };
7286
+ };
7287
+ output: {
7288
+ people: {
7289
+ tenantId: string;
7290
+ userId: string;
7291
+ role: string;
7292
+ label: string;
7293
+ tenant: string;
7294
+ }[];
7295
+ invitations: {
7296
+ expiresAt: string;
7297
+ id: string;
7298
+ role: string;
7299
+ token: string | null;
7300
+ }[];
7301
+ };
7302
+ outputFormat: "json";
7303
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7304
+ };
7305
+ $patch: {
7306
+ input: {
7307
+ param: {
7308
+ definitionId: string;
7309
+ };
7310
+ } & {
7311
+ json: {
7312
+ recipientTenantId: string;
7313
+ recipientUserId: string;
7314
+ role: "edit" | "use";
7315
+ };
7316
+ };
7317
+ output: {
7318
+ error: {
7319
+ type: string;
7320
+ };
7321
+ };
7322
+ outputFormat: "json";
7323
+ status: 403 | 404 | 409 | 503;
7324
+ } | {
7325
+ input: {
7326
+ param: {
7327
+ definitionId: string;
7328
+ };
7329
+ } & {
7330
+ json: {
7331
+ recipientTenantId: string;
7332
+ recipientUserId: string;
7333
+ role: "edit" | "use";
7334
+ };
7335
+ };
7336
+ output: {
7337
+ status: string;
7338
+ };
7339
+ outputFormat: "json";
7340
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7341
+ };
7342
+ $delete: {
7343
+ input: {
7344
+ param: {
7345
+ definitionId: string;
7346
+ };
7347
+ } & {
7348
+ json: {
7349
+ recipientTenantId: string;
7350
+ recipientUserId: string;
7351
+ };
7352
+ };
7353
+ output: {
7354
+ error: {
7355
+ type: string;
7356
+ };
7357
+ };
7358
+ outputFormat: "json";
7359
+ status: 403 | 404 | 409 | 503;
7360
+ } | {
7361
+ input: {
7362
+ param: {
7363
+ definitionId: string;
7364
+ };
7365
+ } & {
7366
+ json: {
7367
+ recipientTenantId: string;
7368
+ recipientUserId: string;
7369
+ };
7370
+ };
7371
+ output: {
7372
+ status: string;
7373
+ };
7374
+ outputFormat: "json";
7375
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7376
+ };
7377
+ }>;
7378
+ };
7379
+ };
7380
+ };
7381
+ };
7382
+ } & {
7383
+ v1: {
7384
+ "pre-prompts": import('hono/client').ClientRequest<string, "/v1/pre-prompts", {
7385
+ $get: {
7386
+ input: {
7387
+ query: {
7388
+ workspaceExternalId?: string | string[];
7389
+ limit?: string | string[];
7390
+ };
7391
+ };
7392
+ output: {
7393
+ prePrompts: {
7394
+ prePromptId: import('node_modules/@belong/cloud/src/platform/ids').PrePromptId;
7395
+ name: string;
7396
+ description: string;
7397
+ body: string;
7398
+ createdAt: string;
7399
+ }[];
7400
+ };
7401
+ outputFormat: "json";
7402
+ status: 200;
7403
+ };
7404
+ $post: {
7405
+ input: {
7406
+ json: {
7407
+ name: string;
7408
+ body: string;
7409
+ clientPrePromptId: string;
7410
+ description?: string | undefined;
7411
+ workspaceExternalId?: string | undefined;
7412
+ };
7413
+ };
7414
+ output: {
7415
+ error: {
7416
+ type: string;
7417
+ requiredScope: string;
7418
+ };
7419
+ };
7420
+ outputFormat: "json";
7421
+ status: 403;
7422
+ } | {
7423
+ input: {
7424
+ json: {
7425
+ name: string;
7426
+ body: string;
7427
+ clientPrePromptId: string;
7428
+ description?: string | undefined;
7429
+ workspaceExternalId?: string | undefined;
7430
+ };
7431
+ };
7432
+ output: {
7433
+ prePromptId: import('node_modules/@belong/cloud/src/platform/ids').PrePromptId;
7434
+ name: string;
7435
+ };
7436
+ outputFormat: "json";
7437
+ status: 200 | 201;
7438
+ } | {
7439
+ input: {
7440
+ json: {
7441
+ name: string;
7442
+ body: string;
7443
+ clientPrePromptId: string;
7444
+ description?: string | undefined;
7445
+ workspaceExternalId?: string | undefined;
7446
+ };
7447
+ };
7448
+ output: {
7449
+ error: {
7450
+ type: string;
7451
+ name: string;
7452
+ };
7453
+ };
7454
+ outputFormat: "json";
7455
+ status: 409;
7456
+ };
7457
+ }>;
7458
+ };
5318
7459
  } & {
5319
7460
  v1: {
5320
7461
  "pre-prompts": {
@@ -5435,6 +7576,225 @@ export declare const createApiClient: (baseUrl: string) => {
5435
7576
  }>;
5436
7577
  };
5437
7578
  };
7579
+ } & {
7580
+ v1: {
7581
+ "skill-library": import('hono/client').ClientRequest<string, "/v1/skill-library", {
7582
+ $get: {
7583
+ input: {
7584
+ query: {
7585
+ workspaceExternalId?: string | string[];
7586
+ };
7587
+ };
7588
+ output: {
7589
+ skills: {
7590
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7591
+ name: string;
7592
+ description: string;
7593
+ enabled: boolean;
7594
+ revision: number;
7595
+ hasScripts: boolean;
7596
+ filesCount: number;
7597
+ archiveSizeBytes: number;
7598
+ updatedAt: string;
7599
+ }[];
7600
+ };
7601
+ outputFormat: "json";
7602
+ status: 200;
7603
+ };
7604
+ }>;
7605
+ };
7606
+ } & {
7607
+ v1: {
7608
+ "skill-library": {
7609
+ import: import('hono/client').ClientRequest<string, "/v1/skill-library/import", {
7610
+ $post: {
7611
+ input: {};
7612
+ output: {
7613
+ readonly error: {
7614
+ readonly type: "missing_scope";
7615
+ readonly requiredScope: "session:write";
7616
+ };
7617
+ };
7618
+ outputFormat: "json";
7619
+ status: 403;
7620
+ } | {
7621
+ input: {};
7622
+ output: {
7623
+ readonly error: {
7624
+ readonly type: "invalid_workspace_external_id";
7625
+ };
7626
+ };
7627
+ outputFormat: "json";
7628
+ status: 400;
7629
+ } | {
7630
+ input: {};
7631
+ output: {
7632
+ readonly error: {
7633
+ readonly type: "archive_too_large";
7634
+ readonly maxArchiveBytes: 10485760;
7635
+ };
7636
+ };
7637
+ outputFormat: "json";
7638
+ status: 413;
7639
+ } | {
7640
+ input: {};
7641
+ output: {
7642
+ error: {
7643
+ type: string;
7644
+ };
7645
+ };
7646
+ outputFormat: "json";
7647
+ status: 400;
7648
+ } | {
7649
+ input: {};
7650
+ output: {
7651
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7652
+ name: string;
7653
+ revision: number;
7654
+ outcome: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').SkillSaveOutcome;
7655
+ hasScripts: boolean;
7656
+ };
7657
+ outputFormat: "json";
7658
+ status: 200 | 201;
7659
+ } | {
7660
+ input: {};
7661
+ output: {
7662
+ error: {
7663
+ type: string;
7664
+ };
7665
+ };
7666
+ outputFormat: "json";
7667
+ status: 422;
7668
+ } | {
7669
+ input: {};
7670
+ output: {
7671
+ error: {
7672
+ type: string;
7673
+ name: string;
7674
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7675
+ };
7676
+ };
7677
+ outputFormat: "json";
7678
+ status: 409;
7679
+ };
7680
+ }>;
7681
+ };
7682
+ };
7683
+ } & {
7684
+ v1: {
7685
+ "skill-library": {
7686
+ ":userSkillId": import('hono/client').ClientRequest<string, "/v1/skill-library/:userSkillId", {
7687
+ $patch: {
7688
+ input: {
7689
+ param: {
7690
+ userSkillId: string;
7691
+ };
7692
+ } & {
7693
+ json: {
7694
+ enabled: boolean;
7695
+ };
7696
+ };
7697
+ output: {
7698
+ readonly error: {
7699
+ readonly type: "missing_scope";
7700
+ readonly requiredScope: "session:write";
7701
+ };
7702
+ };
7703
+ outputFormat: "json";
7704
+ status: 403;
7705
+ } | {
7706
+ input: {
7707
+ param: {
7708
+ userSkillId: string;
7709
+ };
7710
+ } & {
7711
+ json: {
7712
+ enabled: boolean;
7713
+ };
7714
+ };
7715
+ output: {
7716
+ readonly error: {
7717
+ readonly type: "not_found";
7718
+ };
7719
+ };
7720
+ outputFormat: "json";
7721
+ status: 404;
7722
+ } | {
7723
+ input: {
7724
+ param: {
7725
+ userSkillId: string;
7726
+ };
7727
+ } & {
7728
+ json: {
7729
+ enabled: boolean;
7730
+ };
7731
+ };
7732
+ output: {
7733
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7734
+ enabled: boolean;
7735
+ };
7736
+ outputFormat: "json";
7737
+ status: 200;
7738
+ };
7739
+ $delete: {
7740
+ input: {
7741
+ param: {
7742
+ userSkillId: string;
7743
+ };
7744
+ };
7745
+ output: null;
7746
+ outputFormat: "body";
7747
+ status: 204;
7748
+ } | {
7749
+ input: {
7750
+ param: {
7751
+ userSkillId: string;
7752
+ };
7753
+ };
7754
+ output: {
7755
+ readonly error: {
7756
+ readonly type: "missing_scope";
7757
+ readonly requiredScope: "session:write";
7758
+ };
7759
+ };
7760
+ outputFormat: "json";
7761
+ status: 403;
7762
+ } | {
7763
+ input: {
7764
+ param: {
7765
+ userSkillId: string;
7766
+ };
7767
+ };
7768
+ output: {
7769
+ readonly error: {
7770
+ readonly type: "not_found";
7771
+ };
7772
+ };
7773
+ outputFormat: "json";
7774
+ status: 404;
7775
+ };
7776
+ }>;
7777
+ };
7778
+ };
7779
+ } & {
7780
+ v1: {
7781
+ "skill-library": {
7782
+ ":userSkillId": {
7783
+ download: import('hono/client').ClientRequest<string, "/v1/skill-library/:userSkillId/download", {
7784
+ $get: {
7785
+ input: {
7786
+ param: {
7787
+ userSkillId: string;
7788
+ };
7789
+ };
7790
+ output: {};
7791
+ outputFormat: string;
7792
+ status: import('hono/utils/http-status').StatusCode;
7793
+ };
7794
+ }>;
7795
+ };
7796
+ };
7797
+ };
5438
7798
  } & {
5439
7799
  v1: {
5440
7800
  connectors: import('hono/client').ClientRequest<string, "/v1/connectors", {
@@ -6364,12 +8724,12 @@ export declare const createApiClient: (baseUrl: string) => {
6364
8724
  capabilities: {
6365
8725
  id: string;
6366
8726
  label: string;
6367
- status: "error" | "needs_auth" | "ready" | "needs_admin_consent" | "disabled";
8727
+ status: "error" | "needs_auth" | "ready" | "disabled" | "needs_admin_consent";
6368
8728
  }[];
6369
8729
  actions: {
6370
8730
  id: string;
6371
8731
  kind: "authorization" | "disconnect";
6372
- label: "reconnect" | "disconnect" | "connect" | "grant_admin_consent";
8732
+ label: "reconnect" | "connect" | "disconnect" | "grant_admin_consent";
6373
8733
  tone: "primary" | "destructive" | "secondary";
6374
8734
  requiresConfirmation: boolean;
6375
8735
  }[];
@@ -7158,3 +9518,4 @@ export declare const createApiClient: (baseUrl: string) => {
7158
9518
  };
7159
9519
  };
7160
9520
  };
9521
+ export {};