@belonguniverseai/react-sdk 0.6.1 → 0.6.3

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 (93) hide show
  1. package/dist/api/agent-grants.d.ts +6 -0
  2. package/dist/api/client.d.ts +88 -27
  3. package/dist/api/task-schedules.d.ts +138 -255
  4. package/dist/app/call-summary.d.ts +30 -0
  5. package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
  6. package/dist/component/arc-Cpnt_LFj.js +86 -0
  7. package/dist/component/{architectureDiagram-3BPJPVTR-BVwa4QrX.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
  8. package/dist/component/{blockDiagram-GPEHLZMM-CKNImKL2.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
  9. package/dist/component/{c4Diagram-AAUBKEIU-BcbjcMPA.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
  10. package/dist/component/{channel-vtwXLQ1f.js → channel-DnM50Ep0.js} +2 -2
  11. package/dist/component/{chunk-ND2GUHAM-DfbE4oOG.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
  12. package/dist/component/{chunk-QZHKN3VN-Y8mfHGtB.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
  13. package/dist/component/{chunk-AQP2D5EJ-DiS4043D.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
  14. package/dist/component/{chunk-FMBD7UC4-Bu05DXe4.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
  15. package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
  16. package/dist/component/{chunk-727SXJPM-BTqmmKKN.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
  17. package/dist/component/{chunk-4BX2VUAB-DySNI9mv.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
  18. package/dist/component/{chunk-2J33WTMH-C6wmoOIl.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
  19. package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
  20. package/dist/component/{chunk-55IACEB6-C4M2cG_c.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
  21. package/dist/component/{classDiagram-4FO5ZUOK-ChO_m1Vd.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
  22. package/dist/component/{classDiagram-v2-Q7XG4LA2-ChO_m1Vd.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
  23. package/dist/component/{cose-bilkent-S5V4N54A-B1DDE26M.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
  24. package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
  25. package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
  26. package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
  27. package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
  28. package/dist/component/{diagram-KO2AKTUF-DD3KqnFb.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
  29. package/dist/component/{diagram-LMA3HP47-D6-oakzD.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
  30. package/dist/component/{diagram-OG6HWLK6-DfxY1IE7.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
  31. package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
  32. package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
  33. package/dist/component/{erDiagram-TEJ5UH35-BDV1C23R.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
  34. package/dist/component/{flowDiagram-I6XJVG4X-mEwMtE2U.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
  35. package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
  36. package/dist/component/{gitGraphDiagram-PVQCEYII-CIKPPQiC.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.js} +33 -33
  37. package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
  38. package/dist/component/{highlighted-body-OFNGDK62-DpP1DD9S.js → highlighted-body-OFNGDK62-CSJNGt18.js} +2 -2
  39. package/dist/component/index.js +2 -2
  40. package/dist/component/{infoDiagram-5YYISTIA-DKTrvjCm.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
  41. package/dist/component/{ishikawaDiagram-YF4QCWOH-BcuncMnU.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
  42. package/dist/component/{journeyDiagram-JHISSGLW-BTTgY3Of.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
  43. package/dist/component/{kanban-definition-UN3LZRKU-D9K5810E.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
  44. package/dist/component/layout-Br2UjHRU.js +1522 -0
  45. package/dist/component/{linear-DondfmT2.js → linear-Bi0C-9d1.js} +13 -13
  46. package/dist/component/map-CdwokNh2.js +227 -0
  47. package/dist/component/{mermaid-GHXKKRXX-j_0KsvYs.js → mermaid-GHXKKRXX-BaBCeViM.js} +34453 -35613
  48. package/dist/component/{mindmap-definition-RKZ34NQL-DMC3vCUq.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
  49. package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
  50. package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
  51. package/dist/component/{quadrantDiagram-W4KKPZXB-DMos-d69.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
  52. package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
  53. package/dist/component/{requirementDiagram-4Y6WPE33-BpgIfnhZ.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
  54. package/dist/component/{sankeyDiagram-5OEKKPKP-xbJGp8Ms.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
  55. package/dist/component/{sequenceDiagram-3UESZ5HK-Bnlm4mVO.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
  56. package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
  57. package/dist/component/{stateDiagram-AJRCARHV-BIooqMYf.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
  58. package/dist/component/{stateDiagram-v2-BHNVJYJU-C6WAOCCe.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
  59. package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
  60. package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
  61. package/dist/component/{timeline-definition-PNZ67QCA-lTe5jbcD.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
  62. package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
  63. package/dist/component/{wardleyDiagram-YWT4CUSO-BSz_UDND.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
  64. package/dist/component/{xychartDiagram-2RQKCTM6-BmzhiB0a.js → xychartDiagram-ELKLHX3M-79AgTtk-.js} +464 -418
  65. package/dist/components/embed/BetaBadge.d.ts +12 -0
  66. package/dist/components/embed/DisclaimerGate.d.ts +16 -0
  67. package/dist/components/embed/LegalShortDisclaimer.d.ts +11 -0
  68. package/dist/components/embed/LocalePills.d.ts +18 -0
  69. package/dist/components/embed/WelcomeIntro.d.ts +3 -1
  70. package/dist/embed/brand-marks.d.ts +5 -5
  71. package/dist/embed/copy.d.ts +13 -0
  72. package/dist/embed/legal-disclaimer.d.ts +23 -0
  73. package/dist/embed/presets.d.ts +5 -1
  74. package/dist/embed/task-schedule-store.d.ts +3 -13
  75. package/dist/embed/voice/call-active-marker.d.ts +1 -20
  76. package/dist/embed/voice/line-slots.d.ts +37 -2
  77. package/dist/embed/voice/voice-token.d.ts +2 -12
  78. package/dist/embed/voice-call.d.ts +12 -0
  79. package/dist/i18n/messages/en.d.ts +1 -2
  80. package/dist/lib/web-storage.d.ts +8 -0
  81. package/dist/stream/belong-chat-transport.d.ts +101 -587
  82. package/dist/stream/message-metadata.d.ts +6 -36
  83. package/dist/stream/stream-state-store.d.ts +14 -25
  84. package/dist/types/public.d.ts +3 -0
  85. package/package.json +1 -1
  86. package/dist/component/arc-BziuP1aB.js +0 -86
  87. package/dist/component/dagre-BM42HDAG-BmujNepD.js +0 -448
  88. package/dist/component/diagram-2AECGRRQ-Cbck9DRQ.js +0 -220
  89. package/dist/component/diagram-5GNKFQAL-csRK5clZ.js +0 -126
  90. package/dist/component/ganttDiagram-6RSMTGT7-C_dcTMQX.js +0 -2709
  91. package/dist/component/layout-Bu6nRdWm.js +0 -1731
  92. package/dist/component/pieDiagram-4H26LBE5-DmYi_D3l.js +0 -166
  93. package/dist/component/vennDiagram-CIIHVFJN-5RYbksB1.js +0 -1560
@@ -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:";