@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
@@ -1,1080 +0,0 @@
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