@get-bb/plugin-sdk 0.4.48 → 0.4.50

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.
@@ -140,6 +140,13 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
140
140
  }, z.core.$strip>, z.ZodObject<{
141
141
  path: z.ZodString;
142
142
  type: z.ZodLiteral<"imageView">;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ error: z.ZodNullable<z.ZodString>;
145
+ path: z.ZodNullable<z.ZodString>;
146
+ prompt: z.ZodNullable<z.ZodString>;
147
+ result: z.ZodOptional<z.ZodString>;
148
+ transparentBackground: z.ZodBoolean;
149
+ type: z.ZodLiteral<"imageGeneration">;
143
150
  }, z.core.$strip>, z.ZodObject<{
144
151
  description: z.ZodString;
145
152
  error: z.ZodOptional<z.ZodString>;
@@ -682,6 +682,66 @@ declare const threadEventItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
682
682
  title: z.ZodOptional<z.ZodString>;
683
683
  }, z.core.$strip>>;
684
684
  type: z.ZodLiteral<"imageView">;
685
+ }, z.core.$strip>, z.ZodObject<{
686
+ error: z.ZodNullable<z.ZodString>;
687
+ id: z.ZodString;
688
+ parentToolCallId: z.ZodOptional<z.ZodString>;
689
+ path: z.ZodNullable<z.ZodString>;
690
+ presentation: z.ZodOptional<z.ZodObject<{
691
+ badge: z.ZodOptional<z.ZodObject<{
692
+ glyph: z.ZodString;
693
+ hint: z.ZodString;
694
+ label: z.ZodString;
695
+ tone: z.ZodEnum<{
696
+ destructive: "destructive";
697
+ neutral: "neutral";
698
+ }>;
699
+ }, z.core.$strip>>;
700
+ detail: z.ZodOptional<z.ZodString>;
701
+ icon: z.ZodObject<{
702
+ glyph: z.ZodString;
703
+ }, z.core.$strip>;
704
+ label: z.ZodObject<{
705
+ completed: z.ZodString;
706
+ pending: z.ZodString;
707
+ }, z.core.$strip>;
708
+ suppress: z.ZodOptional<z.ZodBoolean>;
709
+ tint: z.ZodOptional<z.ZodObject<{
710
+ dark: z.ZodString;
711
+ light: z.ZodString;
712
+ }, z.core.$strip>>;
713
+ title: z.ZodOptional<z.ZodString>;
714
+ }, z.core.$strip>>;
715
+ prompt: z.ZodNullable<z.ZodString>;
716
+ result: z.ZodOptional<z.ZodString>;
717
+ status: z.ZodEnum<{
718
+ completed: "completed";
719
+ failed: "failed";
720
+ interrupted: "interrupted";
721
+ pending: "pending";
722
+ }>;
723
+ transparentBackground: z.ZodBoolean;
724
+ truncation: z.ZodOptional<z.ZodObject<{
725
+ aggregatedOutput: z.ZodOptional<z.ZodObject<{
726
+ originalLength: z.ZodNumber;
727
+ retainedHeadLength: z.ZodNumber;
728
+ retainedTailLength: z.ZodNumber;
729
+ truncatedAt: z.ZodNumber;
730
+ }, z.core.$strip>>;
731
+ result: z.ZodOptional<z.ZodObject<{
732
+ originalLength: z.ZodNumber;
733
+ retainedHeadLength: z.ZodNumber;
734
+ retainedTailLength: z.ZodNumber;
735
+ truncatedAt: z.ZodNumber;
736
+ }, z.core.$strip>>;
737
+ resultText: z.ZodOptional<z.ZodObject<{
738
+ originalLength: z.ZodNumber;
739
+ retainedHeadLength: z.ZodNumber;
740
+ retainedTailLength: z.ZodNumber;
741
+ truncatedAt: z.ZodNumber;
742
+ }, z.core.$strip>>;
743
+ }, z.core.$strip>>;
744
+ type: z.ZodLiteral<"imageGeneration">;
685
745
  }, z.core.$strip>, z.ZodObject<{
686
746
  cmd: z.ZodOptional<z.ZodString>;
687
747
  id: z.ZodString;
@@ -1452,6 +1512,66 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
1452
1512
  title: z.ZodOptional<z.ZodString>;
1453
1513
  }, z.core.$strip>>;
1454
1514
  type: z.ZodLiteral<"imageView">;
