@orq-ai/node 3.2.0-rc.13 → 3.2.0-rc.17

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 (58) hide show
  1. package/README.md +1 -1
  2. package/bin/mcp-server.js +606 -606
  3. package/bin/mcp-server.js.map +21 -21
  4. package/docs/sdks/prompts/README.md +110 -110
  5. package/funcs/promptsList.js +1 -1
  6. package/funcs/promptsList.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +3 -3
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +2 -2
  12. package/mcp-server/server.js.map +1 -1
  13. package/models/operations/bulkcreatedatapoints.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.js +2 -2
  17. package/models/operations/createprompt.d.ts +333 -333
  18. package/models/operations/createprompt.d.ts.map +1 -1
  19. package/models/operations/createprompt.js +466 -469
  20. package/models/operations/createprompt.js.map +1 -1
  21. package/models/operations/fileget.js +2 -2
  22. package/models/operations/filelist.js +2 -2
  23. package/models/operations/fileupload.js +2 -2
  24. package/models/operations/listdatasetdatapoints.js +2 -2
  25. package/models/operations/listdatasets.js +2 -2
  26. package/models/operations/retrievedatapoint.js +2 -2
  27. package/models/operations/retrievedataset.js +2 -2
  28. package/models/operations/updatedatapoint.js +2 -2
  29. package/models/operations/updatedataset.js +2 -2
  30. package/models/operations/updateprompt.d.ts +333 -333
  31. package/models/operations/updateprompt.d.ts.map +1 -1
  32. package/models/operations/updateprompt.js +469 -468
  33. package/models/operations/updateprompt.js.map +1 -1
  34. package/package.json +1 -1
  35. package/sdk/prompts.d.ts +4 -4
  36. package/sdk/prompts.d.ts.map +1 -1
  37. package/sdk/prompts.js +6 -6
  38. package/sdk/prompts.js.map +1 -1
  39. package/src/funcs/promptsList.ts +1 -1
  40. package/src/lib/config.ts +3 -3
  41. package/src/mcp-server/mcp-server.ts +1 -1
  42. package/src/mcp-server/server.ts +2 -2
  43. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  44. package/src/models/operations/createcontact.ts +2 -2
  45. package/src/models/operations/createdataset.ts +2 -2
  46. package/src/models/operations/createdatasetitem.ts +2 -2
  47. package/src/models/operations/createprompt.ts +714 -629
  48. package/src/models/operations/fileget.ts +2 -2
  49. package/src/models/operations/filelist.ts +2 -2
  50. package/src/models/operations/fileupload.ts +2 -2
  51. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  52. package/src/models/operations/listdatasets.ts +2 -2
  53. package/src/models/operations/retrievedatapoint.ts +2 -2
  54. package/src/models/operations/retrievedataset.ts +2 -2
  55. package/src/models/operations/updatedatapoint.ts +2 -2
  56. package/src/models/operations/updatedataset.ts +2 -2
  57. package/src/models/operations/updateprompt.ts +629 -716
  58. package/src/sdk/prompts.ts +14 -14
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of the model
14
14
  */
