@oxy.so/contracts 4.17.0 → 4.22.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 (61) hide show
  1. package/dist/cjs/accountAccess.js +72 -0
  2. package/dist/cjs/agency.js +112 -1
  3. package/dist/cjs/applicationRoles.js +211 -0
  4. package/dist/cjs/client/check.js +9 -0
  5. package/dist/cjs/client/contentClaims.js +139 -0
  6. package/dist/cjs/client/index.js +37 -1
  7. package/dist/cjs/client/safety.js +183 -2
  8. package/dist/cjs/client/signIn.js +2 -0
  9. package/dist/cjs/contentClaims.js +246 -0
  10. package/dist/cjs/index.js +14 -3
  11. package/dist/cjs/safety.js +430 -1
  12. package/dist/cjs/serviceToken.js +14 -0
  13. package/dist/esm/accountAccess.js +69 -0
  14. package/dist/esm/agency.js +111 -0
  15. package/dist/esm/applicationRoles.js +207 -0
  16. package/dist/esm/client/check.js +8 -0
  17. package/dist/esm/client/contentClaims.js +134 -0
  18. package/dist/esm/client/index.js +2 -1
  19. package/dist/esm/client/safety.js +183 -2
  20. package/dist/esm/client/signIn.js +2 -0
  21. package/dist/esm/contentClaims.js +229 -0
  22. package/dist/esm/index.js +5 -1
  23. package/dist/esm/safety.js +423 -0
  24. package/dist/esm/serviceToken.js +11 -0
  25. package/dist/types/accountAccess.d.ts +128 -0
  26. package/dist/types/accountEmail.d.ts +2 -2
  27. package/dist/types/agency.d.ts +327 -2
  28. package/dist/types/agentKeys.d.ts +6 -6
  29. package/dist/types/applicationRoles.d.ts +438 -0
  30. package/dist/types/client/agentKeys.d.ts +2 -2
  31. package/dist/types/client/check.d.ts +3 -0
  32. package/dist/types/client/contentClaims.d.ts +106 -0
  33. package/dist/types/client/deviceSession.d.ts +1 -1
  34. package/dist/types/client/index.d.ts +2 -1
  35. package/dist/types/client/safety.d.ts +204 -4
  36. package/dist/types/client/signIn.d.ts +1 -1
  37. package/dist/types/contentClaims.d.ts +383 -0
  38. package/dist/types/deviceSession.d.ts +4 -4
  39. package/dist/types/email/messages.d.ts +4 -4
  40. package/dist/types/externalIdentity.d.ts +16 -16
  41. package/dist/types/index.d.ts +6 -2
  42. package/dist/types/inference/accountBilling.d.ts +2 -2
  43. package/dist/types/inference/aliaModelRelease.d.ts +8 -8
  44. package/dist/types/inference/catalogue.d.ts +26 -26
  45. package/dist/types/inference/inbox.d.ts +4 -4
  46. package/dist/types/inference/modelDocumentation.d.ts +16 -16
  47. package/dist/types/inference/providerConnection.d.ts +4 -4
  48. package/dist/types/inference/realtime.d.ts +74 -74
  49. package/dist/types/inference/request.d.ts +60 -60
  50. package/dist/types/inference/usage.d.ts +4 -4
  51. package/dist/types/products/access.d.ts +4 -4
  52. package/dist/types/safety.d.ts +2374 -2
  53. package/dist/types/serviceToken.d.ts +11 -0
  54. package/dist/types/sessionStatus.d.ts +4 -4
  55. package/dist/types/signIn.d.ts +5 -5
  56. package/dist/types/updates.d.ts +6 -6
  57. package/dist/types/userResponse.d.ts +8 -8
  58. package/package.json +5 -20
  59. package/dist/cjs/.tsbuildinfo +0 -1
  60. package/dist/esm/.tsbuildinfo +0 -1
  61. package/dist/types/.tsbuildinfo +0 -1
@@ -1679,6 +1679,7 @@ export declare const realtimeConversationItemSchema: z.ZodEffects<z.ZodDiscrimin
1679
1679
  }>]>, "many">;
1680
1680
  }, "strict", z.ZodTypeAny, {
1681
1681
  type: "message";
1682
+ role: "system" | "user" | "assistant";
1682
1683
  content: ({
1683
1684
  type: "input_text";
1684
1685
  text: string;
@@ -1695,10 +1696,10 @@ export declare const realtimeConversationItemSchema: z.ZodEffects<z.ZodDiscrimin
1695
1696
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
1696
1697
  transcript?: string | undefined;
1697
1698
  })[];
1698
- role: "system" | "user" | "assistant";
1699
1699
  itemId?: string | undefined;
1700
1700
  }, {
1701
1701
  type: "message";
1702
+ role: "system" | "user" | "assistant";
1702
1703
  content: ({
1703
1704
  type: "input_text";
1704
1705
  text: string;
@@ -1715,7 +1716,6 @@ export declare const realtimeConversationItemSchema: z.ZodEffects<z.ZodDiscrimin
1715
1716
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
1716
1717
  transcript?: string | undefined;
1717
1718
  })[];
1718
- role: "system" | "user" | "assistant";
1719
1719
  itemId?: string | undefined;
1720
1720
  }>, z.ZodObject<{
1721
1721
  type: z.ZodLiteral<"function_call">;
@@ -1752,6 +1752,7 @@ export declare const realtimeConversationItemSchema: z.ZodEffects<z.ZodDiscrimin
1752
1752
  itemId?: string | undefined;
1753
1753
  }>]>, {
1754
1754
  type: "message";
1755
+ role: "system" | "user" | "assistant";
1755
1756
  content: ({
1756
1757
  type: "input_text";
1757
1758
  text: string;
@@ -1768,7 +1769,6 @@ export declare const realtimeConversationItemSchema: z.ZodEffects<z.ZodDiscrimin
1768
1769
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
1769
1770
  transcript?: string | undefined;
1770
1771
  })[];
1771
- role: "system" | "user" | "assistant";
1772
1772
  itemId?: string | undefined;
1773
1773
  } | {
1774
1774
  type: "function_call";
@@ -1783,6 +1783,7 @@ export declare const realtimeConversationItemSchema: z.ZodEffects<z.ZodDiscrimin
1783
1783
  itemId?: string | undefined;
1784
1784
  }, {
1785
1785
  type: "message";
1786
+ role: "system" | "user" | "assistant";
1786
1787
  content: ({
1787
1788
  type: "input_text";
1788
1789
  text: string;
@@ -1799,7 +1800,6 @@ export declare const realtimeConversationItemSchema: z.ZodEffects<z.ZodDiscrimin
1799
1800
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
1800
1801
  transcript?: string | undefined;
1801
1802
  })[];
1802
- role: "system" | "user" | "assistant";
1803
1803
  itemId?: string | undefined;
1804
1804
  } | {
1805
1805
  type: "function_call";
@@ -2219,6 +2219,7 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2219
2219
  }>]>, "many">;
