@belonguniverseai/react-sdk 0.6.22 → 0.6.24

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 (163) hide show
  1. package/dist/api/account-connectors.d.ts +2 -2
  2. package/dist/api/api-keys.d.ts +22 -0
  3. package/dist/api/client-identity.d.ts +12 -0
  4. package/dist/api/client.d.ts +1983 -49
  5. package/dist/api/mutations.d.ts +9 -1
  6. package/dist/api/query-keys.d.ts +9 -0
  7. package/dist/api/session-end.d.ts +2 -0
  8. package/dist/api/skill-library.d.ts +81 -0
  9. package/dist/api/skills.d.ts +1 -1
  10. package/dist/api/task-schedule-sharing.d.ts +166 -0
  11. package/dist/api/task-schedules.d.ts +23 -1
  12. package/dist/app/BelongDock.d.ts +0 -28
  13. package/dist/app/dock-demo-features.d.ts +13 -0
  14. package/dist/app/dock-demo-transport.d.ts +37 -0
  15. package/dist/app/dock-story-data.d.ts +116 -0
  16. package/dist/component/THIRD_PARTY_NOTICES.txt +24 -0
  17. package/dist/component/{abnfDiagram-N423BO3Z-D4mVRMw9.js → abnfDiagram-N423BO3Z-BZFjrvGh.js} +4 -4
  18. package/dist/component/{arc-GBp6w3tF.js → arc-R371iLQK.js} +2 -2
  19. package/dist/component/{architectureDiagram-T3A2C74G-Cxm-USYQ.js → architectureDiagram-T3A2C74G-CcH5CU8G.js} +3 -3
  20. package/dist/component/{blockDiagram-VBNYF7ZC-BAiLpxJf.js → blockDiagram-VBNYF7ZC-CO21oaME.js} +4 -4
  21. package/dist/component/{c4Diagram-5PPSVZJV-Sy6sLJOj.js → c4Diagram-5PPSVZJV-DFdczxGA.js} +3 -3
  22. package/dist/component/{channel-DPbaAkCI.js → channel-CTk2u27P.js} +2 -2
  23. package/dist/component/{chunk-2GRJ4B5K-8r8YJzCc.js → chunk-2GRJ4B5K-DLJBmRlE.js} +2 -2
  24. package/dist/component/{chunk-2Q5K7J3B-RZqny7-R.js → chunk-2Q5K7J3B-Dn9FHNcv.js} +2 -2
  25. package/dist/component/{chunk-5RXB4S5H-QFCY9Dtl.js → chunk-5RXB4S5H-C0lJsrjg.js} +5 -5
  26. package/dist/component/{chunk-5VM5RSS4-BG8q5ODa.js → chunk-5VM5RSS4-DphP3gZj.js} +2 -2
  27. package/dist/component/{chunk-6Q2QTUOP-D6ec2nI7.js → chunk-6Q2QTUOP-oYZ6WlsT.js} +2 -2
  28. package/dist/component/{chunk-GF5L2VYU-D7yROYf0.js → chunk-GF5L2VYU-CX1jApqq.js} +6 -6
  29. package/dist/component/{chunk-JWPE2WC7-CmGlHqne.js → chunk-JWPE2WC7-BsHiqT8c.js} +2 -2
  30. package/dist/component/{chunk-KBJHAD2P-W03s7swc.js → chunk-KBJHAD2P-JEN3NVHE.js} +2 -2
  31. package/dist/component/{chunk-RYQCIY6F-D0oyMUJ7.js → chunk-RYQCIY6F-BJlZTS0d.js} +2 -2
  32. package/dist/component/{chunk-XXDRQBXY-D4s0eyp4.js → chunk-XXDRQBXY-CftGkCaP.js} +2 -2
  33. package/dist/component/{classDiagram-JCYQIIEL-DwNAC2XG.js → classDiagram-JCYQIIEL-BEAw2s9m.js} +3 -3
  34. package/dist/component/{classDiagram-v2-OCEON4UE-DwNAC2XG.js → classDiagram-v2-OCEON4UE-BEAw2s9m.js} +3 -3
  35. package/dist/component/{cose-bilkent-JH36ORCC-DhGvXDdi.js → cose-bilkent-JH36ORCC-5g5ZQ1kH.js} +2 -2
  36. package/dist/component/{cynefinDiagram-MW4NZA55-BCUeX7pB.js → cynefinDiagram-MW4NZA55-C0wLlDn3.js} +3 -3
  37. package/dist/component/{dagre-VZM6K2ZE-DWofHoga.js → dagre-VZM6K2ZE-V9qiC6Cs.js} +3 -3
  38. package/dist/component/{diagram-7IWD3JNH-DjCFF_Dr.js → diagram-7IWD3JNH-D-KPwOWp.js} +4 -4
  39. package/dist/component/{diagram-B4RE2ZJO-CSovrpFW.js → diagram-B4RE2ZJO-CMiB6Lwu.js} +3 -3
  40. package/dist/component/{diagram-LBJQPF4R-Cgpae-sR.js → diagram-LBJQPF4R-ve7EbpGW.js} +3 -3
  41. package/dist/component/{diagram-Q27KOJAE-DikMPfLU.js → diagram-Q27KOJAE-DRINzJd4.js} +4 -4
  42. package/dist/component/{diagram-UB23O5K3-sQU6rZbO.js → diagram-UB23O5K3-CL0SSPI6.js} +3 -3
  43. package/dist/component/{ebnfDiagram-BXEA7PRR-B9t8-G8R.js → ebnfDiagram-BXEA7PRR-BgU6lPC0.js} +4 -4
  44. package/dist/component/{erDiagram-JOGREHBK-DKg1HhSl.js → erDiagram-JOGREHBK-BDuqW50a.js} +5 -5
  45. package/dist/component/{flowDiagram-UKHOOZJN-BO8jpT1D.js → flowDiagram-UKHOOZJN-KisN8EgK.js} +7 -7
  46. package/dist/component/{ganttDiagram-PKOTCBZU-BPXYyB9Q.js → ganttDiagram-PKOTCBZU-kZrnta4w.js} +3 -3
  47. package/dist/component/{gitGraphDiagram-DS77QQ5N-BjVLFBUS.js → gitGraphDiagram-DS77QQ5N-Dy1S71_C.js} +4 -4
  48. package/dist/component/{highlighted-body-OFNGDK62-BKot66c3.js → highlighted-body-OFNGDK62-ChNAP6R7.js} +2 -2
  49. package/dist/component/index.js +2 -2
  50. package/dist/component/{infoDiagram-6WML65LV-BkAC5Bwv.js → infoDiagram-6WML65LV-C3CmzQkI.js} +2 -2
  51. package/dist/component/{ishikawaDiagram-WSZJBQD7-oplkIs_t.js → ishikawaDiagram-WSZJBQD7-DBHVF-fV.js} +2 -2
  52. package/dist/component/{journeyDiagram-NVQOT4AX-CuliMCSv.js → journeyDiagram-NVQOT4AX-Cg3e2eDS.js} +5 -5
  53. package/dist/component/{kanban-definition-27J2QSJJ-DdzOdEiL.js → kanban-definition-27J2QSJJ-tIaMkhvn.js} +3 -3
  54. package/dist/component/{linear-zZDwdGmK.js → linear-DQ23phHp.js} +2 -2
  55. package/dist/component/{mermaid-GHXKKRXX-aX5umm-y.js → mermaid-GHXKKRXX-CssTT3y2.js} +115414 -109032
  56. package/dist/component/{mindmap-definition-FAOFIHXS-DD2HF9oE.js → mindmap-definition-FAOFIHXS-oSuksV41.js} +4 -4
  57. package/dist/component/{pegDiagram-VL7TDLO6-DyiDl9bF.js → pegDiagram-VL7TDLO6-GLxZEQlj.js} +4 -4
  58. package/dist/component/{pieDiagram-7S7Q4E2Y-DflxKS_B.js → pieDiagram-7S7Q4E2Y-4ghKg2jt.js} +4 -4
  59. package/dist/component/{quadrantDiagram-CIZ2JOQS-nwwayVOP.js → quadrantDiagram-CIZ2JOQS-DOnM2yX5.js} +3 -3
  60. package/dist/component/{railroadDiagram-AXF67PYL-BTtD2eN9.js → railroadDiagram-AXF67PYL-DCf1AdeI.js} +4 -4
  61. package/dist/component/{requirementDiagram-LRYGKXZP-B37q1LKL.js → requirementDiagram-LRYGKXZP-BgUTRz25.js} +4 -4
  62. package/dist/component/{sankeyDiagram-W5VNT64P-zY0W9eje.js → sankeyDiagram-W5VNT64P-93-3TiEZ.js} +2 -2
  63. package/dist/component/{sequenceDiagram-SI44F4Z6-CmQiqB8F.js → sequenceDiagram-SI44F4Z6-CjdXsQGo.js} +4 -4
  64. package/dist/component/{sizeCapture-X5ZJPWSS-dF3FvIT8.js → sizeCapture-X5ZJPWSS-BZcfJFgu.js} +2 -2
  65. package/dist/component/{stateDiagram-OKZ733FA-CX61F3L0.js → stateDiagram-OKZ733FA-DqZxP_LE.js} +3 -3
  66. package/dist/component/{stateDiagram-v2-UEYNNEHI-DnFZhhu3.js → stateDiagram-v2-UEYNNEHI-bW3Xpzm_.js} +3 -3
  67. package/dist/component/{swimlanes-SLNWSIFB-CX9XGBvw.js → swimlanes-SLNWSIFB-BCid9HHX.js} +4 -4
  68. package/dist/component/{swimlanesDiagram-ULZ7WXOC-Bqkgx7qk.js → swimlanesDiagram-ULZ7WXOC-CUXpjQTA.js} +3 -3
  69. package/dist/component/{timeline-definition-Z64GVDOM-BUX4OSm1.js → timeline-definition-Z64GVDOM-Cl9JeVlC.js} +3 -3
  70. package/dist/component/{vennDiagram-T6HMQDX7-BpVOq4Rh.js → vennDiagram-T6HMQDX7-A8wa9sfS.js} +2 -2
  71. package/dist/component/{wardleyDiagram-T6FBY63Y-BUDGa8Mv.js → wardleyDiagram-T6FBY63Y-CYjNVqXL.js} +3 -3
  72. package/dist/component/{xychartDiagram-ELKLHX3M-FIA_LnIu.js → xychartDiagram-ELKLHX3M-CWTWyqQ8.js} +3 -3
  73. package/dist/components/ai-elements/markdown-repair-samples.d.ts +27 -0
  74. package/dist/components/ai-elements/message.d.ts +2 -2
  75. package/dist/components/ai-elements/prompt-input.d.ts +3 -1
  76. package/dist/components/ai-elements/task.d.ts +2 -1
  77. package/dist/components/ai-elements/terminal-task.d.ts +2 -1
  78. package/dist/components/connectors/portal-theme.d.ts +2 -8
  79. package/dist/components/embed/AgentChatIcon.d.ts +1 -1
  80. package/dist/components/embed/AgentPhaseIcon.d.ts +16 -14
  81. package/dist/components/embed/ApiKeysSettings.d.ts +1 -0
  82. package/dist/components/embed/BetaBadge.d.ts +8 -10
  83. package/dist/components/embed/ChatTitleEditor.d.ts +17 -0
  84. package/dist/components/embed/ComposerContext.d.ts +9 -0
  85. package/dist/components/embed/EmbedAvatar.d.ts +17 -18
  86. package/dist/components/embed/EmbedComposer.d.ts +3 -1
  87. package/dist/components/embed/EmbedHeader.d.ts +20 -31
  88. package/dist/components/embed/EmbedRail.d.ts +12 -9
  89. package/dist/components/embed/EmbedSessions.d.ts +10 -12
  90. package/dist/components/embed/GoalComposeSheet.d.ts +2 -1
  91. package/dist/components/embed/LegalShortDisclaimer.d.ts +6 -8
  92. package/dist/components/embed/MentionInput.d.ts +9 -3
  93. package/dist/components/embed/MobileNavBar.d.ts +12 -10
  94. package/dist/components/embed/OnboardingOverlay.d.ts +3 -1
  95. package/dist/components/embed/OnboardingTour.d.ts +1 -10
  96. package/dist/components/embed/OnboardingWelcome.d.ts +1 -11
  97. package/dist/components/embed/PlanPanel.d.ts +3 -1
  98. package/dist/components/embed/PreviewPanel.d.ts +3 -1
  99. package/dist/components/embed/SessionSwitcher.d.ts +12 -0
  100. package/dist/components/embed/SubagentAvatar.d.ts +8 -0
  101. package/dist/components/embed/WorkspacePane.d.ts +3 -1
  102. package/dist/components/embed/context-occupancy.d.ts +15 -0
  103. package/dist/components/embed/navigation-layout.d.ts +7 -0
  104. package/dist/components/embed/rail-flags.d.ts +4 -11
  105. package/dist/components/embed/use-agent-identity.d.ts +1 -0
  106. package/dist/components/embed/use-prompt-invocations.d.ts +6 -1
  107. package/dist/components/prompts/PromptPreviewDialog.d.ts +10 -0
  108. package/dist/components/prompts/PromptsListSurface.d.ts +4 -4
  109. package/dist/components/scheduled/ConfirmDeleteScheduleDialog.d.ts +1 -0
  110. package/dist/components/scheduled/ScheduleDialog.d.ts +4 -0
  111. package/dist/components/scheduled/ScheduledDetailSurface.d.ts +1 -0
  112. package/dist/components/scheduled/ScheduledHeader.d.ts +3 -0
  113. package/dist/components/scheduled/ScheduledListSurface.d.ts +1 -1
  114. package/dist/components/scheduled/ShareScheduleDialog.d.ts +10 -0
  115. package/dist/components/scheduled/SharedSchedulesSurface.d.ts +1 -0
  116. package/dist/components/scheduled/schedule-dialog-model.d.ts +5 -2
  117. package/dist/components/skills/EditSkillDialog.d.ts +8 -0
  118. package/dist/components/skills/SkillDiscover.d.ts +1 -0
  119. package/dist/components/skills/SkillsListSurface.d.ts +8 -4
  120. package/dist/components/skills/skill-refusal-copy.d.ts +8 -0
  121. package/dist/components/ui/card.d.ts +1 -1
  122. package/dist/components/ui/dialog.d.ts +1 -1
  123. package/dist/components/ui/dropdown-menu.d.ts +2 -2
  124. package/dist/components/ui/hover-card.d.ts +1 -1
  125. package/dist/components/ui/popover.d.ts +1 -1
  126. package/dist/components/ui/select.d.ts +1 -1
  127. package/dist/components/ui/shadow-dialog-focus.d.ts +5 -0
  128. package/dist/components/ui/tooltip.d.ts +1 -1
  129. package/dist/embed/brand-marks.d.ts +3 -3
  130. package/dist/embed/conversation-scroll.d.ts +18 -0
  131. package/dist/embed/copy.d.ts +8 -3
  132. package/dist/embed/legal-disclaimer.d.ts +5 -1
  133. package/dist/embed/library-composer.d.ts +24 -0
  134. package/dist/embed/library-navigation.d.ts +6 -0
  135. package/dist/embed/portal-container.d.ts +17 -16
  136. package/dist/embed/presets.d.ts +2 -2
  137. package/dist/embed/schedule-invitation.d.ts +5 -0
  138. package/dist/embed/use-session-draft.d.ts +11 -0
  139. package/dist/embed/voice-call-lines.d.ts +14 -5
  140. package/dist/i18n/messages/en.d.ts +248 -9
  141. package/dist/i18n/messages/surfaces/files.d.ts +4 -0
  142. package/dist/i18n/messages/surfaces/header.d.ts +4 -0
  143. package/dist/i18n/messages/surfaces/navigation.d.ts +149 -0
  144. package/dist/i18n/messages/surfaces/prompts.d.ts +56 -5
  145. package/dist/i18n/messages/surfaces/scheduled.d.ts +233 -1
  146. package/dist/i18n/messages/surfaces/sessions.d.ts +16 -0
  147. package/dist/i18n/messages/surfaces/settings.d.ts +229 -0
  148. package/dist/i18n/messages/surfaces/skills.d.ts +157 -6
  149. package/dist/i18n/messages/surfaces/stream.d.ts +109 -0
  150. package/dist/i18n/messages/surfaces/usage.d.ts +40 -16
  151. package/dist/i18n/messages/surfaces/workspace.d.ts +7 -5
  152. package/dist/routes/chat/draft-updaters.d.ts +16 -0
  153. package/dist/routes/chat/use-session-goal.d.ts +1 -0
  154. package/dist/routes/chat.d.ts +2 -1
  155. package/dist/routes/library.d.ts +4 -0
  156. package/dist/stream/agent-deliverable-path.d.ts +1 -0
  157. package/dist/stream/ai-sdk-part-renderers.d.ts +4 -8
  158. package/dist/stream/belong-chat-transport.d.ts +16 -1
  159. package/dist/stream/belong-data-parts.d.ts +9 -3
  160. package/dist/stream/subagent-lanes.d.ts +3 -2
  161. package/dist/types/public.d.ts +11 -0
  162. package/package.json +1 -1
  163. 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
