@belonguniverseai/react-sdk 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/api/client.d.ts +58 -26
  2. package/dist/api/task-schedules.d.ts +138 -255
  3. package/dist/component/{arc-BziuP1aB.js → arc-TLcl3N8_.js} +2 -2
  4. package/dist/component/{architectureDiagram-3BPJPVTR-BVwa4QrX.js → architectureDiagram-3BPJPVTR-DYcaPx2M.js} +3 -3
  5. package/dist/component/{blockDiagram-GPEHLZMM-CKNImKL2.js → blockDiagram-GPEHLZMM-BdjruLO5.js} +4 -4
  6. package/dist/component/{c4Diagram-AAUBKEIU-BcbjcMPA.js → c4Diagram-AAUBKEIU-Bd2ebSgB.js} +3 -3
  7. package/dist/component/{channel-vtwXLQ1f.js → channel-CYFijF_t.js} +2 -2
  8. package/dist/component/{chunk-2J33WTMH-C6wmoOIl.js → chunk-2J33WTMH-B06Y_xVy.js} +2 -2
  9. package/dist/component/{chunk-4BX2VUAB-DySNI9mv.js → chunk-4BX2VUAB-DVpS0I_p.js} +2 -2
  10. package/dist/component/{chunk-55IACEB6-C4M2cG_c.js → chunk-55IACEB6-DmZctFkK.js} +2 -2
  11. package/dist/component/{chunk-727SXJPM-BTqmmKKN.js → chunk-727SXJPM-A5r5oL1_.js} +6 -6
  12. package/dist/component/{chunk-AQP2D5EJ-DiS4043D.js → chunk-AQP2D5EJ-D4G4syYu.js} +4 -4
  13. package/dist/component/{chunk-FMBD7UC4-Bu05DXe4.js → chunk-FMBD7UC4-CbRxWx_A.js} +2 -2
  14. package/dist/component/{chunk-ND2GUHAM-DfbE4oOG.js → chunk-ND2GUHAM-OX1-DIU1.js} +2 -2
  15. package/dist/component/{chunk-QZHKN3VN-Y8mfHGtB.js → chunk-QZHKN3VN-DLQ8oUCc.js} +2 -2
  16. package/dist/component/{classDiagram-4FO5ZUOK-ChO_m1Vd.js → classDiagram-4FO5ZUOK-4S9mdFC1.js} +3 -3
  17. package/dist/component/{classDiagram-v2-Q7XG4LA2-ChO_m1Vd.js → classDiagram-v2-Q7XG4LA2-4S9mdFC1.js} +3 -3
  18. package/dist/component/{cose-bilkent-S5V4N54A-B1DDE26M.js → cose-bilkent-S5V4N54A-BIrVaakt.js} +2 -2
  19. package/dist/component/{dagre-BM42HDAG-BmujNepD.js → dagre-BM42HDAG-BoPUzTvD.js} +2 -2
  20. package/dist/component/{diagram-2AECGRRQ-Cbck9DRQ.js → diagram-2AECGRRQ-PIXCGxIt.js} +3 -3
  21. package/dist/component/{diagram-5GNKFQAL-csRK5clZ.js → diagram-5GNKFQAL-CbJxbGBh.js} +4 -4
  22. package/dist/component/{diagram-KO2AKTUF-DD3KqnFb.js → diagram-KO2AKTUF-Da1E68Eo.js} +3 -3
  23. package/dist/component/{diagram-LMA3HP47-D6-oakzD.js → diagram-LMA3HP47-dRbk5sBa.js} +3 -3
  24. package/dist/component/{diagram-OG6HWLK6-DfxY1IE7.js → diagram-OG6HWLK6-CcKT8mhn.js} +4 -4
  25. package/dist/component/{erDiagram-TEJ5UH35-BDV1C23R.js → erDiagram-TEJ5UH35-3ATYT9J-.js} +5 -5
  26. package/dist/component/{flowDiagram-I6XJVG4X-mEwMtE2U.js → flowDiagram-I6XJVG4X-D9PLm9Od.js} +7 -7
  27. package/dist/component/{ganttDiagram-6RSMTGT7-C_dcTMQX.js → ganttDiagram-6RSMTGT7-F_XUzD1p.js} +3 -3
  28. package/dist/component/{gitGraphDiagram-PVQCEYII-CIKPPQiC.js → gitGraphDiagram-PVQCEYII-13gVhAGc.js} +4 -4
  29. package/dist/component/{highlighted-body-OFNGDK62-DpP1DD9S.js → highlighted-body-OFNGDK62-DCxRI4UV.js} +2 -2
  30. package/dist/component/index.js +2 -2
  31. package/dist/component/{infoDiagram-5YYISTIA-DKTrvjCm.js → infoDiagram-5YYISTIA-DymxA7AN.js} +2 -2
  32. package/dist/component/{ishikawaDiagram-YF4QCWOH-BcuncMnU.js → ishikawaDiagram-YF4QCWOH-C3sTn76C.js} +2 -2
  33. package/dist/component/{journeyDiagram-JHISSGLW-BTTgY3Of.js → journeyDiagram-JHISSGLW-Cq0hOAfJ.js} +5 -5
  34. package/dist/component/{kanban-definition-UN3LZRKU-D9K5810E.js → kanban-definition-UN3LZRKU-5tBWjkp7.js} +3 -3
  35. package/dist/component/{linear-DondfmT2.js → linear-BT4blD8s.js} +2 -2
  36. package/dist/component/{mermaid-GHXKKRXX-j_0KsvYs.js → mermaid-GHXKKRXX-DXPXjnb7.js} +33550 -35146
  37. package/dist/component/{mindmap-definition-RKZ34NQL-DMC3vCUq.js → mindmap-definition-RKZ34NQL-DO-OuAQQ.js} +4 -4
  38. package/dist/component/{pieDiagram-4H26LBE5-DmYi_D3l.js → pieDiagram-4H26LBE5-BkEktPwZ.js} +4 -4
  39. package/dist/component/{quadrantDiagram-W4KKPZXB-DMos-d69.js → quadrantDiagram-W4KKPZXB-CaJWg9ep.js} +3 -3
  40. package/dist/component/{requirementDiagram-4Y6WPE33-BpgIfnhZ.js → requirementDiagram-4Y6WPE33-CmZrtZqe.js} +4 -4
  41. package/dist/component/{sankeyDiagram-5OEKKPKP-xbJGp8Ms.js → sankeyDiagram-5OEKKPKP-Cp95M1aj.js} +2 -2
  42. package/dist/component/{sequenceDiagram-3UESZ5HK-Bnlm4mVO.js → sequenceDiagram-3UESZ5HK-C0x0WvhR.js} +4 -4
  43. package/dist/component/{stateDiagram-AJRCARHV-BIooqMYf.js → stateDiagram-AJRCARHV-H10vaGL3.js} +3 -3
  44. package/dist/component/{stateDiagram-v2-BHNVJYJU-C6WAOCCe.js → stateDiagram-v2-BHNVJYJU-rj7ljkc-.js} +3 -3
  45. package/dist/component/{timeline-definition-PNZ67QCA-lTe5jbcD.js → timeline-definition-PNZ67QCA-Cil1QaqZ.js} +3 -3
  46. package/dist/component/{vennDiagram-CIIHVFJN-5RYbksB1.js → vennDiagram-CIIHVFJN-Dk8PKmfb.js} +2 -2
  47. package/dist/component/{wardleyDiagram-YWT4CUSO-BSz_UDND.js → wardleyDiagram-YWT4CUSO-Xq5Hnmio.js} +3 -3
  48. package/dist/component/{xychartDiagram-2RQKCTM6-BmzhiB0a.js → xychartDiagram-2RQKCTM6-dinwR4Zm.js} +3 -3
  49. package/dist/components/embed/BetaBadge.d.ts +12 -0
  50. package/dist/components/embed/DisclaimerGate.d.ts +16 -0
  51. package/dist/components/embed/LegalShortDisclaimer.d.ts +11 -0
  52. package/dist/components/embed/LocalePills.d.ts +18 -0
  53. package/dist/components/embed/WelcomeIntro.d.ts +3 -1
  54. package/dist/embed/brand-marks.d.ts +5 -5
  55. package/dist/embed/copy.d.ts +13 -0
  56. package/dist/embed/legal-disclaimer.d.ts +23 -0
  57. package/dist/embed/presets.d.ts +5 -1
  58. package/dist/embed/task-schedule-store.d.ts +3 -13
  59. package/dist/embed/voice/call-active-marker.d.ts +1 -20
  60. package/dist/embed/voice/voice-token.d.ts +2 -12
  61. package/dist/stream/belong-chat-transport.d.ts +101 -587
  62. package/dist/stream/message-metadata.d.ts +6 -36
  63. package/dist/stream/stream-state-store.d.ts +1 -25
  64. package/package.json +1 -1