2220
2220
  }, "strict", z.ZodTypeAny, {
2221
2221
  type: "message";
2222
+ role: "system" | "user" | "assistant";
2222
2223
  content: ({
2223
2224
  type: "input_text";
2224
2225
  text: string;
@@ -2235,10 +2236,10 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2235
2236
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
2236
2237
  transcript?: string | undefined;
2237
2238
  })[];
2238
- role: "system" | "user" | "assistant";
2239
2239
  itemId?: string | undefined;
2240
2240
  }, {
2241
2241
  type: "message";
2242
+ role: "system" | "user" | "assistant";
2242
2243
  content: ({
2243
2244
  type: "input_text";
2244
2245
  text: string;
@@ -2255,7 +2256,6 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2255
2256
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
2256
2257
  transcript?: string | undefined;
2257
2258
  })[];
2258
- role: "system" | "user" | "assistant";
2259
2259
  itemId?: string | undefined;
2260
2260
  }>, z.ZodObject<{
2261
2261
  type: z.ZodLiteral<"function_call">;
@@ -2292,6 +2292,7 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2292
2292
  itemId?: string | undefined;
2293
2293
  }>]>, {
2294
2294
  type: "message";
2295
+ role: "system" | "user" | "assistant";
2295
2296
  content: ({
2296
2297
  type: "input_text";
2297
2298
  text: string;
@@ -2308,7 +2309,6 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2308
2309
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
2309
2310
  transcript?: string | undefined;
2310
2311
  })[];
2311
- role: "system" | "user" | "assistant";
2312
2312
  itemId?: string | undefined;
2313
2313
  } | {
2314
2314
  type: "function_call";
@@ -2323,6 +2323,7 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2323
2323
  itemId?: string | undefined;
2324
2324
  }, {
2325
2325
  type: "message";
2326
+ role: "system" | "user" | "assistant";
2326
2327
  content: ({
2327
2328
  type: "input_text";
2328
2329
  text: string;
@@ -2339,7 +2340,6 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2339
2340
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
2340
2341
  transcript?: string | undefined;
2341
2342
  })[];
2342
- role: "system" | "user" | "assistant";
2343
2343
  itemId?: string | undefined;
2344
2344
  } | {
2345
2345
  type: "function_call";
@@ -2364,6 +2364,7 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2364
2364
  commandId: string;
2365
2365
  item: {
2366
2366
  type: "message";
2367
+ role: "system" | "user" | "assistant";
2367
2368
  content: ({
2368
2369
  type: "input_text";
2369
2370
  text: string;
@@ -2380,7 +2381,6 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2380
2381
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
2381
2382
  transcript?: string | undefined;
2382
2383
  })[];
2383
- role: "system" | "user" | "assistant";
2384
2384
  itemId?: string | undefined;
2385
2385
  } | {
2386
2386
  type: "function_call";
@@ -2402,6 +2402,7 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2402
2402
  commandId: string;
2403
2403
  item: {
2404
2404
  type: "message";
2405
+ role: "system" | "user" | "assistant";
2405
2406
  content: ({
2406
2407
  type: "input_text";
2407
2408
  text: string;
@@ -2418,7 +2419,6 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
2418
2419
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
2419
2420
  transcript?: string | undefined;
2420
2421
  })[];
2421
- role: "system" | "user" | "assistant";
2422
2422
  itemId?: string | undefined;
2423
2423
  } | {
2424
2424
  type: "function_call";
@@ -3042,6 +3042,7 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3042
3042
  }>]>, "many">;
3043
3043
  }, "strict", z.ZodTypeAny, {
3044
3044
  type: "message";
3045
+ role: "system" | "user" | "assistant";
3045
3046
  content: ({
3046
3047
  type: "input_text";
3047
3048
  text: string;
@@ -3058,10 +3059,10 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3058
3059
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
3059
3060
  transcript?: string | undefined;
3060
3061
  })[];
3061
- role: "system" | "user" | "assistant";
3062
3062
  itemId?: string | undefined;
3063
3063
  }, {
3064
3064
  type: "message";
3065
+ role: "system" | "user" | "assistant";
3065
3066
  content: ({
3066
3067
  type: "input_text";
3067
3068
  text: string;
@@ -3078,7 +3079,6 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3078
3079
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
3079
3080
  transcript?: string | undefined;
3080
3081
  })[];
3081
- role: "system" | "user" | "assistant";
3082
3082
  itemId?: string | undefined;
3083
3083
  }>, z.ZodObject<{
3084
3084
  type: z.ZodLiteral<"function_call">;
@@ -3115,6 +3115,7 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3115
3115
  itemId?: string | undefined;
3116
3116
  }>]>, {
3117
3117
  type: "message";
3118
+ role: "system" | "user" | "assistant";
3118
3119
  content: ({
3119
3120
  type: "input_text";
3120
3121
  text: string;
@@ -3131,7 +3132,6 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3131
3132
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
3132
3133
  transcript?: string | undefined;
3133
3134
  })[];
3134
- role: "system" | "user" | "assistant";
3135
3135
  itemId?: string | undefined;
3136
3136
  } | {
3137
3137
  type: "function_call";
@@ -3146,6 +3146,7 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3146
3146
  itemId?: string | undefined;
3147
3147
  }, {
3148
3148
  type: "message";
3149
+ role: "system" | "user" | "assistant";
3149
3150
  content: ({
3150
3151
  type: "input_text";
3151
3152
  text: string;
@@ -3162,7 +3163,6 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3162
3163
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
3163
3164
  transcript?: string | undefined;
3164
3165
  })[];
3165
- role: "system" | "user" | "assistant";
3166
3166
  itemId?: string | undefined;
3167
3167
  } | {
3168
3168
  type: "function_call";
@@ -3187,6 +3187,7 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3187
3187
  commandId: string;
3188
3188
  item: {
3189
3189
  type: "message";
3190
+ role: "system" | "user" | "assistant";
3190
3191
  content: ({
3191
3192
  type: "input_text";
3192
3193
  text: string;
@@ -3203,7 +3204,6 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3203
3204
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
3204
3205
  transcript?: string | undefined;
3205
3206
  })[];
3206
- role: "system" | "user" | "assistant";
3207
3207
  itemId?: string | undefined;
3208
3208
  } | {
3209
3209
  type: "function_call";
@@ -3225,6 +3225,7 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3225
3225
  commandId: string;
3226
3226
  item: {
3227
3227
  type: "message";
3228
+ role: "system" | "user" | "assistant";
3228
3229
  content: ({
3229
3230
  type: "input_text";
3230
3231
  text: string;
@@ -3241,7 +3242,6 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
3241
3242
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
3242
3243
  transcript?: string | undefined;
3243
3244
  })[];
3244
- role: "system" | "user" | "assistant";
3245
3245
  itemId?: string | undefined;
3246
3246
  } | {
3247
3247
  type: "function_call";
@@ -3698,9 +3698,9 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
3698
3698
  /** The command this event answers, when it answers one. */
3699
3699
  commandId: z.ZodOptional<z.ZodString>;
3700
3700
  }, "strip", z.ZodTypeAny, {
3701
- expiresAt: string;
3702
3701
  type: "session.created";
3703
3702
  kind: "conversation" | "transcription" | "translation";
3703
+ expiresAt: string;
3704
3704
  schemaVersion: 1;
3705
3705
  limits: {
3706
3706
  maxDurationMs: number;
@@ -3760,9 +3760,9 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
3760
3760
  resumeWindowMs: number;
3761
3761
  commandId?: string | undefined;
3762
3762
  }, {
3763
- expiresAt: string;
3764
3763
  type: "session.created";
3765
3764
  kind: "conversation" | "transcription" | "translation";
3765
+ expiresAt: string;
3766
3766
  schemaVersion: 1;
3767
3767
  limits: {
3768
3768
  maxDurationMs: number;
@@ -4217,6 +4217,7 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4217
4217
  }>]>, "many">;
4218
4218
  }, "strict", z.ZodTypeAny, {
4219
4219
  type: "message";
4220
+ role: "system" | "user" | "assistant";
4220
4221
  content: ({
4221
4222
  type: "input_text";
4222
4223
  text: string;
@@ -4233,10 +4234,10 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4233
4234
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4234
4235
  transcript?: string | undefined;
4235
4236
  })[];
4236
- role: "system" | "user" | "assistant";
4237
4237
  itemId?: string | undefined;
4238
4238
  }, {
4239
4239
  type: "message";
4240
+ role: "system" | "user" | "assistant";
4240
4241
  content: ({
4241
4242
  type: "input_text";
4242
4243
  text: string;
@@ -4253,7 +4254,6 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4253
4254
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4254
4255
  transcript?: string | undefined;
4255
4256
  })[];
4256
- role: "system" | "user" | "assistant";
4257
4257
  itemId?: string | undefined;
4258
4258
  }>, z.ZodObject<{
4259
4259
  type: z.ZodLiteral<"function_call">;
@@ -4290,6 +4290,7 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4290
4290
  itemId?: string | undefined;
4291
4291
  }>]>, {
4292
4292
  type: "message";
4293
+ role: "system" | "user" | "assistant";
4293
4294
  content: ({
4294
4295
  type: "input_text";
4295
4296
  text: string;
@@ -4306,7 +4307,6 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4306
4307
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4307
4308
  transcript?: string | undefined;
4308
4309
  })[];
4309
- role: "system" | "user" | "assistant";
4310
4310
  itemId?: string | undefined;
4311
4311
  } | {
4312
4312
  type: "function_call";
@@ -4321,6 +4321,7 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4321
4321
  itemId?: string | undefined;
4322
4322
  }, {
4323
4323
  type: "message";
4324
+ role: "system" | "user" | "assistant";
4324
4325
  content: ({
4325
4326
  type: "input_text";
4326
4327
  text: string;
@@ -4337,7 +4338,6 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4337
4338
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4338
4339
  transcript?: string | undefined;
4339
4340
  })[];
4340
- role: "system" | "user" | "assistant";
4341
4341
  itemId?: string | undefined;
4342
4342
  } | {
4343
4343
  type: "function_call";
@@ -4366,6 +4366,7 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4366
4366
  itemId: string;
4367
4367
  item: {
4368
4368
  type: "message";
4369
+ role: "system" | "user" | "assistant";
4369
4370
  content: ({
4370
4371
  type: "input_text";
4371
4372
  text: string;
@@ -4382,7 +4383,6 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4382
4383
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4383
4384
  transcript?: string | undefined;
4384
4385
  })[];
4385
- role: "system" | "user" | "assistant";
4386
4386
  itemId?: string | undefined;
4387
4387
  } | {
4388
4388
  type: "function_call";
@@ -4406,6 +4406,7 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4406
4406
  itemId: string;
4407
4407
  item: {
4408
4408
  type: "message";
4409
+ role: "system" | "user" | "assistant";
4409
4410
  content: ({
4410
4411
  type: "input_text";
4411
4412
  text: string;
@@ -4422,7 +4423,6 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
4422
4423
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4423
4424
  transcript?: string | undefined;
4424
4425
  })[];
4425
- role: "system" | "user" | "assistant";
4426
4426
  itemId?: string | undefined;
4427
4427
  } | {
4428
4428
  type: "function_call";
@@ -4494,6 +4494,7 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4494
4494
  }>]>, "many">;
4495
4495
  }, "strict", z.ZodTypeAny, {
4496
4496
  type: "message";
4497
+ role: "system" | "user" | "assistant";
4497
4498
  content: ({
4498
4499
  type: "input_text";
4499
4500
  text: string;
@@ -4510,10 +4511,10 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4510
4511
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4511
4512
  transcript?: string | undefined;
4512
4513
  })[];
4513
- role: "system" | "user" | "assistant";
4514
4514
  itemId?: string | undefined;
4515
4515
  }, {
4516
4516
  type: "message";
4517
+ role: "system" | "user" | "assistant";
4517
4518
  content: ({
4518
4519
  type: "input_text";
4519
4520
  text: string;
@@ -4530,7 +4531,6 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4530
4531
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4531
4532
  transcript?: string | undefined;
4532
4533
  })[];
4533
- role: "system" | "user" | "assistant";
4534
4534
  itemId?: string | undefined;
4535
4535
  }>, z.ZodObject<{
4536
4536
  type: z.ZodLiteral<"function_call">;
@@ -4567,6 +4567,7 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4567
4567
  itemId?: string | undefined;
4568
4568
  }>]>, {
4569
4569
  type: "message";
4570
+ role: "system" | "user" | "assistant";
4570
4571
  content: ({
4571
4572
  type: "input_text";
4572
4573
  text: string;
@@ -4583,7 +4584,6 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4583
4584
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4584
4585
  transcript?: string | undefined;
4585
4586
  })[];
4586
- role: "system" | "user" | "assistant";
4587
4587
  itemId?: string | undefined;
4588
4588
  } | {
4589
4589
  type: "function_call";
@@ -4598,6 +4598,7 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4598
4598
  itemId?: string | undefined;
4599
4599
  }, {
4600
4600
  type: "message";
4601
+ role: "system" | "user" | "assistant";
4601
4602
  content: ({
4602
4603
  type: "input_text";
4603
4604
  text: string;
@@ -4614,7 +4615,6 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4614
4615
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4615
4616
  transcript?: string | undefined;
4616
4617
  })[];
4617
- role: "system" | "user" | "assistant";
4618
4618
  itemId?: string | undefined;
4619
4619
  } | {
4620
4620
  type: "function_call";
@@ -4643,6 +4643,7 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4643
4643
  itemId: string;
4644
4644
  item: {
4645
4645
  type: "message";
4646
+ role: "system" | "user" | "assistant";
4646
4647
  content: ({
4647
4648
  type: "input_text";
4648
4649
  text: string;
@@ -4659,7 +4660,6 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4659
4660
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4660
4661
  transcript?: string | undefined;
4661
4662
  })[];
4662
- role: "system" | "user" | "assistant";
4663
4663
  itemId?: string | undefined;
4664
4664
  } | {
4665
4665
  type: "function_call";
@@ -4682,6 +4682,7 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4682
4682
  itemId: string;
4683
4683
  item: {
4684
4684
  type: "message";
4685
+ role: "system" | "user" | "assistant";
4685
4686
  content: ({
4686
4687
  type: "input_text";
4687
4688
  text: string;
@@ -4698,7 +4699,6 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
4698
4699
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
4699
4700
  transcript?: string | undefined;
4700
4701
  })[];
4701
- role: "system" | "user" | "assistant";
4702
4702
  itemId?: string | undefined;
4703
4703
  } | {
4704
4704
  type: "function_call";
@@ -4997,10 +4997,10 @@ export declare const realtimeTranscriptDeltaEventSchema: z.ZodObject<{
4997
4997
  commandId: z.ZodOptional<z.ZodString>;
4998
4998
  }, "strip", z.ZodTypeAny, {
4999
4999
  type: "transcript.delta";
5000
+ source: "input_audio" | "output_audio";
5000
5001
  schemaVersion: 1;
5001
5002
  requestId: string;
5002
5003
  text: string;
5003
- source: "input_audio" | "output_audio";
5004
5004
  sequence: number;
5005
5005
  itemId: string;
5006
5006
  contentIndex: number;
@@ -5008,10 +5008,10 @@ export declare const realtimeTranscriptDeltaEventSchema: z.ZodObject<{
5008
5008
  responseId?: string | undefined;
5009
5009
  }, {
5010
5010
  type: "transcript.delta";
5011
+ source: "input_audio" | "output_audio";
5011
5012
  schemaVersion: 1;
5012
5013
  requestId: string;
5013
5014
  text: string;
5014
- source: "input_audio" | "output_audio";
5015
5015
  sequence: number;
5016
5016
  itemId: string;
5017
5017
  contentIndex: number;
@@ -5034,9 +5034,9 @@ export declare const realtimeTranscriptDoneEventSchema: z.ZodObject<{
5034
5034
  commandId: z.ZodOptional<z.ZodString>;
5035
5035
  }, "strip", z.ZodTypeAny, {
5036
5036
  type: "transcript.done";
5037
+ source: "input_audio" | "output_audio";
5037
5038
  schemaVersion: 1;
5038
5039
  requestId: string;
5039
- source: "input_audio" | "output_audio";
5040
5040
  sequence: number;
5041
5041
  transcript: string;
5042
5042
  itemId: string;
@@ -5045,9 +5045,9 @@ export declare const realtimeTranscriptDoneEventSchema: z.ZodObject<{
5045
5045
  responseId?: string | undefined;
5046
5046
  }, {
5047
5047
  type: "transcript.done";
5048
+ source: "input_audio" | "output_audio";
5048
5049
  schemaVersion: 1;
5049
5050
  requestId: string;
5050
- source: "input_audio" | "output_audio";
5051
5051
  sequence: number;
5052
5052
  transcript: string;
5053
5053
  itemId: string;
@@ -5163,8 +5163,8 @@ export declare const realtimeResponseDoneEventSchema: z.ZodObject<{
5163
5163
  /** The command this event answers, when it answers one. */
5164
5164
  commandId: z.ZodOptional<z.ZodString>;
5165
5165
  }, "strip", z.ZodTypeAny, {
5166
- status: "failed" | "completed" | "cancelled" | "incomplete";
5167
5166
  type: "response.done";
5167
+ status: "failed" | "completed" | "cancelled" | "incomplete";
5168
5168
  schemaVersion: 1;
5169
5169
  requestId: string;
5170
5170
  deploymentId: string;
@@ -5178,8 +5178,8 @@ export declare const realtimeResponseDoneEventSchema: z.ZodObject<{
5178
5178
  finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
5179
5179
  commandId?: string | undefined;
5180
5180
  }, {
5181
- status: "failed" | "completed" | "cancelled" | "incomplete";
5182
5181
  type: "response.done";
5182
+ status: "failed" | "completed" | "cancelled" | "incomplete";
5183
5183
  schemaVersion: 1;
5184
5184
  requestId: string;
5185
5185
  deploymentId: string;
@@ -5294,8 +5294,8 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5294
5294
  /** The command this event answers, when it answers one. */
5295
5295
  commandId: z.ZodOptional<z.ZodString>;
5296
5296
  }, "strip", z.ZodTypeAny, {
5297
- fatal: boolean;
5298
5297
  type: "error";
5298
+ fatal: boolean;
5299
5299
  error: {
5300
5300
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
5301
5301
  message: string;
@@ -5317,8 +5317,8 @@ export declare const realtimeErrorEventSchema: z.ZodObject<{
5317
5317
  sequence: number;
5318
5318
  commandId?: string | undefined;
5319
5319
  }, {
5320
- fatal: boolean;
5321
5320
  type: "error";
5321
+ fatal: boolean;
5322
5322
  error: {
5323
5323
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
5324
5324
  message: string;
@@ -5618,9 +5618,9 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
5618
5618
  /** The command this event answers, when it answers one. */
5619
5619
  commandId: z.ZodOptional<z.ZodString>;
5620
5620
  }, "strip", z.ZodTypeAny, {
5621
- expiresAt: string;
5622
5621
  type: "session.created";
5623
5622
  kind: "conversation" | "transcription" | "translation";
5623
+ expiresAt: string;
5624
5624
  schemaVersion: 1;
5625
5625
  limits: {
5626
5626
  maxDurationMs: number;
@@ -5680,9 +5680,9 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
5680
5680
  resumeWindowMs: number;
5681
5681
  commandId?: string | undefined;
5682
5682
  }, {
5683
- expiresAt: string;
5684
5683
  type: "session.created";
5685
5684
  kind: "conversation" | "transcription" | "translation";
5685
+ expiresAt: string;
5686
5686
  schemaVersion: 1;
5687
5687
  limits: {
5688
5688
  maxDurationMs: number;
@@ -6132,6 +6132,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6132
6132
  }>]>, "many">;
6133
6133
  }, "strict", z.ZodTypeAny, {
6134
6134
  type: "message";
6135
+ role: "system" | "user" | "assistant";
6135
6136
  content: ({
6136
6137
  type: "input_text";
6137
6138
  text: string;
@@ -6148,10 +6149,10 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6148
6149
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6149
6150
  transcript?: string | undefined;
6150
6151
  })[];
6151
- role: "system" | "user" | "assistant";
6152
6152
  itemId?: string | undefined;
6153
6153
  }, {
6154
6154
  type: "message";
6155
+ role: "system" | "user" | "assistant";
6155
6156
  content: ({
6156
6157
  type: "input_text";
6157
6158
  text: string;
@@ -6168,7 +6169,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6168
6169
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6169
6170
  transcript?: string | undefined;
6170
6171
  })[];
6171
- role: "system" | "user" | "assistant";
6172
6172
  itemId?: string | undefined;
6173
6173
  }>, z.ZodObject<{
6174
6174
  type: z.ZodLiteral<"function_call">;
@@ -6205,6 +6205,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6205
6205
  itemId?: string | undefined;
6206
6206
  }>]>, {
6207
6207
  type: "message";
6208
+ role: "system" | "user" | "assistant";
6208
6209
  content: ({
6209
6210
  type: "input_text";
6210
6211
  text: string;
@@ -6221,7 +6222,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6221
6222
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6222
6223
  transcript?: string | undefined;
6223
6224
  })[];
6224
- role: "system" | "user" | "assistant";
6225
6225
  itemId?: string | undefined;
6226
6226
  } | {
6227
6227
  type: "function_call";
@@ -6236,6 +6236,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6236
6236
  itemId?: string | undefined;
6237
6237
  }, {
6238
6238
  type: "message";
6239
+ role: "system" | "user" | "assistant";
6239
6240
  content: ({
6240
6241
  type: "input_text";
6241
6242
  text: string;
@@ -6252,7 +6253,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6252
6253
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6253
6254
  transcript?: string | undefined;
6254
6255
  })[];
6255
- role: "system" | "user" | "assistant";
6256
6256
  itemId?: string | undefined;
6257
6257
  } | {
6258
6258
  type: "function_call";
@@ -6281,6 +6281,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6281
6281
  itemId: string;
6282
6282
  item: {
6283
6283
  type: "message";
6284
+ role: "system" | "user" | "assistant";
6284
6285
  content: ({
6285
6286
  type: "input_text";
6286
6287
  text: string;
@@ -6297,7 +6298,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6297
6298
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6298
6299
  transcript?: string | undefined;
6299
6300
  })[];
6300
- role: "system" | "user" | "assistant";
6301
6301
  itemId?: string | undefined;
6302
6302
  } | {
6303
6303
  type: "function_call";
@@ -6321,6 +6321,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6321
6321
  itemId: string;
6322
6322
  item: {
6323
6323
  type: "message";
6324
+ role: "system" | "user" | "assistant";
6324
6325
  content: ({
6325
6326
  type: "input_text";
6326
6327
  text: string;
@@ -6337,7 +6338,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6337
6338
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6338
6339
  transcript?: string | undefined;
6339
6340
  })[];
6340
- role: "system" | "user" | "assistant";
6341
6341
  itemId?: string | undefined;
6342
6342
  } | {
6343
6343
  type: "function_call";
@@ -6408,6 +6408,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6408
6408
  }>]>, "many">;
6409
6409
  }, "strict", z.ZodTypeAny, {
6410
6410
  type: "message";
6411
+ role: "system" | "user" | "assistant";
6411
6412
  content: ({
6412
6413
  type: "input_text";
6413
6414
  text: string;
@@ -6424,10 +6425,10 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6424
6425
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6425
6426
  transcript?: string | undefined;
6426
6427
  })[];
6427
- role: "system" | "user" | "assistant";
6428
6428
  itemId?: string | undefined;
6429
6429
  }, {
6430
6430
  type: "message";
6431
+ role: "system" | "user" | "assistant";
6431
6432
  content: ({
6432
6433
  type: "input_text";
6433
6434
  text: string;
@@ -6444,7 +6445,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6444
6445
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6445
6446
  transcript?: string | undefined;
6446
6447
  })[];
6447
- role: "system" | "user" | "assistant";
6448
6448
  itemId?: string | undefined;
6449
6449
  }>, z.ZodObject<{
6450
6450
  type: z.ZodLiteral<"function_call">;
@@ -6481,6 +6481,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6481
6481
  itemId?: string | undefined;
6482
6482
  }>]>, {
6483
6483
  type: "message";
6484
+ role: "system" | "user" | "assistant";
6484
6485
  content: ({
6485
6486
  type: "input_text";
6486
6487
  text: string;
@@ -6497,7 +6498,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6497
6498
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6498
6499
  transcript?: string | undefined;
6499
6500
  })[];
6500
- role: "system" | "user" | "assistant";
6501
6501
  itemId?: string | undefined;
6502
6502
  } | {
6503
6503
  type: "function_call";
@@ -6512,6 +6512,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6512
6512
  itemId?: string | undefined;
6513
6513
  }, {
6514
6514
  type: "message";
6515
+ role: "system" | "user" | "assistant";
6515
6516
  content: ({
6516
6517
  type: "input_text";
6517
6518
  text: string;
@@ -6528,7 +6529,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6528
6529
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6529
6530
  transcript?: string | undefined;
6530
6531
  })[];
6531
- role: "system" | "user" | "assistant";
6532
6532
  itemId?: string | undefined;
6533
6533
  } | {
6534
6534
  type: "function_call";
@@ -6557,6 +6557,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6557
6557
  itemId: string;
6558
6558
  item: {
6559
6559
  type: "message";
6560
+ role: "system" | "user" | "assistant";
6560
6561
  content: ({
6561
6562
  type: "input_text";
6562
6563
  text: string;
@@ -6573,7 +6574,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6573
6574
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6574
6575
  transcript?: string | undefined;
6575
6576
  })[];
6576
- role: "system" | "user" | "assistant";
6577
6577
  itemId?: string | undefined;
6578
6578
  } | {
6579
6579
  type: "function_call";
@@ -6596,6 +6596,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6596
6596
  itemId: string;
6597
6597
  item: {
6598
6598
  type: "message";
6599
+ role: "system" | "user" | "assistant";
6599
6600
  content: ({
6600
6601
  type: "input_text";
6601
6602
  text: string;
@@ -6612,7 +6613,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6612
6613
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
6613
6614
  transcript?: string | undefined;
6614
6615
  })[];
6615
- role: "system" | "user" | "assistant";
6616
6616
  itemId?: string | undefined;
6617
6617
  } | {
6618
6618
  type: "function_call";
@@ -6890,10 +6890,10 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6890
6890
  commandId: z.ZodOptional<z.ZodString>;
6891
6891
  }, "strip", z.ZodTypeAny, {
6892
6892
  type: "transcript.delta";
6893
+ source: "input_audio" | "output_audio";
6893
6894
  schemaVersion: 1;
6894
6895
  requestId: string;
6895
6896
  text: string;
6896
- source: "input_audio" | "output_audio";
6897
6897
  sequence: number;
6898
6898
  itemId: string;
6899
6899
  contentIndex: number;
@@ -6901,10 +6901,10 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6901
6901
  responseId?: string | undefined;
6902
6902
  }, {
6903
6903
  type: "transcript.delta";
6904
+ source: "input_audio" | "output_audio";
6904
6905
  schemaVersion: 1;
6905
6906
  requestId: string;
6906
6907
  text: string;
6907
- source: "input_audio" | "output_audio";
6908
6908
  sequence: number;
6909
6909
  itemId: string;
6910
6910
  contentIndex: number;
@@ -6926,9 +6926,9 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6926
6926
  commandId: z.ZodOptional<z.ZodString>;
6927
6927
  }, "strip", z.ZodTypeAny, {
6928
6928
  type: "transcript.done";
6929
+ source: "input_audio" | "output_audio";
6929
6930
  schemaVersion: 1;
6930
6931
  requestId: string;
6931
- source: "input_audio" | "output_audio";
6932
6932
  sequence: number;
6933
6933
  transcript: string;
6934
6934
  itemId: string;
@@ -6937,9 +6937,9 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
6937
6937
  responseId?: string | undefined;
6938
6938
  }, {
6939
6939
  type: "transcript.done";
6940
+ source: "input_audio" | "output_audio";
6940
6941
  schemaVersion: 1;
6941
6942
  requestId: string;
6942
- source: "input_audio" | "output_audio";
6943
6943
  sequence: number;
6944
6944
  transcript: string;
6945
6945
  itemId: string;
@@ -7043,8 +7043,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7043
7043
  /** The command this event answers, when it answers one. */
7044
7044
  commandId: z.ZodOptional<z.ZodString>;
7045
7045
  }, "strip", z.ZodTypeAny, {
7046
- status: "failed" | "completed" | "cancelled" | "incomplete";
7047
7046
  type: "response.done";
7047
+ status: "failed" | "completed" | "cancelled" | "incomplete";
7048
7048
  schemaVersion: 1;
7049
7049
  requestId: string;
7050
7050
  deploymentId: string;
@@ -7058,8 +7058,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7058
7058
  finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
7059
7059
  commandId?: string | undefined;
7060
7060
  }, {
7061
- status: "failed" | "completed" | "cancelled" | "incomplete";
7062
7061
  type: "response.done";
7062
+ status: "failed" | "completed" | "cancelled" | "incomplete";
7063
7063
  schemaVersion: 1;
7064
7064
  requestId: string;
7065
7065
  deploymentId: string;
@@ -7169,8 +7169,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7169
7169
  /** The command this event answers, when it answers one. */
7170
7170
  commandId: z.ZodOptional<z.ZodString>;
7171
7171
  }, "strip", z.ZodTypeAny, {
7172
- fatal: boolean;
7173
7172
  type: "error";
7173
+ fatal: boolean;
7174
7174
  error: {
7175
7175
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
7176
7176
  message: string;
@@ -7192,8 +7192,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7192
7192
  sequence: number;
7193
7193
  commandId?: string | undefined;
7194
7194
  }, {
7195
- fatal: boolean;
7196
7195
  type: "error";
7196
+ fatal: boolean;
7197
7197
  error: {
7198
7198
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
7199
7199
  message: string;
@@ -7266,9 +7266,9 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7266
7266
  deploymentId?: string | undefined;
7267
7267
  commandId?: string | undefined;
7268
7268
  }>]>, {
7269
- expiresAt: string;
7270
7269
  type: "session.created";
7271
7270
  kind: "conversation" | "transcription" | "translation";
7271
+ expiresAt: string;
7272
7272
  schemaVersion: 1;
7273
7273
  limits: {
7274
7274
  maxDurationMs: number;
@@ -7397,6 +7397,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7397
7397
  itemId: string;
7398
7398
  item: {
7399
7399
  type: "message";
7400
+ role: "system" | "user" | "assistant";
7400
7401
  content: ({
7401
7402
  type: "input_text";
7402
7403
  text: string;
@@ -7413,7 +7414,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7413
7414
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
7414
7415
  transcript?: string | undefined;
7415
7416
  })[];
7416
- role: "system" | "user" | "assistant";
7417
7417
  itemId?: string | undefined;
7418
7418
  } | {
7419
7419
  type: "function_call";
@@ -7437,6 +7437,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7437
7437
  itemId: string;
7438
7438
  item: {
7439
7439
  type: "message";
7440
+ role: "system" | "user" | "assistant";
7440
7441
  content: ({
7441
7442
  type: "input_text";
7442
7443
  text: string;
@@ -7453,7 +7454,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7453
7454
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
7454
7455
  transcript?: string | undefined;
7455
7456
  })[];
7456
- role: "system" | "user" | "assistant";
7457
7457
  itemId?: string | undefined;
7458
7458
  } | {
7459
7459
  type: "function_call";
@@ -7543,10 +7543,10 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7543
7543
  commandId?: string | undefined;
7544
7544
  } | {
7545
7545
  type: "transcript.delta";
7546
+ source: "input_audio" | "output_audio";
7546
7547
  schemaVersion: 1;
7547
7548
  requestId: string;
7548
7549
  text: string;
7549
- source: "input_audio" | "output_audio";
7550
7550
  sequence: number;
7551
7551
  itemId: string;
7552
7552
  contentIndex: number;
@@ -7554,9 +7554,9 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7554
7554
  responseId?: string | undefined;
7555
7555
  } | {
7556
7556
  type: "transcript.done";
7557
+ source: "input_audio" | "output_audio";
7557
7558
  schemaVersion: 1;
7558
7559
  requestId: string;
7559
- source: "input_audio" | "output_audio";
7560
7560
  sequence: number;
7561
7561
  transcript: string;
7562
7562
  itemId: string;
@@ -7586,8 +7586,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7586
7586
  argumentsDelta?: string | undefined;
7587
7587
  commandId?: string | undefined;
7588
7588
  } | {
7589
- status: "failed" | "completed" | "cancelled" | "incomplete";
7590
7589
  type: "response.done";
7590
+ status: "failed" | "completed" | "cancelled" | "incomplete";
7591
7591
  schemaVersion: 1;
7592
7592
  requestId: string;
7593
7593
  deploymentId: string;
@@ -7601,8 +7601,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7601
7601
  finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
7602
7602
  commandId?: string | undefined;
7603
7603
  } | {
7604
- fatal: boolean;
7605
7604
  type: "error";
7605
+ fatal: boolean;
7606
7606
  error: {
7607
7607
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
7608
7608
  message: string;
@@ -7638,9 +7638,9 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7638
7638
  deploymentId?: string | undefined;
7639
7639
  commandId?: string | undefined;
7640
7640
  }, {
7641
- expiresAt: string;
7642
7641
  type: "session.created";
7643
7642
  kind: "conversation" | "transcription" | "translation";
7643
+ expiresAt: string;
7644
7644
  schemaVersion: 1;
7645
7645
  limits: {
7646
7646
  maxDurationMs: number;
@@ -7769,6 +7769,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7769
7769
  itemId: string;
7770
7770
  item: {
7771
7771
  type: "message";
7772
+ role: "system" | "user" | "assistant";
7772
7773
  content: ({
7773
7774
  type: "input_text";
7774
7775
  text: string;
@@ -7785,7 +7786,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7785
7786
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
7786
7787
  transcript?: string | undefined;
7787
7788
  })[];
7788
- role: "system" | "user" | "assistant";
7789
7789
  itemId?: string | undefined;
7790
7790
  } | {
7791
7791
  type: "function_call";
@@ -7809,6 +7809,7 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7809
7809
  itemId: string;
7810
7810
  item: {
7811
7811
  type: "message";
7812
+ role: "system" | "user" | "assistant";
7812
7813
  content: ({
7813
7814
  type: "input_text";
7814
7815
  text: string;
@@ -7825,7 +7826,6 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7825
7826
  format: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
7826
7827
  transcript?: string | undefined;
7827
7828
  })[];
7828
- role: "system" | "user" | "assistant";
7829
7829
  itemId?: string | undefined;
7830
7830
  } | {
7831
7831
  type: "function_call";
@@ -7915,10 +7915,10 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7915
7915
  commandId?: string | undefined;
7916
7916
  } | {
7917
7917
  type: "transcript.delta";
7918
+ source: "input_audio" | "output_audio";
7918
7919
  schemaVersion: 1;
7919
7920
  requestId: string;
7920
7921
  text: string;
7921
- source: "input_audio" | "output_audio";
7922
7922
  sequence: number;
7923
7923
  itemId: string;
7924
7924
  contentIndex: number;
@@ -7926,9 +7926,9 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7926
7926
  responseId?: string | undefined;
7927
7927
  } | {
7928
7928
  type: "transcript.done";
7929
+ source: "input_audio" | "output_audio";
7929
7930
  schemaVersion: 1;
7930
7931
  requestId: string;
7931
- source: "input_audio" | "output_audio";
7932
7932
  sequence: number;
7933
7933
  transcript: string;
7934
7934
  itemId: string;
@@ -7958,8 +7958,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7958
7958
  argumentsDelta?: string | undefined;
7959
7959
  commandId?: string | undefined;
7960
7960
  } | {
7961
- status: "failed" | "completed" | "cancelled" | "incomplete";
7962
7961
  type: "response.done";
7962
+ status: "failed" | "completed" | "cancelled" | "incomplete";
7963
7963
  schemaVersion: 1;
7964
7964
  requestId: string;
7965
7965
  deploymentId: string;
@@ -7973,8 +7973,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
7973
7973
  finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
7974
7974
  commandId?: string | undefined;
7975
7975
  } | {
7976
- fatal: boolean;
7977
7976
  type: "error";
7977
+ fatal: boolean;
7978
7978
  error: {
7979
7979
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
7980
7980
  message: string;