1515
+ }, z.core.$strip>, z.ZodObject<{
1516
+ error: z.ZodNullable<z.ZodString>;
1517
+ id: z.ZodString;
1518
+ parentToolCallId: z.ZodOptional<z.ZodString>;
1519
+ path: z.ZodNullable<z.ZodString>;
1520
+ presentation: z.ZodOptional<z.ZodObject<{
1521
+ badge: z.ZodOptional<z.ZodObject<{
1522
+ glyph: z.ZodString;
1523
+ hint: z.ZodString;
1524
+ label: z.ZodString;
1525
+ tone: z.ZodEnum<{
1526
+ destructive: "destructive";
1527
+ neutral: "neutral";
1528
+ }>;
1529
+ }, z.core.$strip>>;
1530
+ detail: z.ZodOptional<z.ZodString>;
1531
+ icon: z.ZodObject<{
1532
+ glyph: z.ZodString;
1533
+ }, z.core.$strip>;
1534
+ label: z.ZodObject<{
1535
+ completed: z.ZodString;
1536
+ pending: z.ZodString;
1537
+ }, z.core.$strip>;
1538
+ suppress: z.ZodOptional<z.ZodBoolean>;
1539
+ tint: z.ZodOptional<z.ZodObject<{
1540
+ dark: z.ZodString;
1541
+ light: z.ZodString;
1542
+ }, z.core.$strip>>;
1543
+ title: z.ZodOptional<z.ZodString>;
1544
+ }, z.core.$strip>>;
1545
+ prompt: z.ZodNullable<z.ZodString>;
1546
+ result: z.ZodOptional<z.ZodString>;
1547
+ status: z.ZodEnum<{
1548
+ completed: "completed";
1549
+ failed: "failed";
1550
+ interrupted: "interrupted";
1551
+ pending: "pending";
1552
+ }>;
1553
+ transparentBackground: z.ZodBoolean;
1554
+ truncation: z.ZodOptional<z.ZodObject<{
1555
+ aggregatedOutput: z.ZodOptional<z.ZodObject<{
1556
+ originalLength: z.ZodNumber;
1557
+ retainedHeadLength: z.ZodNumber;
1558
+ retainedTailLength: z.ZodNumber;
1559
+ truncatedAt: z.ZodNumber;
1560
+ }, z.core.$strip>>;
1561
+ result: z.ZodOptional<z.ZodObject<{
1562
+ originalLength: z.ZodNumber;
1563
+ retainedHeadLength: z.ZodNumber;
1564
+ retainedTailLength: z.ZodNumber;
1565
+ truncatedAt: z.ZodNumber;
1566
+ }, z.core.$strip>>;
1567
+ resultText: z.ZodOptional<z.ZodObject<{
1568
+ originalLength: z.ZodNumber;
1569
+ retainedHeadLength: z.ZodNumber;
1570
+ retainedTailLength: z.ZodNumber;
1571
+ truncatedAt: z.ZodNumber;
1572
+ }, z.core.$strip>>;
1573
+ }, z.core.$strip>>;
1574
+ type: z.ZodLiteral<"imageGeneration">;
1455
1575
  }, z.core.$strip>, z.ZodObject<{
1456
1576
  cmd: z.ZodOptional<z.ZodString>;
1457
1577
  id: z.ZodString;
@@ -2157,6 +2277,66 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
2157
2277
  title: z.ZodOptional<z.ZodString>;
2158
2278
  }, z.core.$strip>>;
2159
2279
  type: z.ZodLiteral<"imageView">;