@@ -6,28 +6,8 @@ declare const cancelRunResponseSchema: z.ZodObject<{
6
6
  messageId: z.ZodString;
7
7
  clientMessageId: z.ZodNullable<z.ZodString>;
8
8
  text: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- clientMessageId: string | null;
11
- text: string;
12
- messageId: string;
13
- }, {
14
- clientMessageId: string | null;
15
- text: string;
16
- messageId: string;
17
- }>, "many">>;
18
- }, "strip", z.ZodTypeAny, {
19
- recalledMessages: {
20
- clientMessageId: string | null;
21
- text: string;
22
- messageId: string;
23
- }[];
24
- }, {
25
- recalledMessages?: {
26
- clientMessageId: string | null;
27
- text: string;
28
- messageId: string;
29
- }[] | undefined;
30
- }>;
9
+ }, z.core.$strip>>>;
10
+ }, z.core.$strip>;
31
11
  export type RecalledQueuedMessage = z.infer<typeof cancelRunResponseSchema>["recalledMessages"][number];
32
12
  /**
33
13
  * The wire/stored part union. Exported so the history loader (chat.tsx) can
@@ -36,41 +16,17 @@ export type RecalledQueuedMessage = z.infer<typeof cancelRunResponseSchema>["rec
36
16
  * (BEL-48). The history route returns these verbatim for assistant turns that
37
17
  * carry folded parts.
38
18
  */
