@orq-ai/node 4.4.12 → 4.4.16

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 (133) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/partdoneevent.js +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createcontact.js +1 -1
  7. package/models/operations/createdataset.js +1 -1
  8. package/models/operations/createdatasetitem.js +4 -4
  9. package/models/operations/createdatasource.js +1 -1
  10. package/models/operations/createeval.js +16 -16
  11. package/models/operations/createidentity.js +1 -1
  12. package/models/operations/createtool.js +6 -6
  13. package/models/operations/fileget.js +1 -1
  14. package/models/operations/filelist.js +1 -1
  15. package/models/operations/fileupload.js +1 -1
  16. package/models/operations/getalltools.js +6 -6
  17. package/models/operations/getevals.js +16 -16
  18. package/models/operations/listdatasetdatapoints.js +4 -4
  19. package/models/operations/listdatasets.js +1 -1
  20. package/models/operations/listdatasources.js +1 -1
  21. package/models/operations/listidentities.js +1 -1
  22. package/models/operations/retrievedatapoint.js +4 -4
  23. package/models/operations/retrievedataset.js +1 -1
  24. package/models/operations/retrievedatasource.js +1 -1
  25. package/models/operations/retrieveidentity.js +1 -1
  26. package/models/operations/retrievetool.js +6 -6
  27. package/models/operations/runagent.js +1 -1
  28. package/models/operations/streamrunagent.js +1 -1
  29. package/models/operations/updatedatapoint.js +4 -4
  30. package/models/operations/updatedataset.js +1 -1
  31. package/models/operations/updatedatasource.js +1 -1
  32. package/models/operations/updateeval.js +16 -16
  33. package/models/operations/updateidentity.js +1 -1
  34. package/models/operations/updatetool.js +7 -7
  35. package/package.json +1 -1
  36. package/packages/orq-rc/src/funcs/agentsList.ts +5 -0
  37. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  38. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  39. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
  40. package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
  41. package/packages/orq-rc/src/lib/config.ts +3 -3
  42. package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
  43. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  44. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  45. package/packages/orq-rc/src/models/components/index.ts +3 -0
  46. package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
  47. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  48. package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
  49. package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
  50. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  51. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  52. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  53. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  54. package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
  55. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +35 -1
  56. package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
  57. package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
  58. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  59. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  60. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  61. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  62. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  63. package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
  64. package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
  65. package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
  66. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
  67. package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
  68. package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
  69. package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
  70. package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
  71. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  72. package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
  73. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  74. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  75. package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
  76. package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
  77. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  78. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  79. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  80. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  81. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
  82. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
  83. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  84. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
  85. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  86. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  87. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  89. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  90. package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
  91. package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
  92. package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
  93. package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
  94. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  95. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  96. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  97. package/packages/orq-rc/src/models/operations/updateeval.ts +97 -16
  98. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  99. package/packages/orq-rc/src/models/operations/updatetool.ts +74 -49
  100. package/packages/orq-rc/src/sdk/agents.ts +39 -1
  101. package/packages/orq-rc/src/sdk/responses.ts +19 -0
  102. package/src/lib/config.ts +3 -3
  103. package/src/models/components/partdoneevent.ts +1 -1
  104. package/src/models/components/reasoningpart.ts +1 -1
  105. package/src/models/operations/createcontact.ts +1 -1
  106. package/src/models/operations/createdataset.ts +1 -1
  107. package/src/models/operations/createdatasetitem.ts +4 -4
  108. package/src/models/operations/createdatasource.ts +1 -1
  109. package/src/models/operations/createeval.ts +16 -16
  110. package/src/models/operations/createidentity.ts +1 -1
  111. package/src/models/operations/createtool.ts +6 -6
  112. package/src/models/operations/fileget.ts +1 -1
  113. package/src/models/operations/filelist.ts +1 -1
  114. package/src/models/operations/fileupload.ts +1 -1
  115. package/src/models/operations/getalltools.ts +6 -6
  116. package/src/models/operations/getevals.ts +16 -16
  117. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  118. package/src/models/operations/listdatasets.ts +1 -1
  119. package/src/models/operations/listdatasources.ts +1 -1
  120. package/src/models/operations/listidentities.ts +1 -1
  121. package/src/models/operations/retrievedatapoint.ts +4 -4
  122. package/src/models/operations/retrievedataset.ts +1 -1
  123. package/src/models/operations/retrievedatasource.ts +1 -1
  124. package/src/models/operations/retrieveidentity.ts +1 -1
  125. package/src/models/operations/retrievetool.ts +6 -6
  126. package/src/models/operations/runagent.ts +1 -1
  127. package/src/models/operations/streamrunagent.ts +1 -1
  128. package/src/models/operations/updatedatapoint.ts +4 -4
  129. package/src/models/operations/updatedataset.ts +1 -1
  130. package/src/models/operations/updatedatasource.ts +1 -1
  131. package/src/models/operations/updateeval.ts +16 -16
  132. package/src/models/operations/updateidentity.ts +1 -1
  133. package/src/models/operations/updatetool.ts +7 -7