2280
+ }, z.core.$strip>, z.ZodObject<{
2281
+ error: z.ZodNullable<z.ZodString>;
2282
+ id: z.ZodString;
2283
+ parentToolCallId: z.ZodOptional<z.ZodString>;
2284
+ path: z.ZodNullable<z.ZodString>;
2285
+ presentation: z.ZodOptional<z.ZodObject<{
2286
+ badge: z.ZodOptional<z.ZodObject<{
2287
+ glyph: z.ZodString;
2288
+ hint: z.ZodString;
2289
+ label: z.ZodString;
2290
+ tone: z.ZodEnum<{
2291
+ destructive: "destructive";
2292
+ neutral: "neutral";
2293
+ }>;
2294
+ }, z.core.$strip>>;
2295
+ detail: z.ZodOptional<z.ZodString>;
2296
+ icon: z.ZodObject<{
2297
+ glyph: z.ZodString;
2298
+ }, z.core.$strip>;
2299
+ label: z.ZodObject<{
2300
+ completed: z.ZodString;
2301
+ pending: z.ZodString;
2302
+ }, z.core.$strip>;
2303
+ suppress: z.ZodOptional<z.ZodBoolean>;
2304
+ tint: z.ZodOptional<z.ZodObject<{
2305
+ dark: z.ZodString;
2306
+ light: z.ZodString;
2307
+ }, z.core.$strip>>;
2308
+ title: z.ZodOptional<z.ZodString>;
2309
+ }, z.core.$strip>>;
2310
+ prompt: z.ZodNullable<z.ZodString>;
2311
+ result: z.ZodOptional<z.ZodString>;
2312
+ status: z.ZodEnum<{
2313
+ completed: "completed";
2314
+ failed: "failed";
2315
+ interrupted: "interrupted";
2316
+ pending: "pending";
2317
+ }>;
2318
+ transparentBackground: z.ZodBoolean;
2319
+ truncation: z.ZodOptional<z.ZodObject<{
2320
+ aggregatedOutput: z.ZodOptional<z.ZodObject<{
2321
+ originalLength: z.ZodNumber;
2322
+ retainedHeadLength: z.ZodNumber;
2323
+ retainedTailLength: z.ZodNumber;
2324
+ truncatedAt: z.ZodNumber;
2325
+ }, z.core.$strip>>;
2326
+ result: z.ZodOptional<z.ZodObject<{
2327
+ originalLength: z.ZodNumber;
2328
+ retainedHeadLength: z.ZodNumber;
2329
+ retainedTailLength: z.ZodNumber;
2330
+ truncatedAt: z.ZodNumber;
2331
+ }, z.core.$strip>>;
2332
+ resultText: z.ZodOptional<z.ZodObject<{
2333
+ originalLength: z.ZodNumber;
2334
+ retainedHeadLength: z.ZodNumber;
2335
+ retainedTailLength: z.ZodNumber;
2336
+ truncatedAt: z.ZodNumber;
2337
+ }, z.core.$strip>>;
2338
+ }, z.core.$strip>>;
2339
+ type: z.ZodLiteral<"imageGeneration">;
2160
2340
  }, z.core.$strip>, z.ZodObject<{
2161
2341
  cmd: z.ZodOptional<z.ZodString>;
2162
2342
  id: z.ZodString;
@@ -3772,7 +3952,7 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
3772
3952
  step: "step";
3773
3953
  }>;
3774
3954
  }, z.core.$strip>>;
3775
- environmentId: z.ZodString;
3955
+ environmentId: z.ZodNullable<z.ZodString>;
3776
3956
  provisioningId: z.ZodString;