39
- export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
19
+ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
40
20
  type: z.ZodLiteral<"text">;
41
21
  id: z.ZodString;
42
22
  text: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
44
- id: string;
45
- type: "text";
46
- text: string;
47
- }, {
48
- id: string;
49
- type: "text";
50
- text: string;
51
- }>, z.ZodObject<{
23
+ }, z.core.$strip>, z.ZodObject<{
52
24
  type: z.ZodLiteral<"data-reasoning">;
53
25
  id: z.ZodString;
54
26
  data: z.ZodObject<{
55
27
  delta: z.ZodString;
56
- }, "strip", z.ZodTypeAny, {
57
- delta: string;
58
- }, {
59
- delta: string;
60
- }>;
61
- }, "strip", z.ZodTypeAny, {
62
- id: string;
63
- data: {
64
- delta: string;
65
- };
66
- type: "data-reasoning";
67
- }, {
68
- id: string;
69
- data: {
70
- delta: string;
71
- };
72
- type: "data-reasoning";
73
- }>, z.ZodObject<{
28
+ }, z.core.$strip>;
29
+ }, z.core.$strip>, z.ZodObject<{
74
30
  type: z.ZodLiteral<"data-plan">;
75
31
  id: z.ZodString;
76
32
  data: z.ZodObject<{
@@ -80,420 +36,134 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
80
36
  id: z.ZodString;
81
37
  title: z.ZodString;
82
38
  kind: z.ZodString;
83
- status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "completed", "failed"]>>;
84
- }, "strip", z.ZodTypeAny, {
85
- id: string;
86
- title: string;
87
- kind: string;
88
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
89
- }, {
90
- id: string;
91
- title: string;
92
- kind: string;
93
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
94
- }>, "many">;
95
- }, "strip", z.ZodTypeAny, {
96
- title: string;
97
- summary: string;
98
- steps: {
99
- id: string;
100
- title: string;
101
- kind: string;
102
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
103
- }[];
104
- }, {
105
- title: string;
106
- summary: string;
107
- steps: {
108
- id: string;
109
- title: string;
110
- kind: string;
111
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
112
- }[];
113
- }>;
114
- }, "strip", z.ZodTypeAny, {
115
- id: string;
116
- data: {
117
- title: string;
118
- summary: string;
119
- steps: {
120
- id: string;
121
- title: string;
122
- kind: string;
123
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
124
- }[];
125
- };
126
- type: "data-plan";
127
- }, {
128
- id: string;
129
- data: {
130
- title: string;
131
- summary: string;
132
- steps: {
133
- id: string;
134
- title: string;
135
- kind: string;
136
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
137
- }[];
138
- };
139
- type: "data-plan";
140
- }>, z.ZodObject<{
39
+ status: z.ZodOptional<z.ZodEnum<{
40
+ pending: "pending";
41
+ completed: "completed";
42
+ failed: "failed";
43
+ in_progress: "in_progress";
44
+ }>>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>;
47
+ }, z.core.$strip>, z.ZodObject<{
141
48
  type: z.ZodLiteral<"data-approval-request">;
142
49
  id: z.ZodString;
143
50
  data: z.ZodObject<{
144
51
  approvalId: z.ZodString;
145
52
  reason: z.ZodString;
146
- state: z.ZodEnum<["pending", "approved", "rejected", "amend_requested", "expired"]>;
53
+ state: z.ZodEnum<{
54
+ pending: "pending";
55
+ approved: "approved";
56
+ rejected: "rejected";
57
+ amend_requested: "amend_requested";
58
+ expired: "expired";
59
+ }>;
147
60
  toolName: z.ZodOptional<z.ZodString>;
148
61
  subagentId: z.ZodOptional<z.ZodString>;
149
- }, "strip", z.ZodTypeAny, {
150
- reason: string;
151
- approvalId: string;
152
- state: "pending" | "approved" | "rejected" | "amend_requested" | "expired";
153
- toolName?: string | undefined;
154
- subagentId?: string | undefined;
155
- }, {
156
- reason: string;
157
- approvalId: string;
158
- state: "pending" | "approved" | "rejected" | "amend_requested" | "expired";
159
- toolName?: string | undefined;
160
- subagentId?: string | undefined;
161
- }>;
162
- }, "strip", z.ZodTypeAny, {
163
- id: string;
164
- data: {
165
- reason: string;
166
- approvalId: string;
167
- state: "pending" | "approved" | "rejected" | "amend_requested" | "expired";
168
- toolName?: string | undefined;
169
- subagentId?: string | undefined;
170
- };
171
- type: "data-approval-request";
172
- }, {
173
- id: string;
174
- data: {
175
- reason: string;
176
- approvalId: string;
177
- state: "pending" | "approved" | "rejected" | "amend_requested" | "expired";
178
- toolName?: string | undefined;
179
- subagentId?: string | undefined;
180
- };
181
- type: "data-approval-request";
182
- }>, z.ZodObject<{
62
+ }, z.core.$strip>;
63
+ }, z.core.$strip>, z.ZodObject<{
183
64
  type: z.ZodLiteral<"data-tool-call">;
184
65
  id: z.ZodString;
185
66
  data: z.ZodObject<{
186
67
  toolName: z.ZodString;
187
- state: z.ZodEnum<["started", "completed", "failed"]>;
68
+ state: z.ZodEnum<{
69
+ completed: "completed";
70
+ failed: "failed";
71
+ started: "started";
72
+ }>;
188
73
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
189
74
  output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
190
75
  error: z.ZodOptional<z.ZodObject<{
191
76
  code: z.ZodString;
192
77
  message: z.ZodString;
193
- severity: z.ZodOptional<z.ZodEnum<["error", "stop"]>>;
194
- }, "strip", z.ZodTypeAny, {
195
- message: string;
196
- code: string;
197
- severity?: "error" | "stop" | undefined;
198
- }, {
199
- message: string;
200
- code: string;
201
- severity?: "error" | "stop" | undefined;
202
- }>>;
78
+ severity: z.ZodOptional<z.ZodEnum<{
79
+ error: "error";
80
+ stop: "stop";
81
+ }>>;
82
+ }, z.core.$strip>>;
203
83
  subagentId: z.ZodOptional<z.ZodString>;
204
- }, "strip", z.ZodTypeAny, {
205
- toolName: string;
206
- state: "completed" | "failed" | "started";
207
- error?: {
208
- message: string;
209
- code: string;
210
- severity?: "error" | "stop" | undefined;
211
- } | undefined;
212
- input?: Record<string, unknown> | undefined;
213
- output?: Record<string, unknown> | null | undefined;
214
- subagentId?: string | undefined;
215
- }, {
216
- toolName: string;
217
- state: "completed" | "failed" | "started";
218
- error?: {
219
- message: string;
220
- code: string;
221
- severity?: "error" | "stop" | undefined;
222
- } | undefined;
223
- input?: Record<string, unknown> | undefined;
224
- output?: Record<string, unknown> | null | undefined;
225
- subagentId?: string | undefined;
226
- }>;
227
- }, "strip", z.ZodTypeAny, {
228
- id: string;
229
- data: {
230
- toolName: string;
231
- state: "completed" | "failed" | "started";
232
- error?: {
233
- message: string;
234
- code: string;
235
- severity?: "error" | "stop" | undefined;
236
- } | undefined;
237
- input?: Record<string, unknown> | undefined;
238
- output?: Record<string, unknown> | null | undefined;
239
- subagentId?: string | undefined;
240
- };
241
- type: "data-tool-call";
242
- }, {
243
- id: string;
244
- data: {
245
- toolName: string;
246
- state: "completed" | "failed" | "started";
247
- error?: {
248
- message: string;
249
- code: string;
250
- severity?: "error" | "stop" | undefined;
251
- } | undefined;
252
- input?: Record<string, unknown> | undefined;
253
- output?: Record<string, unknown> | null | undefined;
254
- subagentId?: string | undefined;
255
- };
256
- type: "data-tool-call";
257
- }>, z.ZodObject<{
84
+ }, z.core.$strip>;
85
+ }, z.core.$strip>, z.ZodObject<{
258
86
  type: z.ZodLiteral<"data-subagent">;
259
87
  id: z.ZodString;
260
88
  data: z.ZodObject<{
261
89
  name: z.ZodString;
262
90
  description: z.ZodString;
263
- state: z.ZodEnum<["running", "finished", "failed"]>;
91
+ state: z.ZodEnum<{
92
+ failed: "failed";
93
+ running: "running";
94
+ finished: "finished";
95
+ }>;
264
96
  stepsUsed: z.ZodOptional<z.ZodNumber>;
265
97
  summary: z.ZodOptional<z.ZodString>;
266
98
  timedOut: z.ZodOptional<z.ZodBoolean>;
267
- }, "strip", z.ZodTypeAny, {
268
- name: string;
269
- state: "failed" | "running" | "finished";
270
- description: string;
271
- stepsUsed?: number | undefined;
272
- summary?: string | undefined;
273
- timedOut?: boolean | undefined;
274
- }, {
275
- name: string;
276
- state: "failed" | "running" | "finished";
277
- description: string;
278
- stepsUsed?: number | undefined;
279
- summary?: string | undefined;
280
- timedOut?: boolean | undefined;
281
- }>;
282
- }, "strip", z.ZodTypeAny, {
283
- id: string;
284
- data: {
285
- name: string;
286
- state: "failed" | "running" | "finished";
287
- description: string;
288
- stepsUsed?: number | undefined;
289
- summary?: string | undefined;
290
- timedOut?: boolean | undefined;
291
- };
292
- type: "data-subagent";
293
- }, {
294
- id: string;
295
- data: {
296
- name: string;
297
- state: "failed" | "running" | "finished";
298
- description: string;
299
- stepsUsed?: number | undefined;
300
- summary?: string | undefined;
301
- timedOut?: boolean | undefined;
302
- };
303
- type: "data-subagent";
304
- }>, z.ZodObject<{
99
+ }, z.core.$strip>;
100
+ }, z.core.$strip>, z.ZodObject<{
305
101
  type: z.ZodLiteral<"data-sandbox-command">;
306
102
  id: z.ZodString;
307
103
  data: z.ZodObject<{
308
- state: z.ZodEnum<["started", "output", "completed", "failed"]>;
309
- stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
104
+ state: z.ZodEnum<{
105
+ output: "output";
106
+ completed: "completed";
107
+ failed: "failed";
108
+ started: "started";
109
+ }>;
110
+ stream: z.ZodOptional<z.ZodEnum<{
111
+ stdout: "stdout";
112
+ stderr: "stderr";
113
+ }>>;
310
114
  delta: z.ZodOptional<z.ZodString>;
311
115
  exitCode: z.ZodOptional<z.ZodNumber>;
312
- }, "strip", z.ZodTypeAny, {
313
- state: "output" | "completed" | "failed" | "started";
314
- delta?: string | undefined;
315
- stream?: "stdout" | "stderr" | undefined;
316
- exitCode?: number | undefined;
317
- }, {
318
- state: "output" | "completed" | "failed" | "started";
319
- delta?: string | undefined;
320
- stream?: "stdout" | "stderr" | undefined;
321
- exitCode?: number | undefined;
322
- }>;
323
- }, "strip", z.ZodTypeAny, {
324
- id: string;
325
- data: {
326
- state: "output" | "completed" | "failed" | "started";
327
- delta?: string | undefined;
328
- stream?: "stdout" | "stderr" | undefined;
329
- exitCode?: number | undefined;
330
- };
331
- type: "data-sandbox-command";
332
- }, {
333
- id: string;
334
- data: {
335
- state: "output" | "completed" | "failed" | "started";
336
- delta?: string | undefined;
337
- stream?: "stdout" | "stderr" | undefined;
338
- exitCode?: number | undefined;
339
- };
340
- type: "data-sandbox-command";
341
- }>, z.ZodObject<{
116
+ }, z.core.$strip>;
117
+ }, z.core.$strip>, z.ZodObject<{
342
118
  type: z.ZodLiteral<"data-ui-action">;
343
119
  id: z.ZodString;
344
120
  data: z.ZodObject<{
345
121
  uiActionRequestId: z.ZodString;
346
122
  actionName: z.ZodString;
347
- state: z.ZodEnum<["requested", "completed", "failed"]>;
123
+ state: z.ZodEnum<{
124
+ completed: "completed";
125
+ failed: "failed";
126
+ requested: "requested";
127
+ }>;
348
128
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
349
- }, "strip", z.ZodTypeAny, {
350
- state: "completed" | "failed" | "requested";
351
- uiActionRequestId: string;
352
- actionName: string;
353
- args?: Record<string, unknown> | undefined;
354
- }, {
355
- state: "completed" | "failed" | "requested";
356
- uiActionRequestId: string;
357
- actionName: string;
358
- args?: Record<string, unknown> | undefined;
359
- }>;
360
- }, "strip", z.ZodTypeAny, {
361
- id: string;
362
- data: {
363
- state: "completed" | "failed" | "requested";
364
- uiActionRequestId: string;
365
- actionName: string;
366
- args?: Record<string, unknown> | undefined;
367
- };
368
- type: "data-ui-action";
369
- }, {
370
- id: string;
371
- data: {
372
- state: "completed" | "failed" | "requested";
373
- uiActionRequestId: string;
374
- actionName: string;
375
- args?: Record<string, unknown> | undefined;
376
- };
377
- type: "data-ui-action";
378
- }>, z.ZodObject<{
129
+ }, z.core.$strip>;
130
+ }, z.core.$strip>, z.ZodObject<{
379
131
  type: z.ZodLiteral<"data-cli-reconnect">;
380
132
  id: z.ZodString;
381
133
  data: z.ZodObject<{
382
134
  provider: z.ZodString;
383
135
  scopeExternalId: z.ZodString;
384
- }, "strip", z.ZodTypeAny, {
385
- provider: string;
386
- scopeExternalId: string;
387
- }, {
388
- provider: string;
389
- scopeExternalId: string;
390
- }>;
391
- }, "strip", z.ZodTypeAny, {
392
- id: string;
393
- data: {
394
- provider: string;
395
- scopeExternalId: string;
396
- };
397
- type: "data-cli-reconnect";
398
- }, {
399
- id: string;
400
- data: {
401
- provider: string;
402
- scopeExternalId: string;
403
- };
404
- type: "data-cli-reconnect";
405
- }>, z.ZodObject<{
136
+ }, z.core.$strip>;
137
+ }, z.core.$strip>, z.ZodObject<{
406
138
  type: z.ZodLiteral<"data-navigation">;
407
139
  id: z.ZodString;
408
140
  data: z.ZodObject<{
409
141
  routeName: z.ZodString;
410
142
  params: z.ZodRecord<z.ZodString, z.ZodString>;
411
- }, "strip", z.ZodTypeAny, {
412
- params: Record<string, string>;
413
- routeName: string;
414
- }, {
415
- params: Record<string, string>;
416
- routeName: string;
417
- }>;
418
- }, "strip", z.ZodTypeAny, {
419
- id: string;
420
- data: {
421
- params: Record<string, string>;
422
- routeName: string;
423
- };
424
- type: "data-navigation";
425
- }, {
426
- id: string;
427
- data: {
428
- params: Record<string, string>;
429
- routeName: string;
430
- };
431
- type: "data-navigation";
432
- }>, z.ZodObject<{
143
+ }, z.core.$strip>;
144
+ }, z.core.$strip>, z.ZodObject<{
433
145
  type: z.ZodLiteral<"data-artifact">;
434
146
  id: z.ZodString;
435
147
  data: z.ZodObject<{
436
148
  artifactId: z.ZodString;
437
149
  title: z.ZodString;
438
150
  mimeType: z.ZodString;
439
- }, "strip", z.ZodTypeAny, {
440
- title: string;
441
- artifactId: string;
442
- mimeType: string;
443
- }, {
444
- title: string;
445
- artifactId: string;
446
- mimeType: string;
447
- }>;
448
- }, "strip", z.ZodTypeAny, {
449
- id: string;
450
- data: {
451
- title: string;
452
- artifactId: string;
453
- mimeType: string;
454
- };
455
- type: "data-artifact";
456
- }, {
457
- id: string;
458
- data: {
459
- title: string;
460
- artifactId: string;
461
- mimeType: string;
462
- };
463
- type: "data-artifact";
464
- }>, z.ZodObject<{
151
+ }, z.core.$strip>;
152
+ }, z.core.$strip>, z.ZodObject<{
465
153
  type: z.ZodLiteral<"data-status">;
466
154
  id: z.ZodString;
467
155
  data: z.ZodObject<{
468
- status: z.ZodEnum<["continuing", "completed", "cancelled", "failed", "throttled"]>;
156
+ status: z.ZodEnum<{
157
+ completed: "completed";
158
+ failed: "failed";
159
+ cancelled: "cancelled";
160
+ continuing: "continuing";
161
+ throttled: "throttled";
162
+ }>;
469
163
  message: z.ZodOptional<z.ZodString>;
470
164
  retryable: z.ZodOptional<z.ZodBoolean>;
471
- }, "strip", z.ZodTypeAny, {
472
- status: "completed" | "failed" | "cancelled" | "continuing" | "throttled";
473
- message?: string | undefined;
474
- retryable?: boolean | undefined;
475
- }, {
476
- status: "completed" | "failed" | "cancelled" | "continuing" | "throttled";
477
- message?: string | undefined;
478
- retryable?: boolean | undefined;
479
- }>;
480
- }, "strip", z.ZodTypeAny, {
481
- id: string;
482
- data: {
483
- status: "completed" | "failed" | "cancelled" | "continuing" | "throttled";
484
- message?: string | undefined;
485
- retryable?: boolean | undefined;
486
- };
487
- type: "data-status";
488
- }, {
489
- id: string;
490
- data: {
491
- status: "completed" | "failed" | "cancelled" | "continuing" | "throttled";
492
- message?: string | undefined;
493
- retryable?: boolean | undefined;
494
- };
495
- type: "data-status";
496
- }>, z.ZodObject<{
165
+ }, z.core.$strip>;
166
+ }, z.core.$strip>, z.ZodObject<{
497
167
  type: z.ZodLiteral<"data-usage">;
498
168
  id: z.ZodString;
499
169
  data: z.ZodObject<{
@@ -502,43 +172,11 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
502
172
  totalTokens: z.ZodNumber;
503
173
  historyChars: z.ZodNumber;
504
174
  autoCompactThresholdChars: z.ZodNumber;
505
- }, "strip", z.ZodTypeAny, {
506
- inputTokens: number;
507
- outputTokens: number;
508
- totalTokens: number;
509
- historyChars: number;
510
- autoCompactThresholdChars: number;
511
- }, {
512
- inputTokens: number;
513
- outputTokens: number;
514
- totalTokens: number;
515
- historyChars: number;
516
- autoCompactThresholdChars: number;
517
- }>;
518
- }, "strip", z.ZodTypeAny, {
519
- id: string;
520
- data: {
521
- inputTokens: number;
522
- outputTokens: number;
523
- totalTokens: number;
524
- historyChars: number;
525
- autoCompactThresholdChars: number;
526
- };
527
- type: "data-usage";
528
- }, {
529
- id: string;
530
- data: {
531
- inputTokens: number;
532
- outputTokens: number;
533
- totalTokens: number;
534
- historyChars: number;
535
- autoCompactThresholdChars: number;
536
- };
537
- type: "data-usage";
538
- }>, z.ZodObject<{
175
+ }, z.core.$strip>;
176
+ }, z.core.$strip>, z.ZodObject<{
539
177
  type: z.ZodLiteral<"data-choice-request">;
540
178
  id: z.ZodString;
541
- data: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
179
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
542
180
  mode: z.ZodLiteral<"single">;
543
181
  uiActionRequestId: z.ZodString;
544
182
  question: z.ZodString;
@@ -546,37 +184,13 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
546
184
  id: z.ZodString;
547
185
  label: z.ZodString;
548
186
  description: z.ZodOptional<z.ZodString>;
549
- }, "strip", z.ZodTypeAny, {
550
- id: string;
551
- label: string;
552
- description?: string | undefined;
553
- }, {
554
- id: string;
555
- label: string;
556
- description?: string | undefined;
557
- }>, "many">;
558
- state: z.ZodEnum<["pending", "resolved", "expired"]>;
559
- }, "strip", z.ZodTypeAny, {
560
- mode: "single";
561
- options: {
562
- id: string;
563
- label: string;
564
- description?: string | undefined;
565
- }[];
566
- state: "pending" | "expired" | "resolved";
567
- uiActionRequestId: string;
568
- question: string;
569
- }, {
570
- mode: "single";
571
- options: {
572
- id: string;
573
- label: string;
574
- description?: string | undefined;
575
- }[];
576
- state: "pending" | "expired" | "resolved";
577
- uiActionRequestId: string;
578
- question: string;
579
- }>, z.ZodObject<{
187
+ }, z.core.$strip>>;
188
+ state: z.ZodEnum<{
189
+ pending: "pending";
190
+ expired: "expired";
191
+ resolved: "resolved";
192
+ }>;
193
+ }, z.core.$strip>, z.ZodObject<{
580
194
  mode: z.ZodLiteral<"multi">;
581
195
  uiActionRequestId: z.ZodString;
582
196
  question: z.ZodString;
@@ -584,126 +198,26 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
584
198
  id: z.ZodString;
585
199
  label: z.ZodString;
586
200
  description: z.ZodOptional<z.ZodString>;
587
- }, "strip", z.ZodTypeAny, {
588
- id: string;
589
- label: string;
590
- description?: string | undefined;
591
- }, {
592
- id: string;
593
- label: string;
594
- description?: string | undefined;
595
- }>, "many">;
596
- state: z.ZodEnum<["pending", "resolved", "expired"]>;
201
+ }, z.core.$strip>>;
202
+ state: z.ZodEnum<{
203
+ pending: "pending";
204
+ expired: "expired";
205
+ resolved: "resolved";
206
+ }>;
597
207
  minChoicesCount: z.ZodOptional<z.ZodNumber>;