@@ -948,7 +954,7 @@ export declare const createApiClient: (baseUrl: string) => {
948
954
  runway?: "quick" | "normal" | "long" | undefined;
949
955
  } | undefined;
950
956
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
951
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
957
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
952
958
  llmModel?: string | undefined;
953
959
  fileIds?: string[] | undefined;
954
960
  clientMessageId?: string | undefined;
@@ -982,7 +988,7 @@ export declare const createApiClient: (baseUrl: string) => {
982
988
  runway?: "quick" | "normal" | "long" | undefined;
983
989
  } | undefined;
984
990
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
985
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
991
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
986
992
  llmModel?: string | undefined;
987
993
  fileIds?: string[] | undefined;
988
994
  clientMessageId?: string | undefined;
@@ -1015,7 +1021,7 @@ export declare const createApiClient: (baseUrl: string) => {
1015
1021
  runway?: "quick" | "normal" | "long" | undefined;
1016
1022
  } | undefined;
1017
1023
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1018
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1024
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1019
1025
  llmModel?: string | undefined;
1020
1026
  fileIds?: string[] | undefined;
1021
1027
  clientMessageId?: string | undefined;
@@ -1048,7 +1054,7 @@ export declare const createApiClient: (baseUrl: string) => {
1048
1054
  runway?: "quick" | "normal" | "long" | undefined;
1049
1055
  } | undefined;
1050
1056
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1051
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1057
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1052
1058
  llmModel?: string | undefined;
1053
1059
  fileIds?: string[] | undefined;
1054
1060
  clientMessageId?: string | undefined;
@@ -1081,7 +1087,7 @@ export declare const createApiClient: (baseUrl: string) => {
1081
1087
  runway?: "quick" | "normal" | "long" | undefined;
1082
1088
  } | undefined;
1083
1089
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1084
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1090
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1085
1091
  llmModel?: string | undefined;
1086
1092
  fileIds?: string[] | undefined;
1087
1093
  clientMessageId?: string | undefined;
@@ -1114,7 +1120,7 @@ export declare const createApiClient: (baseUrl: string) => {
1114
1120
  runway?: "quick" | "normal" | "long" | undefined;
1115
1121
  } | undefined;
1116
1122
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1117
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1123
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1118
1124
  llmModel?: string | undefined;
1119
1125
  fileIds?: string[] | undefined;
1120
1126
  clientMessageId?: string | undefined;
@@ -1147,7 +1153,7 @@ export declare const createApiClient: (baseUrl: string) => {
1147
1153
  runway?: "quick" | "normal" | "long" | undefined;
1148
1154
  } | undefined;
1149
1155
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1150
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1156
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1151
1157
  llmModel?: string | undefined;
1152
1158
  fileIds?: string[] | undefined;
1153
1159
  clientMessageId?: string | undefined;
@@ -1314,6 +1320,38 @@ export declare const createApiClient: (baseUrl: string) => {
1314
1320
  };
1315
1321
  };