3777
3957
  status: z.ZodEnum<{
3778
3958
  active: "active";
@@ -3974,6 +4154,13 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3974
4154
  }, z.core.$strip>, z.ZodObject<{
3975
4155
  path: z.ZodString;
3976
4156
  type: z.ZodLiteral<"imageView">;
4157
+ }, z.core.$strip>, z.ZodObject<{
4158
+ error: z.ZodNullable<z.ZodString>;
4159
+ path: z.ZodNullable<z.ZodString>;
4160
+ prompt: z.ZodNullable<z.ZodString>;
4161
+ result: z.ZodOptional<z.ZodString>;
4162
+ transparentBackground: z.ZodBoolean;
4163
+ type: z.ZodLiteral<"imageGeneration">;
3977
4164
  }, z.core.$strip>, z.ZodObject<{
3978
4165
  description: z.ZodString;
3979
4166
  error: z.ZodOptional<z.ZodString>;
@@ -4174,6 +4361,13 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4174
4361
  }, z.core.$strip>, z.ZodObject<{
4175
4362
  path: z.ZodString;
4176
4363
  type: z.ZodLiteral<"imageView">;
4364
+ }, z.core.$strip>, z.ZodObject<{
4365
+ error: z.ZodNullable<z.ZodString>;
4366
+ path: z.ZodNullable<z.ZodString>;
4367
+ prompt: z.ZodNullable<z.ZodString>;
4368
+ result: z.ZodOptional<z.ZodString>;
4369
+ transparentBackground: z.ZodBoolean;
4370
+ type: z.ZodLiteral<"imageGeneration">;
4177
4371
  }, z.core.$strip>, z.ZodObject<{
4178
4372
  description: z.ZodString;
4179
4373
  error: z.ZodOptional<z.ZodString>;
@@ -217,6 +217,173 @@ declare const threadEventItemPresentationSchema: z.ZodObject<{
217
217
  }, z.core.$strip>;
218
218
  type ThreadEventItemPresentation = z.infer<typeof threadEventItemPresentationSchema>;
219
219
 
220
+ declare const threadEventItemStatusSchema: z.ZodEnum<{
221
+ completed: "completed";
222
+ failed: "failed";
223
+ interrupted: "interrupted";
224
+ pending: "pending";
225
+ }>;
226
+ type ThreadEventItemStatus = z.infer<typeof threadEventItemStatusSchema>;
227
+ declare const threadEventTurnStatusSchema: z.ZodEnum<{
228
+ completed: "completed";
229
+ failed: "failed";
230
+ interrupted: "interrupted";
231
+ }>;
232
+ type ThreadEventTurnStatus = z.infer<typeof threadEventTurnStatusSchema>;
233
+ declare const providerErrorCategorySchema: z.ZodEnum<{
234
+ "active-turn-not-steerable": "active-turn-not-steerable";
235
+ "bad-request": "bad-request";
236
+ "budget-exceeded": "budget-exceeded";
237
+ "connection-failed": "connection-failed";
238
+ "context-window-exceeded": "context-window-exceeded";
239
+ "max-output-tokens": "max-output-tokens";
240
+ "max-turns": "max-turns";
241
+ "rate-limit": "rate-limit";
242
+ "stream-disconnected": "stream-disconnected";
243
+ "structured-output-retries": "structured-output-retries";
244
+ "thread-rollback-failed": "thread-rollback-failed";
245
+ "too-many-failed-attempts": "too-many-failed-attempts";
246
+ billing: "billing";
247
+ internal: "internal";
248
+ overloaded: "overloaded";
249
+ policy: "policy";
250
+ sandbox: "sandbox";
251
+ unauthorized: "unauthorized";
252
+ unknown: "unknown";
253
+ }>;
254
+ type ProviderErrorCategory = z.infer<typeof providerErrorCategorySchema>;
255
+ declare const providerErrorInfoSchema: z.ZodObject<{
256
+ category: z.ZodEnum<{
257
+ "active-turn-not-steerable": "active-turn-not-steerable";
258
+ "bad-request": "bad-request";
259
+ "budget-exceeded": "budget-exceeded";
260
+ "connection-failed": "connection-failed";
261
+ "context-window-exceeded": "context-window-exceeded";
262
+ "max-output-tokens": "max-output-tokens";
263
+ "max-turns": "max-turns";
264
+ "rate-limit": "rate-limit";
265
+ "stream-disconnected": "stream-disconnected";
266
+ "structured-output-retries": "structured-output-retries";
267
+ "thread-rollback-failed": "thread-rollback-failed";
268
+ "too-many-failed-attempts": "too-many-failed-attempts";
269
+ billing: "billing";
270
+ internal: "internal";
271
+ overloaded: "overloaded";
272
+ policy: "policy";
273
+ sandbox: "sandbox";
274
+ unauthorized: "unauthorized";
275
+ unknown: "unknown";
276
+ }>;
277
+ httpStatusCode: z.ZodNullable<z.ZodNumber>;
278
+ providerCode: z.ZodNullable<z.ZodString>;
279
+ }, z.core.$strip>;
280
+ type ProviderErrorInfo = z.infer<typeof providerErrorInfoSchema>;
281
+ declare const providerRateLimitStatusSchema: z.ZodEnum<{
282
+ allowed: "allowed";
283
+ blocked: "blocked";
284
+ unknown: "unknown";
285
+ warning: "warning";
286
+ }>;
287
+ type ProviderRateLimitStatus = z.infer<typeof providerRateLimitStatusSchema>;
288
+ declare const providerRateLimitWindowSchema: z.ZodObject<{
289
+ label: z.ZodNullable<z.ZodString>;
290
+ providerKey: z.ZodNullable<z.ZodString>;
291
+ resetsAtMs: z.ZodNullable<z.ZodNumber>;
292
+ status: z.ZodEnum<{
293
+ allowed: "allowed";
294
+ blocked: "blocked";
295
+ unknown: "unknown";
296
+ warning: "warning";
297
+ }>;
298
+ }, z.core.$strip>;
299
+ type ProviderRateLimitWindow = z.infer<typeof providerRateLimitWindowSchema>;
300
+ declare const providerRateLimitStateSchema: z.ZodObject<{
301
+ kind: z.ZodEnum<{
302
+ "spend-control": "spend-control";
303
+ "subscription-window": "subscription-window";
304
+ credits: "credits";
305
+ unknown: "unknown";
306
+ }>;
307
+ overageReason: z.ZodNullable<z.ZodString>;
308
+ overageStatus: z.ZodNullable<z.ZodEnum<{
309
+ allowed: "allowed";
310
+ rejected: "rejected";
311
+ unavailable: "unavailable";
312
+ warning: "warning";
313
+ }>>;
314
+ providerId: z.ZodString;
315
+ reachedReason: z.ZodNullable<z.ZodString>;
316
+ status: z.ZodEnum<{
317
+ allowed: "allowed";
318
+ blocked: "blocked";
319
+ unknown: "unknown";
320
+ warning: "warning";
321
+ }>;
322
+ windows: z.ZodArray<z.ZodObject<{
323
+ label: z.ZodNullable<z.ZodString>;
324
+ providerKey: z.ZodNullable<z.ZodString>;
325
+ resetsAtMs: z.ZodNullable<z.ZodNumber>;
326
+ status: z.ZodEnum<{
327
+ allowed: "allowed";
328
+ blocked: "blocked";
329
+ unknown: "unknown";
330
+ warning: "warning";
331
+ }>;
332
+ }, z.core.$strip>>;
333
+ }, z.core.$strip>;
334
+ type ProviderRateLimitState = z.infer<typeof providerRateLimitStateSchema>;
335
+ declare const threadEventPlanStepSchema: z.ZodObject<{
336
+ status: z.ZodOptional<z.ZodEnum<{
337
+ active: "active";
338
+ completed: "completed";
339
+ failed: "failed";
340
+ pending: "pending";
341
+ }>>;
342
+ step: z.ZodString;
343
+ }, z.core.$strip>;
344
+ type ThreadEventPlanStep = z.infer<typeof threadEventPlanStepSchema>;
345
+ declare const threadEventSearchModeSchema: z.ZodEnum<{
346
+ content: "content";
347
+ list: "list";
348
+ path: "path";
349
+ }>;
350
+ type ThreadEventSearchMode = z.infer<typeof threadEventSearchModeSchema>;
351
+ declare const threadEventUserContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
352
+ text: z.ZodString;
353
+ type: z.ZodLiteral<"text">;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ type: z.ZodLiteral<"image">;
356
+ url: z.ZodString;
357
+ }, z.core.$strip>, z.ZodObject<{
358
+ path: z.ZodString;
359
+ type: z.ZodLiteral<"localImage">;
360
+ }, z.core.$strip>, z.ZodObject<{
361
+ path: z.ZodString;
362
+ type: z.ZodLiteral<"localFile">;
363
+ }, z.core.$strip>], "type">;
364
+ type ThreadEventUserContent = z.infer<typeof threadEventUserContentSchema>;
365
+ declare const threadEventTokenUsageBreakdownSchema: z.ZodObject<{
366
+ cachedInputTokens: z.ZodNumber;
367
+ inputTokens: z.ZodNumber;
368
+ outputTokens: z.ZodNumber;
369
+ reasoningOutputTokens: z.ZodNumber;
370
+ totalTokens: z.ZodNumber;
371
+ }, z.core.$strip>;
372
+ type ThreadEventTokenUsageBreakdown = z.infer<typeof threadEventTokenUsageBreakdownSchema>;
373
+ declare const threadEventContextWindowUsageSchema: z.ZodObject<{
374
+ estimated: z.ZodBoolean;
375
+ modelContextWindow: z.ZodNullable<z.ZodNumber>;
376
+ usedTokens: z.ZodNullable<z.ZodNumber>;
377
+ }, z.core.$strip>;
378
+ type ThreadEventContextWindowUsage = z.infer<typeof threadEventContextWindowUsageSchema>;
379
+ declare const providerRawEventSchema: z.ZodObject<{
380
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
381
+ jsonrpc: z.ZodLiteral<"2.0">;
382
+ method: z.ZodString;
383
+ params: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
384
+ }, z.core.$strip>;
385
+ type ProviderRawEvent = z.infer<typeof providerRawEventSchema>;
386
+
220
387
  declare function toPositiveNumber(value: unknown): number | undefined;