15
- export const UpdatePromptModelType = {
15
+ export const ModelType = {
16
16
  Chat: "chat",
17
17
  Completion: "completion",
18
18
  Embedding: "embedding",
@@ -26,12 +26,12 @@ export const UpdatePromptModelType = {
26
26
  /**
27
27
  * The type of the model
28
28
  */
29
- export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
29
+ export type ModelType = ClosedEnum<typeof ModelType>;
30
30
 
31
31
  /**
32
32
  * Only supported on `image` models.
33
33
  */
34
- export const UpdatePromptFormat = {
34
+ export const Format = {
35
35
  Url: "url",
36
36
  B64Json: "b64_json",
37
37
  Text: "text",
@@ -40,47 +40,45 @@ export const UpdatePromptFormat = {
40
40
  /**
41
41
  * Only supported on `image` models.
42
42
  */
43
- export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
43
+ export type Format = ClosedEnum<typeof Format>;
44
44
 
45
45
  /**
46
46
  * Only supported on `image` models.
47
47
  */
48
- export const UpdatePromptQuality = {
48
+ export const Quality = {
49
49
  Standard: "standard",
50
50
  Hd: "hd",
51
51
  } as const;
52
52
  /**
53
53
  * Only supported on `image` models.
54
54
  */
55
- export type UpdatePromptQuality = ClosedEnum<typeof UpdatePromptQuality>;
55
+ export type Quality = ClosedEnum<typeof Quality>;
56
56
 
57
- export const UpdatePromptResponseFormatPromptsType = {
57
+ export const UpdatePromptResponseFormatType = {
58
58
  JsonObject: "json_object",
59
59
  } as const;
60
- export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
61
- typeof UpdatePromptResponseFormatPromptsType
60
+ export type UpdatePromptResponseFormatType = ClosedEnum<
61
+ typeof UpdatePromptResponseFormatType
62
62
  >;
63
63
 
64
- export type UpdatePromptResponseFormat2 = {
65
- type: UpdatePromptResponseFormatPromptsType;
64
+ export type ResponseFormat2 = {
65
+ type: UpdatePromptResponseFormatType;
66
66
  };
67
67
 
68
- export const UpdatePromptResponseFormatType = {
68
+ export const ResponseFormatType = {
69
69
  JsonSchema: "json_schema",
70
70
  } as const;
71
- export type UpdatePromptResponseFormatType = ClosedEnum<
72
- typeof UpdatePromptResponseFormatType
73
- >;
71
+ export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
74
72
 
75
- export type ResponseFormatJsonSchema = {
73
+ export type JsonSchema = {
76
74
  name: string;
77
75
  strict: boolean;
78
76
  schema: { [k: string]: any };
79
77
  };
80
78
 
81
- export type UpdatePromptResponseFormat1 = {
82
- type: UpdatePromptResponseFormatType;
83
- jsonSchema: ResponseFormatJsonSchema;
79
+ export type ResponseFormat1 = {
80
+ type: ResponseFormatType;
81
+ jsonSchema: JsonSchema;
84
82
  };
85
83
 
86
84
  /**
@@ -94,42 +92,36 @@ export type UpdatePromptResponseFormat1 = {
94
92
  *
95
93
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
96
94
  */
97
- export type UpdatePromptResponseFormat =
98
- | UpdatePromptResponseFormat2
99
- | UpdatePromptResponseFormat1;
95
+ export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
100
96
 
101
97
  /**
102
98
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
103
99
  */
104
- export const UpdatePromptPhotoRealVersion = {
100
+ export const PhotoRealVersion = {
105
101
  V1: "v1",
106
102
  V2: "v2",
107
103
  } as const;
108
104
  /**
109
105
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
110
106
  */
111
- export type UpdatePromptPhotoRealVersion = ClosedEnum<
112
- typeof UpdatePromptPhotoRealVersion
113
- >;
107
+ export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
114
108
 
115
109
  /**
116
110
  * The format to return the embeddings
117
111
  */
118
- export const UpdatePromptEncodingFormat = {
112
+ export const EncodingFormat = {
119
113
  Float: "float",
120
114
  Base64: "base64",
121
115
  } as const;
122
116
  /**
123
117
  * The format to return the embeddings
124
118
  */
125
- export type UpdatePromptEncodingFormat = ClosedEnum<
126
- typeof UpdatePromptEncodingFormat
127
- >;
119
+ export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
128
120
 
129
121
  /**
130
122
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
131
123
  */
132
- export const UpdatePromptReasoningEffort = {
124
+ export const ReasoningEffort = {
133
125
  Low: "low",
134
126
  Medium: "medium",
135
127
  High: "high",
@@ -137,14 +129,12 @@ export const UpdatePromptReasoningEffort = {
137
129
  /**
138
130
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
139
131
  */
140
- export type UpdatePromptReasoningEffort = ClosedEnum<
141
- typeof UpdatePromptReasoningEffort
142
- >;
132
+ export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
143
133
 
144
134
  /**
145
135
  * Model Parameters: Not all parameters apply to every model
146
136
  */
147
- export type UpdatePromptModelParameters = {
137
+ export type ModelParameters = {
148
138
  /**
149
139
  * Only supported on `chat` and `completion` models.
150
140
  */
@@ -180,7 +170,7 @@ export type UpdatePromptModelParameters = {
180
170
  /**
181
171
  * Only supported on `image` models.
182
172
  */
183
- format?: UpdatePromptFormat | undefined;
173
+ format?: Format | undefined;
184
174
  /**
185
175
  * Only supported on `image` models.
186
176
  */
@@ -188,7 +178,7 @@ export type UpdatePromptModelParameters = {
188
178
  /**
189
179
  * Only supported on `image` models.
190
180
  */
191
- quality?: UpdatePromptQuality | undefined;
181
+ quality?: Quality | undefined;
192
182
  /**
193
183
  * Only supported on `image` models.
194
184
  */
@@ -204,30 +194,26 @@ export type UpdatePromptModelParameters = {
204
194
  *
205
195
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
206
196
  */
207
- responseFormat?:
208
- | UpdatePromptResponseFormat2
209
- | UpdatePromptResponseFormat1
210
- | null
211
- | undefined;
197
+ responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
212
198
  /**
213
199
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
214
200
  */
215
- photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
201
+ photoRealVersion?: PhotoRealVersion | undefined;
216
202
  /**
217
203
  * The format to return the embeddings
218
204
  */
219
- encodingFormat?: UpdatePromptEncodingFormat | undefined;
205
+ encodingFormat?: EncodingFormat | undefined;
220
206
  /**
221
207
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
222
208
  */
223
- reasoningEffort?: UpdatePromptReasoningEffort | undefined;
209
+ reasoningEffort?: ReasoningEffort | undefined;
224
210
  /**
225
211
  * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
226
212
  */
227
213
  budgetTokens?: number | undefined;
228
214
  };
229
215
 
230
- export const UpdatePromptProvider = {
216
+ export const Provider = {
231
217
  Cohere: "cohere",
232
218
  Openai: "openai",
233
219
  Anthropic: "anthropic",
@@ -247,7 +233,7 @@ export const UpdatePromptProvider = {
247
233
  Togetherai: "togetherai",
248
234
  Elevenlabs: "elevenlabs",
249
235
  } as const;
250
- export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
236
+ export type Provider = ClosedEnum<typeof Provider>;
251
237
 
252
238
  /**
253
239
  * The role of the prompt message
@@ -350,23 +336,23 @@ export type UpdatePromptMessages = {
350
336
  /**
351
337
  * A list of messages compatible with the openAI schema
352
338
  */
353
- export type UpdatePromptPromptConfig = {
339
+ export type PromptConfig = {
354
340
  stream?: boolean | undefined;
355
341
  model?: string | undefined;
356
342
  /**
357
343
  * The type of the model
358
344
  */
359
- modelType?: UpdatePromptModelType | undefined;
345
+ modelType?: ModelType | undefined;
360
346
  /**
361
347
  * Model Parameters: Not all parameters apply to every model
362
348
  */
363
- modelParameters?: UpdatePromptModelParameters | undefined;
364
- provider?: UpdatePromptProvider | undefined;
349
+ modelParameters?: ModelParameters | undefined;
350
+ provider?: Provider | undefined;
365
351
  version?: string | undefined;
366
352
  messages: Array<UpdatePromptMessages>;
367
353
  };
368
354
 
369
- export const UpdatePromptUseCases = {
355
+ export const UseCases = {
370
356
  Agents: "Agents",
371
357
  AgentsSimulations: "Agents simulations",
372
358
  APIInteraction: "API interaction",
@@ -384,12 +370,12 @@ export const UpdatePromptUseCases = {
384
370
  Summarization: "Summarization",
385
371
  Tagging: "Tagging",
386
372
  } as const;
387
- export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
373
+ export type UseCases = ClosedEnum<typeof UseCases>;
388
374
 
389
375
  /**
390
376
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
391
377
  */
392
- export const UpdatePromptLanguage = {
378
+ export const Language = {
393
379
  Chinese: "Chinese",
394
380
  Dutch: "Dutch",
395
381
  English: "English",
@@ -401,17 +387,17 @@ export const UpdatePromptLanguage = {
401
387
  /**
402
388
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
403
389
  */
404
- export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
390
+ export type Language = ClosedEnum<typeof Language>;
405
391
 
406
392
  export type UpdatePromptMetadata = {
407
393
  /**
408
394
  * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
409
395
  */
410
- useCases?: Array<UpdatePromptUseCases> | undefined;
396
+ useCases?: Array<UseCases> | undefined;
411
397
  /**
412
398
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
413
399
  */
414
- language?: UpdatePromptLanguage | undefined;
400
+ language?: Language | undefined;
415
401
  };
416
402
 
417
403
  export type UpdatePromptRequestBody = {
@@ -432,7 +418,7 @@ export type UpdatePromptRequestBody = {
432
418
  /**
433
419
  * A list of messages compatible with the openAI schema
434
420
  */
435
- promptConfig?: UpdatePromptPromptConfig | undefined;
421
+ promptConfig?: PromptConfig | undefined;
436
422
  metadata?: UpdatePromptMetadata | undefined;
437
423
  };
438
424
 
@@ -454,7 +440,7 @@ export type UpdatePromptPromptsType = ClosedEnum<
454
440
  /**
455
441
  * The type of the model
456
442
  */
457
- export const UpdatePromptPromptsModelType = {
443
+ export const UpdatePromptModelType = {
458
444
  Chat: "chat",
459
445
  Completion: "completion",
460
446
  Embedding: "embedding",
@@ -468,14 +454,12 @@ export const UpdatePromptPromptsModelType = {
468
454
  /**
469
455
  * The type of the model
470
456
  */
471
- export type UpdatePromptPromptsModelType = ClosedEnum<
472
- typeof UpdatePromptPromptsModelType
473
- >;
457
+ export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
474
458
 
475
459
  /**
476
460
  * Only supported on `image` models.
477
461
  */
478
- export const UpdatePromptPromptsFormat = {
462
+ export const UpdatePromptFormat = {
479
463
  Url: "url",
480
464
  B64Json: "b64_json",
481
465
  Text: "text",
@@ -484,40 +468,36 @@ export const UpdatePromptPromptsFormat = {
484
468
  /**
485
469
  * Only supported on `image` models.
486
470
  */
487
- export type UpdatePromptPromptsFormat = ClosedEnum<
488
- typeof UpdatePromptPromptsFormat
489
- >;
471
+ export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
490
472
 
491
473
  /**
492
474
  * Only supported on `image` models.
493
475
  */
494
- export const UpdatePromptPromptsQuality = {
476
+ export const UpdatePromptQuality = {
495
477
  Standard: "standard",
496
478
  Hd: "hd",
497
479
  } as const;
498
480
  /**
499
481
  * Only supported on `image` models.
500
482
  */
501
- export type UpdatePromptPromptsQuality = ClosedEnum<
502
- typeof UpdatePromptPromptsQuality
503
- >;
483
+ export type UpdatePromptQuality = ClosedEnum<typeof UpdatePromptQuality>;
504
484
 
505
- export const UpdatePromptResponseFormatPromptsResponse200Type = {
485
+ export const UpdatePromptResponseFormatPromptsResponseType = {
506
486
  JsonObject: "json_object",
507
487
  } as const;
508
- export type UpdatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
509
- typeof UpdatePromptResponseFormatPromptsResponse200Type
488
+ export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
489
+ typeof UpdatePromptResponseFormatPromptsResponseType
510
490
  >;
511
491
 
512
- export type UpdatePromptResponseFormatPrompts2 = {
513
- type: UpdatePromptResponseFormatPromptsResponse200Type;
492
+ export type UpdatePromptResponseFormat2 = {
493
+ type: UpdatePromptResponseFormatPromptsResponseType;
514
494
  };
515
495
 
516
- export const UpdatePromptResponseFormatPromptsResponseType = {
496
+ export const UpdatePromptResponseFormatPromptsType = {
517
497
  JsonSchema: "json_schema",
518
498
  } as const;
519
- export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
520
- typeof UpdatePromptResponseFormatPromptsResponseType
499
+ export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
500
+ typeof UpdatePromptResponseFormatPromptsType
521
501
  >;
522
502
 
523
503
  export type UpdatePromptResponseFormatJsonSchema = {
@@ -526,8 +506,8 @@ export type UpdatePromptResponseFormatJsonSchema = {
526
506
  schema: { [k: string]: any };
527
507
  };
528
508
 
529
- export type UpdatePromptResponseFormatPrompts1 = {
530
- type: UpdatePromptResponseFormatPromptsResponseType;
509
+ export type UpdatePromptResponseFormat1 = {
510
+ type: UpdatePromptResponseFormatPromptsType;
531
511
  jsonSchema: UpdatePromptResponseFormatJsonSchema;
532
512
  };
533
513
 
@@ -542,42 +522,42 @@ export type UpdatePromptResponseFormatPrompts1 = {
542
522
  *
543
523
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
544
524
  */
545
- export type UpdatePromptPromptsResponseFormat =
546
- | UpdatePromptResponseFormatPrompts2
547
- | UpdatePromptResponseFormatPrompts1;
525
+ export type UpdatePromptResponseFormat =
526
+ | UpdatePromptResponseFormat2
527
+ | UpdatePromptResponseFormat1;
548
528
 
549
529
  /**
550
530
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
551
531
  */
552
- export const UpdatePromptPromptsPhotoRealVersion = {
532
+ export const UpdatePromptPhotoRealVersion = {
553
533
  V1: "v1",
554
534
  V2: "v2",
555
535
  } as const;
556
536
  /**
557
537
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
558
538
  */
559
- export type UpdatePromptPromptsPhotoRealVersion = ClosedEnum<
560
- typeof UpdatePromptPromptsPhotoRealVersion
539
+ export type UpdatePromptPhotoRealVersion = ClosedEnum<
540
+ typeof UpdatePromptPhotoRealVersion
561
541
  >;
562
542
 
563
543
  /**
564
544
  * The format to return the embeddings
565
545
  */
566
- export const UpdatePromptPromptsEncodingFormat = {
546
+ export const UpdatePromptEncodingFormat = {
567
547
  Float: "float",
568
548
  Base64: "base64",
569
549
  } as const;
570
550
  /**
571
551
  * The format to return the embeddings
572
552
  */
573
- export type UpdatePromptPromptsEncodingFormat = ClosedEnum<
574
- typeof UpdatePromptPromptsEncodingFormat
553
+ export type UpdatePromptEncodingFormat = ClosedEnum<
554
+ typeof UpdatePromptEncodingFormat
575
555
  >;
576
556
 
577
557
  /**
578
558
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
579
559
  */
580
- export const UpdatePromptPromptsReasoningEffort = {
560
+ export const UpdatePromptReasoningEffort = {
581
561
  Low: "low",
582
562
  Medium: "medium",
583
563
  High: "high",
@@ -585,14 +565,14 @@ export const UpdatePromptPromptsReasoningEffort = {
585
565
  /**
586
566
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
587
567
  */
588
- export type UpdatePromptPromptsReasoningEffort = ClosedEnum<
589
- typeof UpdatePromptPromptsReasoningEffort
568
+ export type UpdatePromptReasoningEffort = ClosedEnum<
569
+ typeof UpdatePromptReasoningEffort
590
570
  >;
591
571
 
592
572
  /**
593
573
  * Model Parameters: Not all parameters apply to every model
594
574
  */
595
- export type UpdatePromptPromptsModelParameters = {
575
+ export type UpdatePromptModelParameters = {
596
576
  /**
597
577
  * Only supported on `chat` and `completion` models.
598
578
  */
@@ -628,7 +608,7 @@ export type UpdatePromptPromptsModelParameters = {
628
608
  /**
629
609
  * Only supported on `image` models.
630
610
  */
631
- format?: UpdatePromptPromptsFormat | undefined;
611
+ format?: UpdatePromptFormat | undefined;
632
612
  /**
633
613
  * Only supported on `image` models.
634
614
  */
@@ -636,7 +616,7 @@ export type UpdatePromptPromptsModelParameters = {
636
616
  /**
637
617
  * Only supported on `image` models.
638
618
  */
639
- quality?: UpdatePromptPromptsQuality | undefined;
619
+ quality?: UpdatePromptQuality | undefined;
640
620
  /**
641
621
  * Only supported on `image` models.
642
622
  */
@@ -653,29 +633,29 @@ export type UpdatePromptPromptsModelParameters = {
653
633
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
654
634
  */
655
635
  responseFormat?:
656
- | UpdatePromptResponseFormatPrompts2
657
- | UpdatePromptResponseFormatPrompts1
636
+ | UpdatePromptResponseFormat2
637
+ | UpdatePromptResponseFormat1
658
638
  | null
659
639
  | undefined;
660
640
  /**
661
641
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
662
642
  */
663
- photoRealVersion?: UpdatePromptPromptsPhotoRealVersion | undefined;
643
+ photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
664
644
  /**
665
645
  * The format to return the embeddings
666
646
  */
667
- encodingFormat?: UpdatePromptPromptsEncodingFormat | undefined;
647
+ encodingFormat?: UpdatePromptEncodingFormat | undefined;
668
648
  /**
669
649
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
670
650
  */
671
- reasoningEffort?: UpdatePromptPromptsReasoningEffort | undefined;
651
+ reasoningEffort?: UpdatePromptReasoningEffort | undefined;
672
652
  /**
673
653
  * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
674
654
  */
675
655
  budgetTokens?: number | undefined;
676
656
  };
677
657
 
678
- export const UpdatePromptPromptsProvider = {
658
+ export const UpdatePromptProvider = {
679
659
  Cohere: "cohere",
680
660
  Openai: "openai",
681
661
  Anthropic: "anthropic",
@@ -695,9 +675,7 @@ export const UpdatePromptPromptsProvider = {
695
675
  Togetherai: "togetherai",
696
676
  Elevenlabs: "elevenlabs",
697
677
  } as const;
698
- export type UpdatePromptPromptsProvider = ClosedEnum<
699
- typeof UpdatePromptPromptsProvider
700
- >;
678
+ export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
701
679
 
702
680
  /**
703
681
  * The role of the prompt message
@@ -812,7 +790,7 @@ export type UpdatePromptPromptsMessages = {
812
790
  /**
813
791
  * A list of messages compatible with the openAI schema
814
792
  */
815
- export type UpdatePromptPromptsPromptConfig = {
793
+ export type UpdatePromptPromptConfig = {
816
794
  stream?: boolean | undefined;
817
795
  model?: string | undefined;
818
796
  /**
@@ -822,12 +800,12 @@ export type UpdatePromptPromptsPromptConfig = {
822
800
  /**
823
801
  * The type of the model
824
802
  */
825
- modelType?: UpdatePromptPromptsModelType | undefined;
803
+ modelType?: UpdatePromptModelType | undefined;
826
804
  /**
827
805
  * Model Parameters: Not all parameters apply to every model
828
806
  */
829
- modelParameters?: UpdatePromptPromptsModelParameters | undefined;
830
- provider?: UpdatePromptPromptsProvider | undefined;
807
+ modelParameters?: UpdatePromptModelParameters | undefined;
808
+ provider?: UpdatePromptProvider | undefined;
831
809
  /**
832
810
  * The id of the resource
833
811
  */
@@ -836,7 +814,7 @@ export type UpdatePromptPromptsPromptConfig = {
836
814
  messages: Array<UpdatePromptPromptsMessages>;
837
815
  };
838
816
 
839
- export const UpdatePromptPromptsUseCases = {
817
+ export const UpdatePromptUseCases = {
840
818
  Agents: "Agents",
841
819
  AgentsSimulations: "Agents simulations",
842
820
  APIInteraction: "API interaction",
@@ -854,14 +832,12 @@ export const UpdatePromptPromptsUseCases = {
854
832
  Summarization: "Summarization",
855
833
  Tagging: "Tagging",
856
834
  } as const;
857
- export type UpdatePromptPromptsUseCases = ClosedEnum<
858
- typeof UpdatePromptPromptsUseCases
859
- >;
835
+ export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
860
836
 
861
837
  /**
862
838
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
863
839
  */
864
- export const UpdatePromptPromptsLanguage = {
840
+ export const UpdatePromptLanguage = {
865
841
  Chinese: "Chinese",
866
842
  Dutch: "Dutch",
867
843
  English: "English",
@@ -873,19 +849,17 @@ export const UpdatePromptPromptsLanguage = {
873
849
  /**
874
850
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
875
851
  */
876
- export type UpdatePromptPromptsLanguage = ClosedEnum<
877
- typeof UpdatePromptPromptsLanguage
878
- >;
852
+ export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
879
853
 
880
854
  export type UpdatePromptPromptsMetadata = {
881
855
  /**
882
856
  * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
883
857
  */
884
- useCases?: Array<UpdatePromptPromptsUseCases> | undefined;
858
+ useCases?: Array<UpdatePromptUseCases> | undefined;
885
859
  /**
886
860
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
887
861
  */
888
- language?: UpdatePromptPromptsLanguage | undefined;
862
+ language?: UpdatePromptLanguage | undefined;
889
863
  };
890
864
 
891
865
  /**
@@ -911,177 +885,164 @@ export type UpdatePromptResponseBody = {
911
885
  /**
912
886
  * A list of messages compatible with the openAI schema
913
887
  */
914
- promptConfig: UpdatePromptPromptsPromptConfig;
888
+ promptConfig: UpdatePromptPromptConfig;
915
889
  metadata?: UpdatePromptPromptsMetadata | undefined;
916
890
  };
917
891
 
918
892
  /** @internal */
919
- export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
920
- typeof UpdatePromptModelType
921
- > = z.nativeEnum(UpdatePromptModelType);
893
+ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
894
+ .nativeEnum(ModelType);
922
895
 
923
896
  /** @internal */
924
- export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
925
- typeof UpdatePromptModelType
926
- > = UpdatePromptModelType$inboundSchema;
897
+ export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
898
+ ModelType$inboundSchema;
927
899
 
928
900
  /**
929
901
  * @internal
930
902
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
931
903
  */
932
- export namespace UpdatePromptModelType$ {
933
- /** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
934
- export const inboundSchema = UpdatePromptModelType$inboundSchema;
935
- /** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
936
- export const outboundSchema = UpdatePromptModelType$outboundSchema;
904
+ export namespace ModelType$ {
905
+ /** @deprecated use `ModelType$inboundSchema` instead. */
906
+ export const inboundSchema = ModelType$inboundSchema;
907
+ /** @deprecated use `ModelType$outboundSchema` instead. */
908
+ export const outboundSchema = ModelType$outboundSchema;
937
909
  }
938
910
 
939
911
  /** @internal */
940
- export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
941
- typeof UpdatePromptFormat
942
- > = z.nativeEnum(UpdatePromptFormat);
912
+ export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
913
+ .nativeEnum(Format);
943
914
 
944
915
  /** @internal */
945
- export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
946
- typeof UpdatePromptFormat
947
- > = UpdatePromptFormat$inboundSchema;
916
+ export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
917
+ Format$inboundSchema;
948
918
 
949
919
  /**
950
920
  * @internal
951
921
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
952
922
  */
953
- export namespace UpdatePromptFormat$ {
954
- /** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
955
- export const inboundSchema = UpdatePromptFormat$inboundSchema;
956
- /** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
957
- export const outboundSchema = UpdatePromptFormat$outboundSchema;
923
+ export namespace Format$ {
924
+ /** @deprecated use `Format$inboundSchema` instead. */
925
+ export const inboundSchema = Format$inboundSchema;
926
+ /** @deprecated use `Format$outboundSchema` instead. */
927
+ export const outboundSchema = Format$outboundSchema;
958
928
  }
959
929
 
960
930
  /** @internal */
961
- export const UpdatePromptQuality$inboundSchema: z.ZodNativeEnum<
962
- typeof UpdatePromptQuality
963
- > = z.nativeEnum(UpdatePromptQuality);
931
+ export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
932
+ .nativeEnum(Quality);
964
933
 
965
934
  /** @internal */
966
- export const UpdatePromptQuality$outboundSchema: z.ZodNativeEnum<
967
- typeof UpdatePromptQuality
968
- > = UpdatePromptQuality$inboundSchema;
935
+ export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
936
+ Quality$inboundSchema;
969
937
 
970
938
  /**
971
939
  * @internal
972
940
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
973
941
  */
974
- export namespace UpdatePromptQuality$ {
975
- /** @deprecated use `UpdatePromptQuality$inboundSchema` instead. */
976
- export const inboundSchema = UpdatePromptQuality$inboundSchema;
977
- /** @deprecated use `UpdatePromptQuality$outboundSchema` instead. */
978
- export const outboundSchema = UpdatePromptQuality$outboundSchema;
942
+ export namespace Quality$ {
943
+ /** @deprecated use `Quality$inboundSchema` instead. */
944
+ export const inboundSchema = Quality$inboundSchema;
945
+ /** @deprecated use `Quality$outboundSchema` instead. */
946
+ export const outboundSchema = Quality$outboundSchema;
979
947
  }
980
948
 
981
949
  /** @internal */
982
- export const UpdatePromptResponseFormatPromptsType$inboundSchema:
983
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
984
- UpdatePromptResponseFormatPromptsType,
985
- );
950
+ export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
951
+ typeof UpdatePromptResponseFormatType
952
+ > = z.nativeEnum(UpdatePromptResponseFormatType);
986
953
 
987
954
  /** @internal */
988
- export const UpdatePromptResponseFormatPromptsType$outboundSchema:
989
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
990
- UpdatePromptResponseFormatPromptsType$inboundSchema;
955
+ export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
956
+ typeof UpdatePromptResponseFormatType
957
+ > = UpdatePromptResponseFormatType$inboundSchema;
991
958
 
992
959
  /**
993
960
  * @internal
994
961
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
995
962
  */
996
- export namespace UpdatePromptResponseFormatPromptsType$ {
997
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
998
- export const inboundSchema =
999
- UpdatePromptResponseFormatPromptsType$inboundSchema;
1000
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
1001
- export const outboundSchema =
1002
- UpdatePromptResponseFormatPromptsType$outboundSchema;
963
+ export namespace UpdatePromptResponseFormatType$ {
964
+ /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
965
+ export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
966
+ /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
967
+ export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
1003
968
  }
1004
969
 
1005
970
  /** @internal */
1006
- export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
1007
- UpdatePromptResponseFormat2,
971
+ export const ResponseFormat2$inboundSchema: z.ZodType<
972
+ ResponseFormat2,
1008
973
  z.ZodTypeDef,
1009
974
  unknown
1010
975
  > = z.object({
1011
- type: UpdatePromptResponseFormatPromptsType$inboundSchema,
976
+ type: UpdatePromptResponseFormatType$inboundSchema,
1012
977
  });
1013
978
 
1014
979
  /** @internal */
1015
- export type UpdatePromptResponseFormat2$Outbound = {
980
+ export type ResponseFormat2$Outbound = {
1016
981
  type: string;
1017
982
  };
1018
983
 
1019
984
  /** @internal */
1020
- export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
1021
- UpdatePromptResponseFormat2$Outbound,
985
+ export const ResponseFormat2$outboundSchema: z.ZodType<
986
+ ResponseFormat2$Outbound,
1022
987
  z.ZodTypeDef,
1023
- UpdatePromptResponseFormat2
988
+ ResponseFormat2
1024
989
  > = z.object({
1025
- type: UpdatePromptResponseFormatPromptsType$outboundSchema,
990
+ type: UpdatePromptResponseFormatType$outboundSchema,
1026
991
  });
1027
992
 
1028
993
  /**
1029
994
  * @internal
1030
995
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1031
996
  */
1032
- export namespace UpdatePromptResponseFormat2$ {
1033
- /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
1034
- export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
1035
- /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
1036
- export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
1037
- /** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
1038
- export type Outbound = UpdatePromptResponseFormat2$Outbound;
997
+ export namespace ResponseFormat2$ {
998
+ /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
999
+ export const inboundSchema = ResponseFormat2$inboundSchema;
1000
+ /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
1001
+ export const outboundSchema = ResponseFormat2$outboundSchema;
1002
+ /** @deprecated use `ResponseFormat2$Outbound` instead. */
1003
+ export type Outbound = ResponseFormat2$Outbound;
1039
1004
  }
1040
1005
 
1041
- export function updatePromptResponseFormat2ToJSON(
1042
- updatePromptResponseFormat2: UpdatePromptResponseFormat2,
1006
+ export function responseFormat2ToJSON(
1007
+ responseFormat2: ResponseFormat2,
1043
1008
  ): string {
1044
- return JSON.stringify(
1045
- UpdatePromptResponseFormat2$outboundSchema.parse(
1046
- updatePromptResponseFormat2,
1047
- ),
1048
- );
1009
+ return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
1049
1010
  }
1050
1011
 
1051
- export function updatePromptResponseFormat2FromJSON(
1012
+ export function responseFormat2FromJSON(
1052
1013
  jsonString: string,
1053
- ): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
1014
+ ): SafeParseResult<ResponseFormat2, SDKValidationError> {
1054
1015
  return safeParse(
1055
1016
  jsonString,
1056
- (x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1057
- `Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
1017
+ (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1018
+ `Failed to parse 'ResponseFormat2' from JSON`,
1058
1019
  );
1059
1020
  }
1060
1021
 
1061
1022
  /** @internal */
1062
- export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1063
- typeof UpdatePromptResponseFormatType
1064
- > = z.nativeEnum(UpdatePromptResponseFormatType);
1023
+ export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
1024
+ typeof ResponseFormatType
1025
+ > = z.nativeEnum(ResponseFormatType);
1065
1026
 
1066
1027
  /** @internal */
1067
- export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1068
- typeof UpdatePromptResponseFormatType
1069
- > = UpdatePromptResponseFormatType$inboundSchema;
1028
+ export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
1029
+ typeof ResponseFormatType
1030
+ > = ResponseFormatType$inboundSchema;
1070
1031
 
1071
1032
  /**
1072
1033
  * @internal
1073
1034
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1074
1035
  */
1075
- export namespace UpdatePromptResponseFormatType$ {
1076
- /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
1077
- export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
1078
- /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
1079
- export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
1036
+ export namespace ResponseFormatType$ {
1037
+ /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
1038
+ export const inboundSchema = ResponseFormatType$inboundSchema;
1039
+ /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
1040
+ export const outboundSchema = ResponseFormatType$outboundSchema;
1080
1041
  }
1081
1042
 
1082
1043
  /** @internal */
1083
- export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1084
- ResponseFormatJsonSchema,
1044
+ export const JsonSchema$inboundSchema: z.ZodType<
1045
+ JsonSchema,
1085
1046
  z.ZodTypeDef,
1086
1047
  unknown
1087
1048
  > = z.object({
@@ -1091,17 +1052,17 @@ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1091
1052
  });
1092
1053
 
1093
1054
  /** @internal */
1094
- export type ResponseFormatJsonSchema$Outbound = {
1055
+ export type JsonSchema$Outbound = {
1095
1056
  name: string;
1096
1057
  strict: boolean;
1097
1058
  schema: { [k: string]: any };
1098
1059
  };
1099
1060
 
1100
1061
  /** @internal */
1101
- export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1102
- ResponseFormatJsonSchema$Outbound,
1062
+ export const JsonSchema$outboundSchema: z.ZodType<
1063
+ JsonSchema$Outbound,
1103
1064
  z.ZodTypeDef,
1104
- ResponseFormatJsonSchema
1065
+ JsonSchema
1105
1066
  > = z.object({
1106
1067
  name: z.string(),
1107
1068
  strict: z.boolean(),
@@ -1112,41 +1073,37 @@ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1112
1073
  * @internal
1113
1074
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1114
1075
  */
1115
- export namespace ResponseFormatJsonSchema$ {
1116
- /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1117
- export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
1118
- /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1119
- export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
1120
- /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1121
- export type Outbound = ResponseFormatJsonSchema$Outbound;
1076
+ export namespace JsonSchema$ {
1077
+ /** @deprecated use `JsonSchema$inboundSchema` instead. */
1078
+ export const inboundSchema = JsonSchema$inboundSchema;
1079
+ /** @deprecated use `JsonSchema$outboundSchema` instead. */
1080
+ export const outboundSchema = JsonSchema$outboundSchema;
1081
+ /** @deprecated use `JsonSchema$Outbound` instead. */
1082
+ export type Outbound = JsonSchema$Outbound;
1122
1083
  }
1123
1084
 
1124
- export function responseFormatJsonSchemaToJSON(
1125
- responseFormatJsonSchema: ResponseFormatJsonSchema,
1126
- ): string {
1127
- return JSON.stringify(
1128
- ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
1129
- );
1085
+ export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
1086
+ return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
1130
1087
  }
1131
1088
 
1132
- export function responseFormatJsonSchemaFromJSON(
1089
+ export function jsonSchemaFromJSON(
1133
1090
  jsonString: string,
1134
- ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
1091
+ ): SafeParseResult<JsonSchema, SDKValidationError> {
1135
1092
  return safeParse(
1136
1093
  jsonString,
1137
- (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1138
- `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
1094
+ (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
1095
+ `Failed to parse 'JsonSchema' from JSON`,
1139
1096
  );
1140
1097
  }
1141
1098
 
1142
1099
  /** @internal */
1143
- export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1144
- UpdatePromptResponseFormat1,
1100
+ export const ResponseFormat1$inboundSchema: z.ZodType<
1101
+ ResponseFormat1,
1145
1102
  z.ZodTypeDef,
1146
1103
  unknown
1147
1104
  > = z.object({
1148
- type: UpdatePromptResponseFormatType$inboundSchema,
1149
- json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
1105
+ type: ResponseFormatType$inboundSchema,
1106
+ json_schema: z.lazy(() => JsonSchema$inboundSchema),
1150
1107
  }).transform((v) => {
1151
1108
  return remap$(v, {
1152
1109
  "json_schema": "jsonSchema",
@@ -1154,19 +1111,19 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1154
1111
  });
1155
1112
 
1156
1113
  /** @internal */
1157
- export type UpdatePromptResponseFormat1$Outbound = {
1114
+ export type ResponseFormat1$Outbound = {
1158
1115
  type: string;
1159
- json_schema: ResponseFormatJsonSchema$Outbound;
1116
+ json_schema: JsonSchema$Outbound;
1160
1117
  };
1161
1118
 
1162
1119
  /** @internal */
1163
- export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1164
- UpdatePromptResponseFormat1$Outbound,
1120
+ export const ResponseFormat1$outboundSchema: z.ZodType<
1121
+ ResponseFormat1$Outbound,
1165
1122
  z.ZodTypeDef,
1166
- UpdatePromptResponseFormat1
1123
+ ResponseFormat1
1167
1124
  > = z.object({
1168
- type: UpdatePromptResponseFormatType$outboundSchema,
1169
- jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
1125
+ type: ResponseFormatType$outboundSchema,
1126
+ jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1170
1127
  }).transform((v) => {
1171
1128
  return remap$(v, {
1172
1129
  jsonSchema: "json_schema",
@@ -1177,157 +1134,149 @@ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1177
1134
  * @internal
1178
1135
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1179
1136
  */
1180
- export namespace UpdatePromptResponseFormat1$ {
1181
- /** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
1182
- export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
1183
- /** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
1184
- export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
1185
- /** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
1186
- export type Outbound = UpdatePromptResponseFormat1$Outbound;
1137
+ export namespace ResponseFormat1$ {
1138
+ /** @deprecated use `ResponseFormat1$inboundSchema` instead. */
1139
+ export const inboundSchema = ResponseFormat1$inboundSchema;
1140
+ /** @deprecated use `ResponseFormat1$outboundSchema` instead. */
1141
+ export const outboundSchema = ResponseFormat1$outboundSchema;
1142
+ /** @deprecated use `ResponseFormat1$Outbound` instead. */
1143
+ export type Outbound = ResponseFormat1$Outbound;
1187
1144
  }
1188
1145
 
1189
- export function updatePromptResponseFormat1ToJSON(
1190
- updatePromptResponseFormat1: UpdatePromptResponseFormat1,
1146
+ export function responseFormat1ToJSON(
1147
+ responseFormat1: ResponseFormat1,
1191
1148
  ): string {
1192
- return JSON.stringify(
1193
- UpdatePromptResponseFormat1$outboundSchema.parse(
1194
- updatePromptResponseFormat1,
1195
- ),
1196
- );
1149
+ return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
1197
1150
  }
1198
1151
 
1199
- export function updatePromptResponseFormat1FromJSON(
1152
+ export function responseFormat1FromJSON(
1200
1153
  jsonString: string,
1201
- ): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
1154
+ ): SafeParseResult<ResponseFormat1, SDKValidationError> {
1202
1155
  return safeParse(
1203
1156
  jsonString,
1204
- (x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1205
- `Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
1157
+ (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1158
+ `Failed to parse 'ResponseFormat1' from JSON`,
1206
1159
  );
1207
1160
  }
1208
1161
 
1209
1162
  /** @internal */
1210
- export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
1211
- UpdatePromptResponseFormat,
1163
+ export const ResponseFormat$inboundSchema: z.ZodType<
1164
+ ResponseFormat,
1212
1165
  z.ZodTypeDef,
1213
1166
  unknown
1214
1167
  > = z.union([
1215
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1216
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1168
+ z.lazy(() => ResponseFormat2$inboundSchema),
1169
+ z.lazy(() => ResponseFormat1$inboundSchema),
1217
1170
  ]);
1218
1171
 
1219
1172
  /** @internal */
1220
- export type UpdatePromptResponseFormat$Outbound =
1221
- | UpdatePromptResponseFormat2$Outbound
1222
- | UpdatePromptResponseFormat1$Outbound;
1173
+ export type ResponseFormat$Outbound =
1174
+ | ResponseFormat2$Outbound
1175
+ | ResponseFormat1$Outbound;
1223
1176
 
1224
1177
  /** @internal */
1225
- export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
1226
- UpdatePromptResponseFormat$Outbound,
1178
+ export const ResponseFormat$outboundSchema: z.ZodType<
1179
+ ResponseFormat$Outbound,
1227
1180
  z.ZodTypeDef,
1228
- UpdatePromptResponseFormat
1181
+ ResponseFormat
1229
1182
  > = z.union([
1230
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1231
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1183
+ z.lazy(() => ResponseFormat2$outboundSchema),
1184
+ z.lazy(() => ResponseFormat1$outboundSchema),
1232
1185
  ]);
1233
1186
 
1234
1187
  /**
1235
1188
  * @internal
1236
1189
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1237
1190
  */
1238
- export namespace UpdatePromptResponseFormat$ {
1239
- /** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
1240
- export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
1241
- /** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
1242
- export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
1243
- /** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
1244
- export type Outbound = UpdatePromptResponseFormat$Outbound;
1191
+ export namespace ResponseFormat$ {
1192
+ /** @deprecated use `ResponseFormat$inboundSchema` instead. */
1193
+ export const inboundSchema = ResponseFormat$inboundSchema;
1194
+ /** @deprecated use `ResponseFormat$outboundSchema` instead. */
1195
+ export const outboundSchema = ResponseFormat$outboundSchema;
1196
+ /** @deprecated use `ResponseFormat$Outbound` instead. */
1197
+ export type Outbound = ResponseFormat$Outbound;
1245
1198
  }
1246
1199
 
1247
- export function updatePromptResponseFormatToJSON(
1248
- updatePromptResponseFormat: UpdatePromptResponseFormat,
1249
- ): string {
1250
- return JSON.stringify(
1251
- UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
1252
- );
1200
+ export function responseFormatToJSON(responseFormat: ResponseFormat): string {
1201
+ return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
1253
1202
  }
1254
1203
 
1255
- export function updatePromptResponseFormatFromJSON(
1204
+ export function responseFormatFromJSON(
1256
1205
  jsonString: string,
1257
- ): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
1206
+ ): SafeParseResult<ResponseFormat, SDKValidationError> {
1258
1207
  return safeParse(
1259
1208
  jsonString,
1260
- (x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
1261
- `Failed to parse 'UpdatePromptResponseFormat' from JSON`,
1209
+ (x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
1210
+ `Failed to parse 'ResponseFormat' from JSON`,
1262
1211
  );
1263
1212
  }
1264
1213
 
1265
1214
  /** @internal */
1266
- export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1267
- typeof UpdatePromptPhotoRealVersion
1268
- > = z.nativeEnum(UpdatePromptPhotoRealVersion);
1215
+ export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1216
+ typeof PhotoRealVersion
1217
+ > = z.nativeEnum(PhotoRealVersion);
1269
1218
 
1270
1219
  /** @internal */
1271
- export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1272
- typeof UpdatePromptPhotoRealVersion
1273
- > = UpdatePromptPhotoRealVersion$inboundSchema;
1220
+ export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1221
+ typeof PhotoRealVersion
1222
+ > = PhotoRealVersion$inboundSchema;
1274
1223
 
1275
1224
  /**
1276
1225
  * @internal
1277
1226
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1278
1227
  */
1279
- export namespace UpdatePromptPhotoRealVersion$ {
1280
- /** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
1281
- export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
1282
- /** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
1283
- export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
1228
+ export namespace PhotoRealVersion$ {
1229
+ /** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
1230
+ export const inboundSchema = PhotoRealVersion$inboundSchema;
1231
+ /** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
1232
+ export const outboundSchema = PhotoRealVersion$outboundSchema;
1284
1233
  }
1285
1234
 
1286
1235
  /** @internal */
1287
- export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
1288
- typeof UpdatePromptEncodingFormat
1289
- > = z.nativeEnum(UpdatePromptEncodingFormat);
1236
+ export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
1237
+ typeof EncodingFormat
1238
+ > = z.nativeEnum(EncodingFormat);
1290
1239
 
1291
1240
  /** @internal */
1292
- export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
1293
- typeof UpdatePromptEncodingFormat
1294
- > = UpdatePromptEncodingFormat$inboundSchema;
1241
+ export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
1242
+ typeof EncodingFormat
1243
+ > = EncodingFormat$inboundSchema;
1295
1244
 
1296
1245
  /**
1297
1246
  * @internal
1298
1247
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1299
1248
  */
1300
- export namespace UpdatePromptEncodingFormat$ {
1301
- /** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
1302
- export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
1303
- /** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
1304
- export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
1249
+ export namespace EncodingFormat$ {
1250
+ /** @deprecated use `EncodingFormat$inboundSchema` instead. */
1251
+ export const inboundSchema = EncodingFormat$inboundSchema;
1252
+ /** @deprecated use `EncodingFormat$outboundSchema` instead. */
1253
+ export const outboundSchema = EncodingFormat$outboundSchema;
1305
1254
  }
1306
1255
 
1307
1256
  /** @internal */
1308
- export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
1309
- typeof UpdatePromptReasoningEffort
1310
- > = z.nativeEnum(UpdatePromptReasoningEffort);
1257
+ export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
1258
+ typeof ReasoningEffort
1259
+ > = z.nativeEnum(ReasoningEffort);
1311
1260
 
1312
1261
  /** @internal */
1313
- export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
1314
- typeof UpdatePromptReasoningEffort
1315
- > = UpdatePromptReasoningEffort$inboundSchema;
1262
+ export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
1263
+ typeof ReasoningEffort
1264
+ > = ReasoningEffort$inboundSchema;
1316
1265
 
1317
1266
  /**
1318
1267
  * @internal
1319
1268
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1320
1269
  */
1321
- export namespace UpdatePromptReasoningEffort$ {
1322
- /** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
1323
- export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
1324
- /** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
1325
- export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
1270
+ export namespace ReasoningEffort$ {
1271
+ /** @deprecated use `ReasoningEffort$inboundSchema` instead. */
1272
+ export const inboundSchema = ReasoningEffort$inboundSchema;
1273
+ /** @deprecated use `ReasoningEffort$outboundSchema` instead. */
1274
+ export const outboundSchema = ReasoningEffort$outboundSchema;
1326
1275
  }
1327
1276
 
1328
1277
  /** @internal */
1329
- export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1330
- UpdatePromptModelParameters,
1278
+ export const ModelParameters$inboundSchema: z.ZodType<
1279
+ ModelParameters,
1331
1280
  z.ZodTypeDef,
1332
1281
  unknown
1333
1282
  > = z.object({
@@ -1339,19 +1288,19 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1339
1288
  presencePenalty: z.number().optional(),
1340
1289
  numImages: z.number().optional(),
1341
1290
  seed: z.number().optional(),
1342
- format: UpdatePromptFormat$inboundSchema.optional(),
1291
+ format: Format$inboundSchema.optional(),
1343
1292
  dimensions: z.string().optional(),
1344
- quality: UpdatePromptQuality$inboundSchema.optional(),
1293
+ quality: Quality$inboundSchema.optional(),
1345
1294
  style: z.string().optional(),
1346
1295
  responseFormat: z.nullable(
1347
1296
  z.union([
1348
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1349
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1297
+ z.lazy(() => ResponseFormat2$inboundSchema),
1298
+ z.lazy(() => ResponseFormat1$inboundSchema),
1350
1299
  ]),
1351
1300
  ).optional(),
1352
- photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
1353
- encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
1354
- reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
1301
+ photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
1302
+ encoding_format: EncodingFormat$inboundSchema.optional(),
1303
+ reasoningEffort: ReasoningEffort$inboundSchema.optional(),
1355
1304
  budgetTokens: z.number().optional(),
1356
1305
  }).transform((v) => {
1357
1306
  return remap$(v, {
@@ -1360,7 +1309,7 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1360
1309
  });
1361
1310
 
1362
1311
  /** @internal */
1363
- export type UpdatePromptModelParameters$Outbound = {
1312
+ export type ModelParameters$Outbound = {
1364
1313
  temperature?: number | undefined;
1365
1314
  maxTokens?: number | undefined;
1366
1315
  topK?: number | undefined;
@@ -1374,8 +1323,8 @@ export type UpdatePromptModelParameters$Outbound = {
1374
1323
  quality?: string | undefined;
1375
1324
  style?: string | undefined;
1376
1325
  responseFormat?:
1377
- | UpdatePromptResponseFormat2$Outbound
1378
- | UpdatePromptResponseFormat1$Outbound
1326
+ | ResponseFormat2$Outbound
1327
+ | ResponseFormat1$Outbound
1379
1328
  | null
1380
1329
  | undefined;
1381
1330
  photoRealVersion?: string | undefined;
@@ -1385,10 +1334,10 @@ export type UpdatePromptModelParameters$Outbound = {
1385
1334
  };
1386
1335
 
1387
1336
  /** @internal */
1388
- export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1389
- UpdatePromptModelParameters$Outbound,
1337
+ export const ModelParameters$outboundSchema: z.ZodType<
1338
+ ModelParameters$Outbound,
1390
1339
  z.ZodTypeDef,
1391
- UpdatePromptModelParameters
1340
+ ModelParameters
1392
1341
  > = z.object({
1393
1342
  temperature: z.number().optional(),
1394
1343
  maxTokens: z.number().optional(),
@@ -1398,19 +1347,19 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1398
1347
  presencePenalty: z.number().optional(),
1399
1348
  numImages: z.number().optional(),
1400
1349
  seed: z.number().optional(),
1401
- format: UpdatePromptFormat$outboundSchema.optional(),
1350
+ format: Format$outboundSchema.optional(),
1402
1351
  dimensions: z.string().optional(),
1403
- quality: UpdatePromptQuality$outboundSchema.optional(),
1352
+ quality: Quality$outboundSchema.optional(),
1404
1353
  style: z.string().optional(),
1405
1354
  responseFormat: z.nullable(
1406
1355
  z.union([
1407
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1408
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1356
+ z.lazy(() => ResponseFormat2$outboundSchema),
1357
+ z.lazy(() => ResponseFormat1$outboundSchema),
1409
1358
  ]),
1410
1359
  ).optional(),
1411
- photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
1412
- encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
1413
- reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
1360
+ photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
1361
+ encodingFormat: EncodingFormat$outboundSchema.optional(),
1362
+ reasoningEffort: ReasoningEffort$outboundSchema.optional(),
1414
1363
  budgetTokens: z.number().optional(),
1415
1364
  }).transform((v) => {
1416
1365
  return remap$(v, {
@@ -1422,54 +1371,48 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1422
1371
  * @internal
1423
1372
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1424
1373
  */
1425
- export namespace UpdatePromptModelParameters$ {
1426
- /** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
1427
- export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
1428
- /** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
1429
- export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
1430
- /** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
1431
- export type Outbound = UpdatePromptModelParameters$Outbound;
1374
+ export namespace ModelParameters$ {
1375
+ /** @deprecated use `ModelParameters$inboundSchema` instead. */
1376
+ export const inboundSchema = ModelParameters$inboundSchema;
1377
+ /** @deprecated use `ModelParameters$outboundSchema` instead. */
1378
+ export const outboundSchema = ModelParameters$outboundSchema;
1379
+ /** @deprecated use `ModelParameters$Outbound` instead. */
1380
+ export type Outbound = ModelParameters$Outbound;
1432
1381
  }
1433
1382
 
1434
- export function updatePromptModelParametersToJSON(
1435
- updatePromptModelParameters: UpdatePromptModelParameters,
1383
+ export function modelParametersToJSON(
1384
+ modelParameters: ModelParameters,
1436
1385
  ): string {
1437
- return JSON.stringify(
1438
- UpdatePromptModelParameters$outboundSchema.parse(
1439
- updatePromptModelParameters,
1440
- ),
1441
- );
1386
+ return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
1442
1387
  }
1443
1388
 
1444
- export function updatePromptModelParametersFromJSON(
1389
+ export function modelParametersFromJSON(
1445
1390
  jsonString: string,
1446
- ): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
1391
+ ): SafeParseResult<ModelParameters, SDKValidationError> {
1447
1392
  return safeParse(
1448
1393
  jsonString,
1449
- (x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1450
- `Failed to parse 'UpdatePromptModelParameters' from JSON`,
1394
+ (x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
1395
+ `Failed to parse 'ModelParameters' from JSON`,
1451
1396
  );
1452
1397
  }
1453
1398
 
1454
1399
  /** @internal */
1455
- export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
1456
- typeof UpdatePromptProvider
1457
- > = z.nativeEnum(UpdatePromptProvider);
1400
+ export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
1401
+ .nativeEnum(Provider);
1458
1402
 
1459
1403
  /** @internal */
1460
- export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
1461
- typeof UpdatePromptProvider
1462
- > = UpdatePromptProvider$inboundSchema;
1404
+ export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
1405
+ Provider$inboundSchema;
1463
1406
 
1464
1407
  /**
1465
1408
  * @internal
1466
1409
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1467
1410
  */
1468
- export namespace UpdatePromptProvider$ {
1469
- /** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
1470
- export const inboundSchema = UpdatePromptProvider$inboundSchema;
1471
- /** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
1472
- export const outboundSchema = UpdatePromptProvider$outboundSchema;
1411
+ export namespace Provider$ {
1412
+ /** @deprecated use `Provider$inboundSchema` instead. */
1413
+ export const inboundSchema = Provider$inboundSchema;
1414
+ /** @deprecated use `Provider$outboundSchema` instead. */
1415
+ export const outboundSchema = Provider$outboundSchema;
1473
1416
  }
1474
1417
 
1475
1418
  /** @internal */
@@ -2048,17 +1991,16 @@ export function updatePromptMessagesFromJSON(
2048
1991
  }
2049
1992
 
2050
1993
  /** @internal */
2051
- export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
2052
- UpdatePromptPromptConfig,
1994
+ export const PromptConfig$inboundSchema: z.ZodType<
1995
+ PromptConfig,
2053
1996
  z.ZodTypeDef,
2054
1997
  unknown
2055
1998
  > = z.object({
2056
1999
  stream: z.boolean().optional(),
2057
2000
  model: z.string().optional(),
2058
- model_type: UpdatePromptModelType$inboundSchema.optional(),
2059
- model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
2060
- .optional(),
2061
- provider: UpdatePromptProvider$inboundSchema.optional(),
2001
+ model_type: ModelType$inboundSchema.optional(),
2002
+ model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
2003
+ provider: Provider$inboundSchema.optional(),
2062
2004
  version: z.string().optional(),
2063
2005
  messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
2064
2006
  }).transform((v) => {
@@ -2069,28 +2011,27 @@ export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
2069
2011
  });
2070
2012
 
2071
2013
  /** @internal */
2072
- export type UpdatePromptPromptConfig$Outbound = {
2014
+ export type PromptConfig$Outbound = {
2073
2015
  stream?: boolean | undefined;
2074
2016
  model?: string | undefined;
2075
2017
  model_type?: string | undefined;
2076
- model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
2018
+ model_parameters?: ModelParameters$Outbound | undefined;
2077
2019
  provider?: string | undefined;
2078
2020
  version?: string | undefined;
2079
2021
  messages: Array<UpdatePromptMessages$Outbound>;
2080
2022
  };
2081
2023
 
2082
2024
  /** @internal */
2083
- export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
2084
- UpdatePromptPromptConfig$Outbound,
2025
+ export const PromptConfig$outboundSchema: z.ZodType<
2026
+ PromptConfig$Outbound,
2085
2027
  z.ZodTypeDef,
2086
- UpdatePromptPromptConfig
2028
+ PromptConfig
2087
2029
  > = z.object({
2088
2030
  stream: z.boolean().optional(),
2089
2031
  model: z.string().optional(),
2090
- modelType: UpdatePromptModelType$outboundSchema.optional(),
2091
- modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
2092
- .optional(),
2093
- provider: UpdatePromptProvider$outboundSchema.optional(),
2032
+ modelType: ModelType$outboundSchema.optional(),
2033
+ modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
2034
+ provider: Provider$outboundSchema.optional(),
2094
2035
  version: z.string().optional(),
2095
2036
  messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
2096
2037
  }).transform((v) => {
@@ -2104,73 +2045,65 @@ export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
2104
2045
  * @internal
2105
2046
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2106
2047
  */
2107
- export namespace UpdatePromptPromptConfig$ {
2108
- /** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
2109
- export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
2110
- /** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
2111
- export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
2112
- /** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
2113
- export type Outbound = UpdatePromptPromptConfig$Outbound;
2048
+ export namespace PromptConfig$ {
2049
+ /** @deprecated use `PromptConfig$inboundSchema` instead. */
2050
+ export const inboundSchema = PromptConfig$inboundSchema;
2051
+ /** @deprecated use `PromptConfig$outboundSchema` instead. */
2052
+ export const outboundSchema = PromptConfig$outboundSchema;
2053
+ /** @deprecated use `PromptConfig$Outbound` instead. */
2054
+ export type Outbound = PromptConfig$Outbound;
2114
2055
  }
2115
2056
 
2116
- export function updatePromptPromptConfigToJSON(
2117
- updatePromptPromptConfig: UpdatePromptPromptConfig,
2118
- ): string {
2119
- return JSON.stringify(
2120
- UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
2121
- );
2057
+ export function promptConfigToJSON(promptConfig: PromptConfig): string {
2058
+ return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
2122
2059
  }
2123
2060
 
2124
- export function updatePromptPromptConfigFromJSON(
2061
+ export function promptConfigFromJSON(
2125
2062
  jsonString: string,
2126
- ): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
2063
+ ): SafeParseResult<PromptConfig, SDKValidationError> {
2127
2064
  return safeParse(
2128
2065
  jsonString,
2129
- (x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
2130
- `Failed to parse 'UpdatePromptPromptConfig' from JSON`,
2066
+ (x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
2067
+ `Failed to parse 'PromptConfig' from JSON`,
2131
2068
  );
2132
2069
  }
2133
2070
 
2134
2071
  /** @internal */
2135
- export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
2136
- typeof UpdatePromptUseCases
2137
- > = z.nativeEnum(UpdatePromptUseCases);
2072
+ export const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases> = z
2073
+ .nativeEnum(UseCases);
2138
2074
 
2139
2075
  /** @internal */
2140
- export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
2141
- typeof UpdatePromptUseCases
2142
- > = UpdatePromptUseCases$inboundSchema;
2076
+ export const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases> =
2077
+ UseCases$inboundSchema;
2143
2078
 
2144
2079
  /**
2145
2080
  * @internal
2146
2081
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2147
2082
  */
2148
- export namespace UpdatePromptUseCases$ {
2149
- /** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
2150
- export const inboundSchema = UpdatePromptUseCases$inboundSchema;
2151
- /** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
2152
- export const outboundSchema = UpdatePromptUseCases$outboundSchema;
2083
+ export namespace UseCases$ {
2084
+ /** @deprecated use `UseCases$inboundSchema` instead. */
2085
+ export const inboundSchema = UseCases$inboundSchema;
2086
+ /** @deprecated use `UseCases$outboundSchema` instead. */
2087
+ export const outboundSchema = UseCases$outboundSchema;
2153
2088
  }
2154
2089
 
2155
2090
  /** @internal */
2156
- export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
2157
- typeof UpdatePromptLanguage
2158
- > = z.nativeEnum(UpdatePromptLanguage);
2091
+ export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
2092
+ .nativeEnum(Language);
2159
2093
 
2160
2094
  /** @internal */
2161
- export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
2162
- typeof UpdatePromptLanguage
2163
- > = UpdatePromptLanguage$inboundSchema;
2095
+ export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
2096
+ Language$inboundSchema;
2164
2097
 
2165
2098
  /**
2166
2099
  * @internal
2167
2100
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2168
2101
  */
2169
- export namespace UpdatePromptLanguage$ {
2170
- /** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
2171
- export const inboundSchema = UpdatePromptLanguage$inboundSchema;
2172
- /** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
2173
- export const outboundSchema = UpdatePromptLanguage$outboundSchema;
2102
+ export namespace Language$ {
2103
+ /** @deprecated use `Language$inboundSchema` instead. */
2104
+ export const inboundSchema = Language$inboundSchema;
2105
+ /** @deprecated use `Language$outboundSchema` instead. */
2106
+ export const outboundSchema = Language$outboundSchema;
2174
2107
  }
2175
2108
 
2176
2109
  /** @internal */
@@ -2179,8 +2112,8 @@ export const UpdatePromptMetadata$inboundSchema: z.ZodType<
2179
2112
  z.ZodTypeDef,
2180
2113
  unknown
2181
2114
  > = z.object({
2182
- use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
2183
- language: UpdatePromptLanguage$inboundSchema.optional(),
2115
+ use_cases: z.array(UseCases$inboundSchema).optional(),
2116
+ language: Language$inboundSchema.optional(),
2184
2117
  }).transform((v) => {
2185
2118
  return remap$(v, {
2186
2119
  "use_cases": "useCases",
@@ -2199,8 +2132,8 @@ export const UpdatePromptMetadata$outboundSchema: z.ZodType<
2199
2132
  z.ZodTypeDef,
2200
2133
  UpdatePromptMetadata
2201
2134
  > = z.object({
2202
- useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
2203
- language: UpdatePromptLanguage$outboundSchema.optional(),
2135
+ useCases: z.array(UseCases$outboundSchema).optional(),
2136
+ language: Language$outboundSchema.optional(),
2204
2137
  }).transform((v) => {
2205
2138
  return remap$(v, {
2206
2139
  useCases: "use_cases",
@@ -2252,8 +2185,7 @@ export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
2252
2185
  updated_by_id: z.string().optional(),
2253
2186
  display_name: z.string().optional(),
2254
2187
  description: z.nullable(z.string()).optional(),
2255
- prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema)
2256
- .optional(),
2188
+ prompt_config: z.lazy(() => PromptConfig$inboundSchema).optional(),
2257
2189
  metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
2258
2190
  }).transform((v) => {
2259
2191
  return remap$(v, {
@@ -2275,7 +2207,7 @@ export type UpdatePromptRequestBody$Outbound = {
2275
2207
  updated_by_id?: string | undefined;
2276
2208
  display_name?: string | undefined;
2277
2209
  description?: string | null | undefined;
2278
- prompt_config?: UpdatePromptPromptConfig$Outbound | undefined;
2210
+ prompt_config?: PromptConfig$Outbound | undefined;
2279
2211
  metadata?: UpdatePromptMetadata$Outbound | undefined;
2280
2212
  };
2281
2213
 
@@ -2293,8 +2225,7 @@ export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
2293
2225
  updatedById: z.string().optional(),
2294
2226
  displayName: z.string().optional(),
2295
2227
  description: z.nullable(z.string()).optional(),
2296
- promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema)
2297
- .optional(),
2228
+ promptConfig: z.lazy(() => PromptConfig$outboundSchema).optional(),
2298
2229
  metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
2299
2230
  }).transform((v) => {
2300
2231
  return remap$(v, {
@@ -2424,170 +2355,169 @@ export namespace UpdatePromptPromptsType$ {
2424
2355
  }
2425
2356
 
2426
2357
  /** @internal */
2427
- export const UpdatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<
2428
- typeof UpdatePromptPromptsModelType
2429
- > = z.nativeEnum(UpdatePromptPromptsModelType);
2358
+ export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
2359
+ typeof UpdatePromptModelType
2360
+ > = z.nativeEnum(UpdatePromptModelType);
2430
2361
 
2431
2362
  /** @internal */
2432
- export const UpdatePromptPromptsModelType$outboundSchema: z.ZodNativeEnum<
2433
- typeof UpdatePromptPromptsModelType
2434
- > = UpdatePromptPromptsModelType$inboundSchema;
2363
+ export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
2364
+ typeof UpdatePromptModelType
2365
+ > = UpdatePromptModelType$inboundSchema;
2435
2366
 
2436
2367
  /**
2437
2368
  * @internal
2438
2369
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2439
2370
  */
2440
- export namespace UpdatePromptPromptsModelType$ {
2441
- /** @deprecated use `UpdatePromptPromptsModelType$inboundSchema` instead. */
2442
- export const inboundSchema = UpdatePromptPromptsModelType$inboundSchema;
2443
- /** @deprecated use `UpdatePromptPromptsModelType$outboundSchema` instead. */
2444
- export const outboundSchema = UpdatePromptPromptsModelType$outboundSchema;
2371
+ export namespace UpdatePromptModelType$ {
2372
+ /** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
2373
+ export const inboundSchema = UpdatePromptModelType$inboundSchema;
2374
+ /** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
2375
+ export const outboundSchema = UpdatePromptModelType$outboundSchema;
2445
2376
  }
2446
2377
 
2447
2378
  /** @internal */
2448
- export const UpdatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2449
- typeof UpdatePromptPromptsFormat
2450
- > = z.nativeEnum(UpdatePromptPromptsFormat);
2379
+ export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
2380
+ typeof UpdatePromptFormat
2381
+ > = z.nativeEnum(UpdatePromptFormat);
2451
2382
 
2452
2383
  /** @internal */
2453
- export const UpdatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2454
- typeof UpdatePromptPromptsFormat
2455
- > = UpdatePromptPromptsFormat$inboundSchema;
2384
+ export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
2385
+ typeof UpdatePromptFormat
2386
+ > = UpdatePromptFormat$inboundSchema;
2456
2387
 
2457
2388
  /**
2458
2389
  * @internal
2459
2390
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2460
2391
  */
2461
- export namespace UpdatePromptPromptsFormat$ {
2462
- /** @deprecated use `UpdatePromptPromptsFormat$inboundSchema` instead. */
2463
- export const inboundSchema = UpdatePromptPromptsFormat$inboundSchema;
2464
- /** @deprecated use `UpdatePromptPromptsFormat$outboundSchema` instead. */
2465
- export const outboundSchema = UpdatePromptPromptsFormat$outboundSchema;
2392
+ export namespace UpdatePromptFormat$ {
2393
+ /** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
2394
+ export const inboundSchema = UpdatePromptFormat$inboundSchema;
2395
+ /** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
2396
+ export const outboundSchema = UpdatePromptFormat$outboundSchema;
2466
2397
  }
2467
2398
 
2468
2399
  /** @internal */
2469
- export const UpdatePromptPromptsQuality$inboundSchema: z.ZodNativeEnum<
2470
- typeof UpdatePromptPromptsQuality
2471
- > = z.nativeEnum(UpdatePromptPromptsQuality);
2400
+ export const UpdatePromptQuality$inboundSchema: z.ZodNativeEnum<
2401
+ typeof UpdatePromptQuality
2402
+ > = z.nativeEnum(UpdatePromptQuality);
2472
2403
 
2473
2404
  /** @internal */
2474
- export const UpdatePromptPromptsQuality$outboundSchema: z.ZodNativeEnum<
2475
- typeof UpdatePromptPromptsQuality
2476
- > = UpdatePromptPromptsQuality$inboundSchema;
2405
+ export const UpdatePromptQuality$outboundSchema: z.ZodNativeEnum<
2406
+ typeof UpdatePromptQuality
2407
+ > = UpdatePromptQuality$inboundSchema;
2477
2408
 
2478
2409
  /**
2479
2410
  * @internal
2480
2411
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2481
2412
  */
2482
- export namespace UpdatePromptPromptsQuality$ {
2483
- /** @deprecated use `UpdatePromptPromptsQuality$inboundSchema` instead. */
2484
- export const inboundSchema = UpdatePromptPromptsQuality$inboundSchema;
2485
- /** @deprecated use `UpdatePromptPromptsQuality$outboundSchema` instead. */
2486
- export const outboundSchema = UpdatePromptPromptsQuality$outboundSchema;
2413
+ export namespace UpdatePromptQuality$ {
2414
+ /** @deprecated use `UpdatePromptQuality$inboundSchema` instead. */
2415
+ export const inboundSchema = UpdatePromptQuality$inboundSchema;
2416
+ /** @deprecated use `UpdatePromptQuality$outboundSchema` instead. */
2417
+ export const outboundSchema = UpdatePromptQuality$outboundSchema;
2487
2418
  }
2488
2419
 
2489
2420
  /** @internal */
2490
- export const UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2491
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> = z
2492
- .nativeEnum(UpdatePromptResponseFormatPromptsResponse200Type);
2421
+ export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
2422
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
2423
+ .nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
2493
2424
 
2494
2425
  /** @internal */
2495
- export const UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2496
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> =
2497
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2426
+ export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
2427
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
2428
+ UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2498
2429
 
2499
2430
  /**
2500
2431
  * @internal
2501
2432
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2502
2433
  */
2503
- export namespace UpdatePromptResponseFormatPromptsResponse200Type$ {
2504
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2434
+ export namespace UpdatePromptResponseFormatPromptsResponseType$ {
2435
+ /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2505
2436
  export const inboundSchema =
2506
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2507
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2437
+ UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2438
+ /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2508
2439
  export const outboundSchema =
2509
- UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2440
+ UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
2510
2441
  }
2511
2442
 
2512
2443
  /** @internal */
2513
- export const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2514
- UpdatePromptResponseFormatPrompts2,
2444
+ export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
2445
+ UpdatePromptResponseFormat2,
2515
2446
  z.ZodTypeDef,
2516
2447
  unknown
2517
2448
  > = z.object({
2518
- type: UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2449
+ type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
2519
2450
  });
2520
2451
 
2521
2452
  /** @internal */
2522
- export type UpdatePromptResponseFormatPrompts2$Outbound = {
2453
+ export type UpdatePromptResponseFormat2$Outbound = {
2523
2454
  type: string;
2524
2455
  };
2525
2456
 
2526
2457
  /** @internal */
2527
- export const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2528
- UpdatePromptResponseFormatPrompts2$Outbound,
2458
+ export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
2459
+ UpdatePromptResponseFormat2$Outbound,
2529
2460
  z.ZodTypeDef,
2530
- UpdatePromptResponseFormatPrompts2
2461
+ UpdatePromptResponseFormat2
2531
2462
  > = z.object({
2532
- type: UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2463
+ type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
2533
2464
  });
2534
2465
 
2535
2466
  /**
2536
2467
  * @internal
2537
2468
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2538
2469
  */
2539
- export namespace UpdatePromptResponseFormatPrompts2$ {
2540
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$inboundSchema` instead. */
2541
- export const inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
2542
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$outboundSchema` instead. */
2543
- export const outboundSchema =
2544
- UpdatePromptResponseFormatPrompts2$outboundSchema;
2545
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$Outbound` instead. */
2546
- export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
2470
+ export namespace UpdatePromptResponseFormat2$ {
2471
+ /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
2472
+ export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
2473
+ /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
2474
+ export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
2475
+ /** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
2476
+ export type Outbound = UpdatePromptResponseFormat2$Outbound;
2547
2477
  }
2548
2478
 
2549
- export function updatePromptResponseFormatPrompts2ToJSON(
2550
- updatePromptResponseFormatPrompts2: UpdatePromptResponseFormatPrompts2,
2479
+ export function updatePromptResponseFormat2ToJSON(
2480
+ updatePromptResponseFormat2: UpdatePromptResponseFormat2,
2551
2481
  ): string {
2552
2482
  return JSON.stringify(
2553
- UpdatePromptResponseFormatPrompts2$outboundSchema.parse(
2554
- updatePromptResponseFormatPrompts2,
2483
+ UpdatePromptResponseFormat2$outboundSchema.parse(
2484
+ updatePromptResponseFormat2,
2555
2485
  ),
2556
2486
  );
2557
2487
  }
2558
2488
 
2559
- export function updatePromptResponseFormatPrompts2FromJSON(
2489
+ export function updatePromptResponseFormat2FromJSON(
2560
2490
  jsonString: string,
2561
- ): SafeParseResult<UpdatePromptResponseFormatPrompts2, SDKValidationError> {
2491
+ ): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
2562
2492
  return safeParse(
2563
2493
  jsonString,
2564
- (x) =>
2565
- UpdatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
2566
- `Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
2494
+ (x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2495
+ `Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
2567
2496
  );
2568
2497
  }
2569
2498
 
2570
2499
  /** @internal */
2571
- export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
2572
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
2573
- .nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
2500
+ export const UpdatePromptResponseFormatPromptsType$inboundSchema:
2501
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
2502
+ UpdatePromptResponseFormatPromptsType,
2503
+ );
2574
2504
 
2575
2505
  /** @internal */
2576
- export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
2577
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
2578
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2506
+ export const UpdatePromptResponseFormatPromptsType$outboundSchema:
2507
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
2508
+ UpdatePromptResponseFormatPromptsType$inboundSchema;
2579
2509
 
2580
2510
  /**
2581
2511
  * @internal
2582
2512
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2583
2513
  */
2584
- export namespace UpdatePromptResponseFormatPromptsResponseType$ {
2585
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2514
+ export namespace UpdatePromptResponseFormatPromptsType$ {
2515
+ /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
2586
2516
  export const inboundSchema =
2587
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2588
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2517
+ UpdatePromptResponseFormatPromptsType$inboundSchema;
2518
+ /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
2589
2519
  export const outboundSchema =
2590
- UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
2520
+ UpdatePromptResponseFormatPromptsType$outboundSchema;
2591
2521
  }
2592
2522
 
2593
2523
  /** @internal */
@@ -2656,12 +2586,12 @@ export function updatePromptResponseFormatJsonSchemaFromJSON(
2656
2586
  }
2657
2587
 
2658
2588
  /** @internal */
2659
- export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2660
- UpdatePromptResponseFormatPrompts1,
2589
+ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
2590
+ UpdatePromptResponseFormat1,
2661
2591
  z.ZodTypeDef,
2662
2592
  unknown
2663
2593
  > = z.object({
2664
- type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
2594
+ type: UpdatePromptResponseFormatPromptsType$inboundSchema,
2665
2595
  json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
2666
2596
  }).transform((v) => {
2667
2597
  return remap$(v, {
@@ -2670,18 +2600,18 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2670
2600
  });
2671
2601
 
2672
2602
  /** @internal */
2673
- export type UpdatePromptResponseFormatPrompts1$Outbound = {
2603
+ export type UpdatePromptResponseFormat1$Outbound = {
2674
2604
  type: string;
2675
2605
  json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
2676
2606
  };
2677
2607
 
2678
2608
  /** @internal */
2679
- export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2680
- UpdatePromptResponseFormatPrompts1$Outbound,
2609
+ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
2610
+ UpdatePromptResponseFormat1$Outbound,
2681
2611
  z.ZodTypeDef,
2682
- UpdatePromptResponseFormatPrompts1
2612
+ UpdatePromptResponseFormat1
2683
2613
  > = z.object({
2684
- type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
2614
+ type: UpdatePromptResponseFormatPromptsType$outboundSchema,
2685
2615
  jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
2686
2616
  }).transform((v) => {
2687
2617
  return remap$(v, {
@@ -2693,166 +2623,157 @@ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2693
2623
  * @internal
2694
2624
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2695
2625
  */
2696
- export namespace UpdatePromptResponseFormatPrompts1$ {
2697
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$inboundSchema` instead. */
2698
- export const inboundSchema = UpdatePromptResponseFormatPrompts1$inboundSchema;
2699
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$outboundSchema` instead. */
2700
- export const outboundSchema =
2701
- UpdatePromptResponseFormatPrompts1$outboundSchema;
2702
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$Outbound` instead. */
2703
- export type Outbound = UpdatePromptResponseFormatPrompts1$Outbound;
2626
+ export namespace UpdatePromptResponseFormat1$ {
2627
+ /** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
2628
+ export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
2629
+ /** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
2630
+ export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
2631
+ /** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
2632
+ export type Outbound = UpdatePromptResponseFormat1$Outbound;
2704
2633
  }
2705
2634
 
2706
- export function updatePromptResponseFormatPrompts1ToJSON(
2707
- updatePromptResponseFormatPrompts1: UpdatePromptResponseFormatPrompts1,
2635
+ export function updatePromptResponseFormat1ToJSON(
2636
+ updatePromptResponseFormat1: UpdatePromptResponseFormat1,
2708
2637
  ): string {
2709
2638
  return JSON.stringify(
2710
- UpdatePromptResponseFormatPrompts1$outboundSchema.parse(
2711
- updatePromptResponseFormatPrompts1,
2639
+ UpdatePromptResponseFormat1$outboundSchema.parse(
2640
+ updatePromptResponseFormat1,
2712
2641
  ),
2713
2642
  );
2714
2643
  }
2715
2644
 
2716
- export function updatePromptResponseFormatPrompts1FromJSON(
2645
+ export function updatePromptResponseFormat1FromJSON(
2717
2646
  jsonString: string,
2718
- ): SafeParseResult<UpdatePromptResponseFormatPrompts1, SDKValidationError> {
2647
+ ): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
2719
2648
  return safeParse(
2720
2649
  jsonString,
2721
- (x) =>
2722
- UpdatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
2723
- `Failed to parse 'UpdatePromptResponseFormatPrompts1' from JSON`,
2650
+ (x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
2651
+ `Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
2724
2652
  );
2725
2653
  }
2726
2654
 
2727
2655
  /** @internal */
2728
- export const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
2729
- UpdatePromptPromptsResponseFormat,
2656
+ export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
2657
+ UpdatePromptResponseFormat,
2730
2658
  z.ZodTypeDef,
2731
2659
  unknown
2732
2660
  > = z.union([
2733
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2734
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
2661
+ z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
2662
+ z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
2735
2663
  ]);
2736
2664
 
2737
2665
  /** @internal */
2738
- export type UpdatePromptPromptsResponseFormat$Outbound =
2739
- | UpdatePromptResponseFormatPrompts2$Outbound
2740
- | UpdatePromptResponseFormatPrompts1$Outbound;
2666
+ export type UpdatePromptResponseFormat$Outbound =
2667
+ | UpdatePromptResponseFormat2$Outbound
2668
+ | UpdatePromptResponseFormat1$Outbound;
2741
2669
 
2742
2670
  /** @internal */
2743
- export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
2744
- UpdatePromptPromptsResponseFormat$Outbound,
2671
+ export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
2672
+ UpdatePromptResponseFormat$Outbound,
2745
2673
  z.ZodTypeDef,
2746
- UpdatePromptPromptsResponseFormat
2674
+ UpdatePromptResponseFormat
2747
2675
  > = z.union([
2748
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2749
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
2676
+ z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
2677
+ z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
2750
2678
  ]);
2751
2679
 
2752
2680
  /**
2753
2681
  * @internal
2754
2682
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2755
2683
  */
2756
- export namespace UpdatePromptPromptsResponseFormat$ {
2757
- /** @deprecated use `UpdatePromptPromptsResponseFormat$inboundSchema` instead. */
2758
- export const inboundSchema = UpdatePromptPromptsResponseFormat$inboundSchema;
2759
- /** @deprecated use `UpdatePromptPromptsResponseFormat$outboundSchema` instead. */
2760
- export const outboundSchema =
2761
- UpdatePromptPromptsResponseFormat$outboundSchema;
2762
- /** @deprecated use `UpdatePromptPromptsResponseFormat$Outbound` instead. */
2763
- export type Outbound = UpdatePromptPromptsResponseFormat$Outbound;
2684
+ export namespace UpdatePromptResponseFormat$ {
2685
+ /** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
2686
+ export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
2687
+ /** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
2688
+ export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
2689
+ /** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
2690
+ export type Outbound = UpdatePromptResponseFormat$Outbound;
2764
2691
  }
2765
2692
 
2766
- export function updatePromptPromptsResponseFormatToJSON(
2767
- updatePromptPromptsResponseFormat: UpdatePromptPromptsResponseFormat,
2693
+ export function updatePromptResponseFormatToJSON(
2694
+ updatePromptResponseFormat: UpdatePromptResponseFormat,
2768
2695
  ): string {
2769
2696
  return JSON.stringify(
2770
- UpdatePromptPromptsResponseFormat$outboundSchema.parse(
2771
- updatePromptPromptsResponseFormat,
2772
- ),
2697
+ UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
2773
2698
  );
2774
2699
  }
2775
2700
 
2776
- export function updatePromptPromptsResponseFormatFromJSON(
2701
+ export function updatePromptResponseFormatFromJSON(
2777
2702
  jsonString: string,
2778
- ): SafeParseResult<UpdatePromptPromptsResponseFormat, SDKValidationError> {
2703
+ ): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
2779
2704
  return safeParse(
2780
2705
  jsonString,
2781
- (x) => UpdatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2782
- `Failed to parse 'UpdatePromptPromptsResponseFormat' from JSON`,
2706
+ (x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
2707
+ `Failed to parse 'UpdatePromptResponseFormat' from JSON`,
2783
2708
  );
2784
2709
  }
2785
2710
 
2786
2711
  /** @internal */
2787
- export const UpdatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2788
- typeof UpdatePromptPromptsPhotoRealVersion
2789
- > = z.nativeEnum(UpdatePromptPromptsPhotoRealVersion);
2712
+ export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2713
+ typeof UpdatePromptPhotoRealVersion
2714
+ > = z.nativeEnum(UpdatePromptPhotoRealVersion);
2790
2715
 
2791
2716
  /** @internal */
2792
- export const UpdatePromptPromptsPhotoRealVersion$outboundSchema:
2793
- z.ZodNativeEnum<typeof UpdatePromptPromptsPhotoRealVersion> =
2794
- UpdatePromptPromptsPhotoRealVersion$inboundSchema;
2717
+ export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
2718
+ typeof UpdatePromptPhotoRealVersion
2719
+ > = UpdatePromptPhotoRealVersion$inboundSchema;
2795
2720
 
2796
2721
  /**
2797
2722
  * @internal
2798
2723
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2799
2724
  */
2800
- export namespace UpdatePromptPromptsPhotoRealVersion$ {
2801
- /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
2802
- export const inboundSchema =
2803
- UpdatePromptPromptsPhotoRealVersion$inboundSchema;
2804
- /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
2805
- export const outboundSchema =
2806
- UpdatePromptPromptsPhotoRealVersion$outboundSchema;
2725
+ export namespace UpdatePromptPhotoRealVersion$ {
2726
+ /** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
2727
+ export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
2728
+ /** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
2729
+ export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
2807
2730
  }
2808
2731
 
2809
2732
  /** @internal */
2810
- export const UpdatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
2811
- typeof UpdatePromptPromptsEncodingFormat
2812
- > = z.nativeEnum(UpdatePromptPromptsEncodingFormat);
2733
+ export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
2734
+ typeof UpdatePromptEncodingFormat
2735
+ > = z.nativeEnum(UpdatePromptEncodingFormat);
2813
2736
 
2814
2737
  /** @internal */
2815
- export const UpdatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
2816
- typeof UpdatePromptPromptsEncodingFormat
2817
- > = UpdatePromptPromptsEncodingFormat$inboundSchema;
2738
+ export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
2739
+ typeof UpdatePromptEncodingFormat
2740
+ > = UpdatePromptEncodingFormat$inboundSchema;
2818
2741
 
2819
2742
  /**
2820
2743
  * @internal
2821
2744
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2822
2745
  */
2823
- export namespace UpdatePromptPromptsEncodingFormat$ {
2824
- /** @deprecated use `UpdatePromptPromptsEncodingFormat$inboundSchema` instead. */
2825
- export const inboundSchema = UpdatePromptPromptsEncodingFormat$inboundSchema;
2826
- /** @deprecated use `UpdatePromptPromptsEncodingFormat$outboundSchema` instead. */
2827
- export const outboundSchema =
2828
- UpdatePromptPromptsEncodingFormat$outboundSchema;
2746
+ export namespace UpdatePromptEncodingFormat$ {
2747
+ /** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
2748
+ export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
2749
+ /** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
2750
+ export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
2829
2751
  }
2830
2752
 
2831
2753
  /** @internal */
2832
- export const UpdatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2833
- typeof UpdatePromptPromptsReasoningEffort
2834
- > = z.nativeEnum(UpdatePromptPromptsReasoningEffort);
2754
+ export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
2755
+ typeof UpdatePromptReasoningEffort
2756
+ > = z.nativeEnum(UpdatePromptReasoningEffort);
2835
2757
 
2836
2758
  /** @internal */
2837
- export const UpdatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
2838
- typeof UpdatePromptPromptsReasoningEffort
2839
- > = UpdatePromptPromptsReasoningEffort$inboundSchema;
2759
+ export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
2760
+ typeof UpdatePromptReasoningEffort
2761
+ > = UpdatePromptReasoningEffort$inboundSchema;
2840
2762
 
2841
2763
  /**
2842
2764
  * @internal
2843
2765
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2844
2766
  */
2845
- export namespace UpdatePromptPromptsReasoningEffort$ {
2846
- /** @deprecated use `UpdatePromptPromptsReasoningEffort$inboundSchema` instead. */
2847
- export const inboundSchema = UpdatePromptPromptsReasoningEffort$inboundSchema;
2848
- /** @deprecated use `UpdatePromptPromptsReasoningEffort$outboundSchema` instead. */
2849
- export const outboundSchema =
2850
- UpdatePromptPromptsReasoningEffort$outboundSchema;
2767
+ export namespace UpdatePromptReasoningEffort$ {
2768
+ /** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
2769
+ export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
2770
+ /** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
2771
+ export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
2851
2772
  }
2852
2773
 
2853
2774
  /** @internal */
2854
- export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2855
- UpdatePromptPromptsModelParameters,
2775
+ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
2776
+ UpdatePromptModelParameters,
2856
2777
  z.ZodTypeDef,
2857
2778
  unknown
2858
2779
  > = z.object({
@@ -2864,20 +2785,19 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2864
2785
  presencePenalty: z.number().optional(),
2865
2786
  numImages: z.number().optional(),
2866
2787
  seed: z.number().optional(),
2867
- format: UpdatePromptPromptsFormat$inboundSchema.optional(),
2788
+ format: UpdatePromptFormat$inboundSchema.optional(),
2868
2789
  dimensions: z.string().optional(),
2869
- quality: UpdatePromptPromptsQuality$inboundSchema.optional(),
2790
+ quality: UpdatePromptQuality$inboundSchema.optional(),
2870
2791
  style: z.string().optional(),
2871
2792
  responseFormat: z.nullable(
2872
2793
  z.union([
2873
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2874
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
2794
+ z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
2795
+ z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
2875
2796
  ]),
2876
2797
  ).optional(),
2877
- photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema
2878
- .optional(),
2879
- encoding_format: UpdatePromptPromptsEncodingFormat$inboundSchema.optional(),
2880
- reasoningEffort: UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
2798
+ photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
2799
+ encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
2800
+ reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
2881
2801
  budgetTokens: z.number().optional(),
2882
2802
  }).transform((v) => {
2883
2803
  return remap$(v, {
@@ -2886,7 +2806,7 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2886
2806
  });
2887
2807
 
2888
2808
  /** @internal */
2889
- export type UpdatePromptPromptsModelParameters$Outbound = {
2809
+ export type UpdatePromptModelParameters$Outbound = {
2890
2810
  temperature?: number | undefined;
2891
2811
  maxTokens?: number | undefined;
2892
2812
  topK?: number | undefined;
@@ -2900,8 +2820,8 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
2900
2820
  quality?: string | undefined;
2901
2821
  style?: string | undefined;
2902
2822
  responseFormat?:
2903
- | UpdatePromptResponseFormatPrompts2$Outbound
2904
- | UpdatePromptResponseFormatPrompts1$Outbound
2823
+ | UpdatePromptResponseFormat2$Outbound
2824
+ | UpdatePromptResponseFormat1$Outbound
2905
2825
  | null
2906
2826
  | undefined;
2907
2827
  photoRealVersion?: string | undefined;
@@ -2911,10 +2831,10 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
2911
2831
  };
2912
2832
 
2913
2833
  /** @internal */
2914
- export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2915
- UpdatePromptPromptsModelParameters$Outbound,
2834
+ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
2835
+ UpdatePromptModelParameters$Outbound,
2916
2836
  z.ZodTypeDef,
2917
- UpdatePromptPromptsModelParameters
2837
+ UpdatePromptModelParameters
2918
2838
  > = z.object({
2919
2839
  temperature: z.number().optional(),
2920
2840
  maxTokens: z.number().optional(),
@@ -2924,20 +2844,19 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2924
2844
  presencePenalty: z.number().optional(),
2925
2845
  numImages: z.number().optional(),
2926
2846
  seed: z.number().optional(),
2927
- format: UpdatePromptPromptsFormat$outboundSchema.optional(),
2847
+ format: UpdatePromptFormat$outboundSchema.optional(),
2928
2848
  dimensions: z.string().optional(),
2929
- quality: UpdatePromptPromptsQuality$outboundSchema.optional(),
2849
+ quality: UpdatePromptQuality$outboundSchema.optional(),
2930
2850
  style: z.string().optional(),
2931
2851
  responseFormat: z.nullable(
2932
2852
  z.union([
2933
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2934
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
2853
+ z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
2854
+ z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
2935
2855
  ]),
2936
2856
  ).optional(),
2937
- photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema
2938
- .optional(),
2939
- encodingFormat: UpdatePromptPromptsEncodingFormat$outboundSchema.optional(),
2940
- reasoningEffort: UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
2857
+ photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
2858
+ encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
2859
+ reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
2941
2860
  budgetTokens: z.number().optional(),
2942
2861
  }).transform((v) => {
2943
2862
  return remap$(v, {
@@ -2949,56 +2868,54 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2949
2868
  * @internal
2950
2869
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2951
2870
  */
2952
- export namespace UpdatePromptPromptsModelParameters$ {
2953
- /** @deprecated use `UpdatePromptPromptsModelParameters$inboundSchema` instead. */
2954
- export const inboundSchema = UpdatePromptPromptsModelParameters$inboundSchema;
2955
- /** @deprecated use `UpdatePromptPromptsModelParameters$outboundSchema` instead. */
2956
- export const outboundSchema =
2957
- UpdatePromptPromptsModelParameters$outboundSchema;
2958
- /** @deprecated use `UpdatePromptPromptsModelParameters$Outbound` instead. */
2959
- export type Outbound = UpdatePromptPromptsModelParameters$Outbound;
2871
+ export namespace UpdatePromptModelParameters$ {
2872
+ /** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
2873
+ export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
2874
+ /** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
2875
+ export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
2876
+ /** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
2877
+ export type Outbound = UpdatePromptModelParameters$Outbound;
2960
2878
  }
2961
2879
 
2962
- export function updatePromptPromptsModelParametersToJSON(
2963
- updatePromptPromptsModelParameters: UpdatePromptPromptsModelParameters,
2880
+ export function updatePromptModelParametersToJSON(
2881
+ updatePromptModelParameters: UpdatePromptModelParameters,
2964
2882
  ): string {
2965
2883
  return JSON.stringify(
2966
- UpdatePromptPromptsModelParameters$outboundSchema.parse(
2967
- updatePromptPromptsModelParameters,
2884
+ UpdatePromptModelParameters$outboundSchema.parse(
2885
+ updatePromptModelParameters,
2968
2886
  ),
2969
2887
  );
2970
2888
  }
2971
2889
 
2972
- export function updatePromptPromptsModelParametersFromJSON(
2890
+ export function updatePromptModelParametersFromJSON(
2973
2891
  jsonString: string,
2974
- ): SafeParseResult<UpdatePromptPromptsModelParameters, SDKValidationError> {
2892
+ ): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
2975
2893
  return safeParse(
2976
2894
  jsonString,
2977
- (x) =>
2978
- UpdatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
2979
- `Failed to parse 'UpdatePromptPromptsModelParameters' from JSON`,
2895
+ (x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
2896
+ `Failed to parse 'UpdatePromptModelParameters' from JSON`,
2980
2897
  );
2981
2898
  }
2982
2899
 
2983
2900
  /** @internal */
2984
- export const UpdatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
2985
- typeof UpdatePromptPromptsProvider
2986
- > = z.nativeEnum(UpdatePromptPromptsProvider);
2901
+ export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
2902
+ typeof UpdatePromptProvider
2903
+ > = z.nativeEnum(UpdatePromptProvider);
2987
2904
 
2988
2905
  /** @internal */
2989
- export const UpdatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
2990
- typeof UpdatePromptPromptsProvider
2991
- > = UpdatePromptPromptsProvider$inboundSchema;
2906
+ export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
2907
+ typeof UpdatePromptProvider
2908
+ > = UpdatePromptProvider$inboundSchema;
2992
2909
 
2993
2910
  /**
2994
2911
  * @internal
2995
2912
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2996
2913
  */
2997
- export namespace UpdatePromptPromptsProvider$ {
2998
- /** @deprecated use `UpdatePromptPromptsProvider$inboundSchema` instead. */
2999
- export const inboundSchema = UpdatePromptPromptsProvider$inboundSchema;
3000
- /** @deprecated use `UpdatePromptPromptsProvider$outboundSchema` instead. */
3001
- export const outboundSchema = UpdatePromptPromptsProvider$outboundSchema;
2914
+ export namespace UpdatePromptProvider$ {
2915
+ /** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
2916
+ export const inboundSchema = UpdatePromptProvider$inboundSchema;
2917
+ /** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
2918
+ export const outboundSchema = UpdatePromptProvider$outboundSchema;
3002
2919
  }
3003
2920
 
3004
2921
  /** @internal */
@@ -3602,19 +3519,18 @@ export function updatePromptPromptsMessagesFromJSON(
3602
3519
  }
3603
3520
 
3604
3521
  /** @internal */
3605
- export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3606
- UpdatePromptPromptsPromptConfig,
3522
+ export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
3523
+ UpdatePromptPromptConfig,
3607
3524
  z.ZodTypeDef,
3608
3525
  unknown
3609
3526
  > = z.object({
3610
3527
  stream: z.boolean().optional(),
3611
3528
  model: z.string().optional(),
3612
3529
  model_db_id: z.string().optional(),
3613
- model_type: UpdatePromptPromptsModelType$inboundSchema.optional(),
3614
- model_parameters: z.lazy(() =>
3615
- UpdatePromptPromptsModelParameters$inboundSchema
3616
- ).optional(),
3617
- provider: UpdatePromptPromptsProvider$inboundSchema.optional(),
3530
+ model_type: UpdatePromptModelType$inboundSchema.optional(),
3531
+ model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
3532
+ .optional(),
3533
+ provider: UpdatePromptProvider$inboundSchema.optional(),
3618
3534
  integration_id: z.nullable(z.string()).optional(),
3619
3535
  version: z.string().optional(),
3620
3536
  messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$inboundSchema)),
@@ -3628,12 +3544,12 @@ export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3628
3544
  });
3629
3545
 
3630
3546
  /** @internal */
3631
- export type UpdatePromptPromptsPromptConfig$Outbound = {
3547
+ export type UpdatePromptPromptConfig$Outbound = {
3632
3548
  stream?: boolean | undefined;
3633
3549
  model?: string | undefined;
3634
3550
  model_db_id?: string | undefined;
3635
3551
  model_type?: string | undefined;
3636
- model_parameters?: UpdatePromptPromptsModelParameters$Outbound | undefined;
3552
+ model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
3637
3553
  provider?: string | undefined;
3638
3554
  integration_id?: string | null | undefined;
3639
3555
  version?: string | undefined;
@@ -3641,19 +3557,18 @@ export type UpdatePromptPromptsPromptConfig$Outbound = {
3641
3557
  };
3642
3558
 
3643
3559
  /** @internal */
3644
- export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3645
- UpdatePromptPromptsPromptConfig$Outbound,
3560
+ export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
3561
+ UpdatePromptPromptConfig$Outbound,
3646
3562
  z.ZodTypeDef,
3647
- UpdatePromptPromptsPromptConfig
3563
+ UpdatePromptPromptConfig
3648
3564
  > = z.object({
3649
3565
  stream: z.boolean().optional(),
3650
3566
  model: z.string().optional(),
3651
3567
  modelDbId: z.string().optional(),
3652
- modelType: UpdatePromptPromptsModelType$outboundSchema.optional(),
3653
- modelParameters: z.lazy(() =>
3654
- UpdatePromptPromptsModelParameters$outboundSchema
3655
- ).optional(),
3656
- provider: UpdatePromptPromptsProvider$outboundSchema.optional(),
3568
+ modelType: UpdatePromptModelType$outboundSchema.optional(),
3569
+ modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
3570
+ .optional(),
3571
+ provider: UpdatePromptProvider$outboundSchema.optional(),
3657
3572
  integrationId: z.nullable(z.string()).optional(),
3658
3573
  version: z.string().optional(),
3659
3574
  messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$outboundSchema)),
@@ -3670,75 +3585,73 @@ export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3670
3585
  * @internal
3671
3586
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3672
3587
  */
3673
- export namespace UpdatePromptPromptsPromptConfig$ {
3674
- /** @deprecated use `UpdatePromptPromptsPromptConfig$inboundSchema` instead. */
3675
- export const inboundSchema = UpdatePromptPromptsPromptConfig$inboundSchema;
3676
- /** @deprecated use `UpdatePromptPromptsPromptConfig$outboundSchema` instead. */
3677
- export const outboundSchema = UpdatePromptPromptsPromptConfig$outboundSchema;
3678
- /** @deprecated use `UpdatePromptPromptsPromptConfig$Outbound` instead. */
3679
- export type Outbound = UpdatePromptPromptsPromptConfig$Outbound;
3588
+ export namespace UpdatePromptPromptConfig$ {
3589
+ /** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
3590
+ export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
3591
+ /** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
3592
+ export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
3593
+ /** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
3594
+ export type Outbound = UpdatePromptPromptConfig$Outbound;
3680
3595
  }
3681
3596
 
3682
- export function updatePromptPromptsPromptConfigToJSON(
3683
- updatePromptPromptsPromptConfig: UpdatePromptPromptsPromptConfig,
3597
+ export function updatePromptPromptConfigToJSON(
3598
+ updatePromptPromptConfig: UpdatePromptPromptConfig,
3684
3599
  ): string {
3685
3600
  return JSON.stringify(
3686
- UpdatePromptPromptsPromptConfig$outboundSchema.parse(
3687
- updatePromptPromptsPromptConfig,
3688
- ),
3601
+ UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
3689
3602
  );
3690
3603
  }
3691
3604
 
3692
- export function updatePromptPromptsPromptConfigFromJSON(
3605
+ export function updatePromptPromptConfigFromJSON(
3693
3606
  jsonString: string,
3694
- ): SafeParseResult<UpdatePromptPromptsPromptConfig, SDKValidationError> {
3607
+ ): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
3695
3608
  return safeParse(
3696
3609
  jsonString,
3697
- (x) => UpdatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
3698
- `Failed to parse 'UpdatePromptPromptsPromptConfig' from JSON`,
3610
+ (x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
3611
+ `Failed to parse 'UpdatePromptPromptConfig' from JSON`,
3699
3612
  );
3700
3613
  }
3701
3614
 
3702
3615
  /** @internal */
3703
- export const UpdatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
3704
- typeof UpdatePromptPromptsUseCases
3705
- > = z.nativeEnum(UpdatePromptPromptsUseCases);
3616
+ export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
3617
+ typeof UpdatePromptUseCases
3618
+ > = z.nativeEnum(UpdatePromptUseCases);
3706
3619
 
3707
3620
  /** @internal */
3708
- export const UpdatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
3709
- typeof UpdatePromptPromptsUseCases
3710
- > = UpdatePromptPromptsUseCases$inboundSchema;
3621
+ export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
3622
+ typeof UpdatePromptUseCases
3623
+ > = UpdatePromptUseCases$inboundSchema;
3711
3624
 
3712
3625
  /**
3713
3626
  * @internal
3714
3627
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3715
3628
  */
3716
- export namespace UpdatePromptPromptsUseCases$ {
3717
- /** @deprecated use `UpdatePromptPromptsUseCases$inboundSchema` instead. */
3718
- export const inboundSchema = UpdatePromptPromptsUseCases$inboundSchema;
3719
- /** @deprecated use `UpdatePromptPromptsUseCases$outboundSchema` instead. */
3720
- export const outboundSchema = UpdatePromptPromptsUseCases$outboundSchema;
3629
+ export namespace UpdatePromptUseCases$ {
3630
+ /** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
3631
+ export const inboundSchema = UpdatePromptUseCases$inboundSchema;
3632
+ /** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
3633
+ export const outboundSchema = UpdatePromptUseCases$outboundSchema;
3721
3634
  }
3722
3635
 
3723
3636
  /** @internal */
3724
- export const UpdatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
3725
- typeof UpdatePromptPromptsLanguage
3726
- > = z.nativeEnum(UpdatePromptPromptsLanguage);
3637
+ export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
3638
+ typeof UpdatePromptLanguage
3639
+ > = z.nativeEnum(UpdatePromptLanguage);
3727
3640
 
3728
3641
  /** @internal */
3729
- export const UpdatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
3730
- typeof UpdatePromptPromptsLanguage
3731
- > = UpdatePromptPromptsLanguage$inboundSchema;
3642
+ export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
3643
+ typeof UpdatePromptLanguage
3644
+ > = UpdatePromptLanguage$inboundSchema;
3732
3645
 
3733
3646
  /**
3734
3647
  * @internal
3735
3648
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3736
3649
  */
3737
- export namespace UpdatePromptPromptsLanguage$ {
3738
- /** @deprecated use `UpdatePromptPromptsLanguage$inboundSchema` instead. */
3739
- export const inboundSchema = UpdatePromptPromptsLanguage$inboundSchema;
3740
- /** @deprecated use `UpdatePromptPromptsLanguage$outboundSchema` instead. */
3741
- export const outboundSchema = UpdatePromptPromptsLanguage$outboundSchema;
3650
+ export namespace UpdatePromptLanguage$ {
3651
+ /** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
3652
+ export const inboundSchema = UpdatePromptLanguage$inboundSchema;
3653
+ /** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
3654
+ export const outboundSchema = UpdatePromptLanguage$outboundSchema;
3742
3655
  }
3743
3656
 
3744
3657
  /** @internal */
@@ -3747,8 +3660,8 @@ export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
3747
3660
  z.ZodTypeDef,
3748
3661
  unknown
3749
3662
  > = z.object({
3750
- use_cases: z.array(UpdatePromptPromptsUseCases$inboundSchema).optional(),
3751
- language: UpdatePromptPromptsLanguage$inboundSchema.optional(),
3663
+ use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
3664
+ language: UpdatePromptLanguage$inboundSchema.optional(),
3752
3665
  }).transform((v) => {
3753
3666
  return remap$(v, {
3754
3667
  "use_cases": "useCases",
@@ -3767,8 +3680,8 @@ export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
3767
3680
  z.ZodTypeDef,
3768
3681
  UpdatePromptPromptsMetadata
3769
3682
  > = z.object({
3770
- useCases: z.array(UpdatePromptPromptsUseCases$outboundSchema).optional(),
3771
- language: UpdatePromptPromptsLanguage$outboundSchema.optional(),
3683
+ useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
3684
+ language: UpdatePromptLanguage$outboundSchema.optional(),
3772
3685
  }).transform((v) => {
3773
3686
  return remap$(v, {
3774
3687
  useCases: "use_cases",
@@ -3824,7 +3737,7 @@ export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
3824
3737
  updated_by_id: z.string().optional(),
3825
3738
  display_name: z.string(),
3826
3739
  description: z.nullable(z.string()).optional(),
3827
- prompt_config: z.lazy(() => UpdatePromptPromptsPromptConfig$inboundSchema),
3740
+ prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema),
3828
3741
  metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema).optional(),
3829
3742
  }).transform((v) => {
3830
3743
  return remap$(v, {
@@ -3849,7 +3762,7 @@ export type UpdatePromptResponseBody$Outbound = {
3849
3762
  updated_by_id?: string | undefined;
3850
3763
  display_name: string;
3851
3764
  description?: string | null | undefined;
3852
- prompt_config: UpdatePromptPromptsPromptConfig$Outbound;
3765
+ prompt_config: UpdatePromptPromptConfig$Outbound;
3853
3766
  metadata?: UpdatePromptPromptsMetadata$Outbound | undefined;
3854
3767
  };
3855
3768
 
@@ -3869,7 +3782,7 @@ export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
3869
3782
  updatedById: z.string().optional(),
3870
3783
  displayName: z.string(),
3871
3784
  description: z.nullable(z.string()).optional(),
3872
- promptConfig: z.lazy(() => UpdatePromptPromptsPromptConfig$outboundSchema),
3785
+ promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema),
3873
3786
  metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema).optional(),
3874
3787
  }).transform((v) => {
3875
3788
  return remap$(v, {