@oxy.so/contracts 1.2.0 → 1.3.0

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 (53) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/identity.js +3 -2
  3. package/dist/cjs/identityMove.js +111 -40
  4. package/dist/cjs/identityProof.js +164 -0
  5. package/dist/cjs/identityRecovery.js +51 -0
  6. package/dist/cjs/index.js +50 -21
  7. package/dist/cjs/inference/identifiers.js +3 -1
  8. package/dist/cjs/inference/providerConnection.js +1 -1
  9. package/dist/cjs/inference/request.js +15 -1
  10. package/dist/cjs/inference/streamEvents.js +24 -2
  11. package/dist/cjs/username.js +70 -2
  12. package/dist/cjs/webIdentityCarrier.js +112 -53
  13. package/dist/cjs/webauthn.js +14 -0
  14. package/dist/esm/.tsbuildinfo +1 -1
  15. package/dist/esm/identity.js +3 -2
  16. package/dist/esm/identityMove.js +105 -39
  17. package/dist/esm/identityProof.js +159 -0
  18. package/dist/esm/identityRecovery.js +48 -0
  19. package/dist/esm/index.js +11 -8
  20. package/dist/esm/inference/identifiers.js +2 -0
  21. package/dist/esm/inference/providerConnection.js +2 -2
  22. package/dist/esm/inference/request.js +14 -0
  23. package/dist/esm/inference/streamEvents.js +24 -2
  24. package/dist/esm/username.js +69 -1
  25. package/dist/esm/webIdentityCarrier.js +111 -52
  26. package/dist/esm/webauthn.js +14 -0
  27. package/dist/types/.tsbuildinfo +1 -1
  28. package/dist/types/accountGraph.d.ts +7 -7
  29. package/dist/types/agency.d.ts +24 -24
  30. package/dist/types/browserHub.d.ts +16 -16
  31. package/dist/types/deviceDirectory.d.ts +28 -28
  32. package/dist/types/externalIdentity.d.ts +7 -7
  33. package/dist/types/identity.d.ts +3 -2
  34. package/dist/types/identityMove.d.ts +119 -43
  35. package/dist/types/identityProof.d.ts +156 -0
  36. package/dist/types/identityRecovery.d.ts +246 -0
  37. package/dist/types/index.d.ts +13 -11
  38. package/dist/types/inference/identifiers.d.ts +2 -0
  39. package/dist/types/inference/providerConnection.d.ts +40 -40
  40. package/dist/types/inference/request.d.ts +84 -36
  41. package/dist/types/inference/streamEvents.d.ts +57 -1
  42. package/dist/types/keyRotation.d.ts +2 -2
  43. package/dist/types/oauth.d.ts +30 -30
  44. package/dist/types/sessionStatus.d.ts +6 -6
  45. package/dist/types/transparency.d.ts +10 -10
  46. package/dist/types/userResponse.d.ts +18 -18
  47. package/dist/types/username.d.ts +25 -2
  48. package/dist/types/webIdentityCarrier.d.ts +767 -159
  49. package/dist/types/webauthn.d.ts +208 -0
  50. package/package.json +1 -1
  51. package/dist/cjs/devicePairing.js +0 -138
  52. package/dist/esm/devicePairing.js +0 -135
  53. package/dist/types/devicePairing.d.ts +0 -130
