@belonguniverseai/react-sdk 0.1.6 → 0.1.8

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 (100) hide show
  1. package/README.md +1 -1
  2. package/dist/api/agent-grants.d.ts +18 -23
  3. package/dist/api/client.d.ts +1049 -30
  4. package/dist/api/query-keys.d.ts +5 -0
  5. package/dist/api/task-schedules.d.ts +313 -0
  6. package/dist/app/dock-outlet.d.ts +18 -0
  7. package/dist/component/{arc-CTDwT0LX.js → arc-BZj9pfle.js} +2 -2
  8. package/dist/component/{architectureDiagram-3BPJPVTR-osyB2zKw.js → architectureDiagram-3BPJPVTR-DYVPejo6.js} +3 -3
  9. package/dist/component/{blockDiagram-GPEHLZMM-ChWpzkC_.js → blockDiagram-GPEHLZMM-Cqht4SXD.js} +4 -4
  10. package/dist/component/{c4Diagram-AAUBKEIU-TBt2Sr1T.js → c4Diagram-AAUBKEIU-Dw8BtNVv.js} +3 -3
  11. package/dist/component/{channel-DKYVGzgk.js → channel-BcdBKo26.js} +2 -2
  12. package/dist/component/{chunk-2J33WTMH-D-qMyfG9.js → chunk-2J33WTMH-j6gfAyGs.js} +2 -2
  13. package/dist/component/{chunk-4BX2VUAB-BYTeOCro.js → chunk-4BX2VUAB-DiX7q4eX.js} +2 -2
  14. package/dist/component/{chunk-55IACEB6-CkLaQSjG.js → chunk-55IACEB6-CgTvaBsI.js} +2 -2
  15. package/dist/component/{chunk-727SXJPM-CzkWgEIS.js → chunk-727SXJPM-Bfq_QRBE.js} +6 -6
  16. package/dist/component/{chunk-AQP2D5EJ-d-zIc-67.js → chunk-AQP2D5EJ-ClrornzZ.js} +4 -4
  17. package/dist/component/{chunk-FMBD7UC4-amGyEMTp.js → chunk-FMBD7UC4-WZfa6aDS.js} +2 -2
  18. package/dist/component/{chunk-ND2GUHAM-DjPCor9N.js → chunk-ND2GUHAM-Cto8_209.js} +2 -2
  19. package/dist/component/{chunk-QZHKN3VN-B0LrqJFz.js → chunk-QZHKN3VN-CM6Lx0p-.js} +2 -2
  20. package/dist/component/{classDiagram-4FO5ZUOK-BLW37dmc.js → classDiagram-4FO5ZUOK-BdDf650t.js} +3 -3
  21. package/dist/component/{classDiagram-v2-Q7XG4LA2-BLW37dmc.js → classDiagram-v2-Q7XG4LA2-BdDf650t.js} +3 -3
  22. package/dist/component/{cose-bilkent-S5V4N54A-BrAZZB3S.js → cose-bilkent-S5V4N54A-BTkoGwqd.js} +2 -2
  23. package/dist/component/{dagre-BM42HDAG-lt_pmFeQ.js → dagre-BM42HDAG-Cm9Q4GTR.js} +2 -2
  24. package/dist/component/{diagram-2AECGRRQ-DfMdC1rS.js → diagram-2AECGRRQ-BG7WS0_C.js} +3 -3
  25. package/dist/component/{diagram-5GNKFQAL-CORXCu1y.js → diagram-5GNKFQAL-bAlneREF.js} +4 -4
  26. package/dist/component/{diagram-KO2AKTUF-Dt8oiVky.js → diagram-KO2AKTUF-By1LuXMT.js} +3 -3
  27. package/dist/component/{diagram-LMA3HP47-Bu-XSRd6.js → diagram-LMA3HP47-COR5m3x6.js} +3 -3
  28. package/dist/component/{diagram-OG6HWLK6-DiOgJz8h.js → diagram-OG6HWLK6-hxRK9G9i.js} +4 -4
  29. package/dist/component/dock-error-boundary.d.ts +16 -0
  30. package/dist/component/{erDiagram-TEJ5UH35-DSrXX--n.js → erDiagram-TEJ5UH35-8VyxgLye.js} +5 -5
  31. package/dist/component/{flowDiagram-I6XJVG4X-D1E_ZfMU.js → flowDiagram-I6XJVG4X-GL0-g_NL.js} +7 -7
  32. package/dist/component/{ganttDiagram-6RSMTGT7-BzGCGwAi.js → ganttDiagram-6RSMTGT7-CY-pvQs9.js} +3 -3
  33. package/dist/component/{gitGraphDiagram-PVQCEYII-C6qUOG7K.js → gitGraphDiagram-PVQCEYII-C-banevz.js} +4 -4
  34. package/dist/component/{highlighted-body-OFNGDK62-D1SvZ8C_.js → highlighted-body-OFNGDK62-DoKWOEyS.js} +2 -2
  35. package/dist/component/index-Dips44uG.js +2208 -0
  36. package/dist/component/index.js +2 -2
  37. package/dist/component/{infoDiagram-5YYISTIA-D0l96um1.js → infoDiagram-5YYISTIA-BxrYTrgH.js} +2 -2
  38. package/dist/component/{ishikawaDiagram-YF4QCWOH-BDHAOBaC.js → ishikawaDiagram-YF4QCWOH-D_ZdaanN.js} +2 -2
  39. package/dist/component/{journeyDiagram-JHISSGLW-BtN73bIc.js → journeyDiagram-JHISSGLW-CJUxH22Z.js} +5 -5
  40. package/dist/component/{kanban-definition-UN3LZRKU-Dll6IAhM.js → kanban-definition-UN3LZRKU-BYcx0C0k.js} +3 -3
  41. package/dist/component/{linear-ChreRr3h.js → linear-DXA6Ni38.js} +2 -2
  42. package/dist/component/{mermaid-GHXKKRXX-C0Oq2bpl.js → mermaid-GHXKKRXX-BP0EPCnA.js} +36000 -32444
  43. package/dist/component/{mindmap-definition-RKZ34NQL-DC9K87bN.js → mindmap-definition-RKZ34NQL-DnvW0LPZ.js} +4 -4
  44. package/dist/component/{pieDiagram-4H26LBE5-BNGHaTmE.js → pieDiagram-4H26LBE5-DA_l8HVF.js} +4 -4
  45. package/dist/component/{quadrantDiagram-W4KKPZXB-D23AXzE2.js → quadrantDiagram-W4KKPZXB-CJH3QV2I.js} +3 -3
  46. package/dist/component/{requirementDiagram-4Y6WPE33-DRe6Bcy7.js → requirementDiagram-4Y6WPE33-RQu1NwhU.js} +4 -4
  47. package/dist/component/{sankeyDiagram-5OEKKPKP-Ca--29t-.js → sankeyDiagram-5OEKKPKP-DaQ-xlau.js} +2 -2
  48. package/dist/component/{sequenceDiagram-3UESZ5HK-Cv6WVN5T.js → sequenceDiagram-3UESZ5HK-DVuPvNoe.js} +4 -4
  49. package/dist/component/{stateDiagram-AJRCARHV-Ba_3WUjf.js → stateDiagram-AJRCARHV-CUhrYhQ-.js} +3 -3
  50. package/dist/component/{stateDiagram-v2-BHNVJYJU-C8G1MQa8.js → stateDiagram-v2-BHNVJYJU-DJwdiVQa.js} +3 -3
  51. package/dist/component/{timeline-definition-PNZ67QCA-Bfh6fz9g.js → timeline-definition-PNZ67QCA-vxoNetpl.js} +3 -3
  52. package/dist/component/{vennDiagram-CIIHVFJN-D1U-PuFV.js → vennDiagram-CIIHVFJN-B23Eo4r8.js} +2 -2
  53. package/dist/component/{wardleyDiagram-YWT4CUSO-DTwXmrGn.js → wardleyDiagram-YWT4CUSO-CHPIaRL_.js} +3 -3
  54. package/dist/component/{xychartDiagram-2RQKCTM6-Dy8C7cbo.js → xychartDiagram-2RQKCTM6-gaiGaKCA.js} +3 -3
  55. package/dist/components/embed/AgentGrantAutoConnect.d.ts +1 -0
  56. package/dist/components/embed/CapabilityHints.d.ts +4 -1
  57. package/dist/components/embed/EmbedConversation.d.ts +11 -11
  58. package/dist/components/embed/EmbedRail.d.ts +1 -1
  59. package/dist/components/embed/FilePreview.d.ts +7 -2
  60. package/dist/components/embed/FilePreviewDialog.d.ts +6 -2
  61. package/dist/components/embed/HtmlPreviewFrame.d.ts +7 -0
  62. package/dist/components/embed/MentionInput.d.ts +8 -1
  63. package/dist/components/embed/PreviewContent.d.ts +9 -21
  64. package/dist/components/embed/WelcomeIntro.d.ts +5 -3
  65. package/dist/components/embed/WelcomeSkills.d.ts +7 -0
  66. package/dist/components/embed/file-preview-kind.d.ts +7 -3
  67. package/dist/components/embed/onboarding-story-dock.d.ts +5 -2
  68. package/dist/components/embed/preview-content-kind.d.ts +5 -7
  69. package/dist/components/embed/use-inline-preview-url.d.ts +20 -0
  70. package/dist/components/scheduled/ConfirmDeleteScheduleDialog.d.ts +7 -0
  71. package/dist/components/scheduled/ScheduleDialog.d.ts +13 -0
  72. package/dist/components/scheduled/ScheduledDetailSurface.d.ts +8 -0
  73. package/dist/components/scheduled/ScheduledListSurface.d.ts +7 -0
  74. package/dist/components/scheduled/TimezoneCombobox.d.ts +7 -0
  75. package/dist/components/scheduled/schedule-dialog-model.d.ts +11 -0
  76. package/dist/components/scheduled/schedule-format.d.ts +38 -0
  77. package/dist/components/ui/button.d.ts +3 -2
  78. package/dist/embed/agent-grant-refresh.d.ts +7 -7
  79. package/dist/embed/composer-submit.d.ts +7 -0
  80. package/dist/embed/copy.d.ts +92 -15
  81. package/dist/embed/dock-state.d.ts +1 -1
  82. package/dist/embed/slash-commands.d.ts +20 -6
  83. package/dist/embed/task-schedule-command.d.ts +32 -0
  84. package/dist/embed/task-schedule-store.d.ts +29 -0
  85. package/dist/embed/theme-preview-params.d.ts +2 -0
  86. package/dist/embed/voice-narration.d.ts +15 -0
  87. package/dist/i18n/messages/en.d.ts +106 -22
  88. package/dist/i18n/messages/surfaces/embedMisc.d.ts +0 -12
  89. package/dist/i18n/messages/surfaces/header.d.ts +9 -0
  90. package/dist/i18n/messages/surfaces/scheduled.d.ts +253 -0
  91. package/dist/lib/use-debounced-value.d.ts +2 -0
  92. package/dist/lib/use-effect-event.d.ts +13 -0
  93. package/dist/routes/chat.d.ts +3 -2
  94. package/dist/routes/scheduled-detail.d.ts +2 -0
  95. package/dist/routes/scheduled.d.ts +2 -0
  96. package/dist/stream/stream-state-store.d.ts +9 -0
  97. package/dist/types/public.d.ts +44 -9
  98. package/package.json +3 -3
  99. package/dist/components/embed/AgentGrantCard.d.ts +0 -27
  100. package/dist/i18n/messages/surfaces/agentGrant.d.ts +0 -58