221
388
 
222
389
  declare const pendingInteractionCommandActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1092,173 +1259,6 @@ declare const providerInteractionOutcomeSchema: z.ZodUnion<readonly [z.ZodObject
1092
1259
  type ProviderInteractionOutcome = z.infer<typeof providerInteractionOutcomeSchema>;
1093
1260
  declare function isApprovalInteractionOutcome(outcome: ProviderInteractionOutcome): outcome is ApprovalInteractionOutcome;
1094
1261
 
1095
- declare const threadEventItemStatusSchema: z.ZodEnum<{
1096
- completed: "completed";
1097
- failed: "failed";
1098
- interrupted: "interrupted";
1099
- pending: "pending";
1100
- }>;
1101
- type ThreadEventItemStatus = z.infer<typeof threadEventItemStatusSchema>;
1102
- declare const threadEventTurnStatusSchema: z.ZodEnum<{
1103
- completed: "completed";
1104
- failed: "failed";
1105
- interrupted: "interrupted";
1106
- }>;
1107
- type ThreadEventTurnStatus = z.infer<typeof threadEventTurnStatusSchema>;
1108
- declare const providerErrorCategorySchema: z.ZodEnum<{
1109
- "active-turn-not-steerable": "active-turn-not-steerable";
1110
- "bad-request": "bad-request";
1111
- "budget-exceeded": "budget-exceeded";
1112
- "connection-failed": "connection-failed";
1113
- "context-window-exceeded": "context-window-exceeded";
1114
- "max-output-tokens": "max-output-tokens";
1115
- "max-turns": "max-turns";
1116
- "rate-limit": "rate-limit";
1117
- "stream-disconnected": "stream-disconnected";
1118
- "structured-output-retries": "structured-output-retries";
1119
- "thread-rollback-failed": "thread-rollback-failed";
1120
- "too-many-failed-attempts": "too-many-failed-attempts";
1121
- billing: "billing";
1122
- internal: "internal";
1123
- overloaded: "overloaded";
1124
- policy: "policy";
1125
- sandbox: "sandbox";
1126
- unauthorized: "unauthorized";
1127
- unknown: "unknown";
1128
- }>;
1129
- type ProviderErrorCategory = z.infer<typeof providerErrorCategorySchema>;
1130
- declare const providerErrorInfoSchema: z.ZodObject<{
1131
- category: z.ZodEnum<{
1132
- "active-turn-not-steerable": "active-turn-not-steerable";
1133
- "bad-request": "bad-request";
1134
- "budget-exceeded": "budget-exceeded";
1135
- "connection-failed": "connection-failed";
1136
- "context-window-exceeded": "context-window-exceeded";
1137
- "max-output-tokens": "max-output-tokens";
1138
- "max-turns": "max-turns";
1139
- "rate-limit": "rate-limit";
1140
- "stream-disconnected": "stream-disconnected";
1141
- "structured-output-retries": "structured-output-retries";
1142
- "thread-rollback-failed": "thread-rollback-failed";
1143
- "too-many-failed-attempts": "too-many-failed-attempts";
1144
- billing: "billing";
1145
- internal: "internal";
1146
- overloaded: "overloaded";
1147
- policy: "policy";
1148
- sandbox: "sandbox";
1149
- unauthorized: "unauthorized";
1150
- unknown: "unknown";
1151
- }>;
1152
- httpStatusCode: z.ZodNullable<z.ZodNumber>;
1153
- providerCode: z.ZodNullable<z.ZodString>;
1154
- }, z.core.$strip>;
1155
- type ProviderErrorInfo = z.infer<typeof providerErrorInfoSchema>;
1156
- declare const providerRateLimitStatusSchema: z.ZodEnum<{
1157
- allowed: "allowed";
1158
- blocked: "blocked";
1159
- unknown: "unknown";
1160
- warning: "warning";
1161
- }>;
1162
- type ProviderRateLimitStatus = z.infer<typeof providerRateLimitStatusSchema>;
1163
- declare const providerRateLimitWindowSchema: z.ZodObject<{
1164
- label: z.ZodNullable<z.ZodString>;
1165
- providerKey: z.ZodNullable<z.ZodString>;
1166
- resetsAtMs: z.ZodNullable<z.ZodNumber>;
1167
- status: z.ZodEnum<{
1168
- allowed: "allowed";
1169
- blocked: "blocked";
1170
- unknown: "unknown";
1171
- warning: "warning";
1172
- }>;
1173
- }, z.core.$strip>;
1174
- type ProviderRateLimitWindow = z.infer<typeof providerRateLimitWindowSchema>;
1175
- declare const providerRateLimitStateSchema: z.ZodObject<{
1176
- kind: z.ZodEnum<{
1177
- "spend-control": "spend-control";
1178
- "subscription-window": "subscription-window";
1179
- credits: "credits";
1180
- unknown: "unknown";
1181
- }>;
1182
- overageReason: z.ZodNullable<z.ZodString>;
1183
- overageStatus: z.ZodNullable<z.ZodEnum<{
1184
- allowed: "allowed";
1185
- rejected: "rejected";
1186
- unavailable: "unavailable";
1187
- warning: "warning";
1188
- }>>;
1189
- providerId: z.ZodString;
1190
- reachedReason: z.ZodNullable<z.ZodString>;
1191
- status: z.ZodEnum<{
1192
- allowed: "allowed";
1193
- blocked: "blocked";
1194
- unknown: "unknown";
1195
- warning: "warning";
1196
- }>;
1197
- windows: z.ZodArray<z.ZodObject<{
1198
- label: z.ZodNullable<z.ZodString>;
1199
- providerKey: z.ZodNullable<z.ZodString>;
1200
- resetsAtMs: z.ZodNullable<z.ZodNumber>;
1201
- status: z.ZodEnum<{
1202
- allowed: "allowed";
1203
- blocked: "blocked";
1204
- unknown: "unknown";
1205
- warning: "warning";
1206
- }>;
1207
- }, z.core.$strip>>;
1208
- }, z.core.$strip>;
1209
- type ProviderRateLimitState = z.infer<typeof providerRateLimitStateSchema>;
1210
- declare const threadEventPlanStepSchema: z.ZodObject<{
1211
- status: z.ZodOptional<z.ZodEnum<{
1212
- active: "active";
1213
- completed: "completed";
1214
- failed: "failed";
1215
- pending: "pending";
1216
- }>>;
1217
- step: z.ZodString;
1218
- }, z.core.$strip>;
1219
- type ThreadEventPlanStep = z.infer<typeof threadEventPlanStepSchema>;
1220
- declare const threadEventSearchModeSchema: z.ZodEnum<{
1221
- content: "content";
1222
- list: "list";
1223
- path: "path";
1224
- }>;
1225
- type ThreadEventSearchMode = z.infer<typeof threadEventSearchModeSchema>;
1226
- declare const threadEventUserContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1227
- text: z.ZodString;
1228
- type: z.ZodLiteral<"text">;
1229
- }, z.core.$strip>, z.ZodObject<{
1230
- type: z.ZodLiteral<"image">;
1231
- url: z.ZodString;
1232
- }, z.core.$strip>, z.ZodObject<{
1233
- path: z.ZodString;
1234
- type: z.ZodLiteral<"localImage">;
1235
- }, z.core.$strip>, z.ZodObject<{
1236
- path: z.ZodString;
1237
- type: z.ZodLiteral<"localFile">;
1238
- }, z.core.$strip>], "type">;
1239
- type ThreadEventUserContent = z.infer<typeof threadEventUserContentSchema>;
1240
- declare const threadEventTokenUsageBreakdownSchema: z.ZodObject<{
1241
- cachedInputTokens: z.ZodNumber;
1242
- inputTokens: z.ZodNumber;
1243
- outputTokens: z.ZodNumber;
1244
- reasoningOutputTokens: z.ZodNumber;
1245
- totalTokens: z.ZodNumber;
1246
- }, z.core.$strip>;
1247
- type ThreadEventTokenUsageBreakdown = z.infer<typeof threadEventTokenUsageBreakdownSchema>;
1248
- declare const threadEventContextWindowUsageSchema: z.ZodObject<{
1249
- estimated: z.ZodBoolean;
1250
- modelContextWindow: z.ZodNullable<z.ZodNumber>;
1251
- usedTokens: z.ZodNullable<z.ZodNumber>;
1252
- }, z.core.$strip>;
1253
- type ThreadEventContextWindowUsage = z.infer<typeof threadEventContextWindowUsageSchema>;
1254
- declare const providerRawEventSchema: z.ZodObject<{
1255
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1256
- jsonrpc: z.ZodLiteral<"2.0">;
1257
- method: z.ZodString;
1258
- params: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
1259
- }, z.core.$strip>;
1260
- type ProviderRawEvent = z.infer<typeof providerRawEventSchema>;
1261
-
1262
1262
  declare const reasoningLevelValues: readonly ["none", "low", "medium", "high", "xhigh", "ultracode", "max", "ultra"];
