librechat-data-provider 0.8.521 → 0.8.522

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 (57) hide show
  1. package/dist/{data-service-pwrlWjJs.mjs → data-service-CaB7saTP.mjs} +1145 -37
  2. package/dist/data-service-CaB7saTP.mjs.map +1 -0
  3. package/dist/{data-service-DOIF4BkW.js → data-service-D5kHzBt-.js} +1588 -36
  4. package/dist/data-service-D5kHzBt-.js.map +1 -0
  5. package/dist/index.js +947 -36
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +825 -37
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react-query/index.js +2 -1
  10. package/dist/react-query/index.js.map +1 -1
  11. package/dist/react-query/index.mjs +2 -1
  12. package/dist/react-query/index.mjs.map +1 -1
  13. package/dist/types/accessPermissions.d.ts +4 -0
  14. package/dist/types/actions.d.ts +2 -2
  15. package/dist/types/agentToolOptions.d.ts +11 -0
  16. package/dist/types/api-endpoints.d.ts +18 -0
  17. package/dist/types/bedrock.d.ts +168 -0
  18. package/dist/types/cadence.d.ts +33 -0
  19. package/dist/types/codeEnvRef.d.ts +21 -0
  20. package/dist/types/config.d.ts +9060 -1135
  21. package/dist/types/data-service.d.ts +40 -2
  22. package/dist/types/file-config.d.ts +1 -0
  23. package/dist/types/filters.d.ts +1422 -0
  24. package/dist/types/generate.d.ts +79 -1
  25. package/dist/types/index.d.ts +10 -0
  26. package/dist/types/keys.d.ts +23 -2
  27. package/dist/types/langchain.d.ts +4 -0
  28. package/dist/types/limits.d.ts +13 -0
  29. package/dist/types/mcp.d.ts +299 -210
  30. package/dist/types/messages.d.ts +5 -0
  31. package/dist/types/models.d.ts +732 -68
  32. package/dist/types/parameterSettings.d.ts +5 -1
  33. package/dist/types/parsers.d.ts +10 -0
  34. package/dist/types/permissions.d.ts +42 -1
  35. package/dist/types/providers.d.ts +36 -0
  36. package/dist/types/request.d.ts +2 -2
  37. package/dist/types/roles.d.ts +34 -0
  38. package/dist/types/runSteps.d.ts +59 -0
  39. package/dist/types/schemas.d.ts +1191 -26
  40. package/dist/types/stateful-code.d.ts +7 -0
  41. package/dist/types/types/agents.d.ts +92 -7
  42. package/dist/types/types/assistants.d.ts +96 -5
  43. package/dist/types/types/files.d.ts +12 -2
  44. package/dist/types/types/index.d.ts +2 -0
  45. package/dist/types/types/insights.d.ts +62 -0
  46. package/dist/types/types/mutations.d.ts +1 -0
  47. package/dist/types/types/queries.d.ts +30 -2
  48. package/dist/types/types/queuedTurns.d.ts +870 -0
  49. package/dist/types/types/runs.d.ts +95 -4
  50. package/dist/types/types/schedules.d.ts +306 -0
  51. package/dist/types/types/skills.d.ts +9 -0
  52. package/dist/types/types/subagents.d.ts +159 -0
  53. package/dist/types/types/web.d.ts +12 -2
  54. package/dist/types/types.d.ts +61 -1
  55. package/package.json +4 -2
  56. package/dist/data-service-DOIF4BkW.js.map +0 -1
  57. package/dist/data-service-pwrlWjJs.mjs.map +0 -1
