@orq-ai/node 3.12.14 → 3.12.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +1 -4
  2. package/bin/mcp-server.js +113 -113
  3. package/bin/mcp-server.js.map +31 -31
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/url.js +1 -1
  9. package/lib/url.js.map +1 -1
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/operations/createbudget.js +2 -2
  13. package/models/operations/createcontact.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +2 -2
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/createeval.js +16 -16
  18. package/models/operations/fileget.js +2 -2
  19. package/models/operations/filelist.js +2 -2
  20. package/models/operations/fileupload.js +2 -2
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +2 -2
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +2 -2
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/updatebudget.js +2 -2
  33. package/models/operations/updatecontact.js +2 -2
  34. package/models/operations/updatedatapoint.js +2 -2
  35. package/models/operations/updatedataset.js +2 -2
  36. package/models/operations/updatedatasource.js +2 -2
  37. package/models/operations/updateeval.js +16 -16
  38. package/package.json +1 -1
  39. package/packages/orq-rc/README.md +108 -94
  40. package/packages/orq-rc/docs/sdks/agents/README.md +8 -2
  41. package/packages/orq-rc/docs/sdks/evals/README.md +2 -0
  42. package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
  43. package/packages/orq-rc/examples/package-lock.json +1 -1
  44. package/packages/orq-rc/jsr.json +1 -1
  45. package/packages/orq-rc/package-lock.json +2 -2
  46. package/packages/orq-rc/package.json +1 -1
  47. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  48. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  49. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
  50. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  51. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  52. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  53. package/packages/orq-rc/src/lib/config.ts +3 -3
  54. package/packages/orq-rc/src/lib/url.ts +1 -1
  55. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  56. package/packages/orq-rc/src/mcp-server/server.ts +13 -1
  57. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  58. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  59. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
  60. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  61. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  62. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  63. package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
  64. package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
  65. package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
  66. package/packages/orq-rc/src/models/components/deployments.ts +52 -45
  67. package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
  68. package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
  69. package/packages/orq-rc/src/models/components/httptool.ts +532 -0
  70. package/packages/orq-rc/src/models/components/index.ts +13 -0
  71. package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
  72. package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
  73. package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
  74. package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
  75. package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
  76. package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
  77. package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
  78. package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
  79. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  80. package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
  81. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +10 -8
  85. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/createeval.ts +199 -56
  87. package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
  88. package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
  89. package/packages/orq-rc/src/models/operations/createprompt.ts +633 -314
  90. package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
  91. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  92. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
  93. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +363 -194
  94. package/packages/orq-rc/src/models/operations/deployments.ts +330 -160
  95. package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
  96. package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
  97. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/getagent.ts +10 -10
  101. package/packages/orq-rc/src/models/operations/getallprompts.ts +334 -168
  102. package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
  103. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  105. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +9 -0
  106. package/packages/orq-rc/src/models/operations/getoneprompt.ts +330 -167
  107. package/packages/orq-rc/src/models/operations/getpromptversion.ts +338 -168
  108. package/packages/orq-rc/src/models/operations/index.ts +6 -0
  109. package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
  110. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +6 -5
  113. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +9 -0
  116. package/packages/orq-rc/src/models/operations/listpromptversions.ts +355 -183
  117. package/packages/orq-rc/src/models/operations/parse.ts +20 -335
  118. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
  120. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/retrievetool.ts +2303 -0
  123. package/packages/orq-rc/src/models/operations/runagent.ts +428 -1384
  124. package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/streamrunagent.ts +409 -1452
  126. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  127. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  128. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +10 -8
  129. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/updateeval.ts +210 -57
  132. package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
  133. package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
  134. package/packages/orq-rc/src/models/operations/updateprompt.ts +670 -335
  135. package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
  136. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  137. package/packages/orq-rc/src/sdk/tools.ts +117 -0
  138. package/src/lib/config.ts +3 -3
  139. package/src/lib/url.ts +1 -1
  140. package/src/mcp-server/mcp-server.ts +1 -1
  141. package/src/mcp-server/server.ts +1 -1
  142. package/src/models/operations/createbudget.ts +2 -2
  143. package/src/models/operations/createcontact.ts +2 -2
  144. package/src/models/operations/createdataset.ts +2 -2
  145. package/src/models/operations/createdatasetitem.ts +2 -2
  146. package/src/models/operations/createdatasource.ts +2 -2
  147. package/src/models/operations/createeval.ts +16 -16
  148. package/src/models/operations/fileget.ts +2 -2
  149. package/src/models/operations/filelist.ts +2 -2
  150. package/src/models/operations/fileupload.ts +2 -2
  151. package/src/models/operations/getbudget.ts +2 -2
  152. package/src/models/operations/getevals.ts +28 -28
  153. package/src/models/operations/listbudgets.ts +2 -2
  154. package/src/models/operations/listcontacts.ts +2 -2
  155. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  156. package/src/models/operations/listdatasets.ts +2 -2
  157. package/src/models/operations/listdatasources.ts +2 -2
  158. package/src/models/operations/retrievecontact.ts +2 -2
  159. package/src/models/operations/retrievedatapoint.ts +2 -2
  160. package/src/models/operations/retrievedataset.ts +2 -2
  161. package/src/models/operations/retrievedatasource.ts +2 -2
  162. package/src/models/operations/updatebudget.ts +2 -2
  163. package/src/models/operations/updatecontact.ts +2 -2
  164. package/src/models/operations/updatedatapoint.ts +2 -2
  165. package/src/models/operations/updatedataset.ts +2 -2
  166. package/src/models/operations/updatedatasource.ts +2 -2
  167. package/src/models/operations/updateeval.ts +16 -16
