@orq-ai/node 3.2.6 → 3.2.8

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