@@ -0,0 +1,870 @@
1
+ import { z } from 'zod';
2
+ export declare const agentQueuedTurnStatuses: readonly ["queued", "claimed", "admitted", "cancelled", "dead"];
3
+ export declare const agentQueuedTurnDurability: readonly ["process_local", "durable"];
4
+ export declare const agentQueuedTurnFileRefSchema: z.ZodObject<{
5
+ file_id: z.ZodString;
6
+ type: z.ZodOptional<z.ZodString>;
7
+ filepath: z.ZodOptional<z.ZodString>;
8
+ filename: z.ZodOptional<z.ZodString>;
9
+ height: z.ZodOptional<z.ZodNumber>;
10
+ width: z.ZodOptional<z.ZodNumber>;
11
+ bytes: z.ZodOptional<z.ZodNumber>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ file_id: string;
14
+ type?: string | undefined;
15
+ filename?: string | undefined;
16
+ filepath?: string | undefined;
17
+ bytes?: number | undefined;
18
+ width?: number | undefined;
19
+ height?: number | undefined;
20
+ }, {
21
+ file_id: string;
22
+ type?: string | undefined;
23
+ filename?: string | undefined;
24
+ filepath?: string | undefined;
25
+ bytes?: number | undefined;
26
+ width?: number | undefined;
27
+ height?: number | undefined;
28
+ }>;
29
+ export type TAgentQueuedTurnFileRef = z.infer<typeof agentQueuedTurnFileRefSchema>;
30
+ export declare const enqueueAgentQueuedTurnSchema: z.ZodObject<{
31
+ conversationId: z.ZodString;
32
+ parentMessageId: z.ZodString;
33
+ clientRequestId: z.ZodString;
34
+ text: z.ZodString;
35
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
+ file_id: z.ZodString;
37
+ type: z.ZodOptional<z.ZodString>;
38
+ filepath: z.ZodOptional<z.ZodString>;
39
+ filename: z.ZodOptional<z.ZodString>;
40
+ height: z.ZodOptional<z.ZodNumber>;
41
+ width: z.ZodOptional<z.ZodNumber>;
42
+ bytes: z.ZodOptional<z.ZodNumber>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ file_id: string;
45
+ type?: string | undefined;
46
+ filename?: string | undefined;
47
+ filepath?: string | undefined;
48
+ bytes?: number | undefined;
49
+ width?: number | undefined;
50
+ height?: number | undefined;
51
+ }, {
52
+ file_id: string;
53
+ type?: string | undefined;
54
+ filename?: string | undefined;
55
+ filepath?: string | undefined;
56
+ bytes?: number | undefined;
57
+ width?: number | undefined;
58
+ height?: number | undefined;
59
+ }>, "many">>;
60
+ quotes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ manualSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
+ priority: z.ZodOptional<z.ZodBoolean>;
63
+ expectedPredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ conversationId: string;
66
+ parentMessageId: string;
67
+ text: string;
68
+ clientRequestId: string;
69
+ manualSkills?: string[] | undefined;
70
+ quotes?: string[] | undefined;
71
+ expectedPredecessorCreatedAt?: number | undefined;
72
+ files?: {
73
+ file_id: string;
74
+ type?: string | undefined;
75
+ filename?: string | undefined;
76
+ filepath?: string | undefined;
77
+ bytes?: number | undefined;
78
+ width?: number | undefined;
79
+ height?: number | undefined;
80
+ }[] | undefined;
81
+ priority?: boolean | undefined;
82
+ }, {
83
+ conversationId: string;
84
+ parentMessageId: string;
85
+ text: string;
86
+ clientRequestId: string;
87
+ manualSkills?: string[] | undefined;
88
+ quotes?: string[] | undefined;
89
+ expectedPredecessorCreatedAt?: number | undefined;
90
+ files?: {
91
+ file_id: string;
92
+ type?: string | undefined;
93
+ filename?: string | undefined;
94
+ filepath?: string | undefined;
95
+ bytes?: number | undefined;
96
+ width?: number | undefined;
97
+ height?: number | undefined;
98
+ }[] | undefined;
99
+ priority?: boolean | undefined;
100
+ }>;
101
+ export type TEnqueueAgentQueuedTurnRequest = z.infer<typeof enqueueAgentQueuedTurnSchema>;
102
+ export declare const listAgentQueuedTurnsSchema: z.ZodObject<{
103
+ conversationId: z.ZodString;
104
+ clientRequestIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ conversationId: string;
107
+ clientRequestIds?: string[] | undefined;
108
+ }, {
109
+ conversationId: string;
110
+ clientRequestIds?: string[] | undefined;
111
+ }>;
112
+ export type TListAgentQueuedTurnsRequest = z.infer<typeof listAgentQueuedTurnsSchema>;
113
+ export declare const cancelAgentQueuedTurnSchema: z.ZodObject<{
114
+ queuedTurnId: z.ZodString;
115
+ }, "strip", z.ZodTypeAny, {
116
+ queuedTurnId: string;
117
+ }, {
118
+ queuedTurnId: string;
119
+ }>;
120
+ export type TCancelAgentQueuedTurnRequest = z.infer<typeof cancelAgentQueuedTurnSchema>;
121
+ export declare const agentQueuedTurnReceiptSchema: z.ZodObject<{
122
+ conversationId: z.ZodString;
123
+ parentMessageId: z.ZodString;
124
+ clientRequestId: z.ZodString;
125
+ text: z.ZodString;
126
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
127
+ file_id: z.ZodString;
128
+ type: z.ZodOptional<z.ZodString>;
129
+ filepath: z.ZodOptional<z.ZodString>;
130
+ filename: z.ZodOptional<z.ZodString>;
131
+ height: z.ZodOptional<z.ZodNumber>;
132
+ width: z.ZodOptional<z.ZodNumber>;
133
+ bytes: z.ZodOptional<z.ZodNumber>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ file_id: string;
136
+ type?: string | undefined;
137
+ filename?: string | undefined;
138
+ filepath?: string | undefined;
139
+ bytes?: number | undefined;
140
+ width?: number | undefined;
141
+ height?: number | undefined;
142
+ }, {
143
+ file_id: string;
144
+ type?: string | undefined;
145
+ filename?: string | undefined;
146
+ filepath?: string | undefined;
147
+ bytes?: number | undefined;
148
+ width?: number | undefined;
149
+ height?: number | undefined;
150
+ }>, "many">>;
151
+ quotes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
152
+ manualSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
+ priority: z.ZodOptional<z.ZodBoolean>;
154
+ expectedPredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
155
+ } & {
156
+ queuedTurnId: z.ZodString;
157
+ status: z.ZodEnum<["queued", "claimed", "admitted", "cancelled", "dead"]>;
158
+ /** Effective generation boundary consumed by an admitted turn. This can
159
+ * advance beyond the originally captured root as queued turns chain. */
160
+ effectivePredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
161
+ /** Explicitly proves that this admission consumed no predecessor boundary. */
162
+ rootPredecessor: z.ZodOptional<z.ZodLiteral<true>>;
163
+ position: z.ZodOptional<z.ZodNumber>;
164
+ /** Immutable queue sequence retained as `revision` for wire compatibility. */
165
+ revision: z.ZodNumber;
166
+ failure: z.ZodOptional<z.ZodObject<{
167
+ code: z.ZodString;
168
+ message: z.ZodOptional<z.ZodString>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ code: string;
171
+ message?: string | undefined;
172
+ }, {
173
+ code: string;
174
+ message?: string | undefined;
175
+ }>>;
176
+ createdAt: z.ZodString;
177
+ updatedAt: z.ZodString;
178
+ }, "strip", z.ZodTypeAny, {
179
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
180
+ conversationId: string;
181
+ parentMessageId: string;
182
+ createdAt: string;
183
+ updatedAt: string;
184
+ text: string;
185
+ clientRequestId: string;
186
+ queuedTurnId: string;
187
+ revision: number;
188
+ manualSkills?: string[] | undefined;
189
+ quotes?: string[] | undefined;
190
+ expectedPredecessorCreatedAt?: number | undefined;
191
+ position?: number | undefined;
192
+ files?: {
193
+ file_id: string;
194
+ type?: string | undefined;
195
+ filename?: string | undefined;
196
+ filepath?: string | undefined;
197
+ bytes?: number | undefined;
198
+ width?: number | undefined;
199
+ height?: number | undefined;
200
+ }[] | undefined;
201
+ priority?: boolean | undefined;
202
+ effectivePredecessorCreatedAt?: number | undefined;
203
+ rootPredecessor?: true | undefined;
204
+ failure?: {
205
+ code: string;
206
+ message?: string | undefined;
207
+ } | undefined;
208
+ }, {
209
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
210
+ conversationId: string;
211
+ parentMessageId: string;
212
+ createdAt: string;
213
+ updatedAt: string;
214
+ text: string;
215
+ clientRequestId: string;
216
+ queuedTurnId: string;
217
+ revision: number;
218
+ manualSkills?: string[] | undefined;
219
+ quotes?: string[] | undefined;
220
+ expectedPredecessorCreatedAt?: number | undefined;
221
+ position?: number | undefined;
222
+ files?: {
223
+ file_id: string;
224
+ type?: string | undefined;
225
+ filename?: string | undefined;
226
+ filepath?: string | undefined;
227
+ bytes?: number | undefined;
228
+ width?: number | undefined;
229
+ height?: number | undefined;
230
+ }[] | undefined;
231
+ priority?: boolean | undefined;
232
+ effectivePredecessorCreatedAt?: number | undefined;
233
+ rootPredecessor?: true | undefined;
234
+ failure?: {
235
+ code: string;
236
+ message?: string | undefined;
237
+ } | undefined;
238
+ }>;
239
+ export type TAgentQueuedTurnReceipt = z.infer<typeof agentQueuedTurnReceiptSchema>;
240
+ export declare const agentQueuedTurnCapabilitySchema: z.ZodDiscriminatedUnion<"supported", [z.ZodObject<{
241
+ supported: z.ZodLiteral<false>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ supported: false;
244
+ }, {
245
+ supported: false;
246
+ }>, z.ZodObject<{
247
+ supported: z.ZodLiteral<true>;
248
+ durability: z.ZodEnum<["process_local", "durable"]>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ supported: true;
251
+ durability: "process_local" | "durable";
252
+ }, {
253
+ supported: true;
254
+ durability: "process_local" | "durable";
255
+ }>]>;
256
+ export type TAgentQueuedTurnCapability = z.infer<typeof agentQueuedTurnCapabilitySchema>;
257
+ export declare const enqueueAgentQueuedTurnResponseSchema: z.ZodObject<{
258
+ receipt: z.ZodObject<{
259
+ conversationId: z.ZodString;
260
+ parentMessageId: z.ZodString;
261
+ clientRequestId: z.ZodString;
262
+ text: z.ZodString;
263
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
264
+ file_id: z.ZodString;
265
+ type: z.ZodOptional<z.ZodString>;
266
+ filepath: z.ZodOptional<z.ZodString>;
267
+ filename: z.ZodOptional<z.ZodString>;
268
+ height: z.ZodOptional<z.ZodNumber>;
269
+ width: z.ZodOptional<z.ZodNumber>;
270
+ bytes: z.ZodOptional<z.ZodNumber>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ file_id: string;
273
+ type?: string | undefined;
274
+ filename?: string | undefined;
275
+ filepath?: string | undefined;
276
+ bytes?: number | undefined;
277
+ width?: number | undefined;
278
+ height?: number | undefined;
279
+ }, {
280
+ file_id: string;
281
+ type?: string | undefined;
282
+ filename?: string | undefined;
283
+ filepath?: string | undefined;
284
+ bytes?: number | undefined;
285
+ width?: number | undefined;
286
+ height?: number | undefined;
287
+ }>, "many">>;
288
+ quotes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
289
+ manualSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
290
+ priority: z.ZodOptional<z.ZodBoolean>;
291
+ expectedPredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
292
+ } & {
293
+ queuedTurnId: z.ZodString;
294
+ status: z.ZodEnum<["queued", "claimed", "admitted", "cancelled", "dead"]>;
295
+ /** Effective generation boundary consumed by an admitted turn. This can
296
+ * advance beyond the originally captured root as queued turns chain. */
297
+ effectivePredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
298
+ /** Explicitly proves that this admission consumed no predecessor boundary. */
299
+ rootPredecessor: z.ZodOptional<z.ZodLiteral<true>>;
300
+ position: z.ZodOptional<z.ZodNumber>;
301
+ /** Immutable queue sequence retained as `revision` for wire compatibility. */
302
+ revision: z.ZodNumber;
303
+ failure: z.ZodOptional<z.ZodObject<{
304
+ code: z.ZodString;
305
+ message: z.ZodOptional<z.ZodString>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ code: string;
308
+ message?: string | undefined;
309
+ }, {
310
+ code: string;
311
+ message?: string | undefined;
312
+ }>>;
313
+ createdAt: z.ZodString;
314
+ updatedAt: z.ZodString;
315
+ }, "strip", z.ZodTypeAny, {
316
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
317
+ conversationId: string;
318
+ parentMessageId: string;
319
+ createdAt: string;
320
+ updatedAt: string;
321
+ text: string;
322
+ clientRequestId: string;
323
+ queuedTurnId: string;
324
+ revision: number;
325
+ manualSkills?: string[] | undefined;
326
+ quotes?: string[] | undefined;
327
+ expectedPredecessorCreatedAt?: number | undefined;
328
+ position?: number | undefined;
329
+ files?: {
330
+ file_id: string;
331
+ type?: string | undefined;
332
+ filename?: string | undefined;
333
+ filepath?: string | undefined;
334
+ bytes?: number | undefined;
335
+ width?: number | undefined;
336
+ height?: number | undefined;
337
+ }[] | undefined;
338
+ priority?: boolean | undefined;
339
+ effectivePredecessorCreatedAt?: number | undefined;
340
+ rootPredecessor?: true | undefined;
341
+ failure?: {
342
+ code: string;
343
+ message?: string | undefined;
344
+ } | undefined;
345
+ }, {
346
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
347
+ conversationId: string;
348
+ parentMessageId: string;
349
+ createdAt: string;
350
+ updatedAt: string;
351
+ text: string;
352
+ clientRequestId: string;
353
+ queuedTurnId: string;
354
+ revision: number;
355
+ manualSkills?: string[] | undefined;
356
+ quotes?: string[] | undefined;
357
+ expectedPredecessorCreatedAt?: number | undefined;
358
+ position?: number | undefined;
359
+ files?: {
360
+ file_id: string;
361
+ type?: string | undefined;
362
+ filename?: string | undefined;
363
+ filepath?: string | undefined;
364
+ bytes?: number | undefined;
365
+ width?: number | undefined;
366
+ height?: number | undefined;
367
+ }[] | undefined;
368
+ priority?: boolean | undefined;
369
+ effectivePredecessorCreatedAt?: number | undefined;
370
+ rootPredecessor?: true | undefined;
371
+ failure?: {
372
+ code: string;
373
+ message?: string | undefined;
374
+ } | undefined;
375
+ }>;
376
+ capability: z.ZodDiscriminatedUnion<"supported", [z.ZodObject<{
377
+ supported: z.ZodLiteral<false>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ supported: false;
380
+ }, {
381
+ supported: false;
382
+ }>, z.ZodObject<{
383
+ supported: z.ZodLiteral<true>;
384
+ durability: z.ZodEnum<["process_local", "durable"]>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ supported: true;
387
+ durability: "process_local" | "durable";
388
+ }, {
389
+ supported: true;
390
+ durability: "process_local" | "durable";
391
+ }>]>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ receipt: {
394
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
395
+ conversationId: string;
396
+ parentMessageId: string;
397
+ createdAt: string;
398
+ updatedAt: string;
399
+ text: string;
400
+ clientRequestId: string;
401
+ queuedTurnId: string;
402
+ revision: number;
403
+ manualSkills?: string[] | undefined;
404
+ quotes?: string[] | undefined;
405
+ expectedPredecessorCreatedAt?: number | undefined;
406
+ position?: number | undefined;
407
+ files?: {
408
+ file_id: string;
409
+ type?: string | undefined;
410
+ filename?: string | undefined;
411
+ filepath?: string | undefined;
412
+ bytes?: number | undefined;
413
+ width?: number | undefined;
414
+ height?: number | undefined;
415
+ }[] | undefined;
416
+ priority?: boolean | undefined;
417
+ effectivePredecessorCreatedAt?: number | undefined;
418
+ rootPredecessor?: true | undefined;
419
+ failure?: {
420
+ code: string;
421
+ message?: string | undefined;
422
+ } | undefined;
423
+ };
424
+ capability: {
425
+ supported: false;
426
+ } | {
427
+ supported: true;
428
+ durability: "process_local" | "durable";
429
+ };
430
+ }, {
431
+ receipt: {
432
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
433
+ conversationId: string;
434
+ parentMessageId: string;
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ text: string;
438
+ clientRequestId: string;
439
+ queuedTurnId: string;
440
+ revision: number;
441
+ manualSkills?: string[] | undefined;
442
+ quotes?: string[] | undefined;
443
+ expectedPredecessorCreatedAt?: number | undefined;
444
+ position?: number | undefined;
445
+ files?: {
446
+ file_id: string;
447
+ type?: string | undefined;
448
+ filename?: string | undefined;
449
+ filepath?: string | undefined;
450
+ bytes?: number | undefined;
451
+ width?: number | undefined;
452
+ height?: number | undefined;
453
+ }[] | undefined;
454
+ priority?: boolean | undefined;
455
+ effectivePredecessorCreatedAt?: number | undefined;
456
+ rootPredecessor?: true | undefined;
457
+ failure?: {
458
+ code: string;
459
+ message?: string | undefined;
460
+ } | undefined;
461
+ };
462
+ capability: {
463
+ supported: false;
464
+ } | {
465
+ supported: true;
466
+ durability: "process_local" | "durable";
467
+ };
468
+ }>;
469
+ export type TEnqueueAgentQueuedTurnResponse = z.infer<typeof enqueueAgentQueuedTurnResponseSchema>;
470
+ export declare const listAgentQueuedTurnsResponseSchema: z.ZodObject<{
471
+ queuedTurns: z.ZodArray<z.ZodObject<{
472
+ conversationId: z.ZodString;
473
+ parentMessageId: z.ZodString;
474
+ clientRequestId: z.ZodString;
475
+ text: z.ZodString;
476
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
477
+ file_id: z.ZodString;
478
+ type: z.ZodOptional<z.ZodString>;
479
+ filepath: z.ZodOptional<z.ZodString>;
480
+ filename: z.ZodOptional<z.ZodString>;
481
+ height: z.ZodOptional<z.ZodNumber>;
482
+ width: z.ZodOptional<z.ZodNumber>;
483
+ bytes: z.ZodOptional<z.ZodNumber>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ file_id: string;
486
+ type?: string | undefined;
487
+ filename?: string | undefined;
488
+ filepath?: string | undefined;
489
+ bytes?: number | undefined;
490
+ width?: number | undefined;
491
+ height?: number | undefined;
492
+ }, {
493
+ file_id: string;
494
+ type?: string | undefined;
495
+ filename?: string | undefined;
496
+ filepath?: string | undefined;
497
+ bytes?: number | undefined;
498
+ width?: number | undefined;
499
+ height?: number | undefined;
500
+ }>, "many">>;
501
+ quotes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
502
+ manualSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
503
+ priority: z.ZodOptional<z.ZodBoolean>;
504
+ expectedPredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
505
+ } & {
506
+ queuedTurnId: z.ZodString;
507
+ status: z.ZodEnum<["queued", "claimed", "admitted", "cancelled", "dead"]>;
508
+ /** Effective generation boundary consumed by an admitted turn. This can
509
+ * advance beyond the originally captured root as queued turns chain. */
510
+ effectivePredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
511
+ /** Explicitly proves that this admission consumed no predecessor boundary. */
512
+ rootPredecessor: z.ZodOptional<z.ZodLiteral<true>>;
513
+ position: z.ZodOptional<z.ZodNumber>;
514
+ /** Immutable queue sequence retained as `revision` for wire compatibility. */
515
+ revision: z.ZodNumber;
516
+ failure: z.ZodOptional<z.ZodObject<{
517
+ code: z.ZodString;
518
+ message: z.ZodOptional<z.ZodString>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ code: string;
521
+ message?: string | undefined;
522
+ }, {
523
+ code: string;
524
+ message?: string | undefined;
525
+ }>>;
526
+ createdAt: z.ZodString;
527
+ updatedAt: z.ZodString;
528
+ }, "strip", z.ZodTypeAny, {
529
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
530
+ conversationId: string;
531
+ parentMessageId: string;
532
+ createdAt: string;
533
+ updatedAt: string;
534
+ text: string;
535
+ clientRequestId: string;
536
+ queuedTurnId: string;
537
+ revision: number;
538
+ manualSkills?: string[] | undefined;
539
+ quotes?: string[] | undefined;
540
+ expectedPredecessorCreatedAt?: number | undefined;
541
+ position?: number | undefined;
542
+ files?: {
543
+ file_id: string;
544
+ type?: string | undefined;
545
+ filename?: string | undefined;
546
+ filepath?: string | undefined;
547
+ bytes?: number | undefined;
548
+ width?: number | undefined;
549
+ height?: number | undefined;
550
+ }[] | undefined;
551
+ priority?: boolean | undefined;
552
+ effectivePredecessorCreatedAt?: number | undefined;
553
+ rootPredecessor?: true | undefined;
554
+ failure?: {
555
+ code: string;
556
+ message?: string | undefined;
557
+ } | undefined;
558
+ }, {
559
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
560
+ conversationId: string;
561
+ parentMessageId: string;
562
+ createdAt: string;
563
+ updatedAt: string;
564
+ text: string;
565
+ clientRequestId: string;
566
+ queuedTurnId: string;
567
+ revision: number;
568
+ manualSkills?: string[] | undefined;
569
+ quotes?: string[] | undefined;
570
+ expectedPredecessorCreatedAt?: number | undefined;
571
+ position?: number | undefined;
572
+ files?: {
573
+ file_id: string;
574
+ type?: string | undefined;
575
+ filename?: string | undefined;
576
+ filepath?: string | undefined;
577
+ bytes?: number | undefined;
578
+ width?: number | undefined;
579
+ height?: number | undefined;
580
+ }[] | undefined;
581
+ priority?: boolean | undefined;
582
+ effectivePredecessorCreatedAt?: number | undefined;
583
+ rootPredecessor?: true | undefined;
584
+ failure?: {
585
+ code: string;
586
+ message?: string | undefined;
587
+ } | undefined;
588
+ }>, "many">;
589
+ capability: z.ZodDiscriminatedUnion<"supported", [z.ZodObject<{
590
+ supported: z.ZodLiteral<false>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ supported: false;
593
+ }, {
594
+ supported: false;
595
+ }>, z.ZodObject<{
596
+ supported: z.ZodLiteral<true>;
597
+ durability: z.ZodEnum<["process_local", "durable"]>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ supported: true;
600
+ durability: "process_local" | "durable";
601
+ }, {
602
+ supported: true;
603
+ durability: "process_local" | "durable";
604
+ }>]>;
605
+ revision: z.ZodNumber;
606
+ }, "strip", z.ZodTypeAny, {
607
+ revision: number;
608
+ capability: {
609
+ supported: false;
610
+ } | {
611
+ supported: true;
612
+ durability: "process_local" | "durable";
613
+ };
614
+ queuedTurns: {
615
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
616
+ conversationId: string;
617
+ parentMessageId: string;
618
+ createdAt: string;
619
+ updatedAt: string;
620
+ text: string;
621
+ clientRequestId: string;
622
+ queuedTurnId: string;
623
+ revision: number;
624
+ manualSkills?: string[] | undefined;
625
+ quotes?: string[] | undefined;
626
+ expectedPredecessorCreatedAt?: number | undefined;
627
+ position?: number | undefined;
628
+ files?: {
629
+ file_id: string;
630
+ type?: string | undefined;
631
+ filename?: string | undefined;
632
+ filepath?: string | undefined;
633
+ bytes?: number | undefined;
634
+ width?: number | undefined;
635
+ height?: number | undefined;
636
+ }[] | undefined;
637
+ priority?: boolean | undefined;
638
+ effectivePredecessorCreatedAt?: number | undefined;
639
+ rootPredecessor?: true | undefined;
640
+ failure?: {
641
+ code: string;
642
+ message?: string | undefined;
643
+ } | undefined;
644
+ }[];
645
+ }, {
646
+ revision: number;
647
+ capability: {
648
+ supported: false;
649
+ } | {
650
+ supported: true;
651
+ durability: "process_local" | "durable";
652
+ };
653
+ queuedTurns: {
654
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
655
+ conversationId: string;
656
+ parentMessageId: string;
657
+ createdAt: string;
658
+ updatedAt: string;
659
+ text: string;
660
+ clientRequestId: string;
661
+ queuedTurnId: string;
662
+ revision: number;
663
+ manualSkills?: string[] | undefined;
664
+ quotes?: string[] | undefined;
665
+ expectedPredecessorCreatedAt?: number | undefined;
666
+ position?: number | undefined;
667
+ files?: {
668
+ file_id: string;
669
+ type?: string | undefined;
670
+ filename?: string | undefined;
671
+ filepath?: string | undefined;
672
+ bytes?: number | undefined;
673
+ width?: number | undefined;
674
+ height?: number | undefined;
675
+ }[] | undefined;
676
+ priority?: boolean | undefined;
677
+ effectivePredecessorCreatedAt?: number | undefined;
678
+ rootPredecessor?: true | undefined;
679
+ failure?: {
680
+ code: string;
681
+ message?: string | undefined;
682
+ } | undefined;
683
+ }[];
684
+ }>;
685
+ export type TListAgentQueuedTurnsResponse = z.infer<typeof listAgentQueuedTurnsResponseSchema>;
686
+ export declare const cancelAgentQueuedTurnResponseSchema: z.ZodObject<{
687
+ receipt: z.ZodObject<{
688
+ conversationId: z.ZodString;
689
+ parentMessageId: z.ZodString;
690
+ clientRequestId: z.ZodString;
691
+ text: z.ZodString;
692
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
693
+ file_id: z.ZodString;
694
+ type: z.ZodOptional<z.ZodString>;
695
+ filepath: z.ZodOptional<z.ZodString>;
696
+ filename: z.ZodOptional<z.ZodString>;
697
+ height: z.ZodOptional<z.ZodNumber>;
698
+ width: z.ZodOptional<z.ZodNumber>;
699
+ bytes: z.ZodOptional<z.ZodNumber>;
700
+ }, "strip", z.ZodTypeAny, {
701
+ file_id: string;
702
+ type?: string | undefined;
703
+ filename?: string | undefined;
704
+ filepath?: string | undefined;
705
+ bytes?: number | undefined;
706
+ width?: number | undefined;
707
+ height?: number | undefined;
708
+ }, {
709
+ file_id: string;
710
+ type?: string | undefined;
711
+ filename?: string | undefined;
712
+ filepath?: string | undefined;
713
+ bytes?: number | undefined;
714
+ width?: number | undefined;
715
+ height?: number | undefined;
716
+ }>, "many">>;
717
+ quotes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
718
+ manualSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
719
+ priority: z.ZodOptional<z.ZodBoolean>;
720
+ expectedPredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
721
+ } & {
722
+ queuedTurnId: z.ZodString;
723
+ status: z.ZodEnum<["queued", "claimed", "admitted", "cancelled", "dead"]>;
724
+ /** Effective generation boundary consumed by an admitted turn. This can
725
+ * advance beyond the originally captured root as queued turns chain. */
726
+ effectivePredecessorCreatedAt: z.ZodOptional<z.ZodNumber>;
727
+ /** Explicitly proves that this admission consumed no predecessor boundary. */
728
+ rootPredecessor: z.ZodOptional<z.ZodLiteral<true>>;
729
+ position: z.ZodOptional<z.ZodNumber>;
730
+ /** Immutable queue sequence retained as `revision` for wire compatibility. */
731
+ revision: z.ZodNumber;
732
+ failure: z.ZodOptional<z.ZodObject<{
733
+ code: z.ZodString;
734
+ message: z.ZodOptional<z.ZodString>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ code: string;
737
+ message?: string | undefined;
738
+ }, {
739
+ code: string;
740
+ message?: string | undefined;
741
+ }>>;
742
+ createdAt: z.ZodString;
743
+ updatedAt: z.ZodString;
744
+ }, "strip", z.ZodTypeAny, {
745
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
746
+ conversationId: string;
747
+ parentMessageId: string;
748
+ createdAt: string;
749
+ updatedAt: string;
750
+ text: string;
751
+ clientRequestId: string;
752
+ queuedTurnId: string;
753
+ revision: number;
754
+ manualSkills?: string[] | undefined;
755
+ quotes?: string[] | undefined;
756
+ expectedPredecessorCreatedAt?: number | undefined;
757
+ position?: number | undefined;
758
+ files?: {
759
+ file_id: string;
760
+ type?: string | undefined;
761
+ filename?: string | undefined;
762
+ filepath?: string | undefined;
763
+ bytes?: number | undefined;
764
+ width?: number | undefined;
765
+ height?: number | undefined;
766
+ }[] | undefined;
767
+ priority?: boolean | undefined;
768
+ effectivePredecessorCreatedAt?: number | undefined;
769
+ rootPredecessor?: true | undefined;
770
+ failure?: {
771
+ code: string;
772
+ message?: string | undefined;
773
+ } | undefined;
774
+ }, {
775
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
776
+ conversationId: string;
777
+ parentMessageId: string;
778
+ createdAt: string;
779
+ updatedAt: string;
780
+ text: string;
781
+ clientRequestId: string;
782
+ queuedTurnId: string;
783
+ revision: number;
784
+ manualSkills?: string[] | undefined;
785
+ quotes?: string[] | undefined;
786
+ expectedPredecessorCreatedAt?: number | undefined;
787
+ position?: number | undefined;
788
+ files?: {
789
+ file_id: string;
790
+ type?: string | undefined;
791
+ filename?: string | undefined;
792
+ filepath?: string | undefined;
793
+ bytes?: number | undefined;
794
+ width?: number | undefined;
795
+ height?: number | undefined;
796
+ }[] | undefined;
797
+ priority?: boolean | undefined;
798
+ effectivePredecessorCreatedAt?: number | undefined;
799
+ rootPredecessor?: true | undefined;
800
+ failure?: {
801
+ code: string;
802
+ message?: string | undefined;
803
+ } | undefined;
804
+ }>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ receipt: {
807
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
808
+ conversationId: string;
809
+ parentMessageId: string;
810
+ createdAt: string;
811
+ updatedAt: string;
812
+ text: string;
813
+ clientRequestId: string;
814
+ queuedTurnId: string;
815
+ revision: number;
816
+ manualSkills?: string[] | undefined;
817
+ quotes?: string[] | undefined;
818
+ expectedPredecessorCreatedAt?: number | undefined;
819
+ position?: number | undefined;
820
+ files?: {
821
+ file_id: string;
822
+ type?: string | undefined;
823
+ filename?: string | undefined;
824
+ filepath?: string | undefined;
825
+ bytes?: number | undefined;
826
+ width?: number | undefined;
827
+ height?: number | undefined;
828
+ }[] | undefined;
829
+ priority?: boolean | undefined;
830
+ effectivePredecessorCreatedAt?: number | undefined;
831
+ rootPredecessor?: true | undefined;
832
+ failure?: {
833
+ code: string;
834
+ message?: string | undefined;
835
+ } | undefined;
836
+ };
837
+ }, {
838
+ receipt: {
839
+ status: "cancelled" | "queued" | "claimed" | "admitted" | "dead";
840
+ conversationId: string;
841
+ parentMessageId: string;
842
+ createdAt: string;
843
+ updatedAt: string;
844
+ text: string;
845
+ clientRequestId: string;
846
+ queuedTurnId: string;
847
+ revision: number;
848
+ manualSkills?: string[] | undefined;
849
+ quotes?: string[] | undefined;
850
+ expectedPredecessorCreatedAt?: number | undefined;
851
+ position?: number | undefined;
852
+ files?: {
853
+ file_id: string;
854
+ type?: string | undefined;
855
+ filename?: string | undefined;
856
+ filepath?: string | undefined;
857
+ bytes?: number | undefined;
858
+ width?: number | undefined;
859
+ height?: number | undefined;
860
+ }[] | undefined;
861
+ priority?: boolean | undefined;
862
+ effectivePredecessorCreatedAt?: number | undefined;
863
+ rootPredecessor?: true | undefined;
864
+ failure?: {
865
+ code: string;
866
+ message?: string | undefined;
867
+ } | undefined;
868
+ };
869
+ }>;
870
+ export type TCancelAgentQueuedTurnResponse = z.infer<typeof cancelAgentQueuedTurnResponseSchema>;