@orq-ai/node 3.1.2 → 3.1.4

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 (277) hide show
  1. package/README.md +27 -42
  2. package/docs/sdks/deployments/README.md +86 -9
  3. package/docs/sdks/files/README.md +10 -182
  4. package/docs/sdks/orq/README.md +1 -1
  5. package/docs/sdks/prompts/README.md +135 -128
  6. package/docs/sdks/{remoteconfig → remoteconfigs}/README.md +8 -8
  7. package/funcs/deploymentsInvoke.d.ts +1 -7
  8. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  9. package/funcs/deploymentsInvoke.js +10 -11
  10. package/funcs/deploymentsInvoke.js.map +1 -1
  11. package/funcs/{deploymentsAll.d.ts → deploymentsList.d.ts} +2 -2
  12. package/funcs/deploymentsList.d.ts.map +1 -0
  13. package/funcs/{deploymentsAll.js → deploymentsList.js} +5 -4
  14. package/funcs/deploymentsList.js.map +1 -0
  15. package/funcs/deploymentsStream.d.ts +16 -0
  16. package/funcs/deploymentsStream.d.ts.map +1 -0
  17. package/funcs/deploymentsStream.js +125 -0
  18. package/funcs/deploymentsStream.js.map +1 -0
  19. package/funcs/{filesUpload.d.ts → filesCreate.d.ts} +3 -3
  20. package/funcs/{filesUpload.d.ts.map → filesCreate.d.ts.map} +1 -1
  21. package/funcs/{filesUpload.js → filesCreate.js} +4 -4
  22. package/funcs/{filesUpload.js.map → filesCreate.js.map} +1 -1
  23. package/funcs/filesGet.d.ts +4 -1
  24. package/funcs/filesGet.d.ts.map +1 -1
  25. package/funcs/filesGet.js +4 -1
  26. package/funcs/filesGet.js.map +1 -1
  27. package/funcs/filesList.d.ts +3 -0
  28. package/funcs/filesList.d.ts.map +1 -1
  29. package/funcs/filesList.js +5 -3
  30. package/funcs/filesList.js.map +1 -1
  31. package/funcs/promptsCreate.d.ts +1 -1
  32. package/funcs/promptsCreate.js +2 -2
  33. package/funcs/promptsCreate.js.map +1 -1
  34. package/funcs/promptsDelete.js +1 -1
  35. package/funcs/promptsDelete.js.map +1 -1
  36. package/funcs/promptsGetVersion.d.ts +16 -0
  37. package/funcs/promptsGetVersion.d.ts.map +1 -0
  38. package/funcs/{promptsCreateVersion.js → promptsGetVersion.js} +23 -13
  39. package/funcs/promptsGetVersion.js.map +1 -0
  40. package/funcs/promptsList.d.ts +15 -0
  41. package/funcs/promptsList.d.ts.map +1 -0
  42. package/funcs/{promptsGetAll.js → promptsList.js} +17 -11
  43. package/funcs/promptsList.js.map +1 -0
  44. package/funcs/promptsListVersions.d.ts +15 -0
  45. package/funcs/promptsListVersions.d.ts.map +1 -0
  46. package/funcs/{promptsDuplicate.js → promptsListVersions.js} +19 -11
  47. package/funcs/promptsListVersions.js.map +1 -0
  48. package/funcs/{promptSnippetsFindOne.d.ts → promptsRetrieve.d.ts} +6 -3
  49. package/funcs/promptsRetrieve.d.ts.map +1 -0
  50. package/funcs/{promptsGetOne.js → promptsRetrieve.js} +10 -8
  51. package/funcs/promptsRetrieve.js.map +1 -0
  52. package/funcs/promptsUpdate.js +1 -1
  53. package/funcs/promptsUpdate.js.map +1 -1
  54. package/funcs/{remoteconfigGetConfig.d.ts → remoteconfigsRetrieve.d.ts} +3 -3
  55. package/funcs/{remoteconfigGetConfig.d.ts.map → remoteconfigsRetrieve.d.ts.map} +1 -1
  56. package/funcs/{remoteconfigGetConfig.js → remoteconfigsRetrieve.js} +4 -4
  57. package/funcs/{remoteconfigGetConfig.js.map → remoteconfigsRetrieve.js.map} +1 -1
  58. package/jsr.json +1 -1
  59. package/lib/config.d.ts +10 -2
  60. package/lib/config.d.ts.map +1 -1
  61. package/lib/config.js +2 -2
  62. package/lib/config.js.map +1 -1
  63. package/lib/env.d.ts +13 -0
  64. package/lib/env.d.ts.map +1 -1
  65. package/lib/env.js +17 -0
  66. package/lib/env.js.map +1 -1
  67. package/lib/sdks.js +1 -1
  68. package/lib/sdks.js.map +1 -1
  69. package/models/components/deployments.d.ts +0 -5
  70. package/models/components/deployments.d.ts.map +1 -1
  71. package/models/components/deployments.js +0 -2
  72. package/models/components/deployments.js.map +1 -1
  73. package/models/errors/getpromptversion.d.ts +36 -0
  74. package/models/errors/getpromptversion.d.ts.map +1 -0
  75. package/models/{operations/duplicateprompt.js → errors/getpromptversion.js} +33 -23
  76. package/models/errors/getpromptversion.js.map +1 -0
  77. package/models/errors/index.d.ts +1 -0
  78. package/models/errors/index.d.ts.map +1 -1
  79. package/models/errors/index.js +1 -0
  80. package/models/errors/index.js.map +1 -1
  81. package/models/operations/createcontact.js +2 -2
  82. package/models/operations/createprompt.d.ts +406 -85
  83. package/models/operations/createprompt.d.ts.map +1 -1
  84. package/models/operations/createprompt.js +241 -78
  85. package/models/operations/createprompt.js.map +1 -1
  86. package/models/operations/deleteprompt.d.ts +1 -1
  87. package/models/operations/deploymentgetconfig.d.ts +39 -0
  88. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  89. package/models/operations/deploymentgetconfig.js +29 -4
  90. package/models/operations/deploymentgetconfig.js.map +1 -1
  91. package/models/operations/deploymentinvoke.d.ts +23 -683
  92. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  93. package/models/operations/deploymentinvoke.js +23 -614
  94. package/models/operations/deploymentinvoke.js.map +1 -1
  95. package/models/operations/deployments.d.ts +54 -8
  96. package/models/operations/deployments.d.ts.map +1 -1
  97. package/models/operations/deployments.js +44 -13
  98. package/models/operations/deployments.js.map +1 -1
  99. package/models/operations/deploymentstream.d.ts +1622 -0
  100. package/models/operations/deploymentstream.d.ts.map +1 -0
  101. package/models/operations/deploymentstream.js +1571 -0
  102. package/models/operations/deploymentstream.js.map +1 -0
  103. package/models/operations/fileget.js +2 -2
  104. package/models/operations/filelist.d.ts +14 -11
  105. package/models/operations/filelist.d.ts.map +1 -1
  106. package/models/operations/filelist.js +18 -18
  107. package/models/operations/filelist.js.map +1 -1
  108. package/models/operations/fileupload.js +2 -2
  109. package/models/operations/getallprompts.d.ts +565 -9945
  110. package/models/operations/getallprompts.d.ts.map +1 -1
  111. package/models/operations/getallprompts.js +556 -8804
  112. package/models/operations/getallprompts.js.map +1 -1
  113. package/models/operations/getoneprompt.d.ts +1203 -1
  114. package/models/operations/getoneprompt.d.ts.map +1 -1
  115. package/models/operations/getoneprompt.js +1011 -1
  116. package/models/operations/getoneprompt.js.map +1 -1
  117. package/models/operations/getpromptversion.d.ts +1228 -0
  118. package/models/operations/getpromptversion.d.ts.map +1 -0
  119. package/models/operations/getpromptversion.js +1080 -0
  120. package/models/operations/getpromptversion.js.map +1 -0
  121. package/models/operations/index.d.ts +3 -6
  122. package/models/operations/index.d.ts.map +1 -1
  123. package/models/operations/index.js +3 -6
  124. package/models/operations/index.js.map +1 -1
  125. package/models/operations/listpromptversions.d.ts +1286 -0
  126. package/models/operations/listpromptversions.d.ts.map +1 -0
  127. package/models/operations/listpromptversions.js +1142 -0
  128. package/models/operations/listpromptversions.js.map +1 -0
  129. package/models/operations/updateprompt.d.ts +1123 -5981
  130. package/models/operations/updateprompt.d.ts.map +1 -1
  131. package/models/operations/updateprompt.js +1145 -5755
  132. package/models/operations/updateprompt.js.map +1 -1
  133. package/package.json +1 -1
  134. package/sdk/deployments.d.ts +10 -6
  135. package/sdk/deployments.d.ts.map +1 -1
  136. package/sdk/deployments.js +14 -6
  137. package/sdk/deployments.js.map +1 -1
  138. package/sdk/files.d.ts +9 -14
  139. package/sdk/files.d.ts.map +1 -1
  140. package/sdk/files.js +11 -22
  141. package/sdk/files.js.map +1 -1
  142. package/sdk/prompts.d.ts +26 -14
  143. package/sdk/prompts.d.ts.map +1 -1
  144. package/sdk/prompts.js +37 -25
  145. package/sdk/prompts.js.map +1 -1
  146. package/sdk/remoteconfigs.d.ts +9 -0
  147. package/sdk/remoteconfigs.d.ts.map +1 -0
  148. package/sdk/remoteconfigs.js +19 -0
  149. package/sdk/remoteconfigs.js.map +1 -0
  150. package/sdk/sdk.d.ts +3 -6
  151. package/sdk/sdk.d.ts.map +1 -1
  152. package/sdk/sdk.js +3 -7
  153. package/sdk/sdk.js.map +1 -1
  154. package/src/funcs/deploymentsInvoke.ts +21 -16
  155. package/src/funcs/{deploymentsAll.ts → deploymentsList.ts} +3 -2
  156. package/src/funcs/{promptsCreateVersion.ts → deploymentsStream.ts} +37 -18
  157. package/src/funcs/{filesUpload.ts → filesCreate.ts} +2 -2
  158. package/src/funcs/filesGet.ts +4 -1
  159. package/src/funcs/filesList.ts +5 -3
  160. package/src/funcs/promptsCreate.ts +2 -2
  161. package/src/funcs/promptsDelete.ts +1 -1
  162. package/src/funcs/{promptSnippetsFindOne.ts → promptsGetVersion.ts} +30 -14
  163. package/src/funcs/{promptsGetAll.ts → promptsList.ts} +18 -13
  164. package/src/funcs/{promptsDuplicate.ts → promptsListVersions.ts} +22 -13
  165. package/src/funcs/{promptsGetOne.ts → promptsRetrieve.ts} +10 -8
  166. package/src/funcs/promptsUpdate.ts +1 -1
  167. package/src/funcs/{remoteconfigGetConfig.ts → remoteconfigsRetrieve.ts} +2 -2
  168. package/src/lib/config.ts +12 -2
  169. package/src/lib/env.ts +32 -0
  170. package/src/lib/sdks.ts +2 -2
  171. package/src/models/components/deployments.ts +0 -7
  172. package/src/models/errors/getpromptversion.ts +71 -0
  173. package/src/models/errors/index.ts +1 -0
  174. package/src/models/operations/createcontact.ts +2 -2
  175. package/src/models/operations/createprompt.ts +380 -124
  176. package/src/models/operations/deleteprompt.ts +1 -1
  177. package/src/models/operations/deploymentgetconfig.ts +44 -0
  178. package/src/models/operations/deploymentinvoke.ts +182 -1423
  179. package/src/models/operations/deployments.ts +68 -18
  180. package/src/models/operations/deploymentstream.ts +3062 -0
  181. package/src/models/operations/fileget.ts +2 -2
  182. package/src/models/operations/filelist.ts +32 -29
  183. package/src/models/operations/fileupload.ts +2 -2
  184. package/src/models/operations/getallprompts.ts +1316 -17840
  185. package/src/models/operations/getoneprompt.ts +1914 -1
  186. package/src/models/operations/getpromptversion.ts +2012 -0
  187. package/src/models/operations/index.ts +3 -6
  188. package/src/models/operations/listpromptversions.ts +2146 -0
  189. package/src/models/operations/updateprompt.ts +2001 -12508
  190. package/src/sdk/deployments.ts +25 -11
  191. package/src/sdk/files.ts +11 -38
  192. package/src/sdk/prompts.ts +51 -39
  193. package/src/sdk/{remoteconfig.ts → remoteconfigs.ts} +5 -5
  194. package/src/sdk/sdk.ts +4 -10
  195. package/docs/sdks/prompt/README.md +0 -6
  196. package/docs/sdks/snippets/README.md +0 -84
  197. package/docs/sdks/templates/README.md +0 -80
  198. package/funcs/deploymentsAll.d.ts.map +0 -1
  199. package/funcs/deploymentsAll.js.map +0 -1
  200. package/funcs/filesBulkUpload.d.ts +0 -15
  201. package/funcs/filesBulkUpload.d.ts.map +0 -1
  202. package/funcs/filesBulkUpload.js +0 -109
  203. package/funcs/filesBulkUpload.js.map +0 -1
  204. package/funcs/filesUpdate.d.ts +0 -12
  205. package/funcs/filesUpdate.d.ts.map +0 -1
  206. package/funcs/filesUpdate.js +0 -110
  207. package/funcs/filesUpdate.js.map +0 -1
  208. package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
  209. package/funcs/promptSnippetsFindOne.js +0 -109
  210. package/funcs/promptSnippetsFindOne.js.map +0 -1
  211. package/funcs/promptTemplatesGetAll.d.ts +0 -12
  212. package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
  213. package/funcs/promptTemplatesGetAll.js +0 -109
  214. package/funcs/promptTemplatesGetAll.js.map +0 -1
  215. package/funcs/promptsCreateVersion.d.ts +0 -12
  216. package/funcs/promptsCreateVersion.d.ts.map +0 -1
  217. package/funcs/promptsCreateVersion.js.map +0 -1
  218. package/funcs/promptsDuplicate.d.ts +0 -12
  219. package/funcs/promptsDuplicate.d.ts.map +0 -1
  220. package/funcs/promptsDuplicate.js.map +0 -1
  221. package/funcs/promptsGetAll.d.ts +0 -12
  222. package/funcs/promptsGetAll.d.ts.map +0 -1
  223. package/funcs/promptsGetAll.js.map +0 -1
  224. package/funcs/promptsGetOne.d.ts +0 -12
  225. package/funcs/promptsGetOne.d.ts.map +0 -1
  226. package/funcs/promptsGetOne.js.map +0 -1
  227. package/models/operations/bulkfileupload.d.ts +0 -173
  228. package/models/operations/bulkfileupload.d.ts.map +0 -1
  229. package/models/operations/bulkfileupload.js +0 -210
  230. package/models/operations/bulkfileupload.js.map +0 -1
  231. package/models/operations/createpromptversion.d.ts +0 -2003
  232. package/models/operations/createpromptversion.d.ts.map +0 -1
  233. package/models/operations/createpromptversion.js +0 -1852
  234. package/models/operations/createpromptversion.js.map +0 -1
  235. package/models/operations/duplicateprompt.d.ts +0 -32
  236. package/models/operations/duplicateprompt.d.ts.map +0 -1
  237. package/models/operations/duplicateprompt.js.map +0 -1
  238. package/models/operations/fileupdate.d.ts +0 -143
  239. package/models/operations/fileupdate.d.ts.map +0 -1
  240. package/models/operations/fileupdate.js +0 -193
  241. package/models/operations/fileupdate.js.map +0 -1
  242. package/models/operations/findonepromptsnippet.d.ts +0 -6278
  243. package/models/operations/findonepromptsnippet.d.ts.map +0 -1
  244. package/models/operations/findonepromptsnippet.js +0 -5891
  245. package/models/operations/findonepromptsnippet.js.map +0 -1
  246. package/models/operations/getallprompttemplates.d.ts +0 -6607
  247. package/models/operations/getallprompttemplates.d.ts.map +0 -1
  248. package/models/operations/getallprompttemplates.js +0 -6225
  249. package/models/operations/getallprompttemplates.js.map +0 -1
  250. package/sdk/prompt.d.ts +0 -10
  251. package/sdk/prompt.d.ts.map +0 -1
  252. package/sdk/prompt.js +0 -19
  253. package/sdk/prompt.js.map +0 -1
  254. package/sdk/remoteconfig.d.ts +0 -9
  255. package/sdk/remoteconfig.d.ts.map +0 -1
  256. package/sdk/remoteconfig.js +0 -19
  257. package/sdk/remoteconfig.js.map +0 -1
  258. package/sdk/snippets.d.ts +0 -9
  259. package/sdk/snippets.d.ts.map +0 -1
  260. package/sdk/snippets.js +0 -19
  261. package/sdk/snippets.js.map +0 -1
  262. package/sdk/templates.d.ts +0 -9
  263. package/sdk/templates.d.ts.map +0 -1
  264. package/sdk/templates.js +0 -19
  265. package/sdk/templates.js.map +0 -1
  266. package/src/funcs/filesBulkUpload.ts +0 -129
  267. package/src/funcs/filesUpdate.ts +0 -130
  268. package/src/funcs/promptTemplatesGetAll.ts +0 -132
  269. package/src/models/operations/bulkfileupload.ts +0 -315
  270. package/src/models/operations/createpromptversion.ts +0 -3703
  271. package/src/models/operations/duplicateprompt.ts +0 -69
  272. package/src/models/operations/fileupdate.ts +0 -298
  273. package/src/models/operations/findonepromptsnippet.ts +0 -13629
  274. package/src/models/operations/getallprompttemplates.ts +0 -13690
  275. package/src/sdk/prompt.ts +0 -19
  276. package/src/sdk/snippets.ts +0 -24
  277. package/src/sdk/templates.ts +0 -24