@@ -102,9 +102,9 @@ export declare const kaanaCredentialCreateMutationSchema: z.ZodObject<{
102
102
  environment: "development" | "staging" | "production";
103
103
  ownerAccountId: string;
104
104
  schemaVersion: 1;
105
+ action: "create";
105
106
  provider: string;
106
107
  connectionId: string;
107
- action: "create";
108
108
  operationId: string;
109
109
  operationActor: string;
110
110
  secretBase64: string;
@@ -112,9 +112,9 @@ export declare const kaanaCredentialCreateMutationSchema: z.ZodObject<{
112
112
  environment: "development" | "staging" | "production";
113
113
  ownerAccountId: string;
114
114
  schemaVersion: 1;
115
+ action: "create";
115
116
  provider: string;
116
117
  connectionId: string;
117
- action: "create";
118
118
  operationId: string;
119
119
  operationActor: string;
120
120
  secretBase64: string;
@@ -136,26 +136,26 @@ export declare const kaanaCredentialRotateMutationSchema: z.ZodObject<{
136
136
  environment: "development" | "staging" | "production";
137
137
  ownerAccountId: string;
138
138
  schemaVersion: 1;
139
+ action: "rotate";
140
+ expectedRevision: number;
139
141
  provider: string;
140
142
  connectionId: string;
141
- action: "rotate";
142
143
  operationId: string;
143
144
  operationActor: string;
144
145
  secretBase64: string;
145
146
  credentialHandle: string;
146
- expectedRevision: number;
147
147
  }, {
148
148
  environment: "development" | "staging" | "production";
149
149
  ownerAccountId: string;
150
150
  schemaVersion: 1;
151
+ action: "rotate";
152
+ expectedRevision: number;
151
153
  provider: string;
152
154
  connectionId: string;
153
- action: "rotate";
154
155
  operationId: string;
155
156
  operationActor: string;
156
157
  secretBase64: string;
157
158
  credentialHandle: string;
158
- expectedRevision: number;
159
159
  }>;
160
160
  export declare const kaanaCredentialRevokeMutationSchema: z.ZodObject<{
161
161
  provider: z.ZodString;
@@ -173,24 +173,24 @@ export declare const kaanaCredentialRevokeMutationSchema: z.ZodObject<{
173
173
  environment: "development" | "staging" | "production";
174
174
  ownerAccountId: string;
175
175
  schemaVersion: 1;
176
+ action: "revoke";
177
+ expectedRevision: number;
176
178
  provider: string;
177
179
  connectionId: string;
178
- action: "revoke";
179
180
  operationId: string;
180
181
  operationActor: string;
181
182
  credentialHandle: string;
182
- expectedRevision: number;
183
183
  }, {
184
184
  environment: "development" | "staging" | "production";
185
185
  ownerAccountId: string;
186
186
  schemaVersion: 1;
187
+ action: "revoke";
188
+ expectedRevision: number;
187
189
  provider: string;
188
190
  connectionId: string;
189
- action: "revoke";
190
191
  operationId: string;
191
192
  operationActor: string;
192
193
  credentialHandle: string;
193
- expectedRevision: number;
194
194
  }>;
195
195
  export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
196
196
  provider: z.ZodString;
@@ -207,9 +207,9 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
207
207
  environment: "development" | "staging" | "production";
208
208
  ownerAccountId: string;
209
209
  schemaVersion: 1;
210
+ action: "create";
210
211
  provider: string;
211
212
  connectionId: string;
212
- action: "create";
213
213
  operationId: string;
214
214
  operationActor: string;
215
215
  secretBase64: string;
@@ -217,9 +217,9 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
217
217
  environment: "development" | "staging" | "production";
218
218
  ownerAccountId: string;
219
219
  schemaVersion: 1;
220
+ action: "create";
220
221
  provider: string;
221
222
  connectionId: string;
222
- action: "create";
223
223
  operationId: string;
224
224
  operationActor: string;
225
225
  secretBase64: string;
@@ -240,26 +240,26 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
240
240
  environment: "development" | "staging" | "production";
241
241
  ownerAccountId: string;
242
242
  schemaVersion: 1;
243
+ action: "rotate";
244
+ expectedRevision: number;
243
245
  provider: string;
244
246
  connectionId: string;
245
- action: "rotate";
246
247
  operationId: string;
247
248
  operationActor: string;
248
249
  secretBase64: string;
249
250
  credentialHandle: string;
250
- expectedRevision: number;
251
251
  }, {
252
252
  environment: "development" | "staging" | "production";
253
253
  ownerAccountId: string;
254
254
  schemaVersion: 1;
255
+ action: "rotate";
256
+ expectedRevision: number;
255
257
  provider: string;
256
258
  connectionId: string;
257
- action: "rotate";
258
259
  operationId: string;
259
260
  operationActor: string;
260
261
  secretBase64: string;
261
262
  credentialHandle: string;
262
- expectedRevision: number;
263
263
  }>, z.ZodObject<{
264
264
  provider: z.ZodString;
265
265
  ownerAccountId: z.ZodString;
@@ -276,24 +276,24 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
276
276
  environment: "development" | "staging" | "production";
277
277
  ownerAccountId: string;
278
278
  schemaVersion: 1;
279
+ action: "revoke";
280
+ expectedRevision: number;
279
281
  provider: string;
280
282
  connectionId: string;
281
- action: "revoke";
282
283
  operationId: string;
283
284
  operationActor: string;
284
285
  credentialHandle: string;
285
- expectedRevision: number;
286
286
  }, {
287
287
  environment: "development" | "staging" | "production";
288
288
  ownerAccountId: string;
289
289
  schemaVersion: 1;
290
+ action: "revoke";
291
+ expectedRevision: number;
290
292
  provider: string;
291
293
  connectionId: string;
292
- action: "revoke";
293
294
  operationId: string;
294
295
  operationActor: string;
295
296
  credentialHandle: string;
296
- expectedRevision: number;
297
297
  }>]>;
298
298
  export declare const kaanaCredentialCreateOutcomeRequestSchema: z.ZodObject<{
299
299
  provider: z.ZodString;
@@ -308,17 +308,17 @@ export declare const kaanaCredentialCreateOutcomeRequestSchema: z.ZodObject<{
308
308
  environment: "development" | "staging" | "production";
309
309
  ownerAccountId: string;
310
310
  schemaVersion: 1;
311
+ action: "create";
311
312
  provider: string;
312
313
  connectionId: string;
313
- action: "create";
314
314
  operationId: string;
315
315
  }, {
316
316
  environment: "development" | "staging" | "production";
317
317
  ownerAccountId: string;
318
318
  schemaVersion: 1;
319
+ action: "create";
319
320
  provider: string;
320
321
  connectionId: string;
321
- action: "create";
322
322
  operationId: string;
323
323
  }>;
324
324
  export declare const kaanaCredentialRotateOutcomeRequestSchema: z.ZodObject<{
@@ -336,22 +336,22 @@ export declare const kaanaCredentialRotateOutcomeRequestSchema: z.ZodObject<{
336
336
  environment: "development" | "staging" | "production";
337
337
  ownerAccountId: string;
338
338
  schemaVersion: 1;
339
+ action: "rotate";
340
+ expectedRevision: number;
339
341
  provider: string;
340
342
  connectionId: string;
341
- action: "rotate";
342
343
  operationId: string;
343
344
  credentialHandle: string;
344
- expectedRevision: number;
345
345
  }, {
346
346
  environment: "development" | "staging" | "production";
347
347
  ownerAccountId: string;
348
348
  schemaVersion: 1;
349
+ action: "rotate";
350
+ expectedRevision: number;
349
351
  provider: string;
350
352
  connectionId: string;
351
- action: "rotate";
352
353
  operationId: string;
353
354
  credentialHandle: string;
354
- expectedRevision: number;
355
355
  }>;
356
356
  export declare const kaanaCredentialRevokeOutcomeRequestSchema: z.ZodObject<{
357
357
  provider: z.ZodString;
@@ -368,22 +368,22 @@ export declare const kaanaCredentialRevokeOutcomeRequestSchema: z.ZodObject<{
368
368
  environment: "development" | "staging" | "production";
369
369
  ownerAccountId: string;
370
370
  schemaVersion: 1;
371
+ action: "revoke";
372
+ expectedRevision: number;
371
373
  provider: string;
372
374
  connectionId: string;
373
- action: "revoke";
374
375
  operationId: string;
375
376
  credentialHandle: string;
376
- expectedRevision: number;
377
377
  }, {
378
378
  environment: "development" | "staging" | "production";
379
379
  ownerAccountId: string;
380
380
  schemaVersion: 1;
381
+ action: "revoke";
382
+ expectedRevision: number;
381
383
  provider: string;
382
384
  connectionId: string;
383
- action: "revoke";
384
385
  operationId: string;
385
386
  credentialHandle: string;
386
- expectedRevision: number;
387
387
  }>;
388
388
  export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
389
389
  provider: z.ZodString;
@@ -398,17 +398,17 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
398
398
  environment: "development" | "staging" | "production";
399
399
  ownerAccountId: string;
400
400
  schemaVersion: 1;
401
+ action: "create";
401
402
  provider: string;
402
403
  connectionId: string;
403
- action: "create";
404
404
  operationId: string;
405
405
  }, {
406
406
  environment: "development" | "staging" | "production";
407
407
  ownerAccountId: string;
408
408
  schemaVersion: 1;
409
+ action: "create";
409
410
  provider: string;
410
411
  connectionId: string;
411
- action: "create";
412
412
  operationId: string;
413
413
  }>, z.ZodObject<{
414
414
  provider: z.ZodString;
@@ -425,22 +425,22 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
425
425
  environment: "development" | "staging" | "production";
426
426
  ownerAccountId: string;
427
427
  schemaVersion: 1;
428
+ action: "rotate";
429
+ expectedRevision: number;
428
430
  provider: string;
429
431
  connectionId: string;
430
- action: "rotate";
431
432
  operationId: string;
432
433
  credentialHandle: string;
433
- expectedRevision: number;
434
434
  }, {
435
435
  environment: "development" | "staging" | "production";
436
436
  ownerAccountId: string;
437
437
  schemaVersion: 1;
438
+ action: "rotate";
439
+ expectedRevision: number;
438
440
  provider: string;
439
441
  connectionId: string;
440
- action: "rotate";
441
442
  operationId: string;
442
443
  credentialHandle: string;
443
- expectedRevision: number;
444
444
  }>, z.ZodObject<{
445
445
  provider: z.ZodString;
446
446
  ownerAccountId: z.ZodString;
@@ -456,22 +456,22 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
456
456
  environment: "development" | "staging" | "production";
457
457
  ownerAccountId: string;
458
458
  schemaVersion: 1;
459
+ action: "revoke";
460
+ expectedRevision: number;
459
461
  provider: string;
460
462
  connectionId: string;
461
- action: "revoke";
462
463
  operationId: string;
463
464
  credentialHandle: string;
464
- expectedRevision: number;
465
465
  }, {
466
466
  environment: "development" | "staging" | "production";
467
467
  ownerAccountId: string;
468
468
  schemaVersion: 1;
469
+ action: "revoke";
470
+ expectedRevision: number;
469
471
  provider: string;
470
472
  connectionId: string;
471
- action: "revoke";
472
473
  operationId: string;
473
474
  credentialHandle: string;
474
- expectedRevision: number;
475
475
  }>]>;
476
476
  export declare const kaanaCredentialAppliedOutcomeSchema: z.ZodObject<{
477
477
  schemaVersion: z.ZodLiteral<1>;
@@ -490,7 +490,7 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
490
490
  type: "refusal";
491
491
  text: string;
492
492
  })[];
493
- role: "tool" | "system" | "user" | "developer" | "assistant";
493
+ role: "system" | "tool" | "user" | "developer" | "assistant";
494
494
  name?: string | undefined;
495
495
  toolCallId?: string | undefined;
496
496
  toolCalls?: {
@@ -538,7 +538,7 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
538
538
  type: "refusal";
539
539
  text: string;
540
540
  })[];
541
- role: "tool" | "system" | "user" | "developer" | "assistant";
541
+ role: "system" | "tool" | "user" | "developer" | "assistant";
542
542
  name?: string | undefined;
543
543
  toolCallId?: string | undefined;
544
544
  toolCalls?: {
@@ -586,7 +586,7 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
586
586
  type: "refusal";
587
587
  text: string;
588
588
  })[];
589
- role: "tool" | "system" | "user" | "developer" | "assistant";
589
+ role: "system" | "tool" | "user" | "developer" | "assistant";
590
590
  name?: string | undefined;
591
591
  toolCallId?: string | undefined;
592
592
  toolCalls?: {
@@ -634,7 +634,7 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
634
634
  type: "refusal";
635
635
  text: string;
636
636
  })[];
637
- role: "tool" | "system" | "user" | "developer" | "assistant";
637
+ role: "system" | "tool" | "user" | "developer" | "assistant";
638
638
  name?: string | undefined;
639
639
  toolCallId?: string | undefined;
640
640
  toolCalls?: {
@@ -871,7 +871,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
871
871
  type: "refusal";
872
872
  text: string;
873
873
  })[];
874
- role: "tool" | "system" | "user" | "developer" | "assistant";
874
+ role: "system" | "tool" | "user" | "developer" | "assistant";
875
875
  name?: string | undefined;