@@ -394,7 +394,7 @@ export type CreatePromptMessages =
394
394
  /**
395
395
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
396
396
  */
397
- export const CreatePromptVoice = {
397
+ export const Voice = {
398
398
  Alloy: "alloy",
399
399
  Echo: "echo",
400
400
  Fable: "fable",
@@ -405,12 +405,12 @@ export const CreatePromptVoice = {
405
405
  /**
406
406
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
407
407
  */
408
- export type CreatePromptVoice = ClosedEnum<typeof CreatePromptVoice>;
408
+ export type Voice = ClosedEnum<typeof Voice>;
409
409
 
410
410
  /**
411
411
  * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
412
412
  */
413
- export const CreatePromptFormat = {
413
+ export const Format = {
414
414
  Wav: "wav",
415
415
  Mp3: "mp3",
416
416
  Flac: "flac",
@@ -420,7 +420,7 @@ export const CreatePromptFormat = {
420
420
  /**
421
421
  * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
422
422
  */
423
- export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
423
+ export type Format = ClosedEnum<typeof Format>;
424
424
 
425
425
  /**
426
426
  * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
@@ -429,11 +429,11 @@ export type CreatePromptAudio = {
429
429
  /**
430
430
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
431
431
  */
432
- voice: CreatePromptVoice;
432
+ voice: Voice;
433
433
  /**
434
434
  * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
435
435
  */
436
- format: CreatePromptFormat;
436
+ format: Format;
437
437
  };
438
438
 
439
439
  export type CreatePromptResponseFormatPromptsJsonSchema = {
@@ -535,7 +535,7 @@ export type CreatePromptStop = string | Array<string>;
535
535
  /**
536
536
  * Options for streaming response. Only set this when you set stream: true.
537
537
  */
538
- export type CreatePromptStreamOptions = {
538
+ export type StreamOptions = {
539
539
  /**
540
540
  * If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
541
541
  */
@@ -799,7 +799,7 @@ export type PromptInput = {
799
799
  /**
800
800
  * Options for streaming response. Only set this when you set stream: true.
801
801
  */
802
- streamOptions?: CreatePromptStreamOptions | null | undefined;
802
+ streamOptions?: StreamOptions | null | undefined;
803
803
  thinking?:
804
804
  | components.ThinkingConfigDisabledSchema
805
805
  | components.ThinkingConfigEnabledSchema
@@ -910,7 +910,7 @@ export type ModelType = ClosedEnum<typeof ModelType>;
910
910
  /**
911
911
  * Only supported on `image` models.
912
912
  */
913
- export const CreatePromptPromptsFormat = {
913
+ export const CreatePromptFormat = {
914
914
  Url: "url",
915
915
  B64Json: "b64_json",
916
916
  Text: "text",
@@ -919,9 +919,7 @@ export const CreatePromptPromptsFormat = {
919
919
  /**
920
920
  * Only supported on `image` models.
921
921
  */
922
- export type CreatePromptPromptsFormat = ClosedEnum<
923
- typeof CreatePromptPromptsFormat
924
- >;
922
+ export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
925
923
 
926
924
  export const CreatePromptResponseFormat6 = {
927
925
  Json: "json",
@@ -1138,7 +1136,7 @@ export type ModelParameters = {
1138
1136
  /**
1139
1137
  * Only supported on `image` models.
1140
1138
  */
1141
- format?: CreatePromptPromptsFormat | undefined;
1139
+ format?: CreatePromptFormat | undefined;
1142
1140
  /**
1143
1141
  * Only supported on `image` models.
1144
1142
  */
@@ -1388,7 +1386,7 @@ export type PromptConfig = {
1388
1386
  /**
1389
1387
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
1390
1388
  */
1391
- export const CreatePromptPromptsVoice = {
1389
+ export const CreatePromptVoice = {
1392
1390
  Alloy: "alloy",
1393
1391
  Echo: "echo",
1394
1392
  Fable: "fable",
@@ -1399,14 +1397,12 @@ export const CreatePromptPromptsVoice = {
1399
1397
  /**
1400
1398
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
1401
1399
  */
1402
- export type CreatePromptPromptsVoice = ClosedEnum<
1403
- typeof CreatePromptPromptsVoice
1404
- >;
1400
+ export type CreatePromptVoice = ClosedEnum<typeof CreatePromptVoice>;
1405
1401
 
1406
1402
  /**
1407
1403
  * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
1408
1404
  */
1409
- export const CreatePromptPromptsResponse200Format = {
1405
+ export const CreatePromptPromptsFormat = {
1410
1406
  Wav: "wav",
1411
1407
  Mp3: "mp3",
1412
1408
  Flac: "flac",
@@ -1416,8 +1412,8 @@ export const CreatePromptPromptsResponse200Format = {
1416
1412
  /**
1417
1413
  * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
1418
1414
  */
1419
- export type CreatePromptPromptsResponse200Format = ClosedEnum<
1420
- typeof CreatePromptPromptsResponse200Format
1415
+ export type CreatePromptPromptsFormat = ClosedEnum<
1416
+ typeof CreatePromptPromptsFormat
1421
1417
  >;
1422
1418
 
1423
1419
  /**
@@ -1427,11 +1423,11 @@ export type CreatePromptPromptsAudio = {
1427
1423
  /**
1428
1424
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
1429
1425
  */
1430
- voice: CreatePromptPromptsVoice;
1426
+ voice: CreatePromptVoice;
1431
1427
  /**
1432
1428
  * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
1433
1429
  */
1434
- format: CreatePromptPromptsResponse200Format;
1430
+ format: CreatePromptPromptsFormat;
1435
1431
  };
1436
1432
 
1437
1433
  export type CreatePromptResponseFormatPromptsResponseJsonSchema = {
@@ -1533,7 +1529,7 @@ export type CreatePromptPromptsStop = string | Array<string>;
1533
1529
  /**
1534
1530
  * Options for streaming response. Only set this when you set stream: true.
1535
1531
  */
1536
- export type CreatePromptPromptsStreamOptions = {
1532
+ export type CreatePromptStreamOptions = {
1537
1533
  /**
1538
1534
  * If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
1539
1535
  */
@@ -2123,7 +2119,7 @@ export type PromptField = {
2123
2119
  /**
2124
2120
  * Options for streaming response. Only set this when you set stream: true.
2125
2121
  */
2126
- streamOptions?: CreatePromptPromptsStreamOptions | null | undefined;
2122
+ streamOptions?: CreatePromptStreamOptions | null | undefined;
2127
2123
  thinking?:
2128
2124
  | components.ThinkingConfigDisabledSchema
2129
2125
  | components.ThinkingConfigEnabledSchema
@@ -2926,14 +2922,13 @@ export function createPromptMessagesToJSON(
2926
2922
  }
2927
2923
 
2928
2924
  /** @internal */
2929
- export const CreatePromptVoice$outboundSchema: z.ZodNativeEnum<
2930
- typeof CreatePromptVoice
2931
- > = z.nativeEnum(CreatePromptVoice);
2925
+ export const Voice$outboundSchema: z.ZodNativeEnum<typeof Voice> = z.nativeEnum(
2926
+ Voice,
2927
+ );
2932
2928
 
2933
2929
  /** @internal */
2934
- export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
2935
- typeof CreatePromptFormat
2936
- > = z.nativeEnum(CreatePromptFormat);
2930
+ export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> = z
2931
+ .nativeEnum(Format);
2937
2932
 
2938
2933
  /** @internal */
2939
2934
  export type CreatePromptAudio$Outbound = {
@@ -2947,8 +2942,8 @@ export const CreatePromptAudio$outboundSchema: z.ZodType<
2947
2942
  z.ZodTypeDef,
2948
2943
  CreatePromptAudio
2949
2944
  > = z.object({
2950
- voice: CreatePromptVoice$outboundSchema,
2951
- format: CreatePromptFormat$outboundSchema,
2945
+ voice: Voice$outboundSchema,
2946
+ format: Format$outboundSchema,
2952
2947
  });
2953
2948
 
2954
2949
  export function createPromptAudioToJSON(
@@ -3120,15 +3115,15 @@ export function createPromptStopToJSON(
3120
3115
  }
3121
3116
 
3122
3117
  /** @internal */
3123
- export type CreatePromptStreamOptions$Outbound = {
3118
+ export type StreamOptions$Outbound = {
3124
3119
  include_usage?: boolean | undefined;
3125
3120
  };
3126
3121
 
3127
3122
  /** @internal */
3128
- export const CreatePromptStreamOptions$outboundSchema: z.ZodType<
3129
- CreatePromptStreamOptions$Outbound,
3123
+ export const StreamOptions$outboundSchema: z.ZodType<
3124
+ StreamOptions$Outbound,
3130
3125
  z.ZodTypeDef,
3131
- CreatePromptStreamOptions
3126
+ StreamOptions
3132
3127
  > = z.object({
3133
3128
  includeUsage: z.boolean().optional(),
3134
3129
  }).transform((v) => {
@@ -3137,12 +3132,8 @@ export const CreatePromptStreamOptions$outboundSchema: z.ZodType<
3137
3132
  });
3138
3133
  });
3139
3134
 
3140
- export function createPromptStreamOptionsToJSON(
3141
- createPromptStreamOptions: CreatePromptStreamOptions,
3142
- ): string {
3143
- return JSON.stringify(
3144
- CreatePromptStreamOptions$outboundSchema.parse(createPromptStreamOptions),
3145
- );
3135
+ export function streamOptionsToJSON(streamOptions: StreamOptions): string {
3136
+ return JSON.stringify(StreamOptions$outboundSchema.parse(streamOptions));
3146
3137
  }
3147
3138
 
3148
3139
  /** @internal */
@@ -3512,7 +3503,7 @@ export type PromptInput$Outbound = {
3512
3503
  verbosity?: string | undefined;
3513
3504
  seed?: number | null | undefined;
3514
3505
  stop?: string | Array<string> | null | undefined;
3515
- stream_options?: CreatePromptStreamOptions$Outbound | null | undefined;
3506
+ stream_options?: StreamOptions$Outbound | null | undefined;
3516
3507
  thinking?:
3517
3508
  | components.ThinkingConfigDisabledSchema$Outbound
3518
3509
  | components.ThinkingConfigEnabledSchema$Outbound
@@ -3564,9 +3555,8 @@ export const PromptInput$outboundSchema: z.ZodType<
3564
3555
  verbosity: z.string().optional(),
3565
3556
  seed: z.nullable(z.number()).optional(),
3566
3557
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3567
- streamOptions: z.nullable(
3568
- z.lazy(() => CreatePromptStreamOptions$outboundSchema),
3569
- ).optional(),
3558
+ streamOptions: z.nullable(z.lazy(() => StreamOptions$outboundSchema))
3559
+ .optional(),
3570
3560
  thinking: z.union([
3571
3561
  components.ThinkingConfigDisabledSchema$outboundSchema,
3572
3562
  components.ThinkingConfigEnabledSchema$outboundSchema,
@@ -3656,9 +3646,9 @@ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
3656
3646
  .nativeEnum(ModelType);
3657
3647
 
3658
3648
  /** @internal */
3659
- export const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
3660
- typeof CreatePromptPromptsFormat
3661
- > = z.nativeEnum(CreatePromptPromptsFormat);
3649
+ export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
3650
+ typeof CreatePromptFormat
3651
+ > = z.nativeEnum(CreatePromptFormat);
3662
3652
 
3663
3653
  /** @internal */
3664
3654
  export const CreatePromptResponseFormat6$inboundSchema: z.ZodNativeEnum<
@@ -3865,7 +3855,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
3865
3855
  presencePenalty: z.number().optional(),
3866
3856
  numImages: z.number().optional(),
3867
3857
  seed: z.number().optional(),
3868
- format: CreatePromptPromptsFormat$inboundSchema.optional(),
3858
+ format: CreatePromptFormat$inboundSchema.optional(),
3869
3859
  dimensions: z.string().optional(),
3870
3860
  quality: z.string().optional(),
3871
3861
  style: z.string().optional(),
@@ -4188,15 +4178,14 @@ export function promptConfigFromJSON(
4188
4178
  }
4189
4179
 
4190
4180
  /** @internal */
4191
- export const CreatePromptPromptsVoice$inboundSchema: z.ZodNativeEnum<
4192
- typeof CreatePromptPromptsVoice
4193
- > = z.nativeEnum(CreatePromptPromptsVoice);
4181
+ export const CreatePromptVoice$inboundSchema: z.ZodNativeEnum<
4182
+ typeof CreatePromptVoice
4183
+ > = z.nativeEnum(CreatePromptVoice);
4194
4184
 
4195
4185
  /** @internal */
4196
- export const CreatePromptPromptsResponse200Format$inboundSchema:
4197
- z.ZodNativeEnum<typeof CreatePromptPromptsResponse200Format> = z.nativeEnum(
4198
- CreatePromptPromptsResponse200Format,
4199
- );
4186
+ export const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
4187
+ typeof CreatePromptPromptsFormat
4188
+ > = z.nativeEnum(CreatePromptPromptsFormat);
4200
4189
 
4201
4190
  /** @internal */
4202
4191
  export const CreatePromptPromptsAudio$inboundSchema: z.ZodType<
@@ -4204,8 +4193,8 @@ export const CreatePromptPromptsAudio$inboundSchema: z.ZodType<
4204
4193
  z.ZodTypeDef,
4205
4194
  unknown
4206
4195
  > = z.object({
4207
- voice: CreatePromptPromptsVoice$inboundSchema,
4208
- format: CreatePromptPromptsResponse200Format$inboundSchema,
4196
+ voice: CreatePromptVoice$inboundSchema,
4197
+ format: CreatePromptPromptsFormat$inboundSchema,
4209
4198
  });
4210
4199
 
4211
4200
  export function createPromptPromptsAudioFromJSON(
@@ -4371,8 +4360,8 @@ export function createPromptPromptsStopFromJSON(
4371
4360
  }
4372
4361
 
4373
4362
  /** @internal */
4374
- export const CreatePromptPromptsStreamOptions$inboundSchema: z.ZodType<
4375
- CreatePromptPromptsStreamOptions,
4363
+ export const CreatePromptStreamOptions$inboundSchema: z.ZodType<
4364
+ CreatePromptStreamOptions,
4376
4365
  z.ZodTypeDef,
4377
4366
  unknown
4378
4367
  > = z.object({
@@ -4383,13 +4372,13 @@ export const CreatePromptPromptsStreamOptions$inboundSchema: z.ZodType<
4383
4372
  });
4384
4373
  });
4385
4374
 
4386
- export function createPromptPromptsStreamOptionsFromJSON(
4375
+ export function createPromptStreamOptionsFromJSON(
4387
4376
  jsonString: string,
4388
- ): SafeParseResult<CreatePromptPromptsStreamOptions, SDKValidationError> {
4377
+ ): SafeParseResult<CreatePromptStreamOptions, SDKValidationError> {
4389
4378
  return safeParse(
4390
4379
  jsonString,
4391
- (x) => CreatePromptPromptsStreamOptions$inboundSchema.parse(JSON.parse(x)),
4392
- `Failed to parse 'CreatePromptPromptsStreamOptions' from JSON`,
4380
+ (x) => CreatePromptStreamOptions$inboundSchema.parse(JSON.parse(x)),
4381
+ `Failed to parse 'CreatePromptStreamOptions' from JSON`,
4393
4382
  );
4394
4383
  }
4395
4384
 
@@ -5264,7 +5253,7 @@ export const PromptField$inboundSchema: z.ZodType<
5264
5253
  seed: z.nullable(z.number()).optional(),
5265
5254
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
5266
5255
  stream_options: z.nullable(
5267
- z.lazy(() => CreatePromptPromptsStreamOptions$inboundSchema),
5256
+ z.lazy(() => CreatePromptStreamOptions$inboundSchema),
5268
5257
  ).optional(),
5269
5258
  thinking: z.union([
5270
5259
  components.ThinkingConfigDisabledSchema$inboundSchema,