@@ -0,0 +1,1080 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GetPromptVersionPhotoRealVersion$inboundSchema = exports.GetPromptVersionResponseFormat$ = exports.GetPromptVersionResponseFormat$outboundSchema = exports.GetPromptVersionResponseFormat$inboundSchema = exports.GetPromptVersionResponseFormat1$ = exports.GetPromptVersionResponseFormat1$outboundSchema = exports.GetPromptVersionResponseFormat1$inboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$ = exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema = exports.GetPromptVersionResponseFormatType$ = exports.GetPromptVersionResponseFormatType$outboundSchema = exports.GetPromptVersionResponseFormatType$inboundSchema = exports.GetPromptVersionResponseFormat2$ = exports.GetPromptVersionResponseFormat2$outboundSchema = exports.GetPromptVersionResponseFormat2$inboundSchema = exports.GetPromptVersionResponseFormatPromptsType$ = exports.GetPromptVersionResponseFormatPromptsType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsType$inboundSchema = exports.GetPromptVersionQuality$ = exports.GetPromptVersionQuality$outboundSchema = exports.GetPromptVersionQuality$inboundSchema = exports.GetPromptVersionFormat$ = exports.GetPromptVersionFormat$outboundSchema = exports.GetPromptVersionFormat$inboundSchema = exports.GetPromptVersionModelType$ = exports.GetPromptVersionModelType$outboundSchema = exports.GetPromptVersionModelType$inboundSchema = exports.GetPromptVersionType$ = exports.GetPromptVersionType$outboundSchema = exports.GetPromptVersionType$inboundSchema = exports.GetPromptVersionRequest$ = exports.GetPromptVersionRequest$outboundSchema = exports.GetPromptVersionRequest$inboundSchema = exports.GetPromptVersionLanguage = exports.GetPromptVersionUseCases = exports.GetPromptVersionPromptsType = exports.GetPromptVersion2Type = exports.GetPromptVersion2PromptsType = exports.GetPromptVersionRole = exports.GetPromptVersionProvider = exports.GetPromptVersionReasoningEffort = exports.GetPromptVersionEncodingFormat = exports.GetPromptVersionPhotoRealVersion = exports.GetPromptVersionResponseFormatType = exports.GetPromptVersionResponseFormatPromptsType = exports.GetPromptVersionQuality = exports.GetPromptVersionFormat = exports.GetPromptVersionModelType = exports.GetPromptVersionType = void 0;
40
+ exports.GetPromptVersionMessages$ = exports.GetPromptVersionMessages$outboundSchema = exports.GetPromptVersionMessages$inboundSchema = exports.GetPromptVersionToolCalls$ = exports.GetPromptVersionToolCalls$outboundSchema = exports.GetPromptVersionToolCalls$inboundSchema = exports.GetPromptVersionFunction$ = exports.GetPromptVersionFunction$outboundSchema = exports.GetPromptVersionFunction$inboundSchema = exports.GetPromptVersionPromptsType$ = exports.GetPromptVersionPromptsType$outboundSchema = exports.GetPromptVersionPromptsType$inboundSchema = exports.GetPromptVersionContent$ = exports.GetPromptVersionContent$outboundSchema = exports.GetPromptVersionContent$inboundSchema = exports.GetPromptVersionContent2$ = exports.GetPromptVersionContent2$outboundSchema = exports.GetPromptVersionContent2$inboundSchema = exports.GetPromptVersion21$ = exports.GetPromptVersion21$outboundSchema = exports.GetPromptVersion21$inboundSchema = exports.GetPromptVersion2Type$ = exports.GetPromptVersion2Type$outboundSchema = exports.GetPromptVersion2Type$inboundSchema = exports.GetPromptVersion22$ = exports.GetPromptVersion22$outboundSchema = exports.GetPromptVersion22$inboundSchema = exports.GetPromptVersion2ImageUrl$ = exports.GetPromptVersion2ImageUrl$outboundSchema = exports.GetPromptVersion2ImageUrl$inboundSchema = exports.GetPromptVersion2PromptsType$ = exports.GetPromptVersion2PromptsType$outboundSchema = exports.GetPromptVersion2PromptsType$inboundSchema = exports.GetPromptVersionRole$ = exports.GetPromptVersionRole$outboundSchema = exports.GetPromptVersionRole$inboundSchema = exports.GetPromptVersionProvider$ = exports.GetPromptVersionProvider$outboundSchema = exports.GetPromptVersionProvider$inboundSchema = exports.GetPromptVersionModelParameters$ = exports.GetPromptVersionModelParameters$outboundSchema = exports.GetPromptVersionModelParameters$inboundSchema = exports.GetPromptVersionReasoningEffort$ = exports.GetPromptVersionReasoningEffort$outboundSchema = exports.GetPromptVersionReasoningEffort$inboundSchema = exports.GetPromptVersionEncodingFormat$ = exports.GetPromptVersionEncodingFormat$outboundSchema = exports.GetPromptVersionEncodingFormat$inboundSchema = exports.GetPromptVersionPhotoRealVersion$ = exports.GetPromptVersionPhotoRealVersion$outboundSchema = void 0;
41
+ exports.GetPromptVersionResponseBody$ = exports.GetPromptVersionResponseBody$outboundSchema = exports.GetPromptVersionResponseBody$inboundSchema = exports.GetPromptVersionMetadata$ = exports.GetPromptVersionMetadata$outboundSchema = exports.GetPromptVersionMetadata$inboundSchema = exports.GetPromptVersionLanguage$ = exports.GetPromptVersionLanguage$outboundSchema = exports.GetPromptVersionLanguage$inboundSchema = exports.GetPromptVersionUseCases$ = exports.GetPromptVersionUseCases$outboundSchema = exports.GetPromptVersionUseCases$inboundSchema = exports.GetPromptVersionPromptConfig$ = exports.GetPromptVersionPromptConfig$outboundSchema = exports.GetPromptVersionPromptConfig$inboundSchema = void 0;
42
+ exports.getPromptVersionRequestToJSON = getPromptVersionRequestToJSON;
43
+ exports.getPromptVersionRequestFromJSON = getPromptVersionRequestFromJSON;
44
+ exports.getPromptVersionResponseFormat2ToJSON = getPromptVersionResponseFormat2ToJSON;
45
+ exports.getPromptVersionResponseFormat2FromJSON = getPromptVersionResponseFormat2FromJSON;
46
+ exports.getPromptVersionResponseFormatJsonSchemaToJSON = getPromptVersionResponseFormatJsonSchemaToJSON;
47
+ exports.getPromptVersionResponseFormatJsonSchemaFromJSON = getPromptVersionResponseFormatJsonSchemaFromJSON;
48
+ exports.getPromptVersionResponseFormat1ToJSON = getPromptVersionResponseFormat1ToJSON;
49
+ exports.getPromptVersionResponseFormat1FromJSON = getPromptVersionResponseFormat1FromJSON;
50
+ exports.getPromptVersionResponseFormatToJSON = getPromptVersionResponseFormatToJSON;
51
+ exports.getPromptVersionResponseFormatFromJSON = getPromptVersionResponseFormatFromJSON;
52
+ exports.getPromptVersionModelParametersToJSON = getPromptVersionModelParametersToJSON;
53
+ exports.getPromptVersionModelParametersFromJSON = getPromptVersionModelParametersFromJSON;
54
+ exports.getPromptVersion2ImageUrlToJSON = getPromptVersion2ImageUrlToJSON;
55
+ exports.getPromptVersion2ImageUrlFromJSON = getPromptVersion2ImageUrlFromJSON;
56
+ exports.getPromptVersion22ToJSON = getPromptVersion22ToJSON;
57
+ exports.getPromptVersion22FromJSON = getPromptVersion22FromJSON;
58
+ exports.getPromptVersion21ToJSON = getPromptVersion21ToJSON;
59
+ exports.getPromptVersion21FromJSON = getPromptVersion21FromJSON;
60
+ exports.getPromptVersionContent2ToJSON = getPromptVersionContent2ToJSON;
61
+ exports.getPromptVersionContent2FromJSON = getPromptVersionContent2FromJSON;
62
+ exports.getPromptVersionContentToJSON = getPromptVersionContentToJSON;
63
+ exports.getPromptVersionContentFromJSON = getPromptVersionContentFromJSON;
64
+ exports.getPromptVersionFunctionToJSON = getPromptVersionFunctionToJSON;
65
+ exports.getPromptVersionFunctionFromJSON = getPromptVersionFunctionFromJSON;
66
+ exports.getPromptVersionToolCallsToJSON = getPromptVersionToolCallsToJSON;
67
+ exports.getPromptVersionToolCallsFromJSON = getPromptVersionToolCallsFromJSON;
68
+ exports.getPromptVersionMessagesToJSON = getPromptVersionMessagesToJSON;
69
+ exports.getPromptVersionMessagesFromJSON = getPromptVersionMessagesFromJSON;
70
+ exports.getPromptVersionPromptConfigToJSON = getPromptVersionPromptConfigToJSON;
71
+ exports.getPromptVersionPromptConfigFromJSON = getPromptVersionPromptConfigFromJSON;
72
+ exports.getPromptVersionMetadataToJSON = getPromptVersionMetadataToJSON;
73
+ exports.getPromptVersionMetadataFromJSON = getPromptVersionMetadataFromJSON;
74
+ exports.getPromptVersionResponseBodyToJSON = getPromptVersionResponseBodyToJSON;
75
+ exports.getPromptVersionResponseBodyFromJSON = getPromptVersionResponseBodyFromJSON;
76
+ const z = __importStar(require("zod"));
77
+ const primitives_js_1 = require("../../lib/primitives.js");
78
+ const schemas_js_1 = require("../../lib/schemas.js");
79
+ exports.GetPromptVersionType = {
80
+ Prompt: "prompt",
81
+ };
82
+ /**
83
+ * The type of the model
84
+ */
85
+ exports.GetPromptVersionModelType = {
86
+ Chat: "chat",
87
+ Completion: "completion",
88
+ Embedding: "embedding",
89
+ Vision: "vision",
90
+ Image: "image",
91
+ Tts: "tts",
92
+ Stt: "stt",
93
+ Rerank: "rerank",
94
+ Moderations: "moderations",
95
+ };
96
+ /**
97
+ * Only supported on `image` models.
98
+ */
99
+ exports.GetPromptVersionFormat = {
100
+ Url: "url",
101
+ B64Json: "b64_json",
102
+ Text: "text",
103
+ JsonObject: "json_object",
104
+ };
105
+ /**
106
+ * Only supported on `image` models.
107
+ */
108
+ exports.GetPromptVersionQuality = {
109
+ Standard: "standard",
110
+ Hd: "hd",
111
+ };
112
+ exports.GetPromptVersionResponseFormatPromptsType = {
113
+ JsonObject: "json_object",
114
+ };
115
+ exports.GetPromptVersionResponseFormatType = {
116
+ JsonSchema: "json_schema",
117
+ };
118
+ /**
119
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
120
+ */
121
+ exports.GetPromptVersionPhotoRealVersion = {
122
+ V1: "v1",
123
+ V2: "v2",
124
+ };
125
+ /**
126
+ * The format to return the embeddings
127
+ */
128
+ exports.GetPromptVersionEncodingFormat = {
129
+ Float: "float",
130
+ Base64: "base64",
131
+ };
132
+ /**
133
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
134
+ */
135
+ exports.GetPromptVersionReasoningEffort = {
136
+ Low: "low",
137
+ Medium: "medium",
138
+ High: "high",
139
+ };
140
+ exports.GetPromptVersionProvider = {
141
+ Cohere: "cohere",
142
+ Openai: "openai",
143
+ Anthropic: "anthropic",
144
+ Huggingface: "huggingface",
145
+ Replicate: "replicate",
146
+ Google: "google",
147
+ GoogleAi: "google-ai",
148
+ Azure: "azure",
149
+ Aws: "aws",
150
+ Anyscale: "anyscale",
151
+ Perplexity: "perplexity",
152
+ Groq: "groq",
153
+ Fal: "fal",
154
+ Leonardoai: "leonardoai",
155
+ Nvidia: "nvidia",
156
+ Jina: "jina",
157
+ Togetherai: "togetherai",
158
+ Elevenlabs: "elevenlabs",
159
+ };
160
+ /**
161
+ * The role of the prompt message
162
+ */
163
+ exports.GetPromptVersionRole = {
164
+ System: "system",
165
+ Assistant: "assistant",
166
+ User: "user",
167
+ Exception: "exception",
168
+ Tool: "tool",
169
+ Prompt: "prompt",
170
+ Correction: "correction",
171
+ ExpectedOutput: "expected_output",
172
+ };
173
+ exports.GetPromptVersion2PromptsType = {
174
+ ImageUrl: "image_url",
175
+ };
176
+ exports.GetPromptVersion2Type = {
177
+ Text: "text",
178
+ };
179
+ exports.GetPromptVersionPromptsType = {
180
+ Function: "function",
181
+ };
182
+ exports.GetPromptVersionUseCases = {
183
+ Agents: "Agents",
184
+ AgentsSimulations: "Agents simulations",
185
+ APIInteraction: "API interaction",
186
+ AutonomousAgents: "Autonomous Agents",
187
+ Chatbots: "Chatbots",
188
+ Classification: "Classification",
189
+ CodeUnderstanding: "Code understanding",
190
+ CodeWriting: "Code writing",
191
+ DocumentsQA: "Documents QA",
192
+ Conversation: "Conversation",
193
+ Extraction: "Extraction",
194
+ MultiModal: "Multi-modal",
195
+ SelfChecking: "Self-checking",
196
+ Sql: "SQL",
197
+ Summarization: "Summarization",
198
+ Tagging: "Tagging",
199
+ };
200
+ /**
201
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
202
+ */
203
+ exports.GetPromptVersionLanguage = {
204
+ Chinese: "Chinese",
205
+ Dutch: "Dutch",
206
+ English: "English",
207
+ French: "French",
208
+ German: "German",
209
+ Russian: "Russian",
210
+ Spanish: "Spanish",
211
+ };
212
+ /** @internal */
213
+ exports.GetPromptVersionRequest$inboundSchema = z.object({
214
+ prompt_id: z.string(),
215
+ version_id: z.string(),
216
+ }).transform((v) => {
217
+ return (0, primitives_js_1.remap)(v, {
218
+ "prompt_id": "promptId",
219
+ "version_id": "versionId",
220
+ });
221
+ });
222
+ /** @internal */
223
+ exports.GetPromptVersionRequest$outboundSchema = z.object({
224
+ promptId: z.string(),
225
+ versionId: z.string(),
226
+ }).transform((v) => {
227
+ return (0, primitives_js_1.remap)(v, {
228
+ promptId: "prompt_id",
229
+ versionId: "version_id",
230
+ });
231
+ });
232
+ /**
233
+ * @internal
234
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
235
+ */
236
+ var GetPromptVersionRequest$;
237
+ (function (GetPromptVersionRequest$) {
238
+ /** @deprecated use `GetPromptVersionRequest$inboundSchema` instead. */
239
+ GetPromptVersionRequest$.inboundSchema = exports.GetPromptVersionRequest$inboundSchema;
240
+ /** @deprecated use `GetPromptVersionRequest$outboundSchema` instead. */
241
+ GetPromptVersionRequest$.outboundSchema = exports.GetPromptVersionRequest$outboundSchema;
242
+ })(GetPromptVersionRequest$ || (exports.GetPromptVersionRequest$ = GetPromptVersionRequest$ = {}));
243
+ function getPromptVersionRequestToJSON(getPromptVersionRequest) {
244
+ return JSON.stringify(exports.GetPromptVersionRequest$outboundSchema.parse(getPromptVersionRequest));
245
+ }
246
+ function getPromptVersionRequestFromJSON(jsonString) {
247
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionRequest' from JSON`);
248
+ }
249
+ /** @internal */
250
+ exports.GetPromptVersionType$inboundSchema = z.nativeEnum(exports.GetPromptVersionType);
251
+ /** @internal */
252
+ exports.GetPromptVersionType$outboundSchema = exports.GetPromptVersionType$inboundSchema;
253
+ /**
254
+ * @internal
255
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
256
+ */
257
+ var GetPromptVersionType$;
258
+ (function (GetPromptVersionType$) {
259
+ /** @deprecated use `GetPromptVersionType$inboundSchema` instead. */
260
+ GetPromptVersionType$.inboundSchema = exports.GetPromptVersionType$inboundSchema;
261
+ /** @deprecated use `GetPromptVersionType$outboundSchema` instead. */
262
+ GetPromptVersionType$.outboundSchema = exports.GetPromptVersionType$outboundSchema;
263
+ })(GetPromptVersionType$ || (exports.GetPromptVersionType$ = GetPromptVersionType$ = {}));
264
+ /** @internal */
265
+ exports.GetPromptVersionModelType$inboundSchema = z.nativeEnum(exports.GetPromptVersionModelType);
266
+ /** @internal */
267
+ exports.GetPromptVersionModelType$outboundSchema = exports.GetPromptVersionModelType$inboundSchema;
268
+ /**
269
+ * @internal
270
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
271
+ */
272
+ var GetPromptVersionModelType$;
273
+ (function (GetPromptVersionModelType$) {
274
+ /** @deprecated use `GetPromptVersionModelType$inboundSchema` instead. */
275
+ GetPromptVersionModelType$.inboundSchema = exports.GetPromptVersionModelType$inboundSchema;
276
+ /** @deprecated use `GetPromptVersionModelType$outboundSchema` instead. */
277
+ GetPromptVersionModelType$.outboundSchema = exports.GetPromptVersionModelType$outboundSchema;
278
+ })(GetPromptVersionModelType$ || (exports.GetPromptVersionModelType$ = GetPromptVersionModelType$ = {}));
279
+ /** @internal */
280
+ exports.GetPromptVersionFormat$inboundSchema = z.nativeEnum(exports.GetPromptVersionFormat);
281
+ /** @internal */
282
+ exports.GetPromptVersionFormat$outboundSchema = exports.GetPromptVersionFormat$inboundSchema;
283
+ /**
284
+ * @internal
285
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
286
+ */
287
+ var GetPromptVersionFormat$;
288
+ (function (GetPromptVersionFormat$) {
289
+ /** @deprecated use `GetPromptVersionFormat$inboundSchema` instead. */
290
+ GetPromptVersionFormat$.inboundSchema = exports.GetPromptVersionFormat$inboundSchema;
291
+ /** @deprecated use `GetPromptVersionFormat$outboundSchema` instead. */
292
+ GetPromptVersionFormat$.outboundSchema = exports.GetPromptVersionFormat$outboundSchema;
293
+ })(GetPromptVersionFormat$ || (exports.GetPromptVersionFormat$ = GetPromptVersionFormat$ = {}));
294
+ /** @internal */
295
+ exports.GetPromptVersionQuality$inboundSchema = z.nativeEnum(exports.GetPromptVersionQuality);
296
+ /** @internal */
297
+ exports.GetPromptVersionQuality$outboundSchema = exports.GetPromptVersionQuality$inboundSchema;
298
+ /**
299
+ * @internal
300
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
301
+ */
302
+ var GetPromptVersionQuality$;
303
+ (function (GetPromptVersionQuality$) {
304
+ /** @deprecated use `GetPromptVersionQuality$inboundSchema` instead. */
305
+ GetPromptVersionQuality$.inboundSchema = exports.GetPromptVersionQuality$inboundSchema;
306
+ /** @deprecated use `GetPromptVersionQuality$outboundSchema` instead. */
307
+ GetPromptVersionQuality$.outboundSchema = exports.GetPromptVersionQuality$outboundSchema;
308
+ })(GetPromptVersionQuality$ || (exports.GetPromptVersionQuality$ = GetPromptVersionQuality$ = {}));
309
+ /** @internal */
310
+ exports.GetPromptVersionResponseFormatPromptsType$inboundSchema = z
311
+ .nativeEnum(exports.GetPromptVersionResponseFormatPromptsType);
312
+ /** @internal */
313
+ exports.GetPromptVersionResponseFormatPromptsType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsType$inboundSchema;
314
+ /**
315
+ * @internal
316
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
317
+ */
318
+ var GetPromptVersionResponseFormatPromptsType$;
319
+ (function (GetPromptVersionResponseFormatPromptsType$) {
320
+ /** @deprecated use `GetPromptVersionResponseFormatPromptsType$inboundSchema` instead. */
321
+ GetPromptVersionResponseFormatPromptsType$.inboundSchema = exports.GetPromptVersionResponseFormatPromptsType$inboundSchema;
322
+ /** @deprecated use `GetPromptVersionResponseFormatPromptsType$outboundSchema` instead. */
323
+ GetPromptVersionResponseFormatPromptsType$.outboundSchema = exports.GetPromptVersionResponseFormatPromptsType$outboundSchema;
324
+ })(GetPromptVersionResponseFormatPromptsType$ || (exports.GetPromptVersionResponseFormatPromptsType$ = GetPromptVersionResponseFormatPromptsType$ = {}));
325
+ /** @internal */
326
+ exports.GetPromptVersionResponseFormat2$inboundSchema = z.object({
327
+ type: exports.GetPromptVersionResponseFormatPromptsType$inboundSchema,
328
+ });
329
+ /** @internal */
330
+ exports.GetPromptVersionResponseFormat2$outboundSchema = z.object({
331
+ type: exports.GetPromptVersionResponseFormatPromptsType$outboundSchema,
332
+ });
333
+ /**
334
+ * @internal
335
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
336
+ */
337
+ var GetPromptVersionResponseFormat2$;
338
+ (function (GetPromptVersionResponseFormat2$) {
339
+ /** @deprecated use `GetPromptVersionResponseFormat2$inboundSchema` instead. */
340
+ GetPromptVersionResponseFormat2$.inboundSchema = exports.GetPromptVersionResponseFormat2$inboundSchema;
341
+ /** @deprecated use `GetPromptVersionResponseFormat2$outboundSchema` instead. */
342
+ GetPromptVersionResponseFormat2$.outboundSchema = exports.GetPromptVersionResponseFormat2$outboundSchema;
343
+ })(GetPromptVersionResponseFormat2$ || (exports.GetPromptVersionResponseFormat2$ = GetPromptVersionResponseFormat2$ = {}));
344
+ function getPromptVersionResponseFormat2ToJSON(getPromptVersionResponseFormat2) {
345
+ return JSON.stringify(exports.GetPromptVersionResponseFormat2$outboundSchema.parse(getPromptVersionResponseFormat2));
346
+ }
347
+ function getPromptVersionResponseFormat2FromJSON(jsonString) {
348
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat2' from JSON`);
349
+ }
350
+ /** @internal */
351
+ exports.GetPromptVersionResponseFormatType$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormatType);
352
+ /** @internal */
353
+ exports.GetPromptVersionResponseFormatType$outboundSchema = exports.GetPromptVersionResponseFormatType$inboundSchema;
354
+ /**
355
+ * @internal
356
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
357
+ */
358
+ var GetPromptVersionResponseFormatType$;
359
+ (function (GetPromptVersionResponseFormatType$) {
360
+ /** @deprecated use `GetPromptVersionResponseFormatType$inboundSchema` instead. */
361
+ GetPromptVersionResponseFormatType$.inboundSchema = exports.GetPromptVersionResponseFormatType$inboundSchema;
362
+ /** @deprecated use `GetPromptVersionResponseFormatType$outboundSchema` instead. */
363
+ GetPromptVersionResponseFormatType$.outboundSchema = exports.GetPromptVersionResponseFormatType$outboundSchema;
364
+ })(GetPromptVersionResponseFormatType$ || (exports.GetPromptVersionResponseFormatType$ = GetPromptVersionResponseFormatType$ = {}));
365
+ /** @internal */
366
+ exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema = z.object({
367
+ name: z.string(),
368
+ strict: z.boolean(),
369
+ schema: z.record(z.any()),
370
+ });
371
+ /** @internal */
372
+ exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema = z.object({
373
+ name: z.string(),
374
+ strict: z.boolean(),
375
+ schema: z.record(z.any()),
376
+ });
377
+ /**
378
+ * @internal
379
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
380
+ */
381
+ var GetPromptVersionResponseFormatJsonSchema$;
382
+ (function (GetPromptVersionResponseFormatJsonSchema$) {
383
+ /** @deprecated use `GetPromptVersionResponseFormatJsonSchema$inboundSchema` instead. */
384
+ GetPromptVersionResponseFormatJsonSchema$.inboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema;
385
+ /** @deprecated use `GetPromptVersionResponseFormatJsonSchema$outboundSchema` instead. */
386
+ GetPromptVersionResponseFormatJsonSchema$.outboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema;
387
+ })(GetPromptVersionResponseFormatJsonSchema$ || (exports.GetPromptVersionResponseFormatJsonSchema$ = GetPromptVersionResponseFormatJsonSchema$ = {}));
388
+ function getPromptVersionResponseFormatJsonSchemaToJSON(getPromptVersionResponseFormatJsonSchema) {
389
+ return JSON.stringify(exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema.parse(getPromptVersionResponseFormatJsonSchema));
390
+ }
391
+ function getPromptVersionResponseFormatJsonSchemaFromJSON(jsonString) {
392
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`);
393
+ }
394
+ /** @internal */
395
+ exports.GetPromptVersionResponseFormat1$inboundSchema = z.object({
396
+ type: exports.GetPromptVersionResponseFormatType$inboundSchema,
397
+ json_schema: z.lazy(() => exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema),
398
+ }).transform((v) => {
399
+ return (0, primitives_js_1.remap)(v, {
400
+ "json_schema": "jsonSchema",
401
+ });
402
+ });
403
+ /** @internal */
404
+ exports.GetPromptVersionResponseFormat1$outboundSchema = z.object({
405
+ type: exports.GetPromptVersionResponseFormatType$outboundSchema,
406
+ jsonSchema: z.lazy(() => exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema),
407
+ }).transform((v) => {
408
+ return (0, primitives_js_1.remap)(v, {
409
+ jsonSchema: "json_schema",
410
+ });
411
+ });
412
+ /**
413
+ * @internal
414
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
415
+ */
416
+ var GetPromptVersionResponseFormat1$;
417
+ (function (GetPromptVersionResponseFormat1$) {
418
+ /** @deprecated use `GetPromptVersionResponseFormat1$inboundSchema` instead. */
419
+ GetPromptVersionResponseFormat1$.inboundSchema = exports.GetPromptVersionResponseFormat1$inboundSchema;
420
+ /** @deprecated use `GetPromptVersionResponseFormat1$outboundSchema` instead. */
421
+ GetPromptVersionResponseFormat1$.outboundSchema = exports.GetPromptVersionResponseFormat1$outboundSchema;
422
+ })(GetPromptVersionResponseFormat1$ || (exports.GetPromptVersionResponseFormat1$ = GetPromptVersionResponseFormat1$ = {}));
423
+ function getPromptVersionResponseFormat1ToJSON(getPromptVersionResponseFormat1) {
424
+ return JSON.stringify(exports.GetPromptVersionResponseFormat1$outboundSchema.parse(getPromptVersionResponseFormat1));
425
+ }
426
+ function getPromptVersionResponseFormat1FromJSON(jsonString) {
427
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat1' from JSON`);
428
+ }
429
+ /** @internal */
430
+ exports.GetPromptVersionResponseFormat$inboundSchema = z.union([
431
+ z.lazy(() => exports.GetPromptVersionResponseFormat2$inboundSchema),
432
+ z.lazy(() => exports.GetPromptVersionResponseFormat1$inboundSchema),
433
+ ]);
434
+ /** @internal */
435
+ exports.GetPromptVersionResponseFormat$outboundSchema = z.union([
436
+ z.lazy(() => exports.GetPromptVersionResponseFormat2$outboundSchema),
437
+ z.lazy(() => exports.GetPromptVersionResponseFormat1$outboundSchema),
438
+ ]);
439
+ /**
440
+ * @internal
441
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
442
+ */
443
+ var GetPromptVersionResponseFormat$;
444
+ (function (GetPromptVersionResponseFormat$) {
445
+ /** @deprecated use `GetPromptVersionResponseFormat$inboundSchema` instead. */
446
+ GetPromptVersionResponseFormat$.inboundSchema = exports.GetPromptVersionResponseFormat$inboundSchema;
447
+ /** @deprecated use `GetPromptVersionResponseFormat$outboundSchema` instead. */
448
+ GetPromptVersionResponseFormat$.outboundSchema = exports.GetPromptVersionResponseFormat$outboundSchema;
449
+ })(GetPromptVersionResponseFormat$ || (exports.GetPromptVersionResponseFormat$ = GetPromptVersionResponseFormat$ = {}));
450
+ function getPromptVersionResponseFormatToJSON(getPromptVersionResponseFormat) {
451
+ return JSON.stringify(exports.GetPromptVersionResponseFormat$outboundSchema.parse(getPromptVersionResponseFormat));
452
+ }
453
+ function getPromptVersionResponseFormatFromJSON(jsonString) {
454
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat' from JSON`);
455
+ }
456
+ /** @internal */
457
+ exports.GetPromptVersionPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetPromptVersionPhotoRealVersion);
458
+ /** @internal */
459
+ exports.GetPromptVersionPhotoRealVersion$outboundSchema = exports.GetPromptVersionPhotoRealVersion$inboundSchema;
460
+ /**
461
+ * @internal
462
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
463
+ */
464
+ var GetPromptVersionPhotoRealVersion$;
465
+ (function (GetPromptVersionPhotoRealVersion$) {
466
+ /** @deprecated use `GetPromptVersionPhotoRealVersion$inboundSchema` instead. */
467
+ GetPromptVersionPhotoRealVersion$.inboundSchema = exports.GetPromptVersionPhotoRealVersion$inboundSchema;
468
+ /** @deprecated use `GetPromptVersionPhotoRealVersion$outboundSchema` instead. */
469
+ GetPromptVersionPhotoRealVersion$.outboundSchema = exports.GetPromptVersionPhotoRealVersion$outboundSchema;
470
+ })(GetPromptVersionPhotoRealVersion$ || (exports.GetPromptVersionPhotoRealVersion$ = GetPromptVersionPhotoRealVersion$ = {}));
471
+ /** @internal */
472
+ exports.GetPromptVersionEncodingFormat$inboundSchema = z.nativeEnum(exports.GetPromptVersionEncodingFormat);
473
+ /** @internal */
474
+ exports.GetPromptVersionEncodingFormat$outboundSchema = exports.GetPromptVersionEncodingFormat$inboundSchema;
475
+ /**
476
+ * @internal
477
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
478
+ */
479
+ var GetPromptVersionEncodingFormat$;
480
+ (function (GetPromptVersionEncodingFormat$) {
481
+ /** @deprecated use `GetPromptVersionEncodingFormat$inboundSchema` instead. */
482
+ GetPromptVersionEncodingFormat$.inboundSchema = exports.GetPromptVersionEncodingFormat$inboundSchema;
483
+ /** @deprecated use `GetPromptVersionEncodingFormat$outboundSchema` instead. */
484
+ GetPromptVersionEncodingFormat$.outboundSchema = exports.GetPromptVersionEncodingFormat$outboundSchema;
485
+ })(GetPromptVersionEncodingFormat$ || (exports.GetPromptVersionEncodingFormat$ = GetPromptVersionEncodingFormat$ = {}));
486
+ /** @internal */
487
+ exports.GetPromptVersionReasoningEffort$inboundSchema = z.nativeEnum(exports.GetPromptVersionReasoningEffort);
488
+ /** @internal */
489
+ exports.GetPromptVersionReasoningEffort$outboundSchema = exports.GetPromptVersionReasoningEffort$inboundSchema;
490
+ /**
491
+ * @internal
492
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
493
+ */
494
+ var GetPromptVersionReasoningEffort$;
495
+ (function (GetPromptVersionReasoningEffort$) {
496
+ /** @deprecated use `GetPromptVersionReasoningEffort$inboundSchema` instead. */
497
+ GetPromptVersionReasoningEffort$.inboundSchema = exports.GetPromptVersionReasoningEffort$inboundSchema;
498
+ /** @deprecated use `GetPromptVersionReasoningEffort$outboundSchema` instead. */
499
+ GetPromptVersionReasoningEffort$.outboundSchema = exports.GetPromptVersionReasoningEffort$outboundSchema;
500
+ })(GetPromptVersionReasoningEffort$ || (exports.GetPromptVersionReasoningEffort$ = GetPromptVersionReasoningEffort$ = {}));
501
+ /** @internal */
502
+ exports.GetPromptVersionModelParameters$inboundSchema = z.object({
503
+ temperature: z.number().optional(),
504
+ maxTokens: z.number().optional(),
505
+ topK: z.number().optional(),
506
+ topP: z.number().optional(),
507
+ frequencyPenalty: z.number().optional(),
508
+ presencePenalty: z.number().optional(),
509
+ numImages: z.number().optional(),
510
+ seed: z.number().optional(),
511
+ format: exports.GetPromptVersionFormat$inboundSchema.optional(),
512
+ dimensions: z.string().optional(),
513
+ quality: exports.GetPromptVersionQuality$inboundSchema.optional(),
514
+ style: z.string().optional(),
515
+ responseFormat: z.nullable(z.union([
516
+ z.lazy(() => exports.GetPromptVersionResponseFormat2$inboundSchema),
517
+ z.lazy(() => exports.GetPromptVersionResponseFormat1$inboundSchema),
518
+ ])).optional(),
519
+ photoRealVersion: exports.GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
520
+ encoding_format: exports.GetPromptVersionEncodingFormat$inboundSchema.optional(),
521
+ reasoningEffort: exports.GetPromptVersionReasoningEffort$inboundSchema.optional(),
522
+ }).transform((v) => {
523
+ return (0, primitives_js_1.remap)(v, {
524
+ "encoding_format": "encodingFormat",
525
+ });
526
+ });
527
+ /** @internal */
528
+ exports.GetPromptVersionModelParameters$outboundSchema = z.object({
529
+ temperature: z.number().optional(),
530
+ maxTokens: z.number().optional(),
531
+ topK: z.number().optional(),
532
+ topP: z.number().optional(),
533
+ frequencyPenalty: z.number().optional(),
534
+ presencePenalty: z.number().optional(),
535
+ numImages: z.number().optional(),
536
+ seed: z.number().optional(),
537
+ format: exports.GetPromptVersionFormat$outboundSchema.optional(),
538
+ dimensions: z.string().optional(),
539
+ quality: exports.GetPromptVersionQuality$outboundSchema.optional(),
540
+ style: z.string().optional(),
541
+ responseFormat: z.nullable(z.union([
542
+ z.lazy(() => exports.GetPromptVersionResponseFormat2$outboundSchema),
543
+ z.lazy(() => exports.GetPromptVersionResponseFormat1$outboundSchema),
544
+ ])).optional(),
545
+ photoRealVersion: exports.GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
546
+ encodingFormat: exports.GetPromptVersionEncodingFormat$outboundSchema.optional(),
547
+ reasoningEffort: exports.GetPromptVersionReasoningEffort$outboundSchema.optional(),
548
+ }).transform((v) => {
549
+ return (0, primitives_js_1.remap)(v, {
550
+ encodingFormat: "encoding_format",
551
+ });
552
+ });
553
+ /**
554
+ * @internal
555
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
556
+ */
557
+ var GetPromptVersionModelParameters$;
558
+ (function (GetPromptVersionModelParameters$) {
559
+ /** @deprecated use `GetPromptVersionModelParameters$inboundSchema` instead. */
560
+ GetPromptVersionModelParameters$.inboundSchema = exports.GetPromptVersionModelParameters$inboundSchema;
561
+ /** @deprecated use `GetPromptVersionModelParameters$outboundSchema` instead. */
562
+ GetPromptVersionModelParameters$.outboundSchema = exports.GetPromptVersionModelParameters$outboundSchema;
563
+ })(GetPromptVersionModelParameters$ || (exports.GetPromptVersionModelParameters$ = GetPromptVersionModelParameters$ = {}));
564
+ function getPromptVersionModelParametersToJSON(getPromptVersionModelParameters) {
565
+ return JSON.stringify(exports.GetPromptVersionModelParameters$outboundSchema.parse(getPromptVersionModelParameters));
566
+ }
567
+ function getPromptVersionModelParametersFromJSON(jsonString) {
568
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionModelParameters' from JSON`);
569
+ }
570
+ /** @internal */
571
+ exports.GetPromptVersionProvider$inboundSchema = z.nativeEnum(exports.GetPromptVersionProvider);
572
+ /** @internal */
573
+ exports.GetPromptVersionProvider$outboundSchema = exports.GetPromptVersionProvider$inboundSchema;
574
+ /**
575
+ * @internal
576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
577
+ */
578
+ var GetPromptVersionProvider$;
579
+ (function (GetPromptVersionProvider$) {
580
+ /** @deprecated use `GetPromptVersionProvider$inboundSchema` instead. */
581
+ GetPromptVersionProvider$.inboundSchema = exports.GetPromptVersionProvider$inboundSchema;
582
+ /** @deprecated use `GetPromptVersionProvider$outboundSchema` instead. */
583
+ GetPromptVersionProvider$.outboundSchema = exports.GetPromptVersionProvider$outboundSchema;
584
+ })(GetPromptVersionProvider$ || (exports.GetPromptVersionProvider$ = GetPromptVersionProvider$ = {}));
585
+ /** @internal */
586
+ exports.GetPromptVersionRole$inboundSchema = z.nativeEnum(exports.GetPromptVersionRole);
587
+ /** @internal */
588
+ exports.GetPromptVersionRole$outboundSchema = exports.GetPromptVersionRole$inboundSchema;
589
+ /**
590
+ * @internal
591
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
592
+ */
593
+ var GetPromptVersionRole$;
594
+ (function (GetPromptVersionRole$) {
595
+ /** @deprecated use `GetPromptVersionRole$inboundSchema` instead. */
596
+ GetPromptVersionRole$.inboundSchema = exports.GetPromptVersionRole$inboundSchema;
597
+ /** @deprecated use `GetPromptVersionRole$outboundSchema` instead. */
598
+ GetPromptVersionRole$.outboundSchema = exports.GetPromptVersionRole$outboundSchema;
599
+ })(GetPromptVersionRole$ || (exports.GetPromptVersionRole$ = GetPromptVersionRole$ = {}));
600
+ /** @internal */
601
+ exports.GetPromptVersion2PromptsType$inboundSchema = z.nativeEnum(exports.GetPromptVersion2PromptsType);
602
+ /** @internal */
603
+ exports.GetPromptVersion2PromptsType$outboundSchema = exports.GetPromptVersion2PromptsType$inboundSchema;
604
+ /**
605
+ * @internal
606
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
607
+ */
608
+ var GetPromptVersion2PromptsType$;
609
+ (function (GetPromptVersion2PromptsType$) {
610
+ /** @deprecated use `GetPromptVersion2PromptsType$inboundSchema` instead. */
611
+ GetPromptVersion2PromptsType$.inboundSchema = exports.GetPromptVersion2PromptsType$inboundSchema;
612
+ /** @deprecated use `GetPromptVersion2PromptsType$outboundSchema` instead. */
613
+ GetPromptVersion2PromptsType$.outboundSchema = exports.GetPromptVersion2PromptsType$outboundSchema;
614
+ })(GetPromptVersion2PromptsType$ || (exports.GetPromptVersion2PromptsType$ = GetPromptVersion2PromptsType$ = {}));
615
+ /** @internal */
616
+ exports.GetPromptVersion2ImageUrl$inboundSchema = z.object({
617
+ id: z.string().optional(),
618
+ url: z.string(),
619
+ detail: z.string().optional(),
620
+ });
621
+ /** @internal */
622
+ exports.GetPromptVersion2ImageUrl$outboundSchema = z.object({
623
+ id: z.string().optional(),
624
+ url: z.string(),
625
+ detail: z.string().optional(),
626
+ });
627
+ /**
628
+ * @internal
629
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
630
+ */
631
+ var GetPromptVersion2ImageUrl$;
632
+ (function (GetPromptVersion2ImageUrl$) {
633
+ /** @deprecated use `GetPromptVersion2ImageUrl$inboundSchema` instead. */
634
+ GetPromptVersion2ImageUrl$.inboundSchema = exports.GetPromptVersion2ImageUrl$inboundSchema;
635
+ /** @deprecated use `GetPromptVersion2ImageUrl$outboundSchema` instead. */
636
+ GetPromptVersion2ImageUrl$.outboundSchema = exports.GetPromptVersion2ImageUrl$outboundSchema;
637
+ })(GetPromptVersion2ImageUrl$ || (exports.GetPromptVersion2ImageUrl$ = GetPromptVersion2ImageUrl$ = {}));
638
+ function getPromptVersion2ImageUrlToJSON(getPromptVersion2ImageUrl) {
639
+ return JSON.stringify(exports.GetPromptVersion2ImageUrl$outboundSchema.parse(getPromptVersion2ImageUrl));
640
+ }
641
+ function getPromptVersion2ImageUrlFromJSON(jsonString) {
642
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion2ImageUrl' from JSON`);
643
+ }
644
+ /** @internal */
645
+ exports.GetPromptVersion22$inboundSchema = z.object({
646
+ type: exports.GetPromptVersion2PromptsType$inboundSchema,
647
+ image_url: z.lazy(() => exports.GetPromptVersion2ImageUrl$inboundSchema),
648
+ }).transform((v) => {
649
+ return (0, primitives_js_1.remap)(v, {
650
+ "image_url": "imageUrl",
651
+ });
652
+ });
653
+ /** @internal */
654
+ exports.GetPromptVersion22$outboundSchema = z.object({
655
+ type: exports.GetPromptVersion2PromptsType$outboundSchema,
656
+ imageUrl: z.lazy(() => exports.GetPromptVersion2ImageUrl$outboundSchema),
657
+ }).transform((v) => {
658
+ return (0, primitives_js_1.remap)(v, {
659
+ imageUrl: "image_url",
660
+ });
661
+ });
662
+ /**
663
+ * @internal
664
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
665
+ */
666
+ var GetPromptVersion22$;
667
+ (function (GetPromptVersion22$) {
668
+ /** @deprecated use `GetPromptVersion22$inboundSchema` instead. */
669
+ GetPromptVersion22$.inboundSchema = exports.GetPromptVersion22$inboundSchema;
670
+ /** @deprecated use `GetPromptVersion22$outboundSchema` instead. */
671
+ GetPromptVersion22$.outboundSchema = exports.GetPromptVersion22$outboundSchema;
672
+ })(GetPromptVersion22$ || (exports.GetPromptVersion22$ = GetPromptVersion22$ = {}));
673
+ function getPromptVersion22ToJSON(getPromptVersion22) {
674
+ return JSON.stringify(exports.GetPromptVersion22$outboundSchema.parse(getPromptVersion22));
675
+ }
676
+ function getPromptVersion22FromJSON(jsonString) {
677
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion22' from JSON`);
678
+ }
679
+ /** @internal */
680
+ exports.GetPromptVersion2Type$inboundSchema = z.nativeEnum(exports.GetPromptVersion2Type);
681
+ /** @internal */
682
+ exports.GetPromptVersion2Type$outboundSchema = exports.GetPromptVersion2Type$inboundSchema;
683
+ /**
684
+ * @internal
685
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
686
+ */
687
+ var GetPromptVersion2Type$;
688
+ (function (GetPromptVersion2Type$) {
689
+ /** @deprecated use `GetPromptVersion2Type$inboundSchema` instead. */
690
+ GetPromptVersion2Type$.inboundSchema = exports.GetPromptVersion2Type$inboundSchema;
691
+ /** @deprecated use `GetPromptVersion2Type$outboundSchema` instead. */
692
+ GetPromptVersion2Type$.outboundSchema = exports.GetPromptVersion2Type$outboundSchema;
693
+ })(GetPromptVersion2Type$ || (exports.GetPromptVersion2Type$ = GetPromptVersion2Type$ = {}));
694
+ /** @internal */
695
+ exports.GetPromptVersion21$inboundSchema = z.object({
696
+ type: exports.GetPromptVersion2Type$inboundSchema,
697
+ text: z.string(),
698
+ });
699
+ /** @internal */
700
+ exports.GetPromptVersion21$outboundSchema = z.object({
701
+ type: exports.GetPromptVersion2Type$outboundSchema,
702
+ text: z.string(),
703
+ });
704
+ /**
705
+ * @internal
706
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
707
+ */
708
+ var GetPromptVersion21$;
709
+ (function (GetPromptVersion21$) {
710
+ /** @deprecated use `GetPromptVersion21$inboundSchema` instead. */
711
+ GetPromptVersion21$.inboundSchema = exports.GetPromptVersion21$inboundSchema;
712
+ /** @deprecated use `GetPromptVersion21$outboundSchema` instead. */
713
+ GetPromptVersion21$.outboundSchema = exports.GetPromptVersion21$outboundSchema;
714
+ })(GetPromptVersion21$ || (exports.GetPromptVersion21$ = GetPromptVersion21$ = {}));
715
+ function getPromptVersion21ToJSON(getPromptVersion21) {
716
+ return JSON.stringify(exports.GetPromptVersion21$outboundSchema.parse(getPromptVersion21));
717
+ }
718
+ function getPromptVersion21FromJSON(jsonString) {
719
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion21' from JSON`);
720
+ }
721
+ /** @internal */
722
+ exports.GetPromptVersionContent2$inboundSchema = z.union([
723
+ z.lazy(() => exports.GetPromptVersion21$inboundSchema),
724
+ z.lazy(() => exports.GetPromptVersion22$inboundSchema),
725
+ ]);
726
+ /** @internal */
727
+ exports.GetPromptVersionContent2$outboundSchema = z.union([
728
+ z.lazy(() => exports.GetPromptVersion21$outboundSchema),
729
+ z.lazy(() => exports.GetPromptVersion22$outboundSchema),
730
+ ]);
731
+ /**
732
+ * @internal
733
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
734
+ */
735
+ var GetPromptVersionContent2$;
736
+ (function (GetPromptVersionContent2$) {
737
+ /** @deprecated use `GetPromptVersionContent2$inboundSchema` instead. */
738
+ GetPromptVersionContent2$.inboundSchema = exports.GetPromptVersionContent2$inboundSchema;
739
+ /** @deprecated use `GetPromptVersionContent2$outboundSchema` instead. */
740
+ GetPromptVersionContent2$.outboundSchema = exports.GetPromptVersionContent2$outboundSchema;
741
+ })(GetPromptVersionContent2$ || (exports.GetPromptVersionContent2$ = GetPromptVersionContent2$ = {}));
742
+ function getPromptVersionContent2ToJSON(getPromptVersionContent2) {
743
+ return JSON.stringify(exports.GetPromptVersionContent2$outboundSchema.parse(getPromptVersionContent2));
744
+ }
745
+ function getPromptVersionContent2FromJSON(jsonString) {
746
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContent2' from JSON`);
747
+ }
748
+ /** @internal */
749
+ exports.GetPromptVersionContent$inboundSchema = z.union([
750
+ z.string(),
751
+ z.array(z.union([
752
+ z.lazy(() => exports.GetPromptVersion21$inboundSchema),
753
+ z.lazy(() => exports.GetPromptVersion22$inboundSchema),
754
+ ])),
755
+ ]);
756
+ /** @internal */
757
+ exports.GetPromptVersionContent$outboundSchema = z.union([
758
+ z.string(),
759
+ z.array(z.union([
760
+ z.lazy(() => exports.GetPromptVersion21$outboundSchema),
761
+ z.lazy(() => exports.GetPromptVersion22$outboundSchema),
762
+ ])),
763
+ ]);
764
+ /**
765
+ * @internal
766
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
767
+ */
768
+ var GetPromptVersionContent$;
769
+ (function (GetPromptVersionContent$) {
770
+ /** @deprecated use `GetPromptVersionContent$inboundSchema` instead. */
771
+ GetPromptVersionContent$.inboundSchema = exports.GetPromptVersionContent$inboundSchema;
772
+ /** @deprecated use `GetPromptVersionContent$outboundSchema` instead. */
773
+ GetPromptVersionContent$.outboundSchema = exports.GetPromptVersionContent$outboundSchema;
774
+ })(GetPromptVersionContent$ || (exports.GetPromptVersionContent$ = GetPromptVersionContent$ = {}));
775
+ function getPromptVersionContentToJSON(getPromptVersionContent) {
776
+ return JSON.stringify(exports.GetPromptVersionContent$outboundSchema.parse(getPromptVersionContent));
777
+ }
778
+ function getPromptVersionContentFromJSON(jsonString) {
779
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContent' from JSON`);
780
+ }
781
+ /** @internal */
782
+ exports.GetPromptVersionPromptsType$inboundSchema = z.nativeEnum(exports.GetPromptVersionPromptsType);
783
+ /** @internal */
784
+ exports.GetPromptVersionPromptsType$outboundSchema = exports.GetPromptVersionPromptsType$inboundSchema;
785
+ /**
786
+ * @internal
787
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
788
+ */
789
+ var GetPromptVersionPromptsType$;
790
+ (function (GetPromptVersionPromptsType$) {
791
+ /** @deprecated use `GetPromptVersionPromptsType$inboundSchema` instead. */
792
+ GetPromptVersionPromptsType$.inboundSchema = exports.GetPromptVersionPromptsType$inboundSchema;
793
+ /** @deprecated use `GetPromptVersionPromptsType$outboundSchema` instead. */
794
+ GetPromptVersionPromptsType$.outboundSchema = exports.GetPromptVersionPromptsType$outboundSchema;
795
+ })(GetPromptVersionPromptsType$ || (exports.GetPromptVersionPromptsType$ = GetPromptVersionPromptsType$ = {}));
796
+ /** @internal */
797
+ exports.GetPromptVersionFunction$inboundSchema = z.object({
798
+ name: z.string(),
799
+ arguments: z.string(),
800
+ });
801
+ /** @internal */
802
+ exports.GetPromptVersionFunction$outboundSchema = z.object({
803
+ name: z.string(),
804
+ arguments: z.string(),
805
+ });
806
+ /**
807
+ * @internal
808
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
809
+ */
810
+ var GetPromptVersionFunction$;
811
+ (function (GetPromptVersionFunction$) {
812
+ /** @deprecated use `GetPromptVersionFunction$inboundSchema` instead. */
813
+ GetPromptVersionFunction$.inboundSchema = exports.GetPromptVersionFunction$inboundSchema;
814
+ /** @deprecated use `GetPromptVersionFunction$outboundSchema` instead. */
815
+ GetPromptVersionFunction$.outboundSchema = exports.GetPromptVersionFunction$outboundSchema;
816
+ })(GetPromptVersionFunction$ || (exports.GetPromptVersionFunction$ = GetPromptVersionFunction$ = {}));
817
+ function getPromptVersionFunctionToJSON(getPromptVersionFunction) {
818
+ return JSON.stringify(exports.GetPromptVersionFunction$outboundSchema.parse(getPromptVersionFunction));
819
+ }
820
+ function getPromptVersionFunctionFromJSON(jsonString) {
821
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionFunction' from JSON`);
822
+ }
823
+ /** @internal */
824
+ exports.GetPromptVersionToolCalls$inboundSchema = z.object({
825
+ id: z.string().optional(),
826
+ index: z.number().optional(),
827
+ type: exports.GetPromptVersionPromptsType$inboundSchema,
828
+ function: z.lazy(() => exports.GetPromptVersionFunction$inboundSchema),
829
+ });
830
+ /** @internal */
831
+ exports.GetPromptVersionToolCalls$outboundSchema = z.object({
832
+ id: z.string().optional(),
833
+ index: z.number().optional(),
834
+ type: exports.GetPromptVersionPromptsType$outboundSchema,
835
+ function: z.lazy(() => exports.GetPromptVersionFunction$outboundSchema),
836
+ });
837
+ /**
838
+ * @internal
839
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
840
+ */
841
+ var GetPromptVersionToolCalls$;
842
+ (function (GetPromptVersionToolCalls$) {
843
+ /** @deprecated use `GetPromptVersionToolCalls$inboundSchema` instead. */
844
+ GetPromptVersionToolCalls$.inboundSchema = exports.GetPromptVersionToolCalls$inboundSchema;
845
+ /** @deprecated use `GetPromptVersionToolCalls$outboundSchema` instead. */
846
+ GetPromptVersionToolCalls$.outboundSchema = exports.GetPromptVersionToolCalls$outboundSchema;
847
+ })(GetPromptVersionToolCalls$ || (exports.GetPromptVersionToolCalls$ = GetPromptVersionToolCalls$ = {}));
848
+ function getPromptVersionToolCallsToJSON(getPromptVersionToolCalls) {
849
+ return JSON.stringify(exports.GetPromptVersionToolCalls$outboundSchema.parse(getPromptVersionToolCalls));
850
+ }
851
+ function getPromptVersionToolCallsFromJSON(jsonString) {
852
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionToolCalls' from JSON`);
853
+ }
854
+ /** @internal */
855
+ exports.GetPromptVersionMessages$inboundSchema = z.object({
856
+ role: exports.GetPromptVersionRole$inboundSchema,
857
+ content: z.union([
858
+ z.string(),
859
+ z.array(z.union([
860
+ z.lazy(() => exports.GetPromptVersion21$inboundSchema),
861
+ z.lazy(() => exports.GetPromptVersion22$inboundSchema),
862
+ ])),
863
+ ]),
864
+ tool_calls: z.array(z.lazy(() => exports.GetPromptVersionToolCalls$inboundSchema))
865
+ .optional(),
866
+ }).transform((v) => {
867
+ return (0, primitives_js_1.remap)(v, {
868
+ "tool_calls": "toolCalls",
869
+ });
870
+ });
871
+ /** @internal */
872
+ exports.GetPromptVersionMessages$outboundSchema = z.object({
873
+ role: exports.GetPromptVersionRole$outboundSchema,
874
+ content: z.union([
875
+ z.string(),
876
+ z.array(z.union([
877
+ z.lazy(() => exports.GetPromptVersion21$outboundSchema),
878
+ z.lazy(() => exports.GetPromptVersion22$outboundSchema),
879
+ ])),
880
+ ]),
881
+ toolCalls: z.array(z.lazy(() => exports.GetPromptVersionToolCalls$outboundSchema))
882
+ .optional(),
883
+ }).transform((v) => {
884
+ return (0, primitives_js_1.remap)(v, {
885
+ toolCalls: "tool_calls",
886
+ });
887
+ });
888
+ /**
889
+ * @internal
890
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
891
+ */
892
+ var GetPromptVersionMessages$;
893
+ (function (GetPromptVersionMessages$) {
894
+ /** @deprecated use `GetPromptVersionMessages$inboundSchema` instead. */
895
+ GetPromptVersionMessages$.inboundSchema = exports.GetPromptVersionMessages$inboundSchema;
896
+ /** @deprecated use `GetPromptVersionMessages$outboundSchema` instead. */
897
+ GetPromptVersionMessages$.outboundSchema = exports.GetPromptVersionMessages$outboundSchema;
898
+ })(GetPromptVersionMessages$ || (exports.GetPromptVersionMessages$ = GetPromptVersionMessages$ = {}));
899
+ function getPromptVersionMessagesToJSON(getPromptVersionMessages) {
900
+ return JSON.stringify(exports.GetPromptVersionMessages$outboundSchema.parse(getPromptVersionMessages));
901
+ }
902
+ function getPromptVersionMessagesFromJSON(jsonString) {
903
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessages' from JSON`);
904
+ }
905
+ /** @internal */
906
+ exports.GetPromptVersionPromptConfig$inboundSchema = z.object({
907
+ stream: z.boolean().optional(),
908
+ model: z.string().optional(),
909
+ model_db_id: z.string().optional(),
910
+ model_type: exports.GetPromptVersionModelType$inboundSchema.optional(),
911
+ model_parameters: z.lazy(() => exports.GetPromptVersionModelParameters$inboundSchema)
912
+ .optional(),
913
+ provider: exports.GetPromptVersionProvider$inboundSchema.optional(),
914
+ integration_id: z.nullable(z.string()).optional(),
915
+ version: z.string().optional(),
916
+ messages: z.array(z.lazy(() => exports.GetPromptVersionMessages$inboundSchema)),
917
+ }).transform((v) => {
918
+ return (0, primitives_js_1.remap)(v, {
919
+ "model_db_id": "modelDbId",
920
+ "model_type": "modelType",
921
+ "model_parameters": "modelParameters",
922
+ "integration_id": "integrationId",
923
+ });
924
+ });
925
+ /** @internal */
926
+ exports.GetPromptVersionPromptConfig$outboundSchema = z.object({
927
+ stream: z.boolean().optional(),
928
+ model: z.string().optional(),
929
+ modelDbId: z.string().optional(),
930
+ modelType: exports.GetPromptVersionModelType$outboundSchema.optional(),
931
+ modelParameters: z.lazy(() => exports.GetPromptVersionModelParameters$outboundSchema)
932
+ .optional(),
933
+ provider: exports.GetPromptVersionProvider$outboundSchema.optional(),
934
+ integrationId: z.nullable(z.string()).optional(),
935
+ version: z.string().optional(),
936
+ messages: z.array(z.lazy(() => exports.GetPromptVersionMessages$outboundSchema)),
937
+ }).transform((v) => {
938
+ return (0, primitives_js_1.remap)(v, {
939
+ modelDbId: "model_db_id",
940
+ modelType: "model_type",
941
+ modelParameters: "model_parameters",
942
+ integrationId: "integration_id",
943
+ });
944
+ });
945
+ /**
946
+ * @internal
947
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
948
+ */
949
+ var GetPromptVersionPromptConfig$;
950
+ (function (GetPromptVersionPromptConfig$) {
951
+ /** @deprecated use `GetPromptVersionPromptConfig$inboundSchema` instead. */
952
+ GetPromptVersionPromptConfig$.inboundSchema = exports.GetPromptVersionPromptConfig$inboundSchema;
953
+ /** @deprecated use `GetPromptVersionPromptConfig$outboundSchema` instead. */
954
+ GetPromptVersionPromptConfig$.outboundSchema = exports.GetPromptVersionPromptConfig$outboundSchema;
955
+ })(GetPromptVersionPromptConfig$ || (exports.GetPromptVersionPromptConfig$ = GetPromptVersionPromptConfig$ = {}));
956
+ function getPromptVersionPromptConfigToJSON(getPromptVersionPromptConfig) {
957
+ return JSON.stringify(exports.GetPromptVersionPromptConfig$outboundSchema.parse(getPromptVersionPromptConfig));
958
+ }
959
+ function getPromptVersionPromptConfigFromJSON(jsonString) {
960
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptConfig' from JSON`);
961
+ }
962
+ /** @internal */
963
+ exports.GetPromptVersionUseCases$inboundSchema = z.nativeEnum(exports.GetPromptVersionUseCases);
964
+ /** @internal */
965
+ exports.GetPromptVersionUseCases$outboundSchema = exports.GetPromptVersionUseCases$inboundSchema;
966
+ /**
967
+ * @internal
968
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
969
+ */
970
+ var GetPromptVersionUseCases$;
971
+ (function (GetPromptVersionUseCases$) {
972
+ /** @deprecated use `GetPromptVersionUseCases$inboundSchema` instead. */
973
+ GetPromptVersionUseCases$.inboundSchema = exports.GetPromptVersionUseCases$inboundSchema;
974
+ /** @deprecated use `GetPromptVersionUseCases$outboundSchema` instead. */
975
+ GetPromptVersionUseCases$.outboundSchema = exports.GetPromptVersionUseCases$outboundSchema;
976
+ })(GetPromptVersionUseCases$ || (exports.GetPromptVersionUseCases$ = GetPromptVersionUseCases$ = {}));
977
+ /** @internal */
978
+ exports.GetPromptVersionLanguage$inboundSchema = z.nativeEnum(exports.GetPromptVersionLanguage);
979
+ /** @internal */
980
+ exports.GetPromptVersionLanguage$outboundSchema = exports.GetPromptVersionLanguage$inboundSchema;
981
+ /**
982
+ * @internal
983
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
984
+ */
985
+ var GetPromptVersionLanguage$;
986
+ (function (GetPromptVersionLanguage$) {
987
+ /** @deprecated use `GetPromptVersionLanguage$inboundSchema` instead. */
988
+ GetPromptVersionLanguage$.inboundSchema = exports.GetPromptVersionLanguage$inboundSchema;
989
+ /** @deprecated use `GetPromptVersionLanguage$outboundSchema` instead. */
990
+ GetPromptVersionLanguage$.outboundSchema = exports.GetPromptVersionLanguage$outboundSchema;
991
+ })(GetPromptVersionLanguage$ || (exports.GetPromptVersionLanguage$ = GetPromptVersionLanguage$ = {}));
992
+ /** @internal */
993
+ exports.GetPromptVersionMetadata$inboundSchema = z.object({
994
+ use_cases: z.array(exports.GetPromptVersionUseCases$inboundSchema).optional(),
995
+ language: exports.GetPromptVersionLanguage$inboundSchema.optional(),
996
+ }).transform((v) => {
997
+ return (0, primitives_js_1.remap)(v, {
998
+ "use_cases": "useCases",
999
+ });
1000
+ });
1001
+ /** @internal */
1002
+ exports.GetPromptVersionMetadata$outboundSchema = z.object({
1003
+ useCases: z.array(exports.GetPromptVersionUseCases$outboundSchema).optional(),
1004
+ language: exports.GetPromptVersionLanguage$outboundSchema.optional(),
1005
+ }).transform((v) => {
1006
+ return (0, primitives_js_1.remap)(v, {
1007
+ useCases: "use_cases",
1008
+ });
1009
+ });
1010
+ /**
1011
+ * @internal
1012
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1013
+ */
1014
+ var GetPromptVersionMetadata$;
1015
+ (function (GetPromptVersionMetadata$) {
1016
+ /** @deprecated use `GetPromptVersionMetadata$inboundSchema` instead. */
1017
+ GetPromptVersionMetadata$.inboundSchema = exports.GetPromptVersionMetadata$inboundSchema;
1018
+ /** @deprecated use `GetPromptVersionMetadata$outboundSchema` instead. */
1019
+ GetPromptVersionMetadata$.outboundSchema = exports.GetPromptVersionMetadata$outboundSchema;
1020
+ })(GetPromptVersionMetadata$ || (exports.GetPromptVersionMetadata$ = GetPromptVersionMetadata$ = {}));
1021
+ function getPromptVersionMetadataToJSON(getPromptVersionMetadata) {
1022
+ return JSON.stringify(exports.GetPromptVersionMetadata$outboundSchema.parse(getPromptVersionMetadata));
1023
+ }
1024
+ function getPromptVersionMetadataFromJSON(jsonString) {
1025
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMetadata' from JSON`);
1026
+ }
1027
+ /** @internal */
1028
+ exports.GetPromptVersionResponseBody$inboundSchema = z.object({
1029
+ _id: z.string(),
1030
+ type: exports.GetPromptVersionType$inboundSchema,
1031
+ created_by_id: z.string().optional(),
1032
+ updated_by_id: z.string().optional(),
1033
+ description: z.nullable(z.string()).optional(),
1034
+ prompt_config: z.lazy(() => exports.GetPromptVersionPromptConfig$inboundSchema),
1035
+ metadata: z.lazy(() => exports.GetPromptVersionMetadata$inboundSchema).optional(),
1036
+ timestamp: z.string(),
1037
+ }).transform((v) => {
1038
+ return (0, primitives_js_1.remap)(v, {
1039
+ "_id": "id",
1040
+ "created_by_id": "createdById",
1041
+ "updated_by_id": "updatedById",
1042
+ "prompt_config": "promptConfig",
1043
+ });
1044
+ });
1045
+ /** @internal */
1046
+ exports.GetPromptVersionResponseBody$outboundSchema = z.object({
1047
+ id: z.string(),
1048
+ type: exports.GetPromptVersionType$outboundSchema,
1049
+ createdById: z.string().optional(),
1050
+ updatedById: z.string().optional(),
1051
+ description: z.nullable(z.string()).optional(),
1052
+ promptConfig: z.lazy(() => exports.GetPromptVersionPromptConfig$outboundSchema),
1053
+ metadata: z.lazy(() => exports.GetPromptVersionMetadata$outboundSchema).optional(),
1054
+ timestamp: z.string(),
1055
+ }).transform((v) => {
1056
+ return (0, primitives_js_1.remap)(v, {
1057
+ id: "_id",
1058
+ createdById: "created_by_id",
1059
+ updatedById: "updated_by_id",
1060
+ promptConfig: "prompt_config",
1061
+ });
1062
+ });
1063
+ /**
1064
+ * @internal
1065
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1066
+ */
1067
+ var GetPromptVersionResponseBody$;
1068
+ (function (GetPromptVersionResponseBody$) {
1069
+ /** @deprecated use `GetPromptVersionResponseBody$inboundSchema` instead. */
1070
+ GetPromptVersionResponseBody$.inboundSchema = exports.GetPromptVersionResponseBody$inboundSchema;
1071
+ /** @deprecated use `GetPromptVersionResponseBody$outboundSchema` instead. */
1072
+ GetPromptVersionResponseBody$.outboundSchema = exports.GetPromptVersionResponseBody$outboundSchema;
1073
+ })(GetPromptVersionResponseBody$ || (exports.GetPromptVersionResponseBody$ = GetPromptVersionResponseBody$ = {}));
1074
+ function getPromptVersionResponseBodyToJSON(getPromptVersionResponseBody) {
1075
+ return JSON.stringify(exports.GetPromptVersionResponseBody$outboundSchema.parse(getPromptVersionResponseBody));
1076
+ }
1077
+ function getPromptVersionResponseBodyFromJSON(jsonString) {
1078
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseBody' from JSON`);
1079
+ }
1080
+ //# sourceMappingURL=getpromptversion.js.map