1316
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
+ };
1317
1355
  } & {
1318
1356
  v1: {
1319
1357
  sessions: {
@@ -2630,6 +2668,29 @@ export declare const createApiClient: (baseUrl: string) => {
2630
2668
  previews: {
2631
2669
  mint: import('hono/client').ClientRequest<string, "/v1/previews/mint", {
2632
2670
  $post: {
2671
+ input: {
2672
+ json: {
2673
+ target: {
2674
+ kind: "artifact";
2675
+ artifactId: string;
2676
+ } | {
2677
+ kind: "file";
2678
+ fileId: string;
2679
+ } | {
2680
+ kind: "workspace";
2681
+ path: string;
2682
+ workspaceExternalId: string | null;
2683
+ };
2684
+ };
2685
+ };
2686
+ output: {
2687
+ error: {
2688
+ type: string;
2689
+ };
2690
+ };
2691
+ outputFormat: "json";
2692
+ status: 404;
2693
+ } | {
2633
2694
  input: {
2634
2695
  json: {
2635
2696
  target: {
@@ -4414,6 +4475,107 @@ export declare const createApiClient: (baseUrl: string) => {
4414
4475
  };
4415
4476
  }>;
4416
4477
  };
4478
+ } & {
4479
+ v1: {
4480
+ "api-keys": import('hono/client').ClientRequest<string, "/v1/api-keys", {
4481
+ $get: {
4482
+ input: {};
4483
+ output: {
4484
+ apiKeys: {
4485
+ apiKeyId: string;
4486
+ name: string;
4487
+ createdAt: string;
4488
+ }[];
4489
+ };
4490
+ outputFormat: "json";
4491
+ status: 200;
4492
+ };
4493
+ $post: {
4494
+ input: {
4495
+ json: {
4496
+ name: string;
4497
+ };
4498
+ };
4499
+ output: {
4500
+ error: {
4501
+ type: string;
4502
+ requiredScope: string;
4503
+ };
4504
+ };
4505
+ outputFormat: "json";
4506
+ status: 403;
4507
+ } | {
4508
+ input: {
4509
+ json: {
4510
+ name: string;
4511
+ };
4512
+ };
4513
+ output: {
4514
+ apiKeyId: string;
4515
+ key: string;
4516
+ };
4517
+ outputFormat: "json";
4518
+ status: 201;
4519
+ } | {
4520
+ input: {
4521
+ json: {
4522
+ name: string;
4523
+ };
4524
+ };
4525
+ output: {
4526
+ error: {
4527
+ type: "tenant_inactive";
4528
+ };
4529
+ };
4530
+ outputFormat: "json";
4531
+ status: 403;
4532
+ };
4533
+ }>;
4534
+ };
4535
+ } & {
4536
+ v1: {
4537
+ "api-keys": {
4538
+ ":apiKeyId": import('hono/client').ClientRequest<string, "/v1/api-keys/:apiKeyId", {
4539
+ $delete: {
4540
+ input: {
4541
+ param: {
4542
+ apiKeyId: string;
4543
+ };
4544
+ };
4545
+ output: null;
4546
+ outputFormat: "body";
4547
+ status: 204;
4548
+ } | {
4549
+ input: {
4550
+ param: {
4551
+ apiKeyId: string;
4552
+ };
4553
+ };
4554
+ output: {
4555
+ error: {
4556
+ type: string;
4557
+ requiredScope: string;
4558
+ };
4559
+ };
4560
+ outputFormat: "json";
4561
+ status: 403;
4562
+ } | {
4563
+ input: {
4564
+ param: {
4565
+ apiKeyId: string;
4566
+ };
4567
+ };
4568
+ output: {
4569
+ error: {
4570
+ type: string;
4571
+ };
4572
+ };
4573
+ outputFormat: "json";
4574
+ status: 404;
4575
+ };
4576
+ }>;
4577
+ };
4578
+ };
4417
4579
  } & {
4418
4580
  v1: {
4419
4581
  "agent-grants": import('hono/client').ClientRequest<string, "/v1/agent-grants", {
@@ -4850,7 +5012,7 @@ export declare const createApiClient: (baseUrl: string) => {
4850
5012
  originatingSessionId?: string | undefined;
4851
5013
  workspaceExternalId?: string | undefined;
4852
5014
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
4853
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5015
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
4854
5016
  llmModel?: string | undefined;
4855
5017
  };
4856
5018
  };
@@ -4897,7 +5059,7 @@ export declare const createApiClient: (baseUrl: string) => {
4897
5059
  originatingSessionId?: string | undefined;
4898
5060
  workspaceExternalId?: string | undefined;
4899
5061
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
4900
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5062
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
4901
5063
  llmModel?: string | undefined;
4902
5064
  };
4903
5065
  };
@@ -4949,7 +5111,7 @@ export declare const createApiClient: (baseUrl: string) => {
4949
5111
  originatingSessionId?: string | undefined;
4950
5112
  workspaceExternalId?: string | undefined;
4951
5113
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
4952
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5114
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
4953
5115
  llmModel?: string | undefined;
4954
5116
  };
4955
5117
  };
@@ -4995,7 +5157,7 @@ export declare const createApiClient: (baseUrl: string) => {
4995
5157
  originatingSessionId?: string | undefined;
4996
5158
  workspaceExternalId?: string | undefined;
4997
5159
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
4998
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5160
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
4999
5161
  llmModel?: string | undefined;
5000
5162
  };
5001
5163
  };
@@ -5020,6 +5182,7 @@ export declare const createApiClient: (baseUrl: string) => {
5020
5182
  output: {
5021
5183
  taskSchedules: {
5022
5184
  taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
5185
+ shared: boolean;
5023
5186
  title: string;
5024
5187
  status: "active" | "completed" | "paused" | "deleted";
5025
5188
  recurrence: {
@@ -5042,6 +5205,66 @@ export declare const createApiClient: (baseUrl: string) => {
5042
5205
  };
5043
5206
  }>;
5044
5207
  };
5208
+ } & {
5209
+ v1: {
5210
+ "task-schedules": {
5211
+ ":taskScheduleId": {
5212
+ share: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/share", {
5213
+ $post: {
5214
+ input: {
5215
+ param: {
5216
+ taskScheduleId: string;
5217
+ };
5218
+ } & {
5219
+ query: {
5220
+ workspaceExternalId?: string | string[];
5221
+ };
5222
+ };
5223
+ output: {
5224
+ error: {
5225
+ type: string;
5226
+ requiredScope: string;
5227
+ };
5228
+ };
5229
+ outputFormat: "json";
5230
+ status: 403;
5231
+ } | {
5232
+ input: {
5233
+ param: {
5234
+ taskScheduleId: string;
5235
+ };
5236
+ } & {
5237
+ query: {
5238
+ workspaceExternalId?: string | string[];
5239
+ };
5240
+ };
5241
+ output: {
5242
+ definitionId: string;
5243
+ };
5244
+ outputFormat: "json";
5245
+ status: import('hono/utils/http-status').ContentfulStatusCode;
5246
+ } | {
5247
+ input: {
5248
+ param: {
5249
+ taskScheduleId: string;
5250
+ };
5251
+ } & {
5252
+ query: {
5253
+ workspaceExternalId?: string | string[];
5254
+ };
5255
+ };
5256
+ output: {
5257
+ error: {
5258
+ type: string;
5259
+ };
5260
+ };
5261
+ outputFormat: "json";
5262
+ status: 404;
5263
+ };
5264
+ }>;
5265
+ };
5266
+ };
5267
+ };
5045
5268
  } & {
5046
5269
  v1: {
5047
5270
  "task-schedules": {
@@ -5057,6 +5280,12 @@ export declare const createApiClient: (baseUrl: string) => {
5057
5280
  };
5058
5281
  };
5059
5282
  output: {
5283
+ sharing: {
5284
+ readonly definitionId: string;
5285
+ readonly role: "owner" | "use" | "edit" | "revoked";
5286
+ readonly revision: number;
5287
+ readonly workspaceCount: number;
5288
+ } | null;
5060
5289
  explicitTitle: string | null;
5061
5290
  message: string;
5062
5291
  notification: {
@@ -5087,6 +5316,7 @@ export declare const createApiClient: (baseUrl: string) => {
5087
5316
  maxMessagesPerRun: number;
5088
5317
  } | null;
5089
5318
  taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
5319
+ shared: boolean;
5090
5320
  title: string;
5091
5321
  status: "active" | "completed" | "paused" | "deleted";
5092
5322
  recurrence: {
@@ -5133,6 +5363,7 @@ export declare const createApiClient: (baseUrl: string) => {
5133
5363
  };
5134
5364
  } & {
5135
5365
  json: {
5366
+ expectedRevision?: number | undefined;
5136
5367
  title?: string | null | undefined;
5137
5368
  message?: string | undefined;
5138
5369
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5156,13 +5387,12 @@ export declare const createApiClient: (baseUrl: string) => {
5156
5387
  };
5157
5388
  };
5158
5389
  output: {
5159
- error: {
5160
- type: string;
5161
- requiredScope: string;
5162
- };
5390
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
5391
+ status: "active" | "completed" | "paused" | "deleted";
5392
+ nextRunAt: string | null;
5163
5393
  };
5164
5394
  outputFormat: "json";
5165
- status: 403;
5395
+ status: 200;
5166
5396
  } | {
5167
5397
  input: {
5168
5398
  param: {
@@ -5174,6 +5404,7 @@ export declare const createApiClient: (baseUrl: string) => {
5174
5404
  };
5175
5405
  } & {
5176
5406
  json: {
5407
+ expectedRevision?: number | undefined;
5177
5408
  title?: string | null | undefined;
5178
5409
  message?: string | undefined;
5179
5410
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5197,12 +5428,12 @@ export declare const createApiClient: (baseUrl: string) => {
5197
5428
  };
5198
5429
  };
5199
5430
  output: {
5200
- taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
5201
- status: "active" | "completed" | "paused" | "deleted";
5202
- nextRunAt: string | null;
5431
+ error: {
5432
+ type: string;
5433
+ };
5203
5434
  };
5204
5435
  outputFormat: "json";
5205
- status: 200;
5436
+ status: 404;
5206
5437
  } | {
5207
5438
  input: {
5208
5439
  param: {
@@ -5214,6 +5445,7 @@ export declare const createApiClient: (baseUrl: string) => {
5214
5445
  };
5215
5446
  } & {
5216
5447
  json: {
5448
+ expectedRevision?: number | undefined;
5217
5449
  title?: string | null | undefined;
5218
5450
  message?: string | undefined;
5219
5451
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5242,7 +5474,7 @@ export declare const createApiClient: (baseUrl: string) => {
5242
5474
  };
5243
5475
  };
5244
5476
  outputFormat: "json";
5245
- status: 404;
5477
+ status: 403;
5246
5478
  } | {
5247
5479
  input: {
5248
5480
  param: {
@@ -5254,6 +5486,7 @@ export declare const createApiClient: (baseUrl: string) => {
5254
5486
  };
5255
5487
  } & {
5256
5488
  json: {
5489
+ expectedRevision?: number | undefined;
5257
5490
  title?: string | null | undefined;
5258
5491
  message?: string | undefined;
5259
5492
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5294,6 +5527,7 @@ export declare const createApiClient: (baseUrl: string) => {
5294
5527
  };
5295
5528
  } & {
5296
5529
  json: {
5530
+ expectedRevision?: number | undefined;
5297
5531
  title?: string | null | undefined;
5298
5532
  message?: string | undefined;
5299
5533
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5616,6 +5850,27 @@ export declare const createApiClient: (baseUrl: string) => {
5616
5850
  };
5617
5851
  outputFormat: "json";
5618
5852
  status: 403;
5853
+ } | {
5854
+ input: {
5855
+ param: {
5856
+ taskScheduleId: string;
5857
+ };
5858
+ } & {
5859
+ query: {
5860
+ workspaceExternalId?: string | string[];
5861
+ };
5862
+ } & {
5863
+ json: {
5864
+ clientRequestId?: string | undefined;
5865
+ };
5866
+ };
5867
+ output: {
5868
+ error: {
5869
+ readonly type: "idempotency_key_required" | "idempotency_key_invalid" | "idempotency_key_conflict";
5870
+ };
5871
+ };
5872
+ outputFormat: "json";
5873
+ status: 400;
5619
5874
  } | {
5620
5875
  input: {
5621
5876
  param: {
@@ -5684,19 +5939,1484 @@ export declare const createApiClient: (baseUrl: string) => {
5684
5939
  };
5685
5940
  } & {
5686
5941
  v1: {
5687
- "pre-prompts": import('hono/client').ClientRequest<string, "/v1/pre-prompts", {
5688
- $get: {
5942
+ "task-schedules": import('hono/client').ClientRequest<string, "/v1/task-schedules", {
5943
+ $post: {
5689
5944
  input: {
5690
- query: {
5691
- workspaceExternalId?: string | string[];
5692
- limit?: string | string[];
5693
- };
5694
- };
5695
- output: {
5696
- prePrompts: {
5697
- prePromptId: import('node_modules/@belong/cloud/src/platform/ids').PrePromptId;
5698
- name: string;
5699
- description: string;
5945
+ json: {
5946
+ scheduledFor: string;
5947
+ timeExpression: string;
5948
+ timezone: string;
5949
+ message: string;
5950
+ clientScheduleId: string;
5951
+ notification?: {
5952
+ kind: "completion_email";
5953
+ recipients?: string[] | undefined;
5954
+ } | {
5955
+ kind: "custom_email";
5956
+ templatePath: string;
5957
+ recipients?: string[] | undefined;
5958
+ } | undefined;
5959
+ title?: string | undefined;
5960
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
5961
+ recurrence?: {
5962
+ kind: "none";
5963
+ } | {
5964
+ kind: "daily";
5965
+ } | {
5966
+ kind: "weekdays";
5967
+ } | {
5968
+ kind: "weekly";
5969
+ } | {
5970
+ kind: "manual";
5971
+ } | {
5972
+ kind: "interval";
5973
+ intervalMinutes: number;
5974
+ } | undefined;
5975
+ originatingSessionId?: string | undefined;
5976
+ workspaceExternalId?: string | undefined;
5977
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
5978
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
5979
+ llmModel?: string | undefined;
5980
+ };
5981
+ };
5982
+ output: {
5983
+ error: {
5984
+ type: string;
5985
+ requiredScope: string;
5986
+ };
5987
+ };
5988
+ outputFormat: "json";
5989
+ status: 403;
5990
+ } | {
5991
+ input: {
5992
+ json: {
5993
+ scheduledFor: string;
5994
+ timeExpression: string;
5995
+ timezone: string;
5996
+ message: string;
5997
+ clientScheduleId: string;
5998
+ notification?: {
5999
+ kind: "completion_email";
6000
+ recipients?: string[] | undefined;
6001
+ } | {
6002
+ kind: "custom_email";
6003
+ templatePath: string;
6004
+ recipients?: string[] | undefined;
6005
+ } | undefined;
6006
+ title?: string | undefined;
6007
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6008
+ recurrence?: {
6009
+ kind: "none";
6010
+ } | {
6011
+ kind: "daily";
6012
+ } | {
6013
+ kind: "weekdays";
6014
+ } | {
6015
+ kind: "weekly";
6016
+ } | {
6017
+ kind: "manual";
6018
+ } | {
6019
+ kind: "interval";
6020
+ intervalMinutes: number;
6021
+ } | undefined;
6022
+ originatingSessionId?: string | undefined;
6023
+ workspaceExternalId?: string | undefined;
6024
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6025
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
6026
+ llmModel?: string | undefined;
6027
+ };
6028
+ };
6029
+ output: {
6030
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
6031
+ status: "scheduled" | "failed" | "completed" | "running";
6032
+ scheduledFor: string;
6033
+ seriesStatus: "active" | "completed" | "paused" | "deleted";
6034
+ recurrence: {
6035
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
6036
+ };
6037
+ nextRunAt: string | null;
6038
+ title: string;
6039
+ };
6040
+ outputFormat: "json";
6041
+ status: 200 | 201;
6042
+ } | {
6043
+ input: {
6044
+ json: {
6045
+ scheduledFor: string;
6046
+ timeExpression: string;
6047
+ timezone: string;
6048
+ message: string;
6049
+ clientScheduleId: string;
6050
+ notification?: {
6051
+ kind: "completion_email";
6052
+ recipients?: string[] | undefined;
6053
+ } | {
6054
+ kind: "custom_email";
6055
+ templatePath: string;
6056
+ recipients?: string[] | undefined;
6057
+ } | undefined;
6058
+ title?: string | undefined;
6059
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6060
+ recurrence?: {
6061
+ kind: "none";
6062
+ } | {
6063
+ kind: "daily";
6064
+ } | {
6065
+ kind: "weekdays";
6066
+ } | {
6067
+ kind: "weekly";
6068
+ } | {
6069
+ kind: "manual";
6070
+ } | {
6071
+ kind: "interval";
6072
+ intervalMinutes: number;
6073
+ } | undefined;
6074
+ originatingSessionId?: string | undefined;
6075
+ workspaceExternalId?: string | undefined;
6076
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6077
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
6078
+ llmModel?: string | undefined;
6079
+ };
6080
+ };
6081
+ output: {
6082
+ error: {
6083
+ type: string;
6084
+ };
6085
+ };
6086
+ outputFormat: "json";
6087
+ status: 422;
6088
+ } | {
6089
+ input: {
6090
+ json: {
6091
+ scheduledFor: string;
6092
+ timeExpression: string;
6093
+ timezone: string;
6094
+ message: string;
6095
+ clientScheduleId: string;
6096
+ notification?: {
6097
+ kind: "completion_email";
6098
+ recipients?: string[] | undefined;
6099
+ } | {
6100
+ kind: "custom_email";
6101
+ templatePath: string;
6102
+ recipients?: string[] | undefined;
6103
+ } | undefined;
6104
+ title?: string | undefined;
6105
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6106
+ recurrence?: {
6107
+ kind: "none";
6108
+ } | {
6109
+ kind: "daily";
6110
+ } | {
6111
+ kind: "weekdays";
6112
+ } | {
6113
+ kind: "weekly";
6114
+ } | {
6115
+ kind: "manual";
6116
+ } | {
6117
+ kind: "interval";
6118
+ intervalMinutes: number;
6119
+ } | undefined;
6120
+ originatingSessionId?: string | undefined;
6121
+ workspaceExternalId?: string | undefined;
6122
+ runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6123
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
6124
+ llmModel?: string | undefined;
6125
+ };
6126
+ };
6127
+ output: {
6128
+ error: {
6129
+ type: string;
6130
+ };
6131
+ };
6132
+ outputFormat: "json";
6133
+ status: 409;
6134
+ };
6135
+ $get: {
6136
+ input: {
6137
+ query: {
6138
+ filter?: string | string[];
6139
+ q?: string | string[];
6140
+ workspaceExternalId?: string | string[];
6141
+ limit?: string | string[];
6142
+ offset?: string | string[];
6143
+ };
6144
+ };
6145
+ output: {
6146
+ taskSchedules: {
6147
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
6148
+ shared: boolean;
6149
+ title: string;
6150
+ status: "active" | "completed" | "paused" | "deleted";
6151
+ recurrence: {
6152
+ intervalMinutes?: number | undefined;
6153
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
6154
+ };
6155
+ timezone: string;
6156
+ nextRunAt: string | null;
6157
+ lastRun: {
6158
+ status: "failed" | "completed" | "running";
6159
+ at: string | null;
6160
+ } | null;
6161
+ messagePreview: string;
6162
+ createdAt: string;
6163
+ }[];
6164
+ nextOffset: number | null;
6165
+ };
6166
+ outputFormat: "json";
6167
+ status: 200;
6168
+ };
6169
+ }>;
6170
+ };
6171
+ } & {
6172
+ v1: {
6173
+ "task-schedules": {
6174
+ ":taskScheduleId": {
6175
+ share: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/share", {
6176
+ $post: {
6177
+ input: {
6178
+ param: {
6179
+ taskScheduleId: string;
6180
+ };
6181
+ } & {
6182
+ query: {
6183
+ workspaceExternalId?: string | string[];
6184
+ };
6185
+ };
6186
+ output: {
6187
+ error: {
6188
+ type: string;
6189
+ requiredScope: string;
6190
+ };
6191
+ };
6192
+ outputFormat: "json";
6193
+ status: 403;
6194
+ } | {
6195
+ input: {
6196
+ param: {
6197
+ taskScheduleId: string;
6198
+ };
6199
+ } & {
6200
+ query: {
6201
+ workspaceExternalId?: string | string[];
6202
+ };
6203
+ };
6204
+ output: {
6205
+ definitionId: string;
6206
+ };
6207
+ outputFormat: "json";
6208
+ status: import('hono/utils/http-status').ContentfulStatusCode;
6209
+ } | {
6210
+ input: {
6211
+ param: {
6212
+ taskScheduleId: string;
6213
+ };
6214
+ } & {
6215
+ query: {
6216
+ workspaceExternalId?: string | string[];
6217
+ };
6218
+ };
6219
+ output: {
6220
+ error: {
6221
+ type: string;
6222
+ };
6223
+ };
6224
+ outputFormat: "json";
6225
+ status: 404;
6226
+ };
6227
+ }>;
6228
+ };
6229
+ };
6230
+ };
6231
+ } & {
6232
+ v1: {
6233
+ "task-schedules": {
6234
+ ":taskScheduleId": import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId", {
6235
+ $get: {
6236
+ input: {
6237
+ param: {
6238
+ taskScheduleId: string;
6239
+ };
6240
+ } & {
6241
+ query: {
6242
+ workspaceExternalId?: string | string[];
6243
+ };
6244
+ };
6245
+ output: {
6246
+ sharing: {
6247
+ readonly definitionId: string;
6248
+ readonly role: "owner" | "use" | "edit" | "revoked";
6249
+ readonly revision: number;
6250
+ readonly workspaceCount: number;
6251
+ } | null;
6252
+ explicitTitle: string | null;
6253
+ message: string;
6254
+ notification: {
6255
+ kind: "completion_email";
6256
+ recipients?: string[] | undefined;
6257
+ } | {
6258
+ kind: "custom_email";
6259
+ templatePath: string;
6260
+ recipients?: string[] | undefined;
6261
+ };
6262
+ mode: "plan" | "approve" | "balanced" | "bypass";
6263
+ timeExpression: string;
6264
+ anchorAt: string;
6265
+ totalRunsCount: number;
6266
+ updatedAt: string;
6267
+ microsoftTeamsDelivery: {
6268
+ expiresAt: string;
6269
+ destination: {
6270
+ kind: "chat";
6271
+ chatId: string;
6272
+ } | {
6273
+ kind: "channel";
6274
+ teamId: string;
6275
+ channelId: string;
6276
+ };
6277
+ status: import('../../../../apps/belong-cloud/src/features/microsoft/microsoft.schemas').MicrosoftTeamsMandateStatus;
6278
+ allowExternalRecipients: boolean;
6279
+ maxMessagesPerRun: number;
6280
+ } | null;
6281
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
6282
+ shared: boolean;
6283
+ title: string;
6284
+ status: "active" | "completed" | "paused" | "deleted";
6285
+ recurrence: {
6286
+ intervalMinutes?: number | undefined;
6287
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
6288
+ };
6289
+ timezone: string;
6290
+ nextRunAt: string | null;
6291
+ lastRun: {
6292
+ status: "failed" | "completed" | "running";
6293
+ at: string | null;
6294
+ } | null;
6295
+ messagePreview: string;
6296
+ createdAt: string;
6297
+ };
6298
+ outputFormat: "json";
6299
+ status: 200;
6300
+ } | {
6301
+ input: {
6302
+ param: {
6303
+ taskScheduleId: string;
6304
+ };
6305
+ } & {
6306
+ query: {
6307
+ workspaceExternalId?: string | string[];
6308
+ };
6309
+ };
6310
+ output: {
6311
+ error: {
6312
+ type: string;
6313
+ };
6314
+ };
6315
+ outputFormat: "json";
6316
+ status: 404;
6317
+ };
6318
+ $patch: {
6319
+ input: {
6320
+ param: {
6321
+ taskScheduleId: string;
6322
+ };
6323
+ } & {
6324
+ query: {
6325
+ workspaceExternalId?: string | string[];
6326
+ };
6327
+ } & {
6328
+ json: {
6329
+ expectedRevision?: number | undefined;
6330
+ title?: string | null | undefined;
6331
+ message?: string | undefined;
6332
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6333
+ scheduledFor?: string | undefined;
6334
+ timeExpression?: string | undefined;
6335
+ timezone?: string | undefined;
6336
+ recurrence?: {
6337
+ kind: "none";
6338
+ } | {
6339
+ kind: "daily";
6340
+ } | {
6341
+ kind: "weekdays";
6342
+ } | {
6343
+ kind: "weekly";
6344
+ } | {
6345
+ kind: "manual";
6346
+ } | {
6347
+ kind: "interval";
6348
+ intervalMinutes: number;
6349
+ } | undefined;
6350
+ };
6351
+ };
6352
+ output: {
6353
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
6354
+ status: "active" | "completed" | "paused" | "deleted";
6355
+ nextRunAt: string | null;
6356
+ };
6357
+ outputFormat: "json";
6358
+ status: 200;
6359
+ } | {
6360
+ input: {
6361
+ param: {
6362
+ taskScheduleId: string;
6363
+ };
6364
+ } & {
6365
+ query: {
6366
+ workspaceExternalId?: string | string[];
6367
+ };
6368
+ } & {
6369
+ json: {
6370
+ expectedRevision?: number | undefined;
6371
+ title?: string | null | undefined;
6372
+ message?: string | undefined;
6373
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6374
+ scheduledFor?: string | undefined;
6375
+ timeExpression?: string | undefined;
6376
+ timezone?: string | undefined;
6377
+ recurrence?: {
6378
+ kind: "none";
6379
+ } | {
6380
+ kind: "daily";
6381
+ } | {
6382
+ kind: "weekdays";
6383
+ } | {
6384
+ kind: "weekly";
6385
+ } | {
6386
+ kind: "manual";
6387
+ } | {
6388
+ kind: "interval";
6389
+ intervalMinutes: number;
6390
+ } | undefined;
6391
+ };
6392
+ };
6393
+ output: {
6394
+ error: {
6395
+ type: string;
6396
+ };
6397
+ };
6398
+ outputFormat: "json";
6399
+ status: 404;
6400
+ } | {
6401
+ input: {
6402
+ param: {
6403
+ taskScheduleId: string;
6404
+ };
6405
+ } & {
6406
+ query: {
6407
+ workspaceExternalId?: string | string[];
6408
+ };
6409
+ } & {
6410
+ json: {
6411
+ expectedRevision?: number | undefined;
6412
+ title?: string | null | undefined;
6413
+ message?: string | undefined;
6414
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6415
+ scheduledFor?: string | undefined;
6416
+ timeExpression?: string | undefined;
6417
+ timezone?: string | undefined;
6418
+ recurrence?: {
6419
+ kind: "none";
6420
+ } | {
6421
+ kind: "daily";
6422
+ } | {
6423
+ kind: "weekdays";
6424
+ } | {
6425
+ kind: "weekly";
6426
+ } | {
6427
+ kind: "manual";
6428
+ } | {
6429
+ kind: "interval";
6430
+ intervalMinutes: number;
6431
+ } | undefined;
6432
+ };
6433
+ };
6434
+ output: {
6435
+ error: {
6436
+ type: string;
6437
+ };
6438
+ };
6439
+ outputFormat: "json";
6440
+ status: 403;
6441
+ } | {
6442
+ input: {
6443
+ param: {
6444
+ taskScheduleId: string;
6445
+ };
6446
+ } & {
6447
+ query: {
6448
+ workspaceExternalId?: string | string[];
6449
+ };
6450
+ } & {
6451
+ json: {
6452
+ expectedRevision?: number | undefined;
6453
+ title?: string | null | undefined;
6454
+ message?: string | undefined;
6455
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6456
+ scheduledFor?: string | undefined;
6457
+ timeExpression?: string | undefined;
6458
+ timezone?: string | undefined;
6459
+ recurrence?: {
6460
+ kind: "none";
6461
+ } | {
6462
+ kind: "daily";
6463
+ } | {
6464
+ kind: "weekdays";
6465
+ } | {
6466
+ kind: "weekly";
6467
+ } | {
6468
+ kind: "manual";
6469
+ } | {
6470
+ kind: "interval";
6471
+ intervalMinutes: number;
6472
+ } | undefined;
6473
+ };
6474
+ };
6475
+ output: {
6476
+ error: {
6477
+ type: string;
6478
+ };
6479
+ };
6480
+ outputFormat: "json";
6481
+ status: 409;
6482
+ } | {
6483
+ input: {
6484
+ param: {
6485
+ taskScheduleId: string;
6486
+ };
6487
+ } & {
6488
+ query: {
6489
+ workspaceExternalId?: string | string[];
6490
+ };
6491
+ } & {
6492
+ json: {
6493
+ expectedRevision?: number | undefined;
6494
+ title?: string | null | undefined;
6495
+ message?: string | undefined;
6496
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
6497
+ scheduledFor?: string | undefined;
6498
+ timeExpression?: string | undefined;
6499
+ timezone?: string | undefined;
6500
+ recurrence?: {
6501
+ kind: "none";
6502
+ } | {
6503
+ kind: "daily";
6504
+ } | {
6505
+ kind: "weekdays";
6506
+ } | {
6507
+ kind: "weekly";
6508
+ } | {
6509
+ kind: "manual";
6510
+ } | {
6511
+ kind: "interval";
6512
+ intervalMinutes: number;
6513
+ } | undefined;
6514
+ };
6515
+ };
6516
+ output: {
6517
+ error: {
6518
+ type: string;
6519
+ };
6520
+ };
6521
+ outputFormat: "json";
6522
+ status: 422;
6523
+ };
6524
+ $delete: {
6525
+ input: {
6526
+ param: {
6527
+ taskScheduleId: string;
6528
+ };
6529
+ } & {
6530
+ query: {
6531
+ workspaceExternalId?: string | string[];
6532
+ };
6533
+ };
6534
+ output: null;
6535
+ outputFormat: "body";
6536
+ status: 204;
6537
+ } | {
6538
+ input: {
6539
+ param: {
6540
+ taskScheduleId: string;
6541
+ };
6542
+ } & {
6543
+ query: {
6544
+ workspaceExternalId?: string | string[];
6545
+ };
6546
+ };
6547
+ output: {
6548
+ error: {
6549
+ type: string;
6550
+ requiredScope: string;
6551
+ };
6552
+ };
6553
+ outputFormat: "json";
6554
+ status: 403;
6555
+ } | {
6556
+ input: {
6557
+ param: {
6558
+ taskScheduleId: string;
6559
+ };
6560
+ } & {
6561
+ query: {
6562
+ workspaceExternalId?: string | string[];
6563
+ };
6564
+ };
6565
+ output: {
6566
+ error: {
6567
+ type: string;
6568
+ };
6569
+ };
6570
+ outputFormat: "json";
6571
+ status: 404;
6572
+ };
6573
+ }>;
6574
+ };
6575
+ };
6576
+ } & {
6577
+ v1: {
6578
+ "task-schedules": {
6579
+ ":taskScheduleId": {
6580
+ runs: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/runs", {
6581
+ $get: {
6582
+ input: {
6583
+ param: {
6584
+ taskScheduleId: string;
6585
+ };
6586
+ } & {
6587
+ query: {
6588
+ workspaceExternalId?: string | string[];
6589
+ limit?: string | string[];
6590
+ offset?: string | string[];
6591
+ };
6592
+ };
6593
+ output: {
6594
+ runs: {
6595
+ taskScheduleRunId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleId;
6596
+ occurrenceKind: "scheduled" | "manual";
6597
+ displayStatus: import('node_modules/@belong/cloud/src/features/task-schedules/task-schedule.service').TaskScheduleRunDisplayStatus;
6598
+ scheduledFor: string;
6599
+ startedAt: string | null;
6600
+ finishedAt: string | null;
6601
+ failureReason: string | null;
6602
+ sessionId: import('node_modules/@belong/cloud/src/platform/ids').SessionId | null;
6603
+ taskId: import('node_modules/@belong/cloud/src/platform/ids').TaskId | null;
6604
+ runId: import('node_modules/@belong/cloud/src/platform/ids').RunId | null;
6605
+ }[];
6606
+ nextOffset: number | null;
6607
+ };
6608
+ outputFormat: "json";
6609
+ status: 200;
6610
+ } | {
6611
+ input: {
6612
+ param: {
6613
+ taskScheduleId: string;
6614
+ };
6615
+ } & {
6616
+ query: {
6617
+ workspaceExternalId?: string | string[];
6618
+ limit?: string | string[];
6619
+ offset?: string | string[];
6620
+ };
6621
+ };
6622
+ output: {
6623
+ error: {
6624
+ type: string;
6625
+ };
6626
+ };
6627
+ outputFormat: "json";
6628
+ status: 404;
6629
+ };
6630
+ }>;
6631
+ };
6632
+ };
6633
+ };
6634
+ } & {
6635
+ v1: {
6636
+ "task-schedules": {
6637
+ ":taskScheduleId": {
6638
+ pause: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/pause", {
6639
+ $post: {
6640
+ input: {
6641
+ param: {
6642
+ taskScheduleId: string;
6643
+ };
6644
+ } & {
6645
+ query: {
6646
+ workspaceExternalId?: string | string[];
6647
+ };
6648
+ };
6649
+ output: {
6650
+ error: {
6651
+ type: string;
6652
+ requiredScope: string;
6653
+ };
6654
+ };
6655
+ outputFormat: "json";
6656
+ status: 403;
6657
+ } | {
6658
+ input: {
6659
+ param: {
6660
+ taskScheduleId: string;
6661
+ };
6662
+ } & {
6663
+ query: {
6664
+ workspaceExternalId?: string | string[];
6665
+ };
6666
+ };
6667
+ output: {
6668
+ status: "paused";
6669
+ };
6670
+ outputFormat: "json";
6671
+ status: 200;
6672
+ } | {
6673
+ input: {
6674
+ param: {
6675
+ taskScheduleId: string;
6676
+ };
6677
+ } & {
6678
+ query: {
6679
+ workspaceExternalId?: string | string[];
6680
+ };
6681
+ };
6682
+ output: {
6683
+ error: {
6684
+ type: string;
6685
+ };
6686
+ };
6687
+ outputFormat: "json";
6688
+ status: 404;
6689
+ } | {
6690
+ input: {
6691
+ param: {
6692
+ taskScheduleId: string;
6693
+ };
6694
+ } & {
6695
+ query: {
6696
+ workspaceExternalId?: string | string[];
6697
+ };
6698
+ };
6699
+ output: {
6700
+ error: {
6701
+ type: string;
6702
+ };
6703
+ };
6704
+ outputFormat: "json";
6705
+ status: 409;
6706
+ };
6707
+ }>;
6708
+ };
6709
+ };
6710
+ };
6711
+ } & {
6712
+ v1: {
6713
+ "task-schedules": {
6714
+ ":taskScheduleId": {
6715
+ resume: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/resume", {
6716
+ $post: {
6717
+ input: {
6718
+ param: {
6719
+ taskScheduleId: string;
6720
+ };
6721
+ } & {
6722
+ query: {
6723
+ workspaceExternalId?: string | string[];
6724
+ };
6725
+ };
6726
+ output: {
6727
+ error: {
6728
+ type: string;
6729
+ requiredScope: string;
6730
+ };
6731
+ };
6732
+ outputFormat: "json";
6733
+ status: 403;
6734
+ } | {
6735
+ input: {
6736
+ param: {
6737
+ taskScheduleId: string;
6738
+ };
6739
+ } & {
6740
+ query: {
6741
+ workspaceExternalId?: string | string[];
6742
+ };
6743
+ };
6744
+ output: {
6745
+ status: "active" | "completed" | "needs_attention";
6746
+ nextRunAt: string | null;
6747
+ };
6748
+ outputFormat: "json";
6749
+ status: 200;
6750
+ } | {
6751
+ input: {
6752
+ param: {
6753
+ taskScheduleId: string;
6754
+ };
6755
+ } & {
6756
+ query: {
6757
+ workspaceExternalId?: string | string[];
6758
+ };
6759
+ };
6760
+ output: {
6761
+ error: {
6762
+ type: string;
6763
+ };
6764
+ };
6765
+ outputFormat: "json";
6766
+ status: 404;
6767
+ } | {
6768
+ input: {
6769
+ param: {
6770
+ taskScheduleId: string;
6771
+ };
6772
+ } & {
6773
+ query: {
6774
+ workspaceExternalId?: string | string[];
6775
+ };
6776
+ };
6777
+ output: {
6778
+ error: {
6779
+ type: string;
6780
+ };
6781
+ };
6782
+ outputFormat: "json";
6783
+ status: 409;
6784
+ };
6785
+ }>;
6786
+ };
6787
+ };
6788
+ };
6789
+ } & {
6790
+ v1: {
6791
+ "task-schedules": {
6792
+ ":taskScheduleId": {
6793
+ "run-now": import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/run-now", {
6794
+ $post: {
6795
+ input: {
6796
+ param: {
6797
+ taskScheduleId: string;
6798
+ };
6799
+ } & {
6800
+ query: {
6801
+ workspaceExternalId?: string | string[];
6802
+ };
6803
+ } & {
6804
+ json: {
6805
+ clientRequestId?: string | undefined;
6806
+ };
6807
+ };
6808
+ output: {
6809
+ error: {
6810
+ type: string;
6811
+ requiredScope: string;
6812
+ };
6813
+ };
6814
+ outputFormat: "json";
6815
+ status: 403;
6816
+ } | {
6817
+ input: {
6818
+ param: {
6819
+ taskScheduleId: string;
6820
+ };
6821
+ } & {
6822
+ query: {
6823
+ workspaceExternalId?: string | string[];
6824
+ };
6825
+ } & {
6826
+ json: {
6827
+ clientRequestId?: string | undefined;
6828
+ };
6829
+ };
6830
+ output: {
6831
+ error: {
6832
+ readonly type: "idempotency_key_required" | "idempotency_key_invalid" | "idempotency_key_conflict";
6833
+ };
6834
+ };
6835
+ outputFormat: "json";
6836
+ status: 400;
6837
+ } | {
6838
+ input: {
6839
+ param: {
6840
+ taskScheduleId: string;
6841
+ };
6842
+ } & {
6843
+ query: {
6844
+ workspaceExternalId?: string | string[];
6845
+ };
6846
+ } & {
6847
+ json: {
6848
+ clientRequestId?: string | undefined;
6849
+ };
6850
+ };
6851
+ output: {
6852
+ taskScheduleRunId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleId;
6853
+ };
6854
+ outputFormat: "json";
6855
+ status: 202;
6856
+ } | {
6857
+ input: {
6858
+ param: {
6859
+ taskScheduleId: string;
6860
+ };
6861
+ } & {
6862
+ query: {
6863
+ workspaceExternalId?: string | string[];
6864
+ };
6865
+ } & {
6866
+ json: {
6867
+ clientRequestId?: string | undefined;
6868
+ };
6869
+ };
6870
+ output: {
6871
+ error: {
6872
+ type: string;
6873
+ };
6874
+ };
6875
+ outputFormat: "json";
6876
+ status: 404;
6877
+ } | {
6878
+ input: {
6879
+ param: {
6880
+ taskScheduleId: string;
6881
+ };
6882
+ } & {
6883
+ query: {
6884
+ workspaceExternalId?: string | string[];
6885
+ };
6886
+ } & {
6887
+ json: {
6888
+ clientRequestId?: string | undefined;
6889
+ };
6890
+ };
6891
+ output: {
6892
+ error: {
6893
+ type: string;
6894
+ };
6895
+ };
6896
+ outputFormat: "json";
6897
+ status: 409;
6898
+ };
6899
+ }>;
6900
+ };
6901
+ };
6902
+ };
6903
+ } & {
6904
+ v1: {
6905
+ "task-schedules": {
6906
+ shared: {
6907
+ account: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/account", {
6908
+ $get: {
6909
+ input: {};
6910
+ output: {
6911
+ account: string;
6912
+ tenant: string;
6913
+ };
6914
+ outputFormat: "json";
6915
+ status: import('hono/utils/http-status').ContentfulStatusCode;
6916
+ };
6917
+ }>;
6918
+ };
6919
+ };
6920
+ };
6921
+ } & {
6922
+ v1: {
6923
+ "task-schedules": {
6924
+ shared: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared", {
6925
+ $get: {
6926
+ input: {
6927
+ query: {
6928
+ limit?: string | string[];
6929
+ offset?: string | string[];
6930
+ };
6931
+ };
6932
+ output: {
6933
+ tasks: {
6934
+ definitionId: string;
6935
+ title: string;
6936
+ explicitTitle: string | null;
6937
+ message: string;
6938
+ role: "edit" | "use" | "owner";
6939
+ owner: string;
6940
+ ownerTenant: string;
6941
+ revision: number;
6942
+ timeExpression: string;
6943
+ timezone: string;
6944
+ recurrence: {
6945
+ intervalMinutes?: number | undefined;
6946
+ kind: string;
6947
+ };
6948
+ anchorAt: string;
6949
+ templateName: string | null;
6950
+ updatedAt: string;
6951
+ }[];
6952
+ nextOffset: number | null;
6953
+ };
6954
+ outputFormat: "json";
6955
+ status: import('hono/utils/http-status').ContentfulStatusCode;
6956
+ };
6957
+ }>;
6958
+ };
6959
+ };
6960
+ } & {
6961
+ v1: {
6962
+ "task-schedules": {
6963
+ shared: {
6964
+ accept: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/accept", {
6965
+ $post: {
6966
+ input: {
6967
+ json: {
6968
+ token: string;
6969
+ };
6970
+ };
6971
+ output: {
6972
+ error: {
6973
+ type: string;
6974
+ };
6975
+ };
6976
+ outputFormat: "json";
6977
+ status: 403 | 404 | 409 | 503;
6978
+ } | {
6979
+ input: {
6980
+ json: {
6981
+ token: string;
6982
+ };
6983
+ };
6984
+ output: {
6985
+ definitionId: string;
6986
+ };
6987
+ outputFormat: "json";
6988
+ status: import('hono/utils/http-status').ContentfulStatusCode;
6989
+ };
6990
+ }>;
6991
+ };
6992
+ };
6993
+ };
6994
+ } & {
6995
+ v1: {
6996
+ "task-schedules": {
6997
+ shared: {
6998
+ ":definitionId": import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId", {
6999
+ $get: {
7000
+ input: {
7001
+ param: {
7002
+ definitionId: string;
7003
+ };
7004
+ };
7005
+ output: {
7006
+ error: {
7007
+ type: string;
7008
+ };
7009
+ };
7010
+ outputFormat: "json";
7011
+ status: 403 | 404 | 409 | 503;
7012
+ } | {
7013
+ input: {
7014
+ param: {
7015
+ definitionId: string;
7016
+ };
7017
+ };
7018
+ output: {
7019
+ definitionId: string;
7020
+ title: string;
7021
+ explicitTitle: string | null;
7022
+ message: string;
7023
+ role: "edit" | "use" | "owner";
7024
+ owner: string;
7025
+ ownerTenant: string;
7026
+ revision: number;
7027
+ timeExpression: string;
7028
+ timezone: string;
7029
+ recurrence: {
7030
+ intervalMinutes?: number | undefined;
7031
+ kind: string;
7032
+ };
7033
+ anchorAt: string;
7034
+ templateName: string | null;
7035
+ updatedAt: string;
7036
+ };
7037
+ outputFormat: "json";
7038
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7039
+ };
7040
+ $patch: {
7041
+ input: {
7042
+ param: {
7043
+ definitionId: string;
7044
+ };
7045
+ } & {
7046
+ json: {
7047
+ expectedRevision: number;
7048
+ title?: string | null | undefined;
7049
+ message?: string | undefined;
7050
+ scheduledFor?: string | undefined;
7051
+ timeExpression?: string | undefined;
7052
+ timezone?: string | undefined;
7053
+ recurrence?: {
7054
+ kind: "none";
7055
+ } | {
7056
+ kind: "daily";
7057
+ } | {
7058
+ kind: "weekdays";
7059
+ } | {
7060
+ kind: "weekly";
7061
+ } | {
7062
+ kind: "manual";
7063
+ } | {
7064
+ kind: "interval";
7065
+ intervalMinutes: number;
7066
+ } | undefined;
7067
+ mode?: undefined;
7068
+ };
7069
+ };
7070
+ output: {
7071
+ error: {
7072
+ type: string;
7073
+ };
7074
+ };
7075
+ outputFormat: "json";
7076
+ status: 403 | 404 | 409 | 503;
7077
+ } | {
7078
+ input: {
7079
+ param: {
7080
+ definitionId: string;
7081
+ };
7082
+ } & {
7083
+ json: {
7084
+ expectedRevision: number;
7085
+ title?: string | null | undefined;
7086
+ message?: string | undefined;
7087
+ scheduledFor?: string | undefined;
7088
+ timeExpression?: string | undefined;
7089
+ timezone?: string | undefined;
7090
+ recurrence?: {
7091
+ kind: "none";
7092
+ } | {
7093
+ kind: "daily";
7094
+ } | {
7095
+ kind: "weekdays";
7096
+ } | {
7097
+ kind: "weekly";
7098
+ } | {
7099
+ kind: "manual";
7100
+ } | {
7101
+ kind: "interval";
7102
+ intervalMinutes: number;
7103
+ } | undefined;
7104
+ mode?: undefined;
7105
+ };
7106
+ };
7107
+ output: {
7108
+ status: string;
7109
+ revision: number;
7110
+ };
7111
+ outputFormat: "json";
7112
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7113
+ } | {
7114
+ input: {
7115
+ param: {
7116
+ definitionId: string;
7117
+ };
7118
+ } & {
7119
+ json: {
7120
+ expectedRevision: number;
7121
+ title?: string | null | undefined;
7122
+ message?: string | undefined;
7123
+ scheduledFor?: string | undefined;
7124
+ timeExpression?: string | undefined;
7125
+ timezone?: string | undefined;
7126
+ recurrence?: {
7127
+ kind: "none";
7128
+ } | {
7129
+ kind: "daily";
7130
+ } | {
7131
+ kind: "weekdays";
7132
+ } | {
7133
+ kind: "weekly";
7134
+ } | {
7135
+ kind: "manual";
7136
+ } | {
7137
+ kind: "interval";
7138
+ intervalMinutes: number;
7139
+ } | undefined;
7140
+ mode?: undefined;
7141
+ };
7142
+ };
7143
+ output: {
7144
+ error: {
7145
+ type: "scheduled_time_in_past" | "scheduled_time_too_far";
7146
+ };
7147
+ };
7148
+ outputFormat: "json";
7149
+ status: 400;
7150
+ };
7151
+ }>;
7152
+ };
7153
+ };
7154
+ };
7155
+ } & {
7156
+ v1: {
7157
+ "task-schedules": {
7158
+ shared: {
7159
+ ":definitionId": {
7160
+ enable: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId/enable", {
7161
+ $post: {
7162
+ input: {
7163
+ param: {
7164
+ definitionId: string;
7165
+ };
7166
+ } & {
7167
+ query: {
7168
+ workspaceExternalId?: string | string[];
7169
+ };
7170
+ };
7171
+ output: {
7172
+ error: {
7173
+ type: string;
7174
+ };
7175
+ };
7176
+ outputFormat: "json";
7177
+ status: 403 | 404 | 409 | 503;
7178
+ } | {
7179
+ input: {
7180
+ param: {
7181
+ definitionId: string;
7182
+ };
7183
+ } & {
7184
+ query: {
7185
+ workspaceExternalId?: string | string[];
7186
+ };
7187
+ };
7188
+ output: {
7189
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
7190
+ };
7191
+ outputFormat: "json";
7192
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7193
+ };
7194
+ }>;
7195
+ };
7196
+ };
7197
+ };
7198
+ };
7199
+ } & {
7200
+ v1: {
7201
+ "task-schedules": {
7202
+ shared: {
7203
+ ":definitionId": {
7204
+ invitations: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId/invitations", {
7205
+ $post: {
7206
+ input: {
7207
+ param: {
7208
+ definitionId: string;
7209
+ };
7210
+ } & {
7211
+ json: {
7212
+ role: "edit" | "use";
7213
+ };
7214
+ };
7215
+ output: {
7216
+ error: {
7217
+ type: string;
7218
+ };
7219
+ };
7220
+ outputFormat: "json";
7221
+ status: 403 | 404 | 409 | 503;
7222
+ } | {
7223
+ input: {
7224
+ param: {
7225
+ definitionId: string;
7226
+ };
7227
+ } & {
7228
+ json: {
7229
+ role: "edit" | "use";
7230
+ };
7231
+ };
7232
+ output: {
7233
+ invitationId: string;
7234
+ token: string;
7235
+ expiresAt: string;
7236
+ };
7237
+ outputFormat: "json";
7238
+ status: 201;
7239
+ };
7240
+ }>;
7241
+ };
7242
+ };
7243
+ };
7244
+ };
7245
+ } & {
7246
+ v1: {
7247
+ "task-schedules": {
7248
+ shared: {
7249
+ ":definitionId": {
7250
+ invitations: {
7251
+ ":invitationId": import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId/invitations/:invitationId", {
7252
+ $delete: {
7253
+ input: {
7254
+ param: {
7255
+ definitionId: string;
7256
+ invitationId: string;
7257
+ };
7258
+ };
7259
+ output: {
7260
+ error: {
7261
+ type: string;
7262
+ };
7263
+ };
7264
+ outputFormat: "json";
7265
+ status: 403 | 404 | 409 | 503;
7266
+ } | {
7267
+ input: {
7268
+ param: {
7269
+ definitionId: string;
7270
+ invitationId: string;
7271
+ };
7272
+ };
7273
+ output: {
7274
+ status: string;
7275
+ };
7276
+ outputFormat: "json";
7277
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7278
+ };
7279
+ }>;
7280
+ };
7281
+ };
7282
+ };
7283
+ };
7284
+ };
7285
+ } & {
7286
+ v1: {
7287
+ "task-schedules": {
7288
+ shared: {
7289
+ ":definitionId": {
7290
+ access: import('hono/client').ClientRequest<string, "/v1/task-schedules/shared/:definitionId/access", {
7291
+ $get: {
7292
+ input: {
7293
+ param: {
7294
+ definitionId: string;
7295
+ };
7296
+ };
7297
+ output: {
7298
+ error: {
7299
+ type: string;
7300
+ };
7301
+ };
7302
+ outputFormat: "json";
7303
+ status: 403 | 404 | 409 | 503;
7304
+ } | {
7305
+ input: {
7306
+ param: {
7307
+ definitionId: string;
7308
+ };
7309
+ };
7310
+ output: {
7311
+ people: {
7312
+ tenantId: string;
7313
+ userId: string;
7314
+ role: string;
7315
+ label: string;
7316
+ tenant: string;
7317
+ }[];
7318
+ invitations: {
7319
+ expiresAt: string;
7320
+ id: string;
7321
+ role: string;
7322
+ token: string | null;
7323
+ }[];
7324
+ };
7325
+ outputFormat: "json";
7326
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7327
+ };
7328
+ $patch: {
7329
+ input: {
7330
+ param: {
7331
+ definitionId: string;
7332
+ };
7333
+ } & {
7334
+ json: {
7335
+ recipientTenantId: string;
7336
+ recipientUserId: string;
7337
+ role: "edit" | "use";
7338
+ };
7339
+ };
7340
+ output: {
7341
+ error: {
7342
+ type: string;
7343
+ };
7344
+ };
7345
+ outputFormat: "json";
7346
+ status: 403 | 404 | 409 | 503;
7347
+ } | {
7348
+ input: {
7349
+ param: {
7350
+ definitionId: string;
7351
+ };
7352
+ } & {
7353
+ json: {
7354
+ recipientTenantId: string;
7355
+ recipientUserId: string;
7356
+ role: "edit" | "use";
7357
+ };
7358
+ };
7359
+ output: {
7360
+ status: string;
7361
+ };
7362
+ outputFormat: "json";
7363
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7364
+ };
7365
+ $delete: {
7366
+ input: {
7367
+ param: {
7368
+ definitionId: string;
7369
+ };
7370
+ } & {
7371
+ json: {
7372
+ recipientTenantId: string;
7373
+ recipientUserId: string;
7374
+ };
7375
+ };
7376
+ output: {
7377
+ error: {
7378
+ type: string;
7379
+ };
7380
+ };
7381
+ outputFormat: "json";
7382
+ status: 403 | 404 | 409 | 503;
7383
+ } | {
7384
+ input: {
7385
+ param: {
7386
+ definitionId: string;
7387
+ };
7388
+ } & {
7389
+ json: {
7390
+ recipientTenantId: string;
7391
+ recipientUserId: string;
7392
+ };
7393
+ };
7394
+ output: {
7395
+ status: string;
7396
+ };
7397
+ outputFormat: "json";
7398
+ status: import('hono/utils/http-status').ContentfulStatusCode;
7399
+ };
7400
+ }>;
7401
+ };
7402
+ };
7403
+ };
7404
+ };
7405
+ } & {
7406
+ v1: {
7407
+ "pre-prompts": import('hono/client').ClientRequest<string, "/v1/pre-prompts", {
7408
+ $get: {
7409
+ input: {
7410
+ query: {
7411
+ workspaceExternalId?: string | string[];
7412
+ limit?: string | string[];
7413
+ };
7414
+ };
7415
+ output: {
7416
+ prePrompts: {
7417
+ prePromptId: import('node_modules/@belong/cloud/src/platform/ids').PrePromptId;
7418
+ name: string;
7419
+ description: string;
5700
7420
  body: string;
5701
7421
  createdAt: string;
5702
7422
  }[];
@@ -5947,18 +7667,18 @@ export declare const createApiClient: (baseUrl: string) => {
5947
7667
  };
5948
7668
  };
5949
7669
  outputFormat: "json";
5950
- status: 400;
7670
+ status: 422;
5951
7671
  } | {
5952
7672
  input: {};
5953
7673
  output: {
5954
- userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
5955
- name: string;
5956
- revision: number;
5957
- outcome: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').SkillSaveOutcome;
5958
- hasScripts: boolean;
7674
+ error: {
7675
+ type: string;
7676
+ name: string;
7677
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7678
+ };
5959
7679
  };
5960
7680
  outputFormat: "json";
5961
- status: 200 | 201;
7681
+ status: 409;
5962
7682
  } | {
5963
7683
  input: {};
5964
7684
  output: {
@@ -5967,18 +7687,18 @@ export declare const createApiClient: (baseUrl: string) => {
5967
7687
  };
5968
7688
  };
5969
7689
  outputFormat: "json";
5970
- status: 422;
7690
+ status: 400;
5971
7691
  } | {
5972
7692
  input: {};
5973
7693
  output: {
5974
- error: {
5975
- type: string;
5976
- name: string;
5977
- userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
5978
- };
7694
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7695
+ name: string;
7696
+ revision: number;
7697
+ outcome: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').SkillSaveOutcome;
7698
+ hasScripts: boolean;
5979
7699
  };
5980
7700
  outputFormat: "json";
5981
- status: 409;
7701
+ status: 200 | 201;
5982
7702
  };
5983
7703
  }>;
5984
7704
  };
@@ -6098,6 +7818,219 @@ export declare const createApiClient: (baseUrl: string) => {
6098
7818
  };
6099
7819
  };
6100
7820
  };
7821
+ } & {
7822
+ v1: {
7823
+ "skill-library": {
7824
+ ":userSkillId": {
7825
+ content: import('hono/client').ClientRequest<string, "/v1/skill-library/:userSkillId/content", {
7826
+ $get: {
7827
+ input: {
7828
+ param: {
7829
+ userSkillId: string;
7830
+ };
7831
+ };
7832
+ output: {
7833
+ readonly error: {
7834
+ readonly type: "not_found";
7835
+ };
7836
+ };
7837
+ outputFormat: "json";
7838
+ status: 404;
7839
+ } | {
7840
+ input: {
7841
+ param: {
7842
+ userSkillId: string;
7843
+ };
7844
+ };
7845
+ output: {
7846
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7847
+ name: string;
7848
+ description: string;
7849
+ skillMd: string;
7850
+ revision: number;
7851
+ enabled: boolean;
7852
+ hasScripts: boolean;
7853
+ files: string[];
7854
+ };
7855
+ outputFormat: "json";
7856
+ status: 200;
7857
+ };
7858
+ $put: {
7859
+ input: {
7860
+ param: {
7861
+ userSkillId: string;
7862
+ };
7863
+ } & {
7864
+ json: {
7865
+ skillMd: string;
7866
+ expectedRevision: number;
7867
+ };
7868
+ };
7869
+ output: {
7870
+ readonly error: {
7871
+ readonly type: "missing_scope";
7872
+ readonly requiredScope: "session:write";
7873
+ };
7874
+ };
7875
+ outputFormat: "json";
7876
+ status: 403;
7877
+ } | {
7878
+ input: {
7879
+ param: {
7880
+ userSkillId: string;
7881
+ };
7882
+ } & {
7883
+ json: {
7884
+ skillMd: string;
7885
+ expectedRevision: number;
7886
+ };
7887
+ };
7888
+ output: {
7889
+ readonly error: {
7890
+ readonly type: "not_found";
7891
+ };
7892
+ };
7893
+ outputFormat: "json";
7894
+ status: 404;
7895
+ } | {
7896
+ input: {
7897
+ param: {
7898
+ userSkillId: string;
7899
+ };
7900
+ } & {
7901
+ json: {
7902
+ skillMd: string;
7903
+ expectedRevision: number;
7904
+ };
7905
+ };
7906
+ output: {
7907
+ readonly error: {
7908
+ readonly type: "archive_too_large";
7909
+ readonly maxArchiveBytes: 10485760;
7910
+ };
7911
+ };
7912
+ outputFormat: "json";
7913
+ status: 413;
7914
+ } | {
7915
+ input: {
7916
+ param: {
7917
+ userSkillId: string;
7918
+ };
7919
+ } & {
7920
+ json: {
7921
+ skillMd: string;
7922
+ expectedRevision: number;
7923
+ };
7924
+ };
7925
+ output: {
7926
+ error: {
7927
+ type: string;
7928
+ reason: import('node_modules/@belong/cloud/src/features/skill-library/skill-archive').SkillArchiveRejectionType;
7929
+ };
7930
+ };
7931
+ outputFormat: "json";
7932
+ status: 422;
7933
+ } | {
7934
+ input: {
7935
+ param: {
7936
+ userSkillId: string;
7937
+ };
7938
+ } & {
7939
+ json: {
7940
+ skillMd: string;
7941
+ expectedRevision: number;
7942
+ };
7943
+ };
7944
+ output: {
7945
+ error: {
7946
+ type: string;
7947
+ name: string;
7948
+ reservedBy: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').NameReservedBy;
7949
+ };
7950
+ };
7951
+ outputFormat: "json";
7952
+ status: 422;
7953
+ } | {
7954
+ input: {
7955
+ param: {
7956
+ userSkillId: string;
7957
+ };
7958
+ } & {
7959
+ json: {
7960
+ skillMd: string;
7961
+ expectedRevision: number;
7962
+ };
7963
+ };
7964
+ output: {
7965
+ error: {
7966
+ type: string;
7967
+ };
7968
+ };
7969
+ outputFormat: "json";
7970
+ status: 422;
7971
+ } | {
7972
+ input: {
7973
+ param: {
7974
+ userSkillId: string;
7975
+ };
7976
+ } & {
7977
+ json: {
7978
+ skillMd: string;
7979
+ expectedRevision: number;
7980
+ };
7981
+ };
7982
+ output: {
7983
+ error: {
7984
+ type: string;
7985
+ name: string;
7986
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7987
+ };
7988
+ };
7989
+ outputFormat: "json";
7990
+ status: 409;
7991
+ } | {
7992
+ input: {
7993
+ param: {
7994
+ userSkillId: string;
7995
+ };
7996
+ } & {
7997
+ json: {
7998
+ skillMd: string;
7999
+ expectedRevision: number;
8000
+ };
8001
+ };
8002
+ output: {
8003
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
8004
+ name: string;
8005
+ revision: number;
8006
+ outcome: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').SkillContentOutcome;
8007
+ };
8008
+ outputFormat: "json";
8009
+ status: 200;
8010
+ } | {
8011
+ input: {
8012
+ param: {
8013
+ userSkillId: string;
8014
+ };
8015
+ } & {
8016
+ json: {
8017
+ skillMd: string;
8018
+ expectedRevision: number;
8019
+ };
8020
+ };
8021
+ output: {
8022
+ error: {
8023
+ type: string;
8024
+ revision: number;
8025
+ };
8026
+ };
8027
+ outputFormat: "json";
8028
+ status: 409;
8029
+ };
8030
+ }>;
8031
+ };
8032
+ };
8033
+ };
6101
8034
  } & {
6102
8035
  v1: {
6103
8036
  connectors: import('hono/client').ClientRequest<string, "/v1/connectors", {
@@ -7027,12 +8960,12 @@ export declare const createApiClient: (baseUrl: string) => {
7027
8960
  capabilities: {
7028
8961
  id: string;
7029
8962
  label: string;
7030
- status: "error" | "needs_auth" | "ready" | "needs_admin_consent" | "disabled";
8963
+ status: "error" | "needs_auth" | "ready" | "disabled" | "needs_admin_consent";
7031
8964
  }[];
7032
8965
  actions: {
7033
8966
  id: string;
7034
8967
  kind: "authorization" | "disconnect";
7035
- label: "reconnect" | "disconnect" | "connect" | "grant_admin_consent";
8968
+ label: "reconnect" | "connect" | "disconnect" | "grant_admin_consent";
7036
8969
  tone: "primary" | "destructive" | "secondary";
7037
8970
  requiresConfirmation: boolean;
7038
8971
  }[];
@@ -7821,3 +9754,4 @@ export declare const createApiClient: (baseUrl: string) => {
7821
9754
  };
7822
9755
  };
7823
9756
  };
9757
+ export {};