@@ -23,46 +23,80 @@ export const UpdatePromptFormat = {
23
23
  */
24
24
  export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
25
25
 
26
- export const UpdatePromptResponseFormatPromptsRequestType = {
26
+ export const UpdatePromptResponseFormat4 = {
27
+ Json: "json",
27
28
  Text: "text",
29
+ Srt: "srt",
30
+ VerboseJson: "verbose_json",
31
+ Vtt: "vtt",
28
32
  } as const;
29
- export type UpdatePromptResponseFormatPromptsRequestType = ClosedEnum<
30
- typeof UpdatePromptResponseFormatPromptsRequestType
33
+ export type UpdatePromptResponseFormat4 = ClosedEnum<
34
+ typeof UpdatePromptResponseFormat4
31
35
  >;
32
36
 
33
- export type UpdatePromptResponseFormat3 = {
34
- type: UpdatePromptResponseFormatPromptsRequestType;
37
+ export const UpdatePromptResponseFormat3 = {
38
+ Url: "url",
39
+ Base64Json: "base64_json",
40
+ } as const;
41
+ export type UpdatePromptResponseFormat3 = ClosedEnum<
42
+ typeof UpdatePromptResponseFormat3
43
+ >;
44
+
45
+ export const UpdatePromptResponseFormat2 = {
46
+ Mp3: "mp3",
47
+ Opus: "opus",
48
+ Aac: "aac",
49
+ Flac: "flac",
50
+ Wav: "wav",
51
+ Pcm: "pcm",
52
+ } as const;
53
+ export type UpdatePromptResponseFormat2 = ClosedEnum<
54
+ typeof UpdatePromptResponseFormat2
55
+ >;
56
+
57
+ export const UpdatePrompt1PromptsRequestType = {
58
+ Text: "text",
59
+ } as const;
60
+ export type UpdatePrompt1PromptsRequestType = ClosedEnum<
61
+ typeof UpdatePrompt1PromptsRequestType
62
+ >;
63
+
64
+ export type UpdatePrompt13 = {
65
+ type: UpdatePrompt1PromptsRequestType;
35
66
  };
36
67
 
37
- export const UpdatePromptResponseFormatPromptsType = {
68
+ export const UpdatePrompt1PromptsType = {
38
69
  JsonObject: "json_object",
39
70
  } as const;
40
- export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
41
- typeof UpdatePromptResponseFormatPromptsType
71
+ export type UpdatePrompt1PromptsType = ClosedEnum<
72
+ typeof UpdatePrompt1PromptsType
42
73
  >;
43
74
 
44
- export type UpdatePromptResponseFormat2 = {
45
- type: UpdatePromptResponseFormatPromptsType;
75
+ export type UpdatePrompt12 = {
76
+ type: UpdatePrompt1PromptsType;
46
77
  };
47
78
 
48
- export const UpdatePromptResponseFormatType = {
79
+ export const UpdatePrompt1Type = {
49
80
  JsonSchema: "json_schema",
50
81
  } as const;
51
- export type UpdatePromptResponseFormatType = ClosedEnum<
52
- typeof UpdatePromptResponseFormatType
53
- >;
82
+ export type UpdatePrompt1Type = ClosedEnum<typeof UpdatePrompt1Type>;
54
83
 
55
- export type ResponseFormatJsonSchema = {
84
+ export type OneJsonSchema = {
56
85
  name: string;
57
86
  strict?: boolean | undefined;
58
87
  schema: { [k: string]: any };
59
88
  };
60
89
 
61
- export type UpdatePromptResponseFormat1 = {
62
- type: UpdatePromptResponseFormatType;
63
- jsonSchema: ResponseFormatJsonSchema;
90
+ export type UpdatePrompt11 = {
91
+ type: UpdatePrompt1Type;
92
+ jsonSchema: OneJsonSchema;
64
93
  };
65
94
 
95
+ export type UpdatePromptResponseFormat1 =
96
+ | UpdatePrompt11
97
+ | UpdatePrompt12
98
+ | UpdatePrompt13;
99
+
66
100
  /**
67
101
  * An object specifying the format that the model must output.
68
102
  *
@@ -75,9 +109,12 @@ export type UpdatePromptResponseFormat1 = {
75
109
  * 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.
76
110
  */
77
111
  export type UpdatePromptResponseFormat =
78
- | UpdatePromptResponseFormat1
112
+ | UpdatePrompt11
113
+ | UpdatePrompt12
114
+ | UpdatePrompt13
79
115
  | UpdatePromptResponseFormat2
80
- | UpdatePromptResponseFormat3;
116
+ | UpdatePromptResponseFormat3
117
+ | UpdatePromptResponseFormat4;
81
118
 
82
119
  /**
83
120
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -112,6 +149,7 @@ export type UpdatePromptEncodingFormat = ClosedEnum<
112
149
  */
113
150
  export const UpdatePromptReasoningEffort = {
114
151
  Disable: "disable",
152
+ Minimal: "minimal",
115
153
  Low: "low",
116
154
  Medium: "medium",
117
155
  High: "high",
@@ -200,9 +238,12 @@ export type UpdatePromptModelParameters = {
200
238
  * 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.
201
239
  */
202
240
  responseFormat?:
203
- | UpdatePromptResponseFormat1
241
+ | UpdatePrompt11
242
+ | UpdatePrompt12
243
+ | UpdatePrompt13
204
244
  | UpdatePromptResponseFormat2
205
245
  | UpdatePromptResponseFormat3
246
+ | UpdatePromptResponseFormat4
206
247
  | null
207
248
  | undefined;
208
249
  /**
@@ -550,47 +591,82 @@ export type UpdatePromptPromptsFormat = ClosedEnum<
550
591
  typeof UpdatePromptPromptsFormat
551
592
  >;
552
593
 
553
- export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType = {
594
+ export const UpdatePromptResponseFormatPrompts4 = {
595
+ Json: "json",
554
596
  Text: "text",
597
+ Srt: "srt",
598
+ VerboseJson: "verbose_json",
599
+ Vtt: "vtt",
555
600
  } as const;
556
- export type UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType =
557
- ClosedEnum<
558
- typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
559
- >;
601
+ export type UpdatePromptResponseFormatPrompts4 = ClosedEnum<
602
+ typeof UpdatePromptResponseFormatPrompts4
603
+ >;
604
+
605
+ export const UpdatePromptResponseFormatPrompts3 = {
606
+ Url: "url",
607
+ Base64Json: "base64_json",
608
+ } as const;
609
+ export type UpdatePromptResponseFormatPrompts3 = ClosedEnum<
610
+ typeof UpdatePromptResponseFormatPrompts3
611
+ >;
612
+
613
+ export const UpdatePromptResponseFormatPrompts2 = {
614
+ Mp3: "mp3",
615
+ Opus: "opus",
616
+ Aac: "aac",
617
+ Flac: "flac",
618
+ Wav: "wav",
619
+ Pcm: "pcm",
620
+ } as const;
621
+ export type UpdatePromptResponseFormatPrompts2 = ClosedEnum<
622
+ typeof UpdatePromptResponseFormatPrompts2
623
+ >;
624
+
625
+ export const UpdatePrompt1PromptsResponse200ApplicationJSONType = {
626
+ Text: "text",
627
+ } as const;
628
+ export type UpdatePrompt1PromptsResponse200ApplicationJSONType = ClosedEnum<
629
+ typeof UpdatePrompt1PromptsResponse200ApplicationJSONType
630
+ >;
560
631
 
561
- export type UpdatePromptResponseFormatPrompts3 = {
562
- type: UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType;
632
+ export type UpdatePrompt1Prompts3 = {
633
+ type: UpdatePrompt1PromptsResponse200ApplicationJSONType;
563
634
  };
564
635
 
565
- export const UpdatePromptResponseFormatPromptsResponse200Type = {
636
+ export const UpdatePrompt1PromptsResponse200Type = {
566
637
  JsonObject: "json_object",
567
638
  } as const;
568
- export type UpdatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
569
- typeof UpdatePromptResponseFormatPromptsResponse200Type
639
+ export type UpdatePrompt1PromptsResponse200Type = ClosedEnum<
640
+ typeof UpdatePrompt1PromptsResponse200Type
570
641
  >;
571
642
 
572
- export type UpdatePromptResponseFormatPrompts2 = {
573
- type: UpdatePromptResponseFormatPromptsResponse200Type;
643
+ export type UpdatePrompt1Prompts2 = {
644
+ type: UpdatePrompt1PromptsResponse200Type;
574
645
  };
575
646
 
576
- export const UpdatePromptResponseFormatPromptsResponseType = {
647
+ export const UpdatePrompt1PromptsResponseType = {
577
648
  JsonSchema: "json_schema",
578
649
  } as const;
579
- export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
580
- typeof UpdatePromptResponseFormatPromptsResponseType
650
+ export type UpdatePrompt1PromptsResponseType = ClosedEnum<
651
+ typeof UpdatePrompt1PromptsResponseType
581
652
  >;
582
653
 
583
- export type UpdatePromptResponseFormatJsonSchema = {
654
+ export type UpdatePrompt1JsonSchema = {
584
655
  name: string;
585
656
  strict?: boolean | undefined;
586
657
  schema: { [k: string]: any };
587
658
  };
588
659
 
589
- export type UpdatePromptResponseFormatPrompts1 = {
590
- type: UpdatePromptResponseFormatPromptsResponseType;
591
- jsonSchema: UpdatePromptResponseFormatJsonSchema;
660
+ export type UpdatePrompt1Prompts1 = {
661
+ type: UpdatePrompt1PromptsResponseType;
662
+ jsonSchema: UpdatePrompt1JsonSchema;
592
663
  };
593
664
 
665
+ export type UpdatePromptResponseFormatPrompts1 =
666
+ | UpdatePrompt1Prompts1
667
+ | UpdatePrompt1Prompts2
668
+ | UpdatePrompt1Prompts3;
669
+
594
670
  /**
595
671
  * An object specifying the format that the model must output.
596
672
  *
@@ -603,9 +679,12 @@ export type UpdatePromptResponseFormatPrompts1 = {
603
679
  * 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.
604
680
  */
605
681
  export type UpdatePromptPromptsResponseFormat =
606
- | UpdatePromptResponseFormatPrompts1
682
+ | UpdatePrompt1Prompts1
683
+ | UpdatePrompt1Prompts2
684
+ | UpdatePrompt1Prompts3
607
685
  | UpdatePromptResponseFormatPrompts2
608
- | UpdatePromptResponseFormatPrompts3;
686
+ | UpdatePromptResponseFormatPrompts3
687
+ | UpdatePromptResponseFormatPrompts4;
609
688
 
610
689
  /**
611
690
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -640,6 +719,7 @@ export type UpdatePromptPromptsEncodingFormat = ClosedEnum<
640
719
  */
641
720
  export const UpdatePromptPromptsReasoningEffort = {
642
721
  Disable: "disable",
722
+ Minimal: "minimal",
643
723
  Low: "low",
644
724
  Medium: "medium",
645
725
  High: "high",
@@ -730,9 +810,12 @@ export type UpdatePromptPromptsModelParameters = {
730
810
  * 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.
731
811
  */
732
812
  responseFormat?:
733
- | UpdatePromptResponseFormatPrompts1
813
+ | UpdatePrompt1Prompts1
814
+ | UpdatePrompt1Prompts2
815
+ | UpdatePrompt1Prompts3
734
816
  | UpdatePromptResponseFormatPrompts2
735
817
  | UpdatePromptResponseFormatPrompts3
818
+ | UpdatePromptResponseFormatPrompts4
736
819
  | null
737
820
  | undefined;
738
821
  /**
@@ -1067,188 +1150,234 @@ export namespace UpdatePromptFormat$ {
1067
1150
  }
1068
1151
 
1069
1152
  /** @internal */
1070
- export const UpdatePromptResponseFormatPromptsRequestType$inboundSchema:
1071
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsRequestType> = z
1072
- .nativeEnum(UpdatePromptResponseFormatPromptsRequestType);
1153
+ export const UpdatePromptResponseFormat4$inboundSchema: z.ZodNativeEnum<
1154
+ typeof UpdatePromptResponseFormat4
1155
+ > = z.nativeEnum(UpdatePromptResponseFormat4);
1073
1156
 
1074
1157
  /** @internal */
1075
- export const UpdatePromptResponseFormatPromptsRequestType$outboundSchema:
1076
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsRequestType> =
1077
- UpdatePromptResponseFormatPromptsRequestType$inboundSchema;
1158
+ export const UpdatePromptResponseFormat4$outboundSchema: z.ZodNativeEnum<
1159
+ typeof UpdatePromptResponseFormat4
1160
+ > = UpdatePromptResponseFormat4$inboundSchema;
1078
1161
 
1079
1162
  /**
1080
1163
  * @internal
1081
1164
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1082
1165
  */
1083
- export namespace UpdatePromptResponseFormatPromptsRequestType$ {
1084
- /** @deprecated use `UpdatePromptResponseFormatPromptsRequestType$inboundSchema` instead. */
1085
- export const inboundSchema =
1086
- UpdatePromptResponseFormatPromptsRequestType$inboundSchema;
1087
- /** @deprecated use `UpdatePromptResponseFormatPromptsRequestType$outboundSchema` instead. */
1088
- export const outboundSchema =
1089
- UpdatePromptResponseFormatPromptsRequestType$outboundSchema;
1166
+ export namespace UpdatePromptResponseFormat4$ {
1167
+ /** @deprecated use `UpdatePromptResponseFormat4$inboundSchema` instead. */
1168
+ export const inboundSchema = UpdatePromptResponseFormat4$inboundSchema;
1169
+ /** @deprecated use `UpdatePromptResponseFormat4$outboundSchema` instead. */
1170
+ export const outboundSchema = UpdatePromptResponseFormat4$outboundSchema;
1090
1171
  }
1091
1172
 
1092
1173
  /** @internal */
1093
- export const UpdatePromptResponseFormat3$inboundSchema: z.ZodType<
1094
- UpdatePromptResponseFormat3,
1174
+ export const UpdatePromptResponseFormat3$inboundSchema: z.ZodNativeEnum<
1175
+ typeof UpdatePromptResponseFormat3
1176
+ > = z.nativeEnum(UpdatePromptResponseFormat3);
1177
+
1178
+ /** @internal */
1179
+ export const UpdatePromptResponseFormat3$outboundSchema: z.ZodNativeEnum<
1180
+ typeof UpdatePromptResponseFormat3
1181
+ > = UpdatePromptResponseFormat3$inboundSchema;
1182
+
1183
+ /**
1184
+ * @internal
1185
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1186
+ */
1187
+ export namespace UpdatePromptResponseFormat3$ {
1188
+ /** @deprecated use `UpdatePromptResponseFormat3$inboundSchema` instead. */
1189
+ export const inboundSchema = UpdatePromptResponseFormat3$inboundSchema;
1190
+ /** @deprecated use `UpdatePromptResponseFormat3$outboundSchema` instead. */
1191
+ export const outboundSchema = UpdatePromptResponseFormat3$outboundSchema;
1192
+ }
1193
+
1194
+ /** @internal */
1195
+ export const UpdatePromptResponseFormat2$inboundSchema: z.ZodNativeEnum<
1196
+ typeof UpdatePromptResponseFormat2
1197
+ > = z.nativeEnum(UpdatePromptResponseFormat2);
1198
+
1199
+ /** @internal */
1200
+ export const UpdatePromptResponseFormat2$outboundSchema: z.ZodNativeEnum<
1201
+ typeof UpdatePromptResponseFormat2
1202
+ > = UpdatePromptResponseFormat2$inboundSchema;
1203
+
1204
+ /**
1205
+ * @internal
1206
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1207
+ */
1208
+ export namespace UpdatePromptResponseFormat2$ {
1209
+ /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
1210
+ export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
1211
+ /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
1212
+ export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
1213
+ }
1214
+
1215
+ /** @internal */
1216
+ export const UpdatePrompt1PromptsRequestType$inboundSchema: z.ZodNativeEnum<
1217
+ typeof UpdatePrompt1PromptsRequestType
1218
+ > = z.nativeEnum(UpdatePrompt1PromptsRequestType);
1219
+
1220
+ /** @internal */
1221
+ export const UpdatePrompt1PromptsRequestType$outboundSchema: z.ZodNativeEnum<
1222
+ typeof UpdatePrompt1PromptsRequestType
1223
+ > = UpdatePrompt1PromptsRequestType$inboundSchema;
1224
+
1225
+ /**
1226
+ * @internal
1227
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1228
+ */
1229
+ export namespace UpdatePrompt1PromptsRequestType$ {
1230
+ /** @deprecated use `UpdatePrompt1PromptsRequestType$inboundSchema` instead. */
1231
+ export const inboundSchema = UpdatePrompt1PromptsRequestType$inboundSchema;
1232
+ /** @deprecated use `UpdatePrompt1PromptsRequestType$outboundSchema` instead. */
1233
+ export const outboundSchema = UpdatePrompt1PromptsRequestType$outboundSchema;
1234
+ }
1235
+
1236
+ /** @internal */
1237
+ export const UpdatePrompt13$inboundSchema: z.ZodType<
1238
+ UpdatePrompt13,
1095
1239
  z.ZodTypeDef,
1096
1240
  unknown
1097
1241
  > = z.object({
1098
- type: UpdatePromptResponseFormatPromptsRequestType$inboundSchema,
1242
+ type: UpdatePrompt1PromptsRequestType$inboundSchema,
1099
1243
  });
1100
1244
 
1101
1245
  /** @internal */
1102
- export type UpdatePromptResponseFormat3$Outbound = {
1246
+ export type UpdatePrompt13$Outbound = {
1103
1247
  type: string;
1104
1248
  };
1105
1249
 
1106
1250
  /** @internal */
1107
- export const UpdatePromptResponseFormat3$outboundSchema: z.ZodType<
1108
- UpdatePromptResponseFormat3$Outbound,
1251
+ export const UpdatePrompt13$outboundSchema: z.ZodType<
1252
+ UpdatePrompt13$Outbound,
1109
1253
  z.ZodTypeDef,
1110
- UpdatePromptResponseFormat3
1254
+ UpdatePrompt13
1111
1255
  > = z.object({
1112
- type: UpdatePromptResponseFormatPromptsRequestType$outboundSchema,
1256
+ type: UpdatePrompt1PromptsRequestType$outboundSchema,
1113
1257
  });
1114
1258
 
1115
1259
  /**
1116
1260
  * @internal
1117
1261
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1118
1262
  */
1119
- export namespace UpdatePromptResponseFormat3$ {
1120
- /** @deprecated use `UpdatePromptResponseFormat3$inboundSchema` instead. */
1121
- export const inboundSchema = UpdatePromptResponseFormat3$inboundSchema;
1122
- /** @deprecated use `UpdatePromptResponseFormat3$outboundSchema` instead. */
1123
- export const outboundSchema = UpdatePromptResponseFormat3$outboundSchema;
1124
- /** @deprecated use `UpdatePromptResponseFormat3$Outbound` instead. */
1125
- export type Outbound = UpdatePromptResponseFormat3$Outbound;
1263
+ export namespace UpdatePrompt13$ {
1264
+ /** @deprecated use `UpdatePrompt13$inboundSchema` instead. */
1265
+ export const inboundSchema = UpdatePrompt13$inboundSchema;
1266
+ /** @deprecated use `UpdatePrompt13$outboundSchema` instead. */
1267
+ export const outboundSchema = UpdatePrompt13$outboundSchema;
1268
+ /** @deprecated use `UpdatePrompt13$Outbound` instead. */
1269
+ export type Outbound = UpdatePrompt13$Outbound;
1126
1270
  }
1127
1271
 
1128
- export function updatePromptResponseFormat3ToJSON(
1129
- updatePromptResponseFormat3: UpdatePromptResponseFormat3,
1130
- ): string {
1131
- return JSON.stringify(
1132
- UpdatePromptResponseFormat3$outboundSchema.parse(
1133
- updatePromptResponseFormat3,
1134
- ),
1135
- );
1272
+ export function updatePrompt13ToJSON(updatePrompt13: UpdatePrompt13): string {
1273
+ return JSON.stringify(UpdatePrompt13$outboundSchema.parse(updatePrompt13));
1136
1274
  }
1137
1275
 
1138
- export function updatePromptResponseFormat3FromJSON(
1276
+ export function updatePrompt13FromJSON(
1139
1277
  jsonString: string,
1140
- ): SafeParseResult<UpdatePromptResponseFormat3, SDKValidationError> {
1278
+ ): SafeParseResult<UpdatePrompt13, SDKValidationError> {
1141
1279
  return safeParse(
1142
1280
  jsonString,
1143
- (x) => UpdatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1144
- `Failed to parse 'UpdatePromptResponseFormat3' from JSON`,
1281
+ (x) => UpdatePrompt13$inboundSchema.parse(JSON.parse(x)),
1282
+ `Failed to parse 'UpdatePrompt13' from JSON`,
1145
1283
  );
1146
1284
  }
1147
1285
 
1148
1286
  /** @internal */
1149
- export const UpdatePromptResponseFormatPromptsType$inboundSchema:
1150
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
1151
- UpdatePromptResponseFormatPromptsType,
1152
- );
1287
+ export const UpdatePrompt1PromptsType$inboundSchema: z.ZodNativeEnum<
1288
+ typeof UpdatePrompt1PromptsType
1289
+ > = z.nativeEnum(UpdatePrompt1PromptsType);
1153
1290
 
1154
1291
  /** @internal */
1155
- export const UpdatePromptResponseFormatPromptsType$outboundSchema:
1156
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
1157
- UpdatePromptResponseFormatPromptsType$inboundSchema;
1292
+ export const UpdatePrompt1PromptsType$outboundSchema: z.ZodNativeEnum<
1293
+ typeof UpdatePrompt1PromptsType
1294
+ > = UpdatePrompt1PromptsType$inboundSchema;
1158
1295
 
1159
1296
  /**
1160
1297
  * @internal
1161
1298
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1162
1299
  */
1163
- export namespace UpdatePromptResponseFormatPromptsType$ {
1164
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
1165
- export const inboundSchema =
1166
- UpdatePromptResponseFormatPromptsType$inboundSchema;
1167
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
1168
- export const outboundSchema =
1169
- UpdatePromptResponseFormatPromptsType$outboundSchema;
1300
+ export namespace UpdatePrompt1PromptsType$ {
1301
+ /** @deprecated use `UpdatePrompt1PromptsType$inboundSchema` instead. */
1302
+ export const inboundSchema = UpdatePrompt1PromptsType$inboundSchema;
1303
+ /** @deprecated use `UpdatePrompt1PromptsType$outboundSchema` instead. */
1304
+ export const outboundSchema = UpdatePrompt1PromptsType$outboundSchema;
1170
1305
  }
1171
1306
 
1172
1307
  /** @internal */
1173
- export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
1174
- UpdatePromptResponseFormat2,
1308
+ export const UpdatePrompt12$inboundSchema: z.ZodType<
1309
+ UpdatePrompt12,
1175
1310
  z.ZodTypeDef,
1176
1311
  unknown
1177
1312
  > = z.object({
1178
- type: UpdatePromptResponseFormatPromptsType$inboundSchema,
1313
+ type: UpdatePrompt1PromptsType$inboundSchema,
1179
1314
  });
1180
1315
 
1181
1316
  /** @internal */
1182
- export type UpdatePromptResponseFormat2$Outbound = {
1317
+ export type UpdatePrompt12$Outbound = {
1183
1318
  type: string;
1184
1319
  };
1185
1320
 
1186
1321
  /** @internal */
1187
- export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
1188
- UpdatePromptResponseFormat2$Outbound,
1322
+ export const UpdatePrompt12$outboundSchema: z.ZodType<
1323
+ UpdatePrompt12$Outbound,
1189
1324
  z.ZodTypeDef,
1190
- UpdatePromptResponseFormat2
1325
+ UpdatePrompt12
1191
1326
  > = z.object({
1192
- type: UpdatePromptResponseFormatPromptsType$outboundSchema,
1327
+ type: UpdatePrompt1PromptsType$outboundSchema,
1193
1328
  });
1194
1329
 
1195
1330
  /**
1196
1331
  * @internal
1197
1332
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1198
1333
  */
1199
- export namespace UpdatePromptResponseFormat2$ {
1200
- /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
1201
- export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
1202
- /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
1203
- export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
1204
- /** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
1205
- export type Outbound = UpdatePromptResponseFormat2$Outbound;
1334
+ export namespace UpdatePrompt12$ {
1335
+ /** @deprecated use `UpdatePrompt12$inboundSchema` instead. */
1336
+ export const inboundSchema = UpdatePrompt12$inboundSchema;
1337
+ /** @deprecated use `UpdatePrompt12$outboundSchema` instead. */
1338
+ export const outboundSchema = UpdatePrompt12$outboundSchema;
1339
+ /** @deprecated use `UpdatePrompt12$Outbound` instead. */
1340
+ export type Outbound = UpdatePrompt12$Outbound;
1206
1341
  }
1207
1342
 
1208
- export function updatePromptResponseFormat2ToJSON(
1209
- updatePromptResponseFormat2: UpdatePromptResponseFormat2,
1210
- ): string {
1211
- return JSON.stringify(
1212
- UpdatePromptResponseFormat2$outboundSchema.parse(
1213
- updatePromptResponseFormat2,
1214
- ),
1215
- );
1343
+ export function updatePrompt12ToJSON(updatePrompt12: UpdatePrompt12): string {
1344
+ return JSON.stringify(UpdatePrompt12$outboundSchema.parse(updatePrompt12));
1216
1345
  }
1217
1346
 
1218
- export function updatePromptResponseFormat2FromJSON(
1347
+ export function updatePrompt12FromJSON(
1219
1348
  jsonString: string,
1220
- ): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
1349
+ ): SafeParseResult<UpdatePrompt12, SDKValidationError> {
1221
1350
  return safeParse(
1222
1351
  jsonString,
1223
- (x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1224
- `Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
1352
+ (x) => UpdatePrompt12$inboundSchema.parse(JSON.parse(x)),
1353
+ `Failed to parse 'UpdatePrompt12' from JSON`,
1225
1354
  );
1226
1355
  }
1227
1356
 
1228
1357
  /** @internal */
1229
- export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1230
- typeof UpdatePromptResponseFormatType
1231
- > = z.nativeEnum(UpdatePromptResponseFormatType);
1358
+ export const UpdatePrompt1Type$inboundSchema: z.ZodNativeEnum<
1359
+ typeof UpdatePrompt1Type
1360
+ > = z.nativeEnum(UpdatePrompt1Type);
1232
1361
 
1233
1362
  /** @internal */
1234
- export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1235
- typeof UpdatePromptResponseFormatType
1236
- > = UpdatePromptResponseFormatType$inboundSchema;
1363
+ export const UpdatePrompt1Type$outboundSchema: z.ZodNativeEnum<
1364
+ typeof UpdatePrompt1Type
1365
+ > = UpdatePrompt1Type$inboundSchema;
1237
1366
 
1238
1367
  /**
1239
1368
  * @internal
1240
1369
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1241
1370
  */
1242
- export namespace UpdatePromptResponseFormatType$ {
1243
- /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
1244
- export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
1245
- /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
1246
- export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
1371
+ export namespace UpdatePrompt1Type$ {
1372
+ /** @deprecated use `UpdatePrompt1Type$inboundSchema` instead. */
1373
+ export const inboundSchema = UpdatePrompt1Type$inboundSchema;
1374
+ /** @deprecated use `UpdatePrompt1Type$outboundSchema` instead. */
1375
+ export const outboundSchema = UpdatePrompt1Type$outboundSchema;
1247
1376
  }
1248
1377
 
1249
1378
  /** @internal */
1250
- export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1251
- ResponseFormatJsonSchema,
1379
+ export const OneJsonSchema$inboundSchema: z.ZodType<
1380
+ OneJsonSchema,
1252
1381
  z.ZodTypeDef,
1253
1382
  unknown
1254
1383
  > = z.object({
@@ -1258,17 +1387,17 @@ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1258
1387
  });
1259
1388
 
1260
1389
  /** @internal */
1261
- export type ResponseFormatJsonSchema$Outbound = {
1390
+ export type OneJsonSchema$Outbound = {
1262
1391
  name: string;
1263
1392
  strict?: boolean | undefined;
1264
1393
  schema: { [k: string]: any };
1265
1394
  };
1266
1395
 
1267
1396
  /** @internal */
1268
- export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1269
- ResponseFormatJsonSchema$Outbound,
1397
+ export const OneJsonSchema$outboundSchema: z.ZodType<
1398
+ OneJsonSchema$Outbound,
1270
1399
  z.ZodTypeDef,
1271
- ResponseFormatJsonSchema
1400
+ OneJsonSchema
1272
1401
  > = z.object({
1273
1402
  name: z.string(),
1274
1403
  strict: z.boolean().optional(),
@@ -1279,41 +1408,37 @@ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1279
1408
  * @internal
1280
1409
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1281
1410
  */
1282
- export namespace ResponseFormatJsonSchema$ {
1283
- /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1284
- export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
1285
- /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1286
- export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
1287
- /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1288
- export type Outbound = ResponseFormatJsonSchema$Outbound;
1411
+ export namespace OneJsonSchema$ {
1412
+ /** @deprecated use `OneJsonSchema$inboundSchema` instead. */
1413
+ export const inboundSchema = OneJsonSchema$inboundSchema;
1414
+ /** @deprecated use `OneJsonSchema$outboundSchema` instead. */
1415
+ export const outboundSchema = OneJsonSchema$outboundSchema;
1416
+ /** @deprecated use `OneJsonSchema$Outbound` instead. */
1417
+ export type Outbound = OneJsonSchema$Outbound;
1289
1418
  }
1290
1419
 
1291
- export function responseFormatJsonSchemaToJSON(
1292
- responseFormatJsonSchema: ResponseFormatJsonSchema,
1293
- ): string {
1294
- return JSON.stringify(
1295
- ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
1296
- );
1420
+ export function oneJsonSchemaToJSON(oneJsonSchema: OneJsonSchema): string {
1421
+ return JSON.stringify(OneJsonSchema$outboundSchema.parse(oneJsonSchema));
1297
1422
  }
1298
1423
 
1299
- export function responseFormatJsonSchemaFromJSON(
1424
+ export function oneJsonSchemaFromJSON(
1300
1425
  jsonString: string,
1301
- ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
1426
+ ): SafeParseResult<OneJsonSchema, SDKValidationError> {
1302
1427
  return safeParse(
1303
1428
  jsonString,
1304
- (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1305
- `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
1429
+ (x) => OneJsonSchema$inboundSchema.parse(JSON.parse(x)),
1430
+ `Failed to parse 'OneJsonSchema' from JSON`,
1306
1431
  );
1307
1432
  }
1308
1433
 
1309
1434
  /** @internal */
1310
- export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1311
- UpdatePromptResponseFormat1,
1435
+ export const UpdatePrompt11$inboundSchema: z.ZodType<
1436
+ UpdatePrompt11,
1312
1437
  z.ZodTypeDef,
1313
1438
  unknown
1314
1439
  > = z.object({
1315
- type: UpdatePromptResponseFormatType$inboundSchema,
1316
- json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
1440
+ type: UpdatePrompt1Type$inboundSchema,
1441
+ json_schema: z.lazy(() => OneJsonSchema$inboundSchema),
1317
1442
  }).transform((v) => {
1318
1443
  return remap$(v, {
1319
1444
  "json_schema": "jsonSchema",
@@ -1321,25 +1446,80 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1321
1446
  });
1322
1447
 
1323
1448
  /** @internal */
1324
- export type UpdatePromptResponseFormat1$Outbound = {
1449
+ export type UpdatePrompt11$Outbound = {
1325
1450
  type: string;
1326
- json_schema: ResponseFormatJsonSchema$Outbound;
1451
+ json_schema: OneJsonSchema$Outbound;
1327
1452
  };
1328
1453
 
1329
1454
  /** @internal */
1330
- export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1331
- UpdatePromptResponseFormat1$Outbound,
1455
+ export const UpdatePrompt11$outboundSchema: z.ZodType<
1456
+ UpdatePrompt11$Outbound,
1332
1457
  z.ZodTypeDef,
1333
- UpdatePromptResponseFormat1
1458
+ UpdatePrompt11
1334
1459
  > = z.object({
1335
- type: UpdatePromptResponseFormatType$outboundSchema,
1336
- jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
1460
+ type: UpdatePrompt1Type$outboundSchema,
1461
+ jsonSchema: z.lazy(() => OneJsonSchema$outboundSchema),
1337
1462
  }).transform((v) => {
1338
1463
  return remap$(v, {
1339
1464
  jsonSchema: "json_schema",
1340
1465
  });
1341
1466
  });
1342
1467
 
1468
+ /**
1469
+ * @internal
1470
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1471
+ */
1472
+ export namespace UpdatePrompt11$ {
1473
+ /** @deprecated use `UpdatePrompt11$inboundSchema` instead. */
1474
+ export const inboundSchema = UpdatePrompt11$inboundSchema;
1475
+ /** @deprecated use `UpdatePrompt11$outboundSchema` instead. */
1476
+ export const outboundSchema = UpdatePrompt11$outboundSchema;
1477
+ /** @deprecated use `UpdatePrompt11$Outbound` instead. */
1478
+ export type Outbound = UpdatePrompt11$Outbound;
1479
+ }
1480
+
1481
+ export function updatePrompt11ToJSON(updatePrompt11: UpdatePrompt11): string {
1482
+ return JSON.stringify(UpdatePrompt11$outboundSchema.parse(updatePrompt11));
1483
+ }
1484
+
1485
+ export function updatePrompt11FromJSON(
1486
+ jsonString: string,
1487
+ ): SafeParseResult<UpdatePrompt11, SDKValidationError> {
1488
+ return safeParse(
1489
+ jsonString,
1490
+ (x) => UpdatePrompt11$inboundSchema.parse(JSON.parse(x)),
1491
+ `Failed to parse 'UpdatePrompt11' from JSON`,
1492
+ );
1493
+ }
1494
+
1495
+ /** @internal */
1496
+ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1497
+ UpdatePromptResponseFormat1,
1498
+ z.ZodTypeDef,
1499
+ unknown
1500
+ > = z.union([
1501
+ z.lazy(() => UpdatePrompt11$inboundSchema),
1502
+ z.lazy(() => UpdatePrompt12$inboundSchema),
1503
+ z.lazy(() => UpdatePrompt13$inboundSchema),
1504
+ ]);
1505
+
1506
+ /** @internal */
1507
+ export type UpdatePromptResponseFormat1$Outbound =
1508
+ | UpdatePrompt11$Outbound
1509
+ | UpdatePrompt12$Outbound
1510
+ | UpdatePrompt13$Outbound;
1511
+
1512
+ /** @internal */
1513
+ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1514
+ UpdatePromptResponseFormat1$Outbound,
1515
+ z.ZodTypeDef,
1516
+ UpdatePromptResponseFormat1
1517
+ > = z.union([
1518
+ z.lazy(() => UpdatePrompt11$outboundSchema),
1519
+ z.lazy(() => UpdatePrompt12$outboundSchema),
1520
+ z.lazy(() => UpdatePrompt13$outboundSchema),
1521
+ ]);
1522
+
1343
1523
  /**
1344
1524
  * @internal
1345
1525
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -1379,16 +1559,24 @@ export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
1379
1559
  z.ZodTypeDef,
1380
1560
  unknown
1381
1561
  > = z.union([
1382
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1383
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1384
- z.lazy(() => UpdatePromptResponseFormat3$inboundSchema),
1562
+ z.union([
1563
+ z.lazy(() => UpdatePrompt11$inboundSchema),
1564
+ z.lazy(() => UpdatePrompt12$inboundSchema),
1565
+ z.lazy(() => UpdatePrompt13$inboundSchema),
1566
+ ]),
1567
+ UpdatePromptResponseFormat2$inboundSchema,
1568
+ UpdatePromptResponseFormat3$inboundSchema,
1569
+ UpdatePromptResponseFormat4$inboundSchema,
1385
1570
  ]);
1386
1571
 
1387
1572
  /** @internal */
1388
1573
  export type UpdatePromptResponseFormat$Outbound =
1389
- | UpdatePromptResponseFormat1$Outbound
1390
- | UpdatePromptResponseFormat2$Outbound
1391
- | UpdatePromptResponseFormat3$Outbound;
1574
+ | UpdatePrompt11$Outbound
1575
+ | UpdatePrompt12$Outbound
1576
+ | UpdatePrompt13$Outbound
1577
+ | string
1578
+ | string
1579
+ | string;
1392
1580
 
1393
1581
  /** @internal */
1394
1582
  export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
@@ -1396,9 +1584,14 @@ export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
1396
1584
  z.ZodTypeDef,
1397
1585
  UpdatePromptResponseFormat
1398
1586
  > = z.union([
1399
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1400
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1401
- z.lazy(() => UpdatePromptResponseFormat3$outboundSchema),
1587
+ z.union([
1588
+ z.lazy(() => UpdatePrompt11$outboundSchema),
1589
+ z.lazy(() => UpdatePrompt12$outboundSchema),
1590
+ z.lazy(() => UpdatePrompt13$outboundSchema),
1591
+ ]),
1592
+ UpdatePromptResponseFormat2$outboundSchema,
1593
+ UpdatePromptResponseFormat3$outboundSchema,
1594
+ UpdatePromptResponseFormat4$outboundSchema,
1402
1595
  ]);
1403
1596
 
1404
1597
  /**
@@ -1536,9 +1729,14 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1536
1729
  style: z.string().optional(),
1537
1730
  responseFormat: z.nullable(
1538
1731
  z.union([
1539
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1540
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1541
- z.lazy(() => UpdatePromptResponseFormat3$inboundSchema),
1732
+ z.union([
1733
+ z.lazy(() => UpdatePrompt11$inboundSchema),
1734
+ z.lazy(() => UpdatePrompt12$inboundSchema),
1735
+ z.lazy(() => UpdatePrompt13$inboundSchema),
1736
+ ]),
1737
+ UpdatePromptResponseFormat2$inboundSchema,
1738
+ UpdatePromptResponseFormat3$inboundSchema,
1739
+ UpdatePromptResponseFormat4$inboundSchema,
1542
1740
  ]),
1543
1741
  ).optional(),
1544
1742
  photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
@@ -1567,9 +1765,12 @@ export type UpdatePromptModelParameters$Outbound = {
1567
1765
  quality?: string | undefined;
1568
1766
  style?: string | undefined;
1569
1767
  responseFormat?:
1570
- | UpdatePromptResponseFormat1$Outbound
1571
- | UpdatePromptResponseFormat2$Outbound
1572
- | UpdatePromptResponseFormat3$Outbound
1768
+ | UpdatePrompt11$Outbound
1769
+ | UpdatePrompt12$Outbound
1770
+ | UpdatePrompt13$Outbound
1771
+ | string
1772
+ | string
1773
+ | string
1573
1774
  | null
1574
1775
  | undefined;
1575
1776
  photoRealVersion?: string | undefined;
@@ -1599,9 +1800,14 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1599
1800
  style: z.string().optional(),
1600
1801
  responseFormat: z.nullable(
1601
1802
  z.union([
1602
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1603
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1604
- z.lazy(() => UpdatePromptResponseFormat3$outboundSchema),
1803
+ z.union([
1804
+ z.lazy(() => UpdatePrompt11$outboundSchema),
1805
+ z.lazy(() => UpdatePrompt12$outboundSchema),
1806
+ z.lazy(() => UpdatePrompt13$outboundSchema),
1807
+ ]),
1808
+ UpdatePromptResponseFormat2$outboundSchema,
1809
+ UpdatePromptResponseFormat3$outboundSchema,
1810
+ UpdatePromptResponseFormat4$outboundSchema,
1605
1811
  ]),
1606
1812
  ).optional(),
1607
1813
  photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
@@ -2851,200 +3057,249 @@ export namespace UpdatePromptPromptsFormat$ {
2851
3057
  }
2852
3058
 
2853
3059
  /** @internal */
2854
- export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
2855
- z.ZodNativeEnum<
2856
- typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
2857
- > = z.nativeEnum(
2858
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType,
2859
- );
3060
+ export const UpdatePromptResponseFormatPrompts4$inboundSchema: z.ZodNativeEnum<
3061
+ typeof UpdatePromptResponseFormatPrompts4
3062
+ > = z.nativeEnum(UpdatePromptResponseFormatPrompts4);
3063
+
3064
+ /** @internal */
3065
+ export const UpdatePromptResponseFormatPrompts4$outboundSchema: z.ZodNativeEnum<
3066
+ typeof UpdatePromptResponseFormatPrompts4
3067
+ > = UpdatePromptResponseFormatPrompts4$inboundSchema;
3068
+
3069
+ /**
3070
+ * @internal
3071
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3072
+ */
3073
+ export namespace UpdatePromptResponseFormatPrompts4$ {
3074
+ /** @deprecated use `UpdatePromptResponseFormatPrompts4$inboundSchema` instead. */
3075
+ export const inboundSchema = UpdatePromptResponseFormatPrompts4$inboundSchema;
3076
+ /** @deprecated use `UpdatePromptResponseFormatPrompts4$outboundSchema` instead. */
3077
+ export const outboundSchema =
3078
+ UpdatePromptResponseFormatPrompts4$outboundSchema;
3079
+ }
3080
+
3081
+ /** @internal */
3082
+ export const UpdatePromptResponseFormatPrompts3$inboundSchema: z.ZodNativeEnum<
3083
+ typeof UpdatePromptResponseFormatPrompts3
3084
+ > = z.nativeEnum(UpdatePromptResponseFormatPrompts3);
2860
3085
 
2861
3086
  /** @internal */
2862
- export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema:
2863
- z.ZodNativeEnum<
2864
- typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
2865
- > =
2866
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
3087
+ export const UpdatePromptResponseFormatPrompts3$outboundSchema: z.ZodNativeEnum<
3088
+ typeof UpdatePromptResponseFormatPrompts3
3089
+ > = UpdatePromptResponseFormatPrompts3$inboundSchema;
2867
3090
 
2868
3091
  /**
2869
3092
  * @internal
2870
3093
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2871
3094
  */
2872
- export namespace UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$ {
2873
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema` instead. */
3095
+ export namespace UpdatePromptResponseFormatPrompts3$ {
3096
+ /** @deprecated use `UpdatePromptResponseFormatPrompts3$inboundSchema` instead. */
3097
+ export const inboundSchema = UpdatePromptResponseFormatPrompts3$inboundSchema;
3098
+ /** @deprecated use `UpdatePromptResponseFormatPrompts3$outboundSchema` instead. */
3099
+ export const outboundSchema =
3100
+ UpdatePromptResponseFormatPrompts3$outboundSchema;
3101
+ }
3102
+
3103
+ /** @internal */
3104
+ export const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodNativeEnum<
3105
+ typeof UpdatePromptResponseFormatPrompts2
3106
+ > = z.nativeEnum(UpdatePromptResponseFormatPrompts2);
3107
+
3108
+ /** @internal */
3109
+ export const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodNativeEnum<
3110
+ typeof UpdatePromptResponseFormatPrompts2
3111
+ > = UpdatePromptResponseFormatPrompts2$inboundSchema;
3112
+
3113
+ /**
3114
+ * @internal
3115
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3116
+ */
3117
+ export namespace UpdatePromptResponseFormatPrompts2$ {
3118
+ /** @deprecated use `UpdatePromptResponseFormatPrompts2$inboundSchema` instead. */
3119
+ export const inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
3120
+ /** @deprecated use `UpdatePromptResponseFormatPrompts2$outboundSchema` instead. */
3121
+ export const outboundSchema =
3122
+ UpdatePromptResponseFormatPrompts2$outboundSchema;
3123
+ }
3124
+
3125
+ /** @internal */
3126
+ export const UpdatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema:
3127
+ z.ZodNativeEnum<typeof UpdatePrompt1PromptsResponse200ApplicationJSONType> = z
3128
+ .nativeEnum(UpdatePrompt1PromptsResponse200ApplicationJSONType);
3129
+
3130
+ /** @internal */
3131
+ export const UpdatePrompt1PromptsResponse200ApplicationJSONType$outboundSchema:
3132
+ z.ZodNativeEnum<typeof UpdatePrompt1PromptsResponse200ApplicationJSONType> =
3133
+ UpdatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema;
3134
+
3135
+ /**
3136
+ * @internal
3137
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3138
+ */
3139
+ export namespace UpdatePrompt1PromptsResponse200ApplicationJSONType$ {
3140
+ /** @deprecated use `UpdatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema` instead. */
2874
3141
  export const inboundSchema =
2875
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
2876
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema` instead. */
3142
+ UpdatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema;
3143
+ /** @deprecated use `UpdatePrompt1PromptsResponse200ApplicationJSONType$outboundSchema` instead. */
2877
3144
  export const outboundSchema =
2878
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema;
3145
+ UpdatePrompt1PromptsResponse200ApplicationJSONType$outboundSchema;
2879
3146
  }
2880
3147
 
2881
3148
  /** @internal */
2882
- export const UpdatePromptResponseFormatPrompts3$inboundSchema: z.ZodType<
2883
- UpdatePromptResponseFormatPrompts3,
3149
+ export const UpdatePrompt1Prompts3$inboundSchema: z.ZodType<
3150
+ UpdatePrompt1Prompts3,
2884
3151
  z.ZodTypeDef,
2885
3152
  unknown
2886
3153
  > = z.object({
2887
- type:
2888
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
3154
+ type: UpdatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema,
2889
3155
  });
2890
3156
 
2891
3157
  /** @internal */
2892
- export type UpdatePromptResponseFormatPrompts3$Outbound = {
3158
+ export type UpdatePrompt1Prompts3$Outbound = {
2893
3159
  type: string;
2894
3160
  };
2895
3161
 
2896
3162
  /** @internal */
2897
- export const UpdatePromptResponseFormatPrompts3$outboundSchema: z.ZodType<
2898
- UpdatePromptResponseFormatPrompts3$Outbound,
3163
+ export const UpdatePrompt1Prompts3$outboundSchema: z.ZodType<
3164
+ UpdatePrompt1Prompts3$Outbound,
2899
3165
  z.ZodTypeDef,
2900
- UpdatePromptResponseFormatPrompts3
3166
+ UpdatePrompt1Prompts3
2901
3167
  > = z.object({
2902
- type:
2903
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
3168
+ type: UpdatePrompt1PromptsResponse200ApplicationJSONType$outboundSchema,
2904
3169
  });
2905
3170
 
2906
3171
  /**
2907
3172
  * @internal
2908
3173
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2909
3174
  */
2910
- export namespace UpdatePromptResponseFormatPrompts3$ {
2911
- /** @deprecated use `UpdatePromptResponseFormatPrompts3$inboundSchema` instead. */
2912
- export const inboundSchema = UpdatePromptResponseFormatPrompts3$inboundSchema;
2913
- /** @deprecated use `UpdatePromptResponseFormatPrompts3$outboundSchema` instead. */
2914
- export const outboundSchema =
2915
- UpdatePromptResponseFormatPrompts3$outboundSchema;
2916
- /** @deprecated use `UpdatePromptResponseFormatPrompts3$Outbound` instead. */
2917
- export type Outbound = UpdatePromptResponseFormatPrompts3$Outbound;
3175
+ export namespace UpdatePrompt1Prompts3$ {
3176
+ /** @deprecated use `UpdatePrompt1Prompts3$inboundSchema` instead. */
3177
+ export const inboundSchema = UpdatePrompt1Prompts3$inboundSchema;
3178
+ /** @deprecated use `UpdatePrompt1Prompts3$outboundSchema` instead. */
3179
+ export const outboundSchema = UpdatePrompt1Prompts3$outboundSchema;
3180
+ /** @deprecated use `UpdatePrompt1Prompts3$Outbound` instead. */
3181
+ export type Outbound = UpdatePrompt1Prompts3$Outbound;
2918
3182
  }
2919
3183
 
2920
- export function updatePromptResponseFormatPrompts3ToJSON(
2921
- updatePromptResponseFormatPrompts3: UpdatePromptResponseFormatPrompts3,
3184
+ export function updatePrompt1Prompts3ToJSON(
3185
+ updatePrompt1Prompts3: UpdatePrompt1Prompts3,
2922
3186
  ): string {
2923
3187
  return JSON.stringify(
2924
- UpdatePromptResponseFormatPrompts3$outboundSchema.parse(
2925
- updatePromptResponseFormatPrompts3,
2926
- ),
3188
+ UpdatePrompt1Prompts3$outboundSchema.parse(updatePrompt1Prompts3),
2927
3189
  );
2928
3190
  }
2929
3191
 
2930
- export function updatePromptResponseFormatPrompts3FromJSON(
3192
+ export function updatePrompt1Prompts3FromJSON(
2931
3193
  jsonString: string,
2932
- ): SafeParseResult<UpdatePromptResponseFormatPrompts3, SDKValidationError> {
3194
+ ): SafeParseResult<UpdatePrompt1Prompts3, SDKValidationError> {
2933
3195
  return safeParse(
2934
3196
  jsonString,
2935
- (x) =>
2936
- UpdatePromptResponseFormatPrompts3$inboundSchema.parse(JSON.parse(x)),
2937
- `Failed to parse 'UpdatePromptResponseFormatPrompts3' from JSON`,
3197
+ (x) => UpdatePrompt1Prompts3$inboundSchema.parse(JSON.parse(x)),
3198
+ `Failed to parse 'UpdatePrompt1Prompts3' from JSON`,
2938
3199
  );
2939
3200
  }
2940
3201
 
2941
3202
  /** @internal */
2942
- export const UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2943
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> = z
2944
- .nativeEnum(UpdatePromptResponseFormatPromptsResponse200Type);
3203
+ export const UpdatePrompt1PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
3204
+ typeof UpdatePrompt1PromptsResponse200Type
3205
+ > = z.nativeEnum(UpdatePrompt1PromptsResponse200Type);
2945
3206
 
2946
3207
  /** @internal */
2947
- export const UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2948
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> =
2949
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
3208
+ export const UpdatePrompt1PromptsResponse200Type$outboundSchema:
3209
+ z.ZodNativeEnum<typeof UpdatePrompt1PromptsResponse200Type> =
3210
+ UpdatePrompt1PromptsResponse200Type$inboundSchema;
2950
3211
 
2951
3212
  /**
2952
3213
  * @internal
2953
3214
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2954
3215
  */
2955
- export namespace UpdatePromptResponseFormatPromptsResponse200Type$ {
2956
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
3216
+ export namespace UpdatePrompt1PromptsResponse200Type$ {
3217
+ /** @deprecated use `UpdatePrompt1PromptsResponse200Type$inboundSchema` instead. */
2957
3218
  export const inboundSchema =
2958
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2959
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
3219
+ UpdatePrompt1PromptsResponse200Type$inboundSchema;
3220
+ /** @deprecated use `UpdatePrompt1PromptsResponse200Type$outboundSchema` instead. */
2960
3221
  export const outboundSchema =
2961
- UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema;
3222
+ UpdatePrompt1PromptsResponse200Type$outboundSchema;
2962
3223
  }
2963
3224
 
2964
3225
  /** @internal */
2965
- export const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2966
- UpdatePromptResponseFormatPrompts2,
3226
+ export const UpdatePrompt1Prompts2$inboundSchema: z.ZodType<
3227
+ UpdatePrompt1Prompts2,
2967
3228
  z.ZodTypeDef,
2968
3229
  unknown
2969
3230
  > = z.object({
2970
- type: UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema,
3231
+ type: UpdatePrompt1PromptsResponse200Type$inboundSchema,
2971
3232
  });
2972
3233
 
2973
3234
  /** @internal */
2974
- export type UpdatePromptResponseFormatPrompts2$Outbound = {
3235
+ export type UpdatePrompt1Prompts2$Outbound = {
2975
3236
  type: string;
2976
3237
  };
2977
3238
 
2978
3239
  /** @internal */
2979
- export const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2980
- UpdatePromptResponseFormatPrompts2$Outbound,
3240
+ export const UpdatePrompt1Prompts2$outboundSchema: z.ZodType<
3241
+ UpdatePrompt1Prompts2$Outbound,
2981
3242
  z.ZodTypeDef,
2982
- UpdatePromptResponseFormatPrompts2
3243
+ UpdatePrompt1Prompts2
2983
3244
  > = z.object({
2984
- type: UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema,
3245
+ type: UpdatePrompt1PromptsResponse200Type$outboundSchema,
2985
3246
  });
2986
3247
 
2987
3248
  /**
2988
3249
  * @internal
2989
3250
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2990
3251
  */
2991
- export namespace UpdatePromptResponseFormatPrompts2$ {
2992
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$inboundSchema` instead. */
2993
- export const inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
2994
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$outboundSchema` instead. */
2995
- export const outboundSchema =
2996
- UpdatePromptResponseFormatPrompts2$outboundSchema;
2997
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$Outbound` instead. */
2998
- export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
3252
+ export namespace UpdatePrompt1Prompts2$ {
3253
+ /** @deprecated use `UpdatePrompt1Prompts2$inboundSchema` instead. */
3254
+ export const inboundSchema = UpdatePrompt1Prompts2$inboundSchema;
3255
+ /** @deprecated use `UpdatePrompt1Prompts2$outboundSchema` instead. */
3256
+ export const outboundSchema = UpdatePrompt1Prompts2$outboundSchema;
3257
+ /** @deprecated use `UpdatePrompt1Prompts2$Outbound` instead. */
3258
+ export type Outbound = UpdatePrompt1Prompts2$Outbound;
2999
3259
  }
3000
3260
 
3001
- export function updatePromptResponseFormatPrompts2ToJSON(
3002
- updatePromptResponseFormatPrompts2: UpdatePromptResponseFormatPrompts2,
3261
+ export function updatePrompt1Prompts2ToJSON(
3262
+ updatePrompt1Prompts2: UpdatePrompt1Prompts2,
3003
3263
  ): string {
3004
3264
  return JSON.stringify(
3005
- UpdatePromptResponseFormatPrompts2$outboundSchema.parse(
3006
- updatePromptResponseFormatPrompts2,
3007
- ),
3265
+ UpdatePrompt1Prompts2$outboundSchema.parse(updatePrompt1Prompts2),
3008
3266
  );
3009
3267
  }
3010
3268
 
3011
- export function updatePromptResponseFormatPrompts2FromJSON(
3269
+ export function updatePrompt1Prompts2FromJSON(
3012
3270
  jsonString: string,
3013
- ): SafeParseResult<UpdatePromptResponseFormatPrompts2, SDKValidationError> {
3271
+ ): SafeParseResult<UpdatePrompt1Prompts2, SDKValidationError> {
3014
3272
  return safeParse(
3015
3273
  jsonString,
3016
- (x) =>
3017
- UpdatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
3018
- `Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
3274
+ (x) => UpdatePrompt1Prompts2$inboundSchema.parse(JSON.parse(x)),
3275
+ `Failed to parse 'UpdatePrompt1Prompts2' from JSON`,
3019
3276
  );
3020
3277
  }
3021
3278
 
3022
3279
  /** @internal */
3023
- export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
3024
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
3025
- .nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
3280
+ export const UpdatePrompt1PromptsResponseType$inboundSchema: z.ZodNativeEnum<
3281
+ typeof UpdatePrompt1PromptsResponseType
3282
+ > = z.nativeEnum(UpdatePrompt1PromptsResponseType);
3026
3283
 
3027
3284
  /** @internal */
3028
- export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
3029
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
3030
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
3285
+ export const UpdatePrompt1PromptsResponseType$outboundSchema: z.ZodNativeEnum<
3286
+ typeof UpdatePrompt1PromptsResponseType
3287
+ > = UpdatePrompt1PromptsResponseType$inboundSchema;
3031
3288
 
3032
3289
  /**
3033
3290
  * @internal
3034
3291
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3035
3292
  */
3036
- export namespace UpdatePromptResponseFormatPromptsResponseType$ {
3037
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
3038
- export const inboundSchema =
3039
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
3040
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
3041
- export const outboundSchema =
3042
- UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
3293
+ export namespace UpdatePrompt1PromptsResponseType$ {
3294
+ /** @deprecated use `UpdatePrompt1PromptsResponseType$inboundSchema` instead. */
3295
+ export const inboundSchema = UpdatePrompt1PromptsResponseType$inboundSchema;
3296
+ /** @deprecated use `UpdatePrompt1PromptsResponseType$outboundSchema` instead. */
3297
+ export const outboundSchema = UpdatePrompt1PromptsResponseType$outboundSchema;
3043
3298
  }
3044
3299
 
3045
3300
  /** @internal */
3046
- export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
3047
- UpdatePromptResponseFormatJsonSchema,
3301
+ export const UpdatePrompt1JsonSchema$inboundSchema: z.ZodType<
3302
+ UpdatePrompt1JsonSchema,
3048
3303
  z.ZodTypeDef,
3049
3304
  unknown
3050
3305
  > = z.object({
@@ -3054,17 +3309,17 @@ export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
3054
3309
  });
3055
3310
 
3056
3311
  /** @internal */
3057
- export type UpdatePromptResponseFormatJsonSchema$Outbound = {
3312
+ export type UpdatePrompt1JsonSchema$Outbound = {
3058
3313
  name: string;
3059
3314
  strict?: boolean | undefined;
3060
3315
  schema: { [k: string]: any };
3061
3316
  };
3062
3317
 
3063
3318
  /** @internal */
3064
- export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
3065
- UpdatePromptResponseFormatJsonSchema$Outbound,
3319
+ export const UpdatePrompt1JsonSchema$outboundSchema: z.ZodType<
3320
+ UpdatePrompt1JsonSchema$Outbound,
3066
3321
  z.ZodTypeDef,
3067
- UpdatePromptResponseFormatJsonSchema
3322
+ UpdatePrompt1JsonSchema
3068
3323
  > = z.object({
3069
3324
  name: z.string(),
3070
3325
  strict: z.boolean().optional(),
@@ -3075,46 +3330,41 @@ export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
3075
3330
  * @internal
3076
3331
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3077
3332
  */
3078
- export namespace UpdatePromptResponseFormatJsonSchema$ {
3079
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
3080
- export const inboundSchema =
3081
- UpdatePromptResponseFormatJsonSchema$inboundSchema;
3082
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
3083
- export const outboundSchema =
3084
- UpdatePromptResponseFormatJsonSchema$outboundSchema;
3085
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
3086
- export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
3333
+ export namespace UpdatePrompt1JsonSchema$ {
3334
+ /** @deprecated use `UpdatePrompt1JsonSchema$inboundSchema` instead. */
3335
+ export const inboundSchema = UpdatePrompt1JsonSchema$inboundSchema;
3336
+ /** @deprecated use `UpdatePrompt1JsonSchema$outboundSchema` instead. */
3337
+ export const outboundSchema = UpdatePrompt1JsonSchema$outboundSchema;
3338
+ /** @deprecated use `UpdatePrompt1JsonSchema$Outbound` instead. */
3339
+ export type Outbound = UpdatePrompt1JsonSchema$Outbound;
3087
3340
  }
3088
3341
 
3089
- export function updatePromptResponseFormatJsonSchemaToJSON(
3090
- updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema,
3342
+ export function updatePrompt1JsonSchemaToJSON(
3343
+ updatePrompt1JsonSchema: UpdatePrompt1JsonSchema,
3091
3344
  ): string {
3092
3345
  return JSON.stringify(
3093
- UpdatePromptResponseFormatJsonSchema$outboundSchema.parse(
3094
- updatePromptResponseFormatJsonSchema,
3095
- ),
3346
+ UpdatePrompt1JsonSchema$outboundSchema.parse(updatePrompt1JsonSchema),
3096
3347
  );
3097
3348
  }
3098
3349
 
3099
- export function updatePromptResponseFormatJsonSchemaFromJSON(
3350
+ export function updatePrompt1JsonSchemaFromJSON(
3100
3351
  jsonString: string,
3101
- ): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError> {
3352
+ ): SafeParseResult<UpdatePrompt1JsonSchema, SDKValidationError> {
3102
3353
  return safeParse(
3103
3354
  jsonString,
3104
- (x) =>
3105
- UpdatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
3106
- `Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
3355
+ (x) => UpdatePrompt1JsonSchema$inboundSchema.parse(JSON.parse(x)),
3356
+ `Failed to parse 'UpdatePrompt1JsonSchema' from JSON`,
3107
3357
  );
3108
3358
  }
3109
3359
 
3110
3360
  /** @internal */
3111
- export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
3112
- UpdatePromptResponseFormatPrompts1,
3361
+ export const UpdatePrompt1Prompts1$inboundSchema: z.ZodType<
3362
+ UpdatePrompt1Prompts1,
3113
3363
  z.ZodTypeDef,
3114
3364
  unknown
3115
3365
  > = z.object({
3116
- type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
3117
- json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
3366
+ type: UpdatePrompt1PromptsResponseType$inboundSchema,
3367
+ json_schema: z.lazy(() => UpdatePrompt1JsonSchema$inboundSchema),
3118
3368
  }).transform((v) => {
3119
3369
  return remap$(v, {
3120
3370
  "json_schema": "jsonSchema",
@@ -3122,25 +3372,84 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
3122
3372
  });
3123
3373
 
3124
3374
  /** @internal */
3125
- export type UpdatePromptResponseFormatPrompts1$Outbound = {
3375
+ export type UpdatePrompt1Prompts1$Outbound = {
3126
3376
  type: string;
3127
- json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
3377
+ json_schema: UpdatePrompt1JsonSchema$Outbound;
3128
3378
  };
3129
3379
 
3130
3380
  /** @internal */
3131
- export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
3132
- UpdatePromptResponseFormatPrompts1$Outbound,
3381
+ export const UpdatePrompt1Prompts1$outboundSchema: z.ZodType<
3382
+ UpdatePrompt1Prompts1$Outbound,
3133
3383
  z.ZodTypeDef,
3134
- UpdatePromptResponseFormatPrompts1
3384
+ UpdatePrompt1Prompts1
3135
3385
  > = z.object({
3136
- type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
3137
- jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
3386
+ type: UpdatePrompt1PromptsResponseType$outboundSchema,
3387
+ jsonSchema: z.lazy(() => UpdatePrompt1JsonSchema$outboundSchema),
3138
3388
  }).transform((v) => {
3139
3389
  return remap$(v, {
3140
3390
  jsonSchema: "json_schema",
3141
3391
  });
3142
3392
  });
3143
3393
 
3394
+ /**
3395
+ * @internal
3396
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3397
+ */
3398
+ export namespace UpdatePrompt1Prompts1$ {
3399
+ /** @deprecated use `UpdatePrompt1Prompts1$inboundSchema` instead. */
3400
+ export const inboundSchema = UpdatePrompt1Prompts1$inboundSchema;
3401
+ /** @deprecated use `UpdatePrompt1Prompts1$outboundSchema` instead. */
3402
+ export const outboundSchema = UpdatePrompt1Prompts1$outboundSchema;
3403
+ /** @deprecated use `UpdatePrompt1Prompts1$Outbound` instead. */
3404
+ export type Outbound = UpdatePrompt1Prompts1$Outbound;
3405
+ }
3406
+
3407
+ export function updatePrompt1Prompts1ToJSON(
3408
+ updatePrompt1Prompts1: UpdatePrompt1Prompts1,
3409
+ ): string {
3410
+ return JSON.stringify(
3411
+ UpdatePrompt1Prompts1$outboundSchema.parse(updatePrompt1Prompts1),
3412
+ );
3413
+ }
3414
+
3415
+ export function updatePrompt1Prompts1FromJSON(
3416
+ jsonString: string,
3417
+ ): SafeParseResult<UpdatePrompt1Prompts1, SDKValidationError> {
3418
+ return safeParse(
3419
+ jsonString,
3420
+ (x) => UpdatePrompt1Prompts1$inboundSchema.parse(JSON.parse(x)),
3421
+ `Failed to parse 'UpdatePrompt1Prompts1' from JSON`,
3422
+ );
3423
+ }
3424
+
3425
+ /** @internal */
3426
+ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
3427
+ UpdatePromptResponseFormatPrompts1,
3428
+ z.ZodTypeDef,
3429
+ unknown
3430
+ > = z.union([
3431
+ z.lazy(() => UpdatePrompt1Prompts1$inboundSchema),
3432
+ z.lazy(() => UpdatePrompt1Prompts2$inboundSchema),
3433
+ z.lazy(() => UpdatePrompt1Prompts3$inboundSchema),
3434
+ ]);
3435
+
3436
+ /** @internal */
3437
+ export type UpdatePromptResponseFormatPrompts1$Outbound =
3438
+ | UpdatePrompt1Prompts1$Outbound
3439
+ | UpdatePrompt1Prompts2$Outbound
3440
+ | UpdatePrompt1Prompts3$Outbound;
3441
+
3442
+ /** @internal */
3443
+ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
3444
+ UpdatePromptResponseFormatPrompts1$Outbound,
3445
+ z.ZodTypeDef,
3446
+ UpdatePromptResponseFormatPrompts1
3447
+ > = z.union([
3448
+ z.lazy(() => UpdatePrompt1Prompts1$outboundSchema),
3449
+ z.lazy(() => UpdatePrompt1Prompts2$outboundSchema),
3450
+ z.lazy(() => UpdatePrompt1Prompts3$outboundSchema),
3451
+ ]);
3452
+
3144
3453
  /**
3145
3454
  * @internal
3146
3455
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -3182,16 +3491,24 @@ export const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
3182
3491
  z.ZodTypeDef,
3183
3492
  unknown
3184
3493
  > = z.union([
3185
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
3186
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
3187
- z.lazy(() => UpdatePromptResponseFormatPrompts3$inboundSchema),
3494
+ z.union([
3495
+ z.lazy(() => UpdatePrompt1Prompts1$inboundSchema),
3496
+ z.lazy(() => UpdatePrompt1Prompts2$inboundSchema),
3497
+ z.lazy(() => UpdatePrompt1Prompts3$inboundSchema),
3498
+ ]),
3499
+ UpdatePromptResponseFormatPrompts2$inboundSchema,
3500
+ UpdatePromptResponseFormatPrompts3$inboundSchema,
3501
+ UpdatePromptResponseFormatPrompts4$inboundSchema,
3188
3502
  ]);
3189
3503
 
3190
3504
  /** @internal */
3191
3505
  export type UpdatePromptPromptsResponseFormat$Outbound =
3192
- | UpdatePromptResponseFormatPrompts1$Outbound
3193
- | UpdatePromptResponseFormatPrompts2$Outbound
3194
- | UpdatePromptResponseFormatPrompts3$Outbound;
3506
+ | UpdatePrompt1Prompts1$Outbound
3507
+ | UpdatePrompt1Prompts2$Outbound
3508
+ | UpdatePrompt1Prompts3$Outbound
3509
+ | string
3510
+ | string
3511
+ | string;
3195
3512
 
3196
3513
  /** @internal */
3197
3514
  export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
@@ -3199,9 +3516,14 @@ export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
3199
3516
  z.ZodTypeDef,
3200
3517
  UpdatePromptPromptsResponseFormat
3201
3518
  > = z.union([
3202
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
3203
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
3204
- z.lazy(() => UpdatePromptResponseFormatPrompts3$outboundSchema),
3519
+ z.union([
3520
+ z.lazy(() => UpdatePrompt1Prompts1$outboundSchema),
3521
+ z.lazy(() => UpdatePrompt1Prompts2$outboundSchema),
3522
+ z.lazy(() => UpdatePrompt1Prompts3$outboundSchema),
3523
+ ]),
3524
+ UpdatePromptResponseFormatPrompts2$outboundSchema,
3525
+ UpdatePromptResponseFormatPrompts3$outboundSchema,
3526
+ UpdatePromptResponseFormatPrompts4$outboundSchema,
3205
3527
  ]);
3206
3528
 
3207
3529
  /**
@@ -3346,9 +3668,14 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
3346
3668
  style: z.string().optional(),
3347
3669
  responseFormat: z.nullable(
3348
3670
  z.union([
3349
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
3350
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
3351
- z.lazy(() => UpdatePromptResponseFormatPrompts3$inboundSchema),
3671
+ z.union([
3672
+ z.lazy(() => UpdatePrompt1Prompts1$inboundSchema),
3673
+ z.lazy(() => UpdatePrompt1Prompts2$inboundSchema),
3674
+ z.lazy(() => UpdatePrompt1Prompts3$inboundSchema),
3675
+ ]),
3676
+ UpdatePromptResponseFormatPrompts2$inboundSchema,
3677
+ UpdatePromptResponseFormatPrompts3$inboundSchema,
3678
+ UpdatePromptResponseFormatPrompts4$inboundSchema,
3352
3679
  ]),
3353
3680
  ).optional(),
3354
3681
  photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema
@@ -3378,9 +3705,12 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
3378
3705
  quality?: string | undefined;
3379
3706
  style?: string | undefined;
3380
3707
  responseFormat?:
3381
- | UpdatePromptResponseFormatPrompts1$Outbound
3382
- | UpdatePromptResponseFormatPrompts2$Outbound
3383
- | UpdatePromptResponseFormatPrompts3$Outbound
3708
+ | UpdatePrompt1Prompts1$Outbound
3709
+ | UpdatePrompt1Prompts2$Outbound
3710
+ | UpdatePrompt1Prompts3$Outbound
3711
+ | string
3712
+ | string
3713
+ | string
3384
3714
  | null
3385
3715
  | undefined;
3386
3716
  photoRealVersion?: string | undefined;
@@ -3410,9 +3740,14 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
3410
3740
  style: z.string().optional(),
3411
3741
  responseFormat: z.nullable(
3412
3742
  z.union([
3413
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
3414
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
3415
- z.lazy(() => UpdatePromptResponseFormatPrompts3$outboundSchema),
3743
+ z.union([
3744
+ z.lazy(() => UpdatePrompt1Prompts1$outboundSchema),
3745
+ z.lazy(() => UpdatePrompt1Prompts2$outboundSchema),
3746
+ z.lazy(() => UpdatePrompt1Prompts3$outboundSchema),
3747
+ ]),
3748
+ UpdatePromptResponseFormatPrompts2$outboundSchema,
3749
+ UpdatePromptResponseFormatPrompts3$outboundSchema,
3750
+ UpdatePromptResponseFormatPrompts4$outboundSchema,
3416
3751
  ]),
3417
3752
  ).optional(),
3418
3753
  photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema