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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +1 -1
  2. package/bin/mcp-server.js +605 -605
  3. package/bin/mcp-server.js.map +21 -21
  4. package/docs/sdks/prompts/README.md +110 -110
  5. package/funcs/promptsList.js +1 -1
  6. package/funcs/promptsList.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +2 -2
  12. package/mcp-server/server.js.map +1 -1
  13. package/models/operations/bulkcreatedatapoints.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.js +2 -2
  17. package/models/operations/createprompt.d.ts +333 -333
  18. package/models/operations/createprompt.d.ts.map +1 -1
  19. package/models/operations/createprompt.js +466 -469
  20. package/models/operations/createprompt.js.map +1 -1
  21. package/models/operations/fileget.js +2 -2
  22. package/models/operations/filelist.js +2 -2
  23. package/models/operations/fileupload.js +2 -2
  24. package/models/operations/listdatasetdatapoints.js +2 -2
  25. package/models/operations/listdatasets.js +2 -2
  26. package/models/operations/retrievedatapoint.js +2 -2
  27. package/models/operations/retrievedataset.js +2 -2
  28. package/models/operations/updatedatapoint.js +2 -2
  29. package/models/operations/updatedataset.js +2 -2
  30. package/models/operations/updateprompt.d.ts +333 -333
  31. package/models/operations/updateprompt.d.ts.map +1 -1
  32. package/models/operations/updateprompt.js +469 -468
  33. package/models/operations/updateprompt.js.map +1 -1
  34. package/package.json +1 -1
  35. package/sdk/prompts.d.ts +4 -4
  36. package/sdk/prompts.d.ts.map +1 -1
  37. package/sdk/prompts.js +6 -6
  38. package/sdk/prompts.js.map +1 -1
  39. package/src/funcs/promptsList.ts +1 -1
  40. package/src/lib/config.ts +2 -2
  41. package/src/mcp-server/mcp-server.ts +1 -1
  42. package/src/mcp-server/server.ts +2 -2
  43. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  44. package/src/models/operations/createcontact.ts +2 -2
  45. package/src/models/operations/createdataset.ts +2 -2
  46. package/src/models/operations/createdatasetitem.ts +2 -2
  47. package/src/models/operations/createprompt.ts +714 -629
  48. package/src/models/operations/fileget.ts +2 -2
  49. package/src/models/operations/filelist.ts +2 -2
  50. package/src/models/operations/fileupload.ts +2 -2
  51. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  52. package/src/models/operations/listdatasets.ts +2 -2
  53. package/src/models/operations/retrievedatapoint.ts +2 -2
  54. package/src/models/operations/retrievedataset.ts +2 -2
  55. package/src/models/operations/updatedatapoint.ts +2 -2
  56. package/src/models/operations/updatedataset.ts +2 -2
  57. package/src/models/operations/updateprompt.ts +629 -716
  58. package/src/sdk/prompts.ts +14 -14
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of the model
14
14
  */