598
208
  maxChoicesCount: z.ZodOptional<z.ZodNumber>;
599
- }, "strip", z.ZodTypeAny, {
600
- mode: "multi";
601
- options: {
602
- id: string;
603
- label: string;
604
- description?: string | undefined;
605
- }[];
606
- state: "pending" | "expired" | "resolved";
607
- uiActionRequestId: string;
608
- question: string;
609
- minChoicesCount?: number | undefined;
610
- maxChoicesCount?: number | undefined;
611
- }, {
612
- mode: "multi";
613
- options: {
614
- id: string;
615
- label: string;
616
- description?: string | undefined;
617
- }[];
618
- state: "pending" | "expired" | "resolved";
619
- uiActionRequestId: string;
620
- question: string;
621
- minChoicesCount?: number | undefined;
622
- maxChoicesCount?: number | undefined;
623
- }>, z.ZodObject<{
209
+ }, z.core.$strip>, z.ZodObject<{
624
210
  mode: z.ZodLiteral<"open">;
625
211
  uiActionRequestId: z.ZodString;
626
212
  question: z.ZodString;
627
- state: z.ZodEnum<["pending", "resolved", "expired"]>;
213
+ state: z.ZodEnum<{
214
+ pending: "pending";
215
+ expired: "expired";
216
+ resolved: "resolved";
217
+ }>;
628
218
  placeholder: z.ZodOptional<z.ZodString>;
629
- }, "strip", z.ZodTypeAny, {
630
- mode: "open";
631
- state: "pending" | "expired" | "resolved";
632
- uiActionRequestId: string;
633
- question: string;
634
- placeholder?: string | undefined;
635
- }, {
636
- mode: "open";
637
- state: "pending" | "expired" | "resolved";
638
- uiActionRequestId: string;
639
- question: string;
640
- placeholder?: string | undefined;
641
- }>]>;
642
- }, "strip", z.ZodTypeAny, {
643
- id: string;
644
- data: {
645
- mode: "single";
646
- options: {
647
- id: string;
648
- label: string;
649
- description?: string | undefined;
650
- }[];
651
- state: "pending" | "expired" | "resolved";
652
- uiActionRequestId: string;
653
- question: string;
654
- } | {
655
- mode: "multi";
656
- options: {
657
- id: string;
658
- label: string;
659
- description?: string | undefined;
660
- }[];
661
- state: "pending" | "expired" | "resolved";
662
- uiActionRequestId: string;
663
- question: string;
664
- minChoicesCount?: number | undefined;
665
- maxChoicesCount?: number | undefined;
666
- } | {
667
- mode: "open";
668
- state: "pending" | "expired" | "resolved";
669
- uiActionRequestId: string;
670
- question: string;
671
- placeholder?: string | undefined;
672
- };
673
- type: "data-choice-request";
674
- }, {
675
- id: string;
676
- data: {
677
- mode: "single";
678
- options: {
679
- id: string;
680
- label: string;
681
- description?: string | undefined;
682
- }[];
683
- state: "pending" | "expired" | "resolved";
684
- uiActionRequestId: string;
685
- question: string;
686
- } | {
687
- mode: "multi";
688
- options: {
689
- id: string;
690
- label: string;
691
- description?: string | undefined;
692
- }[];
693
- state: "pending" | "expired" | "resolved";
694
- uiActionRequestId: string;
695
- question: string;
696
- minChoicesCount?: number | undefined;
697
- maxChoicesCount?: number | undefined;
698
- } | {
699
- mode: "open";
700
- state: "pending" | "expired" | "resolved";
701
- uiActionRequestId: string;
702
- question: string;
703
- placeholder?: string | undefined;
704
- };
705
- type: "data-choice-request";
706
- }>]>;
219
+ }, z.core.$strip>], "mode">;
220
+ }, z.core.$strip>], "type">;
707
221
  /** A request was 401'd twice (once with a freshly re-read token): the host
708
222
  * session is expired — the dock must surface re-auth, not retry forever. */
709
223
  export declare const AUTH_EXPIRED_ERROR_PREFIX = "auth_expired:";