@orq-ai/node 3.1.1 → 3.1.2

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 (304) hide show
  1. package/README.md +34 -34
  2. package/docs/sdks/deployments/README.md +9 -86
  3. package/docs/sdks/files/README.md +174 -2
  4. package/docs/sdks/orq/README.md +1 -1
  5. package/docs/sdks/prompt/README.md +6 -0
  6. package/docs/sdks/prompts/README.md +128 -135
  7. package/docs/sdks/snippets/README.md +84 -0
  8. package/docs/sdks/templates/README.md +80 -0
  9. package/funcs/{deploymentsList.d.ts → deploymentsAll.d.ts} +2 -2
  10. package/funcs/deploymentsAll.d.ts.map +1 -0
  11. package/funcs/{deploymentsList.js → deploymentsAll.js} +4 -5
  12. package/funcs/deploymentsAll.js.map +1 -0
  13. package/funcs/deploymentsInvoke.d.ts +7 -1
  14. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  15. package/funcs/deploymentsInvoke.js +11 -10
  16. package/funcs/deploymentsInvoke.js.map +1 -1
  17. package/funcs/filesBulkUpload.d.ts +15 -0
  18. package/funcs/filesBulkUpload.d.ts.map +1 -0
  19. package/funcs/{promptsList.js → filesBulkUpload.js} +15 -18
  20. package/funcs/filesBulkUpload.js.map +1 -0
  21. package/funcs/{promptSnippetsDelete.d.ts → filesUpdate.d.ts} +3 -3
  22. package/funcs/filesUpdate.d.ts.map +1 -0
  23. package/funcs/{promptSnippetsGetByKey.js → filesUpdate.js} +13 -12
  24. package/funcs/filesUpdate.js.map +1 -0
  25. package/funcs/{promptSnippetsList.d.ts → promptSnippetsFindOne.d.ts} +3 -3
  26. package/funcs/promptSnippetsFindOne.d.ts.map +1 -0
  27. package/funcs/{promptSnippetsGet.js → promptSnippetsFindOne.js} +6 -6
  28. package/funcs/promptSnippetsFindOne.js.map +1 -0
  29. package/funcs/{promptSnippetsCreate.d.ts → promptTemplatesGetAll.d.ts} +3 -3
  30. package/funcs/promptTemplatesGetAll.d.ts.map +1 -0
  31. package/funcs/{promptSnippetsList.js → promptTemplatesGetAll.js} +13 -13
  32. package/funcs/promptTemplatesGetAll.js.map +1 -0
  33. package/funcs/promptsCreate.d.ts +1 -1
  34. package/funcs/promptsCreate.js +2 -2
  35. package/funcs/promptsCreate.js.map +1 -1
  36. package/funcs/{promptsRetrieve.d.ts → promptsCreateVersion.d.ts} +3 -6
  37. package/funcs/{promptSnippetsDelete.d.ts.map → promptsCreateVersion.d.ts.map} +1 -1
  38. package/funcs/promptsCreateVersion.js +110 -0
  39. package/funcs/promptsCreateVersion.js.map +1 -0
  40. package/funcs/promptsDelete.js +1 -1
  41. package/funcs/promptsDelete.js.map +1 -1
  42. package/funcs/{promptSnippetsGet.d.ts → promptsDuplicate.d.ts} +3 -3
  43. package/funcs/promptsDuplicate.d.ts.map +1 -0
  44. package/funcs/{promptSnippetsDelete.js → promptsDuplicate.js} +8 -8
  45. package/funcs/promptsDuplicate.js.map +1 -0
  46. package/funcs/promptsGetAll.d.ts +12 -0
  47. package/funcs/promptsGetAll.d.ts.map +1 -0
  48. package/funcs/{promptSnippetsCreate.js → promptsGetAll.js} +8 -8
  49. package/funcs/promptsGetAll.js.map +1 -0
  50. package/funcs/promptsGetOne.d.ts +12 -0
  51. package/funcs/promptsGetOne.d.ts.map +1 -0
  52. package/funcs/{promptsRetrieve.js → promptsGetOne.js} +8 -10
  53. package/funcs/promptsGetOne.js.map +1 -0
  54. package/funcs/promptsUpdate.js +1 -1
  55. package/funcs/promptsUpdate.js.map +1 -1
  56. package/jsr.json +1 -1
  57. package/lib/config.d.ts +2 -10
  58. package/lib/config.d.ts.map +1 -1
  59. package/lib/config.js +2 -2
  60. package/lib/config.js.map +1 -1
  61. package/lib/env.d.ts +0 -13
  62. package/lib/env.d.ts.map +1 -1
  63. package/lib/env.js +0 -17
  64. package/lib/env.js.map +1 -1
  65. package/lib/sdks.js +1 -1
  66. package/lib/sdks.js.map +1 -1
  67. package/models/components/deployments.d.ts +5 -0
  68. package/models/components/deployments.d.ts.map +1 -1
  69. package/models/components/deployments.js +2 -0
  70. package/models/components/deployments.js.map +1 -1
  71. package/models/errors/index.d.ts +0 -2
  72. package/models/errors/index.d.ts.map +1 -1
  73. package/models/errors/index.js +0 -2
  74. package/models/errors/index.js.map +1 -1
  75. package/models/operations/bulkfileupload.d.ts +173 -0
  76. package/models/operations/bulkfileupload.d.ts.map +1 -0
  77. package/models/operations/bulkfileupload.js +210 -0
  78. package/models/operations/bulkfileupload.js.map +1 -0
  79. package/models/operations/createcontact.js +2 -2
  80. package/models/operations/createprompt.d.ts +381 -702
  81. package/models/operations/createprompt.d.ts.map +1 -1
  82. package/models/operations/createprompt.js +481 -641
  83. package/models/operations/createprompt.js.map +1 -1
  84. package/models/operations/createpromptversion.d.ts +2003 -0
  85. package/models/operations/createpromptversion.d.ts.map +1 -0
  86. package/models/operations/createpromptversion.js +1852 -0
  87. package/models/operations/createpromptversion.js.map +1 -0
  88. package/models/operations/deleteprompt.d.ts +1 -1
  89. package/models/operations/deploymentgetconfig.d.ts +0 -39
  90. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  91. package/models/operations/deploymentgetconfig.js +4 -29
  92. package/models/operations/deploymentgetconfig.js.map +1 -1
  93. package/models/operations/deploymentinvoke.d.ts +683 -23
  94. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  95. package/models/operations/deploymentinvoke.js +614 -23
  96. package/models/operations/deploymentinvoke.js.map +1 -1
  97. package/models/operations/deployments.d.ts +8 -54
  98. package/models/operations/deployments.d.ts.map +1 -1
  99. package/models/operations/deployments.js +13 -44
  100. package/models/operations/deployments.js.map +1 -1
  101. package/models/operations/duplicateprompt.d.ts +32 -0
  102. package/models/operations/duplicateprompt.d.ts.map +1 -0
  103. package/models/operations/{deletepromptsnippet.js → duplicateprompt.js} +17 -17
  104. package/models/operations/duplicateprompt.js.map +1 -0
  105. package/models/operations/fileget.js +2 -2
  106. package/models/operations/filelist.d.ts +5 -1
  107. package/models/operations/filelist.d.ts.map +1 -1
  108. package/models/operations/filelist.js +12 -4
  109. package/models/operations/filelist.js.map +1 -1
  110. package/models/operations/fileupdate.d.ts +143 -0
  111. package/models/operations/fileupdate.d.ts.map +1 -0
  112. package/models/operations/fileupdate.js +193 -0
  113. package/models/operations/fileupdate.js.map +1 -0
  114. package/models/operations/fileupload.js +2 -2
  115. package/models/operations/findonepromptsnippet.d.ts +4768 -938
  116. package/models/operations/findonepromptsnippet.d.ts.map +1 -1
  117. package/models/operations/findonepromptsnippet.js +4751 -984
  118. package/models/operations/findonepromptsnippet.js.map +1 -1
  119. package/models/operations/getallprompts.d.ts +9926 -546
  120. package/models/operations/getallprompts.d.ts.map +1 -1
  121. package/models/operations/getallprompts.js +8805 -557
  122. package/models/operations/getallprompts.js.map +1 -1
  123. package/models/operations/getallprompttemplates.d.ts +6607 -0
  124. package/models/operations/getallprompttemplates.d.ts.map +1 -0
  125. package/models/operations/getallprompttemplates.js +6225 -0
  126. package/models/operations/getallprompttemplates.js.map +1 -0
  127. package/models/operations/getoneprompt.d.ts +1 -1203
  128. package/models/operations/getoneprompt.d.ts.map +1 -1
  129. package/models/operations/getoneprompt.js +1 -1011
  130. package/models/operations/getoneprompt.js.map +1 -1
  131. package/models/operations/index.d.ts +5 -8
  132. package/models/operations/index.d.ts.map +1 -1
  133. package/models/operations/index.js +5 -8
  134. package/models/operations/index.js.map +1 -1
  135. package/models/operations/updateprompt.d.ts +5979 -1121
  136. package/models/operations/updateprompt.d.ts.map +1 -1
  137. package/models/operations/updateprompt.js +5729 -1119
  138. package/models/operations/updateprompt.js.map +1 -1
  139. package/package.json +1 -1
  140. package/sdk/deployments.d.ts +6 -10
  141. package/sdk/deployments.d.ts.map +1 -1
  142. package/sdk/deployments.js +6 -14
  143. package/sdk/deployments.js.map +1 -1
  144. package/sdk/files.d.ts +11 -0
  145. package/sdk/files.d.ts.map +1 -1
  146. package/sdk/files.js +17 -0
  147. package/sdk/files.js.map +1 -1
  148. package/sdk/prompt.d.ts +10 -0
  149. package/sdk/prompt.d.ts.map +1 -0
  150. package/sdk/prompt.js +19 -0
  151. package/sdk/prompt.js.map +1 -0
  152. package/sdk/prompts.d.ts +14 -26
  153. package/sdk/prompts.d.ts.map +1 -1
  154. package/sdk/prompts.js +25 -37
  155. package/sdk/prompts.js.map +1 -1
  156. package/sdk/sdk.d.ts +3 -3
  157. package/sdk/sdk.d.ts.map +1 -1
  158. package/sdk/sdk.js +3 -3
  159. package/sdk/sdk.js.map +1 -1
  160. package/sdk/snippets.d.ts +9 -0
  161. package/sdk/snippets.d.ts.map +1 -0
  162. package/sdk/snippets.js +19 -0
  163. package/sdk/snippets.js.map +1 -0
  164. package/sdk/templates.d.ts +9 -0
  165. package/sdk/templates.d.ts.map +1 -0
  166. package/sdk/templates.js +19 -0
  167. package/sdk/templates.js.map +1 -0
  168. package/src/funcs/{deploymentsList.ts → deploymentsAll.ts} +2 -3
  169. package/src/funcs/deploymentsInvoke.ts +16 -21
  170. package/src/funcs/filesBulkUpload.ts +129 -0
  171. package/src/funcs/{promptSnippetsGetByKey.ts → filesUpdate.ts} +16 -18
  172. package/src/funcs/{promptSnippetsGet.ts → promptSnippetsFindOne.ts} +4 -4
  173. package/src/funcs/{promptSnippetsList.ts → promptTemplatesGetAll.ts} +16 -16
  174. package/src/funcs/promptsCreate.ts +2 -2
  175. package/src/funcs/promptsCreateVersion.ts +131 -0
  176. package/src/funcs/promptsDelete.ts +1 -1
  177. package/src/funcs/{promptSnippetsDelete.ts → promptsDuplicate.ts} +7 -8
  178. package/src/funcs/{promptSnippetsCreate.ts → promptsGetAll.ts} +9 -9
  179. package/src/funcs/{promptsRetrieve.ts → promptsGetOne.ts} +8 -10
  180. package/src/funcs/promptsUpdate.ts +1 -1
  181. package/src/lib/config.ts +2 -12
  182. package/src/lib/env.ts +0 -32
  183. package/src/lib/sdks.ts +2 -2
  184. package/src/models/components/deployments.ts +7 -0
  185. package/src/models/errors/index.ts +0 -2
  186. package/src/models/operations/bulkfileupload.ts +315 -0
  187. package/src/models/operations/createcontact.ts +2 -2
  188. package/src/models/operations/createprompt.ts +690 -1048
  189. package/src/models/operations/createpromptversion.ts +3703 -0
  190. package/src/models/operations/deleteprompt.ts +1 -1
  191. package/src/models/operations/deploymentgetconfig.ts +0 -44
  192. package/src/models/operations/deploymentinvoke.ts +1415 -174
  193. package/src/models/operations/deployments.ts +18 -68
  194. package/src/models/operations/duplicateprompt.ts +69 -0
  195. package/src/models/operations/fileget.ts +2 -2
  196. package/src/models/operations/filelist.ts +17 -5
  197. package/src/models/operations/fileupdate.ts +298 -0
  198. package/src/models/operations/fileupload.ts +2 -2
  199. package/src/models/operations/findonepromptsnippet.ts +11104 -1818
  200. package/src/models/operations/getallprompts.ts +17860 -1336
  201. package/src/models/operations/getallprompttemplates.ts +13690 -0
  202. package/src/models/operations/getoneprompt.ts +1 -1914
  203. package/src/models/operations/index.ts +5 -8
  204. package/src/models/operations/updateprompt.ts +12561 -2071
  205. package/src/sdk/deployments.ts +11 -25
  206. package/src/sdk/files.ts +33 -0
  207. package/src/sdk/prompt.ts +19 -0
  208. package/src/sdk/prompts.ts +39 -51
  209. package/src/sdk/sdk.ts +4 -4
  210. package/src/sdk/snippets.ts +24 -0
  211. package/src/sdk/templates.ts +24 -0
  212. package/docs/sdks/promptsnippets/README.md +0 -488
  213. package/funcs/deploymentsList.d.ts.map +0 -1
  214. package/funcs/deploymentsList.js.map +0 -1
  215. package/funcs/deploymentsStream.d.ts +0 -16
  216. package/funcs/deploymentsStream.d.ts.map +0 -1
  217. package/funcs/deploymentsStream.js +0 -125
  218. package/funcs/deploymentsStream.js.map +0 -1
  219. package/funcs/promptSnippetsCreate.d.ts.map +0 -1
  220. package/funcs/promptSnippetsCreate.js.map +0 -1
  221. package/funcs/promptSnippetsDelete.js.map +0 -1
  222. package/funcs/promptSnippetsGet.d.ts.map +0 -1
  223. package/funcs/promptSnippetsGet.js.map +0 -1
  224. package/funcs/promptSnippetsGetByKey.d.ts +0 -12
  225. package/funcs/promptSnippetsGetByKey.d.ts.map +0 -1
  226. package/funcs/promptSnippetsGetByKey.js.map +0 -1
  227. package/funcs/promptSnippetsList.d.ts.map +0 -1
  228. package/funcs/promptSnippetsList.js.map +0 -1
  229. package/funcs/promptSnippetsUpdate.d.ts +0 -13
  230. package/funcs/promptSnippetsUpdate.d.ts.map +0 -1
  231. package/funcs/promptSnippetsUpdate.js +0 -114
  232. package/funcs/promptSnippetsUpdate.js.map +0 -1
  233. package/funcs/promptsGetVersion.d.ts +0 -16
  234. package/funcs/promptsGetVersion.d.ts.map +0 -1
  235. package/funcs/promptsGetVersion.js +0 -120
  236. package/funcs/promptsGetVersion.js.map +0 -1
  237. package/funcs/promptsList.d.ts +0 -15
  238. package/funcs/promptsList.d.ts.map +0 -1
  239. package/funcs/promptsList.js.map +0 -1
  240. package/funcs/promptsListVersions.d.ts +0 -15
  241. package/funcs/promptsListVersions.d.ts.map +0 -1
  242. package/funcs/promptsListVersions.js +0 -118
  243. package/funcs/promptsListVersions.js.map +0 -1
  244. package/funcs/promptsRetrieve.d.ts.map +0 -1
  245. package/funcs/promptsRetrieve.js.map +0 -1
  246. package/models/errors/getpromptversion.d.ts +0 -36
  247. package/models/errors/getpromptversion.d.ts.map +0 -1
  248. package/models/errors/getpromptversion.js +0 -79
  249. package/models/errors/getpromptversion.js.map +0 -1
  250. package/models/errors/updatepromptsnippet.d.ts +0 -36
  251. package/models/errors/updatepromptsnippet.d.ts.map +0 -1
  252. package/models/errors/updatepromptsnippet.js +0 -79
  253. package/models/errors/updatepromptsnippet.js.map +0 -1
  254. package/models/operations/createpromptsnippet.d.ts +0 -3567
  255. package/models/operations/createpromptsnippet.d.ts.map +0 -1
  256. package/models/operations/createpromptsnippet.js +0 -3056
  257. package/models/operations/createpromptsnippet.js.map +0 -1
  258. package/models/operations/deletepromptsnippet.d.ts +0 -32
  259. package/models/operations/deletepromptsnippet.d.ts.map +0 -1
  260. package/models/operations/deletepromptsnippet.js.map +0 -1
  261. package/models/operations/deploymentstream.d.ts +0 -1622
  262. package/models/operations/deploymentstream.d.ts.map +0 -1
  263. package/models/operations/deploymentstream.js +0 -1571
  264. package/models/operations/deploymentstream.js.map +0 -1
  265. package/models/operations/findonebykeypromptsnippet.d.ts +0 -2448
  266. package/models/operations/findonebykeypromptsnippet.d.ts.map +0 -1
  267. package/models/operations/findonebykeypromptsnippet.js +0 -2133
  268. package/models/operations/findonebykeypromptsnippet.js.map +0 -1
  269. package/models/operations/getallpromptsnippets.d.ts +0 -2512
  270. package/models/operations/getallpromptsnippets.d.ts.map +0 -1
  271. package/models/operations/getallpromptsnippets.js +0 -2195
  272. package/models/operations/getallpromptsnippets.js.map +0 -1
  273. package/models/operations/getpromptversion.d.ts +0 -1228
  274. package/models/operations/getpromptversion.d.ts.map +0 -1
  275. package/models/operations/getpromptversion.js +0 -1080
  276. package/models/operations/getpromptversion.js.map +0 -1
  277. package/models/operations/listpromptversions.d.ts +0 -1286
  278. package/models/operations/listpromptversions.d.ts.map +0 -1
  279. package/models/operations/listpromptversions.js +0 -1142
  280. package/models/operations/listpromptversions.js.map +0 -1
  281. package/models/operations/updatepromptsnippet.d.ts +0 -3595
  282. package/models/operations/updatepromptsnippet.d.ts.map +0 -1
  283. package/models/operations/updatepromptsnippet.js +0 -3116
  284. package/models/operations/updatepromptsnippet.js.map +0 -1
  285. package/sdk/promptsnippets.d.ts +0 -29
  286. package/sdk/promptsnippets.d.ts.map +0 -1
  287. package/sdk/promptsnippets.js +0 -54
  288. package/sdk/promptsnippets.js.map +0 -1
  289. package/src/funcs/deploymentsStream.ts +0 -150
  290. package/src/funcs/promptSnippetsUpdate.ts +0 -139
  291. package/src/funcs/promptsGetVersion.ts +0 -146
  292. package/src/funcs/promptsList.ts +0 -133
  293. package/src/funcs/promptsListVersions.ts +0 -139
  294. package/src/models/errors/getpromptversion.ts +0 -71
  295. package/src/models/errors/updatepromptsnippet.ts +0 -71
  296. package/src/models/operations/createpromptsnippet.ts +0 -6239
  297. package/src/models/operations/deletepromptsnippet.ts +0 -69
  298. package/src/models/operations/deploymentstream.ts +0 -3062
  299. package/src/models/operations/findonebykeypromptsnippet.ts +0 -4483
  300. package/src/models/operations/getallpromptsnippets.ts +0 -4472
  301. package/src/models/operations/getpromptversion.ts +0 -2012
  302. package/src/models/operations/listpromptversions.ts +0 -2146
  303. package/src/models/operations/updatepromptsnippet.ts +0 -6544
  304. package/src/sdk/promptsnippets.ts +0 -99
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of the model
14
14
  */