15
- export const ModelType = {
15
+ export const CreatePromptModelType = {
16
16
  Chat: "chat",
17
17
  Completion: "completion",
18
18
  Embedding: "embedding",
@@ -26,12 +26,12 @@ export const ModelType = {
26
26
  /**
27
27
  * The type of the model
28
28
  */
29
- export type ModelType = ClosedEnum<typeof ModelType>;
29
+ export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
30
30
 
31
31
  /**
32
32
  * Only supported on `image` models.
33
33
  */
34
- export const Format = {
34
+ export const CreatePromptFormat = {
35
35
  Url: "url",
36
36
  B64Json: "b64_json",
37
37
  Text: "text",
@@ -40,45 +40,47 @@ export const Format = {
40
40
  /**
41
41
  * Only supported on `image` models.
42
42
  */
43
- export type Format = ClosedEnum<typeof Format>;
43
+ export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
44
44
 
45
45
  /**
46
46
  * Only supported on `image` models.
47
47
  */
48
- export const Quality = {
48
+ export const CreatePromptQuality = {
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 CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
56
56
 
57
- export const CreatePromptResponseFormatType = {
57
+ export const CreatePromptResponseFormatPromptsType = {
58
58
  JsonObject: "json_object",
59
59
  } as const;
60
- export type CreatePromptResponseFormatType = ClosedEnum<
61
- typeof CreatePromptResponseFormatType
60
+ export type CreatePromptResponseFormatPromptsType = ClosedEnum<
61
+ typeof CreatePromptResponseFormatPromptsType
62
62
  >;
63
63
 
64
- export type ResponseFormat2 = {
65
- type: CreatePromptResponseFormatType;
64
+ export type CreatePromptResponseFormat2 = {
65
+ type: CreatePromptResponseFormatPromptsType;
66
66
  };
67
67
 
68
- export const ResponseFormatType = {
68
+ export const CreatePromptResponseFormatType = {
69
69
  JsonSchema: "json_schema",
70
70
  } as const;
71
- export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
71
+ export type CreatePromptResponseFormatType = ClosedEnum<
72
+ typeof CreatePromptResponseFormatType
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 CreatePromptResponseFormat1 = {
82
+ type: CreatePromptResponseFormatType;
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 CreatePromptResponseFormat =
98
+ | CreatePromptResponseFormat2
99
+ | CreatePromptResponseFormat1;
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 CreatePromptPhotoRealVersion = {
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 CreatePromptPhotoRealVersion = ClosedEnum<
112
+ typeof CreatePromptPhotoRealVersion
113
+ >;
108
114
 
109
115
  /**
110
116
  * The format to return the embeddings
111
117
  */
112
- export const EncodingFormat = {
118
+ export const CreatePromptEncodingFormat = {
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 CreatePromptEncodingFormat = ClosedEnum<
126
+ typeof CreatePromptEncodingFormat
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 CreatePromptReasoningEffort = {
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 CreatePromptReasoningEffort = ClosedEnum<
141
+ typeof CreatePromptReasoningEffort
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 CreatePromptModelParameters = {
138
148
  /**
139
149
  * Only supported on `chat` and `completion` models.
140
150
  */
@@ -170,7 +180,7 @@ export type ModelParameters = {
170
180
  /**
171
181
  * Only supported on `image` models.
172
182
  */
173
- format?: Format | undefined;
183
+ format?: CreatePromptFormat | undefined;
174
184
  /**
175
185
  * Only supported on `image` models.
176
186
  */
@@ -178,7 +188,7 @@ export type ModelParameters = {
178
188
  /**
179
189
  * Only supported on `image` models.
180
190
  */
181
- quality?: Quality | undefined;
191
+ quality?: CreatePromptQuality | 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
+ | CreatePromptResponseFormat2
209
+ | CreatePromptResponseFormat1
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?: CreatePromptPhotoRealVersion | undefined;
202
216
  /**
203
217
  * The format to return the embeddings
204
218
  */
205
- encodingFormat?: EncodingFormat | undefined;
219
+ encodingFormat?: CreatePromptEncodingFormat | 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?: CreatePromptReasoningEffort | 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 CreatePromptProvider = {
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 CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
237
251
 
238
252
  /**
239
253
  * The role of the prompt message
@@ -336,23 +350,23 @@ export type CreatePromptMessages = {
336
350
  /**
337
351
  * A list of messages compatible with the openAI schema
338
352
  */
339
- export type PromptConfig = {
353
+ export type CreatePromptPromptConfig = {
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?: CreatePromptModelType | 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?: CreatePromptModelParameters | undefined;
364
+ provider?: CreatePromptProvider | undefined;
351
365
  version?: string | undefined;
352
366
  messages: Array<CreatePromptMessages>;
353
367
  };
354
368
 
355
- export const UseCases = {
369
+ export const CreatePromptUseCases = {
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 CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
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 CreatePromptLanguage = {
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 CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
391
405
 
392
406
  export type CreatePromptMetadata = {
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<CreatePromptUseCases> | 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?: CreatePromptLanguage | undefined;
401
415
  };
402
416
 
403
417
  export type CreatePromptRequestBody = {
@@ -412,7 +426,7 @@ export type CreatePromptRequestBody = {
412
426
  /**
413
427
  * A list of messages compatible with the openAI schema
414
428
  */
415
- promptConfig: PromptConfig;
429
+ promptConfig: CreatePromptPromptConfig;
416
430
  metadata?: CreatePromptMetadata | undefined;
417
431
  /**
418
432
  * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
@@ -430,7 +444,7 @@ export type CreatePromptPromptsType = ClosedEnum<
430
444
  /**
431
445
  * The type of the model
432
446
  */
433
- export const CreatePromptModelType = {
447
+ export const CreatePromptPromptsModelType = {
434
448
  Chat: "chat",
435
449
  Completion: "completion",
436
450
  Embedding: "embedding",
@@ -444,12 +458,14 @@ export const CreatePromptModelType = {
444
458
  /**
445
459
  * The type of the model
446
460
  */
447
- export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
461
+ export type CreatePromptPromptsModelType = ClosedEnum<
462
+ typeof CreatePromptPromptsModelType
463
+ >;
448
464
 
449
465
  /**
450
466
  * Only supported on `image` models.
451
467
  */
452
- export const CreatePromptFormat = {
468
+ export const CreatePromptPromptsFormat = {
453
469
  Url: "url",
454
470
  B64Json: "b64_json",
455
471
  Text: "text",
@@ -458,36 +474,40 @@ export const CreatePromptFormat = {
458
474
  /**
459
475
  * Only supported on `image` models.
460
476
  */
461
- export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
477
+ export type CreatePromptPromptsFormat = ClosedEnum<
478
+ typeof CreatePromptPromptsFormat
479
+ >;
462
480
 
463
481
  /**
464
482
  * Only supported on `image` models.
465
483
  */
466
- export const CreatePromptQuality = {
484
+ export const CreatePromptPromptsQuality = {
467
485
  Standard: "standard",
468
486
  Hd: "hd",
469
487
  } as const;
470
488
  /**
471
489
  * Only supported on `image` models.
472
490
  */
473
- export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
491
+ export type CreatePromptPromptsQuality = ClosedEnum<
492
+ typeof CreatePromptPromptsQuality
493
+ >;
474
494
 
475
- export const CreatePromptResponseFormatPromptsResponseType = {
495
+ export const CreatePromptResponseFormatPromptsResponse200Type = {
476
496
  JsonObject: "json_object",
477
497
  } as const;
478
- export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
479
- typeof CreatePromptResponseFormatPromptsResponseType
498
+ export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
499
+ typeof CreatePromptResponseFormatPromptsResponse200Type
480
500
  >;
481
501
 
482
- export type CreatePromptResponseFormat2 = {
483
- type: CreatePromptResponseFormatPromptsResponseType;
502
+ export type CreatePromptResponseFormatPrompts2 = {
503
+ type: CreatePromptResponseFormatPromptsResponse200Type;
484
504
  };
485
505
 
486
- export const CreatePromptResponseFormatPromptsType = {
506
+ export const CreatePromptResponseFormatPromptsResponseType = {
487
507
  JsonSchema: "json_schema",
488
508
  } as const;
489
- export type CreatePromptResponseFormatPromptsType = ClosedEnum<
490
- typeof CreatePromptResponseFormatPromptsType
509
+ export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
510
+ typeof CreatePromptResponseFormatPromptsResponseType
491
511
  >;
492
512
 
493
513
  export type CreatePromptResponseFormatJsonSchema = {
@@ -496,8 +516,8 @@ export type CreatePromptResponseFormatJsonSchema = {
496
516
  schema: { [k: string]: any };
497
517
  };
498
518
 
499
- export type CreatePromptResponseFormat1 = {
500
- type: CreatePromptResponseFormatPromptsType;
519
+ export type CreatePromptResponseFormatPrompts1 = {
520
+ type: CreatePromptResponseFormatPromptsResponseType;
501
521
  jsonSchema: CreatePromptResponseFormatJsonSchema;
502
522
  };
503
523
 
@@ -512,42 +532,42 @@ export type CreatePromptResponseFormat1 = {
512
532
  *
513
533
  * 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.
514
534
  */
515
- export type CreatePromptResponseFormat =
516
- | CreatePromptResponseFormat2
517
- | CreatePromptResponseFormat1;
535
+ export type CreatePromptPromptsResponseFormat =
536
+ | CreatePromptResponseFormatPrompts2
537
+ | CreatePromptResponseFormatPrompts1;
518
538
 
519
539
  /**
520
540
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
521
541
  */
522
- export const CreatePromptPhotoRealVersion = {
542
+ export const CreatePromptPromptsPhotoRealVersion = {
523
543
  V1: "v1",
524
544
  V2: "v2",
525
545
  } as const;
526
546
  /**
527
547
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
528
548
  */
529
- export type CreatePromptPhotoRealVersion = ClosedEnum<
530
- typeof CreatePromptPhotoRealVersion
549
+ export type CreatePromptPromptsPhotoRealVersion = ClosedEnum<
550
+ typeof CreatePromptPromptsPhotoRealVersion
531
551
  >;
532
552
 
533
553
  /**
534
554
  * The format to return the embeddings
535
555
  */
536
- export const CreatePromptEncodingFormat = {
556
+ export const CreatePromptPromptsEncodingFormat = {
537
557
  Float: "float",
538
558
  Base64: "base64",
539
559
  } as const;
540
560
  /**
541
561
  * The format to return the embeddings
542
562
  */
543
- export type CreatePromptEncodingFormat = ClosedEnum<
544
- typeof CreatePromptEncodingFormat
563
+ export type CreatePromptPromptsEncodingFormat = ClosedEnum<
564
+ typeof CreatePromptPromptsEncodingFormat
545
565
  >;
546
566
 
547
567
  /**
548
568
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
549
569
  */
550
- export const CreatePromptReasoningEffort = {
570
+ export const CreatePromptPromptsReasoningEffort = {
551
571
  Low: "low",
552
572
  Medium: "medium",
553
573
  High: "high",
@@ -555,14 +575,14 @@ export const CreatePromptReasoningEffort = {
555
575
  /**
556
576
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
557
577
  */
558
- export type CreatePromptReasoningEffort = ClosedEnum<
559
- typeof CreatePromptReasoningEffort
578
+ export type CreatePromptPromptsReasoningEffort = ClosedEnum<
579
+ typeof CreatePromptPromptsReasoningEffort
560
580
  >;
561
581
 
562
582
  /**
563
583
  * Model Parameters: Not all parameters apply to every model
564
584
  */
565
- export type CreatePromptModelParameters = {
585
+ export type CreatePromptPromptsModelParameters = {
566
586
  /**
567
587
  * Only supported on `chat` and `completion` models.
568
588
  */
@@ -598,7 +618,7 @@ export type CreatePromptModelParameters = {
598
618
  /**
599
619
  * Only supported on `image` models.
600
620
  */
601
- format?: CreatePromptFormat | undefined;
621
+ format?: CreatePromptPromptsFormat | undefined;
602
622
  /**
603
623
  * Only supported on `image` models.
604
624
  */
@@ -606,7 +626,7 @@ export type CreatePromptModelParameters = {
606
626
  /**
607
627
  * Only supported on `image` models.
608
628
  */
609
- quality?: CreatePromptQuality | undefined;
629
+ quality?: CreatePromptPromptsQuality | undefined;
610
630
  /**
611
631
  * Only supported on `image` models.
612
632
  */
@@ -623,29 +643,29 @@ export type CreatePromptModelParameters = {
623
643
  * 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.
624
644
  */
625
645
  responseFormat?:
626
- | CreatePromptResponseFormat2
627
- | CreatePromptResponseFormat1
646
+ | CreatePromptResponseFormatPrompts2
647
+ | CreatePromptResponseFormatPrompts1
628
648
  | null
629
649
  | undefined;
630
650
  /**
631
651
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
632
652
  */
633
- photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
653
+ photoRealVersion?: CreatePromptPromptsPhotoRealVersion | undefined;
634
654
  /**
635
655
  * The format to return the embeddings
636
656
  */
637
- encodingFormat?: CreatePromptEncodingFormat | undefined;
657
+ encodingFormat?: CreatePromptPromptsEncodingFormat | undefined;
638
658
  /**
639
659
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
640
660
  */
641
- reasoningEffort?: CreatePromptReasoningEffort | undefined;
661
+ reasoningEffort?: CreatePromptPromptsReasoningEffort | undefined;
642
662
  /**
643
663
  * 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`
644
664
  */
645
665
  budgetTokens?: number | undefined;
646
666
  };
647
667
 
648
- export const CreatePromptProvider = {
668
+ export const CreatePromptPromptsProvider = {
649
669
  Cohere: "cohere",
650
670
  Openai: "openai",
651
671
  Anthropic: "anthropic",
@@ -665,7 +685,9 @@ export const CreatePromptProvider = {
665
685
  Togetherai: "togetherai",
666
686
  Elevenlabs: "elevenlabs",
667
687
  } as const;
668
- export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
688
+ export type CreatePromptPromptsProvider = ClosedEnum<
689
+ typeof CreatePromptPromptsProvider
690
+ >;
669
691
 
670
692
  /**
671
693
  * The role of the prompt message
@@ -780,7 +802,7 @@ export type CreatePromptPromptsMessages = {
780
802
  /**
781
803
  * A list of messages compatible with the openAI schema
782
804
  */
783
- export type CreatePromptPromptConfig = {
805
+ export type CreatePromptPromptsPromptConfig = {
784
806
  stream?: boolean | undefined;
785
807
  model?: string | undefined;
786
808
  /**
@@ -790,12 +812,12 @@ export type CreatePromptPromptConfig = {
790
812
  /**
791
813
  * The type of the model
792
814
  */
793
- modelType?: CreatePromptModelType | undefined;
815
+ modelType?: CreatePromptPromptsModelType | undefined;
794
816
  /**
795
817
  * Model Parameters: Not all parameters apply to every model
796
818
  */
797
- modelParameters?: CreatePromptModelParameters | undefined;
798
- provider?: CreatePromptProvider | undefined;
819
+ modelParameters?: CreatePromptPromptsModelParameters | undefined;
820
+ provider?: CreatePromptPromptsProvider | undefined;
799
821
  /**
800
822
  * The id of the resource
801
823
  */
@@ -804,7 +826,7 @@ export type CreatePromptPromptConfig = {
804
826
  messages: Array<CreatePromptPromptsMessages>;
805
827
  };
806
828
 
807
- export const CreatePromptUseCases = {
829
+ export const CreatePromptPromptsUseCases = {
808
830
  Agents: "Agents",
809
831
  AgentsSimulations: "Agents simulations",
810
832
  APIInteraction: "API interaction",
@@ -822,12 +844,14 @@ export const CreatePromptUseCases = {
822
844
  Summarization: "Summarization",
823
845
  Tagging: "Tagging",
824
846
  } as const;
825
- export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
847
+ export type CreatePromptPromptsUseCases = ClosedEnum<
848
+ typeof CreatePromptPromptsUseCases
849
+ >;
826
850
 
827
851
  /**
828
852
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
829
853
  */
830
- export const CreatePromptLanguage = {
854
+ export const CreatePromptPromptsLanguage = {
831
855
  Chinese: "Chinese",
832
856
  Dutch: "Dutch",
833
857
  English: "English",
@@ -839,17 +863,19 @@ export const CreatePromptLanguage = {
839
863
  /**
840
864
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
841
865
  */
842
- export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
866
+ export type CreatePromptPromptsLanguage = ClosedEnum<
867
+ typeof CreatePromptPromptsLanguage
868
+ >;
843
869
 
844
870
  export type CreatePromptPromptsMetadata = {
845
871
  /**
846
872
  * 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
847
873
  */
848
- useCases?: Array<CreatePromptUseCases> | undefined;
874
+ useCases?: Array<CreatePromptPromptsUseCases> | undefined;
849
875
  /**
850
876
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
851
877
  */
852
- language?: CreatePromptLanguage | undefined;
878
+ language?: CreatePromptPromptsLanguage | undefined;
853
879
  };
854
880
 
855
881
  /**
@@ -875,164 +901,177 @@ export type CreatePromptResponseBody = {
875
901
  /**
876
902
  * A list of messages compatible with the openAI schema
877
903
  */
878
- promptConfig: CreatePromptPromptConfig;
904
+ promptConfig: CreatePromptPromptsPromptConfig;
879
905
  metadata?: CreatePromptPromptsMetadata | undefined;
880
906
  };
881
907
 
882
908
  /** @internal */
883
- export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
884
- .nativeEnum(ModelType);
909
+ export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
910
+ typeof CreatePromptModelType
911
+ > = z.nativeEnum(CreatePromptModelType);
885
912
 
886
913
  /** @internal */
887
- export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
888
- ModelType$inboundSchema;
914
+ export const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<
915
+ typeof CreatePromptModelType
916
+ > = CreatePromptModelType$inboundSchema;
889
917
 
890
918
  /**
891
919
  * @internal
892
920
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
893
921
  */
894
- export namespace ModelType$ {
895
- /** @deprecated use `ModelType$inboundSchema` instead. */
896
- export const inboundSchema = ModelType$inboundSchema;
897
- /** @deprecated use `ModelType$outboundSchema` instead. */
898
- export const outboundSchema = ModelType$outboundSchema;
922
+ export namespace CreatePromptModelType$ {
923
+ /** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
924
+ export const inboundSchema = CreatePromptModelType$inboundSchema;
925
+ /** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
926
+ export const outboundSchema = CreatePromptModelType$outboundSchema;
899
927
  }
900
928
 
901
929
  /** @internal */
902
- export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
903
- .nativeEnum(Format);
930
+ export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
931
+ typeof CreatePromptFormat
932
+ > = z.nativeEnum(CreatePromptFormat);
904
933
 
905
934
  /** @internal */
906
- export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
907
- Format$inboundSchema;
935
+ export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
936
+ typeof CreatePromptFormat
937
+ > = CreatePromptFormat$inboundSchema;
908
938
 
909
939
  /**
910
940
  * @internal
911
941
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
912
942
  */
913
- export namespace Format$ {
914
- /** @deprecated use `Format$inboundSchema` instead. */
915
- export const inboundSchema = Format$inboundSchema;
916
- /** @deprecated use `Format$outboundSchema` instead. */
917
- export const outboundSchema = Format$outboundSchema;
943
+ export namespace CreatePromptFormat$ {
944
+ /** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
945
+ export const inboundSchema = CreatePromptFormat$inboundSchema;
946
+ /** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
947
+ export const outboundSchema = CreatePromptFormat$outboundSchema;
918
948
  }
919
949
 
920
950
  /** @internal */
921
- export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
922
- .nativeEnum(Quality);
951
+ export const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<
952
+ typeof CreatePromptQuality
953
+ > = z.nativeEnum(CreatePromptQuality);
923
954
 
924
955
  /** @internal */
925
- export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
926
- Quality$inboundSchema;
956
+ export const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<
957
+ typeof CreatePromptQuality
958
+ > = CreatePromptQuality$inboundSchema;
927
959
 
928
960
  /**
929
961
  * @internal
930
962
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
931
963
  */
932
- export namespace Quality$ {
933
- /** @deprecated use `Quality$inboundSchema` instead. */
934
- export const inboundSchema = Quality$inboundSchema;
935
- /** @deprecated use `Quality$outboundSchema` instead. */
936
- export const outboundSchema = Quality$outboundSchema;
964
+ export namespace CreatePromptQuality$ {
965
+ /** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
966
+ export const inboundSchema = CreatePromptQuality$inboundSchema;
967
+ /** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
968
+ export const outboundSchema = CreatePromptQuality$outboundSchema;
937
969
  }
938
970
 
939
971
  /** @internal */
940
- export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
941
- typeof CreatePromptResponseFormatType
942
- > = z.nativeEnum(CreatePromptResponseFormatType);
972
+ export const CreatePromptResponseFormatPromptsType$inboundSchema:
973
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
974
+ CreatePromptResponseFormatPromptsType,
975
+ );
943
976
 
944
977
  /** @internal */
945
- export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
946
- typeof CreatePromptResponseFormatType
947
- > = CreatePromptResponseFormatType$inboundSchema;
978
+ export const CreatePromptResponseFormatPromptsType$outboundSchema:
979
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
980
+ CreatePromptResponseFormatPromptsType$inboundSchema;
948
981
 
949
982
  /**
950
983
  * @internal
951
984
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
952
985
  */
953
- export namespace CreatePromptResponseFormatType$ {
954
- /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
955
- export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
956
- /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
957
- export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
986
+ export namespace CreatePromptResponseFormatPromptsType$ {
987
+ /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
988
+ export const inboundSchema =
989
+ CreatePromptResponseFormatPromptsType$inboundSchema;
990
+ /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
991
+ export const outboundSchema =
992
+ CreatePromptResponseFormatPromptsType$outboundSchema;
958
993
  }
959
994
 
960
995
  /** @internal */
961
- export const ResponseFormat2$inboundSchema: z.ZodType<
962
- ResponseFormat2,
996
+ export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
997
+ CreatePromptResponseFormat2,
963
998
  z.ZodTypeDef,
964
999
  unknown
965
1000
  > = z.object({
966
- type: CreatePromptResponseFormatType$inboundSchema,
1001
+ type: CreatePromptResponseFormatPromptsType$inboundSchema,
967
1002
  });
968
1003
 
969
1004
  /** @internal */
970
- export type ResponseFormat2$Outbound = {
1005
+ export type CreatePromptResponseFormat2$Outbound = {
971
1006
  type: string;
972
1007
  };
973
1008
 
974
1009
  /** @internal */
975
- export const ResponseFormat2$outboundSchema: z.ZodType<
976
- ResponseFormat2$Outbound,
1010
+ export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
1011
+ CreatePromptResponseFormat2$Outbound,
977
1012
  z.ZodTypeDef,
978
- ResponseFormat2
1013
+ CreatePromptResponseFormat2
979
1014
  > = z.object({
980
- type: CreatePromptResponseFormatType$outboundSchema,
1015
+ type: CreatePromptResponseFormatPromptsType$outboundSchema,
981
1016
  });
982
1017
 
983
1018
  /**
984
1019
  * @internal
985
1020
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
986
1021
  */
987
- export namespace ResponseFormat2$ {
988
- /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
989
- export const inboundSchema = ResponseFormat2$inboundSchema;
990
- /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
991
- export const outboundSchema = ResponseFormat2$outboundSchema;
992
- /** @deprecated use `ResponseFormat2$Outbound` instead. */
993
- export type Outbound = ResponseFormat2$Outbound;
1022
+ export namespace CreatePromptResponseFormat2$ {
1023
+ /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
1024
+ export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
1025
+ /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
1026
+ export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
1027
+ /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
1028
+ export type Outbound = CreatePromptResponseFormat2$Outbound;
994
1029
  }
995
1030
 
996
- export function responseFormat2ToJSON(
997
- responseFormat2: ResponseFormat2,
1031
+ export function createPromptResponseFormat2ToJSON(
1032
+ createPromptResponseFormat2: CreatePromptResponseFormat2,
998
1033
  ): string {
999
- return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
1034
+ return JSON.stringify(
1035
+ CreatePromptResponseFormat2$outboundSchema.parse(
1036
+ createPromptResponseFormat2,
1037
+ ),
1038
+ );
1000
1039
  }
1001
1040
 
1002
- export function responseFormat2FromJSON(
1041
+ export function createPromptResponseFormat2FromJSON(
1003
1042
  jsonString: string,
1004
- ): SafeParseResult<ResponseFormat2, SDKValidationError> {
1043
+ ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
1005
1044
  return safeParse(
1006
1045
  jsonString,
1007
- (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1008
- `Failed to parse 'ResponseFormat2' from JSON`,
1046
+ (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1047
+ `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
1009
1048
  );
1010
1049
  }
1011
1050
 
1012
1051
  /** @internal */
1013
- export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
1014
- typeof ResponseFormatType
1015
- > = z.nativeEnum(ResponseFormatType);
1052
+ export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1053
+ typeof CreatePromptResponseFormatType
1054
+ > = z.nativeEnum(CreatePromptResponseFormatType);
1016
1055
 
1017
1056
  /** @internal */
1018
- export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
1019
- typeof ResponseFormatType
1020
- > = ResponseFormatType$inboundSchema;
1057
+ export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1058
+ typeof CreatePromptResponseFormatType
1059
+ > = CreatePromptResponseFormatType$inboundSchema;
1021
1060
 
1022
1061
  /**
1023
1062
  * @internal
1024
1063
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1025
1064
  */
1026
- export namespace ResponseFormatType$ {
1027
- /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
1028
- export const inboundSchema = ResponseFormatType$inboundSchema;
1029
- /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
1030
- export const outboundSchema = ResponseFormatType$outboundSchema;
1065
+ export namespace CreatePromptResponseFormatType$ {
1066
+ /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
1067
+ export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
1068
+ /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
1069
+ export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
1031
1070
  }
1032
1071
 
1033
1072
  /** @internal */
1034
- export const JsonSchema$inboundSchema: z.ZodType<
1035
- JsonSchema,
1073
+ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1074
+ ResponseFormatJsonSchema,
1036
1075
  z.ZodTypeDef,
1037
1076
  unknown
1038
1077
  > = z.object({
@@ -1042,17 +1081,17 @@ export const JsonSchema$inboundSchema: z.ZodType<
1042
1081
  });
1043
1082
 
1044
1083
  /** @internal */
1045
- export type JsonSchema$Outbound = {
1084
+ export type ResponseFormatJsonSchema$Outbound = {
1046
1085
  name: string;
1047
1086
  strict: boolean;
1048
1087
  schema: { [k: string]: any };
1049
1088
  };
1050
1089
 
1051
1090
  /** @internal */
1052
- export const JsonSchema$outboundSchema: z.ZodType<
1053
- JsonSchema$Outbound,
1091
+ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1092
+ ResponseFormatJsonSchema$Outbound,
1054
1093
  z.ZodTypeDef,
1055
- JsonSchema
1094
+ ResponseFormatJsonSchema
1056
1095
  > = z.object({
1057
1096
  name: z.string(),
1058
1097
  strict: z.boolean(),
@@ -1063,37 +1102,41 @@ export const JsonSchema$outboundSchema: z.ZodType<
1063
1102
  * @internal
1064
1103
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1065
1104
  */
1066
- export namespace JsonSchema$ {
1067
- /** @deprecated use `JsonSchema$inboundSchema` instead. */
1068
- export const inboundSchema = JsonSchema$inboundSchema;
1069
- /** @deprecated use `JsonSchema$outboundSchema` instead. */
1070
- export const outboundSchema = JsonSchema$outboundSchema;
1071
- /** @deprecated use `JsonSchema$Outbound` instead. */
1072
- export type Outbound = JsonSchema$Outbound;
1105
+ export namespace ResponseFormatJsonSchema$ {
1106
+ /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1107
+ export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
1108
+ /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1109
+ export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
1110
+ /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1111
+ export type Outbound = ResponseFormatJsonSchema$Outbound;
1073
1112
  }
1074
1113
 
1075
- export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
1076
- return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
1114
+ export function responseFormatJsonSchemaToJSON(
1115
+ responseFormatJsonSchema: ResponseFormatJsonSchema,
1116
+ ): string {
1117
+ return JSON.stringify(
1118
+ ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
1119
+ );
1077
1120
  }
1078
1121
 
1079
- export function jsonSchemaFromJSON(
1122
+ export function responseFormatJsonSchemaFromJSON(
1080
1123
  jsonString: string,
1081
- ): SafeParseResult<JsonSchema, SDKValidationError> {
1124
+ ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
1082
1125
  return safeParse(
1083
1126
  jsonString,
1084
- (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
1085
- `Failed to parse 'JsonSchema' from JSON`,
1127
+ (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1128
+ `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
1086
1129
  );
1087
1130
  }
1088
1131
 
1089
1132
  /** @internal */
1090
- export const ResponseFormat1$inboundSchema: z.ZodType<
1091
- ResponseFormat1,
1133
+ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
1134
+ CreatePromptResponseFormat1,
1092
1135
  z.ZodTypeDef,
1093
1136
  unknown
1094
1137
  > = z.object({
1095
- type: ResponseFormatType$inboundSchema,
1096
- json_schema: z.lazy(() => JsonSchema$inboundSchema),
1138
+ type: CreatePromptResponseFormatType$inboundSchema,
1139
+ json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
1097
1140
  }).transform((v) => {
1098
1141
  return remap$(v, {
1099
1142
  "json_schema": "jsonSchema",
@@ -1101,19 +1144,19 @@ export const ResponseFormat1$inboundSchema: z.ZodType<
1101
1144
  });
1102
1145
 
1103
1146
  /** @internal */
1104
- export type ResponseFormat1$Outbound = {
1147
+ export type CreatePromptResponseFormat1$Outbound = {
1105
1148
  type: string;
1106
- json_schema: JsonSchema$Outbound;
1149
+ json_schema: ResponseFormatJsonSchema$Outbound;
1107
1150
  };
1108
1151
 
1109
1152
  /** @internal */
1110
- export const ResponseFormat1$outboundSchema: z.ZodType<
1111
- ResponseFormat1$Outbound,
1153
+ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
1154
+ CreatePromptResponseFormat1$Outbound,
1112
1155
  z.ZodTypeDef,
1113
- ResponseFormat1
1156
+ CreatePromptResponseFormat1
1114
1157
  > = z.object({
1115
- type: ResponseFormatType$outboundSchema,
1116
- jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1158
+ type: CreatePromptResponseFormatType$outboundSchema,
1159
+ jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
1117
1160
  }).transform((v) => {
1118
1161
  return remap$(v, {
1119
1162
  jsonSchema: "json_schema",
@@ -1124,149 +1167,157 @@ export const ResponseFormat1$outboundSchema: z.ZodType<
1124
1167
  * @internal
1125
1168
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1126
1169
  */
1127
- export namespace ResponseFormat1$ {
1128
- /** @deprecated use `ResponseFormat1$inboundSchema` instead. */
1129
- export const inboundSchema = ResponseFormat1$inboundSchema;
1130
- /** @deprecated use `ResponseFormat1$outboundSchema` instead. */
1131
- export const outboundSchema = ResponseFormat1$outboundSchema;
1132
- /** @deprecated use `ResponseFormat1$Outbound` instead. */
1133
- export type Outbound = ResponseFormat1$Outbound;
1170
+ export namespace CreatePromptResponseFormat1$ {
1171
+ /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
1172
+ export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
1173
+ /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
1174
+ export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
1175
+ /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
1176
+ export type Outbound = CreatePromptResponseFormat1$Outbound;
1134
1177
  }
1135
1178
 
1136
- export function responseFormat1ToJSON(
1137
- responseFormat1: ResponseFormat1,
1179
+ export function createPromptResponseFormat1ToJSON(
1180
+ createPromptResponseFormat1: CreatePromptResponseFormat1,
1138
1181
  ): string {
1139
- return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
1182
+ return JSON.stringify(
1183
+ CreatePromptResponseFormat1$outboundSchema.parse(
1184
+ createPromptResponseFormat1,
1185
+ ),
1186
+ );
1140
1187
  }
1141
1188
 
1142
- export function responseFormat1FromJSON(
1189
+ export function createPromptResponseFormat1FromJSON(
1143
1190
  jsonString: string,
1144
- ): SafeParseResult<ResponseFormat1, SDKValidationError> {
1191
+ ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
1145
1192
  return safeParse(
1146
1193
  jsonString,
1147
- (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1148
- `Failed to parse 'ResponseFormat1' from JSON`,
1194
+ (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1195
+ `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
1149
1196
  );
1150
1197
  }
1151
1198
 
1152
1199
  /** @internal */
1153
- export const ResponseFormat$inboundSchema: z.ZodType<
1154
- ResponseFormat,
1200
+ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
1201
+ CreatePromptResponseFormat,
1155
1202
  z.ZodTypeDef,
1156
1203
  unknown
1157
1204
  > = z.union([
1158
- z.lazy(() => ResponseFormat2$inboundSchema),
1159
- z.lazy(() => ResponseFormat1$inboundSchema),
1205
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
1206
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
1160
1207
  ]);
1161
1208
 
1162
1209
  /** @internal */
1163
- export type ResponseFormat$Outbound =
1164
- | ResponseFormat2$Outbound
1165
- | ResponseFormat1$Outbound;
1210
+ export type CreatePromptResponseFormat$Outbound =
1211
+ | CreatePromptResponseFormat2$Outbound
1212
+ | CreatePromptResponseFormat1$Outbound;
1166
1213
 
1167
1214
  /** @internal */
1168
- export const ResponseFormat$outboundSchema: z.ZodType<
1169
- ResponseFormat$Outbound,
1215
+ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
1216
+ CreatePromptResponseFormat$Outbound,
1170
1217
  z.ZodTypeDef,
1171
- ResponseFormat
1218
+ CreatePromptResponseFormat
1172
1219
  > = z.union([
1173
- z.lazy(() => ResponseFormat2$outboundSchema),
1174
- z.lazy(() => ResponseFormat1$outboundSchema),
1220
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
1221
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
1175
1222
  ]);
1176
1223
 
1177
1224
  /**
1178
1225
  * @internal
1179
1226
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1180
1227
  */
1181
- export namespace ResponseFormat$ {
1182
- /** @deprecated use `ResponseFormat$inboundSchema` instead. */
1183
- export const inboundSchema = ResponseFormat$inboundSchema;
1184
- /** @deprecated use `ResponseFormat$outboundSchema` instead. */
1185
- export const outboundSchema = ResponseFormat$outboundSchema;
1186
- /** @deprecated use `ResponseFormat$Outbound` instead. */
1187
- export type Outbound = ResponseFormat$Outbound;
1228
+ export namespace CreatePromptResponseFormat$ {
1229
+ /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
1230
+ export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
1231
+ /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
1232
+ export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
1233
+ /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
1234
+ export type Outbound = CreatePromptResponseFormat$Outbound;
1188
1235
  }
1189
1236
 
1190
- export function responseFormatToJSON(responseFormat: ResponseFormat): string {
1191
- return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
1237
+ export function createPromptResponseFormatToJSON(
1238
+ createPromptResponseFormat: CreatePromptResponseFormat,
1239
+ ): string {
1240
+ return JSON.stringify(
1241
+ CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
1242
+ );
1192
1243
  }
1193
1244
 
1194
- export function responseFormatFromJSON(
1245
+ export function createPromptResponseFormatFromJSON(
1195
1246
  jsonString: string,
1196
- ): SafeParseResult<ResponseFormat, SDKValidationError> {
1247
+ ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
1197
1248
  return safeParse(
1198
1249
  jsonString,
1199
- (x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
1200
- `Failed to parse 'ResponseFormat' from JSON`,
1250
+ (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
1251
+ `Failed to parse 'CreatePromptResponseFormat' from JSON`,
1201
1252
  );
1202
1253
  }
1203
1254
 
1204
1255
  /** @internal */
1205
- export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1206
- typeof PhotoRealVersion
1207
- > = z.nativeEnum(PhotoRealVersion);
1256
+ export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1257
+ typeof CreatePromptPhotoRealVersion
1258
+ > = z.nativeEnum(CreatePromptPhotoRealVersion);
1208
1259
 
1209
1260
  /** @internal */
1210
- export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1211
- typeof PhotoRealVersion
1212
- > = PhotoRealVersion$inboundSchema;
1261
+ export const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1262
+ typeof CreatePromptPhotoRealVersion
1263
+ > = CreatePromptPhotoRealVersion$inboundSchema;
1213
1264
 
1214
1265
  /**
1215
1266
  * @internal
1216
1267
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1217
1268
  */
1218
- export namespace PhotoRealVersion$ {
1219
- /** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
1220
- export const inboundSchema = PhotoRealVersion$inboundSchema;
1221
- /** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
1222
- export const outboundSchema = PhotoRealVersion$outboundSchema;
1269
+ export namespace CreatePromptPhotoRealVersion$ {
1270
+ /** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
1271
+ export const inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
1272
+ /** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
1273
+ export const outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
1223
1274
  }
1224
1275
 
1225
1276
  /** @internal */
1226
- export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
1227
- typeof EncodingFormat
1228
- > = z.nativeEnum(EncodingFormat);
1277
+ export const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
1278
+ typeof CreatePromptEncodingFormat
1279
+ > = z.nativeEnum(CreatePromptEncodingFormat);
1229
1280
 
1230
1281
  /** @internal */
1231
- export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
1232
- typeof EncodingFormat
1233
- > = EncodingFormat$inboundSchema;
1282
+ export const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
1283
+ typeof CreatePromptEncodingFormat
1284
+ > = CreatePromptEncodingFormat$inboundSchema;
1234
1285
 
1235
1286
  /**
1236
1287
  * @internal
1237
1288
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1238
1289
  */
1239
- export namespace EncodingFormat$ {
1240
- /** @deprecated use `EncodingFormat$inboundSchema` instead. */
1241
- export const inboundSchema = EncodingFormat$inboundSchema;
1242
- /** @deprecated use `EncodingFormat$outboundSchema` instead. */
1243
- export const outboundSchema = EncodingFormat$outboundSchema;
1290
+ export namespace CreatePromptEncodingFormat$ {
1291
+ /** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
1292
+ export const inboundSchema = CreatePromptEncodingFormat$inboundSchema;
1293
+ /** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
1294
+ export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
1244
1295
  }
1245
1296
 
1246
1297
  /** @internal */
1247
- export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
1248
- typeof ReasoningEffort
1249
- > = z.nativeEnum(ReasoningEffort);
1298
+ export const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
1299
+ typeof CreatePromptReasoningEffort
1300
+ > = z.nativeEnum(CreatePromptReasoningEffort);
1250
1301
 
1251
1302
  /** @internal */
1252
- export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
1253
- typeof ReasoningEffort
1254
- > = ReasoningEffort$inboundSchema;
1303
+ export const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
1304
+ typeof CreatePromptReasoningEffort
1305
+ > = CreatePromptReasoningEffort$inboundSchema;
1255
1306
 
1256
1307
  /**
1257
1308
  * @internal
1258
1309
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1259
1310
  */
1260
- export namespace ReasoningEffort$ {
1261
- /** @deprecated use `ReasoningEffort$inboundSchema` instead. */
1262
- export const inboundSchema = ReasoningEffort$inboundSchema;
1263
- /** @deprecated use `ReasoningEffort$outboundSchema` instead. */
1264
- export const outboundSchema = ReasoningEffort$outboundSchema;
1311
+ export namespace CreatePromptReasoningEffort$ {
1312
+ /** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
1313
+ export const inboundSchema = CreatePromptReasoningEffort$inboundSchema;
1314
+ /** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
1315
+ export const outboundSchema = CreatePromptReasoningEffort$outboundSchema;
1265
1316
  }
1266
1317
 
1267
1318
  /** @internal */
1268
- export const ModelParameters$inboundSchema: z.ZodType<
1269
- ModelParameters,
1319
+ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
1320
+ CreatePromptModelParameters,
1270
1321
  z.ZodTypeDef,
1271
1322
  unknown
1272
1323
  > = z.object({
@@ -1278,19 +1329,19 @@ export const ModelParameters$inboundSchema: z.ZodType<
1278
1329
  presencePenalty: z.number().optional(),
1279
1330
  numImages: z.number().optional(),
1280
1331
  seed: z.number().optional(),
1281
- format: Format$inboundSchema.optional(),
1332
+ format: CreatePromptFormat$inboundSchema.optional(),
1282
1333
  dimensions: z.string().optional(),
1283
- quality: Quality$inboundSchema.optional(),
1334
+ quality: CreatePromptQuality$inboundSchema.optional(),
1284
1335
  style: z.string().optional(),
1285
1336
  responseFormat: z.nullable(
1286
1337
  z.union([
1287
- z.lazy(() => ResponseFormat2$inboundSchema),
1288
- z.lazy(() => ResponseFormat1$inboundSchema),
1338
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
1339
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
1289
1340
  ]),
1290
1341
  ).optional(),
1291
- photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
1292
- encoding_format: EncodingFormat$inboundSchema.optional(),
1293
- reasoningEffort: ReasoningEffort$inboundSchema.optional(),
1342
+ photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
1343
+ encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
1344
+ reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
1294
1345
  budgetTokens: z.number().optional(),
1295
1346
  }).transform((v) => {
1296
1347
  return remap$(v, {
@@ -1299,7 +1350,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
1299
1350
  });
1300
1351
 
1301
1352
  /** @internal */
1302
- export type ModelParameters$Outbound = {
1353
+ export type CreatePromptModelParameters$Outbound = {
1303
1354
  temperature?: number | undefined;
1304
1355
  maxTokens?: number | undefined;
1305
1356
  topK?: number | undefined;
@@ -1313,8 +1364,8 @@ export type ModelParameters$Outbound = {
1313
1364
  quality?: string | undefined;
1314
1365
  style?: string | undefined;
1315
1366
  responseFormat?:
1316
- | ResponseFormat2$Outbound
1317
- | ResponseFormat1$Outbound
1367
+ | CreatePromptResponseFormat2$Outbound
1368
+ | CreatePromptResponseFormat1$Outbound
1318
1369
  | null
1319
1370
  | undefined;
1320
1371
  photoRealVersion?: string | undefined;
@@ -1324,10 +1375,10 @@ export type ModelParameters$Outbound = {
1324
1375
  };
1325
1376
 
1326
1377
  /** @internal */
1327
- export const ModelParameters$outboundSchema: z.ZodType<
1328
- ModelParameters$Outbound,
1378
+ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
1379
+ CreatePromptModelParameters$Outbound,
1329
1380
  z.ZodTypeDef,
1330
- ModelParameters
1381
+ CreatePromptModelParameters
1331
1382
  > = z.object({
1332
1383
  temperature: z.number().optional(),
1333
1384
  maxTokens: z.number().optional(),
@@ -1337,19 +1388,19 @@ export const ModelParameters$outboundSchema: z.ZodType<
1337
1388
  presencePenalty: z.number().optional(),
1338
1389
  numImages: z.number().optional(),
1339
1390
  seed: z.number().optional(),
1340
- format: Format$outboundSchema.optional(),
1391
+ format: CreatePromptFormat$outboundSchema.optional(),
1341
1392
  dimensions: z.string().optional(),
1342
- quality: Quality$outboundSchema.optional(),
1393
+ quality: CreatePromptQuality$outboundSchema.optional(),
1343
1394
  style: z.string().optional(),
1344
1395
  responseFormat: z.nullable(
1345
1396
  z.union([
1346
- z.lazy(() => ResponseFormat2$outboundSchema),
1347
- z.lazy(() => ResponseFormat1$outboundSchema),
1397
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
1398
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
1348
1399
  ]),
1349
1400
  ).optional(),
1350
- photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
1351
- encodingFormat: EncodingFormat$outboundSchema.optional(),
1352
- reasoningEffort: ReasoningEffort$outboundSchema.optional(),
1401
+ photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
1402
+ encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
1403
+ reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
1353
1404
  budgetTokens: z.number().optional(),
1354
1405
  }).transform((v) => {
1355
1406
  return remap$(v, {
@@ -1361,48 +1412,54 @@ export const ModelParameters$outboundSchema: z.ZodType<
1361
1412
  * @internal
1362
1413
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1363
1414
  */
1364
- export namespace ModelParameters$ {
1365
- /** @deprecated use `ModelParameters$inboundSchema` instead. */
1366
- export const inboundSchema = ModelParameters$inboundSchema;
1367
- /** @deprecated use `ModelParameters$outboundSchema` instead. */
1368
- export const outboundSchema = ModelParameters$outboundSchema;
1369
- /** @deprecated use `ModelParameters$Outbound` instead. */
1370
- export type Outbound = ModelParameters$Outbound;
1415
+ export namespace CreatePromptModelParameters$ {
1416
+ /** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
1417
+ export const inboundSchema = CreatePromptModelParameters$inboundSchema;
1418
+ /** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
1419
+ export const outboundSchema = CreatePromptModelParameters$outboundSchema;
1420
+ /** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
1421
+ export type Outbound = CreatePromptModelParameters$Outbound;
1371
1422
  }
1372
1423
 
1373
- export function modelParametersToJSON(
1374
- modelParameters: ModelParameters,
1424
+ export function createPromptModelParametersToJSON(
1425
+ createPromptModelParameters: CreatePromptModelParameters,
1375
1426
  ): string {
1376
- return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
1427
+ return JSON.stringify(
1428
+ CreatePromptModelParameters$outboundSchema.parse(
1429
+ createPromptModelParameters,
1430
+ ),
1431
+ );
1377
1432
  }
1378
1433
 
1379
- export function modelParametersFromJSON(
1434
+ export function createPromptModelParametersFromJSON(
1380
1435
  jsonString: string,
1381
- ): SafeParseResult<ModelParameters, SDKValidationError> {
1436
+ ): SafeParseResult<CreatePromptModelParameters, SDKValidationError> {
1382
1437
  return safeParse(
1383
1438
  jsonString,
1384
- (x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
1385
- `Failed to parse 'ModelParameters' from JSON`,
1439
+ (x) => CreatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1440
+ `Failed to parse 'CreatePromptModelParameters' from JSON`,
1386
1441
  );
1387
1442
  }
1388
1443
 
1389
1444
  /** @internal */
1390
- export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
1391
- .nativeEnum(Provider);
1445
+ export const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<
1446
+ typeof CreatePromptProvider
1447
+ > = z.nativeEnum(CreatePromptProvider);
1392
1448
 
1393
1449
  /** @internal */
1394
- export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
1395
- Provider$inboundSchema;
1450
+ export const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<
1451
+ typeof CreatePromptProvider
1452
+ > = CreatePromptProvider$inboundSchema;
1396
1453
 
1397
1454
  /**
1398
1455
  * @internal
1399
1456
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1400
1457
  */
1401
- export namespace Provider$ {
1402
- /** @deprecated use `Provider$inboundSchema` instead. */
1403
- export const inboundSchema = Provider$inboundSchema;
1404
- /** @deprecated use `Provider$outboundSchema` instead. */
1405
- export const outboundSchema = Provider$outboundSchema;
1458
+ export namespace CreatePromptProvider$ {
1459
+ /** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
1460
+ export const inboundSchema = CreatePromptProvider$inboundSchema;
1461
+ /** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
1462
+ export const outboundSchema = CreatePromptProvider$outboundSchema;
1406
1463
  }
1407
1464
 
1408
1465
  /** @internal */
@@ -1981,16 +2038,17 @@ export function createPromptMessagesFromJSON(
1981
2038
  }
1982
2039
 
1983
2040
  /** @internal */
1984
- export const PromptConfig$inboundSchema: z.ZodType<
1985
- PromptConfig,
2041
+ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
2042
+ CreatePromptPromptConfig,
1986
2043
  z.ZodTypeDef,
1987
2044
  unknown
1988
2045
  > = z.object({
1989
2046
  stream: z.boolean().optional(),
1990
2047
  model: z.string().optional(),
1991
- model_type: ModelType$inboundSchema.optional(),
1992
- model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
1993
- provider: Provider$inboundSchema.optional(),
2048
+ model_type: CreatePromptModelType$inboundSchema.optional(),
2049
+ model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
2050
+ .optional(),
2051
+ provider: CreatePromptProvider$inboundSchema.optional(),
1994
2052
  version: z.string().optional(),
1995
2053
  messages: z.array(z.lazy(() => CreatePromptMessages$inboundSchema)),
1996
2054
  }).transform((v) => {
@@ -2001,27 +2059,28 @@ export const PromptConfig$inboundSchema: z.ZodType<
2001
2059
  });
2002
2060
 
2003
2061
  /** @internal */
2004
- export type PromptConfig$Outbound = {
2062
+ export type CreatePromptPromptConfig$Outbound = {
2005
2063
  stream?: boolean | undefined;
2006
2064
  model?: string | undefined;
2007
2065
  model_type?: string | undefined;
2008
- model_parameters?: ModelParameters$Outbound | undefined;
2066
+ model_parameters?: CreatePromptModelParameters$Outbound | undefined;
2009
2067
  provider?: string | undefined;
2010
2068
  version?: string | undefined;
2011
2069
  messages: Array<CreatePromptMessages$Outbound>;
2012
2070
  };
2013
2071
 
2014
2072
  /** @internal */
2015
- export const PromptConfig$outboundSchema: z.ZodType<
2016
- PromptConfig$Outbound,
2073
+ export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
2074
+ CreatePromptPromptConfig$Outbound,
2017
2075
  z.ZodTypeDef,
2018
- PromptConfig
2076
+ CreatePromptPromptConfig
2019
2077
  > = z.object({
2020
2078
  stream: z.boolean().optional(),
2021
2079
  model: z.string().optional(),
2022
- modelType: ModelType$outboundSchema.optional(),
2023
- modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
2024
- provider: Provider$outboundSchema.optional(),
2080
+ modelType: CreatePromptModelType$outboundSchema.optional(),
2081
+ modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
2082
+ .optional(),
2083
+ provider: CreatePromptProvider$outboundSchema.optional(),
2025
2084
  version: z.string().optional(),
2026
2085
  messages: z.array(z.lazy(() => CreatePromptMessages$outboundSchema)),
2027
2086
  }).transform((v) => {
@@ -2035,65 +2094,73 @@ export const PromptConfig$outboundSchema: z.ZodType<
2035
2094
  * @internal
2036
2095
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2037
2096
  */
2038
- export namespace PromptConfig$ {
2039
- /** @deprecated use `PromptConfig$inboundSchema` instead. */
2040
- export const inboundSchema = PromptConfig$inboundSchema;
2041
- /** @deprecated use `PromptConfig$outboundSchema` instead. */
2042
- export const outboundSchema = PromptConfig$outboundSchema;
2043
- /** @deprecated use `PromptConfig$Outbound` instead. */
2044
- export type Outbound = PromptConfig$Outbound;
2097
+ export namespace CreatePromptPromptConfig$ {
2098
+ /** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
2099
+ export const inboundSchema = CreatePromptPromptConfig$inboundSchema;
2100
+ /** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
2101
+ export const outboundSchema = CreatePromptPromptConfig$outboundSchema;
2102
+ /** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
2103
+ export type Outbound = CreatePromptPromptConfig$Outbound;
2045
2104
  }
2046
2105
 
2047
- export function promptConfigToJSON(promptConfig: PromptConfig): string {
2048
- return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
2106
+ export function createPromptPromptConfigToJSON(
2107
+ createPromptPromptConfig: CreatePromptPromptConfig,
2108
+ ): string {
2109
+ return JSON.stringify(
2110
+ CreatePromptPromptConfig$outboundSchema.parse(createPromptPromptConfig),
2111
+ );
2049
2112
  }
2050
2113
 
2051
- export function promptConfigFromJSON(
2114
+ export function createPromptPromptConfigFromJSON(
2052
2115
  jsonString: string,
2053
- ): SafeParseResult<PromptConfig, SDKValidationError> {
2116
+ ): SafeParseResult<CreatePromptPromptConfig, SDKValidationError> {
2054
2117
  return safeParse(
2055
2118
  jsonString,
2056
- (x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
2057
- `Failed to parse 'PromptConfig' from JSON`,
2119
+ (x) => CreatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
2120
+ `Failed to parse 'CreatePromptPromptConfig' from JSON`,
2058
2121
  );
2059
2122
  }
2060
2123
 
2061
2124
  /** @internal */
2062
- export const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases> = z
2063
- .nativeEnum(UseCases);
2125
+ export const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<
2126
+ typeof CreatePromptUseCases
2127
+ > = z.nativeEnum(CreatePromptUseCases);
2064
2128
 
2065
2129
  /** @internal */
2066
- export const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases> =
2067
- UseCases$inboundSchema;
2130
+ export const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<
2131
+ typeof CreatePromptUseCases
2132
+ > = CreatePromptUseCases$inboundSchema;
2068
2133
 
2069
2134
  /**
2070
2135
  * @internal
2071
2136
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2072
2137
  */
2073
- export namespace UseCases$ {
2074
- /** @deprecated use `UseCases$inboundSchema` instead. */
2075
- export const inboundSchema = UseCases$inboundSchema;
2076
- /** @deprecated use `UseCases$outboundSchema` instead. */
2077
- export const outboundSchema = UseCases$outboundSchema;
2138
+ export namespace CreatePromptUseCases$ {
2139
+ /** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
2140
+ export const inboundSchema = CreatePromptUseCases$inboundSchema;
2141
+ /** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
2142
+ export const outboundSchema = CreatePromptUseCases$outboundSchema;
2078
2143
  }
2079
2144
 
2080
2145
  /** @internal */
2081
- export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
2082
- .nativeEnum(Language);
2146
+ export const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<
2147
+ typeof CreatePromptLanguage
2148
+ > = z.nativeEnum(CreatePromptLanguage);
2083
2149
 
2084
2150
  /** @internal */
2085
- export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
2086
- Language$inboundSchema;
2151
+ export const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<
2152
+ typeof CreatePromptLanguage
2153
+ > = CreatePromptLanguage$inboundSchema;
2087
2154
 
2088
2155
  /**
2089
2156
  * @internal
2090
2157
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2091
2158
  */
2092
- export namespace Language$ {
2093
- /** @deprecated use `Language$inboundSchema` instead. */
2094
- export const inboundSchema = Language$inboundSchema;
2095
- /** @deprecated use `Language$outboundSchema` instead. */
2096
- export const outboundSchema = Language$outboundSchema;
2159
+ export namespace CreatePromptLanguage$ {
2160
+ /** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
2161
+ export const inboundSchema = CreatePromptLanguage$inboundSchema;
2162
+ /** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
2163
+ export const outboundSchema = CreatePromptLanguage$outboundSchema;
2097
2164
  }
2098
2165
 
2099
2166
  /** @internal */
@@ -2102,8 +2169,8 @@ export const CreatePromptMetadata$inboundSchema: z.ZodType<
2102
2169
  z.ZodTypeDef,
2103
2170
  unknown
2104
2171
  > = z.object({
2105
- use_cases: z.array(UseCases$inboundSchema).optional(),
2106
- language: Language$inboundSchema.optional(),
2172
+ use_cases: z.array(CreatePromptUseCases$inboundSchema).optional(),
2173
+ language: CreatePromptLanguage$inboundSchema.optional(),
2107
2174
  }).transform((v) => {
2108
2175
  return remap$(v, {
2109
2176
  "use_cases": "useCases",
@@ -2122,8 +2189,8 @@ export const CreatePromptMetadata$outboundSchema: z.ZodType<
2122
2189
  z.ZodTypeDef,
2123
2190
  CreatePromptMetadata
2124
2191
  > = z.object({
2125
- useCases: z.array(UseCases$outboundSchema).optional(),
2126
- language: Language$outboundSchema.optional(),
2192
+ useCases: z.array(CreatePromptUseCases$outboundSchema).optional(),
2193
+ language: CreatePromptLanguage$outboundSchema.optional(),
2127
2194
  }).transform((v) => {
2128
2195
  return remap$(v, {
2129
2196
  useCases: "use_cases",
@@ -2169,7 +2236,7 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
2169
2236
  > = z.object({
2170
2237
  display_name: z.string(),
2171
2238
  description: z.nullable(z.string()).optional(),
2172
- prompt_config: z.lazy(() => PromptConfig$inboundSchema),
2239
+ prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema),
2173
2240
  metadata: z.lazy(() => CreatePromptMetadata$inboundSchema).optional(),
2174
2241
  path: z.string(),
2175
2242
  }).transform((v) => {
@@ -2183,7 +2250,7 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
2183
2250
  export type CreatePromptRequestBody$Outbound = {
2184
2251
  display_name: string;
2185
2252
  description?: string | null | undefined;
2186
- prompt_config: PromptConfig$Outbound;
2253
+ prompt_config: CreatePromptPromptConfig$Outbound;
2187
2254
  metadata?: CreatePromptMetadata$Outbound | undefined;
2188
2255
  path: string;
2189
2256
  };
@@ -2196,7 +2263,7 @@ export const CreatePromptRequestBody$outboundSchema: z.ZodType<
2196
2263
  > = z.object({
2197
2264
  displayName: z.string(),
2198
2265
  description: z.nullable(z.string()).optional(),
2199
- promptConfig: z.lazy(() => PromptConfig$outboundSchema),
2266
+ promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema),
2200
2267
  metadata: z.lazy(() => CreatePromptMetadata$outboundSchema).optional(),
2201
2268
  path: z.string(),
2202
2269
  }).transform((v) => {
@@ -2259,169 +2326,170 @@ export namespace CreatePromptPromptsType$ {
2259
2326
  }
2260
2327
 
2261
2328
  /** @internal */
2262
- export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
2263
- typeof CreatePromptModelType
2264
- > = z.nativeEnum(CreatePromptModelType);
2329
+ export const CreatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<
2330
+ typeof CreatePromptPromptsModelType
2331
+ > = z.nativeEnum(CreatePromptPromptsModelType);
2265
2332
 
2266
2333
  /** @internal */
2267
- export const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<
2268
- typeof CreatePromptModelType
2269
- > = CreatePromptModelType$inboundSchema;
2334
+ export const CreatePromptPromptsModelType$outboundSchema: z.ZodNativeEnum<
2335
+ typeof CreatePromptPromptsModelType
2336
+ > = CreatePromptPromptsModelType$inboundSchema;
2270
2337
 
2271
2338
  /**
2272
2339
  * @internal
2273
2340
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2274
2341
  */
2275
- export namespace CreatePromptModelType$ {
2276
- /** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
2277
- export const inboundSchema = CreatePromptModelType$inboundSchema;
2278
- /** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
2279
- export const outboundSchema = CreatePromptModelType$outboundSchema;
2342
+ export namespace CreatePromptPromptsModelType$ {
2343
+ /** @deprecated use `CreatePromptPromptsModelType$inboundSchema` instead. */
2344
+ export const inboundSchema = CreatePromptPromptsModelType$inboundSchema;
2345
+ /** @deprecated use `CreatePromptPromptsModelType$outboundSchema` instead. */
2346
+ export const outboundSchema = CreatePromptPromptsModelType$outboundSchema;
2280
2347
  }
2281
2348
 
2282
2349
  /** @internal */
2283
- export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
2284
- typeof CreatePromptFormat
2285
- > = z.nativeEnum(CreatePromptFormat);
2350
+ export const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2351
+ typeof CreatePromptPromptsFormat
2352
+ > = z.nativeEnum(CreatePromptPromptsFormat);
2286
2353
 
2287
2354
  /** @internal */
2288
- export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
2289
- typeof CreatePromptFormat
2290
- > = CreatePromptFormat$inboundSchema;
2355
+ export const CreatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2356
+ typeof CreatePromptPromptsFormat
2357
+ > = CreatePromptPromptsFormat$inboundSchema;
2291
2358
 
2292
2359
  /**
2293
2360
  * @internal
2294
2361
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2295
2362
  */
2296
- export namespace CreatePromptFormat$ {
2297
- /** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
2298
- export const inboundSchema = CreatePromptFormat$inboundSchema;
2299
- /** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
2300
- export const outboundSchema = CreatePromptFormat$outboundSchema;
2363
+ export namespace CreatePromptPromptsFormat$ {
2364
+ /** @deprecated use `CreatePromptPromptsFormat$inboundSchema` instead. */
2365
+ export const inboundSchema = CreatePromptPromptsFormat$inboundSchema;
2366
+ /** @deprecated use `CreatePromptPromptsFormat$outboundSchema` instead. */
2367
+ export const outboundSchema = CreatePromptPromptsFormat$outboundSchema;
2301
2368
  }
2302
2369
 
2303
2370
  /** @internal */
2304
- export const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<
2305
- typeof CreatePromptQuality
2306
- > = z.nativeEnum(CreatePromptQuality);
2371
+ export const CreatePromptPromptsQuality$inboundSchema: z.ZodNativeEnum<
2372
+ typeof CreatePromptPromptsQuality
2373
+ > = z.nativeEnum(CreatePromptPromptsQuality);
2307
2374
 
2308
2375
  /** @internal */
2309
- export const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<
2310
- typeof CreatePromptQuality
2311
- > = CreatePromptQuality$inboundSchema;
2376
+ export const CreatePromptPromptsQuality$outboundSchema: z.ZodNativeEnum<
2377
+ typeof CreatePromptPromptsQuality
2378
+ > = CreatePromptPromptsQuality$inboundSchema;
2312
2379
 
2313
2380
  /**
2314
2381
  * @internal
2315
2382
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2316
2383
  */
2317
- export namespace CreatePromptQuality$ {
2318
- /** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
2319
- export const inboundSchema = CreatePromptQuality$inboundSchema;
2320
- /** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
2321
- export const outboundSchema = CreatePromptQuality$outboundSchema;
2384
+ export namespace CreatePromptPromptsQuality$ {
2385
+ /** @deprecated use `CreatePromptPromptsQuality$inboundSchema` instead. */
2386
+ export const inboundSchema = CreatePromptPromptsQuality$inboundSchema;
2387
+ /** @deprecated use `CreatePromptPromptsQuality$outboundSchema` instead. */
2388
+ export const outboundSchema = CreatePromptPromptsQuality$outboundSchema;
2322
2389
  }
2323
2390
 
2324
2391
  /** @internal */
2325
- export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2326
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2327
- .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
2392
+ export const CreatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2393
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> = z
2394
+ .nativeEnum(CreatePromptResponseFormatPromptsResponse200Type);
2328
2395
 
2329
2396
  /** @internal */
2330
- export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2331
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2332
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2397
+ export const CreatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2398
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> =
2399
+ CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2333
2400
 
2334
2401
  /**
2335
2402
  * @internal
2336
2403
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2337
2404
  */
2338
- export namespace CreatePromptResponseFormatPromptsResponseType$ {
2339
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2405
+ export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
2406
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2340
2407
  export const inboundSchema =
2341
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2342
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2408
+ CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2409
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2343
2410
  export const outboundSchema =
2344
- CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2411
+ CreatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2345
2412
  }
2346
2413
 
2347
2414
  /** @internal */
2348
- export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2349
- CreatePromptResponseFormat2,
2415
+ export const CreatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2416
+ CreatePromptResponseFormatPrompts2,
2350
2417
  z.ZodTypeDef,
2351
2418
  unknown
2352
2419
  > = z.object({
2353
- type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2420
+ type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2354
2421
  });
2355
2422
 
2356
2423
  /** @internal */
2357
- export type CreatePromptResponseFormat2$Outbound = {
2424
+ export type CreatePromptResponseFormatPrompts2$Outbound = {
2358
2425
  type: string;
2359
2426
  };
2360
2427
 
2361
2428
  /** @internal */
2362
- export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
2363
- CreatePromptResponseFormat2$Outbound,
2429
+ export const CreatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2430
+ CreatePromptResponseFormatPrompts2$Outbound,
2364
2431
  z.ZodTypeDef,
2365
- CreatePromptResponseFormat2
2432
+ CreatePromptResponseFormatPrompts2
2366
2433
  > = z.object({
2367
- type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2434
+ type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2368
2435
  });
2369
2436
 
2370
2437
  /**
2371
2438
  * @internal
2372
2439
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2373
2440
  */
2374
- export namespace CreatePromptResponseFormat2$ {
2375
- /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
2376
- export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
2377
- /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
2378
- export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
2379
- /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
2380
- export type Outbound = CreatePromptResponseFormat2$Outbound;
2441
+ export namespace CreatePromptResponseFormatPrompts2$ {
2442
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$inboundSchema` instead. */
2443
+ export const inboundSchema = CreatePromptResponseFormatPrompts2$inboundSchema;
2444
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$outboundSchema` instead. */
2445
+ export const outboundSchema =
2446
+ CreatePromptResponseFormatPrompts2$outboundSchema;
2447
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$Outbound` instead. */
2448
+ export type Outbound = CreatePromptResponseFormatPrompts2$Outbound;
2381
2449
  }
2382
2450
 
2383
- export function createPromptResponseFormat2ToJSON(
2384
- createPromptResponseFormat2: CreatePromptResponseFormat2,
2451
+ export function createPromptResponseFormatPrompts2ToJSON(
2452
+ createPromptResponseFormatPrompts2: CreatePromptResponseFormatPrompts2,
2385
2453
  ): string {
2386
2454
  return JSON.stringify(
2387
- CreatePromptResponseFormat2$outboundSchema.parse(
2388
- createPromptResponseFormat2,
2455
+ CreatePromptResponseFormatPrompts2$outboundSchema.parse(
2456
+ createPromptResponseFormatPrompts2,
2389
2457
  ),
2390
2458
  );
2391
2459
  }
2392
2460
 
2393
- export function createPromptResponseFormat2FromJSON(
2461
+ export function createPromptResponseFormatPrompts2FromJSON(
2394
2462
  jsonString: string,
2395
- ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
2463
+ ): SafeParseResult<CreatePromptResponseFormatPrompts2, SDKValidationError> {
2396
2464
  return safeParse(
2397
2465
  jsonString,
2398
- (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2399
- `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
2466
+ (x) =>
2467
+ CreatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
2468
+ `Failed to parse 'CreatePromptResponseFormatPrompts2' from JSON`,
2400
2469
  );
2401
2470
  }
2402
2471
 
2403
2472
  /** @internal */
2404
- export const CreatePromptResponseFormatPromptsType$inboundSchema:
2405
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
2406
- CreatePromptResponseFormatPromptsType,
2407
- );
2473
+ export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2474
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2475
+ .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
2408
2476
 
2409
2477
  /** @internal */
2410
- export const CreatePromptResponseFormatPromptsType$outboundSchema:
2411
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
2412
- CreatePromptResponseFormatPromptsType$inboundSchema;
2478
+ export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2479
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2480
+ CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2413
2481
 
2414
2482
  /**
2415
2483
  * @internal
2416
2484
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2417
2485
  */
2418
- export namespace CreatePromptResponseFormatPromptsType$ {
2419
- /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
2486
+ export namespace CreatePromptResponseFormatPromptsResponseType$ {
2487
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2420
2488
  export const inboundSchema =
2421
- CreatePromptResponseFormatPromptsType$inboundSchema;
2422
- /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
2489
+ CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2490
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2423
2491
  export const outboundSchema =
2424
- CreatePromptResponseFormatPromptsType$outboundSchema;
2492
+ CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2425
2493
  }
2426
2494
 
2427
2495
  /** @internal */
@@ -2490,12 +2558,12 @@ export function createPromptResponseFormatJsonSchemaFromJSON(
2490
2558
  }
2491
2559
 
2492
2560
  /** @internal */
2493
- export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2494
- CreatePromptResponseFormat1,
2561
+ export const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2562
+ CreatePromptResponseFormatPrompts1,
2495
2563
  z.ZodTypeDef,
2496
2564
  unknown
2497
2565
  > = z.object({
2498
- type: CreatePromptResponseFormatPromptsType$inboundSchema,
2566
+ type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2499
2567
  json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
2500
2568
  }).transform((v) => {
2501
2569
  return remap$(v, {
@@ -2504,18 +2572,18 @@ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2504
2572
  });
2505
2573
 
2506
2574
  /** @internal */
2507
- export type CreatePromptResponseFormat1$Outbound = {
2575
+ export type CreatePromptResponseFormatPrompts1$Outbound = {
2508
2576
  type: string;
2509
2577
  json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
2510
2578
  };
2511
2579
 
2512
2580
  /** @internal */
2513
- export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2514
- CreatePromptResponseFormat1$Outbound,
2581
+ export const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2582
+ CreatePromptResponseFormatPrompts1$Outbound,
2515
2583
  z.ZodTypeDef,
2516
- CreatePromptResponseFormat1
2584
+ CreatePromptResponseFormatPrompts1
2517
2585
  > = z.object({
2518
- type: CreatePromptResponseFormatPromptsType$outboundSchema,
2586
+ type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2519
2587
  jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
2520
2588
  }).transform((v) => {
2521
2589
  return remap$(v, {
@@ -2527,157 +2595,166 @@ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2527
2595
  * @internal
2528
2596
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2529
2597
  */
2530
- export namespace CreatePromptResponseFormat1$ {
2531
- /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
2532
- export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
2533
- /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
2534
- export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
2535
- /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
2536
- export type Outbound = CreatePromptResponseFormat1$Outbound;
2598
+ export namespace CreatePromptResponseFormatPrompts1$ {
2599
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$inboundSchema` instead. */
2600
+ export const inboundSchema = CreatePromptResponseFormatPrompts1$inboundSchema;
2601
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$outboundSchema` instead. */
2602
+ export const outboundSchema =
2603
+ CreatePromptResponseFormatPrompts1$outboundSchema;
2604
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$Outbound` instead. */
2605
+ export type Outbound = CreatePromptResponseFormatPrompts1$Outbound;
2537
2606
  }
2538
2607
 
2539
- export function createPromptResponseFormat1ToJSON(
2540
- createPromptResponseFormat1: CreatePromptResponseFormat1,
2608
+ export function createPromptResponseFormatPrompts1ToJSON(
2609
+ createPromptResponseFormatPrompts1: CreatePromptResponseFormatPrompts1,
2541
2610
  ): string {
2542
2611
  return JSON.stringify(
2543
- CreatePromptResponseFormat1$outboundSchema.parse(
2544
- createPromptResponseFormat1,
2612
+ CreatePromptResponseFormatPrompts1$outboundSchema.parse(
2613
+ createPromptResponseFormatPrompts1,
2545
2614
  ),
2546
2615
  );
2547
2616
  }
2548
2617
 
2549
- export function createPromptResponseFormat1FromJSON(
2618
+ export function createPromptResponseFormatPrompts1FromJSON(
2550
2619
  jsonString: string,
2551
- ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
2620
+ ): SafeParseResult<CreatePromptResponseFormatPrompts1, SDKValidationError> {
2552
2621
  return safeParse(
2553
2622
  jsonString,
2554
- (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
2555
- `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
2623
+ (x) =>
2624
+ CreatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
2625
+ `Failed to parse 'CreatePromptResponseFormatPrompts1' from JSON`,
2556
2626
  );
2557
2627
  }
2558
2628
 
2559
2629
  /** @internal */
2560
- export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
2561
- CreatePromptResponseFormat,
2630
+ export const CreatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
2631
+ CreatePromptPromptsResponseFormat,
2562
2632
  z.ZodTypeDef,
2563
2633
  unknown
2564
2634
  > = z.union([
2565
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2566
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2635
+ z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
2636
+ z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
2567
2637
  ]);
2568
2638
 
2569
2639
  /** @internal */
2570
- export type CreatePromptResponseFormat$Outbound =
2571
- | CreatePromptResponseFormat2$Outbound
2572
- | CreatePromptResponseFormat1$Outbound;
2640
+ export type CreatePromptPromptsResponseFormat$Outbound =
2641
+ | CreatePromptResponseFormatPrompts2$Outbound
2642
+ | CreatePromptResponseFormatPrompts1$Outbound;
2573
2643
 
2574
2644
  /** @internal */
2575
- export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
2576
- CreatePromptResponseFormat$Outbound,
2645
+ export const CreatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
2646
+ CreatePromptPromptsResponseFormat$Outbound,
2577
2647
  z.ZodTypeDef,
2578
- CreatePromptResponseFormat
2648
+ CreatePromptPromptsResponseFormat
2579
2649
  > = z.union([
2580
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2581
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2650
+ z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
2651
+ z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
2582
2652
  ]);
2583
2653
 
2584
2654
  /**
2585
2655
  * @internal
2586
2656
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2587
2657
  */
2588
- export namespace CreatePromptResponseFormat$ {
2589
- /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
2590
- export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
2591
- /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
2592
- export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
2593
- /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
2594
- export type Outbound = CreatePromptResponseFormat$Outbound;
2658
+ export namespace CreatePromptPromptsResponseFormat$ {
2659
+ /** @deprecated use `CreatePromptPromptsResponseFormat$inboundSchema` instead. */
2660
+ export const inboundSchema = CreatePromptPromptsResponseFormat$inboundSchema;
2661
+ /** @deprecated use `CreatePromptPromptsResponseFormat$outboundSchema` instead. */
2662
+ export const outboundSchema =
2663
+ CreatePromptPromptsResponseFormat$outboundSchema;
2664
+ /** @deprecated use `CreatePromptPromptsResponseFormat$Outbound` instead. */
2665
+ export type Outbound = CreatePromptPromptsResponseFormat$Outbound;
2595
2666
  }
2596
2667
 
2597
- export function createPromptResponseFormatToJSON(
2598
- createPromptResponseFormat: CreatePromptResponseFormat,
2668
+ export function createPromptPromptsResponseFormatToJSON(
2669
+ createPromptPromptsResponseFormat: CreatePromptPromptsResponseFormat,
2599
2670
  ): string {
2600
2671
  return JSON.stringify(
2601
- CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
2672
+ CreatePromptPromptsResponseFormat$outboundSchema.parse(
2673
+ createPromptPromptsResponseFormat,
2674
+ ),
2602
2675
  );
2603
2676
  }
2604
2677
 
2605
- export function createPromptResponseFormatFromJSON(
2678
+ export function createPromptPromptsResponseFormatFromJSON(
2606
2679
  jsonString: string,
2607
- ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
2680
+ ): SafeParseResult<CreatePromptPromptsResponseFormat, SDKValidationError> {
2608
2681
  return safeParse(
2609
2682
  jsonString,
2610
- (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
2611
- `Failed to parse 'CreatePromptResponseFormat' from JSON`,
2683
+ (x) => CreatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2684
+ `Failed to parse 'CreatePromptPromptsResponseFormat' from JSON`,
2612
2685
  );
2613
2686
  }
2614
2687
 
2615
2688
  /** @internal */
2616
- export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2617
- typeof CreatePromptPhotoRealVersion
2618
- > = z.nativeEnum(CreatePromptPhotoRealVersion);
2689
+ export const CreatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2690
+ typeof CreatePromptPromptsPhotoRealVersion
2691
+ > = z.nativeEnum(CreatePromptPromptsPhotoRealVersion);
2619
2692
 
2620
2693
  /** @internal */
2621
- export const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
2622
- typeof CreatePromptPhotoRealVersion
2623
- > = CreatePromptPhotoRealVersion$inboundSchema;
2694
+ export const CreatePromptPromptsPhotoRealVersion$outboundSchema:
2695
+ z.ZodNativeEnum<typeof CreatePromptPromptsPhotoRealVersion> =
2696
+ CreatePromptPromptsPhotoRealVersion$inboundSchema;
2624
2697
 
2625
2698
  /**
2626
2699
  * @internal
2627
2700
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2628
2701
  */
2629
- export namespace CreatePromptPhotoRealVersion$ {
2630
- /** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
2631
- export const inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
2632
- /** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
2633
- export const outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
2702
+ export namespace CreatePromptPromptsPhotoRealVersion$ {
2703
+ /** @deprecated use `CreatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
2704
+ export const inboundSchema =
2705
+ CreatePromptPromptsPhotoRealVersion$inboundSchema;
2706
+ /** @deprecated use `CreatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
2707
+ export const outboundSchema =
2708
+ CreatePromptPromptsPhotoRealVersion$outboundSchema;
2634
2709
  }
2635
2710
 
2636
2711
  /** @internal */
2637
- export const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
2638
- typeof CreatePromptEncodingFormat
2639
- > = z.nativeEnum(CreatePromptEncodingFormat);
2712
+ export const CreatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
2713
+ typeof CreatePromptPromptsEncodingFormat
2714
+ > = z.nativeEnum(CreatePromptPromptsEncodingFormat);
2640
2715
 
2641
2716
  /** @internal */
2642
- export const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
2643
- typeof CreatePromptEncodingFormat
2644
- > = CreatePromptEncodingFormat$inboundSchema;
2717
+ export const CreatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
2718
+ typeof CreatePromptPromptsEncodingFormat
2719
+ > = CreatePromptPromptsEncodingFormat$inboundSchema;
2645
2720
 
2646
2721
  /**
2647
2722
  * @internal
2648
2723
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2649
2724
  */
2650
- export namespace CreatePromptEncodingFormat$ {
2651
- /** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
2652
- export const inboundSchema = CreatePromptEncodingFormat$inboundSchema;
2653
- /** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
2654
- export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
2725
+ export namespace CreatePromptPromptsEncodingFormat$ {
2726
+ /** @deprecated use `CreatePromptPromptsEncodingFormat$inboundSchema` instead. */
2727
+ export const inboundSchema = CreatePromptPromptsEncodingFormat$inboundSchema;
2728
+ /** @deprecated use `CreatePromptPromptsEncodingFormat$outboundSchema` instead. */
2729
+ export const outboundSchema =
2730
+ CreatePromptPromptsEncodingFormat$outboundSchema;
2655
2731
  }
2656
2732
 
2657
2733
  /** @internal */
2658
- export const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
2659
- typeof CreatePromptReasoningEffort
2660
- > = z.nativeEnum(CreatePromptReasoningEffort);
2734
+ export const CreatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2735
+ typeof CreatePromptPromptsReasoningEffort
2736
+ > = z.nativeEnum(CreatePromptPromptsReasoningEffort);
2661
2737
 
2662
2738
  /** @internal */
2663
- export const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
2664
- typeof CreatePromptReasoningEffort
2665
- > = CreatePromptReasoningEffort$inboundSchema;
2739
+ export const CreatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
2740
+ typeof CreatePromptPromptsReasoningEffort
2741
+ > = CreatePromptPromptsReasoningEffort$inboundSchema;
2666
2742
 
2667
2743
  /**
2668
2744
  * @internal
2669
2745
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2670
2746
  */
2671
- export namespace CreatePromptReasoningEffort$ {
2672
- /** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
2673
- export const inboundSchema = CreatePromptReasoningEffort$inboundSchema;
2674
- /** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
2675
- export const outboundSchema = CreatePromptReasoningEffort$outboundSchema;
2747
+ export namespace CreatePromptPromptsReasoningEffort$ {
2748
+ /** @deprecated use `CreatePromptPromptsReasoningEffort$inboundSchema` instead. */
2749
+ export const inboundSchema = CreatePromptPromptsReasoningEffort$inboundSchema;
2750
+ /** @deprecated use `CreatePromptPromptsReasoningEffort$outboundSchema` instead. */
2751
+ export const outboundSchema =
2752
+ CreatePromptPromptsReasoningEffort$outboundSchema;
2676
2753
  }
2677
2754
 
2678
2755
  /** @internal */
2679
- export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2680
- CreatePromptModelParameters,
2756
+ export const CreatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2757
+ CreatePromptPromptsModelParameters,
2681
2758
  z.ZodTypeDef,
2682
2759
  unknown
2683
2760
  > = z.object({
@@ -2689,19 +2766,20 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2689
2766
  presencePenalty: z.number().optional(),
2690
2767
  numImages: z.number().optional(),
2691
2768
  seed: z.number().optional(),
2692
- format: CreatePromptFormat$inboundSchema.optional(),
2769
+ format: CreatePromptPromptsFormat$inboundSchema.optional(),
2693
2770
  dimensions: z.string().optional(),
2694
- quality: CreatePromptQuality$inboundSchema.optional(),
2771
+ quality: CreatePromptPromptsQuality$inboundSchema.optional(),
2695
2772
  style: z.string().optional(),
2696
2773
  responseFormat: z.nullable(
2697
2774
  z.union([
2698
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2699
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2775
+ z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
2776
+ z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
2700
2777
  ]),
2701
2778
  ).optional(),
2702
- photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
2703
- encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
2704
- reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
2779
+ photoRealVersion: CreatePromptPromptsPhotoRealVersion$inboundSchema
2780
+ .optional(),
2781
+ encoding_format: CreatePromptPromptsEncodingFormat$inboundSchema.optional(),
2782
+ reasoningEffort: CreatePromptPromptsReasoningEffort$inboundSchema.optional(),
2705
2783
  budgetTokens: z.number().optional(),
2706
2784
  }).transform((v) => {
2707
2785
  return remap$(v, {
@@ -2710,7 +2788,7 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2710
2788
  });
2711
2789
 
2712
2790
  /** @internal */
2713
- export type CreatePromptModelParameters$Outbound = {
2791
+ export type CreatePromptPromptsModelParameters$Outbound = {
2714
2792
  temperature?: number | undefined;
2715
2793
  maxTokens?: number | undefined;
2716
2794
  topK?: number | undefined;
@@ -2724,8 +2802,8 @@ export type CreatePromptModelParameters$Outbound = {
2724
2802
  quality?: string | undefined;
2725
2803
  style?: string | undefined;
2726
2804
  responseFormat?:
2727
- | CreatePromptResponseFormat2$Outbound
2728
- | CreatePromptResponseFormat1$Outbound
2805
+ | CreatePromptResponseFormatPrompts2$Outbound
2806
+ | CreatePromptResponseFormatPrompts1$Outbound
2729
2807
  | null
2730
2808
  | undefined;
2731
2809
  photoRealVersion?: string | undefined;
@@ -2735,10 +2813,10 @@ export type CreatePromptModelParameters$Outbound = {
2735
2813
  };
2736
2814
 
2737
2815
  /** @internal */
2738
- export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2739
- CreatePromptModelParameters$Outbound,
2816
+ export const CreatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2817
+ CreatePromptPromptsModelParameters$Outbound,
2740
2818
  z.ZodTypeDef,
2741
- CreatePromptModelParameters
2819
+ CreatePromptPromptsModelParameters
2742
2820
  > = z.object({
2743
2821
  temperature: z.number().optional(),
2744
2822
  maxTokens: z.number().optional(),
@@ -2748,19 +2826,20 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2748
2826
  presencePenalty: z.number().optional(),
2749
2827
  numImages: z.number().optional(),
2750
2828
  seed: z.number().optional(),
2751
- format: CreatePromptFormat$outboundSchema.optional(),
2829
+ format: CreatePromptPromptsFormat$outboundSchema.optional(),
2752
2830
  dimensions: z.string().optional(),
2753
- quality: CreatePromptQuality$outboundSchema.optional(),
2831
+ quality: CreatePromptPromptsQuality$outboundSchema.optional(),
2754
2832
  style: z.string().optional(),
2755
2833
  responseFormat: z.nullable(
2756
2834
  z.union([
2757
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2758
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2835
+ z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
2836
+ z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
2759
2837
  ]),
2760
2838
  ).optional(),
2761
- photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
2762
- encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
2763
- reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
2839
+ photoRealVersion: CreatePromptPromptsPhotoRealVersion$outboundSchema
2840
+ .optional(),
2841
+ encodingFormat: CreatePromptPromptsEncodingFormat$outboundSchema.optional(),
2842
+ reasoningEffort: CreatePromptPromptsReasoningEffort$outboundSchema.optional(),
2764
2843
  budgetTokens: z.number().optional(),
2765
2844
  }).transform((v) => {
2766
2845
  return remap$(v, {
@@ -2772,54 +2851,56 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2772
2851
  * @internal
2773
2852
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2774
2853
  */
2775
- export namespace CreatePromptModelParameters$ {
2776
- /** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
2777
- export const inboundSchema = CreatePromptModelParameters$inboundSchema;
2778
- /** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
2779
- export const outboundSchema = CreatePromptModelParameters$outboundSchema;
2780
- /** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
2781
- export type Outbound = CreatePromptModelParameters$Outbound;
2854
+ export namespace CreatePromptPromptsModelParameters$ {
2855
+ /** @deprecated use `CreatePromptPromptsModelParameters$inboundSchema` instead. */
2856
+ export const inboundSchema = CreatePromptPromptsModelParameters$inboundSchema;
2857
+ /** @deprecated use `CreatePromptPromptsModelParameters$outboundSchema` instead. */
2858
+ export const outboundSchema =
2859
+ CreatePromptPromptsModelParameters$outboundSchema;
2860
+ /** @deprecated use `CreatePromptPromptsModelParameters$Outbound` instead. */
2861
+ export type Outbound = CreatePromptPromptsModelParameters$Outbound;
2782
2862
  }
2783
2863
 
2784
- export function createPromptModelParametersToJSON(
2785
- createPromptModelParameters: CreatePromptModelParameters,
2864
+ export function createPromptPromptsModelParametersToJSON(
2865
+ createPromptPromptsModelParameters: CreatePromptPromptsModelParameters,
2786
2866
  ): string {
2787
2867
  return JSON.stringify(
2788
- CreatePromptModelParameters$outboundSchema.parse(
2789
- createPromptModelParameters,
2868
+ CreatePromptPromptsModelParameters$outboundSchema.parse(
2869
+ createPromptPromptsModelParameters,
2790
2870
  ),
2791
2871
  );
2792
2872
  }
2793
2873
 
2794
- export function createPromptModelParametersFromJSON(
2874
+ export function createPromptPromptsModelParametersFromJSON(
2795
2875
  jsonString: string,
2796
- ): SafeParseResult<CreatePromptModelParameters, SDKValidationError> {
2876
+ ): SafeParseResult<CreatePromptPromptsModelParameters, SDKValidationError> {
2797
2877
  return safeParse(
2798
2878
  jsonString,
2799
- (x) => CreatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
2800
- `Failed to parse 'CreatePromptModelParameters' from JSON`,
2879
+ (x) =>
2880
+ CreatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
2881
+ `Failed to parse 'CreatePromptPromptsModelParameters' from JSON`,
2801
2882
  );
2802
2883
  }
2803
2884
 
2804
2885
  /** @internal */
2805
- export const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<
2806
- typeof CreatePromptProvider
2807
- > = z.nativeEnum(CreatePromptProvider);
2886
+ export const CreatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
2887
+ typeof CreatePromptPromptsProvider
2888
+ > = z.nativeEnum(CreatePromptPromptsProvider);
2808
2889
 
2809
2890
  /** @internal */
2810
- export const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<
2811
- typeof CreatePromptProvider
2812
- > = CreatePromptProvider$inboundSchema;
2891
+ export const CreatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
2892
+ typeof CreatePromptPromptsProvider
2893
+ > = CreatePromptPromptsProvider$inboundSchema;
2813
2894
 
2814
2895
  /**
2815
2896
  * @internal
2816
2897
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2817
2898
  */
2818
- export namespace CreatePromptProvider$ {
2819
- /** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
2820
- export const inboundSchema = CreatePromptProvider$inboundSchema;
2821
- /** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
2822
- export const outboundSchema = CreatePromptProvider$outboundSchema;
2899
+ export namespace CreatePromptPromptsProvider$ {
2900
+ /** @deprecated use `CreatePromptPromptsProvider$inboundSchema` instead. */
2901
+ export const inboundSchema = CreatePromptPromptsProvider$inboundSchema;
2902
+ /** @deprecated use `CreatePromptPromptsProvider$outboundSchema` instead. */
2903
+ export const outboundSchema = CreatePromptPromptsProvider$outboundSchema;
2823
2904
  }
2824
2905
 
2825
2906
  /** @internal */
@@ -3423,18 +3504,19 @@ export function createPromptPromptsMessagesFromJSON(
3423
3504
  }
3424
3505
 
3425
3506
  /** @internal */
3426
- export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
3427
- CreatePromptPromptConfig,
3507
+ export const CreatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3508
+ CreatePromptPromptsPromptConfig,
3428
3509
  z.ZodTypeDef,
3429
3510
  unknown
3430
3511
  > = z.object({
3431
3512
  stream: z.boolean().optional(),
3432
3513
  model: z.string().optional(),
3433
3514
  model_db_id: z.string().optional(),
3434
- model_type: CreatePromptModelType$inboundSchema.optional(),
3435
- model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
3436
- .optional(),
3437
- provider: CreatePromptProvider$inboundSchema.optional(),
3515
+ model_type: CreatePromptPromptsModelType$inboundSchema.optional(),
3516
+ model_parameters: z.lazy(() =>
3517
+ CreatePromptPromptsModelParameters$inboundSchema
3518
+ ).optional(),
3519
+ provider: CreatePromptPromptsProvider$inboundSchema.optional(),
3438
3520
  integration_id: z.nullable(z.string()).optional(),
3439
3521
  version: z.string().optional(),
3440
3522
  messages: z.array(z.lazy(() => CreatePromptPromptsMessages$inboundSchema)),
@@ -3448,12 +3530,12 @@ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
3448
3530
  });
3449
3531
 
3450
3532
  /** @internal */
3451
- export type CreatePromptPromptConfig$Outbound = {
3533
+ export type CreatePromptPromptsPromptConfig$Outbound = {
3452
3534
  stream?: boolean | undefined;
3453
3535
  model?: string | undefined;
3454
3536
  model_db_id?: string | undefined;
3455
3537
  model_type?: string | undefined;
3456
- model_parameters?: CreatePromptModelParameters$Outbound | undefined;
3538
+ model_parameters?: CreatePromptPromptsModelParameters$Outbound | undefined;
3457
3539
  provider?: string | undefined;
3458
3540
  integration_id?: string | null | undefined;
3459
3541
  version?: string | undefined;
@@ -3461,18 +3543,19 @@ export type CreatePromptPromptConfig$Outbound = {
3461
3543
  };
3462
3544
 
3463
3545
  /** @internal */
3464
- export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
3465
- CreatePromptPromptConfig$Outbound,
3546
+ export const CreatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3547
+ CreatePromptPromptsPromptConfig$Outbound,
3466
3548
  z.ZodTypeDef,
3467
- CreatePromptPromptConfig
3549
+ CreatePromptPromptsPromptConfig
3468
3550
  > = z.object({
3469
3551
  stream: z.boolean().optional(),
3470
3552
  model: z.string().optional(),
3471
3553
  modelDbId: z.string().optional(),
3472
- modelType: CreatePromptModelType$outboundSchema.optional(),
3473
- modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
3474
- .optional(),
3475
- provider: CreatePromptProvider$outboundSchema.optional(),
3554
+ modelType: CreatePromptPromptsModelType$outboundSchema.optional(),
3555
+ modelParameters: z.lazy(() =>
3556
+ CreatePromptPromptsModelParameters$outboundSchema
3557
+ ).optional(),
3558
+ provider: CreatePromptPromptsProvider$outboundSchema.optional(),
3476
3559
  integrationId: z.nullable(z.string()).optional(),
3477
3560
  version: z.string().optional(),
3478
3561
  messages: z.array(z.lazy(() => CreatePromptPromptsMessages$outboundSchema)),
@@ -3489,73 +3572,75 @@ export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
3489
3572
  * @internal
3490
3573
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3491
3574
  */
3492
- export namespace CreatePromptPromptConfig$ {
3493
- /** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
3494
- export const inboundSchema = CreatePromptPromptConfig$inboundSchema;
3495
- /** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
3496
- export const outboundSchema = CreatePromptPromptConfig$outboundSchema;
3497
- /** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
3498
- export type Outbound = CreatePromptPromptConfig$Outbound;
3575
+ export namespace CreatePromptPromptsPromptConfig$ {
3576
+ /** @deprecated use `CreatePromptPromptsPromptConfig$inboundSchema` instead. */
3577
+ export const inboundSchema = CreatePromptPromptsPromptConfig$inboundSchema;
3578
+ /** @deprecated use `CreatePromptPromptsPromptConfig$outboundSchema` instead. */
3579
+ export const outboundSchema = CreatePromptPromptsPromptConfig$outboundSchema;
3580
+ /** @deprecated use `CreatePromptPromptsPromptConfig$Outbound` instead. */
3581
+ export type Outbound = CreatePromptPromptsPromptConfig$Outbound;
3499
3582
  }
3500
3583
 
3501
- export function createPromptPromptConfigToJSON(
3502
- createPromptPromptConfig: CreatePromptPromptConfig,
3584
+ export function createPromptPromptsPromptConfigToJSON(
3585
+ createPromptPromptsPromptConfig: CreatePromptPromptsPromptConfig,
3503
3586
  ): string {
3504
3587
  return JSON.stringify(
3505
- CreatePromptPromptConfig$outboundSchema.parse(createPromptPromptConfig),
3588
+ CreatePromptPromptsPromptConfig$outboundSchema.parse(
3589
+ createPromptPromptsPromptConfig,
3590
+ ),
3506
3591
  );
3507
3592
  }
3508
3593
 
3509
- export function createPromptPromptConfigFromJSON(
3594
+ export function createPromptPromptsPromptConfigFromJSON(
3510
3595
  jsonString: string,
3511
- ): SafeParseResult<CreatePromptPromptConfig, SDKValidationError> {
3596
+ ): SafeParseResult<CreatePromptPromptsPromptConfig, SDKValidationError> {
3512
3597
  return safeParse(
3513
3598
  jsonString,
3514
- (x) => CreatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
3515
- `Failed to parse 'CreatePromptPromptConfig' from JSON`,
3599
+ (x) => CreatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
3600
+ `Failed to parse 'CreatePromptPromptsPromptConfig' from JSON`,
3516
3601
  );
3517
3602
  }
3518
3603
 
3519
3604
  /** @internal */
3520
- export const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<
3521
- typeof CreatePromptUseCases
3522
- > = z.nativeEnum(CreatePromptUseCases);
3605
+ export const CreatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
3606
+ typeof CreatePromptPromptsUseCases
3607
+ > = z.nativeEnum(CreatePromptPromptsUseCases);
3523
3608
 
3524
3609
  /** @internal */
3525
- export const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<
3526
- typeof CreatePromptUseCases
3527
- > = CreatePromptUseCases$inboundSchema;
3610
+ export const CreatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
3611
+ typeof CreatePromptPromptsUseCases
3612
+ > = CreatePromptPromptsUseCases$inboundSchema;
3528
3613
 
3529
3614
  /**
3530
3615
  * @internal
3531
3616
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3532
3617
  */
3533
- export namespace CreatePromptUseCases$ {
3534
- /** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
3535
- export const inboundSchema = CreatePromptUseCases$inboundSchema;
3536
- /** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
3537
- export const outboundSchema = CreatePromptUseCases$outboundSchema;
3618
+ export namespace CreatePromptPromptsUseCases$ {
3619
+ /** @deprecated use `CreatePromptPromptsUseCases$inboundSchema` instead. */
3620
+ export const inboundSchema = CreatePromptPromptsUseCases$inboundSchema;
3621
+ /** @deprecated use `CreatePromptPromptsUseCases$outboundSchema` instead. */
3622
+ export const outboundSchema = CreatePromptPromptsUseCases$outboundSchema;
3538
3623
  }
3539
3624
 
3540
3625
  /** @internal */
3541
- export const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<
3542
- typeof CreatePromptLanguage
3543
- > = z.nativeEnum(CreatePromptLanguage);
3626
+ export const CreatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
3627
+ typeof CreatePromptPromptsLanguage
3628
+ > = z.nativeEnum(CreatePromptPromptsLanguage);
3544
3629
 
3545
3630
  /** @internal */
3546
- export const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<
3547
- typeof CreatePromptLanguage
3548
- > = CreatePromptLanguage$inboundSchema;
3631
+ export const CreatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
3632
+ typeof CreatePromptPromptsLanguage
3633
+ > = CreatePromptPromptsLanguage$inboundSchema;
3549
3634
 
3550
3635
  /**
3551
3636
  * @internal
3552
3637
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3553
3638
  */
3554
- export namespace CreatePromptLanguage$ {
3555
- /** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
3556
- export const inboundSchema = CreatePromptLanguage$inboundSchema;
3557
- /** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
3558
- export const outboundSchema = CreatePromptLanguage$outboundSchema;
3639
+ export namespace CreatePromptPromptsLanguage$ {
3640
+ /** @deprecated use `CreatePromptPromptsLanguage$inboundSchema` instead. */
3641
+ export const inboundSchema = CreatePromptPromptsLanguage$inboundSchema;
3642
+ /** @deprecated use `CreatePromptPromptsLanguage$outboundSchema` instead. */
3643
+ export const outboundSchema = CreatePromptPromptsLanguage$outboundSchema;
3559
3644
  }
3560
3645
 
3561
3646
  /** @internal */
@@ -3564,8 +3649,8 @@ export const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<
3564
3649
  z.ZodTypeDef,
3565
3650
  unknown
3566
3651
  > = z.object({
3567
- use_cases: z.array(CreatePromptUseCases$inboundSchema).optional(),
3568
- language: CreatePromptLanguage$inboundSchema.optional(),
3652
+ use_cases: z.array(CreatePromptPromptsUseCases$inboundSchema).optional(),
3653
+ language: CreatePromptPromptsLanguage$inboundSchema.optional(),
3569
3654
  }).transform((v) => {
3570
3655
  return remap$(v, {
3571
3656
  "use_cases": "useCases",
@@ -3584,8 +3669,8 @@ export const CreatePromptPromptsMetadata$outboundSchema: z.ZodType<
3584
3669
  z.ZodTypeDef,
3585
3670
  CreatePromptPromptsMetadata
3586
3671
  > = z.object({
3587
- useCases: z.array(CreatePromptUseCases$outboundSchema).optional(),
3588
- language: CreatePromptLanguage$outboundSchema.optional(),
3672
+ useCases: z.array(CreatePromptPromptsUseCases$outboundSchema).optional(),
3673
+ language: CreatePromptPromptsLanguage$outboundSchema.optional(),
3589
3674
  }).transform((v) => {
3590
3675
  return remap$(v, {
3591
3676
  useCases: "use_cases",
@@ -3641,7 +3726,7 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
3641
3726
  updated_by_id: z.string().optional(),
3642
3727
  display_name: z.string(),
3643
3728
  description: z.nullable(z.string()).optional(),
3644
- prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema),
3729
+ prompt_config: z.lazy(() => CreatePromptPromptsPromptConfig$inboundSchema),
3645
3730
  metadata: z.lazy(() => CreatePromptPromptsMetadata$inboundSchema).optional(),
3646
3731
  }).transform((v) => {
3647
3732
  return remap$(v, {
@@ -3666,7 +3751,7 @@ export type CreatePromptResponseBody$Outbound = {
3666
3751
  updated_by_id?: string | undefined;
3667
3752
  display_name: string;
3668
3753
  description?: string | null | undefined;
3669
- prompt_config: CreatePromptPromptConfig$Outbound;
3754
+ prompt_config: CreatePromptPromptsPromptConfig$Outbound;
3670
3755
  metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
3671
3756
  };
3672
3757
 
@@ -3686,7 +3771,7 @@ export const CreatePromptResponseBody$outboundSchema: z.ZodType<
3686
3771
  updatedById: z.string().optional(),
3687
3772
  displayName: z.string(),
3688
3773
  description: z.nullable(z.string()).optional(),
3689
- promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema),
3774
+ promptConfig: z.lazy(() => CreatePromptPromptsPromptConfig$outboundSchema),
3690
3775
  metadata: z.lazy(() => CreatePromptPromptsMetadata$outboundSchema).optional(),
3691
3776
  }).transform((v) => {
3692
3777
  return remap$(v, {