876
876
  toolCallId?: string | undefined;
877
877
  toolCalls?: {
@@ -919,7 +919,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
919
919
  type: "refusal";
920
920
  text: string;
921
921
  })[];
922
- role: "tool" | "system" | "user" | "developer" | "assistant";
922
+ role: "system" | "tool" | "user" | "developer" | "assistant";
923
923
  name?: string | undefined;
924
924
  toolCallId?: string | undefined;
925
925
  toolCalls?: {
@@ -967,7 +967,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
967
967
  type: "refusal";
968
968
  text: string;
969
969
  })[];
970
- role: "tool" | "system" | "user" | "developer" | "assistant";
970
+ role: "system" | "tool" | "user" | "developer" | "assistant";
971
971
  name?: string | undefined;
972
972
  toolCallId?: string | undefined;
973
973
  toolCalls?: {
@@ -1015,7 +1015,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
1015
1015
  type: "refusal";
1016
1016
  text: string;
1017
1017
  })[];
1018
- role: "tool" | "system" | "user" | "developer" | "assistant";
1018
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1019
1019
  name?: string | undefined;
1020
1020
  toolCallId?: string | undefined;
1021
1021
  toolCalls?: {
@@ -1066,7 +1066,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
1066
1066
  type: "refusal";
1067
1067
  text: string;
1068
1068
  })[];