@@ -19,6 +19,10 @@ export declare const setBelongTokenProvider: (provider: () => string | null) =>
19
19
  export declare const setBelongTokenGetter: (getter: (() => Promise<string>) | null) => void;
20
20
  /** Register the host agent id sent as `X-Belong-Agent-Id` on every request. */
21
21
  export declare const setBelongAgentId: (agentId: string | null) => void;
22
+ /** Register the tenant slug sent as `X-Belong-Tenant` on every request. */
23
+ export declare const setBelongTenant: (tenant: string | null) => void;
24
+ /** Read the public tenant slug without exposing mutable client state. */
25
+ export declare const peekBelongTenant: () => string | null;
22
26
  /**
23
27
  * Register the async token refresher (auth0-refresh.ts). Pass null to clear.
24
28
  * Awaited by `ensureFreshBelongToken` / `forceRotateBelongToken`.
@@ -103,11 +107,28 @@ export declare const createApiClient: (baseUrl: string) => {
103
107
  "app-simetrik-com-hawk.yml": import('hono/client').ClientRequest<string, "/app-simetrik-com-hawk.yml", {
104
108
  $get: {
105
109
  input: {};
106
- output: string;
107
- outputFormat: "text";
108
- status: 200;
110
+ output: {};
111
+ outputFormat: string;
112
+ status: import('hono/utils/http-status').StatusCode;
109
113
  };
110
114
  }>;
115
+ } & {
116
+ ".well-known": {
117
+ "belong-identity-keys.json": import('hono/client').ClientRequest<string, "/.well-known/belong-identity-keys.json", {
118
+ $get: {
119
+ input: {};
120
+ output: {
121
+ keys: readonly {
122
+ readonly kid: string;
123
+ readonly alg: "Ed25519";
124
+ readonly publicKey: string;
125
+ }[];
126
+ };
127
+ outputFormat: "json";
128
+ status: 200;
129
+ };
130
+ }>;
131
+ };
111
132
  } & {
112
133
  api: {
113
134
  health: {
@@ -153,11 +174,28 @@ export declare const createApiClient: (baseUrl: string) => {
153
174
  "app-simetrik-com-hawk.yml": import('hono/client').ClientRequest<string, "/app-simetrik-com-hawk.yml", {
154
175
  $get: {
155
176
  input: {};
156
- output: string;
157
- outputFormat: "text";
158
- status: 200;
177
+ output: {};
178
+ outputFormat: string;
179
+ status: import('hono/utils/http-status').StatusCode;
159
180
  };
160
181
  }>;
182
+ } & {
183
+ ".well-known": {
184
+ "belong-identity-keys.json": import('hono/client').ClientRequest<string, "/.well-known/belong-identity-keys.json", {
185
+ $get: {
186
+ input: {};
187
+ output: {
188
+ keys: readonly {
189
+ readonly kid: string;
190
+ readonly alg: "Ed25519";
191
+ readonly publicKey: string;
192
+ }[];
193
+ };
194
+ outputFormat: "json";
195
+ status: 200;
196
+ };
197
+ }>;
198
+ };
161
199
  } & {
162
200
  api: {
163
201
  health: {
@@ -400,6 +438,7 @@ export declare const createApiClient: (baseUrl: string) => {
400
438
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
401
439
  llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
402
440
  llmModel?: string | undefined;
441
+ timezone?: string | undefined;
403
442
  workspaceExternalId?: string | undefined;
404
443
  };
405
444
  } & {
@@ -426,6 +465,7 @@ export declare const createApiClient: (baseUrl: string) => {
426
465
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
427
466
  llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
428
467
  llmModel?: string | undefined;
468
+ timezone?: string | undefined;
429
469
  workspaceExternalId?: string | undefined;
430
470
  };
431
471
  } & {
@@ -451,6 +491,7 @@ export declare const createApiClient: (baseUrl: string) => {
451
491
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
452
492
  llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
453
493
  llmModel?: string | undefined;
494
+ timezone?: string | undefined;
454
495
  workspaceExternalId?: string | undefined;
455
496
  };
456
497
  } & {
@@ -476,6 +517,7 @@ export declare const createApiClient: (baseUrl: string) => {
476
517
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
477
518
  llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
478
519
  llmModel?: string | undefined;
520
+ timezone?: string | undefined;
479
521
  workspaceExternalId?: string | undefined;
480
522
  };
481
523
  } & {
@@ -1144,6 +1186,51 @@ export declare const createApiClient: (baseUrl: string) => {
1144
1186
  };
1145
1187
  }>;
1146
1188
  };
1189
+ } & {
1190
+ v1: {
1191
+ previews: {
1192
+ mint: import('hono/client').ClientRequest<string, "/v1/previews/mint", {
1193
+ $post: {
1194
+ input: {
1195
+ json: {
1196
+ target: {
1197
+ kind: "artifact";
1198
+ artifactId: string;
1199
+ } | {
1200
+ kind: "file";
1201
+ fileId: string;
1202
+ } | {
1203
+ kind: "workspace";
1204
+ path: string;
1205
+ workspaceExternalId: string | null;
1206
+ };
1207
+ };
1208
+ };
1209
+ output: {
1210
+ url: string;
1211
+ expiresAt: string;
1212
+ };
1213
+ outputFormat: "json";
1214
+ status: 201;
1215
+ };
1216
+ }>;
1217
+ };
1218
+ };
1219
+ } & {
1220
+ previews: {
1221
+ ":token": import('hono/client').ClientRequest<string, "/previews/:token", {
1222
+ $get: {
1223
+ input: {
1224
+ param: {
1225
+ token: string;
1226
+ };
1227
+ };
1228
+ output: {};
1229
+ outputFormat: string;
1230
+ status: import('hono/utils/http-status').StatusCode;
1231
+ };
1232
+ }>;
1233
+ };
1147
1234
  } & {
1148
1235
  v1: {
1149
1236
  voice: {
@@ -2247,55 +2334,271 @@ export declare const createApiClient: (baseUrl: string) => {
2247
2334
  } & {
2248
2335
  v1: {
2249
2336
  identity: {
2250
- verify: import('hono/client').ClientRequest<string, "/v1/identity/verify", {
2337
+ "login-codes": import('hono/client').ClientRequest<string, "/v1/identity/login-codes", {
2251
2338
  $post: {
2252
2339
  input: {
2253
2340
  json: {
2254
2341
  [x: string]: unknown;
2255
- version: 1;
2256
- company: string;
2257
- agent: {
2258
- name: string;
2259
- id: string;
2260
- };
2261
- issued_to: string;
2262
- issued_at: string;
2263
- access: ("cli" | "mcp")[];
2264
- signature: string;
2265
- mode?: "dev" | undefined;
2342
+ };
2343
+ };
2344
+ output: {
2345
+ readonly userCode: string;
2346
+ readonly deviceCode: string;
2347
+ readonly verificationUrl: string;
2348
+ readonly expiresAt: string;
2349
+ readonly pollIntervalMs: number;
2350
+ };
2351
+ outputFormat: "json";
2352
+ status: 201;
2353
+ } | {
2354
+ input: {
2355
+ json: {
2356
+ [x: string]: unknown;
2266
2357
  };
2267
2358
  };
2268
2359
  output: {
2269
2360
  error: string;
2270
2361
  };
2271
2362
  outputFormat: "json";
2272
- status: 500;
2363
+ status: 503;
2273
2364
  } | {
2274
2365
  input: {
2275
2366
  json: {
2276
2367
  [x: string]: unknown;
2277
- version: 1;
2278
- company: string;
2279
- agent: {
2280
- name: string;
2281
- id: string;
2368
+ };
2369
+ };
2370
+ output: {
2371
+ error: string;
2372
+ };
2373
+ outputFormat: "json";
2374
+ status: 409;
2375
+ };
2376
+ }>;
2377
+ };
2378
+ };
2379
+ } & {
2380
+ v1: {
2381
+ identity: {
2382
+ poll: import('hono/client').ClientRequest<string, "/v1/identity/poll", {
2383
+ $post: {
2384
+ input: {
2385
+ json: {
2386
+ deviceCode: string;
2387
+ };
2388
+ };
2389
+ output: {
2390
+ status: string;
2391
+ };
2392
+ outputFormat: "json";
2393
+ status: 404;
2394
+ } | {
2395
+ input: {
2396
+ json: {
2397
+ deviceCode: string;
2398
+ };
2399
+ };
2400
+ output: {
2401
+ status: "pending" | "approved" | "claimed";
2402
+ };
2403
+ outputFormat: "json";
2404
+ status: 200;
2405
+ };
2406
+ }>;
2407
+ };
2408
+ };
2409
+ } & {
2410
+ v1: {
2411
+ identity: {
2412
+ claim: import('hono/client').ClientRequest<string, "/v1/identity/claim", {
2413
+ $post: {
2414
+ input: {
2415
+ json: {
2416
+ deviceCode: string;
2417
+ };
2418
+ };
2419
+ output: {
2420
+ identity: import('hono/utils/types').JSONValue;
2421
+ };
2422
+ outputFormat: "json";
2423
+ status: 200;
2424
+ } | {
2425
+ input: {
2426
+ json: {
2427
+ deviceCode: string;
2428
+ };
2429
+ };
2430
+ output: {
2431
+ status: string;
2432
+ };
2433
+ outputFormat: "json";
2434
+ status: 409;
2435
+ } | {
2436
+ input: {
2437
+ json: {
2438
+ deviceCode: string;
2439
+ };
2440
+ };
2441
+ output: {
2442
+ status: string;
2443
+ };
2444
+ outputFormat: "json";
2445
+ status: 404;
2446
+ };
2447
+ }>;
2448
+ };
2449
+ };
2450
+ } & {
2451
+ v1: {
2452
+ identity: {
2453
+ "login-codes": {
2454
+ ":userCode": {
2455
+ approve: import('hono/client').ClientRequest<string, "/v1/identity/login-codes/:userCode/approve", {
2456
+ $post: {
2457
+ input: {
2458
+ json: {
2459
+ company: string;
2460
+ email: string;
2461
+ };
2462
+ } & {
2463
+ param: {
2464
+ userCode: string;
2465
+ };
2466
+ };
2467
+ output: {
2468
+ ok: true;
2469
+ agentId: string;
2470
+ };
2471
+ outputFormat: "json";
2472
+ status: 200;
2473
+ } | {
2474
+ input: {
2475
+ json: {
2476
+ company: string;
2477
+ email: string;
2478
+ };
2479
+ } & {
2480
+ param: {
2481
+ userCode: string;
2482
+ };
2483
+ };
2484
+ output: {
2485
+ error: string;
2486
+ };
2487
+ outputFormat: "json";
2488
+ status: 503;
2489
+ } | {
2490
+ input: {
2491
+ json: {
2492
+ company: string;
2493
+ email: string;
2494
+ };
2495
+ } & {
2496
+ param: {
2497
+ userCode: string;
2498
+ };
2282
2499
  };
2283
- issued_to: string;
2284
- issued_at: string;
2285
- access: ("cli" | "mcp")[];
2286
- signature: string;
2287
- mode?: "dev" | undefined;
2500
+ output: {
2501
+ error: string;
2502
+ };
2503
+ outputFormat: "json";
2504
+ status: 409;
2505
+ } | {
2506
+ input: {
2507
+ json: {
2508
+ company: string;
2509
+ email: string;
2510
+ };
2511
+ } & {
2512
+ param: {
2513
+ userCode: string;
2514
+ };
2515
+ };
2516
+ output: {
2517
+ error: string;
2518
+ };
2519
+ outputFormat: "json";
2520
+ status: 404;
2288
2521
  };
2522
+ }>;
2523
+ };
2524
+ };
2525
+ };
2526
+ };
2527
+ } & {
2528
+ v1: {
2529
+ identity: {
2530
+ verify: import('hono/client').ClientRequest<string, "/v1/identity/verify", {
2531
+ $post: {
2532
+ input: {
2533
+ json?: unknown;
2289
2534
  };
2290
2535
  output: {
2291
2536
  readonly valid: boolean;
2292
- readonly mode: "dev";
2537
+ readonly mode: "dev" | "issued";
2293
2538
  readonly agentId: string;
2294
2539
  readonly company: string;
2540
+ readonly revoked: boolean;
2295
2541
  readonly errors: readonly string[];
2542
+ readonly warnings: readonly string[];
2543
+ };
2544
+ outputFormat: "json";
2545
+ status: 200;
2546
+ };
2547
+ }>;
2548
+ };
2549
+ };
2550
+ } & {
2551
+ v1: {
2552
+ identity: {
2553
+ revoke: import('hono/client').ClientRequest<string, "/v1/identity/revoke", {
2554
+ $post: {
2555
+ input: {
2556
+ json: {
2557
+ agentId: string;
2558
+ reason?: string | undefined;
2559
+ };
2560
+ };
2561
+ output: {
2562
+ error: string;
2563
+ };
2564
+ outputFormat: "json";
2565
+ status: 503;
2566
+ } | {
2567
+ input: {
2568
+ json: {
2569
+ agentId: string;
2570
+ reason?: string | undefined;
2571
+ };
2572
+ };
2573
+ output: {
2574
+ error: string;
2575
+ };
2576
+ outputFormat: "json";
2577
+ status: 401;
2578
+ } | {
2579
+ input: {
2580
+ json: {
2581
+ agentId: string;
2582
+ reason?: string | undefined;
2583
+ };
2584
+ };
2585
+ output: {
2586
+ ok: true;
2296
2587
  };
2297
2588
  outputFormat: "json";
2298
2589
  status: 200;
2590
+ } | {
2591
+ input: {
2592
+ json: {
2593
+ agentId: string;
2594
+ reason?: string | undefined;
2595
+ };
2596
+ };
2597
+ output: {
2598
+ error: string;
2599
+ };
2600
+ outputFormat: "json";
2601
+ status: 404;
2299
2602
  };
2300
2603
  }>;
2301
2604
  };
@@ -2562,4 +2865,720 @@ export declare const createApiClient: (baseUrl: string) => {
2562
2865
  };
2563
2866
  };
2564
2867
  };
2868
+ } & {
2869
+ v1: {
2870
+ "task-schedules": import('hono/client').ClientRequest<string, "/v1/task-schedules", {
2871
+ $post: {
2872
+ input: {
2873
+ json: {
2874
+ scheduledFor: string;
2875
+ timeExpression: string;
2876
+ timezone: string;
2877
+ message: string;
2878
+ clientScheduleId: string;
2879
+ title?: string | undefined;
2880
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
2881
+ recurrence?: {
2882
+ kind: "none" | "daily" | "weekdays" | "weekly";
2883
+ } | undefined;
2884
+ originatingSessionId?: string | undefined;
2885
+ workspaceExternalId?: string | undefined;
2886
+ runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
2887
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
2888
+ llmModel?: string | undefined;
2889
+ };
2890
+ };
2891
+ output: {
2892
+ error: {
2893
+ type: string;
2894
+ requiredScope: string;
2895
+ };
2896
+ };
2897
+ outputFormat: "json";
2898
+ status: 403;
2899
+ } | {
2900
+ input: {
2901
+ json: {
2902
+ scheduledFor: string;
2903
+ timeExpression: string;
2904
+ timezone: string;
2905
+ message: string;
2906
+ clientScheduleId: string;
2907
+ title?: string | undefined;
2908
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
2909
+ recurrence?: {
2910
+ kind: "none" | "daily" | "weekdays" | "weekly";
2911
+ } | undefined;
2912
+ originatingSessionId?: string | undefined;
2913
+ workspaceExternalId?: string | undefined;
2914
+ runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
2915
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
2916
+ llmModel?: string | undefined;
2917
+ };
2918
+ };
2919
+ output: {
2920
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
2921
+ status: "scheduled" | "completed" | "failed" | "running";
2922
+ scheduledFor: string;
2923
+ seriesStatus: "active" | "completed" | "paused" | "deleted";
2924
+ recurrence: {
2925
+ kind: "none" | "daily" | "weekdays" | "weekly";
2926
+ };
2927
+ nextRunAt: string | null;
2928
+ title: string;
2929
+ };
2930
+ outputFormat: "json";
2931
+ status: 200 | 201;
2932
+ } | {
2933
+ input: {
2934
+ json: {
2935
+ scheduledFor: string;
2936
+ timeExpression: string;
2937
+ timezone: string;
2938
+ message: string;
2939
+ clientScheduleId: string;
2940
+ title?: string | undefined;
2941
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
2942
+ recurrence?: {
2943
+ kind: "none" | "daily" | "weekdays" | "weekly";
2944
+ } | undefined;
2945
+ originatingSessionId?: string | undefined;
2946
+ workspaceExternalId?: string | undefined;
2947
+ runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
2948
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
2949
+ llmModel?: string | undefined;
2950
+ };
2951
+ };
2952
+ output: {
2953
+ error: {
2954
+ type: string;
2955
+ };
2956
+ };
2957
+ outputFormat: "json";
2958
+ status: 422;
2959
+ } | {
2960
+ input: {
2961
+ json: {
2962
+ scheduledFor: string;
2963
+ timeExpression: string;
2964
+ timezone: string;
2965
+ message: string;
2966
+ clientScheduleId: string;
2967
+ title?: string | undefined;
2968
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
2969
+ recurrence?: {
2970
+ kind: "none" | "daily" | "weekdays" | "weekly";
2971
+ } | undefined;
2972
+ originatingSessionId?: string | undefined;
2973
+ workspaceExternalId?: string | undefined;
2974
+ runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
2975
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
2976
+ llmModel?: string | undefined;
2977
+ };
2978
+ };
2979
+ output: {
2980
+ error: {
2981
+ type: string;
2982
+ maxPendingSchedules: number;
2983
+ };
2984
+ };
2985
+ outputFormat: "json";
2986
+ status: 409;
2987
+ };
2988
+ $get: {
2989
+ input: {
2990
+ query: {
2991
+ filter?: string | string[];
2992
+ q?: string | string[];
2993
+ workspaceExternalId?: string | string[];
2994
+ limit?: string | string[];
2995
+ offset?: string | string[];
2996
+ };
2997
+ };
2998
+ output: {
2999
+ taskSchedules: {
3000
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
3001
+ title: string;
3002
+ status: "active" | "completed" | "paused" | "deleted";
3003
+ recurrence: {
3004
+ kind: "none" | "daily" | "weekdays" | "weekly";
3005
+ };
3006
+ timezone: string;
3007
+ nextRunAt: string | null;
3008
+ lastRun: {
3009
+ status: "completed" | "failed" | "running";
3010
+ at: string | null;
3011
+ } | null;
3012
+ messagePreview: string;
3013
+ createdAt: string;
3014
+ }[];
3015
+ nextOffset: number | null;
3016
+ };
3017
+ outputFormat: "json";
3018
+ status: 200;
3019
+ };
3020
+ }>;
3021
+ };
3022
+ } & {
3023
+ v1: {
3024
+ "task-schedules": {
3025
+ ":taskScheduleId": import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId", {
3026
+ $get: {
3027
+ input: {
3028
+ param: {
3029
+ taskScheduleId: string;
3030
+ };
3031
+ } & {
3032
+ query: {
3033
+ workspaceExternalId?: string | string[];
3034
+ };
3035
+ };
3036
+ output: {
3037
+ explicitTitle: string | null;
3038
+ message: string;
3039
+ mode: "plan" | "approve" | "balanced" | "bypass";
3040
+ timeExpression: string;
3041
+ anchorAt: string;
3042
+ totalRunsCount: number;
3043
+ updatedAt: string;
3044
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
3045
+ title: string;
3046
+ status: "active" | "completed" | "paused" | "deleted";
3047
+ recurrence: {
3048
+ kind: "none" | "daily" | "weekdays" | "weekly";
3049
+ };
3050
+ timezone: string;
3051
+ nextRunAt: string | null;
3052
+ lastRun: {
3053
+ status: "completed" | "failed" | "running";
3054
+ at: string | null;
3055
+ } | null;
3056
+ messagePreview: string;
3057
+ createdAt: string;
3058
+ };
3059
+ outputFormat: "json";
3060
+ status: 200;
3061
+ } | {
3062
+ input: {
3063
+ param: {
3064
+ taskScheduleId: string;
3065
+ };
3066
+ } & {
3067
+ query: {
3068
+ workspaceExternalId?: string | string[];
3069
+ };
3070
+ };
3071
+ output: {
3072
+ error: {
3073
+ type: string;
3074
+ };
3075
+ };
3076
+ outputFormat: "json";
3077
+ status: 404;
3078
+ };
3079
+ $patch: {
3080
+ input: {
3081
+ param: {
3082
+ taskScheduleId: string;
3083
+ };
3084
+ } & {
3085
+ query: {
3086
+ workspaceExternalId?: string | string[];
3087
+ };
3088
+ } & {
3089
+ json: {
3090
+ title?: string | null | undefined;
3091
+ message?: string | undefined;
3092
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3093
+ scheduledFor?: string | undefined;
3094
+ timeExpression?: string | undefined;
3095
+ timezone?: string | undefined;
3096
+ recurrence?: {
3097
+ kind: "none" | "daily" | "weekdays" | "weekly";
3098
+ } | undefined;
3099
+ };
3100
+ };
3101
+ output: {
3102
+ error: {
3103
+ type: string;
3104
+ requiredScope: string;
3105
+ };
3106
+ };
3107
+ outputFormat: "json";
3108
+ status: 403;
3109
+ } | {
3110
+ input: {
3111
+ param: {
3112
+ taskScheduleId: string;
3113
+ };
3114
+ } & {
3115
+ query: {
3116
+ workspaceExternalId?: string | string[];
3117
+ };
3118
+ } & {
3119
+ json: {
3120
+ title?: string | null | undefined;
3121
+ message?: string | undefined;
3122
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3123
+ scheduledFor?: string | undefined;
3124
+ timeExpression?: string | undefined;
3125
+ timezone?: string | undefined;
3126
+ recurrence?: {
3127
+ kind: "none" | "daily" | "weekdays" | "weekly";
3128
+ } | undefined;
3129
+ };
3130
+ };
3131
+ output: {
3132
+ taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
3133
+ status: "active" | "completed" | "paused" | "deleted";
3134
+ nextRunAt: string | null;
3135
+ };
3136
+ outputFormat: "json";
3137
+ status: 200;
3138
+ } | {
3139
+ input: {
3140
+ param: {
3141
+ taskScheduleId: string;
3142
+ };
3143
+ } & {
3144
+ query: {
3145
+ workspaceExternalId?: string | string[];
3146
+ };
3147
+ } & {
3148
+ json: {
3149
+ title?: string | null | undefined;
3150
+ message?: string | undefined;
3151
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3152
+ scheduledFor?: string | undefined;
3153
+ timeExpression?: string | undefined;
3154
+ timezone?: string | undefined;
3155
+ recurrence?: {
3156
+ kind: "none" | "daily" | "weekdays" | "weekly";
3157
+ } | undefined;
3158
+ };
3159
+ };
3160
+ output: {
3161
+ error: {
3162
+ type: string;
3163
+ };
3164
+ };
3165
+ outputFormat: "json";
3166
+ status: 404;
3167
+ } | {
3168
+ input: {
3169
+ param: {
3170
+ taskScheduleId: string;
3171
+ };
3172
+ } & {
3173
+ query: {
3174
+ workspaceExternalId?: string | string[];
3175
+ };
3176
+ } & {
3177
+ json: {
3178
+ title?: string | null | undefined;
3179
+ message?: string | undefined;
3180
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3181
+ scheduledFor?: string | undefined;
3182
+ timeExpression?: string | undefined;
3183
+ timezone?: string | undefined;
3184
+ recurrence?: {
3185
+ kind: "none" | "daily" | "weekdays" | "weekly";
3186
+ } | undefined;
3187
+ };
3188
+ };
3189
+ output: {
3190
+ error: {
3191
+ type: string;
3192
+ };
3193
+ };
3194
+ outputFormat: "json";
3195
+ status: 409;
3196
+ } | {
3197
+ input: {
3198
+ param: {
3199
+ taskScheduleId: string;
3200
+ };
3201
+ } & {
3202
+ query: {
3203
+ workspaceExternalId?: string | string[];
3204
+ };
3205
+ } & {
3206
+ json: {
3207
+ title?: string | null | undefined;
3208
+ message?: string | undefined;
3209
+ mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3210
+ scheduledFor?: string | undefined;
3211
+ timeExpression?: string | undefined;
3212
+ timezone?: string | undefined;
3213
+ recurrence?: {
3214
+ kind: "none" | "daily" | "weekdays" | "weekly";
3215
+ } | undefined;
3216
+ };
3217
+ };
3218
+ output: {
3219
+ error: {
3220
+ type: string;
3221
+ };
3222
+ };
3223
+ outputFormat: "json";
3224
+ status: 422;
3225
+ };
3226
+ $delete: {
3227
+ input: {
3228
+ param: {
3229
+ taskScheduleId: string;
3230
+ };
3231
+ } & {
3232
+ query: {
3233
+ workspaceExternalId?: string | string[];
3234
+ };
3235
+ };
3236
+ output: null;
3237
+ outputFormat: "body";
3238
+ status: 204;
3239
+ } | {
3240
+ input: {
3241
+ param: {
3242
+ taskScheduleId: string;
3243
+ };
3244
+ } & {
3245
+ query: {
3246
+ workspaceExternalId?: string | string[];
3247
+ };
3248
+ };
3249
+ output: {
3250
+ error: {
3251
+ type: string;
3252
+ requiredScope: string;
3253
+ };
3254
+ };
3255
+ outputFormat: "json";
3256
+ status: 403;
3257
+ } | {
3258
+ input: {
3259
+ param: {
3260
+ taskScheduleId: string;
3261
+ };
3262
+ } & {
3263
+ query: {
3264
+ workspaceExternalId?: string | string[];
3265
+ };
3266
+ };
3267
+ output: {
3268
+ error: {
3269
+ type: string;
3270
+ };
3271
+ };
3272
+ outputFormat: "json";
3273
+ status: 404;
3274
+ };
3275
+ }>;
3276
+ };
3277
+ };
3278
+ } & {
3279
+ v1: {
3280
+ "task-schedules": {
3281
+ ":taskScheduleId": {
3282
+ runs: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/runs", {
3283
+ $get: {
3284
+ input: {
3285
+ param: {
3286
+ taskScheduleId: string;
3287
+ };
3288
+ } & {
3289
+ query: {
3290
+ workspaceExternalId?: string | string[];
3291
+ limit?: string | string[];
3292
+ offset?: string | string[];
3293
+ };
3294
+ };
3295
+ output: {
3296
+ runs: {
3297
+ taskScheduleRunId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleId;
3298
+ occurrenceKind: "scheduled" | "manual";
3299
+ displayStatus: import('node_modules/@belong/cloud/src/features/task-schedules/task-schedule.service').TaskScheduleRunDisplayStatus;
3300
+ scheduledFor: string;
3301
+ startedAt: string | null;
3302
+ finishedAt: string | null;
3303
+ failureReason: string | null;
3304
+ sessionId: import('node_modules/@belong/cloud/src/platform/ids').SessionId | null;
3305
+ taskId: import('node_modules/@belong/cloud/src/platform/ids').TaskId | null;
3306
+ runId: import('node_modules/@belong/cloud/src/platform/ids').RunId | null;
3307
+ }[];
3308
+ nextOffset: number | null;
3309
+ };
3310
+ outputFormat: "json";
3311
+ status: 200;
3312
+ } | {
3313
+ input: {
3314
+ param: {
3315
+ taskScheduleId: string;
3316
+ };
3317
+ } & {
3318
+ query: {
3319
+ workspaceExternalId?: string | string[];
3320
+ limit?: string | string[];
3321
+ offset?: string | string[];
3322
+ };
3323
+ };
3324
+ output: {
3325
+ error: {
3326
+ type: string;
3327
+ };
3328
+ };
3329
+ outputFormat: "json";
3330
+ status: 404;
3331
+ };
3332
+ }>;
3333
+ };
3334
+ };
3335
+ };
3336
+ } & {
3337
+ v1: {
3338
+ "task-schedules": {
3339
+ ":taskScheduleId": {
3340
+ pause: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/pause", {
3341
+ $post: {
3342
+ input: {
3343
+ param: {
3344
+ taskScheduleId: string;
3345
+ };
3346
+ } & {
3347
+ query: {
3348
+ workspaceExternalId?: string | string[];
3349
+ };
3350
+ };
3351
+ output: {
3352
+ error: {
3353
+ type: string;
3354
+ requiredScope: string;
3355
+ };
3356
+ };
3357
+ outputFormat: "json";
3358
+ status: 403;
3359
+ } | {
3360
+ input: {
3361
+ param: {
3362
+ taskScheduleId: string;
3363
+ };
3364
+ } & {
3365
+ query: {
3366
+ workspaceExternalId?: string | string[];
3367
+ };
3368
+ };
3369
+ output: {
3370
+ status: "paused";
3371
+ };
3372
+ outputFormat: "json";
3373
+ status: 200;
3374
+ } | {
3375
+ input: {
3376
+ param: {
3377
+ taskScheduleId: string;
3378
+ };
3379
+ } & {
3380
+ query: {
3381
+ workspaceExternalId?: string | string[];
3382
+ };
3383
+ };
3384
+ output: {
3385
+ error: {
3386
+ type: string;
3387
+ };
3388
+ };
3389
+ outputFormat: "json";
3390
+ status: 404;
3391
+ } | {
3392
+ input: {
3393
+ param: {
3394
+ taskScheduleId: string;
3395
+ };
3396
+ } & {
3397
+ query: {
3398
+ workspaceExternalId?: string | string[];
3399
+ };
3400
+ };
3401
+ output: {
3402
+ error: {
3403
+ type: string;
3404
+ };
3405
+ };
3406
+ outputFormat: "json";
3407
+ status: 409;
3408
+ };
3409
+ }>;
3410
+ };
3411
+ };
3412
+ };
3413
+ } & {
3414
+ v1: {
3415
+ "task-schedules": {
3416
+ ":taskScheduleId": {
3417
+ resume: import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/resume", {
3418
+ $post: {
3419
+ input: {
3420
+ param: {
3421
+ taskScheduleId: string;
3422
+ };
3423
+ } & {
3424
+ query: {
3425
+ workspaceExternalId?: string | string[];
3426
+ };
3427
+ };
3428
+ output: {
3429
+ error: {
3430
+ type: string;
3431
+ requiredScope: string;
3432
+ };
3433
+ };
3434
+ outputFormat: "json";
3435
+ status: 403;
3436
+ } | {
3437
+ input: {
3438
+ param: {
3439
+ taskScheduleId: string;
3440
+ };
3441
+ } & {
3442
+ query: {
3443
+ workspaceExternalId?: string | string[];
3444
+ };
3445
+ };
3446
+ output: {
3447
+ status: "active" | "completed";
3448
+ nextRunAt: string | null;
3449
+ };
3450
+ outputFormat: "json";
3451
+ status: 200;
3452
+ } | {
3453
+ input: {
3454
+ param: {
3455
+ taskScheduleId: string;
3456
+ };
3457
+ } & {
3458
+ query: {
3459
+ workspaceExternalId?: string | string[];
3460
+ };
3461
+ };
3462
+ output: {
3463
+ error: {
3464
+ type: string;
3465
+ };
3466
+ };
3467
+ outputFormat: "json";
3468
+ status: 404;
3469
+ } | {
3470
+ input: {
3471
+ param: {
3472
+ taskScheduleId: string;
3473
+ };
3474
+ } & {
3475
+ query: {
3476
+ workspaceExternalId?: string | string[];
3477
+ };
3478
+ };
3479
+ output: {
3480
+ error: {
3481
+ type: string;
3482
+ };
3483
+ };
3484
+ outputFormat: "json";
3485
+ status: 409;
3486
+ };
3487
+ }>;
3488
+ };
3489
+ };
3490
+ };
3491
+ } & {
3492
+ v1: {
3493
+ "task-schedules": {
3494
+ ":taskScheduleId": {
3495
+ "run-now": import('hono/client').ClientRequest<string, "/v1/task-schedules/:taskScheduleId/run-now", {
3496
+ $post: {
3497
+ input: {
3498
+ param: {
3499
+ taskScheduleId: string;
3500
+ };
3501
+ } & {
3502
+ query: {
3503
+ workspaceExternalId?: string | string[];
3504
+ };
3505
+ } & {
3506
+ json: {
3507
+ clientRequestId?: string | undefined;
3508
+ };
3509
+ };
3510
+ output: {
3511
+ error: {
3512
+ type: string;
3513
+ requiredScope: string;
3514
+ };
3515
+ };
3516
+ outputFormat: "json";
3517
+ status: 403;
3518
+ } | {
3519
+ input: {
3520
+ param: {
3521
+ taskScheduleId: string;
3522
+ };
3523
+ } & {
3524
+ query: {
3525
+ workspaceExternalId?: string | string[];
3526
+ };
3527
+ } & {
3528
+ json: {
3529
+ clientRequestId?: string | undefined;
3530
+ };
3531
+ };
3532
+ output: {
3533
+ taskScheduleRunId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleId;
3534
+ };
3535
+ outputFormat: "json";
3536
+ status: 202;
3537
+ } | {
3538
+ input: {
3539
+ param: {
3540
+ taskScheduleId: string;
3541
+ };
3542
+ } & {
3543
+ query: {
3544
+ workspaceExternalId?: string | string[];
3545
+ };
3546
+ } & {
3547
+ json: {
3548
+ clientRequestId?: string | undefined;
3549
+ };
3550
+ };
3551
+ output: {
3552
+ error: {
3553
+ type: string;
3554
+ };
3555
+ };
3556
+ outputFormat: "json";
3557
+ status: 404;
3558
+ } | {
3559
+ input: {
3560
+ param: {
3561
+ taskScheduleId: string;
3562
+ };
3563
+ } & {
3564
+ query: {
3565
+ workspaceExternalId?: string | string[];
3566
+ };
3567
+ } & {
3568
+ json: {
3569
+ clientRequestId?: string | undefined;
3570
+ };
3571
+ };
3572
+ output: {
3573
+ error: {
3574
+ type: string;
3575
+ };
3576
+ };
3577
+ outputFormat: "json";
3578
+ status: 409;
3579
+ };
3580
+ }>;
3581
+ };
3582
+ };
3583
+ };
2565
3584
  };