1263
1263
  declare const reasoningLevelSchema: z.ZodEnum<{
1264
1264
  high: "high";
@@ -1998,6 +1998,13 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1998
1998
  }, z.core.$strip>, z.ZodObject<{
1999
1999
  path: z.ZodString;
2000
2000
  type: z.ZodLiteral<"imageView">;
2001
+ }, z.core.$strip>, z.ZodObject<{
2002
+ error: z.ZodNullable<z.ZodString>;
2003
+ path: z.ZodNullable<z.ZodString>;
2004
+ prompt: z.ZodNullable<z.ZodString>;
2005
+ result: z.ZodOptional<z.ZodString>;
2006
+ transparentBackground: z.ZodBoolean;
2007
+ type: z.ZodLiteral<"imageGeneration">;
2001
2008
  }, z.core.$strip>, z.ZodObject<{
2002
2009
  description: z.ZodString;
2003
2010
  error: z.ZodOptional<z.ZodString>;
@@ -2281,6 +2288,13 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2281
2288
  }, z.core.$strip>, z.ZodObject<{
2282
2289
  path: z.ZodString;
2283
2290
  type: z.ZodLiteral<"imageView">;
2291
+ }, z.core.$strip>, z.ZodObject<{
2292
+ error: z.ZodNullable<z.ZodString>;
2293
+ path: z.ZodNullable<z.ZodString>;
2294
+ prompt: z.ZodNullable<z.ZodString>;
2295
+ result: z.ZodOptional<z.ZodString>;
2296
+ transparentBackground: z.ZodBoolean;
2297
+ type: z.ZodLiteral<"imageGeneration">;
2284
2298
  }, z.core.$strip>, z.ZodObject<{
2285
2299
  description: z.ZodString;
2286
2300
  error: z.ZodOptional<z.ZodString>;
@@ -2481,6 +2495,13 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2481
2495
  }, z.core.$strip>, z.ZodObject<{
2482
2496
  path: z.ZodString;
2483
2497
  type: z.ZodLiteral<"imageView">;
2498
+ }, z.core.$strip>, z.ZodObject<{
2499
+ error: z.ZodNullable<z.ZodString>;
2500
+ path: z.ZodNullable<z.ZodString>;
2501
+ prompt: z.ZodNullable<z.ZodString>;
2502
+ result: z.ZodOptional<z.ZodString>;
2503
+ transparentBackground: z.ZodBoolean;
2504
+ type: z.ZodLiteral<"imageGeneration">;
2484
2505
  }, z.core.$strip>, z.ZodObject<{
2485
2506
  description: z.ZodString;
2486
2507
  error: z.ZodOptional<z.ZodString>;
@@ -3082,6 +3103,13 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
3082
3103
  }, z.core.$strip>, z.ZodObject<{
3083
3104
  path: z.ZodString;
3084
3105
  type: z.ZodLiteral<"imageView">;
3106
+ }, z.core.$strip>, z.ZodObject<{
3107
+ error: z.ZodNullable<z.ZodString>;
3108
+ path: z.ZodNullable<z.ZodString>;
3109
+ prompt: z.ZodNullable<z.ZodString>;
3110
+ result: z.ZodOptional<z.ZodString>;
3111
+ transparentBackground: z.ZodBoolean;
3112
+ type: z.ZodLiteral<"imageGeneration">;
3085
3113
  }, z.core.$strip>, z.ZodObject<{
3086
3114
  description: z.ZodString;
3087
3115
  error: z.ZodOptional<z.ZodString>;
@@ -3282,6 +3310,13 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
3282
3310
  }, z.core.$strip>, z.ZodObject<{
3283
3311
  path: z.ZodString;
3284
3312
  type: z.ZodLiteral<"imageView">;
3313
+ }, z.core.$strip>, z.ZodObject<{
3314
+ error: z.ZodNullable<z.ZodString>;
3315
+ path: z.ZodNullable<z.ZodString>;
3316
+ prompt: z.ZodNullable<z.ZodString>;
3317
+ result: z.ZodOptional<z.ZodString>;
3318
+ transparentBackground: z.ZodBoolean;
3319
+ type: z.ZodLiteral<"imageGeneration">;
3285
3320
  }, z.core.$strip>, z.ZodObject<{
3286
3321
  description: z.ZodString;
3287
3322
  error: z.ZodOptional<z.ZodString>;