15
- export const CreatePromptModelType = {
15
+ export const ModelType = {
16
16
  Chat: "chat",
17
17
  Completion: "completion",
18
18
  Embedding: "embedding",
@@ -26,12 +26,12 @@ export const CreatePromptModelType = {
26
26
  /**
27
27
  * The type of the model
28
28
  */
29
- export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
29
+ export type ModelType = ClosedEnum<typeof ModelType>;
30
30
 
31
31
  /**
32
32
  * Only supported on `image` models.
33
33
  */
34
- export const CreatePromptFormat = {
34
+ export const Format = {
35
35
  Url: "url",
36
36
  B64Json: "b64_json",
37
37
  Text: "text",
@@ -40,47 +40,45 @@ export const CreatePromptFormat = {
40
40
  /**
41
41
  * Only supported on `image` models.
42
42
  */
43
- export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
43
+ export type Format = ClosedEnum<typeof Format>;
44
44
 
45
45
  /**
46
46
  * Only supported on `image` models.
47
47
  */
48
- export const CreatePromptQuality = {
48
+ export const Quality = {
49
49
  Standard: "standard",
50
50
  Hd: "hd",
51
51
  } as const;
52
52
  /**
53
53
  * Only supported on `image` models.
54
54
  */
55
- export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
55
+ export type Quality = ClosedEnum<typeof Quality>;
56
56
 
57
- export const CreatePromptResponseFormatPromptsType = {
57
+ export const CreatePromptResponseFormatType = {
58
58
  JsonObject: "json_object",
59
59
  } as const;
60
- export type CreatePromptResponseFormatPromptsType = ClosedEnum<
61
- typeof CreatePromptResponseFormatPromptsType
60
+ export type CreatePromptResponseFormatType = ClosedEnum<
61
+ typeof CreatePromptResponseFormatType
62
62
  >;
63
63
 
64
- export type CreatePromptResponseFormat2 = {
65
- type: CreatePromptResponseFormatPromptsType;
64
+ export type ResponseFormat2 = {
65
+ type: CreatePromptResponseFormatType;
66
66
  };
67
67
 
68
- export const CreatePromptResponseFormatType = {
68
+ export const ResponseFormatType = {
69
69
  JsonSchema: "json_schema",
70
70
  } as const;
71
- export type CreatePromptResponseFormatType = ClosedEnum<
72
- typeof CreatePromptResponseFormatType
73
- >;
71
+ export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
74
72
 
75
- export type CreatePromptResponseFormatJsonSchema = {
73
+ export type JsonSchema = {
76
74
  name: string;
77
75
  strict: boolean;
78
76
  schema: { [k: string]: any };
79
77
  };
80
78
 
81
- export type CreatePromptResponseFormat1 = {
82
- type: CreatePromptResponseFormatType;
83
- jsonSchema: CreatePromptResponseFormatJsonSchema;
79
+ export type ResponseFormat1 = {
80
+ type: ResponseFormatType;
81
+ jsonSchema: JsonSchema;
84
82
  };
85
83
 
86
84
  /**
@@ -94,57 +92,36 @@ export type CreatePromptResponseFormat1 = {
94
92
  *
95
93
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
96
94
  */
97
- export type CreatePromptResponseFormat =
98
- | CreatePromptResponseFormat2
99
- | CreatePromptResponseFormat1;
95
+ export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
100
96
 
101
97
  /**
102
98
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
103
99
  */
104
- export const CreatePromptPhotoRealVersion = {
100
+ export const PhotoRealVersion = {
105
101
  V1: "v1",
106
102
  V2: "v2",
107
103
  } as const;
108
104
  /**
109
105
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
110
106
  */
111
- export type CreatePromptPhotoRealVersion = ClosedEnum<
112
- typeof CreatePromptPhotoRealVersion
113
- >;
107
+ export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
114
108
 
115
109
  /**
116
110
  * The format to return the embeddings
117
111
  */
118
- export const CreatePromptEncodingFormat = {
112
+ export const EncodingFormat = {
119
113
  Float: "float",
120
114
  Base64: "base64",
121
115
  } as const;
122
116
  /**
123
117
  * The format to return the embeddings
124
118
  */
125
- export type CreatePromptEncodingFormat = ClosedEnum<
126
- typeof CreatePromptEncodingFormat
127
- >;
128
-
129
- /**
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.
131
- */
132
- export const CreatePromptReasoningEffort = {
133
- Low: "low",
134
- Medium: "medium",
135
- High: "high",
136
- } as const;
137
- /**
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.
139
- */
140
- export type CreatePromptReasoningEffort = ClosedEnum<
141
- typeof CreatePromptReasoningEffort
142
- >;
119
+ export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
143
120
 
144
121
  /**
145
122
  * Model Parameters: Not all parameters apply to every model
146
123
  */
147
- export type CreatePromptModelParameters = {
124
+ export type ModelParameters = {
148
125
  /**
149
126
  * Only supported on `chat` and `completion` models.
150
127
  */
@@ -180,7 +157,7 @@ export type CreatePromptModelParameters = {
180
157
  /**
181
158
  * Only supported on `image` models.
182
159
  */
183
- format?: CreatePromptFormat | undefined;
160
+ format?: Format | undefined;
184
161
  /**
185
162
  * Only supported on `image` models.
186
163
  */
@@ -188,7 +165,7 @@ export type CreatePromptModelParameters = {
188
165
  /**
189
166
  * Only supported on `image` models.
190
167
  */
191
- quality?: CreatePromptQuality | undefined;
168
+ quality?: Quality | undefined;
192
169
  /**
193
170
  * Only supported on `image` models.
194
171
  */
@@ -204,26 +181,18 @@ export type CreatePromptModelParameters = {
204
181
  *
205
182
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
206
183
  */
207
- responseFormat?:
208
- | CreatePromptResponseFormat2
209
- | CreatePromptResponseFormat1
210
- | null
211
- | undefined;
184
+ responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
212
185
  /**
213
186
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
214
187
  */
215
- photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
188
+ photoRealVersion?: PhotoRealVersion | undefined;
216
189
  /**
217
190
  * The format to return the embeddings
218
191
  */
219
- encodingFormat?: CreatePromptEncodingFormat | undefined;
220
- /**
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.
222
- */
223
- reasoningEffort?: CreatePromptReasoningEffort | undefined;
192
+ encodingFormat?: EncodingFormat | undefined;
224
193
  };
225
194
 
226
- export const CreatePromptProvider = {
195
+ export const Provider = {
227
196
  Cohere: "cohere",
228
197
  Openai: "openai",
229
198
  Anthropic: "anthropic",
@@ -240,10 +209,8 @@ export const CreatePromptProvider = {
240
209
  Leonardoai: "leonardoai",
241
210
  Nvidia: "nvidia",
242
211
  Jina: "jina",
243
- Togetherai: "togetherai",
244
- Elevenlabs: "elevenlabs",
245
212
  } as const;
246
- export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
213
+ export type Provider = ClosedEnum<typeof Provider>;
247
214
 
248
215
  /**
249
216
  * The role of the prompt message
@@ -343,104 +310,49 @@ export type CreatePromptMessages = {
343
310
  toolCalls?: Array<CreatePromptToolCalls> | undefined;
344
311
  };
345
312
 
346
- /**
347
- * A list of messages compatible with the openAI schema
348
- */
349
- export type CreatePromptPromptConfig = {
313
+ export type PromptConfig = {
350
314
  stream?: boolean | undefined;
351
315
  model?: string | undefined;
352
316
  /**
353
317
  * The type of the model
354
318
  */
355
- modelType?: CreatePromptModelType | undefined;
319
+ modelType?: ModelType | undefined;
356
320
  /**
357
321
  * Model Parameters: Not all parameters apply to every model
358
322
  */
359
- modelParameters?: CreatePromptModelParameters | undefined;
360
- provider?: CreatePromptProvider | undefined;
323
+ modelParameters?: ModelParameters | undefined;
324
+ provider?: Provider | undefined;
361
325
  version?: string | undefined;
362
326
  messages: Array<CreatePromptMessages>;
363
327
  };
364
328
 
365
- export const CreatePromptUseCases = {
366
- Agents: "Agents",
367
- AgentsSimulations: "Agents simulations",
368
- APIInteraction: "API interaction",
369
- AutonomousAgents: "Autonomous Agents",
370
- Chatbots: "Chatbots",
371
- Classification: "Classification",
372
- CodeUnderstanding: "Code understanding",
373
- CodeWriting: "Code writing",
374
- DocumentsQA: "Documents QA",
375
- Conversation: "Conversation",
376
- Extraction: "Extraction",
377
- MultiModal: "Multi-modal",
378
- SelfChecking: "Self-checking",
379
- Sql: "SQL",
380
- Summarization: "Summarization",
381
- Tagging: "Tagging",
382
- } as const;
383
- export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
384
-
385
- /**
386
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
387
- */
388
- export const CreatePromptLanguage = {
389
- Chinese: "Chinese",
390
- Dutch: "Dutch",
391
- English: "English",
392
- French: "French",
393
- German: "German",
394
- Russian: "Russian",
395
- Spanish: "Spanish",
396
- } as const;
397
- /**
398
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
399
- */
400
- export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
401
-
402
329
  export type CreatePromptMetadata = {
403
- /**
404
- * 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
405
- */
406
- useCases?: Array<CreatePromptUseCases> | undefined;
407
- /**
408
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
409
- */
410
- language?: CreatePromptLanguage | undefined;
411
- };
412
-
413
- export type CreatePromptRequestBody = {
414
- /**
415
- * The prompt’s name, meant to be displayable in the UI.
416
- */
417
- displayName: string;
418
- /**
419
- * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
420
- */
421
- description?: string | null | undefined;
422
- /**
423
- * A list of messages compatible with the openAI schema
424
- */
425
- promptConfig: CreatePromptPromptConfig;
426
- metadata?: CreatePromptMetadata | undefined;
427
- /**
428
- * 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.
429
- */
430
- path: string;
330
+ useCases?: Array<string> | undefined;
331
+ language?: string | undefined;
431
332
  };
432
333
 
433
334
  export const CreatePromptPromptsType = {
434
335
  Prompt: "prompt",
336
+ Snippet: "snippet",
337
+ Template: "template",
435
338
  } as const;
436
339
  export type CreatePromptPromptsType = ClosedEnum<
437
340
  typeof CreatePromptPromptsType
438
341
  >;
439
342
 
343
+ export type CreatePromptRequestBody = {
344
+ displayName: string;
345
+ description?: string | null | undefined;
346
+ promptConfig?: PromptConfig | undefined;
347
+ metadata?: CreatePromptMetadata | undefined;
348
+ key?: string | undefined;
349
+ type: CreatePromptPromptsType;
350
+ };
351
+
440
352
  /**
441
353
  * The type of the model
442
354
  */
443
- export const CreatePromptPromptsModelType = {
355
+ export const CreatePromptModelType = {
444
356
  Chat: "chat",
445
357
  Completion: "completion",
446
358
  Embedding: "embedding",
@@ -454,14 +366,12 @@ export const CreatePromptPromptsModelType = {
454
366
  /**
455
367
  * The type of the model
456
368
  */
457
- export type CreatePromptPromptsModelType = ClosedEnum<
458
- typeof CreatePromptPromptsModelType
459
- >;
369
+ export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
460
370
 
461
371
  /**
462
372
  * Only supported on `image` models.
463
373
  */
464
- export const CreatePromptPromptsFormat = {
374
+ export const CreatePromptFormat = {
465
375
  Url: "url",
466
376
  B64Json: "b64_json",
467
377
  Text: "text",
@@ -470,51 +380,47 @@ export const CreatePromptPromptsFormat = {
470
380
  /**
471
381
  * Only supported on `image` models.
472
382
  */
473
- export type CreatePromptPromptsFormat = ClosedEnum<
474
- typeof CreatePromptPromptsFormat
475
- >;
383
+ export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
476
384
 
477
385
  /**
478
386
  * Only supported on `image` models.
479
387
  */
480
- export const CreatePromptPromptsQuality = {
388
+ export const CreatePromptQuality = {
481
389
  Standard: "standard",
482
390
  Hd: "hd",
483
391
  } as const;
484
392
  /**
485
393
  * Only supported on `image` models.
486
394
  */
487
- export type CreatePromptPromptsQuality = ClosedEnum<
488
- typeof CreatePromptPromptsQuality
489
- >;
395
+ export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
490
396
 
491
- export const CreatePromptResponseFormatPromptsResponse200Type = {
397
+ export const CreatePromptResponseFormatPromptsResponseType = {
492
398
  JsonObject: "json_object",
493
399
  } as const;
494
- export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
495
- typeof CreatePromptResponseFormatPromptsResponse200Type
400
+ export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
401
+ typeof CreatePromptResponseFormatPromptsResponseType
496
402
  >;
497
403
 
498
- export type CreatePromptResponseFormatPrompts2 = {
499
- type: CreatePromptResponseFormatPromptsResponse200Type;
404
+ export type CreatePromptResponseFormat2 = {
405
+ type: CreatePromptResponseFormatPromptsResponseType;
500
406
  };
501
407
 
502
- export const CreatePromptResponseFormatPromptsResponseType = {
408
+ export const CreatePromptResponseFormatPromptsType = {
503
409
  JsonSchema: "json_schema",
504
410
  } as const;
505
- export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
506
- typeof CreatePromptResponseFormatPromptsResponseType
411
+ export type CreatePromptResponseFormatPromptsType = ClosedEnum<
412
+ typeof CreatePromptResponseFormatPromptsType
507
413
  >;
508
414
 
509
- export type CreatePromptResponseFormatPromptsJsonSchema = {
415
+ export type CreatePromptResponseFormatJsonSchema = {
510
416
  name: string;
511
417
  strict: boolean;
512
418
  schema: { [k: string]: any };
513
419
  };
514
420
 
515
- export type CreatePromptResponseFormatPrompts1 = {
516
- type: CreatePromptResponseFormatPromptsResponseType;
517
- jsonSchema: CreatePromptResponseFormatPromptsJsonSchema;
421
+ export type CreatePromptResponseFormat1 = {
422
+ type: CreatePromptResponseFormatPromptsType;
423
+ jsonSchema: CreatePromptResponseFormatJsonSchema;
518
424
  };
519
425
 
520
426
  /**
@@ -528,57 +434,42 @@ export type CreatePromptResponseFormatPrompts1 = {
528
434
  *
529
435
  * 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.
530
436
  */
531
- export type CreatePromptPromptsResponseFormat =
532
- | CreatePromptResponseFormatPrompts2
533
- | CreatePromptResponseFormatPrompts1;
437
+ export type CreatePromptResponseFormat =
438
+ | CreatePromptResponseFormat2
439
+ | CreatePromptResponseFormat1;
534
440
 
535
441
  /**
536
442
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
537
443
  */
538
- export const CreatePromptPromptsPhotoRealVersion = {
444
+ export const CreatePromptPhotoRealVersion = {
539
445
  V1: "v1",
540
446
  V2: "v2",
541
447
  } as const;
542
448
  /**
543
449
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
544
450
  */
545
- export type CreatePromptPromptsPhotoRealVersion = ClosedEnum<
546
- typeof CreatePromptPromptsPhotoRealVersion
451
+ export type CreatePromptPhotoRealVersion = ClosedEnum<
452
+ typeof CreatePromptPhotoRealVersion
547
453
  >;
548
454
 
549
455
  /**
550
456
  * The format to return the embeddings
551
457
  */
552
- export const CreatePromptPromptsEncodingFormat = {
458
+ export const CreatePromptEncodingFormat = {
553
459
  Float: "float",
554
460
  Base64: "base64",
555
461
  } as const;
556
462
  /**
557
463
  * The format to return the embeddings
558
464
  */
559
- export type CreatePromptPromptsEncodingFormat = ClosedEnum<
560
- typeof CreatePromptPromptsEncodingFormat
561
- >;
562
-
563
- /**
564
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
565
- */
566
- export const CreatePromptPromptsReasoningEffort = {
567
- Low: "low",
568
- Medium: "medium",
569
- High: "high",
570
- } as const;
571
- /**
572
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
573
- */
574
- export type CreatePromptPromptsReasoningEffort = ClosedEnum<
575
- typeof CreatePromptPromptsReasoningEffort
465
+ export type CreatePromptEncodingFormat = ClosedEnum<
466
+ typeof CreatePromptEncodingFormat
576
467
  >;
577
468
 
578
469
  /**
579
470
  * Model Parameters: Not all parameters apply to every model
580
471
  */
581
- export type CreatePromptPromptsModelParameters = {
472
+ export type CreatePromptModelParameters = {
582
473
  /**
583
474
  * Only supported on `chat` and `completion` models.
584
475
  */
@@ -614,7 +505,7 @@ export type CreatePromptPromptsModelParameters = {
614
505
  /**
615
506
  * Only supported on `image` models.
616
507
  */
617
- format?: CreatePromptPromptsFormat | undefined;
508
+ format?: CreatePromptFormat | undefined;
618
509
  /**
619
510
  * Only supported on `image` models.
620
511
  */
@@ -622,7 +513,7 @@ export type CreatePromptPromptsModelParameters = {
622
513
  /**
623
514
  * Only supported on `image` models.
624
515
  */
625
- quality?: CreatePromptPromptsQuality | undefined;
516
+ quality?: CreatePromptQuality | undefined;
626
517
  /**
627
518
  * Only supported on `image` models.
628
519
  */
@@ -639,25 +530,21 @@ export type CreatePromptPromptsModelParameters = {
639
530
  * 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.
640
531
  */
641
532
  responseFormat?:
642
- | CreatePromptResponseFormatPrompts2
643
- | CreatePromptResponseFormatPrompts1
533
+ | CreatePromptResponseFormat2
534
+ | CreatePromptResponseFormat1
644
535
  | null
645
536
  | undefined;
646
537
  /**
647
538
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
648
539
  */
649
- photoRealVersion?: CreatePromptPromptsPhotoRealVersion | undefined;
540
+ photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
650
541
  /**
651
542
  * The format to return the embeddings
652
543
  */
653
- encodingFormat?: CreatePromptPromptsEncodingFormat | undefined;
654
- /**
655
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
656
- */
657
- reasoningEffort?: CreatePromptPromptsReasoningEffort | undefined;
544
+ encodingFormat?: CreatePromptEncodingFormat | undefined;
658
545
  };
659
546
 
660
- export const CreatePromptPromptsProvider = {
547
+ export const CreatePromptProvider = {
661
548
  Cohere: "cohere",
662
549
  Openai: "openai",
663
550
  Anthropic: "anthropic",
@@ -674,12 +561,8 @@ export const CreatePromptPromptsProvider = {
674
561
  Leonardoai: "leonardoai",
675
562
  Nvidia: "nvidia",
676
563
  Jina: "jina",
677
- Togetherai: "togetherai",
678
- Elevenlabs: "elevenlabs",
679
564
  } as const;
680
- export type CreatePromptPromptsProvider = ClosedEnum<
681
- typeof CreatePromptPromptsProvider
682
- >;
565
+ export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
683
566
 
684
567
  /**
685
568
  * The role of the prompt message
@@ -757,11 +640,11 @@ export type CreatePromptPromptsContent =
757
640
  | string
758
641
  | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
759
642
 
760
- export const CreatePromptPromptsResponseType = {
643
+ export const CreatePromptPromptsResponse200Type = {
761
644
  Function: "function",
762
645
  } as const;
763
- export type CreatePromptPromptsResponseType = ClosedEnum<
764
- typeof CreatePromptPromptsResponseType
646
+ export type CreatePromptPromptsResponse200Type = ClosedEnum<
647
+ typeof CreatePromptPromptsResponse200Type
765
648
  >;
766
649
 
767
650
  export type CreatePromptPromptsFunction = {
@@ -775,7 +658,7 @@ export type CreatePromptPromptsFunction = {
775
658
  export type CreatePromptPromptsToolCalls = {
776
659
  id?: string | undefined;
777
660
  index?: number | undefined;
778
- type: CreatePromptPromptsResponseType;
661
+ type: CreatePromptPromptsResponse200Type;
779
662
  function: CreatePromptPromptsFunction;
780
663
  };
781
664
 
@@ -791,10 +674,7 @@ export type CreatePromptPromptsMessages = {
791
674
  toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
792
675
  };
793
676
 
794
- /**
795
- * A list of messages compatible with the openAI schema
796
- */
797
- export type CreatePromptPromptsPromptConfig = {
677
+ export type CreatePromptPromptConfig = {
798
678
  stream?: boolean | undefined;
799
679
  model?: string | undefined;
800
680
  /**
@@ -804,12 +684,12 @@ export type CreatePromptPromptsPromptConfig = {
804
684
  /**
805
685
  * The type of the model
806
686
  */
807
- modelType?: CreatePromptPromptsModelType | undefined;
687
+ modelType?: CreatePromptModelType | undefined;
808
688
  /**
809
689
  * Model Parameters: Not all parameters apply to every model
810
690
  */
811
- modelParameters?: CreatePromptPromptsModelParameters | undefined;
812
- provider?: CreatePromptPromptsProvider | undefined;
691
+ modelParameters?: CreatePromptModelParameters | undefined;
692
+ provider?: CreatePromptProvider | undefined;
813
693
  /**
814
694
  * The id of the resource
815
695
  */
@@ -818,252 +698,194 @@ export type CreatePromptPromptsPromptConfig = {
818
698
  messages: Array<CreatePromptPromptsMessages>;
819
699
  };
820
700
 
821
- export const CreatePromptPromptsUseCases = {
822
- Agents: "Agents",
823
- AgentsSimulations: "Agents simulations",
824
- APIInteraction: "API interaction",
825
- AutonomousAgents: "Autonomous Agents",
826
- Chatbots: "Chatbots",
827
- Classification: "Classification",
828
- CodeUnderstanding: "Code understanding",
829
- CodeWriting: "Code writing",
830
- DocumentsQA: "Documents QA",
831
- Conversation: "Conversation",
832
- Extraction: "Extraction",
833
- MultiModal: "Multi-modal",
834
- SelfChecking: "Self-checking",
835
- Sql: "SQL",
836
- Summarization: "Summarization",
837
- Tagging: "Tagging",
838
- } as const;
839
- export type CreatePromptPromptsUseCases = ClosedEnum<
840
- typeof CreatePromptPromptsUseCases
841
- >;
701
+ export type CreatePromptPromptsMetadata = {
702
+ useCases?: Array<string> | undefined;
703
+ language?: string | undefined;
704
+ };
842
705
 
843
- /**
844
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
845
- */
846
- export const CreatePromptPromptsLanguage = {
847
- Chinese: "Chinese",
848
- Dutch: "Dutch",
849
- English: "English",
850
- French: "French",
851
- German: "German",
852
- Russian: "Russian",
853
- Spanish: "Spanish",
706
+ export const CreatePromptPromptsResponseType = {
707
+ Prompt: "prompt",
708
+ Snippet: "snippet",
709
+ Template: "template",
854
710
  } as const;
855
- /**
856
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
857
- */
858
- export type CreatePromptPromptsLanguage = ClosedEnum<
859
- typeof CreatePromptPromptsLanguage
711
+ export type CreatePromptPromptsResponseType = ClosedEnum<
712
+ typeof CreatePromptPromptsResponseType
860
713
  >;
861
714
 
862
- export type CreatePromptPromptsMetadata = {
863
- /**
864
- * 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
865
- */
866
- useCases?: Array<CreatePromptPromptsUseCases> | undefined;
867
- /**
868
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
869
- */
870
- language?: CreatePromptPromptsLanguage | undefined;
871
- };
872
-
873
715
  /**
874
716
  * Prompt created.
875
717
  */
876
718
  export type CreatePromptResponseBody = {
877
- id: string;
878
- type: CreatePromptPromptsType;
879
- owner: string;
880
- domainId: string;
881
- created: string;
882
- updated: string;
883
- createdById?: string | undefined;
884
- updatedById?: string | undefined;
885
719
  /**
886
- * The prompt’s name, meant to be displayable in the UI.
720
+ * The id of the resource
887
721
  */
722
+ id: string;
888
723
  displayName: string;
889
724
  /**
890
- * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
725
+ * The id of the resource
891
726
  */
727
+ domainId: string;
892
728
  description?: string | null | undefined;
893
- /**
894
- * A list of messages compatible with the openAI schema
895
- */
896
- promptConfig: CreatePromptPromptsPromptConfig;
729
+ promptConfig?: CreatePromptPromptConfig | undefined;
897
730
  metadata?: CreatePromptPromptsMetadata | undefined;
731
+ key?: string | undefined;
732
+ type: CreatePromptPromptsResponseType;
898
733
  };
899
734
 
900
735
  /** @internal */
901
- export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
902
- typeof CreatePromptModelType
903
- > = z.nativeEnum(CreatePromptModelType);
736
+ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
737
+ .nativeEnum(ModelType);
904
738
 
905
739
  /** @internal */
906
- export const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<
907
- typeof CreatePromptModelType
908
- > = CreatePromptModelType$inboundSchema;
740
+ export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
741
+ ModelType$inboundSchema;
909
742
 
910
743
  /**
911
744
  * @internal
912
745
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
913
746
  */
914
- export namespace CreatePromptModelType$ {
915
- /** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
916
- export const inboundSchema = CreatePromptModelType$inboundSchema;
917
- /** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
918
- export const outboundSchema = CreatePromptModelType$outboundSchema;
747
+ export namespace ModelType$ {
748
+ /** @deprecated use `ModelType$inboundSchema` instead. */
749
+ export const inboundSchema = ModelType$inboundSchema;
750
+ /** @deprecated use `ModelType$outboundSchema` instead. */
751
+ export const outboundSchema = ModelType$outboundSchema;
919
752
  }
920
753
 
921
754
  /** @internal */
922
- export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
923
- typeof CreatePromptFormat
924
- > = z.nativeEnum(CreatePromptFormat);
755
+ export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
756
+ .nativeEnum(Format);
925
757
 
926
758
  /** @internal */
927
- export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
928
- typeof CreatePromptFormat
929
- > = CreatePromptFormat$inboundSchema;
759
+ export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
760
+ Format$inboundSchema;
930
761
 
931
762
  /**
932
763
  * @internal
933
764
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
934
765
  */
935
- export namespace CreatePromptFormat$ {
936
- /** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
937
- export const inboundSchema = CreatePromptFormat$inboundSchema;
938
- /** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
939
- export const outboundSchema = CreatePromptFormat$outboundSchema;
766
+ export namespace Format$ {
767
+ /** @deprecated use `Format$inboundSchema` instead. */
768
+ export const inboundSchema = Format$inboundSchema;
769
+ /** @deprecated use `Format$outboundSchema` instead. */
770
+ export const outboundSchema = Format$outboundSchema;
940
771
  }
941
772
 
942
773
  /** @internal */
943
- export const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<
944
- typeof CreatePromptQuality
945
- > = z.nativeEnum(CreatePromptQuality);
774
+ export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
775
+ .nativeEnum(Quality);
946
776
 
947
777
  /** @internal */
948
- export const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<
949
- typeof CreatePromptQuality
950
- > = CreatePromptQuality$inboundSchema;
778
+ export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
779
+ Quality$inboundSchema;
951
780
 
952
781
  /**
953
782
  * @internal
954
783
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
955
784
  */
956
- export namespace CreatePromptQuality$ {
957
- /** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
958
- export const inboundSchema = CreatePromptQuality$inboundSchema;
959
- /** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
960
- export const outboundSchema = CreatePromptQuality$outboundSchema;
785
+ export namespace Quality$ {
786
+ /** @deprecated use `Quality$inboundSchema` instead. */
787
+ export const inboundSchema = Quality$inboundSchema;
788
+ /** @deprecated use `Quality$outboundSchema` instead. */
789
+ export const outboundSchema = Quality$outboundSchema;
961
790
  }
962
791
 
963
792
  /** @internal */
964
- export const CreatePromptResponseFormatPromptsType$inboundSchema:
965
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
966
- CreatePromptResponseFormatPromptsType,
967
- );
793
+ export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
794
+ typeof CreatePromptResponseFormatType
795
+ > = z.nativeEnum(CreatePromptResponseFormatType);
968
796
 
969
797
  /** @internal */
970
- export const CreatePromptResponseFormatPromptsType$outboundSchema:
971
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
972
- CreatePromptResponseFormatPromptsType$inboundSchema;
798
+ export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
799
+ typeof CreatePromptResponseFormatType
800
+ > = CreatePromptResponseFormatType$inboundSchema;
973
801
 
974
802
  /**
975
803
  * @internal
976
804
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
977
805
  */
978
- export namespace CreatePromptResponseFormatPromptsType$ {
979
- /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
980
- export const inboundSchema =
981
- CreatePromptResponseFormatPromptsType$inboundSchema;
982
- /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
983
- export const outboundSchema =
984
- CreatePromptResponseFormatPromptsType$outboundSchema;
806
+ export namespace CreatePromptResponseFormatType$ {
807
+ /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
808
+ export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
809
+ /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
810
+ export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
985
811
  }
986
812
 
987
813
  /** @internal */
988
- export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
989
- CreatePromptResponseFormat2,
814
+ export const ResponseFormat2$inboundSchema: z.ZodType<
815
+ ResponseFormat2,
990
816
  z.ZodTypeDef,
991
817
  unknown
992
818
  > = z.object({
993
- type: CreatePromptResponseFormatPromptsType$inboundSchema,
819
+ type: CreatePromptResponseFormatType$inboundSchema,
994
820
  });
995
821
 
996
822
  /** @internal */
997
- export type CreatePromptResponseFormat2$Outbound = {
823
+ export type ResponseFormat2$Outbound = {
998
824
  type: string;
999
825
  };
1000
826
 
1001
827
  /** @internal */
1002
- export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
1003
- CreatePromptResponseFormat2$Outbound,
828
+ export const ResponseFormat2$outboundSchema: z.ZodType<
829
+ ResponseFormat2$Outbound,
1004
830
  z.ZodTypeDef,
1005
- CreatePromptResponseFormat2
831
+ ResponseFormat2
1006
832
  > = z.object({
1007
- type: CreatePromptResponseFormatPromptsType$outboundSchema,
833
+ type: CreatePromptResponseFormatType$outboundSchema,
1008
834
  });
1009
835
 
1010
836
  /**
1011
837
  * @internal
1012
838
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1013
839
  */
1014
- export namespace CreatePromptResponseFormat2$ {
1015
- /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
1016
- export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
1017
- /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
1018
- export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
1019
- /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
1020
- export type Outbound = CreatePromptResponseFormat2$Outbound;
840
+ export namespace ResponseFormat2$ {
841
+ /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
842
+ export const inboundSchema = ResponseFormat2$inboundSchema;
843
+ /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
844
+ export const outboundSchema = ResponseFormat2$outboundSchema;
845
+ /** @deprecated use `ResponseFormat2$Outbound` instead. */
846
+ export type Outbound = ResponseFormat2$Outbound;
1021
847
  }
1022
848
 
1023
- export function createPromptResponseFormat2ToJSON(
1024
- createPromptResponseFormat2: CreatePromptResponseFormat2,
849
+ export function responseFormat2ToJSON(
850
+ responseFormat2: ResponseFormat2,
1025
851
  ): string {
1026
- return JSON.stringify(
1027
- CreatePromptResponseFormat2$outboundSchema.parse(
1028
- createPromptResponseFormat2,
1029
- ),
1030
- );
852
+ return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
1031
853
  }
1032
854
 
1033
- export function createPromptResponseFormat2FromJSON(
855
+ export function responseFormat2FromJSON(
1034
856
  jsonString: string,
1035
- ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
857
+ ): SafeParseResult<ResponseFormat2, SDKValidationError> {
1036
858
  return safeParse(
1037
859
  jsonString,
1038
- (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1039
- `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
860
+ (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
861
+ `Failed to parse 'ResponseFormat2' from JSON`,
1040
862
  );
1041
863
  }
1042
864
 
1043
865
  /** @internal */
1044
- export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1045
- typeof CreatePromptResponseFormatType
1046
- > = z.nativeEnum(CreatePromptResponseFormatType);
866
+ export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
867
+ typeof ResponseFormatType
868
+ > = z.nativeEnum(ResponseFormatType);
1047
869
 
1048
870
  /** @internal */
1049
- export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1050
- typeof CreatePromptResponseFormatType
1051
- > = CreatePromptResponseFormatType$inboundSchema;
871
+ export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
872
+ typeof ResponseFormatType
873
+ > = ResponseFormatType$inboundSchema;
1052
874
 
1053
875
  /**
1054
876
  * @internal
1055
877
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1056
878
  */
1057
- export namespace CreatePromptResponseFormatType$ {
1058
- /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
1059
- export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
1060
- /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
1061
- export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
879
+ export namespace ResponseFormatType$ {
880
+ /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
881
+ export const inboundSchema = ResponseFormatType$inboundSchema;
882
+ /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
883
+ export const outboundSchema = ResponseFormatType$outboundSchema;
1062
884
  }
1063
885
 
1064
886
  /** @internal */
1065
- export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
1066
- CreatePromptResponseFormatJsonSchema,
887
+ export const JsonSchema$inboundSchema: z.ZodType<
888
+ JsonSchema,
1067
889
  z.ZodTypeDef,
1068
890
  unknown
1069
891
  > = z.object({
@@ -1073,17 +895,17 @@ export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
1073
895
  });
1074
896
 
1075
897
  /** @internal */
1076
- export type CreatePromptResponseFormatJsonSchema$Outbound = {
898
+ export type JsonSchema$Outbound = {
1077
899
  name: string;
1078
900
  strict: boolean;
1079
901
  schema: { [k: string]: any };
1080
902
  };
1081
903
 
1082
904
  /** @internal */
1083
- export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
1084
- CreatePromptResponseFormatJsonSchema$Outbound,
905
+ export const JsonSchema$outboundSchema: z.ZodType<
906
+ JsonSchema$Outbound,
1085
907
  z.ZodTypeDef,
1086
- CreatePromptResponseFormatJsonSchema
908
+ JsonSchema
1087
909
  > = z.object({
1088
910
  name: z.string(),
1089
911
  strict: z.boolean(),
@@ -1094,46 +916,37 @@ export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
1094
916
  * @internal
1095
917
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1096
918
  */
1097
- export namespace CreatePromptResponseFormatJsonSchema$ {
1098
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
1099
- export const inboundSchema =
1100
- CreatePromptResponseFormatJsonSchema$inboundSchema;
1101
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
1102
- export const outboundSchema =
1103
- CreatePromptResponseFormatJsonSchema$outboundSchema;
1104
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
1105
- export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
919
+ export namespace JsonSchema$ {
920
+ /** @deprecated use `JsonSchema$inboundSchema` instead. */
921
+ export const inboundSchema = JsonSchema$inboundSchema;
922
+ /** @deprecated use `JsonSchema$outboundSchema` instead. */
923
+ export const outboundSchema = JsonSchema$outboundSchema;
924
+ /** @deprecated use `JsonSchema$Outbound` instead. */
925
+ export type Outbound = JsonSchema$Outbound;
1106
926
  }
1107
927
 
1108
- export function createPromptResponseFormatJsonSchemaToJSON(
1109
- createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
1110
- ): string {
1111
- return JSON.stringify(
1112
- CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
1113
- createPromptResponseFormatJsonSchema,
1114
- ),
1115
- );
928
+ export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
929
+ return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
1116
930
  }
1117
931
 
1118
- export function createPromptResponseFormatJsonSchemaFromJSON(
932
+ export function jsonSchemaFromJSON(
1119
933
  jsonString: string,
1120
- ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
934
+ ): SafeParseResult<JsonSchema, SDKValidationError> {
1121
935
  return safeParse(
1122
936
  jsonString,
1123
- (x) =>
1124
- CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1125
- `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
937
+ (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
938
+ `Failed to parse 'JsonSchema' from JSON`,
1126
939
  );
1127
940
  }
1128
941
 
1129
942
  /** @internal */
1130
- export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
1131
- CreatePromptResponseFormat1,
943
+ export const ResponseFormat1$inboundSchema: z.ZodType<
944
+ ResponseFormat1,
1132
945
  z.ZodTypeDef,
1133
946
  unknown
1134
947
  > = z.object({
1135
- type: CreatePromptResponseFormatType$inboundSchema,
1136
- json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
948
+ type: ResponseFormatType$inboundSchema,
949
+ json_schema: z.lazy(() => JsonSchema$inboundSchema),
1137
950
  }).transform((v) => {
1138
951
  return remap$(v, {
1139
952
  "json_schema": "jsonSchema",
@@ -1141,19 +954,19 @@ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
1141
954
  });
1142
955
 
1143
956
  /** @internal */
1144
- export type CreatePromptResponseFormat1$Outbound = {
957
+ export type ResponseFormat1$Outbound = {
1145
958
  type: string;
1146
- json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
959
+ json_schema: JsonSchema$Outbound;
1147
960
  };
1148
961
 
1149
962
  /** @internal */
1150
- export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
1151
- CreatePromptResponseFormat1$Outbound,
963
+ export const ResponseFormat1$outboundSchema: z.ZodType<
964
+ ResponseFormat1$Outbound,
1152
965
  z.ZodTypeDef,
1153
- CreatePromptResponseFormat1
966
+ ResponseFormat1
1154
967
  > = z.object({
1155
- type: CreatePromptResponseFormatType$outboundSchema,
1156
- jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
968
+ type: ResponseFormatType$outboundSchema,
969
+ jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1157
970
  }).transform((v) => {
1158
971
  return remap$(v, {
1159
972
  jsonSchema: "json_schema",
@@ -1164,157 +977,128 @@ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
1164
977
  * @internal
1165
978
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1166
979
  */
1167
- export namespace CreatePromptResponseFormat1$ {
1168
- /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
1169
- export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
1170
- /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
1171
- export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
1172
- /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
1173
- export type Outbound = CreatePromptResponseFormat1$Outbound;
980
+ export namespace ResponseFormat1$ {
981
+ /** @deprecated use `ResponseFormat1$inboundSchema` instead. */
982
+ export const inboundSchema = ResponseFormat1$inboundSchema;
983
+ /** @deprecated use `ResponseFormat1$outboundSchema` instead. */
984
+ export const outboundSchema = ResponseFormat1$outboundSchema;
985
+ /** @deprecated use `ResponseFormat1$Outbound` instead. */
986
+ export type Outbound = ResponseFormat1$Outbound;
1174
987
  }
1175
988
 
1176
- export function createPromptResponseFormat1ToJSON(
1177
- createPromptResponseFormat1: CreatePromptResponseFormat1,
989
+ export function responseFormat1ToJSON(
990
+ responseFormat1: ResponseFormat1,
1178
991
  ): string {
1179
- return JSON.stringify(
1180
- CreatePromptResponseFormat1$outboundSchema.parse(
1181
- createPromptResponseFormat1,
1182
- ),
1183
- );
992
+ return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
1184
993
  }
1185
994
 
1186
- export function createPromptResponseFormat1FromJSON(
995
+ export function responseFormat1FromJSON(
1187
996
  jsonString: string,
1188
- ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
997
+ ): SafeParseResult<ResponseFormat1, SDKValidationError> {
1189
998
  return safeParse(
1190
999
  jsonString,
1191
- (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1192
- `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
1000
+ (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1001
+ `Failed to parse 'ResponseFormat1' from JSON`,
1193
1002
  );
1194
1003
  }
1195
1004
 
1196
1005
  /** @internal */
1197
- export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
1198
- CreatePromptResponseFormat,
1006
+ export const ResponseFormat$inboundSchema: z.ZodType<
1007
+ ResponseFormat,
1199
1008
  z.ZodTypeDef,
1200
1009
  unknown
1201
1010
  > = z.union([
1202
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
1203
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
1011
+ z.lazy(() => ResponseFormat2$inboundSchema),
1012
+ z.lazy(() => ResponseFormat1$inboundSchema),
1204
1013
  ]);
1205
1014
 
1206
1015
  /** @internal */
1207
- export type CreatePromptResponseFormat$Outbound =
1208
- | CreatePromptResponseFormat2$Outbound
1209
- | CreatePromptResponseFormat1$Outbound;
1016
+ export type ResponseFormat$Outbound =
1017
+ | ResponseFormat2$Outbound
1018
+ | ResponseFormat1$Outbound;
1210
1019
 
1211
1020
  /** @internal */
1212
- export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
1213
- CreatePromptResponseFormat$Outbound,
1021
+ export const ResponseFormat$outboundSchema: z.ZodType<
1022
+ ResponseFormat$Outbound,
1214
1023
  z.ZodTypeDef,
1215
- CreatePromptResponseFormat
1024
+ ResponseFormat
1216
1025
  > = z.union([
1217
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
1218
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
1026
+ z.lazy(() => ResponseFormat2$outboundSchema),
1027
+ z.lazy(() => ResponseFormat1$outboundSchema),
1219
1028
  ]);
1220
1029
 
1221
1030
  /**
1222
1031
  * @internal
1223
1032
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1224
1033
  */
1225
- export namespace CreatePromptResponseFormat$ {
1226
- /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
1227
- export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
1228
- /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
1229
- export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
1230
- /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
1231
- export type Outbound = CreatePromptResponseFormat$Outbound;
1034
+ export namespace ResponseFormat$ {
1035
+ /** @deprecated use `ResponseFormat$inboundSchema` instead. */
1036
+ export const inboundSchema = ResponseFormat$inboundSchema;
1037
+ /** @deprecated use `ResponseFormat$outboundSchema` instead. */
1038
+ export const outboundSchema = ResponseFormat$outboundSchema;
1039
+ /** @deprecated use `ResponseFormat$Outbound` instead. */
1040
+ export type Outbound = ResponseFormat$Outbound;
1232
1041
  }
1233
1042
 
1234
- export function createPromptResponseFormatToJSON(
1235
- createPromptResponseFormat: CreatePromptResponseFormat,
1236
- ): string {
1237
- return JSON.stringify(
1238
- CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
1239
- );
1043
+ export function responseFormatToJSON(responseFormat: ResponseFormat): string {
1044
+ return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
1240
1045
  }
1241
1046
 
1242
- export function createPromptResponseFormatFromJSON(
1047
+ export function responseFormatFromJSON(
1243
1048
  jsonString: string,
1244
- ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
1049
+ ): SafeParseResult<ResponseFormat, SDKValidationError> {
1245
1050
  return safeParse(
1246
1051
  jsonString,
1247
- (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
1248
- `Failed to parse 'CreatePromptResponseFormat' from JSON`,
1052
+ (x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
1053
+ `Failed to parse 'ResponseFormat' from JSON`,
1249
1054
  );
1250
1055
  }
1251
1056
 
1252
1057
  /** @internal */
1253
- export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1254
- typeof CreatePromptPhotoRealVersion
1255
- > = z.nativeEnum(CreatePromptPhotoRealVersion);
1058
+ export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1059
+ typeof PhotoRealVersion
1060
+ > = z.nativeEnum(PhotoRealVersion);
1256
1061
 
1257
1062
  /** @internal */
1258
- export const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1259
- typeof CreatePromptPhotoRealVersion
1260
- > = CreatePromptPhotoRealVersion$inboundSchema;
1063
+ export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1064
+ typeof PhotoRealVersion
1065
+ > = PhotoRealVersion$inboundSchema;
1261
1066
 
1262
1067
  /**
1263
1068
  * @internal
1264
1069
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1265
1070
  */
1266
- export namespace CreatePromptPhotoRealVersion$ {
1267
- /** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
1268
- export const inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
1269
- /** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
1270
- export const outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
1071
+ export namespace PhotoRealVersion$ {
1072
+ /** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
1073
+ export const inboundSchema = PhotoRealVersion$inboundSchema;
1074
+ /** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
1075
+ export const outboundSchema = PhotoRealVersion$outboundSchema;
1271
1076
  }
1272
1077
 
1273
1078
  /** @internal */
1274
- export const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
1275
- typeof CreatePromptEncodingFormat
1276
- > = z.nativeEnum(CreatePromptEncodingFormat);
1079
+ export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
1080
+ typeof EncodingFormat
1081
+ > = z.nativeEnum(EncodingFormat);
1277
1082
 
1278
1083
  /** @internal */
1279
- export const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
1280
- typeof CreatePromptEncodingFormat
1281
- > = CreatePromptEncodingFormat$inboundSchema;
1084
+ export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
1085
+ typeof EncodingFormat
1086
+ > = EncodingFormat$inboundSchema;
1282
1087
 
1283
1088
  /**
1284
1089
  * @internal
1285
1090
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1286
1091
  */
1287
- export namespace CreatePromptEncodingFormat$ {
1288
- /** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
1289
- export const inboundSchema = CreatePromptEncodingFormat$inboundSchema;
1290
- /** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
1291
- export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
1092
+ export namespace EncodingFormat$ {
1093
+ /** @deprecated use `EncodingFormat$inboundSchema` instead. */
1094
+ export const inboundSchema = EncodingFormat$inboundSchema;
1095
+ /** @deprecated use `EncodingFormat$outboundSchema` instead. */
1096
+ export const outboundSchema = EncodingFormat$outboundSchema;
1292
1097
  }
1293
1098
 
1294
1099
  /** @internal */
1295
- export const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
1296
- typeof CreatePromptReasoningEffort
1297
- > = z.nativeEnum(CreatePromptReasoningEffort);
1298
-
1299
- /** @internal */
1300
- export const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
1301
- typeof CreatePromptReasoningEffort
1302
- > = CreatePromptReasoningEffort$inboundSchema;
1303
-
1304
- /**
1305
- * @internal
1306
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1307
- */
1308
- export namespace CreatePromptReasoningEffort$ {
1309
- /** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
1310
- export const inboundSchema = CreatePromptReasoningEffort$inboundSchema;
1311
- /** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
1312
- export const outboundSchema = CreatePromptReasoningEffort$outboundSchema;
1313
- }
1314
-
1315
- /** @internal */
1316
- export const CreatePromptModelParameters$inboundSchema: z.ZodType<
1317
- CreatePromptModelParameters,
1100
+ export const ModelParameters$inboundSchema: z.ZodType<
1101
+ ModelParameters,
1318
1102
  z.ZodTypeDef,
1319
1103
  unknown
1320
1104
  > = z.object({
@@ -1326,19 +1110,18 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
1326
1110
  presencePenalty: z.number().optional(),
1327
1111
  numImages: z.number().optional(),
1328
1112
  seed: z.number().optional(),
1329
- format: CreatePromptFormat$inboundSchema.optional(),
1113
+ format: Format$inboundSchema.optional(),
1330
1114
  dimensions: z.string().optional(),
1331
- quality: CreatePromptQuality$inboundSchema.optional(),
1115
+ quality: Quality$inboundSchema.optional(),
1332
1116
  style: z.string().optional(),
1333
1117
  responseFormat: z.nullable(
1334
1118
  z.union([
1335
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
1336
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
1119
+ z.lazy(() => ResponseFormat2$inboundSchema),
1120
+ z.lazy(() => ResponseFormat1$inboundSchema),
1337
1121
  ]),
1338
1122
  ).optional(),
1339
- photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
1340
- encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
1341
- reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
1123
+ photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
1124
+ encoding_format: EncodingFormat$inboundSchema.optional(),
1342
1125
  }).transform((v) => {
1343
1126
  return remap$(v, {
1344
1127
  "encoding_format": "encodingFormat",
@@ -1346,7 +1129,7 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
1346
1129
  });
1347
1130
 
1348
1131
  /** @internal */
1349
- export type CreatePromptModelParameters$Outbound = {
1132
+ export type ModelParameters$Outbound = {
1350
1133
  temperature?: number | undefined;
1351
1134
  maxTokens?: number | undefined;
1352
1135
  topK?: number | undefined;
@@ -1360,20 +1143,19 @@ export type CreatePromptModelParameters$Outbound = {
1360
1143
  quality?: string | undefined;
1361
1144
  style?: string | undefined;
1362
1145
  responseFormat?:
1363
- | CreatePromptResponseFormat2$Outbound
1364
- | CreatePromptResponseFormat1$Outbound
1146
+ | ResponseFormat2$Outbound
1147
+ | ResponseFormat1$Outbound
1365
1148
  | null
1366
1149
  | undefined;
1367
1150
  photoRealVersion?: string | undefined;
1368
1151
  encoding_format?: string | undefined;
1369
- reasoningEffort?: string | undefined;
1370
1152
  };
1371
1153
 
1372
1154
  /** @internal */
1373
- export const CreatePromptModelParameters$outboundSchema: z.ZodType<
1374
- CreatePromptModelParameters$Outbound,
1155
+ export const ModelParameters$outboundSchema: z.ZodType<
1156
+ ModelParameters$Outbound,
1375
1157
  z.ZodTypeDef,
1376
- CreatePromptModelParameters
1158
+ ModelParameters
1377
1159
  > = z.object({
1378
1160
  temperature: z.number().optional(),
1379
1161
  maxTokens: z.number().optional(),
@@ -1383,19 +1165,18 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
1383
1165
  presencePenalty: z.number().optional(),
1384
1166
  numImages: z.number().optional(),
1385
1167
  seed: z.number().optional(),
1386
- format: CreatePromptFormat$outboundSchema.optional(),
1168
+ format: Format$outboundSchema.optional(),
1387
1169
  dimensions: z.string().optional(),
1388
- quality: CreatePromptQuality$outboundSchema.optional(),
1170
+ quality: Quality$outboundSchema.optional(),
1389
1171
  style: z.string().optional(),
1390
1172
  responseFormat: z.nullable(
1391
1173
  z.union([
1392
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
1393
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
1174
+ z.lazy(() => ResponseFormat2$outboundSchema),
1175
+ z.lazy(() => ResponseFormat1$outboundSchema),
1394
1176
  ]),
1395
1177
  ).optional(),
1396
- photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
1397
- encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
1398
- reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
1178
+ photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
1179
+ encodingFormat: EncodingFormat$outboundSchema.optional(),
1399
1180
  }).transform((v) => {
1400
1181
  return remap$(v, {
1401
1182
  encodingFormat: "encoding_format",
@@ -1406,54 +1187,48 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
1406
1187
  * @internal
1407
1188
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1408
1189
  */
1409
- export namespace CreatePromptModelParameters$ {
1410
- /** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
1411
- export const inboundSchema = CreatePromptModelParameters$inboundSchema;
1412
- /** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
1413
- export const outboundSchema = CreatePromptModelParameters$outboundSchema;
1414
- /** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
1415
- export type Outbound = CreatePromptModelParameters$Outbound;
1190
+ export namespace ModelParameters$ {
1191
+ /** @deprecated use `ModelParameters$inboundSchema` instead. */
1192
+ export const inboundSchema = ModelParameters$inboundSchema;
1193
+ /** @deprecated use `ModelParameters$outboundSchema` instead. */
1194
+ export const outboundSchema = ModelParameters$outboundSchema;
1195
+ /** @deprecated use `ModelParameters$Outbound` instead. */
1196
+ export type Outbound = ModelParameters$Outbound;
1416
1197
  }
1417
1198
 
1418
- export function createPromptModelParametersToJSON(
1419
- createPromptModelParameters: CreatePromptModelParameters,
1199
+ export function modelParametersToJSON(
1200
+ modelParameters: ModelParameters,
1420
1201
  ): string {
1421
- return JSON.stringify(
1422
- CreatePromptModelParameters$outboundSchema.parse(
1423
- createPromptModelParameters,
1424
- ),
1425
- );
1202
+ return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
1426
1203
  }
1427
1204
 
1428
- export function createPromptModelParametersFromJSON(
1205
+ export function modelParametersFromJSON(
1429
1206
  jsonString: string,
1430
- ): SafeParseResult<CreatePromptModelParameters, SDKValidationError> {
1207
+ ): SafeParseResult<ModelParameters, SDKValidationError> {
1431
1208
  return safeParse(
1432
1209
  jsonString,
1433
- (x) => CreatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1434
- `Failed to parse 'CreatePromptModelParameters' from JSON`,
1210
+ (x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
1211
+ `Failed to parse 'ModelParameters' from JSON`,
1435
1212
  );
1436
1213
  }
1437
1214
 
1438
1215
  /** @internal */
1439
- export const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<
1440
- typeof CreatePromptProvider
1441
- > = z.nativeEnum(CreatePromptProvider);
1216
+ export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
1217
+ .nativeEnum(Provider);
1442
1218
 
1443
1219
  /** @internal */
1444
- export const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<
1445
- typeof CreatePromptProvider
1446
- > = CreatePromptProvider$inboundSchema;
1220
+ export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
1221
+ Provider$inboundSchema;
1447
1222
 
1448
1223
  /**
1449
1224
  * @internal
1450
1225
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1451
1226
  */
1452
- export namespace CreatePromptProvider$ {
1453
- /** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
1454
- export const inboundSchema = CreatePromptProvider$inboundSchema;
1455
- /** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
1456
- export const outboundSchema = CreatePromptProvider$outboundSchema;
1227
+ export namespace Provider$ {
1228
+ /** @deprecated use `Provider$inboundSchema` instead. */
1229
+ export const inboundSchema = Provider$inboundSchema;
1230
+ /** @deprecated use `Provider$outboundSchema` instead. */
1231
+ export const outboundSchema = Provider$outboundSchema;
1457
1232
  }
1458
1233
 
1459
1234
  /** @internal */
@@ -2032,17 +1807,16 @@ export function createPromptMessagesFromJSON(
2032
1807
  }
2033
1808
 
2034
1809
  /** @internal */
2035
- export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
2036
- CreatePromptPromptConfig,
1810
+ export const PromptConfig$inboundSchema: z.ZodType<
1811
+ PromptConfig,
2037
1812
  z.ZodTypeDef,
2038
1813
  unknown
2039
1814
  > = z.object({
2040
1815
  stream: z.boolean().optional(),
2041
1816
  model: z.string().optional(),
2042
- model_type: CreatePromptModelType$inboundSchema.optional(),
2043
- model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
2044
- .optional(),
2045
- provider: CreatePromptProvider$inboundSchema.optional(),
1817
+ model_type: ModelType$inboundSchema.optional(),
1818
+ model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
1819
+ provider: Provider$inboundSchema.optional(),
2046
1820
  version: z.string().optional(),
2047
1821
  messages: z.array(z.lazy(() => CreatePromptMessages$inboundSchema)),
2048
1822
  }).transform((v) => {
@@ -2053,28 +1827,27 @@ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
2053
1827
  });
2054
1828
 
2055
1829
  /** @internal */
2056
- export type CreatePromptPromptConfig$Outbound = {
1830
+ export type PromptConfig$Outbound = {
2057
1831
  stream?: boolean | undefined;
2058
1832
  model?: string | undefined;
2059
1833
  model_type?: string | undefined;
2060
- model_parameters?: CreatePromptModelParameters$Outbound | undefined;
1834
+ model_parameters?: ModelParameters$Outbound | undefined;
2061
1835
  provider?: string | undefined;
2062
1836
  version?: string | undefined;
2063
1837
  messages: Array<CreatePromptMessages$Outbound>;
2064
1838
  };
2065
1839
 
2066
1840
  /** @internal */
2067
- export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
2068
- CreatePromptPromptConfig$Outbound,
1841
+ export const PromptConfig$outboundSchema: z.ZodType<
1842
+ PromptConfig$Outbound,
2069
1843
  z.ZodTypeDef,
2070
- CreatePromptPromptConfig
1844
+ PromptConfig
2071
1845
  > = z.object({
2072
1846
  stream: z.boolean().optional(),
2073
1847
  model: z.string().optional(),
2074
- modelType: CreatePromptModelType$outboundSchema.optional(),
2075
- modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
2076
- .optional(),
2077
- provider: CreatePromptProvider$outboundSchema.optional(),
1848
+ modelType: ModelType$outboundSchema.optional(),
1849
+ modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
1850
+ provider: Provider$outboundSchema.optional(),
2078
1851
  version: z.string().optional(),
2079
1852
  messages: z.array(z.lazy(() => CreatePromptMessages$outboundSchema)),
2080
1853
  }).transform((v) => {
@@ -2088,83 +1861,37 @@ export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
2088
1861
  * @internal
2089
1862
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2090
1863
  */
2091
- export namespace CreatePromptPromptConfig$ {
2092
- /** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
2093
- export const inboundSchema = CreatePromptPromptConfig$inboundSchema;
2094
- /** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
2095
- export const outboundSchema = CreatePromptPromptConfig$outboundSchema;
2096
- /** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
2097
- export type Outbound = CreatePromptPromptConfig$Outbound;
1864
+ export namespace PromptConfig$ {
1865
+ /** @deprecated use `PromptConfig$inboundSchema` instead. */
1866
+ export const inboundSchema = PromptConfig$inboundSchema;
1867
+ /** @deprecated use `PromptConfig$outboundSchema` instead. */
1868
+ export const outboundSchema = PromptConfig$outboundSchema;
1869
+ /** @deprecated use `PromptConfig$Outbound` instead. */
1870
+ export type Outbound = PromptConfig$Outbound;
2098
1871
  }
2099
1872
 
2100
- export function createPromptPromptConfigToJSON(
2101
- createPromptPromptConfig: CreatePromptPromptConfig,
2102
- ): string {
2103
- return JSON.stringify(
2104
- CreatePromptPromptConfig$outboundSchema.parse(createPromptPromptConfig),
2105
- );
1873
+ export function promptConfigToJSON(promptConfig: PromptConfig): string {
1874
+ return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
2106
1875
  }
2107
1876
 
2108
- export function createPromptPromptConfigFromJSON(
1877
+ export function promptConfigFromJSON(
2109
1878
  jsonString: string,
2110
- ): SafeParseResult<CreatePromptPromptConfig, SDKValidationError> {
1879
+ ): SafeParseResult<PromptConfig, SDKValidationError> {
2111
1880
  return safeParse(
2112
1881
  jsonString,
2113
- (x) => CreatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
2114
- `Failed to parse 'CreatePromptPromptConfig' from JSON`,
1882
+ (x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
1883
+ `Failed to parse 'PromptConfig' from JSON`,
2115
1884
  );
2116
1885
  }
2117
1886
 
2118
- /** @internal */
2119
- export const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<
2120
- typeof CreatePromptUseCases
2121
- > = z.nativeEnum(CreatePromptUseCases);
2122
-
2123
- /** @internal */
2124
- export const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<
2125
- typeof CreatePromptUseCases
2126
- > = CreatePromptUseCases$inboundSchema;
2127
-
2128
- /**
2129
- * @internal
2130
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2131
- */
2132
- export namespace CreatePromptUseCases$ {
2133
- /** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
2134
- export const inboundSchema = CreatePromptUseCases$inboundSchema;
2135
- /** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
2136
- export const outboundSchema = CreatePromptUseCases$outboundSchema;
2137
- }
2138
-
2139
- /** @internal */
2140
- export const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<
2141
- typeof CreatePromptLanguage
2142
- > = z.nativeEnum(CreatePromptLanguage);
2143
-
2144
- /** @internal */
2145
- export const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<
2146
- typeof CreatePromptLanguage
2147
- > = CreatePromptLanguage$inboundSchema;
2148
-
2149
- /**
2150
- * @internal
2151
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2152
- */
2153
- export namespace CreatePromptLanguage$ {
2154
- /** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
2155
- export const inboundSchema = CreatePromptLanguage$inboundSchema;
2156
- /** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
2157
- export const outboundSchema = CreatePromptLanguage$outboundSchema;
2158
- }
2159
-
2160
1887
  /** @internal */
2161
1888
  export const CreatePromptMetadata$inboundSchema: z.ZodType<
2162
1889
  CreatePromptMetadata,
2163
1890
  z.ZodTypeDef,
2164
1891
  unknown
2165
1892
  > = z.object({
2166
- use_cases: z.array(CreatePromptUseCases$inboundSchema).optional(),
2167
- language: CreatePromptLanguage$inboundSchema.optional(),
1893
+ use_cases: z.array(z.string()).optional(),
1894
+ language: z.string().optional(),
2168
1895
  }).transform((v) => {
2169
1896
  return remap$(v, {
2170
1897
  "use_cases": "useCases",
@@ -2183,8 +1910,8 @@ export const CreatePromptMetadata$outboundSchema: z.ZodType<
2183
1910
  z.ZodTypeDef,
2184
1911
  CreatePromptMetadata
2185
1912
  > = z.object({
2186
- useCases: z.array(CreatePromptUseCases$outboundSchema).optional(),
2187
- language: CreatePromptLanguage$outboundSchema.optional(),
1913
+ useCases: z.array(z.string()).optional(),
1914
+ language: z.string().optional(),
2188
1915
  }).transform((v) => {
2189
1916
  return remap$(v, {
2190
1917
  useCases: "use_cases",
@@ -2222,6 +1949,27 @@ export function createPromptMetadataFromJSON(
2222
1949
  );
2223
1950
  }
2224
1951
 
1952
+ /** @internal */
1953
+ export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
1954
+ typeof CreatePromptPromptsType
1955
+ > = z.nativeEnum(CreatePromptPromptsType);
1956
+
1957
+ /** @internal */
1958
+ export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
1959
+ typeof CreatePromptPromptsType
1960
+ > = CreatePromptPromptsType$inboundSchema;
1961
+
1962
+ /**
1963
+ * @internal
1964
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1965
+ */
1966
+ export namespace CreatePromptPromptsType$ {
1967
+ /** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
1968
+ export const inboundSchema = CreatePromptPromptsType$inboundSchema;
1969
+ /** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
1970
+ export const outboundSchema = CreatePromptPromptsType$outboundSchema;
1971
+ }
1972
+
2225
1973
  /** @internal */
2226
1974
  export const CreatePromptRequestBody$inboundSchema: z.ZodType<
2227
1975
  CreatePromptRequestBody,
@@ -2230,9 +1978,10 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
2230
1978
  > = z.object({
2231
1979
  display_name: z.string(),
2232
1980
  description: z.nullable(z.string()).optional(),
2233
- prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema),
1981
+ prompt_config: z.lazy(() => PromptConfig$inboundSchema).optional(),
2234
1982
  metadata: z.lazy(() => CreatePromptMetadata$inboundSchema).optional(),
2235
- path: z.string(),
1983
+ key: z.string().optional(),
1984
+ type: CreatePromptPromptsType$inboundSchema,
2236
1985
  }).transform((v) => {
2237
1986
  return remap$(v, {
2238
1987
  "display_name": "displayName",
@@ -2244,9 +1993,10 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
2244
1993
  export type CreatePromptRequestBody$Outbound = {
2245
1994
  display_name: string;
2246
1995
  description?: string | null | undefined;
2247
- prompt_config: CreatePromptPromptConfig$Outbound;
1996
+ prompt_config?: PromptConfig$Outbound | undefined;
2248
1997
  metadata?: CreatePromptMetadata$Outbound | undefined;
2249
- path: string;
1998
+ key?: string | undefined;
1999
+ type: string;
2250
2000
  };
2251
2001
 
2252
2002
  /** @internal */
@@ -2257,9 +2007,10 @@ export const CreatePromptRequestBody$outboundSchema: z.ZodType<
2257
2007
  > = z.object({
2258
2008
  displayName: z.string(),
2259
2009
  description: z.nullable(z.string()).optional(),
2260
- promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema),
2010
+ promptConfig: z.lazy(() => PromptConfig$outboundSchema).optional(),
2261
2011
  metadata: z.lazy(() => CreatePromptMetadata$outboundSchema).optional(),
2262
- path: z.string(),
2012
+ key: z.string().optional(),
2013
+ type: CreatePromptPromptsType$outboundSchema,
2263
2014
  }).transform((v) => {
2264
2015
  return remap$(v, {
2265
2016
  displayName: "display_name",
@@ -2299,276 +2050,244 @@ export function createPromptRequestBodyFromJSON(
2299
2050
  }
2300
2051
 
2301
2052
  /** @internal */
2302
- export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
2303
- typeof CreatePromptPromptsType
2304
- > = z.nativeEnum(CreatePromptPromptsType);
2305
-
2306
- /** @internal */
2307
- export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
2308
- typeof CreatePromptPromptsType
2309
- > = CreatePromptPromptsType$inboundSchema;
2310
-
2311
- /**
2312
- * @internal
2313
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2314
- */
2315
- export namespace CreatePromptPromptsType$ {
2316
- /** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
2317
- export const inboundSchema = CreatePromptPromptsType$inboundSchema;
2318
- /** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
2319
- export const outboundSchema = CreatePromptPromptsType$outboundSchema;
2320
- }
2321
-
2322
- /** @internal */
2323
- export const CreatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<
2324
- typeof CreatePromptPromptsModelType
2325
- > = z.nativeEnum(CreatePromptPromptsModelType);
2053
+ export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
2054
+ typeof CreatePromptModelType
2055
+ > = z.nativeEnum(CreatePromptModelType);
2326
2056
 
2327
2057
  /** @internal */
2328
- export const CreatePromptPromptsModelType$outboundSchema: z.ZodNativeEnum<
2329
- typeof CreatePromptPromptsModelType
2330
- > = CreatePromptPromptsModelType$inboundSchema;
2058
+ export const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<
2059
+ typeof CreatePromptModelType
2060
+ > = CreatePromptModelType$inboundSchema;
2331
2061
 
2332
2062
  /**
2333
2063
  * @internal
2334
2064
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2335
2065
  */
2336
- export namespace CreatePromptPromptsModelType$ {
2337
- /** @deprecated use `CreatePromptPromptsModelType$inboundSchema` instead. */
2338
- export const inboundSchema = CreatePromptPromptsModelType$inboundSchema;
2339
- /** @deprecated use `CreatePromptPromptsModelType$outboundSchema` instead. */
2340
- export const outboundSchema = CreatePromptPromptsModelType$outboundSchema;
2066
+ export namespace CreatePromptModelType$ {
2067
+ /** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
2068
+ export const inboundSchema = CreatePromptModelType$inboundSchema;
2069
+ /** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
2070
+ export const outboundSchema = CreatePromptModelType$outboundSchema;
2341
2071
  }
2342
2072
 
2343
2073
  /** @internal */
2344
- export const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2345
- typeof CreatePromptPromptsFormat
2346
- > = z.nativeEnum(CreatePromptPromptsFormat);
2074
+ export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
2075
+ typeof CreatePromptFormat
2076
+ > = z.nativeEnum(CreatePromptFormat);
2347
2077
 
2348
2078
  /** @internal */
2349
- export const CreatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2350
- typeof CreatePromptPromptsFormat
2351
- > = CreatePromptPromptsFormat$inboundSchema;
2079
+ export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
2080
+ typeof CreatePromptFormat
2081
+ > = CreatePromptFormat$inboundSchema;
2352
2082
 
2353
2083
  /**
2354
2084
  * @internal
2355
2085
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2356
2086
  */
2357
- export namespace CreatePromptPromptsFormat$ {
2358
- /** @deprecated use `CreatePromptPromptsFormat$inboundSchema` instead. */
2359
- export const inboundSchema = CreatePromptPromptsFormat$inboundSchema;
2360
- /** @deprecated use `CreatePromptPromptsFormat$outboundSchema` instead. */
2361
- export const outboundSchema = CreatePromptPromptsFormat$outboundSchema;
2087
+ export namespace CreatePromptFormat$ {
2088
+ /** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
2089
+ export const inboundSchema = CreatePromptFormat$inboundSchema;
2090
+ /** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
2091
+ export const outboundSchema = CreatePromptFormat$outboundSchema;
2362
2092
  }
2363
2093
 
2364
2094
  /** @internal */
2365
- export const CreatePromptPromptsQuality$inboundSchema: z.ZodNativeEnum<
2366
- typeof CreatePromptPromptsQuality
2367
- > = z.nativeEnum(CreatePromptPromptsQuality);
2095
+ export const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<
2096
+ typeof CreatePromptQuality
2097
+ > = z.nativeEnum(CreatePromptQuality);
2368
2098
 
2369
2099
  /** @internal */
2370
- export const CreatePromptPromptsQuality$outboundSchema: z.ZodNativeEnum<
2371
- typeof CreatePromptPromptsQuality
2372
- > = CreatePromptPromptsQuality$inboundSchema;
2100
+ export const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<
2101
+ typeof CreatePromptQuality
2102
+ > = CreatePromptQuality$inboundSchema;
2373
2103
 
2374
2104
  /**
2375
2105
  * @internal
2376
2106
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2377
2107
  */
2378
- export namespace CreatePromptPromptsQuality$ {
2379
- /** @deprecated use `CreatePromptPromptsQuality$inboundSchema` instead. */
2380
- export const inboundSchema = CreatePromptPromptsQuality$inboundSchema;
2381
- /** @deprecated use `CreatePromptPromptsQuality$outboundSchema` instead. */
2382
- export const outboundSchema = CreatePromptPromptsQuality$outboundSchema;
2108
+ export namespace CreatePromptQuality$ {
2109
+ /** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
2110
+ export const inboundSchema = CreatePromptQuality$inboundSchema;
2111
+ /** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
2112
+ export const outboundSchema = CreatePromptQuality$outboundSchema;
2383
2113
  }
2384
2114
 
2385
2115
  /** @internal */
2386
- export const CreatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2387
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> = z
2388
- .nativeEnum(CreatePromptResponseFormatPromptsResponse200Type);
2116
+ export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2117
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2118
+ .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
2389
2119
 
2390
2120
  /** @internal */
2391
- export const CreatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2392
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> =
2393
- CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2121
+ export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2122
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2123
+ CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2394
2124
 
2395
2125
  /**
2396
2126
  * @internal
2397
2127
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2398
2128
  */
2399
- export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
2400
- /** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2129
+ export namespace CreatePromptResponseFormatPromptsResponseType$ {
2130
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2401
2131
  export const inboundSchema =
2402
- CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2403
- /** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2132
+ CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2133
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2404
2134
  export const outboundSchema =
2405
- CreatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2135
+ CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2406
2136
  }
2407
2137
 
2408
2138
  /** @internal */
2409
- export const CreatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2410
- CreatePromptResponseFormatPrompts2,
2139
+ export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2140
+ CreatePromptResponseFormat2,
2411
2141
  z.ZodTypeDef,
2412
2142
  unknown
2413
2143
  > = z.object({
2414
- type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2144
+ type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2415
2145
  });
2416
2146
 
2417
2147
  /** @internal */
2418
- export type CreatePromptResponseFormatPrompts2$Outbound = {
2148
+ export type CreatePromptResponseFormat2$Outbound = {
2419
2149
  type: string;
2420
2150
  };
2421
2151
 
2422
2152
  /** @internal */
2423
- export const CreatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2424
- CreatePromptResponseFormatPrompts2$Outbound,
2153
+ export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
2154
+ CreatePromptResponseFormat2$Outbound,
2425
2155
  z.ZodTypeDef,
2426
- CreatePromptResponseFormatPrompts2
2156
+ CreatePromptResponseFormat2
2427
2157
  > = z.object({
2428
- type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2158
+ type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2429
2159
  });
2430
2160
 
2431
2161
  /**
2432
2162
  * @internal
2433
2163
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2434
2164
  */
2435
- export namespace CreatePromptResponseFormatPrompts2$ {
2436
- /** @deprecated use `CreatePromptResponseFormatPrompts2$inboundSchema` instead. */
2437
- export const inboundSchema = CreatePromptResponseFormatPrompts2$inboundSchema;
2438
- /** @deprecated use `CreatePromptResponseFormatPrompts2$outboundSchema` instead. */
2439
- export const outboundSchema =
2440
- CreatePromptResponseFormatPrompts2$outboundSchema;
2441
- /** @deprecated use `CreatePromptResponseFormatPrompts2$Outbound` instead. */
2442
- export type Outbound = CreatePromptResponseFormatPrompts2$Outbound;
2165
+ export namespace CreatePromptResponseFormat2$ {
2166
+ /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
2167
+ export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
2168
+ /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
2169
+ export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
2170
+ /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
2171
+ export type Outbound = CreatePromptResponseFormat2$Outbound;
2443
2172
  }
2444
2173
 
2445
- export function createPromptResponseFormatPrompts2ToJSON(
2446
- createPromptResponseFormatPrompts2: CreatePromptResponseFormatPrompts2,
2174
+ export function createPromptResponseFormat2ToJSON(
2175
+ createPromptResponseFormat2: CreatePromptResponseFormat2,
2447
2176
  ): string {
2448
2177
  return JSON.stringify(
2449
- CreatePromptResponseFormatPrompts2$outboundSchema.parse(
2450
- createPromptResponseFormatPrompts2,
2178
+ CreatePromptResponseFormat2$outboundSchema.parse(
2179
+ createPromptResponseFormat2,
2451
2180
  ),
2452
2181
  );
2453
2182
  }
2454
2183
 
2455
- export function createPromptResponseFormatPrompts2FromJSON(
2184
+ export function createPromptResponseFormat2FromJSON(
2456
2185
  jsonString: string,
2457
- ): SafeParseResult<CreatePromptResponseFormatPrompts2, SDKValidationError> {
2186
+ ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
2458
2187
  return safeParse(
2459
2188
  jsonString,
2460
- (x) =>
2461
- CreatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
2462
- `Failed to parse 'CreatePromptResponseFormatPrompts2' from JSON`,
2189
+ (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2190
+ `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
2463
2191
  );
2464
2192
  }
2465
2193
 
2466
2194
  /** @internal */
2467
- export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2468
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2469
- .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
2195
+ export const CreatePromptResponseFormatPromptsType$inboundSchema:
2196
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
2197
+ CreatePromptResponseFormatPromptsType,
2198
+ );
2470
2199
 
2471
2200
  /** @internal */
2472
- export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2473
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2474
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2201
+ export const CreatePromptResponseFormatPromptsType$outboundSchema:
2202
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
2203
+ CreatePromptResponseFormatPromptsType$inboundSchema;
2475
2204
 
2476
2205
  /**
2477
2206
  * @internal
2478
2207
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2479
2208
  */
2480
- export namespace CreatePromptResponseFormatPromptsResponseType$ {
2481
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2209
+ export namespace CreatePromptResponseFormatPromptsType$ {
2210
+ /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
2482
2211
  export const inboundSchema =
2483
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2484
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2212
+ CreatePromptResponseFormatPromptsType$inboundSchema;
2213
+ /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
2485
2214
  export const outboundSchema =
2486
- CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2215
+ CreatePromptResponseFormatPromptsType$outboundSchema;
2487
2216
  }
2488
2217
 
2489
2218
  /** @internal */
2490
- export const CreatePromptResponseFormatPromptsJsonSchema$inboundSchema:
2491
- z.ZodType<
2492
- CreatePromptResponseFormatPromptsJsonSchema,
2493
- z.ZodTypeDef,
2494
- unknown
2495
- > = z.object({
2496
- name: z.string(),
2497
- strict: z.boolean(),
2498
- schema: z.record(z.any()),
2499
- });
2219
+ export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2220
+ CreatePromptResponseFormatJsonSchema,
2221
+ z.ZodTypeDef,
2222
+ unknown
2223
+ > = z.object({
2224
+ name: z.string(),
2225
+ strict: z.boolean(),
2226
+ schema: z.record(z.any()),
2227
+ });
2500
2228
 
2501
2229
  /** @internal */
2502
- export type CreatePromptResponseFormatPromptsJsonSchema$Outbound = {
2230
+ export type CreatePromptResponseFormatJsonSchema$Outbound = {
2503
2231
  name: string;
2504
2232
  strict: boolean;
2505
2233
  schema: { [k: string]: any };
2506
2234
  };
2507
2235
 
2508
2236
  /** @internal */
2509
- export const CreatePromptResponseFormatPromptsJsonSchema$outboundSchema:
2510
- z.ZodType<
2511
- CreatePromptResponseFormatPromptsJsonSchema$Outbound,
2512
- z.ZodTypeDef,
2513
- CreatePromptResponseFormatPromptsJsonSchema
2514
- > = z.object({
2515
- name: z.string(),
2516
- strict: z.boolean(),
2517
- schema: z.record(z.any()),
2518
- });
2237
+ export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2238
+ CreatePromptResponseFormatJsonSchema$Outbound,
2239
+ z.ZodTypeDef,
2240
+ CreatePromptResponseFormatJsonSchema
2241
+ > = z.object({
2242
+ name: z.string(),
2243
+ strict: z.boolean(),
2244
+ schema: z.record(z.any()),
2245
+ });
2519
2246
 
2520
2247
  /**
2521
2248
  * @internal
2522
2249
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2523
2250
  */
2524
- export namespace CreatePromptResponseFormatPromptsJsonSchema$ {
2525
- /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$inboundSchema` instead. */
2251
+ export namespace CreatePromptResponseFormatJsonSchema$ {
2252
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2526
2253
  export const inboundSchema =
2527
- CreatePromptResponseFormatPromptsJsonSchema$inboundSchema;
2528
- /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$outboundSchema` instead. */
2254
+ CreatePromptResponseFormatJsonSchema$inboundSchema;
2255
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2529
2256
  export const outboundSchema =
2530
- CreatePromptResponseFormatPromptsJsonSchema$outboundSchema;
2531
- /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$Outbound` instead. */
2532
- export type Outbound = CreatePromptResponseFormatPromptsJsonSchema$Outbound;
2257
+ CreatePromptResponseFormatJsonSchema$outboundSchema;
2258
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
2259
+ export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
2533
2260
  }
2534
2261
 
2535
- export function createPromptResponseFormatPromptsJsonSchemaToJSON(
2536
- createPromptResponseFormatPromptsJsonSchema:
2537
- CreatePromptResponseFormatPromptsJsonSchema,
2262
+ export function createPromptResponseFormatJsonSchemaToJSON(
2263
+ createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
2538
2264
  ): string {
2539
2265
  return JSON.stringify(
2540
- CreatePromptResponseFormatPromptsJsonSchema$outboundSchema.parse(
2541
- createPromptResponseFormatPromptsJsonSchema,
2266
+ CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
2267
+ createPromptResponseFormatJsonSchema,
2542
2268
  ),
2543
2269
  );
2544
2270
  }
2545
2271
 
2546
- export function createPromptResponseFormatPromptsJsonSchemaFromJSON(
2272
+ export function createPromptResponseFormatJsonSchemaFromJSON(
2547
2273
  jsonString: string,
2548
- ): SafeParseResult<
2549
- CreatePromptResponseFormatPromptsJsonSchema,
2550
- SDKValidationError
2551
- > {
2274
+ ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
2552
2275
  return safeParse(
2553
2276
  jsonString,
2554
2277
  (x) =>
2555
- CreatePromptResponseFormatPromptsJsonSchema$inboundSchema.parse(
2556
- JSON.parse(x),
2557
- ),
2558
- `Failed to parse 'CreatePromptResponseFormatPromptsJsonSchema' from JSON`,
2278
+ CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2279
+ `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
2559
2280
  );
2560
2281
  }
2561
2282
 
2562
2283
  /** @internal */
2563
- export const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2564
- CreatePromptResponseFormatPrompts1,
2284
+ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2285
+ CreatePromptResponseFormat1,
2565
2286
  z.ZodTypeDef,
2566
2287
  unknown
2567
2288
  > = z.object({
2568
- type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2569
- json_schema: z.lazy(() =>
2570
- CreatePromptResponseFormatPromptsJsonSchema$inboundSchema
2571
- ),
2289
+ type: CreatePromptResponseFormatPromptsType$inboundSchema,
2290
+ json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
2572
2291
  }).transform((v) => {
2573
2292
  return remap$(v, {
2574
2293
  "json_schema": "jsonSchema",
@@ -2576,21 +2295,19 @@ export const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2576
2295
  });
2577
2296
 
2578
2297
  /** @internal */
2579
- export type CreatePromptResponseFormatPrompts1$Outbound = {
2298
+ export type CreatePromptResponseFormat1$Outbound = {
2580
2299
  type: string;
2581
- json_schema: CreatePromptResponseFormatPromptsJsonSchema$Outbound;
2300
+ json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
2582
2301
  };
2583
2302
 
2584
2303
  /** @internal */
2585
- export const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2586
- CreatePromptResponseFormatPrompts1$Outbound,
2304
+ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2305
+ CreatePromptResponseFormat1$Outbound,
2587
2306
  z.ZodTypeDef,
2588
- CreatePromptResponseFormatPrompts1
2307
+ CreatePromptResponseFormat1
2589
2308
  > = z.object({
2590
- type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2591
- jsonSchema: z.lazy(() =>
2592
- CreatePromptResponseFormatPromptsJsonSchema$outboundSchema
2593
- ),
2309
+ type: CreatePromptResponseFormatPromptsType$outboundSchema,
2310
+ jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
2594
2311
  }).transform((v) => {
2595
2312
  return remap$(v, {
2596
2313
  jsonSchema: "json_schema",
@@ -2601,166 +2318,136 @@ export const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2601
2318
  * @internal
2602
2319
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2603
2320
  */
2604
- export namespace CreatePromptResponseFormatPrompts1$ {
2605
- /** @deprecated use `CreatePromptResponseFormatPrompts1$inboundSchema` instead. */
2606
- export const inboundSchema = CreatePromptResponseFormatPrompts1$inboundSchema;
2607
- /** @deprecated use `CreatePromptResponseFormatPrompts1$outboundSchema` instead. */
2608
- export const outboundSchema =
2609
- CreatePromptResponseFormatPrompts1$outboundSchema;
2610
- /** @deprecated use `CreatePromptResponseFormatPrompts1$Outbound` instead. */
2611
- export type Outbound = CreatePromptResponseFormatPrompts1$Outbound;
2321
+ export namespace CreatePromptResponseFormat1$ {
2322
+ /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
2323
+ export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
2324
+ /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
2325
+ export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
2326
+ /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
2327
+ export type Outbound = CreatePromptResponseFormat1$Outbound;
2612
2328
  }
2613
2329
 
2614
- export function createPromptResponseFormatPrompts1ToJSON(
2615
- createPromptResponseFormatPrompts1: CreatePromptResponseFormatPrompts1,
2330
+ export function createPromptResponseFormat1ToJSON(
2331
+ createPromptResponseFormat1: CreatePromptResponseFormat1,
2616
2332
  ): string {
2617
2333
  return JSON.stringify(
2618
- CreatePromptResponseFormatPrompts1$outboundSchema.parse(
2619
- createPromptResponseFormatPrompts1,
2334
+ CreatePromptResponseFormat1$outboundSchema.parse(
2335
+ createPromptResponseFormat1,
2620
2336
  ),
2621
2337
  );
2622
2338
  }
2623
2339
 
2624
- export function createPromptResponseFormatPrompts1FromJSON(
2340
+ export function createPromptResponseFormat1FromJSON(
2625
2341
  jsonString: string,
2626
- ): SafeParseResult<CreatePromptResponseFormatPrompts1, SDKValidationError> {
2342
+ ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
2627
2343
  return safeParse(
2628
2344
  jsonString,
2629
- (x) =>
2630
- CreatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
2631
- `Failed to parse 'CreatePromptResponseFormatPrompts1' from JSON`,
2345
+ (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
2346
+ `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
2632
2347
  );
2633
2348
  }
2634
2349
 
2635
2350
  /** @internal */
2636
- export const CreatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
2637
- CreatePromptPromptsResponseFormat,
2351
+ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
2352
+ CreatePromptResponseFormat,
2638
2353
  z.ZodTypeDef,
2639
2354
  unknown
2640
2355
  > = z.union([
2641
- z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
2642
- z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
2356
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2357
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2643
2358
  ]);
2644
2359
 
2645
2360
  /** @internal */
2646
- export type CreatePromptPromptsResponseFormat$Outbound =
2647
- | CreatePromptResponseFormatPrompts2$Outbound
2648
- | CreatePromptResponseFormatPrompts1$Outbound;
2361
+ export type CreatePromptResponseFormat$Outbound =
2362
+ | CreatePromptResponseFormat2$Outbound
2363
+ | CreatePromptResponseFormat1$Outbound;
2649
2364
 
2650
2365
  /** @internal */
2651
- export const CreatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
2652
- CreatePromptPromptsResponseFormat$Outbound,
2366
+ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
2367
+ CreatePromptResponseFormat$Outbound,
2653
2368
  z.ZodTypeDef,
2654
- CreatePromptPromptsResponseFormat
2369
+ CreatePromptResponseFormat
2655
2370
  > = z.union([
2656
- z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
2657
- z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
2371
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2372
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2658
2373
  ]);
2659
2374
 
2660
2375
  /**
2661
2376
  * @internal
2662
2377
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2663
2378
  */
2664
- export namespace CreatePromptPromptsResponseFormat$ {
2665
- /** @deprecated use `CreatePromptPromptsResponseFormat$inboundSchema` instead. */
2666
- export const inboundSchema = CreatePromptPromptsResponseFormat$inboundSchema;
2667
- /** @deprecated use `CreatePromptPromptsResponseFormat$outboundSchema` instead. */
2668
- export const outboundSchema =
2669
- CreatePromptPromptsResponseFormat$outboundSchema;
2670
- /** @deprecated use `CreatePromptPromptsResponseFormat$Outbound` instead. */
2671
- export type Outbound = CreatePromptPromptsResponseFormat$Outbound;
2379
+ export namespace CreatePromptResponseFormat$ {
2380
+ /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
2381
+ export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
2382
+ /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
2383
+ export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
2384
+ /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
2385
+ export type Outbound = CreatePromptResponseFormat$Outbound;
2672
2386
  }
2673
2387
 
2674
- export function createPromptPromptsResponseFormatToJSON(
2675
- createPromptPromptsResponseFormat: CreatePromptPromptsResponseFormat,
2388
+ export function createPromptResponseFormatToJSON(
2389
+ createPromptResponseFormat: CreatePromptResponseFormat,
2676
2390
  ): string {
2677
2391
  return JSON.stringify(
2678
- CreatePromptPromptsResponseFormat$outboundSchema.parse(
2679
- createPromptPromptsResponseFormat,
2680
- ),
2392
+ CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
2681
2393
  );
2682
2394
  }
2683
2395
 
2684
- export function createPromptPromptsResponseFormatFromJSON(
2396
+ export function createPromptResponseFormatFromJSON(
2685
2397
  jsonString: string,
2686
- ): SafeParseResult<CreatePromptPromptsResponseFormat, SDKValidationError> {
2398
+ ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
2687
2399
  return safeParse(
2688
2400
  jsonString,
2689
- (x) => CreatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2690
- `Failed to parse 'CreatePromptPromptsResponseFormat' from JSON`,
2401
+ (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
2402
+ `Failed to parse 'CreatePromptResponseFormat' from JSON`,
2691
2403
  );
2692
2404
  }
2693
2405
 
2694
2406
  /** @internal */
2695
- export const CreatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2696
- typeof CreatePromptPromptsPhotoRealVersion
2697
- > = z.nativeEnum(CreatePromptPromptsPhotoRealVersion);
2698
-
2699
- /** @internal */
2700
- export const CreatePromptPromptsPhotoRealVersion$outboundSchema:
2701
- z.ZodNativeEnum<typeof CreatePromptPromptsPhotoRealVersion> =
2702
- CreatePromptPromptsPhotoRealVersion$inboundSchema;
2703
-
2704
- /**
2705
- * @internal
2706
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2707
- */
2708
- export namespace CreatePromptPromptsPhotoRealVersion$ {
2709
- /** @deprecated use `CreatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
2710
- export const inboundSchema =
2711
- CreatePromptPromptsPhotoRealVersion$inboundSchema;
2712
- /** @deprecated use `CreatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
2713
- export const outboundSchema =
2714
- CreatePromptPromptsPhotoRealVersion$outboundSchema;
2715
- }
2716
-
2717
- /** @internal */
2718
- export const CreatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
2719
- typeof CreatePromptPromptsEncodingFormat
2720
- > = z.nativeEnum(CreatePromptPromptsEncodingFormat);
2407
+ export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2408
+ typeof CreatePromptPhotoRealVersion
2409
+ > = z.nativeEnum(CreatePromptPhotoRealVersion);
2721
2410
 
2722
2411
  /** @internal */
2723
- export const CreatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
2724
- typeof CreatePromptPromptsEncodingFormat
2725
- > = CreatePromptPromptsEncodingFormat$inboundSchema;
2412
+ export const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
2413
+ typeof CreatePromptPhotoRealVersion
2414
+ > = CreatePromptPhotoRealVersion$inboundSchema;
2726
2415
 
2727
2416
  /**
2728
2417
  * @internal
2729
2418
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2730
2419
  */
2731
- export namespace CreatePromptPromptsEncodingFormat$ {
2732
- /** @deprecated use `CreatePromptPromptsEncodingFormat$inboundSchema` instead. */
2733
- export const inboundSchema = CreatePromptPromptsEncodingFormat$inboundSchema;
2734
- /** @deprecated use `CreatePromptPromptsEncodingFormat$outboundSchema` instead. */
2735
- export const outboundSchema =
2736
- CreatePromptPromptsEncodingFormat$outboundSchema;
2420
+ export namespace CreatePromptPhotoRealVersion$ {
2421
+ /** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
2422
+ export const inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
2423
+ /** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
2424
+ export const outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
2737
2425
  }
2738
2426
 
2739
2427
  /** @internal */
2740
- export const CreatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2741
- typeof CreatePromptPromptsReasoningEffort
2742
- > = z.nativeEnum(CreatePromptPromptsReasoningEffort);
2428
+ export const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
2429
+ typeof CreatePromptEncodingFormat
2430
+ > = z.nativeEnum(CreatePromptEncodingFormat);
2743
2431
 
2744
2432
  /** @internal */
2745
- export const CreatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
2746
- typeof CreatePromptPromptsReasoningEffort
2747
- > = CreatePromptPromptsReasoningEffort$inboundSchema;
2433
+ export const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
2434
+ typeof CreatePromptEncodingFormat
2435
+ > = CreatePromptEncodingFormat$inboundSchema;
2748
2436
 
2749
2437
  /**
2750
2438
  * @internal
2751
2439
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2752
2440
  */
2753
- export namespace CreatePromptPromptsReasoningEffort$ {
2754
- /** @deprecated use `CreatePromptPromptsReasoningEffort$inboundSchema` instead. */
2755
- export const inboundSchema = CreatePromptPromptsReasoningEffort$inboundSchema;
2756
- /** @deprecated use `CreatePromptPromptsReasoningEffort$outboundSchema` instead. */
2757
- export const outboundSchema =
2758
- CreatePromptPromptsReasoningEffort$outboundSchema;
2441
+ export namespace CreatePromptEncodingFormat$ {
2442
+ /** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
2443
+ export const inboundSchema = CreatePromptEncodingFormat$inboundSchema;
2444
+ /** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
2445
+ export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
2759
2446
  }
2760
2447
 
2761
2448
  /** @internal */
2762
- export const CreatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2763
- CreatePromptPromptsModelParameters,
2449
+ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2450
+ CreatePromptModelParameters,
2764
2451
  z.ZodTypeDef,
2765
2452
  unknown
2766
2453
  > = z.object({
@@ -2772,20 +2459,18 @@ export const CreatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2772
2459
  presencePenalty: z.number().optional(),
2773
2460
  numImages: z.number().optional(),
2774
2461
  seed: z.number().optional(),
2775
- format: CreatePromptPromptsFormat$inboundSchema.optional(),
2462
+ format: CreatePromptFormat$inboundSchema.optional(),
2776
2463
  dimensions: z.string().optional(),
2777
- quality: CreatePromptPromptsQuality$inboundSchema.optional(),
2464
+ quality: CreatePromptQuality$inboundSchema.optional(),
2778
2465
  style: z.string().optional(),
2779
2466
  responseFormat: z.nullable(
2780
2467
  z.union([
2781
- z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
2782
- z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
2468
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2469
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2783
2470
  ]),
2784
2471
  ).optional(),
2785
- photoRealVersion: CreatePromptPromptsPhotoRealVersion$inboundSchema
2786
- .optional(),
2787
- encoding_format: CreatePromptPromptsEncodingFormat$inboundSchema.optional(),
2788
- reasoningEffort: CreatePromptPromptsReasoningEffort$inboundSchema.optional(),
2472
+ photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
2473
+ encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
2789
2474
  }).transform((v) => {
2790
2475
  return remap$(v, {
2791
2476
  "encoding_format": "encodingFormat",
@@ -2793,7 +2478,7 @@ export const CreatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2793
2478
  });
2794
2479
 
2795
2480
  /** @internal */
2796
- export type CreatePromptPromptsModelParameters$Outbound = {
2481
+ export type CreatePromptModelParameters$Outbound = {
2797
2482
  temperature?: number | undefined;
2798
2483
  maxTokens?: number | undefined;
2799
2484
  topK?: number | undefined;
@@ -2807,20 +2492,19 @@ export type CreatePromptPromptsModelParameters$Outbound = {
2807
2492
  quality?: string | undefined;
2808
2493
  style?: string | undefined;
2809
2494
  responseFormat?:
2810
- | CreatePromptResponseFormatPrompts2$Outbound
2811
- | CreatePromptResponseFormatPrompts1$Outbound
2495
+ | CreatePromptResponseFormat2$Outbound
2496
+ | CreatePromptResponseFormat1$Outbound
2812
2497
  | null
2813
2498
  | undefined;
2814
2499
  photoRealVersion?: string | undefined;
2815
2500
  encoding_format?: string | undefined;
2816
- reasoningEffort?: string | undefined;
2817
2501
  };
2818
2502
 
2819
2503
  /** @internal */
2820
- export const CreatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2821
- CreatePromptPromptsModelParameters$Outbound,
2504
+ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2505
+ CreatePromptModelParameters$Outbound,
2822
2506
  z.ZodTypeDef,
2823
- CreatePromptPromptsModelParameters
2507
+ CreatePromptModelParameters
2824
2508
  > = z.object({
2825
2509
  temperature: z.number().optional(),
2826
2510
  maxTokens: z.number().optional(),
@@ -2830,20 +2514,18 @@ export const CreatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2830
2514
  presencePenalty: z.number().optional(),
2831
2515
  numImages: z.number().optional(),
2832
2516
  seed: z.number().optional(),
2833
- format: CreatePromptPromptsFormat$outboundSchema.optional(),
2517
+ format: CreatePromptFormat$outboundSchema.optional(),
2834
2518
  dimensions: z.string().optional(),
2835
- quality: CreatePromptPromptsQuality$outboundSchema.optional(),
2519
+ quality: CreatePromptQuality$outboundSchema.optional(),
2836
2520
  style: z.string().optional(),
2837
2521
  responseFormat: z.nullable(
2838
2522
  z.union([
2839
- z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
2840
- z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
2523
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2524
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2841
2525
  ]),
2842
2526
  ).optional(),
2843
- photoRealVersion: CreatePromptPromptsPhotoRealVersion$outboundSchema
2844
- .optional(),
2845
- encodingFormat: CreatePromptPromptsEncodingFormat$outboundSchema.optional(),
2846
- reasoningEffort: CreatePromptPromptsReasoningEffort$outboundSchema.optional(),
2527
+ photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
2528
+ encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
2847
2529
  }).transform((v) => {
2848
2530
  return remap$(v, {
2849
2531
  encodingFormat: "encoding_format",
@@ -2854,56 +2536,54 @@ export const CreatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2854
2536
  * @internal
2855
2537
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2856
2538
  */
2857
- export namespace CreatePromptPromptsModelParameters$ {
2858
- /** @deprecated use `CreatePromptPromptsModelParameters$inboundSchema` instead. */
2859
- export const inboundSchema = CreatePromptPromptsModelParameters$inboundSchema;
2860
- /** @deprecated use `CreatePromptPromptsModelParameters$outboundSchema` instead. */
2861
- export const outboundSchema =
2862
- CreatePromptPromptsModelParameters$outboundSchema;
2863
- /** @deprecated use `CreatePromptPromptsModelParameters$Outbound` instead. */
2864
- export type Outbound = CreatePromptPromptsModelParameters$Outbound;
2539
+ export namespace CreatePromptModelParameters$ {
2540
+ /** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
2541
+ export const inboundSchema = CreatePromptModelParameters$inboundSchema;
2542
+ /** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
2543
+ export const outboundSchema = CreatePromptModelParameters$outboundSchema;
2544
+ /** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
2545
+ export type Outbound = CreatePromptModelParameters$Outbound;
2865
2546
  }
2866
2547
 
2867
- export function createPromptPromptsModelParametersToJSON(
2868
- createPromptPromptsModelParameters: CreatePromptPromptsModelParameters,
2548
+ export function createPromptModelParametersToJSON(
2549
+ createPromptModelParameters: CreatePromptModelParameters,
2869
2550
  ): string {
2870
2551
  return JSON.stringify(
2871
- CreatePromptPromptsModelParameters$outboundSchema.parse(
2872
- createPromptPromptsModelParameters,
2552
+ CreatePromptModelParameters$outboundSchema.parse(
2553
+ createPromptModelParameters,
2873
2554
  ),
2874
2555
  );
2875
2556
  }
2876
2557
 
2877
- export function createPromptPromptsModelParametersFromJSON(
2558
+ export function createPromptModelParametersFromJSON(
2878
2559
  jsonString: string,
2879
- ): SafeParseResult<CreatePromptPromptsModelParameters, SDKValidationError> {
2560
+ ): SafeParseResult<CreatePromptModelParameters, SDKValidationError> {
2880
2561
  return safeParse(
2881
2562
  jsonString,
2882
- (x) =>
2883
- CreatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
2884
- `Failed to parse 'CreatePromptPromptsModelParameters' from JSON`,
2563
+ (x) => CreatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
2564
+ `Failed to parse 'CreatePromptModelParameters' from JSON`,
2885
2565
  );
2886
2566
  }
2887
2567
 
2888
2568
  /** @internal */
2889
- export const CreatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
2890
- typeof CreatePromptPromptsProvider
2891
- > = z.nativeEnum(CreatePromptPromptsProvider);
2569
+ export const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<
2570
+ typeof CreatePromptProvider
2571
+ > = z.nativeEnum(CreatePromptProvider);
2892
2572
 
2893
2573
  /** @internal */
2894
- export const CreatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
2895
- typeof CreatePromptPromptsProvider
2896
- > = CreatePromptPromptsProvider$inboundSchema;
2574
+ export const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<
2575
+ typeof CreatePromptProvider
2576
+ > = CreatePromptProvider$inboundSchema;
2897
2577
 
2898
2578
  /**
2899
2579
  * @internal
2900
2580
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2901
2581
  */
2902
- export namespace CreatePromptPromptsProvider$ {
2903
- /** @deprecated use `CreatePromptPromptsProvider$inboundSchema` instead. */
2904
- export const inboundSchema = CreatePromptPromptsProvider$inboundSchema;
2905
- /** @deprecated use `CreatePromptPromptsProvider$outboundSchema` instead. */
2906
- export const outboundSchema = CreatePromptPromptsProvider$outboundSchema;
2582
+ export namespace CreatePromptProvider$ {
2583
+ /** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
2584
+ export const inboundSchema = CreatePromptProvider$inboundSchema;
2585
+ /** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
2586
+ export const outboundSchema = CreatePromptProvider$outboundSchema;
2907
2587
  }
2908
2588
 
2909
2589
  /** @internal */
@@ -3276,24 +2956,25 @@ export function createPromptPromptsContentFromJSON(
3276
2956
  }
3277
2957
 
3278
2958
  /** @internal */
3279
- export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3280
- typeof CreatePromptPromptsResponseType
3281
- > = z.nativeEnum(CreatePromptPromptsResponseType);
2959
+ export const CreatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
2960
+ typeof CreatePromptPromptsResponse200Type
2961
+ > = z.nativeEnum(CreatePromptPromptsResponse200Type);
3282
2962
 
3283
2963
  /** @internal */
3284
- export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
3285
- typeof CreatePromptPromptsResponseType
3286
- > = CreatePromptPromptsResponseType$inboundSchema;
2964
+ export const CreatePromptPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<
2965
+ typeof CreatePromptPromptsResponse200Type
2966
+ > = CreatePromptPromptsResponse200Type$inboundSchema;
3287
2967
 
3288
2968
  /**
3289
2969
  * @internal
3290
2970
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3291
2971
  */
3292
- export namespace CreatePromptPromptsResponseType$ {
3293
- /** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
3294
- export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
3295
- /** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
3296
- export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
2972
+ export namespace CreatePromptPromptsResponse200Type$ {
2973
+ /** @deprecated use `CreatePromptPromptsResponse200Type$inboundSchema` instead. */
2974
+ export const inboundSchema = CreatePromptPromptsResponse200Type$inboundSchema;
2975
+ /** @deprecated use `CreatePromptPromptsResponse200Type$outboundSchema` instead. */
2976
+ export const outboundSchema =
2977
+ CreatePromptPromptsResponse200Type$outboundSchema;
3297
2978
  }
3298
2979
 
3299
2980
  /** @internal */
@@ -3363,7 +3044,7 @@ export const CreatePromptPromptsToolCalls$inboundSchema: z.ZodType<
3363
3044
  > = z.object({
3364
3045
  id: z.string().optional(),
3365
3046
  index: z.number().optional(),
3366
- type: CreatePromptPromptsResponseType$inboundSchema,
3047
+ type: CreatePromptPromptsResponse200Type$inboundSchema,
3367
3048
  function: z.lazy(() => CreatePromptPromptsFunction$inboundSchema),
3368
3049
  });
3369
3050
 
@@ -3383,7 +3064,7 @@ export const CreatePromptPromptsToolCalls$outboundSchema: z.ZodType<
3383
3064
  > = z.object({
3384
3065
  id: z.string().optional(),
3385
3066
  index: z.number().optional(),
3386
- type: CreatePromptPromptsResponseType$outboundSchema,
3067
+ type: CreatePromptPromptsResponse200Type$outboundSchema,
3387
3068
  function: z.lazy(() => CreatePromptPromptsFunction$outboundSchema),
3388
3069
  });
3389
3070
 
@@ -3507,19 +3188,18 @@ export function createPromptPromptsMessagesFromJSON(
3507
3188
  }
3508
3189
 
3509
3190
  /** @internal */
3510
- export const CreatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3511
- CreatePromptPromptsPromptConfig,
3191
+ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
3192
+ CreatePromptPromptConfig,
3512
3193
  z.ZodTypeDef,
3513
3194
  unknown
3514
3195
  > = z.object({
3515
3196
  stream: z.boolean().optional(),
3516
3197
  model: z.string().optional(),
3517
3198
  model_db_id: z.string().optional(),
3518
- model_type: CreatePromptPromptsModelType$inboundSchema.optional(),
3519
- model_parameters: z.lazy(() =>
3520
- CreatePromptPromptsModelParameters$inboundSchema
3521
- ).optional(),
3522
- provider: CreatePromptPromptsProvider$inboundSchema.optional(),
3199
+ model_type: CreatePromptModelType$inboundSchema.optional(),
3200
+ model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
3201
+ .optional(),
3202
+ provider: CreatePromptProvider$inboundSchema.optional(),
3523
3203
  integration_id: z.nullable(z.string()).optional(),
3524
3204
  version: z.string().optional(),
3525
3205
  messages: z.array(z.lazy(() => CreatePromptPromptsMessages$inboundSchema)),
@@ -3533,12 +3213,12 @@ export const CreatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3533
3213
  });
3534
3214
 
3535
3215
  /** @internal */
3536
- export type CreatePromptPromptsPromptConfig$Outbound = {
3216
+ export type CreatePromptPromptConfig$Outbound = {
3537
3217
  stream?: boolean | undefined;
3538
3218
  model?: string | undefined;
3539
3219
  model_db_id?: string | undefined;
3540
3220
  model_type?: string | undefined;
3541
- model_parameters?: CreatePromptPromptsModelParameters$Outbound | undefined;
3221
+ model_parameters?: CreatePromptModelParameters$Outbound | undefined;
3542
3222
  provider?: string | undefined;
3543
3223
  integration_id?: string | null | undefined;
3544
3224
  version?: string | undefined;
@@ -3546,19 +3226,18 @@ export type CreatePromptPromptsPromptConfig$Outbound = {
3546
3226
  };
3547
3227
 
3548
3228
  /** @internal */
3549
- export const CreatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3550
- CreatePromptPromptsPromptConfig$Outbound,
3229
+ export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
3230
+ CreatePromptPromptConfig$Outbound,
3551
3231
  z.ZodTypeDef,
3552
- CreatePromptPromptsPromptConfig
3232
+ CreatePromptPromptConfig
3553
3233
  > = z.object({
3554
3234
  stream: z.boolean().optional(),
3555
3235
  model: z.string().optional(),
3556
3236
  modelDbId: z.string().optional(),
3557
- modelType: CreatePromptPromptsModelType$outboundSchema.optional(),
3558
- modelParameters: z.lazy(() =>
3559
- CreatePromptPromptsModelParameters$outboundSchema
3560
- ).optional(),
3561
- provider: CreatePromptPromptsProvider$outboundSchema.optional(),
3237
+ modelType: CreatePromptModelType$outboundSchema.optional(),
3238
+ modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
3239
+ .optional(),
3240
+ provider: CreatePromptProvider$outboundSchema.optional(),
3562
3241
  integrationId: z.nullable(z.string()).optional(),
3563
3242
  version: z.string().optional(),
3564
3243
  messages: z.array(z.lazy(() => CreatePromptPromptsMessages$outboundSchema)),
@@ -3575,85 +3254,41 @@ export const CreatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3575
3254
  * @internal
3576
3255
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3577
3256
  */
3578
- export namespace CreatePromptPromptsPromptConfig$ {
3579
- /** @deprecated use `CreatePromptPromptsPromptConfig$inboundSchema` instead. */
3580
- export const inboundSchema = CreatePromptPromptsPromptConfig$inboundSchema;
3581
- /** @deprecated use `CreatePromptPromptsPromptConfig$outboundSchema` instead. */
3582
- export const outboundSchema = CreatePromptPromptsPromptConfig$outboundSchema;
3583
- /** @deprecated use `CreatePromptPromptsPromptConfig$Outbound` instead. */
3584
- export type Outbound = CreatePromptPromptsPromptConfig$Outbound;
3257
+ export namespace CreatePromptPromptConfig$ {
3258
+ /** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
3259
+ export const inboundSchema = CreatePromptPromptConfig$inboundSchema;
3260
+ /** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
3261
+ export const outboundSchema = CreatePromptPromptConfig$outboundSchema;
3262
+ /** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
3263
+ export type Outbound = CreatePromptPromptConfig$Outbound;
3585
3264
  }
3586
3265
 
3587
- export function createPromptPromptsPromptConfigToJSON(
3588
- createPromptPromptsPromptConfig: CreatePromptPromptsPromptConfig,
3266
+ export function createPromptPromptConfigToJSON(
3267
+ createPromptPromptConfig: CreatePromptPromptConfig,
3589
3268
  ): string {
3590
3269
  return JSON.stringify(
3591
- CreatePromptPromptsPromptConfig$outboundSchema.parse(
3592
- createPromptPromptsPromptConfig,
3593
- ),
3270
+ CreatePromptPromptConfig$outboundSchema.parse(createPromptPromptConfig),
3594
3271
  );
3595
3272
  }
3596
3273
 
3597
- export function createPromptPromptsPromptConfigFromJSON(
3274
+ export function createPromptPromptConfigFromJSON(
3598
3275
  jsonString: string,
3599
- ): SafeParseResult<CreatePromptPromptsPromptConfig, SDKValidationError> {
3276
+ ): SafeParseResult<CreatePromptPromptConfig, SDKValidationError> {
3600
3277
  return safeParse(
3601
3278
  jsonString,
3602
- (x) => CreatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
3603
- `Failed to parse 'CreatePromptPromptsPromptConfig' from JSON`,
3279
+ (x) => CreatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
3280
+ `Failed to parse 'CreatePromptPromptConfig' from JSON`,
3604
3281
  );
3605
3282
  }
3606
3283
 
3607
- /** @internal */
3608
- export const CreatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
3609
- typeof CreatePromptPromptsUseCases
3610
- > = z.nativeEnum(CreatePromptPromptsUseCases);
3611
-
3612
- /** @internal */
3613
- export const CreatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
3614
- typeof CreatePromptPromptsUseCases
3615
- > = CreatePromptPromptsUseCases$inboundSchema;
3616
-
3617
- /**
3618
- * @internal
3619
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3620
- */
3621
- export namespace CreatePromptPromptsUseCases$ {
3622
- /** @deprecated use `CreatePromptPromptsUseCases$inboundSchema` instead. */
3623
- export const inboundSchema = CreatePromptPromptsUseCases$inboundSchema;
3624
- /** @deprecated use `CreatePromptPromptsUseCases$outboundSchema` instead. */
3625
- export const outboundSchema = CreatePromptPromptsUseCases$outboundSchema;
3626
- }
3627
-
3628
- /** @internal */
3629
- export const CreatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
3630
- typeof CreatePromptPromptsLanguage
3631
- > = z.nativeEnum(CreatePromptPromptsLanguage);
3632
-
3633
- /** @internal */
3634
- export const CreatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
3635
- typeof CreatePromptPromptsLanguage
3636
- > = CreatePromptPromptsLanguage$inboundSchema;
3637
-
3638
- /**
3639
- * @internal
3640
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3641
- */
3642
- export namespace CreatePromptPromptsLanguage$ {
3643
- /** @deprecated use `CreatePromptPromptsLanguage$inboundSchema` instead. */
3644
- export const inboundSchema = CreatePromptPromptsLanguage$inboundSchema;
3645
- /** @deprecated use `CreatePromptPromptsLanguage$outboundSchema` instead. */
3646
- export const outboundSchema = CreatePromptPromptsLanguage$outboundSchema;
3647
- }
3648
-
3649
3284
  /** @internal */
3650
3285
  export const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<
3651
3286
  CreatePromptPromptsMetadata,
3652
3287
  z.ZodTypeDef,
3653
3288
  unknown
3654
3289
  > = z.object({
3655
- use_cases: z.array(CreatePromptPromptsUseCases$inboundSchema).optional(),
3656
- language: CreatePromptPromptsLanguage$inboundSchema.optional(),
3290
+ use_cases: z.array(z.string()).optional(),
3291
+ language: z.string().optional(),
3657
3292
  }).transform((v) => {
3658
3293
  return remap$(v, {
3659
3294
  "use_cases": "useCases",
@@ -3672,8 +3307,8 @@ export const CreatePromptPromptsMetadata$outboundSchema: z.ZodType<
3672
3307
  z.ZodTypeDef,
3673
3308
  CreatePromptPromptsMetadata
3674
3309
  > = z.object({
3675
- useCases: z.array(CreatePromptPromptsUseCases$outboundSchema).optional(),
3676
- language: CreatePromptPromptsLanguage$outboundSchema.optional(),
3310
+ useCases: z.array(z.string()).optional(),
3311
+ language: z.string().optional(),
3677
3312
  }).transform((v) => {
3678
3313
  return remap$(v, {
3679
3314
  useCases: "use_cases",
@@ -3713,6 +3348,27 @@ export function createPromptPromptsMetadataFromJSON(
3713
3348
  );
3714
3349
  }
3715
3350
 
3351
+ /** @internal */
3352
+ export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3353
+ typeof CreatePromptPromptsResponseType
3354
+ > = z.nativeEnum(CreatePromptPromptsResponseType);
3355
+
3356
+ /** @internal */
3357
+ export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
3358
+ typeof CreatePromptPromptsResponseType
3359
+ > = CreatePromptPromptsResponseType$inboundSchema;
3360
+
3361
+ /**
3362
+ * @internal
3363
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3364
+ */
3365
+ export namespace CreatePromptPromptsResponseType$ {
3366
+ /** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
3367
+ export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
3368
+ /** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
3369
+ export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
3370
+ }
3371
+
3716
3372
  /** @internal */
3717
3373
  export const CreatePromptResponseBody$inboundSchema: z.ZodType<
3718
3374
  CreatePromptResponseBody,
@@ -3720,24 +3376,19 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
3720
3376
  unknown
3721
3377
  > = z.object({
3722
3378
  _id: z.string(),
3723
- type: CreatePromptPromptsType$inboundSchema,
3724
- owner: z.string(),
3725
- domain_id: z.string(),
3726
- created: z.string(),
3727
- updated: z.string(),
3728
- created_by_id: z.string().optional(),
3729
- updated_by_id: z.string().optional(),
3730
3379
  display_name: z.string(),
3380
+ domain_id: z.string(),
3731
3381
  description: z.nullable(z.string()).optional(),
3732
- prompt_config: z.lazy(() => CreatePromptPromptsPromptConfig$inboundSchema),
3382
+ prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema)
3383
+ .optional(),
3733
3384
  metadata: z.lazy(() => CreatePromptPromptsMetadata$inboundSchema).optional(),
3385
+ key: z.string().optional(),
3386
+ type: CreatePromptPromptsResponseType$inboundSchema,
3734
3387
  }).transform((v) => {
3735
3388
  return remap$(v, {
3736
3389
  "_id": "id",
3737
- "domain_id": "domainId",
3738
- "created_by_id": "createdById",
3739
- "updated_by_id": "updatedById",
3740
3390
  "display_name": "displayName",
3391
+ "domain_id": "domainId",
3741
3392
  "prompt_config": "promptConfig",
3742
3393
  });
3743
3394
  });
@@ -3745,17 +3396,13 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
3745
3396
  /** @internal */
3746
3397
  export type CreatePromptResponseBody$Outbound = {
3747
3398
  _id: string;
3748
- type: string;
3749
- owner: string;
3750
- domain_id: string;
3751
- created: string;
3752
- updated: string;
3753
- created_by_id?: string | undefined;
3754
- updated_by_id?: string | undefined;
3755
3399
  display_name: string;
3400
+ domain_id: string;
3756
3401
  description?: string | null | undefined;
3757
- prompt_config: CreatePromptPromptsPromptConfig$Outbound;
3402
+ prompt_config?: CreatePromptPromptConfig$Outbound | undefined;
3758
3403
  metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
3404
+ key?: string | undefined;
3405
+ type: string;
3759
3406
  };
3760
3407
 
3761
3408
  /** @internal */
@@ -3765,24 +3412,19 @@ export const CreatePromptResponseBody$outboundSchema: z.ZodType<
3765
3412
  CreatePromptResponseBody
3766
3413
  > = z.object({
3767
3414
  id: z.string(),
3768
- type: CreatePromptPromptsType$outboundSchema,
3769
- owner: z.string(),
3770
- domainId: z.string(),
3771
- created: z.string(),
3772
- updated: z.string(),
3773
- createdById: z.string().optional(),
3774
- updatedById: z.string().optional(),
3775
3415
  displayName: z.string(),
3416
+ domainId: z.string(),
3776
3417
  description: z.nullable(z.string()).optional(),
3777
- promptConfig: z.lazy(() => CreatePromptPromptsPromptConfig$outboundSchema),
3418
+ promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema)
3419
+ .optional(),
3778
3420
  metadata: z.lazy(() => CreatePromptPromptsMetadata$outboundSchema).optional(),
3421
+ key: z.string().optional(),
3422
+ type: CreatePromptPromptsResponseType$outboundSchema,
3779
3423
  }).transform((v) => {
3780
3424
  return remap$(v, {
3781
3425
  id: "_id",
3782
- domainId: "domain_id",
3783
- createdById: "created_by_id",
3784
- updatedById: "updated_by_id",
3785
3426
  displayName: "display_name",
3427
+ domainId: "domain_id",
3786
3428
  promptConfig: "prompt_config",
3787
3429
  });
3788
3430
  });