1069
- role: "tool" | "system" | "user" | "developer" | "assistant";
1069
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1070
1070
  name?: string | undefined;
1071
1071
  toolCallId?: string | undefined;
1072
1072
  toolCalls?: {
@@ -1117,7 +1117,7 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
1117
1117
  type: "refusal";
1118
1118
  text: string;
1119
1119
  })[];
1120
- role: "tool" | "system" | "user" | "developer" | "assistant";
1120
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1121
1121
  name?: string | undefined;
1122
1122
  toolCallId?: string | undefined;
1123
1123
  toolCalls?: {
@@ -1272,6 +1272,21 @@ export declare const clientRequestMetadataSchema: z.ZodObject<{
1272
1272
  clientRequestId?: string | undefined;
1273
1273
  labels?: Record<string, string> | undefined;
1274
1274
  }>;
1275
+ /** Parameters for text-to-speech, preserved in the signed request. */
1276
+ export declare const inferenceSpeechParametersSchema: z.ZodObject<{
1277
+ voice: z.ZodString;
1278
+ responseFormat: z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>;
1279
+ speed: z.ZodOptional<z.ZodNumber>;
1280
+ }, "strict", z.ZodTypeAny, {
1281
+ voice: string;
1282
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
1283
+ speed?: number | undefined;
1284
+ }, {
1285
+ voice: string;
1286
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
1287
+ speed?: number | undefined;
1288
+ }>;
1289
+ export type InferenceSpeechParameters = z.infer<typeof inferenceSpeechParametersSchema>;
1275
1290
  /**
1276
1291
  * The canonical internal request Oxy forwards to the data plane.
1277
1292
  *
@@ -1583,7 +1598,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1583
1598
  type: "refusal";
1584
1599
  text: string;
1585
1600
  })[];
1586
- role: "tool" | "system" | "user" | "developer" | "assistant";
1601
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1587
1602
  name?: string | undefined;
1588
1603
  toolCallId?: string | undefined;
1589
1604
  toolCalls?: {
@@ -1631,7 +1646,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1631
1646
  type: "refusal";
1632
1647
  text: string;
1633
1648
  })[];
1634
- role: "tool" | "system" | "user" | "developer" | "assistant";
1649
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1635
1650
  name?: string | undefined;
1636
1651
  toolCallId?: string | undefined;
1637
1652
  toolCalls?: {
@@ -1679,7 +1694,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1679
1694
  type: "refusal";
1680
1695
  text: string;
1681
1696
  })[];
1682
- role: "tool" | "system" | "user" | "developer" | "assistant";
1697
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1683
1698
  name?: string | undefined;
1684
1699
  toolCallId?: string | undefined;
1685
1700
  toolCalls?: {
@@ -1727,7 +1742,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1727
1742
  type: "refusal";
1728
1743
  text: string;
1729
1744
  })[];
1730
- role: "tool" | "system" | "user" | "developer" | "assistant";
1745
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1731
1746
  name?: string | undefined;
1732
1747
  toolCallId?: string | undefined;
1733
1748
  toolCalls?: {
@@ -1778,7 +1793,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1778
1793
  type: "refusal";
1779
1794
  text: string;
1780
1795
  })[];
1781
- role: "tool" | "system" | "user" | "developer" | "assistant";
1796
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1782
1797
  name?: string | undefined;
1783
1798
  toolCallId?: string | undefined;
1784
1799
  toolCalls?: {
@@ -1829,7 +1844,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1829
1844
  type: "refusal";
1830
1845
  text: string;
1831
1846
  })[];
1832
- role: "tool" | "system" | "user" | "developer" | "assistant";
1847
+ role: "system" | "tool" | "user" | "developer" | "assistant";
1833
1848
  name?: string | undefined;
1834
1849
  toolCallId?: string | undefined;
1835
1850
  toolCalls?: {
@@ -1885,6 +1900,19 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1885
1900
  presencePenalty?: number | undefined;
1886
1901
  stopSequences?: string[] | undefined;
1887
1902
  }>;
1903
+ speech: z.ZodOptional<z.ZodObject<{
1904
+ voice: z.ZodString;
1905
+ responseFormat: z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>;
1906
+ speed: z.ZodOptional<z.ZodNumber>;
1907
+ }, "strict", z.ZodTypeAny, {
1908
+ voice: string;
1909
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
1910
+ speed?: number | undefined;
1911
+ }, {
1912
+ voice: string;
1913
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
1914
+ speed?: number | undefined;
1915
+ }>>;
1888
1916
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
1889
1917
  type: z.ZodLiteral<"function">;
1890
1918
  name: z.ZodString;
@@ -2249,7 +2277,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2249
2277
  type: "refusal";
2250
2278
  text: string;
2251
2279
  })[];
2252
- role: "tool" | "system" | "user" | "developer" | "assistant";
2280
+ role: "system" | "tool" | "user" | "developer" | "assistant";
2253
2281
  name?: string | undefined;
2254
2282
  toolCallId?: string | undefined;
2255
2283
  toolCalls?: {
@@ -2281,10 +2309,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2281
2309
  };
2282
2310
  idempotencyKey?: string | undefined;
2283
2311
  maxOutputTokens?: number | undefined;
2284
- toolChoice?: "none" | "required" | "auto" | {
2285
- type: "function";
2286
- name: string;
2287
- } | undefined;
2288
2312
  responseFormat?: {
2289
2313
  type: "text";
2290
2314
  } | {
@@ -2295,6 +2319,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2295
2319
  name: string;
2296
2320
  strict: boolean;
2297
2321
  } | undefined;
2322
+ speech?: {
2323
+ voice: string;
2324
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
2325
+ speed?: number | undefined;
2326
+ } | undefined;
2327
+ toolChoice?: "none" | "required" | "auto" | {
2328
+ type: "function";
2329
+ name: string;
2330
+ } | undefined;
2298
2331
  authorizedRoutes?: ({
2299
2332
  provider: string;
2300
2333
  modelReference: string;
@@ -2396,7 +2429,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2396
2429
  type: "refusal";
2397
2430
  text: string;
2398
2431
  })[];
2399
- role: "tool" | "system" | "user" | "developer" | "assistant";
2432
+ role: "system" | "tool" | "user" | "developer" | "assistant";
2400
2433
  name?: string | undefined;
2401
2434
  toolCallId?: string | undefined;
2402
2435
  toolCalls?: {
@@ -2435,10 +2468,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2435
2468
  }[] | undefined;
2436
2469
  idempotencyKey?: string | undefined;
2437
2470
  maxOutputTokens?: number | undefined;
2438
- toolChoice?: "none" | "required" | "auto" | {
2439
- type: "function";
2440
- name: string;
2441
- } | undefined;
2442
2471
  responseFormat?: {
2443
2472
  type: "text";
2444
2473
  } | {
@@ -2449,6 +2478,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2449
2478
  name: string;
2450
2479
  strict: boolean;
2451
2480
  } | undefined;
2481
+ speech?: {
2482
+ voice: string;
2483
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
2484
+ speed?: number | undefined;
2485
+ } | undefined;
2486
+ toolChoice?: "none" | "required" | "auto" | {
2487
+ type: "function";
2488
+ name: string;
2489
+ } | undefined;
2452
2490
  authorizedRoutes?: ({
2453
2491
  provider: string;
2454
2492
  modelReference: string;
@@ -2557,7 +2595,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2557
2595
  type: "refusal";
2558
2596
  text: string;
2559
2597
  })[];
2560
- role: "tool" | "system" | "user" | "developer" | "assistant";
2598
+ role: "system" | "tool" | "user" | "developer" | "assistant";
2561
2599
  name?: string | undefined;
2562
2600
  toolCallId?: string | undefined;
2563
2601
  toolCalls?: {
@@ -2589,10 +2627,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2589
2627
  };
2590
2628
  idempotencyKey?: string | undefined;
2591
2629
  maxOutputTokens?: number | undefined;
2592
- toolChoice?: "none" | "required" | "auto" | {
2593
- type: "function";
2594
- name: string;
2595
- } | undefined;
2596
2630
  responseFormat?: {
2597
2631
  type: "text";
2598
2632
  } | {
@@ -2603,6 +2637,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2603
2637
  name: string;
2604
2638
  strict: boolean;
2605
2639
  } | undefined;
2640
+ speech?: {
2641
+ voice: string;
2642
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
2643
+ speed?: number | undefined;
2644
+ } | undefined;
2645
+ toolChoice?: "none" | "required" | "auto" | {
2646
+ type: "function";
2647
+ name: string;
2648
+ } | undefined;
2606
2649
  authorizedRoutes?: ({
2607
2650
  provider: string;
2608
2651
  modelReference: string;
@@ -2704,7 +2747,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2704
2747
  type: "refusal";
2705
2748
  text: string;
2706
2749
  })[];
2707
- role: "tool" | "system" | "user" | "developer" | "assistant";
2750
+ role: "system" | "tool" | "user" | "developer" | "assistant";
2708
2751
  name?: string | undefined;
2709
2752
  toolCallId?: string | undefined;
2710
2753
  toolCalls?: {
@@ -2743,10 +2786,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2743
2786
  }[] | undefined;
2744
2787
  idempotencyKey?: string | undefined;
2745
2788
  maxOutputTokens?: number | undefined;
2746
- toolChoice?: "none" | "required" | "auto" | {
2747
- type: "function";
2748
- name: string;
2749
- } | undefined;
2750
2789
  responseFormat?: {
2751
2790
  type: "text";
2752
2791
  } | {
@@ -2757,6 +2796,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
2757
2796
  name: string;
2758
2797
  strict: boolean;
2759
2798
  } | undefined;
2799
+ speech?: {
2800
+ voice: string;
2801
+ responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
2802
+ speed?: number | undefined;
2803
+ } | undefined;
2804
+ toolChoice?: "none" | "required" | "auto" | {
2805
+ type: "function";
2806
+ name: string;
2807
+ } | undefined;
2760
2808
  authorizedRoutes?: ({
2761
2809
  provider: string;
2762
2810
  modelReference: string;