@orq-ai/node 3.10.19 → 3.11.0-rc.10

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 (492) hide show
  1. package/bin/mcp-server.js +105 -108
  2. package/bin/mcp-server.js.map +31 -31
  3. package/docs/sdks/contacts/README.md +1 -1
  4. package/examples/package-lock.json +5 -6
  5. package/funcs/contactsCreate.d.ts +1 -1
  6. package/funcs/contactsCreate.js +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/mcp-server/tools/contactsCreate.js +1 -1
  16. package/mcp-server/tools/contactsCreate.js.map +1 -1
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createdataset.js +2 -2
  19. package/models/operations/createdatasetitem.js +2 -2
  20. package/models/operations/createdatasource.js +2 -2
  21. package/models/operations/createeval.js +16 -16
  22. package/models/operations/fileget.js +2 -2
  23. package/models/operations/filelist.js +2 -2
  24. package/models/operations/fileupload.js +2 -2
  25. package/models/operations/getevals.js +28 -28
  26. package/models/operations/listcontacts.js +2 -2
  27. package/models/operations/listdatasetdatapoints.js +2 -2
  28. package/models/operations/listdatasets.js +2 -2
  29. package/models/operations/listdatasources.js +2 -2
  30. package/models/operations/retrievecontact.js +2 -2
  31. package/models/operations/retrievedatapoint.js +2 -2
  32. package/models/operations/retrievedataset.js +2 -2
  33. package/models/operations/retrievedatasource.js +2 -2
  34. package/models/operations/updatecontact.js +2 -2
  35. package/models/operations/updatedatapoint.js +2 -2
  36. package/models/operations/updatedataset.js +2 -2
  37. package/models/operations/updatedatasource.js +2 -2
  38. package/models/operations/updateeval.js +16 -16
  39. package/package.json +4 -4
  40. package/sdk/contacts.d.ts +1 -1
  41. package/sdk/contacts.js +1 -1
  42. package/src/funcs/contactsCreate.ts +1 -1
  43. package/src/lib/config.ts +2 -2
  44. package/src/mcp-server/mcp-server.ts +1 -1
  45. package/src/mcp-server/server.ts +1 -1
  46. package/src/mcp-server/tools/contactsCreate.ts +1 -1
  47. package/src/models/operations/createcontact.ts +2 -2
  48. package/src/models/operations/createdataset.ts +2 -2
  49. package/src/models/operations/createdatasetitem.ts +2 -2
  50. package/src/models/operations/createdatasource.ts +2 -2
  51. package/src/models/operations/createeval.ts +16 -16
  52. package/src/models/operations/fileget.ts +2 -2
  53. package/src/models/operations/filelist.ts +2 -2
  54. package/src/models/operations/fileupload.ts +2 -2
  55. package/src/models/operations/getevals.ts +28 -28
  56. package/src/models/operations/listcontacts.ts +2 -2
  57. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  58. package/src/models/operations/listdatasets.ts +2 -2
  59. package/src/models/operations/listdatasources.ts +2 -2
  60. package/src/models/operations/retrievecontact.ts +2 -2
  61. package/src/models/operations/retrievedatapoint.ts +2 -2
  62. package/src/models/operations/retrievedataset.ts +2 -2
  63. package/src/models/operations/retrievedatasource.ts +2 -2
  64. package/src/models/operations/updatecontact.ts +2 -2
  65. package/src/models/operations/updatedatapoint.ts +2 -2
  66. package/src/models/operations/updatedataset.ts +2 -2
  67. package/src/models/operations/updatedatasource.ts +2 -2
  68. package/src/models/operations/updateeval.ts +16 -16
  69. package/src/sdk/contacts.ts +1 -1
  70. package/packages/orq-rc/FUNCTIONS.md +0 -103
  71. package/packages/orq-rc/README.md +0 -960
  72. package/packages/orq-rc/RUNTIMES.md +0 -48
  73. package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
  74. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
  75. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
  76. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -314
  77. package/packages/orq-rc/docs/sdks/evals/README.md +0 -3077
  78. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
  79. package/packages/orq-rc/docs/sdks/files/README.md +0 -301
  80. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1243
  81. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
  82. package/packages/orq-rc/docs/sdks/models/README.md +0 -76
  83. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  84. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -557
  85. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
  86. package/packages/orq-rc/examples/README.md +0 -31
  87. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  88. package/packages/orq-rc/examples/package-lock.json +0 -627
  89. package/packages/orq-rc/examples/package.json +0 -18
  90. package/packages/orq-rc/jsr.json +0 -28
  91. package/packages/orq-rc/package-lock.json +0 -3071
  92. package/packages/orq-rc/package.json +0 -43
  93. package/packages/orq-rc/src/core.ts +0 -13
  94. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  95. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  96. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  97. package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
  98. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  99. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  100. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  101. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  102. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -168
  103. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  104. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  105. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  106. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  107. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  108. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  109. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  110. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  111. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  112. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  113. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  114. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  115. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  116. package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +0 -175
  117. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  118. package/packages/orq-rc/src/funcs/evalsBertScore.ts +0 -175
  119. package/packages/orq-rc/src/funcs/evalsBleuScore.ts +0 -175
  120. package/packages/orq-rc/src/funcs/evalsBotDetection.ts +0 -175
  121. package/packages/orq-rc/src/funcs/evalsContains.ts +0 -175
  122. package/packages/orq-rc/src/funcs/evalsContainsAll.ts +0 -175
  123. package/packages/orq-rc/src/funcs/evalsContainsAny.ts +0 -175
  124. package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +0 -175
  125. package/packages/orq-rc/src/funcs/evalsContainsNone.ts +0 -175
  126. package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +0 -175
  127. package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +0 -177
  128. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  129. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  130. package/packages/orq-rc/src/funcs/evalsEndsWith.ts +0 -175
  131. package/packages/orq-rc/src/funcs/evalsExactMatch.ts +0 -175
  132. package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +0 -183
  133. package/packages/orq-rc/src/funcs/evalsGrammar.ts +0 -173
  134. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
  135. package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +0 -175
  136. package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +0 -177
  137. package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +0 -175
  138. package/packages/orq-rc/src/funcs/evalsLocalization.ts +0 -175
  139. package/packages/orq-rc/src/funcs/evalsPii.ts +0 -173
  140. package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +0 -175
  141. package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +0 -174
  142. package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +0 -183
  143. package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +0 -180
  144. package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +0 -177
  145. package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +0 -174
  146. package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +0 -177
  147. package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +0 -174
  148. package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +0 -177
  149. package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +0 -180
  150. package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +0 -183
  151. package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +0 -177
  152. package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +0 -183
  153. package/packages/orq-rc/src/funcs/evalsSummarization.ts +0 -175
  154. package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +0 -175
  155. package/packages/orq-rc/src/funcs/evalsTranslation.ts +0 -175
  156. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  157. package/packages/orq-rc/src/funcs/evalsValidJson.ts +0 -175
  158. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  159. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  160. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  161. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  162. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  163. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  164. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  165. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  166. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  167. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  168. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  169. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  170. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  171. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  172. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  173. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  174. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  175. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  176. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  177. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  178. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  179. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  180. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  181. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  182. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  183. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  184. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  185. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  186. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  187. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  188. package/packages/orq-rc/src/hooks/global.ts +0 -44
  189. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  190. package/packages/orq-rc/src/hooks/index.ts +0 -6
  191. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  192. package/packages/orq-rc/src/hooks/types.ts +0 -112
  193. package/packages/orq-rc/src/index.ts +0 -9
  194. package/packages/orq-rc/src/lib/base64.ts +0 -37
  195. package/packages/orq-rc/src/lib/config.ts +0 -74
  196. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  197. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  198. package/packages/orq-rc/src/lib/env.ts +0 -73
  199. package/packages/orq-rc/src/lib/event-streams.ts +0 -137
  200. package/packages/orq-rc/src/lib/files.ts +0 -82
  201. package/packages/orq-rc/src/lib/http.ts +0 -323
  202. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  203. package/packages/orq-rc/src/lib/logger.ts +0 -9
  204. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  205. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  206. package/packages/orq-rc/src/lib/retries.ts +0 -218
  207. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  208. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  209. package/packages/orq-rc/src/lib/security.ts +0 -261
  210. package/packages/orq-rc/src/lib/url.ts +0 -33
  211. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -112
  212. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  213. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  214. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  215. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  216. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  217. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  218. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  219. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  220. package/packages/orq-rc/src/mcp-server/server.ts +0 -251
  221. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  222. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  223. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  224. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  225. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  226. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  227. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  228. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  229. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  230. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  231. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  232. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  233. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  234. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  235. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  236. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  237. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  238. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  239. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  240. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  241. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  242. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  243. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/evalsAgeAppropriate.ts +0 -35
  245. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  246. package/packages/orq-rc/src/mcp-server/tools/evalsBertScore.ts +0 -35
  247. package/packages/orq-rc/src/mcp-server/tools/evalsBleuScore.ts +0 -35
  248. package/packages/orq-rc/src/mcp-server/tools/evalsBotDetection.ts +0 -35
  249. package/packages/orq-rc/src/mcp-server/tools/evalsContains.ts +0 -35
  250. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAll.ts +0 -35
  251. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAny.ts +0 -35
  252. package/packages/orq-rc/src/mcp-server/tools/evalsContainsEmail.ts +0 -35
  253. package/packages/orq-rc/src/mcp-server/tools/evalsContainsNone.ts +0 -35
  254. package/packages/orq-rc/src/mcp-server/tools/evalsContainsUrl.ts +0 -35
  255. package/packages/orq-rc/src/mcp-server/tools/evalsContainsValidLink.ts +0 -36
  256. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  257. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  258. package/packages/orq-rc/src/mcp-server/tools/evalsEndsWith.ts +0 -35
  259. package/packages/orq-rc/src/mcp-server/tools/evalsExactMatch.ts +0 -35
  260. package/packages/orq-rc/src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts +0 -37
  261. package/packages/orq-rc/src/mcp-server/tools/evalsGrammar.ts +0 -35
  262. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
  263. package/packages/orq-rc/src/mcp-server/tools/evalsLengthBetween.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/evalsLengthGreaterThan.ts +0 -36
  265. package/packages/orq-rc/src/mcp-server/tools/evalsLengthLessThan.ts +0 -35
  266. package/packages/orq-rc/src/mcp-server/tools/evalsLocalization.ts +0 -35
  267. package/packages/orq-rc/src/mcp-server/tools/evalsPii.ts +0 -35
  268. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCoherence.ts +0 -35
  269. package/packages/orq-rc/src/mcp-server/tools/evalsRagasConciseness.ts +0 -35
  270. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextEntitiesRecall.ts +0 -37
  271. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextPrecision.ts +0 -36
  272. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextRecall.ts +0 -36
  273. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCorrectness.ts +0 -35
  274. package/packages/orq-rc/src/mcp-server/tools/evalsRagasFaithfulness.ts +0 -36
  275. package/packages/orq-rc/src/mcp-server/tools/evalsRagasHarmfulness.ts +0 -35
  276. package/packages/orq-rc/src/mcp-server/tools/evalsRagasMaliciousness.ts +0 -36
  277. package/packages/orq-rc/src/mcp-server/tools/evalsRagasNoiseSensitivity.ts +0 -36
  278. package/packages/orq-rc/src/mcp-server/tools/evalsRagasResponseRelevancy.ts +0 -36
  279. package/packages/orq-rc/src/mcp-server/tools/evalsRagasSummarization.ts +0 -36
  280. package/packages/orq-rc/src/mcp-server/tools/evalsSentimentClassification.ts +0 -36
  281. package/packages/orq-rc/src/mcp-server/tools/evalsSummarization.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/evalsToneOfVoice.ts +0 -35
  283. package/packages/orq-rc/src/mcp-server/tools/evalsTranslation.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  285. package/packages/orq-rc/src/mcp-server/tools/evalsValidJson.ts +0 -35
  286. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  287. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  289. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  290. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  308. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  309. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  310. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  311. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  312. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  313. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  315. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  316. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  317. package/packages/orq-rc/src/models/components/deployments.ts +0 -7246
  318. package/packages/orq-rc/src/models/components/index.ts +0 -6
  319. package/packages/orq-rc/src/models/components/security.ts +0 -71
  320. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  321. package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
  322. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
  323. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
  324. package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +0 -156
  325. package/packages/orq-rc/src/models/errors/evalsbertscore.ts +0 -154
  326. package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +0 -154
  327. package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +0 -155
  328. package/packages/orq-rc/src/models/errors/evalscontains.ts +0 -154
  329. package/packages/orq-rc/src/models/errors/evalscontainsall.ts +0 -155
  330. package/packages/orq-rc/src/models/errors/evalscontainsany.ts +0 -155
  331. package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +0 -156
  332. package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +0 -155
  333. package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +0 -155
  334. package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +0 -157
  335. package/packages/orq-rc/src/models/errors/evalsendswith.ts +0 -154
  336. package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +0 -154
  337. package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +0 -160
  338. package/packages/orq-rc/src/models/errors/evalsgrammar.ts +0 -154
  339. package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +0 -156
  340. package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +0 -157
  341. package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +0 -156
  342. package/packages/orq-rc/src/models/errors/evalslocalization.ts +0 -155
  343. package/packages/orq-rc/src/models/errors/evalspii.ts +0 -154
  344. package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +0 -156
  345. package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +0 -157
  346. package/packages/orq-rc/src/models/errors/evalsragascontextentitiesrecall.ts +0 -163
  347. package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +0 -160
  348. package/packages/orq-rc/src/models/errors/evalsragascontextrecall.ts +0 -158
  349. package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +0 -157
  350. package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +0 -157
  351. package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +0 -157
  352. package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +0 -158
  353. package/packages/orq-rc/src/models/errors/evalsragasnoisesensitivity.ts +0 -160
  354. package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +0 -160
  355. package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +0 -158
  356. package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +0 -160
  357. package/packages/orq-rc/src/models/errors/evalssummarization.ts +0 -156
  358. package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +0 -155
  359. package/packages/orq-rc/src/models/errors/evalstranslation.ts +0 -155
  360. package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +0 -154
  361. package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
  362. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
  363. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
  364. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  365. package/packages/orq-rc/src/models/errors/index.ts +0 -56
  366. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -154
  367. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  368. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  369. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -91
  370. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  371. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
  372. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
  373. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
  374. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  375. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -438
  376. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
  377. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  378. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5205
  379. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  380. package/packages/orq-rc/src/models/operations/createeval.ts +0 -3830
  381. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  382. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  383. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -4373
  384. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  385. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
  386. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  387. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  388. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  389. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
  390. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  391. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  392. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5439
  393. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9480
  394. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1258
  395. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2467
  396. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9449
  397. package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +0 -253
  398. package/packages/orq-rc/src/models/operations/evalsbertscore.ts +0 -197
  399. package/packages/orq-rc/src/models/operations/evalsbleuscore.ts +0 -131
  400. package/packages/orq-rc/src/models/operations/evalsbotdetection.ts +0 -249
  401. package/packages/orq-rc/src/models/operations/evalscontains.ts +0 -250
  402. package/packages/orq-rc/src/models/operations/evalscontainsall.ts +0 -248
  403. package/packages/orq-rc/src/models/operations/evalscontainsany.ts +0 -254
  404. package/packages/orq-rc/src/models/operations/evalscontainsemail.ts +0 -181
  405. package/packages/orq-rc/src/models/operations/evalscontainsnone.ts +0 -254
  406. package/packages/orq-rc/src/models/operations/evalscontainsurl.ts +0 -181
  407. package/packages/orq-rc/src/models/operations/evalscontainsvalidlink.ts +0 -186
  408. package/packages/orq-rc/src/models/operations/evalsendswith.ts +0 -250
  409. package/packages/orq-rc/src/models/operations/evalsexactmatch.ts +0 -183
  410. package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +0 -299
  411. package/packages/orq-rc/src/models/operations/evalsgrammar.ts +0 -243
  412. package/packages/orq-rc/src/models/operations/evalslengthbetween.ts +0 -268
  413. package/packages/orq-rc/src/models/operations/evalslengthgreaterthan.ts +0 -266
  414. package/packages/orq-rc/src/models/operations/evalslengthlessthan.ts +0 -259
  415. package/packages/orq-rc/src/models/operations/evalslocalization.ts +0 -253
  416. package/packages/orq-rc/src/models/operations/evalspii.ts +0 -243
  417. package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +0 -152
  418. package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +0 -153
  419. package/packages/orq-rc/src/models/operations/evalsragascontextentitiesrecall.ts +0 -164
  420. package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +0 -166
  421. package/packages/orq-rc/src/models/operations/evalsragascontextrecall.ts +0 -164
  422. package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +0 -153
  423. package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +0 -155
  424. package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +0 -146
  425. package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +0 -157
  426. package/packages/orq-rc/src/models/operations/evalsragasnoisesensitivity.ts +0 -166
  427. package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +0 -165
  428. package/packages/orq-rc/src/models/operations/evalsragassummarization.ts +0 -150
  429. package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +0 -285
  430. package/packages/orq-rc/src/models/operations/evalssummarization.ts +0 -253
  431. package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +0 -251
  432. package/packages/orq-rc/src/models/operations/evalstranslation.ts +0 -251
  433. package/packages/orq-rc/src/models/operations/evalsvalidjson.ts +0 -177
  434. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  435. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  436. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  437. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  438. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2437
  439. package/packages/orq-rc/src/models/operations/getevals.ts +0 -7290
  440. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  441. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  442. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2298
  443. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2305
  444. package/packages/orq-rc/src/models/operations/index.ts +0 -98
  445. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -2520
  446. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  447. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -490
  448. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2784
  449. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  450. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  451. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  452. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  453. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2438
  454. package/packages/orq-rc/src/models/operations/parse.ts +0 -1610
  455. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  456. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
  457. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2586
  458. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  459. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  460. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3409
  461. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  462. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
  463. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5155
  464. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  465. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  466. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4131
  467. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  468. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -4514
  469. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  470. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  471. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  472. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  473. package/packages/orq-rc/src/sdk/evals.ts +0 -639
  474. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  475. package/packages/orq-rc/src/sdk/files.ts +0 -78
  476. package/packages/orq-rc/src/sdk/index.ts +0 -5
  477. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  478. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  479. package/packages/orq-rc/src/sdk/models.ts +0 -25
  480. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  481. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  482. package/packages/orq-rc/src/sdk/sdk.ts +0 -73
  483. package/packages/orq-rc/src/types/async.ts +0 -68
  484. package/packages/orq-rc/src/types/blobs.ts +0 -31
  485. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  486. package/packages/orq-rc/src/types/enums.ts +0 -16
  487. package/packages/orq-rc/src/types/fp.ts +0 -50
  488. package/packages/orq-rc/src/types/index.ts +0 -11
  489. package/packages/orq-rc/src/types/operations.ts +0 -105
  490. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  491. package/packages/orq-rc/src/types/streams.ts +0 -21
  492. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,2438 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type ListPromptVersionsRequest = {
13
- promptId: string;
14
- /**
15
- * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
16
- */
17
- limit?: number | undefined;
18
- /**
19
- * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
20
- */
21
- startingAfter?: string | undefined;
22
- /**
23
- * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
24
- */
25
- endingBefore?: string | undefined;
26
- };
27
-
28
- export const ListPromptVersionsObject = {
29
- List: "list",
30
- } as const;
31
- export type ListPromptVersionsObject = ClosedEnum<
32
- typeof ListPromptVersionsObject
33
- >;
34
-
35
- /**
36
- * The modality of the model
37
- */
38
- export const ListPromptVersionsModelType = {
39
- Chat: "chat",
40
- Completion: "completion",
41
- Embedding: "embedding",
42
- Vision: "vision",
43
- Image: "image",
44
- Tts: "tts",
45
- Stt: "stt",
46
- Rerank: "rerank",
47
- Moderations: "moderations",
48
- } as const;
49
- /**
50
- * The modality of the model
51
- */
52
- export type ListPromptVersionsModelType = ClosedEnum<
53
- typeof ListPromptVersionsModelType
54
- >;
55
-
56
- /**
57
- * Only supported on `image` models.
58
- */
59
- export const ListPromptVersionsFormat = {
60
- Url: "url",
61
- B64Json: "b64_json",
62
- Text: "text",
63
- JsonObject: "json_object",
64
- } as const;
65
- /**
66
- * Only supported on `image` models.
67
- */
68
- export type ListPromptVersionsFormat = ClosedEnum<
69
- typeof ListPromptVersionsFormat
70
- >;
71
-
72
- export const ListPromptVersionsResponseFormatPromptsResponseType = {
73
- Text: "text",
74
- } as const;
75
- export type ListPromptVersionsResponseFormatPromptsResponseType = ClosedEnum<
76
- typeof ListPromptVersionsResponseFormatPromptsResponseType
77
- >;
78
-
79
- export type ListPromptVersionsResponseFormat3 = {
80
- type: ListPromptVersionsResponseFormatPromptsResponseType;
81
- };
82
-
83
- export const ListPromptVersionsResponseFormatPromptsType = {
84
- JsonObject: "json_object",
85
- } as const;
86
- export type ListPromptVersionsResponseFormatPromptsType = ClosedEnum<
87
- typeof ListPromptVersionsResponseFormatPromptsType
88
- >;
89
-
90
- export type ListPromptVersionsResponseFormat2 = {
91
- type: ListPromptVersionsResponseFormatPromptsType;
92
- };
93
-
94
- export const ListPromptVersionsResponseFormatType = {
95
- JsonSchema: "json_schema",
96
- } as const;
97
- export type ListPromptVersionsResponseFormatType = ClosedEnum<
98
- typeof ListPromptVersionsResponseFormatType
99
- >;
100
-
101
- export type ListPromptVersionsResponseFormatJsonSchema = {
102
- name: string;
103
- strict?: boolean | undefined;
104
- schema: { [k: string]: any };
105
- };
106
-
107
- export type ListPromptVersionsResponseFormat1 = {
108
- type: ListPromptVersionsResponseFormatType;
109
- jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
110
- };
111
-
112
- /**
113
- * An object specifying the format that the model must output.
114
- *
115
- * @remarks
116
- *
117
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
118
- *
119
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
120
- *
121
- * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
122
- */
123
- export type ListPromptVersionsResponseFormat =
124
- | ListPromptVersionsResponseFormat1
125
- | ListPromptVersionsResponseFormat2
126
- | ListPromptVersionsResponseFormat3;
127
-
128
- /**
129
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
130
- */
131
- export const ListPromptVersionsPhotoRealVersion = {
132
- V1: "v1",
133
- V2: "v2",
134
- } as const;
135
- /**
136
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
137
- */
138
- export type ListPromptVersionsPhotoRealVersion = ClosedEnum<
139
- typeof ListPromptVersionsPhotoRealVersion
140
- >;
141
-
142
- /**
143
- * The format to return the embeddings
144
- */
145
- export const ListPromptVersionsEncodingFormat = {
146
- Float: "float",
147
- Base64: "base64",
148
- } as const;
149
- /**
150
- * The format to return the embeddings
151
- */
152
- export type ListPromptVersionsEncodingFormat = ClosedEnum<
153
- typeof ListPromptVersionsEncodingFormat
154
- >;
155
-
156
- /**
157
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
158
- */
159
- export const ListPromptVersionsReasoningEffort = {
160
- Disable: "disable",
161
- Low: "low",
162
- Medium: "medium",
163
- High: "high",
164
- } as const;
165
- /**
166
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
167
- */
168
- export type ListPromptVersionsReasoningEffort = ClosedEnum<
169
- typeof ListPromptVersionsReasoningEffort
170
- >;
171
-
172
- /**
173
- * Controls the verbosity of the model output.
174
- */
175
- export const ListPromptVersionsVerbosity = {
176
- Low: "low",
177
- Medium: "medium",
178
- High: "high",
179
- } as const;
180
- /**
181
- * Controls the verbosity of the model output.
182
- */
183
- export type ListPromptVersionsVerbosity = ClosedEnum<
184
- typeof ListPromptVersionsVerbosity
185
- >;
186
-
187
- /**
188
- * Model Parameters: Not all parameters apply to every model
189
- */
190
- export type ListPromptVersionsModelParameters = {
191
- /**
192
- * Only supported on `chat` and `completion` models.
193
- */
194
- temperature?: number | undefined;
195
- /**
196
- * Only supported on `chat` and `completion` models.
197
- */
198
- maxTokens?: number | undefined;
199
- /**
200
- * Only supported on `chat` and `completion` models.
201
- */
202
- topK?: number | undefined;
203
- /**
204
- * Only supported on `chat` and `completion` models.
205
- */
206
- topP?: number | undefined;
207
- /**
208
- * Only supported on `chat` and `completion` models.
209
- */
210
- frequencyPenalty?: number | undefined;
211
- /**
212
- * Only supported on `chat` and `completion` models.
213
- */
214
- presencePenalty?: number | undefined;
215
- /**
216
- * Only supported on `image` models.
217
- */
218
- numImages?: number | undefined;
219
- /**
220
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
221
- */
222
- seed?: number | undefined;
223
- /**
224
- * Only supported on `image` models.
225
- */
226
- format?: ListPromptVersionsFormat | undefined;
227
- /**
228
- * Only supported on `image` models.
229
- */
230
- dimensions?: string | undefined;
231
- /**
232
- * Only supported on `image` models.
233
- */
234
- quality?: string | undefined;
235
- /**
236
- * Only supported on `image` models.
237
- */
238
- style?: string | undefined;
239
- /**
240
- * An object specifying the format that the model must output.
241
- *
242
- * @remarks
243
- *
244
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
245
- *
246
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
247
- *
248
- * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
249
- */
250
- responseFormat?:
251
- | ListPromptVersionsResponseFormat1
252
- | ListPromptVersionsResponseFormat2
253
- | ListPromptVersionsResponseFormat3
254
- | null
255
- | undefined;
256
- /**
257
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
258
- */
259
- photoRealVersion?: ListPromptVersionsPhotoRealVersion | undefined;
260
- /**
261
- * The format to return the embeddings
262
- */
263
- encodingFormat?: ListPromptVersionsEncodingFormat | undefined;
264
- /**
265
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
266
- */
267
- reasoningEffort?: ListPromptVersionsReasoningEffort | undefined;
268
- /**
269
- * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
270
- */
271
- budgetTokens?: number | undefined;
272
- /**
273
- * Controls the verbosity of the model output.
274
- */
275
- verbosity?: ListPromptVersionsVerbosity | undefined;
276
- };
277
-
278
- export const ListPromptVersionsProvider = {
279
- Cohere: "cohere",
280
- Openai: "openai",
281
- Anthropic: "anthropic",
282
- Huggingface: "huggingface",
283
- Replicate: "replicate",
284
- Google: "google",
285
- GoogleAi: "google-ai",
286
- Azure: "azure",
287
- Aws: "aws",
288
- Anyscale: "anyscale",
289
- Perplexity: "perplexity",
290
- Groq: "groq",
291
- Fal: "fal",
292
- Leonardoai: "leonardoai",
293
- Nvidia: "nvidia",
294
- Jina: "jina",
295
- Togetherai: "togetherai",
296
- Elevenlabs: "elevenlabs",
297
- Litellm: "litellm",
298
- Openailike: "openailike",
299
- Cerebras: "cerebras",
300
- } as const;
301
- export type ListPromptVersionsProvider = ClosedEnum<
302
- typeof ListPromptVersionsProvider
303
- >;
304
-
305
- /**
306
- * The role of the prompt message
307
- */
308
- export const ListPromptVersionsRole = {
309
- System: "system",
310
- Assistant: "assistant",
311
- User: "user",
312
- Exception: "exception",
313
- Tool: "tool",
314
- Prompt: "prompt",
315
- Correction: "correction",
316
- ExpectedOutput: "expected_output",
317
- } as const;
318
- /**
319
- * The role of the prompt message
320
- */
321
- export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
322
-
323
- /**
324
- * The type of the content part. Always `file`.
325
- */
326
- export const ListPromptVersions2PromptsResponseType = {
327
- File: "file",
328
- } as const;
329
- /**
330
- * The type of the content part. Always `file`.
331
- */
332
- export type ListPromptVersions2PromptsResponseType = ClosedEnum<
333
- typeof ListPromptVersions2PromptsResponseType
334
- >;
335
-
336
- export type ListPromptVersions2File = {
337
- /**
338
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
339
- */
340
- fileData: string;
341
- /**
342
- * The name of the file, used when passing the file to the model as a string.
343
- */
344
- filename?: string | undefined;
345
- };
346
-
347
- export type ListPromptVersions23 = {
348
- /**
349
- * The type of the content part. Always `file`.
350
- */
351
- type: ListPromptVersions2PromptsResponseType;
352
- file: ListPromptVersions2File;
353
- };
354
-
355
- export const ListPromptVersions2PromptsType = {
356
- ImageUrl: "image_url",
357
- } as const;
358
- export type ListPromptVersions2PromptsType = ClosedEnum<
359
- typeof ListPromptVersions2PromptsType
360
- >;
361
-
362
- export type ListPromptVersions2ImageUrl = {
363
- /**
364
- * The orq.ai id of the image
365
- */
366
- id?: string | undefined;
367
- /**
368
- * Either a URL of the image or the base64 encoded data URI.
369
- */
370
- url: string;
371
- /**
372
- * Specifies the detail level of the image. Currently only supported with OpenAI models
373
- */
374
- detail?: string | undefined;
375
- };
376
-
377
- /**
378
- * The image part of the prompt message. Only supported with vision models.
379
- */
380
- export type ListPromptVersions22 = {
381
- type: ListPromptVersions2PromptsType;
382
- imageUrl: ListPromptVersions2ImageUrl;
383
- };
384
-
385
- export const ListPromptVersions2Type = {
386
- Text: "text",
387
- } as const;
388
- export type ListPromptVersions2Type = ClosedEnum<
389
- typeof ListPromptVersions2Type
390
- >;
391
-
392
- /**
393
- * Text content part of a prompt message
394
- */
395
- export type ListPromptVersions21 = {
396
- type: ListPromptVersions2Type;
397
- text: string;
398
- };
399
-
400
- export type ListPromptVersionsContent2 =
401
- | ListPromptVersions21
402
- | ListPromptVersions22
403
- | ListPromptVersions23;
404
-
405
- /**
406
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
407
- */
408
- export type ListPromptVersionsContent =
409
- | string
410
- | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
411
-
412
- export const ListPromptVersionsType = {
413
- Function: "function",
414
- } as const;
415
- export type ListPromptVersionsType = ClosedEnum<typeof ListPromptVersionsType>;
416
-
417
- export type ListPromptVersionsFunction = {
418
- name: string;
419
- /**
420
- * JSON string arguments for the functions
421
- */
422
- arguments: string;
423
- };
424
-
425
- export type ListPromptVersionsToolCalls = {
426
- id?: string | undefined;
427
- index?: number | undefined;
428
- type: ListPromptVersionsType;
429
- function: ListPromptVersionsFunction;
430
- };
431
-
432
- export type ListPromptVersionsMessages = {
433
- /**
434
- * The role of the prompt message
435
- */
436
- role: ListPromptVersionsRole;
437
- /**
438
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
439
- */
440
- content:
441
- | string
442
- | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
443
- toolCalls?: Array<ListPromptVersionsToolCalls> | undefined;
444
- toolCallId?: string | undefined;
445
- };
446
-
447
- /**
448
- * A list of messages compatible with the openAI schema
449
- */
450
- export type ListPromptVersionsPromptConfig = {
451
- stream?: boolean | undefined;
452
- model?: string | undefined;
453
- /**
454
- * The id of the resource
455
- */
456
- modelDbId?: string | null | undefined;
457
- /**
458
- * The modality of the model
459
- */
460
- modelType?: ListPromptVersionsModelType | null | undefined;
461
- /**
462
- * Model Parameters: Not all parameters apply to every model
463
- */
464
- modelParameters?: ListPromptVersionsModelParameters | undefined;
465
- provider?: ListPromptVersionsProvider | undefined;
466
- /**
467
- * The id of the resource
468
- */
469
- integrationId?: string | null | undefined;
470
- version?: string | undefined;
471
- messages: Array<ListPromptVersionsMessages>;
472
- };
473
-
474
- export const ListPromptVersionsUseCases = {
475
- AgentsSimulations: "Agents simulations",
476
- Agents: "Agents",
477
- APIInteraction: "API interaction",
478
- AutonomousAgents: "Autonomous Agents",
479
- Chatbots: "Chatbots",
480
- Classification: "Classification",
481
- CodeUnderstanding: "Code understanding",
482
- CodeWriting: "Code writing",
483
- Conversation: "Conversation",
484
- DocumentsQA: "Documents QA",
485
- Evaluation: "Evaluation",
486
- Extraction: "Extraction",
487
- MultiModal: "Multi-modal",
488
- SelfChecking: "Self-checking",
489
- SentimentAnalysis: "Sentiment analysis",
490
- Sql: "SQL",
491
- Summarization: "Summarization",
492
- Tagging: "Tagging",
493
- TranslationDocument: "Translation (document)",
494
- TranslationSentences: "Translation (sentences)",
495
- } as const;
496
- export type ListPromptVersionsUseCases = ClosedEnum<
497
- typeof ListPromptVersionsUseCases
498
- >;
499
-
500
- /**
501
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
502
- */
503
- export const ListPromptVersionsLanguage = {
504
- Chinese: "Chinese",
505
- Dutch: "Dutch",
506
- English: "English",
507
- French: "French",
508
- German: "German",
509
- Russian: "Russian",
510
- Spanish: "Spanish",
511
- } as const;
512
- /**
513
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
514
- */
515
- export type ListPromptVersionsLanguage = ClosedEnum<
516
- typeof ListPromptVersionsLanguage
517
- >;
518
-
519
- export type ListPromptVersionsMetadata = {
520
- /**
521
- * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
522
- */
523
- useCases?: Array<ListPromptVersionsUseCases> | undefined;
524
- /**
525
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
526
- */
527
- language?: ListPromptVersionsLanguage | null | undefined;
528
- };
529
-
530
- export type ListPromptVersionsData = {
531
- id: string;
532
- createdById?: string | null | undefined;
533
- updatedById?: string | null | undefined;
534
- /**
535
- * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
536
- */
537
- description?: string | null | undefined;
538
- /**
539
- * A list of messages compatible with the openAI schema
540
- */
541
- promptConfig: ListPromptVersionsPromptConfig;
542
- metadata?: ListPromptVersionsMetadata | undefined;
543
- timestamp: string;
544
- };
545
-
546
- /**
547
- * Prompt versions retrieved.
548
- */
549
- export type ListPromptVersionsResponseBody = {
550
- object: ListPromptVersionsObject;
551
- data: Array<ListPromptVersionsData>;
552
- hasMore: boolean;
553
- };
554
-
555
- /** @internal */
556
- export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
557
- ListPromptVersionsRequest,
558
- z.ZodTypeDef,
559
- unknown
560
- > = z.object({
561
- prompt_id: z.string(),
562
- limit: z.number().default(10),
563
- starting_after: z.string().optional(),
564
- ending_before: z.string().optional(),
565
- }).transform((v) => {
566
- return remap$(v, {
567
- "prompt_id": "promptId",
568
- "starting_after": "startingAfter",
569
- "ending_before": "endingBefore",
570
- });
571
- });
572
-
573
- /** @internal */
574
- export type ListPromptVersionsRequest$Outbound = {
575
- prompt_id: string;
576
- limit: number;
577
- starting_after?: string | undefined;
578
- ending_before?: string | undefined;
579
- };
580
-
581
- /** @internal */
582
- export const ListPromptVersionsRequest$outboundSchema: z.ZodType<
583
- ListPromptVersionsRequest$Outbound,
584
- z.ZodTypeDef,
585
- ListPromptVersionsRequest
586
- > = z.object({
587
- promptId: z.string(),
588
- limit: z.number().default(10),
589
- startingAfter: z.string().optional(),
590
- endingBefore: z.string().optional(),
591
- }).transform((v) => {
592
- return remap$(v, {
593
- promptId: "prompt_id",
594
- startingAfter: "starting_after",
595
- endingBefore: "ending_before",
596
- });
597
- });
598
-
599
- /**
600
- * @internal
601
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
602
- */
603
- export namespace ListPromptVersionsRequest$ {
604
- /** @deprecated use `ListPromptVersionsRequest$inboundSchema` instead. */
605
- export const inboundSchema = ListPromptVersionsRequest$inboundSchema;
606
- /** @deprecated use `ListPromptVersionsRequest$outboundSchema` instead. */
607
- export const outboundSchema = ListPromptVersionsRequest$outboundSchema;
608
- /** @deprecated use `ListPromptVersionsRequest$Outbound` instead. */
609
- export type Outbound = ListPromptVersionsRequest$Outbound;
610
- }
611
-
612
- export function listPromptVersionsRequestToJSON(
613
- listPromptVersionsRequest: ListPromptVersionsRequest,
614
- ): string {
615
- return JSON.stringify(
616
- ListPromptVersionsRequest$outboundSchema.parse(listPromptVersionsRequest),
617
- );
618
- }
619
-
620
- export function listPromptVersionsRequestFromJSON(
621
- jsonString: string,
622
- ): SafeParseResult<ListPromptVersionsRequest, SDKValidationError> {
623
- return safeParse(
624
- jsonString,
625
- (x) => ListPromptVersionsRequest$inboundSchema.parse(JSON.parse(x)),
626
- `Failed to parse 'ListPromptVersionsRequest' from JSON`,
627
- );
628
- }
629
-
630
- /** @internal */
631
- export const ListPromptVersionsObject$inboundSchema: z.ZodNativeEnum<
632
- typeof ListPromptVersionsObject
633
- > = z.nativeEnum(ListPromptVersionsObject);
634
-
635
- /** @internal */
636
- export const ListPromptVersionsObject$outboundSchema: z.ZodNativeEnum<
637
- typeof ListPromptVersionsObject
638
- > = ListPromptVersionsObject$inboundSchema;
639
-
640
- /**
641
- * @internal
642
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
643
- */
644
- export namespace ListPromptVersionsObject$ {
645
- /** @deprecated use `ListPromptVersionsObject$inboundSchema` instead. */
646
- export const inboundSchema = ListPromptVersionsObject$inboundSchema;
647
- /** @deprecated use `ListPromptVersionsObject$outboundSchema` instead. */
648
- export const outboundSchema = ListPromptVersionsObject$outboundSchema;
649
- }
650
-
651
- /** @internal */
652
- export const ListPromptVersionsModelType$inboundSchema: z.ZodNativeEnum<
653
- typeof ListPromptVersionsModelType
654
- > = z.nativeEnum(ListPromptVersionsModelType);
655
-
656
- /** @internal */
657
- export const ListPromptVersionsModelType$outboundSchema: z.ZodNativeEnum<
658
- typeof ListPromptVersionsModelType
659
- > = ListPromptVersionsModelType$inboundSchema;
660
-
661
- /**
662
- * @internal
663
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
664
- */
665
- export namespace ListPromptVersionsModelType$ {
666
- /** @deprecated use `ListPromptVersionsModelType$inboundSchema` instead. */
667
- export const inboundSchema = ListPromptVersionsModelType$inboundSchema;
668
- /** @deprecated use `ListPromptVersionsModelType$outboundSchema` instead. */
669
- export const outboundSchema = ListPromptVersionsModelType$outboundSchema;
670
- }
671
-
672
- /** @internal */
673
- export const ListPromptVersionsFormat$inboundSchema: z.ZodNativeEnum<
674
- typeof ListPromptVersionsFormat
675
- > = z.nativeEnum(ListPromptVersionsFormat);
676
-
677
- /** @internal */
678
- export const ListPromptVersionsFormat$outboundSchema: z.ZodNativeEnum<
679
- typeof ListPromptVersionsFormat
680
- > = ListPromptVersionsFormat$inboundSchema;
681
-
682
- /**
683
- * @internal
684
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
685
- */
686
- export namespace ListPromptVersionsFormat$ {
687
- /** @deprecated use `ListPromptVersionsFormat$inboundSchema` instead. */
688
- export const inboundSchema = ListPromptVersionsFormat$inboundSchema;
689
- /** @deprecated use `ListPromptVersionsFormat$outboundSchema` instead. */
690
- export const outboundSchema = ListPromptVersionsFormat$outboundSchema;
691
- }
692
-
693
- /** @internal */
694
- export const ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema:
695
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponseType> =
696
- z.nativeEnum(ListPromptVersionsResponseFormatPromptsResponseType);
697
-
698
- /** @internal */
699
- export const ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema:
700
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponseType> =
701
- ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema;
702
-
703
- /**
704
- * @internal
705
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
706
- */
707
- export namespace ListPromptVersionsResponseFormatPromptsResponseType$ {
708
- /** @deprecated use `ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema` instead. */
709
- export const inboundSchema =
710
- ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema;
711
- /** @deprecated use `ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema` instead. */
712
- export const outboundSchema =
713
- ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema;
714
- }
715
-
716
- /** @internal */
717
- export const ListPromptVersionsResponseFormat3$inboundSchema: z.ZodType<
718
- ListPromptVersionsResponseFormat3,
719
- z.ZodTypeDef,
720
- unknown
721
- > = z.object({
722
- type: ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema,
723
- });
724
-
725
- /** @internal */
726
- export type ListPromptVersionsResponseFormat3$Outbound = {
727
- type: string;
728
- };
729
-
730
- /** @internal */
731
- export const ListPromptVersionsResponseFormat3$outboundSchema: z.ZodType<
732
- ListPromptVersionsResponseFormat3$Outbound,
733
- z.ZodTypeDef,
734
- ListPromptVersionsResponseFormat3
735
- > = z.object({
736
- type: ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema,
737
- });
738
-
739
- /**
740
- * @internal
741
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
742
- */
743
- export namespace ListPromptVersionsResponseFormat3$ {
744
- /** @deprecated use `ListPromptVersionsResponseFormat3$inboundSchema` instead. */
745
- export const inboundSchema = ListPromptVersionsResponseFormat3$inboundSchema;
746
- /** @deprecated use `ListPromptVersionsResponseFormat3$outboundSchema` instead. */
747
- export const outboundSchema =
748
- ListPromptVersionsResponseFormat3$outboundSchema;
749
- /** @deprecated use `ListPromptVersionsResponseFormat3$Outbound` instead. */
750
- export type Outbound = ListPromptVersionsResponseFormat3$Outbound;
751
- }
752
-
753
- export function listPromptVersionsResponseFormat3ToJSON(
754
- listPromptVersionsResponseFormat3: ListPromptVersionsResponseFormat3,
755
- ): string {
756
- return JSON.stringify(
757
- ListPromptVersionsResponseFormat3$outboundSchema.parse(
758
- listPromptVersionsResponseFormat3,
759
- ),
760
- );
761
- }
762
-
763
- export function listPromptVersionsResponseFormat3FromJSON(
764
- jsonString: string,
765
- ): SafeParseResult<ListPromptVersionsResponseFormat3, SDKValidationError> {
766
- return safeParse(
767
- jsonString,
768
- (x) => ListPromptVersionsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
769
- `Failed to parse 'ListPromptVersionsResponseFormat3' from JSON`,
770
- );
771
- }
772
-
773
- /** @internal */
774
- export const ListPromptVersionsResponseFormatPromptsType$inboundSchema:
775
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> = z
776
- .nativeEnum(ListPromptVersionsResponseFormatPromptsType);
777
-
778
- /** @internal */
779
- export const ListPromptVersionsResponseFormatPromptsType$outboundSchema:
780
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> =
781
- ListPromptVersionsResponseFormatPromptsType$inboundSchema;
782
-
783
- /**
784
- * @internal
785
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
786
- */
787
- export namespace ListPromptVersionsResponseFormatPromptsType$ {
788
- /** @deprecated use `ListPromptVersionsResponseFormatPromptsType$inboundSchema` instead. */
789
- export const inboundSchema =
790
- ListPromptVersionsResponseFormatPromptsType$inboundSchema;
791
- /** @deprecated use `ListPromptVersionsResponseFormatPromptsType$outboundSchema` instead. */
792
- export const outboundSchema =
793
- ListPromptVersionsResponseFormatPromptsType$outboundSchema;
794
- }
795
-
796
- /** @internal */
797
- export const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<
798
- ListPromptVersionsResponseFormat2,
799
- z.ZodTypeDef,
800
- unknown
801
- > = z.object({
802
- type: ListPromptVersionsResponseFormatPromptsType$inboundSchema,
803
- });
804
-
805
- /** @internal */
806
- export type ListPromptVersionsResponseFormat2$Outbound = {
807
- type: string;
808
- };
809
-
810
- /** @internal */
811
- export const ListPromptVersionsResponseFormat2$outboundSchema: z.ZodType<
812
- ListPromptVersionsResponseFormat2$Outbound,
813
- z.ZodTypeDef,
814
- ListPromptVersionsResponseFormat2
815
- > = z.object({
816
- type: ListPromptVersionsResponseFormatPromptsType$outboundSchema,
817
- });
818
-
819
- /**
820
- * @internal
821
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
822
- */
823
- export namespace ListPromptVersionsResponseFormat2$ {
824
- /** @deprecated use `ListPromptVersionsResponseFormat2$inboundSchema` instead. */
825
- export const inboundSchema = ListPromptVersionsResponseFormat2$inboundSchema;
826
- /** @deprecated use `ListPromptVersionsResponseFormat2$outboundSchema` instead. */
827
- export const outboundSchema =
828
- ListPromptVersionsResponseFormat2$outboundSchema;
829
- /** @deprecated use `ListPromptVersionsResponseFormat2$Outbound` instead. */
830
- export type Outbound = ListPromptVersionsResponseFormat2$Outbound;
831
- }
832
-
833
- export function listPromptVersionsResponseFormat2ToJSON(
834
- listPromptVersionsResponseFormat2: ListPromptVersionsResponseFormat2,
835
- ): string {
836
- return JSON.stringify(
837
- ListPromptVersionsResponseFormat2$outboundSchema.parse(
838
- listPromptVersionsResponseFormat2,
839
- ),
840
- );
841
- }
842
-
843
- export function listPromptVersionsResponseFormat2FromJSON(
844
- jsonString: string,
845
- ): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError> {
846
- return safeParse(
847
- jsonString,
848
- (x) => ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
849
- `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`,
850
- );
851
- }
852
-
853
- /** @internal */
854
- export const ListPromptVersionsResponseFormatType$inboundSchema:
855
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> = z.nativeEnum(
856
- ListPromptVersionsResponseFormatType,
857
- );
858
-
859
- /** @internal */
860
- export const ListPromptVersionsResponseFormatType$outboundSchema:
861
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> =
862
- ListPromptVersionsResponseFormatType$inboundSchema;
863
-
864
- /**
865
- * @internal
866
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
867
- */
868
- export namespace ListPromptVersionsResponseFormatType$ {
869
- /** @deprecated use `ListPromptVersionsResponseFormatType$inboundSchema` instead. */
870
- export const inboundSchema =
871
- ListPromptVersionsResponseFormatType$inboundSchema;
872
- /** @deprecated use `ListPromptVersionsResponseFormatType$outboundSchema` instead. */
873
- export const outboundSchema =
874
- ListPromptVersionsResponseFormatType$outboundSchema;
875
- }
876
-
877
- /** @internal */
878
- export const ListPromptVersionsResponseFormatJsonSchema$inboundSchema:
879
- z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown> =
880
- z.object({
881
- name: z.string(),
882
- strict: z.boolean().optional(),
883
- schema: z.record(z.any()),
884
- });
885
-
886
- /** @internal */
887
- export type ListPromptVersionsResponseFormatJsonSchema$Outbound = {
888
- name: string;
889
- strict?: boolean | undefined;
890
- schema: { [k: string]: any };
891
- };
892
-
893
- /** @internal */
894
- export const ListPromptVersionsResponseFormatJsonSchema$outboundSchema:
895
- z.ZodType<
896
- ListPromptVersionsResponseFormatJsonSchema$Outbound,
897
- z.ZodTypeDef,
898
- ListPromptVersionsResponseFormatJsonSchema
899
- > = z.object({
900
- name: z.string(),
901
- strict: z.boolean().optional(),
902
- schema: z.record(z.any()),
903
- });
904
-
905
- /**
906
- * @internal
907
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
908
- */
909
- export namespace ListPromptVersionsResponseFormatJsonSchema$ {
910
- /** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$inboundSchema` instead. */
911
- export const inboundSchema =
912
- ListPromptVersionsResponseFormatJsonSchema$inboundSchema;
913
- /** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$outboundSchema` instead. */
914
- export const outboundSchema =
915
- ListPromptVersionsResponseFormatJsonSchema$outboundSchema;
916
- /** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$Outbound` instead. */
917
- export type Outbound = ListPromptVersionsResponseFormatJsonSchema$Outbound;
918
- }
919
-
920
- export function listPromptVersionsResponseFormatJsonSchemaToJSON(
921
- listPromptVersionsResponseFormatJsonSchema:
922
- ListPromptVersionsResponseFormatJsonSchema,
923
- ): string {
924
- return JSON.stringify(
925
- ListPromptVersionsResponseFormatJsonSchema$outboundSchema.parse(
926
- listPromptVersionsResponseFormatJsonSchema,
927
- ),
928
- );
929
- }
930
-
931
- export function listPromptVersionsResponseFormatJsonSchemaFromJSON(
932
- jsonString: string,
933
- ): SafeParseResult<
934
- ListPromptVersionsResponseFormatJsonSchema,
935
- SDKValidationError
936
- > {
937
- return safeParse(
938
- jsonString,
939
- (x) =>
940
- ListPromptVersionsResponseFormatJsonSchema$inboundSchema.parse(
941
- JSON.parse(x),
942
- ),
943
- `Failed to parse 'ListPromptVersionsResponseFormatJsonSchema' from JSON`,
944
- );
945
- }
946
-
947
- /** @internal */
948
- export const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<
949
- ListPromptVersionsResponseFormat1,
950
- z.ZodTypeDef,
951
- unknown
952
- > = z.object({
953
- type: ListPromptVersionsResponseFormatType$inboundSchema,
954
- json_schema: z.lazy(() =>
955
- ListPromptVersionsResponseFormatJsonSchema$inboundSchema
956
- ),
957
- }).transform((v) => {
958
- return remap$(v, {
959
- "json_schema": "jsonSchema",
960
- });
961
- });
962
-
963
- /** @internal */
964
- export type ListPromptVersionsResponseFormat1$Outbound = {
965
- type: string;
966
- json_schema: ListPromptVersionsResponseFormatJsonSchema$Outbound;
967
- };
968
-
969
- /** @internal */
970
- export const ListPromptVersionsResponseFormat1$outboundSchema: z.ZodType<
971
- ListPromptVersionsResponseFormat1$Outbound,
972
- z.ZodTypeDef,
973
- ListPromptVersionsResponseFormat1
974
- > = z.object({
975
- type: ListPromptVersionsResponseFormatType$outboundSchema,
976
- jsonSchema: z.lazy(() =>
977
- ListPromptVersionsResponseFormatJsonSchema$outboundSchema
978
- ),
979
- }).transform((v) => {
980
- return remap$(v, {
981
- jsonSchema: "json_schema",
982
- });
983
- });
984
-
985
- /**
986
- * @internal
987
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
988
- */
989
- export namespace ListPromptVersionsResponseFormat1$ {
990
- /** @deprecated use `ListPromptVersionsResponseFormat1$inboundSchema` instead. */
991
- export const inboundSchema = ListPromptVersionsResponseFormat1$inboundSchema;
992
- /** @deprecated use `ListPromptVersionsResponseFormat1$outboundSchema` instead. */
993
- export const outboundSchema =
994
- ListPromptVersionsResponseFormat1$outboundSchema;
995
- /** @deprecated use `ListPromptVersionsResponseFormat1$Outbound` instead. */
996
- export type Outbound = ListPromptVersionsResponseFormat1$Outbound;
997
- }
998
-
999
- export function listPromptVersionsResponseFormat1ToJSON(
1000
- listPromptVersionsResponseFormat1: ListPromptVersionsResponseFormat1,
1001
- ): string {
1002
- return JSON.stringify(
1003
- ListPromptVersionsResponseFormat1$outboundSchema.parse(
1004
- listPromptVersionsResponseFormat1,
1005
- ),
1006
- );
1007
- }
1008
-
1009
- export function listPromptVersionsResponseFormat1FromJSON(
1010
- jsonString: string,
1011
- ): SafeParseResult<ListPromptVersionsResponseFormat1, SDKValidationError> {
1012
- return safeParse(
1013
- jsonString,
1014
- (x) => ListPromptVersionsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1015
- `Failed to parse 'ListPromptVersionsResponseFormat1' from JSON`,
1016
- );
1017
- }
1018
-
1019
- /** @internal */
1020
- export const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<
1021
- ListPromptVersionsResponseFormat,
1022
- z.ZodTypeDef,
1023
- unknown
1024
- > = z.union([
1025
- z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1026
- z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1027
- z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
1028
- ]);
1029
-
1030
- /** @internal */
1031
- export type ListPromptVersionsResponseFormat$Outbound =
1032
- | ListPromptVersionsResponseFormat1$Outbound
1033
- | ListPromptVersionsResponseFormat2$Outbound
1034
- | ListPromptVersionsResponseFormat3$Outbound;
1035
-
1036
- /** @internal */
1037
- export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
1038
- ListPromptVersionsResponseFormat$Outbound,
1039
- z.ZodTypeDef,
1040
- ListPromptVersionsResponseFormat
1041
- > = z.union([
1042
- z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
1043
- z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
1044
- z.lazy(() => ListPromptVersionsResponseFormat3$outboundSchema),
1045
- ]);
1046
-
1047
- /**
1048
- * @internal
1049
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1050
- */
1051
- export namespace ListPromptVersionsResponseFormat$ {
1052
- /** @deprecated use `ListPromptVersionsResponseFormat$inboundSchema` instead. */
1053
- export const inboundSchema = ListPromptVersionsResponseFormat$inboundSchema;
1054
- /** @deprecated use `ListPromptVersionsResponseFormat$outboundSchema` instead. */
1055
- export const outboundSchema = ListPromptVersionsResponseFormat$outboundSchema;
1056
- /** @deprecated use `ListPromptVersionsResponseFormat$Outbound` instead. */
1057
- export type Outbound = ListPromptVersionsResponseFormat$Outbound;
1058
- }
1059
-
1060
- export function listPromptVersionsResponseFormatToJSON(
1061
- listPromptVersionsResponseFormat: ListPromptVersionsResponseFormat,
1062
- ): string {
1063
- return JSON.stringify(
1064
- ListPromptVersionsResponseFormat$outboundSchema.parse(
1065
- listPromptVersionsResponseFormat,
1066
- ),
1067
- );
1068
- }
1069
-
1070
- export function listPromptVersionsResponseFormatFromJSON(
1071
- jsonString: string,
1072
- ): SafeParseResult<ListPromptVersionsResponseFormat, SDKValidationError> {
1073
- return safeParse(
1074
- jsonString,
1075
- (x) => ListPromptVersionsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1076
- `Failed to parse 'ListPromptVersionsResponseFormat' from JSON`,
1077
- );
1078
- }
1079
-
1080
- /** @internal */
1081
- export const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1082
- typeof ListPromptVersionsPhotoRealVersion
1083
- > = z.nativeEnum(ListPromptVersionsPhotoRealVersion);
1084
-
1085
- /** @internal */
1086
- export const ListPromptVersionsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1087
- typeof ListPromptVersionsPhotoRealVersion
1088
- > = ListPromptVersionsPhotoRealVersion$inboundSchema;
1089
-
1090
- /**
1091
- * @internal
1092
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1093
- */
1094
- export namespace ListPromptVersionsPhotoRealVersion$ {
1095
- /** @deprecated use `ListPromptVersionsPhotoRealVersion$inboundSchema` instead. */
1096
- export const inboundSchema = ListPromptVersionsPhotoRealVersion$inboundSchema;
1097
- /** @deprecated use `ListPromptVersionsPhotoRealVersion$outboundSchema` instead. */
1098
- export const outboundSchema =
1099
- ListPromptVersionsPhotoRealVersion$outboundSchema;
1100
- }
1101
-
1102
- /** @internal */
1103
- export const ListPromptVersionsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1104
- typeof ListPromptVersionsEncodingFormat
1105
- > = z.nativeEnum(ListPromptVersionsEncodingFormat);
1106
-
1107
- /** @internal */
1108
- export const ListPromptVersionsEncodingFormat$outboundSchema: z.ZodNativeEnum<
1109
- typeof ListPromptVersionsEncodingFormat
1110
- > = ListPromptVersionsEncodingFormat$inboundSchema;
1111
-
1112
- /**
1113
- * @internal
1114
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1115
- */
1116
- export namespace ListPromptVersionsEncodingFormat$ {
1117
- /** @deprecated use `ListPromptVersionsEncodingFormat$inboundSchema` instead. */
1118
- export const inboundSchema = ListPromptVersionsEncodingFormat$inboundSchema;
1119
- /** @deprecated use `ListPromptVersionsEncodingFormat$outboundSchema` instead. */
1120
- export const outboundSchema = ListPromptVersionsEncodingFormat$outboundSchema;
1121
- }
1122
-
1123
- /** @internal */
1124
- export const ListPromptVersionsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1125
- typeof ListPromptVersionsReasoningEffort
1126
- > = z.nativeEnum(ListPromptVersionsReasoningEffort);
1127
-
1128
- /** @internal */
1129
- export const ListPromptVersionsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1130
- typeof ListPromptVersionsReasoningEffort
1131
- > = ListPromptVersionsReasoningEffort$inboundSchema;
1132
-
1133
- /**
1134
- * @internal
1135
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1136
- */
1137
- export namespace ListPromptVersionsReasoningEffort$ {
1138
- /** @deprecated use `ListPromptVersionsReasoningEffort$inboundSchema` instead. */
1139
- export const inboundSchema = ListPromptVersionsReasoningEffort$inboundSchema;
1140
- /** @deprecated use `ListPromptVersionsReasoningEffort$outboundSchema` instead. */
1141
- export const outboundSchema =
1142
- ListPromptVersionsReasoningEffort$outboundSchema;
1143
- }
1144
-
1145
- /** @internal */
1146
- export const ListPromptVersionsVerbosity$inboundSchema: z.ZodNativeEnum<
1147
- typeof ListPromptVersionsVerbosity
1148
- > = z.nativeEnum(ListPromptVersionsVerbosity);
1149
-
1150
- /** @internal */
1151
- export const ListPromptVersionsVerbosity$outboundSchema: z.ZodNativeEnum<
1152
- typeof ListPromptVersionsVerbosity
1153
- > = ListPromptVersionsVerbosity$inboundSchema;
1154
-
1155
- /**
1156
- * @internal
1157
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1158
- */
1159
- export namespace ListPromptVersionsVerbosity$ {
1160
- /** @deprecated use `ListPromptVersionsVerbosity$inboundSchema` instead. */
1161
- export const inboundSchema = ListPromptVersionsVerbosity$inboundSchema;
1162
- /** @deprecated use `ListPromptVersionsVerbosity$outboundSchema` instead. */
1163
- export const outboundSchema = ListPromptVersionsVerbosity$outboundSchema;
1164
- }
1165
-
1166
- /** @internal */
1167
- export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
1168
- ListPromptVersionsModelParameters,
1169
- z.ZodTypeDef,
1170
- unknown
1171
- > = z.object({
1172
- temperature: z.number().optional(),
1173
- maxTokens: z.number().optional(),
1174
- topK: z.number().optional(),
1175
- topP: z.number().optional(),
1176
- frequencyPenalty: z.number().optional(),
1177
- presencePenalty: z.number().optional(),
1178
- numImages: z.number().optional(),
1179
- seed: z.number().optional(),
1180
- format: ListPromptVersionsFormat$inboundSchema.optional(),
1181
- dimensions: z.string().optional(),
1182
- quality: z.string().optional(),
1183
- style: z.string().optional(),
1184
- responseFormat: z.nullable(
1185
- z.union([
1186
- z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1187
- z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1188
- z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
1189
- ]),
1190
- ).optional(),
1191
- photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
1192
- encoding_format: ListPromptVersionsEncodingFormat$inboundSchema.optional(),
1193
- reasoningEffort: ListPromptVersionsReasoningEffort$inboundSchema.optional(),
1194
- budgetTokens: z.number().optional(),
1195
- verbosity: ListPromptVersionsVerbosity$inboundSchema.optional(),
1196
- }).transform((v) => {
1197
- return remap$(v, {
1198
- "encoding_format": "encodingFormat",
1199
- });
1200
- });
1201
-
1202
- /** @internal */
1203
- export type ListPromptVersionsModelParameters$Outbound = {
1204
- temperature?: number | undefined;
1205
- maxTokens?: number | undefined;
1206
- topK?: number | undefined;
1207
- topP?: number | undefined;
1208
- frequencyPenalty?: number | undefined;
1209
- presencePenalty?: number | undefined;
1210
- numImages?: number | undefined;
1211
- seed?: number | undefined;
1212
- format?: string | undefined;
1213
- dimensions?: string | undefined;
1214
- quality?: string | undefined;
1215
- style?: string | undefined;
1216
- responseFormat?:
1217
- | ListPromptVersionsResponseFormat1$Outbound
1218
- | ListPromptVersionsResponseFormat2$Outbound
1219
- | ListPromptVersionsResponseFormat3$Outbound
1220
- | null
1221
- | undefined;
1222
- photoRealVersion?: string | undefined;
1223
- encoding_format?: string | undefined;
1224
- reasoningEffort?: string | undefined;
1225
- budgetTokens?: number | undefined;
1226
- verbosity?: string | undefined;
1227
- };
1228
-
1229
- /** @internal */
1230
- export const ListPromptVersionsModelParameters$outboundSchema: z.ZodType<
1231
- ListPromptVersionsModelParameters$Outbound,
1232
- z.ZodTypeDef,
1233
- ListPromptVersionsModelParameters
1234
- > = z.object({
1235
- temperature: z.number().optional(),
1236
- maxTokens: z.number().optional(),
1237
- topK: z.number().optional(),
1238
- topP: z.number().optional(),
1239
- frequencyPenalty: z.number().optional(),
1240
- presencePenalty: z.number().optional(),
1241
- numImages: z.number().optional(),
1242
- seed: z.number().optional(),
1243
- format: ListPromptVersionsFormat$outboundSchema.optional(),
1244
- dimensions: z.string().optional(),
1245
- quality: z.string().optional(),
1246
- style: z.string().optional(),
1247
- responseFormat: z.nullable(
1248
- z.union([
1249
- z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
1250
- z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
1251
- z.lazy(() => ListPromptVersionsResponseFormat3$outboundSchema),
1252
- ]),
1253
- ).optional(),
1254
- photoRealVersion: ListPromptVersionsPhotoRealVersion$outboundSchema
1255
- .optional(),
1256
- encodingFormat: ListPromptVersionsEncodingFormat$outboundSchema.optional(),
1257
- reasoningEffort: ListPromptVersionsReasoningEffort$outboundSchema.optional(),
1258
- budgetTokens: z.number().optional(),
1259
- verbosity: ListPromptVersionsVerbosity$outboundSchema.optional(),
1260
- }).transform((v) => {
1261
- return remap$(v, {
1262
- encodingFormat: "encoding_format",
1263
- });
1264
- });
1265
-
1266
- /**
1267
- * @internal
1268
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1269
- */
1270
- export namespace ListPromptVersionsModelParameters$ {
1271
- /** @deprecated use `ListPromptVersionsModelParameters$inboundSchema` instead. */
1272
- export const inboundSchema = ListPromptVersionsModelParameters$inboundSchema;
1273
- /** @deprecated use `ListPromptVersionsModelParameters$outboundSchema` instead. */
1274
- export const outboundSchema =
1275
- ListPromptVersionsModelParameters$outboundSchema;
1276
- /** @deprecated use `ListPromptVersionsModelParameters$Outbound` instead. */
1277
- export type Outbound = ListPromptVersionsModelParameters$Outbound;
1278
- }
1279
-
1280
- export function listPromptVersionsModelParametersToJSON(
1281
- listPromptVersionsModelParameters: ListPromptVersionsModelParameters,
1282
- ): string {
1283
- return JSON.stringify(
1284
- ListPromptVersionsModelParameters$outboundSchema.parse(
1285
- listPromptVersionsModelParameters,
1286
- ),
1287
- );
1288
- }
1289
-
1290
- export function listPromptVersionsModelParametersFromJSON(
1291
- jsonString: string,
1292
- ): SafeParseResult<ListPromptVersionsModelParameters, SDKValidationError> {
1293
- return safeParse(
1294
- jsonString,
1295
- (x) => ListPromptVersionsModelParameters$inboundSchema.parse(JSON.parse(x)),
1296
- `Failed to parse 'ListPromptVersionsModelParameters' from JSON`,
1297
- );
1298
- }
1299
-
1300
- /** @internal */
1301
- export const ListPromptVersionsProvider$inboundSchema: z.ZodNativeEnum<
1302
- typeof ListPromptVersionsProvider
1303
- > = z.nativeEnum(ListPromptVersionsProvider);
1304
-
1305
- /** @internal */
1306
- export const ListPromptVersionsProvider$outboundSchema: z.ZodNativeEnum<
1307
- typeof ListPromptVersionsProvider
1308
- > = ListPromptVersionsProvider$inboundSchema;
1309
-
1310
- /**
1311
- * @internal
1312
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1313
- */
1314
- export namespace ListPromptVersionsProvider$ {
1315
- /** @deprecated use `ListPromptVersionsProvider$inboundSchema` instead. */
1316
- export const inboundSchema = ListPromptVersionsProvider$inboundSchema;
1317
- /** @deprecated use `ListPromptVersionsProvider$outboundSchema` instead. */
1318
- export const outboundSchema = ListPromptVersionsProvider$outboundSchema;
1319
- }
1320
-
1321
- /** @internal */
1322
- export const ListPromptVersionsRole$inboundSchema: z.ZodNativeEnum<
1323
- typeof ListPromptVersionsRole
1324
- > = z.nativeEnum(ListPromptVersionsRole);
1325
-
1326
- /** @internal */
1327
- export const ListPromptVersionsRole$outboundSchema: z.ZodNativeEnum<
1328
- typeof ListPromptVersionsRole
1329
- > = ListPromptVersionsRole$inboundSchema;
1330
-
1331
- /**
1332
- * @internal
1333
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1334
- */
1335
- export namespace ListPromptVersionsRole$ {
1336
- /** @deprecated use `ListPromptVersionsRole$inboundSchema` instead. */
1337
- export const inboundSchema = ListPromptVersionsRole$inboundSchema;
1338
- /** @deprecated use `ListPromptVersionsRole$outboundSchema` instead. */
1339
- export const outboundSchema = ListPromptVersionsRole$outboundSchema;
1340
- }
1341
-
1342
- /** @internal */
1343
- export const ListPromptVersions2PromptsResponseType$inboundSchema:
1344
- z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> = z.nativeEnum(
1345
- ListPromptVersions2PromptsResponseType,
1346
- );
1347
-
1348
- /** @internal */
1349
- export const ListPromptVersions2PromptsResponseType$outboundSchema:
1350
- z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> =
1351
- ListPromptVersions2PromptsResponseType$inboundSchema;
1352
-
1353
- /**
1354
- * @internal
1355
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1356
- */
1357
- export namespace ListPromptVersions2PromptsResponseType$ {
1358
- /** @deprecated use `ListPromptVersions2PromptsResponseType$inboundSchema` instead. */
1359
- export const inboundSchema =
1360
- ListPromptVersions2PromptsResponseType$inboundSchema;
1361
- /** @deprecated use `ListPromptVersions2PromptsResponseType$outboundSchema` instead. */
1362
- export const outboundSchema =
1363
- ListPromptVersions2PromptsResponseType$outboundSchema;
1364
- }
1365
-
1366
- /** @internal */
1367
- export const ListPromptVersions2File$inboundSchema: z.ZodType<
1368
- ListPromptVersions2File,
1369
- z.ZodTypeDef,
1370
- unknown
1371
- > = z.object({
1372
- file_data: z.string(),
1373
- filename: z.string().optional(),
1374
- }).transform((v) => {
1375
- return remap$(v, {
1376
- "file_data": "fileData",
1377
- });
1378
- });
1379
-
1380
- /** @internal */
1381
- export type ListPromptVersions2File$Outbound = {
1382
- file_data: string;
1383
- filename?: string | undefined;
1384
- };
1385
-
1386
- /** @internal */
1387
- export const ListPromptVersions2File$outboundSchema: z.ZodType<
1388
- ListPromptVersions2File$Outbound,
1389
- z.ZodTypeDef,
1390
- ListPromptVersions2File
1391
- > = z.object({
1392
- fileData: z.string(),
1393
- filename: z.string().optional(),
1394
- }).transform((v) => {
1395
- return remap$(v, {
1396
- fileData: "file_data",
1397
- });
1398
- });
1399
-
1400
- /**
1401
- * @internal
1402
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1403
- */
1404
- export namespace ListPromptVersions2File$ {
1405
- /** @deprecated use `ListPromptVersions2File$inboundSchema` instead. */
1406
- export const inboundSchema = ListPromptVersions2File$inboundSchema;
1407
- /** @deprecated use `ListPromptVersions2File$outboundSchema` instead. */
1408
- export const outboundSchema = ListPromptVersions2File$outboundSchema;
1409
- /** @deprecated use `ListPromptVersions2File$Outbound` instead. */
1410
- export type Outbound = ListPromptVersions2File$Outbound;
1411
- }
1412
-
1413
- export function listPromptVersions2FileToJSON(
1414
- listPromptVersions2File: ListPromptVersions2File,
1415
- ): string {
1416
- return JSON.stringify(
1417
- ListPromptVersions2File$outboundSchema.parse(listPromptVersions2File),
1418
- );
1419
- }
1420
-
1421
- export function listPromptVersions2FileFromJSON(
1422
- jsonString: string,
1423
- ): SafeParseResult<ListPromptVersions2File, SDKValidationError> {
1424
- return safeParse(
1425
- jsonString,
1426
- (x) => ListPromptVersions2File$inboundSchema.parse(JSON.parse(x)),
1427
- `Failed to parse 'ListPromptVersions2File' from JSON`,
1428
- );
1429
- }
1430
-
1431
- /** @internal */
1432
- export const ListPromptVersions23$inboundSchema: z.ZodType<
1433
- ListPromptVersions23,
1434
- z.ZodTypeDef,
1435
- unknown
1436
- > = z.object({
1437
- type: ListPromptVersions2PromptsResponseType$inboundSchema,
1438
- file: z.lazy(() => ListPromptVersions2File$inboundSchema),
1439
- });
1440
-
1441
- /** @internal */
1442
- export type ListPromptVersions23$Outbound = {
1443
- type: string;
1444
- file: ListPromptVersions2File$Outbound;
1445
- };
1446
-
1447
- /** @internal */
1448
- export const ListPromptVersions23$outboundSchema: z.ZodType<
1449
- ListPromptVersions23$Outbound,
1450
- z.ZodTypeDef,
1451
- ListPromptVersions23
1452
- > = z.object({
1453
- type: ListPromptVersions2PromptsResponseType$outboundSchema,
1454
- file: z.lazy(() => ListPromptVersions2File$outboundSchema),
1455
- });
1456
-
1457
- /**
1458
- * @internal
1459
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1460
- */
1461
- export namespace ListPromptVersions23$ {
1462
- /** @deprecated use `ListPromptVersions23$inboundSchema` instead. */
1463
- export const inboundSchema = ListPromptVersions23$inboundSchema;
1464
- /** @deprecated use `ListPromptVersions23$outboundSchema` instead. */
1465
- export const outboundSchema = ListPromptVersions23$outboundSchema;
1466
- /** @deprecated use `ListPromptVersions23$Outbound` instead. */
1467
- export type Outbound = ListPromptVersions23$Outbound;
1468
- }
1469
-
1470
- export function listPromptVersions23ToJSON(
1471
- listPromptVersions23: ListPromptVersions23,
1472
- ): string {
1473
- return JSON.stringify(
1474
- ListPromptVersions23$outboundSchema.parse(listPromptVersions23),
1475
- );
1476
- }
1477
-
1478
- export function listPromptVersions23FromJSON(
1479
- jsonString: string,
1480
- ): SafeParseResult<ListPromptVersions23, SDKValidationError> {
1481
- return safeParse(
1482
- jsonString,
1483
- (x) => ListPromptVersions23$inboundSchema.parse(JSON.parse(x)),
1484
- `Failed to parse 'ListPromptVersions23' from JSON`,
1485
- );
1486
- }
1487
-
1488
- /** @internal */
1489
- export const ListPromptVersions2PromptsType$inboundSchema: z.ZodNativeEnum<
1490
- typeof ListPromptVersions2PromptsType
1491
- > = z.nativeEnum(ListPromptVersions2PromptsType);
1492
-
1493
- /** @internal */
1494
- export const ListPromptVersions2PromptsType$outboundSchema: z.ZodNativeEnum<
1495
- typeof ListPromptVersions2PromptsType
1496
- > = ListPromptVersions2PromptsType$inboundSchema;
1497
-
1498
- /**
1499
- * @internal
1500
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1501
- */
1502
- export namespace ListPromptVersions2PromptsType$ {
1503
- /** @deprecated use `ListPromptVersions2PromptsType$inboundSchema` instead. */
1504
- export const inboundSchema = ListPromptVersions2PromptsType$inboundSchema;
1505
- /** @deprecated use `ListPromptVersions2PromptsType$outboundSchema` instead. */
1506
- export const outboundSchema = ListPromptVersions2PromptsType$outboundSchema;
1507
- }
1508
-
1509
- /** @internal */
1510
- export const ListPromptVersions2ImageUrl$inboundSchema: z.ZodType<
1511
- ListPromptVersions2ImageUrl,
1512
- z.ZodTypeDef,
1513
- unknown
1514
- > = z.object({
1515
- id: z.string().optional(),
1516
- url: z.string(),
1517
- detail: z.string().optional(),
1518
- });
1519
-
1520
- /** @internal */
1521
- export type ListPromptVersions2ImageUrl$Outbound = {
1522
- id?: string | undefined;
1523
- url: string;
1524
- detail?: string | undefined;
1525
- };
1526
-
1527
- /** @internal */
1528
- export const ListPromptVersions2ImageUrl$outboundSchema: z.ZodType<
1529
- ListPromptVersions2ImageUrl$Outbound,
1530
- z.ZodTypeDef,
1531
- ListPromptVersions2ImageUrl
1532
- > = z.object({
1533
- id: z.string().optional(),
1534
- url: z.string(),
1535
- detail: z.string().optional(),
1536
- });
1537
-
1538
- /**
1539
- * @internal
1540
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1541
- */
1542
- export namespace ListPromptVersions2ImageUrl$ {
1543
- /** @deprecated use `ListPromptVersions2ImageUrl$inboundSchema` instead. */
1544
- export const inboundSchema = ListPromptVersions2ImageUrl$inboundSchema;
1545
- /** @deprecated use `ListPromptVersions2ImageUrl$outboundSchema` instead. */
1546
- export const outboundSchema = ListPromptVersions2ImageUrl$outboundSchema;
1547
- /** @deprecated use `ListPromptVersions2ImageUrl$Outbound` instead. */
1548
- export type Outbound = ListPromptVersions2ImageUrl$Outbound;
1549
- }
1550
-
1551
- export function listPromptVersions2ImageUrlToJSON(
1552
- listPromptVersions2ImageUrl: ListPromptVersions2ImageUrl,
1553
- ): string {
1554
- return JSON.stringify(
1555
- ListPromptVersions2ImageUrl$outboundSchema.parse(
1556
- listPromptVersions2ImageUrl,
1557
- ),
1558
- );
1559
- }
1560
-
1561
- export function listPromptVersions2ImageUrlFromJSON(
1562
- jsonString: string,
1563
- ): SafeParseResult<ListPromptVersions2ImageUrl, SDKValidationError> {
1564
- return safeParse(
1565
- jsonString,
1566
- (x) => ListPromptVersions2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1567
- `Failed to parse 'ListPromptVersions2ImageUrl' from JSON`,
1568
- );
1569
- }
1570
-
1571
- /** @internal */
1572
- export const ListPromptVersions22$inboundSchema: z.ZodType<
1573
- ListPromptVersions22,
1574
- z.ZodTypeDef,
1575
- unknown
1576
- > = z.object({
1577
- type: ListPromptVersions2PromptsType$inboundSchema,
1578
- image_url: z.lazy(() => ListPromptVersions2ImageUrl$inboundSchema),
1579
- }).transform((v) => {
1580
- return remap$(v, {
1581
- "image_url": "imageUrl",
1582
- });
1583
- });
1584
-
1585
- /** @internal */
1586
- export type ListPromptVersions22$Outbound = {
1587
- type: string;
1588
- image_url: ListPromptVersions2ImageUrl$Outbound;
1589
- };
1590
-
1591
- /** @internal */
1592
- export const ListPromptVersions22$outboundSchema: z.ZodType<
1593
- ListPromptVersions22$Outbound,
1594
- z.ZodTypeDef,
1595
- ListPromptVersions22
1596
- > = z.object({
1597
- type: ListPromptVersions2PromptsType$outboundSchema,
1598
- imageUrl: z.lazy(() => ListPromptVersions2ImageUrl$outboundSchema),
1599
- }).transform((v) => {
1600
- return remap$(v, {
1601
- imageUrl: "image_url",
1602
- });
1603
- });
1604
-
1605
- /**
1606
- * @internal
1607
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1608
- */
1609
- export namespace ListPromptVersions22$ {
1610
- /** @deprecated use `ListPromptVersions22$inboundSchema` instead. */
1611
- export const inboundSchema = ListPromptVersions22$inboundSchema;
1612
- /** @deprecated use `ListPromptVersions22$outboundSchema` instead. */
1613
- export const outboundSchema = ListPromptVersions22$outboundSchema;
1614
- /** @deprecated use `ListPromptVersions22$Outbound` instead. */
1615
- export type Outbound = ListPromptVersions22$Outbound;
1616
- }
1617
-
1618
- export function listPromptVersions22ToJSON(
1619
- listPromptVersions22: ListPromptVersions22,
1620
- ): string {
1621
- return JSON.stringify(
1622
- ListPromptVersions22$outboundSchema.parse(listPromptVersions22),
1623
- );
1624
- }
1625
-
1626
- export function listPromptVersions22FromJSON(
1627
- jsonString: string,
1628
- ): SafeParseResult<ListPromptVersions22, SDKValidationError> {
1629
- return safeParse(
1630
- jsonString,
1631
- (x) => ListPromptVersions22$inboundSchema.parse(JSON.parse(x)),
1632
- `Failed to parse 'ListPromptVersions22' from JSON`,
1633
- );
1634
- }
1635
-
1636
- /** @internal */
1637
- export const ListPromptVersions2Type$inboundSchema: z.ZodNativeEnum<
1638
- typeof ListPromptVersions2Type
1639
- > = z.nativeEnum(ListPromptVersions2Type);
1640
-
1641
- /** @internal */
1642
- export const ListPromptVersions2Type$outboundSchema: z.ZodNativeEnum<
1643
- typeof ListPromptVersions2Type
1644
- > = ListPromptVersions2Type$inboundSchema;
1645
-
1646
- /**
1647
- * @internal
1648
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1649
- */
1650
- export namespace ListPromptVersions2Type$ {
1651
- /** @deprecated use `ListPromptVersions2Type$inboundSchema` instead. */
1652
- export const inboundSchema = ListPromptVersions2Type$inboundSchema;
1653
- /** @deprecated use `ListPromptVersions2Type$outboundSchema` instead. */
1654
- export const outboundSchema = ListPromptVersions2Type$outboundSchema;
1655
- }
1656
-
1657
- /** @internal */
1658
- export const ListPromptVersions21$inboundSchema: z.ZodType<
1659
- ListPromptVersions21,
1660
- z.ZodTypeDef,
1661
- unknown
1662
- > = z.object({
1663
- type: ListPromptVersions2Type$inboundSchema,
1664
- text: z.string(),
1665
- });
1666
-
1667
- /** @internal */
1668
- export type ListPromptVersions21$Outbound = {
1669
- type: string;
1670
- text: string;
1671
- };
1672
-
1673
- /** @internal */
1674
- export const ListPromptVersions21$outboundSchema: z.ZodType<
1675
- ListPromptVersions21$Outbound,
1676
- z.ZodTypeDef,
1677
- ListPromptVersions21
1678
- > = z.object({
1679
- type: ListPromptVersions2Type$outboundSchema,
1680
- text: z.string(),
1681
- });
1682
-
1683
- /**
1684
- * @internal
1685
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1686
- */
1687
- export namespace ListPromptVersions21$ {
1688
- /** @deprecated use `ListPromptVersions21$inboundSchema` instead. */
1689
- export const inboundSchema = ListPromptVersions21$inboundSchema;
1690
- /** @deprecated use `ListPromptVersions21$outboundSchema` instead. */
1691
- export const outboundSchema = ListPromptVersions21$outboundSchema;
1692
- /** @deprecated use `ListPromptVersions21$Outbound` instead. */
1693
- export type Outbound = ListPromptVersions21$Outbound;
1694
- }
1695
-
1696
- export function listPromptVersions21ToJSON(
1697
- listPromptVersions21: ListPromptVersions21,
1698
- ): string {
1699
- return JSON.stringify(
1700
- ListPromptVersions21$outboundSchema.parse(listPromptVersions21),
1701
- );
1702
- }
1703
-
1704
- export function listPromptVersions21FromJSON(
1705
- jsonString: string,
1706
- ): SafeParseResult<ListPromptVersions21, SDKValidationError> {
1707
- return safeParse(
1708
- jsonString,
1709
- (x) => ListPromptVersions21$inboundSchema.parse(JSON.parse(x)),
1710
- `Failed to parse 'ListPromptVersions21' from JSON`,
1711
- );
1712
- }
1713
-
1714
- /** @internal */
1715
- export const ListPromptVersionsContent2$inboundSchema: z.ZodType<
1716
- ListPromptVersionsContent2,
1717
- z.ZodTypeDef,
1718
- unknown
1719
- > = z.union([
1720
- z.lazy(() => ListPromptVersions21$inboundSchema),
1721
- z.lazy(() => ListPromptVersions22$inboundSchema),
1722
- z.lazy(() => ListPromptVersions23$inboundSchema),
1723
- ]);
1724
-
1725
- /** @internal */
1726
- export type ListPromptVersionsContent2$Outbound =
1727
- | ListPromptVersions21$Outbound
1728
- | ListPromptVersions22$Outbound
1729
- | ListPromptVersions23$Outbound;
1730
-
1731
- /** @internal */
1732
- export const ListPromptVersionsContent2$outboundSchema: z.ZodType<
1733
- ListPromptVersionsContent2$Outbound,
1734
- z.ZodTypeDef,
1735
- ListPromptVersionsContent2
1736
- > = z.union([
1737
- z.lazy(() => ListPromptVersions21$outboundSchema),
1738
- z.lazy(() => ListPromptVersions22$outboundSchema),
1739
- z.lazy(() => ListPromptVersions23$outboundSchema),
1740
- ]);
1741
-
1742
- /**
1743
- * @internal
1744
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1745
- */
1746
- export namespace ListPromptVersionsContent2$ {
1747
- /** @deprecated use `ListPromptVersionsContent2$inboundSchema` instead. */
1748
- export const inboundSchema = ListPromptVersionsContent2$inboundSchema;
1749
- /** @deprecated use `ListPromptVersionsContent2$outboundSchema` instead. */
1750
- export const outboundSchema = ListPromptVersionsContent2$outboundSchema;
1751
- /** @deprecated use `ListPromptVersionsContent2$Outbound` instead. */
1752
- export type Outbound = ListPromptVersionsContent2$Outbound;
1753
- }
1754
-
1755
- export function listPromptVersionsContent2ToJSON(
1756
- listPromptVersionsContent2: ListPromptVersionsContent2,
1757
- ): string {
1758
- return JSON.stringify(
1759
- ListPromptVersionsContent2$outboundSchema.parse(listPromptVersionsContent2),
1760
- );
1761
- }
1762
-
1763
- export function listPromptVersionsContent2FromJSON(
1764
- jsonString: string,
1765
- ): SafeParseResult<ListPromptVersionsContent2, SDKValidationError> {
1766
- return safeParse(
1767
- jsonString,
1768
- (x) => ListPromptVersionsContent2$inboundSchema.parse(JSON.parse(x)),
1769
- `Failed to parse 'ListPromptVersionsContent2' from JSON`,
1770
- );
1771
- }
1772
-
1773
- /** @internal */
1774
- export const ListPromptVersionsContent$inboundSchema: z.ZodType<
1775
- ListPromptVersionsContent,
1776
- z.ZodTypeDef,
1777
- unknown
1778
- > = z.union([
1779
- z.string(),
1780
- z.array(z.union([
1781
- z.lazy(() => ListPromptVersions21$inboundSchema),
1782
- z.lazy(() => ListPromptVersions22$inboundSchema),
1783
- z.lazy(() => ListPromptVersions23$inboundSchema),
1784
- ])),
1785
- ]);
1786
-
1787
- /** @internal */
1788
- export type ListPromptVersionsContent$Outbound =
1789
- | string
1790
- | Array<
1791
- | ListPromptVersions21$Outbound
1792
- | ListPromptVersions22$Outbound
1793
- | ListPromptVersions23$Outbound
1794
- >;
1795
-
1796
- /** @internal */
1797
- export const ListPromptVersionsContent$outboundSchema: z.ZodType<
1798
- ListPromptVersionsContent$Outbound,
1799
- z.ZodTypeDef,
1800
- ListPromptVersionsContent
1801
- > = z.union([
1802
- z.string(),
1803
- z.array(z.union([
1804
- z.lazy(() => ListPromptVersions21$outboundSchema),
1805
- z.lazy(() => ListPromptVersions22$outboundSchema),
1806
- z.lazy(() => ListPromptVersions23$outboundSchema),
1807
- ])),
1808
- ]);
1809
-
1810
- /**
1811
- * @internal
1812
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1813
- */
1814
- export namespace ListPromptVersionsContent$ {
1815
- /** @deprecated use `ListPromptVersionsContent$inboundSchema` instead. */
1816
- export const inboundSchema = ListPromptVersionsContent$inboundSchema;
1817
- /** @deprecated use `ListPromptVersionsContent$outboundSchema` instead. */
1818
- export const outboundSchema = ListPromptVersionsContent$outboundSchema;
1819
- /** @deprecated use `ListPromptVersionsContent$Outbound` instead. */
1820
- export type Outbound = ListPromptVersionsContent$Outbound;
1821
- }
1822
-
1823
- export function listPromptVersionsContentToJSON(
1824
- listPromptVersionsContent: ListPromptVersionsContent,
1825
- ): string {
1826
- return JSON.stringify(
1827
- ListPromptVersionsContent$outboundSchema.parse(listPromptVersionsContent),
1828
- );
1829
- }
1830
-
1831
- export function listPromptVersionsContentFromJSON(
1832
- jsonString: string,
1833
- ): SafeParseResult<ListPromptVersionsContent, SDKValidationError> {
1834
- return safeParse(
1835
- jsonString,
1836
- (x) => ListPromptVersionsContent$inboundSchema.parse(JSON.parse(x)),
1837
- `Failed to parse 'ListPromptVersionsContent' from JSON`,
1838
- );
1839
- }
1840
-
1841
- /** @internal */
1842
- export const ListPromptVersionsType$inboundSchema: z.ZodNativeEnum<
1843
- typeof ListPromptVersionsType
1844
- > = z.nativeEnum(ListPromptVersionsType);
1845
-
1846
- /** @internal */
1847
- export const ListPromptVersionsType$outboundSchema: z.ZodNativeEnum<
1848
- typeof ListPromptVersionsType
1849
- > = ListPromptVersionsType$inboundSchema;
1850
-
1851
- /**
1852
- * @internal
1853
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1854
- */
1855
- export namespace ListPromptVersionsType$ {
1856
- /** @deprecated use `ListPromptVersionsType$inboundSchema` instead. */
1857
- export const inboundSchema = ListPromptVersionsType$inboundSchema;
1858
- /** @deprecated use `ListPromptVersionsType$outboundSchema` instead. */
1859
- export const outboundSchema = ListPromptVersionsType$outboundSchema;
1860
- }
1861
-
1862
- /** @internal */
1863
- export const ListPromptVersionsFunction$inboundSchema: z.ZodType<
1864
- ListPromptVersionsFunction,
1865
- z.ZodTypeDef,
1866
- unknown
1867
- > = z.object({
1868
- name: z.string(),
1869
- arguments: z.string(),
1870
- });
1871
-
1872
- /** @internal */
1873
- export type ListPromptVersionsFunction$Outbound = {
1874
- name: string;
1875
- arguments: string;
1876
- };
1877
-
1878
- /** @internal */
1879
- export const ListPromptVersionsFunction$outboundSchema: z.ZodType<
1880
- ListPromptVersionsFunction$Outbound,
1881
- z.ZodTypeDef,
1882
- ListPromptVersionsFunction
1883
- > = z.object({
1884
- name: z.string(),
1885
- arguments: z.string(),
1886
- });
1887
-
1888
- /**
1889
- * @internal
1890
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1891
- */
1892
- export namespace ListPromptVersionsFunction$ {
1893
- /** @deprecated use `ListPromptVersionsFunction$inboundSchema` instead. */
1894
- export const inboundSchema = ListPromptVersionsFunction$inboundSchema;
1895
- /** @deprecated use `ListPromptVersionsFunction$outboundSchema` instead. */
1896
- export const outboundSchema = ListPromptVersionsFunction$outboundSchema;
1897
- /** @deprecated use `ListPromptVersionsFunction$Outbound` instead. */
1898
- export type Outbound = ListPromptVersionsFunction$Outbound;
1899
- }
1900
-
1901
- export function listPromptVersionsFunctionToJSON(
1902
- listPromptVersionsFunction: ListPromptVersionsFunction,
1903
- ): string {
1904
- return JSON.stringify(
1905
- ListPromptVersionsFunction$outboundSchema.parse(listPromptVersionsFunction),
1906
- );
1907
- }
1908
-
1909
- export function listPromptVersionsFunctionFromJSON(
1910
- jsonString: string,
1911
- ): SafeParseResult<ListPromptVersionsFunction, SDKValidationError> {
1912
- return safeParse(
1913
- jsonString,
1914
- (x) => ListPromptVersionsFunction$inboundSchema.parse(JSON.parse(x)),
1915
- `Failed to parse 'ListPromptVersionsFunction' from JSON`,
1916
- );
1917
- }
1918
-
1919
- /** @internal */
1920
- export const ListPromptVersionsToolCalls$inboundSchema: z.ZodType<
1921
- ListPromptVersionsToolCalls,
1922
- z.ZodTypeDef,
1923
- unknown
1924
- > = z.object({
1925
- id: z.string().optional(),
1926
- index: z.number().optional(),
1927
- type: ListPromptVersionsType$inboundSchema,
1928
- function: z.lazy(() => ListPromptVersionsFunction$inboundSchema),
1929
- });
1930
-
1931
- /** @internal */
1932
- export type ListPromptVersionsToolCalls$Outbound = {
1933
- id?: string | undefined;
1934
- index?: number | undefined;
1935
- type: string;
1936
- function: ListPromptVersionsFunction$Outbound;
1937
- };
1938
-
1939
- /** @internal */
1940
- export const ListPromptVersionsToolCalls$outboundSchema: z.ZodType<
1941
- ListPromptVersionsToolCalls$Outbound,
1942
- z.ZodTypeDef,
1943
- ListPromptVersionsToolCalls
1944
- > = z.object({
1945
- id: z.string().optional(),
1946
- index: z.number().optional(),
1947
- type: ListPromptVersionsType$outboundSchema,
1948
- function: z.lazy(() => ListPromptVersionsFunction$outboundSchema),
1949
- });
1950
-
1951
- /**
1952
- * @internal
1953
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1954
- */
1955
- export namespace ListPromptVersionsToolCalls$ {
1956
- /** @deprecated use `ListPromptVersionsToolCalls$inboundSchema` instead. */
1957
- export const inboundSchema = ListPromptVersionsToolCalls$inboundSchema;
1958
- /** @deprecated use `ListPromptVersionsToolCalls$outboundSchema` instead. */
1959
- export const outboundSchema = ListPromptVersionsToolCalls$outboundSchema;
1960
- /** @deprecated use `ListPromptVersionsToolCalls$Outbound` instead. */
1961
- export type Outbound = ListPromptVersionsToolCalls$Outbound;
1962
- }
1963
-
1964
- export function listPromptVersionsToolCallsToJSON(
1965
- listPromptVersionsToolCalls: ListPromptVersionsToolCalls,
1966
- ): string {
1967
- return JSON.stringify(
1968
- ListPromptVersionsToolCalls$outboundSchema.parse(
1969
- listPromptVersionsToolCalls,
1970
- ),
1971
- );
1972
- }
1973
-
1974
- export function listPromptVersionsToolCallsFromJSON(
1975
- jsonString: string,
1976
- ): SafeParseResult<ListPromptVersionsToolCalls, SDKValidationError> {
1977
- return safeParse(
1978
- jsonString,
1979
- (x) => ListPromptVersionsToolCalls$inboundSchema.parse(JSON.parse(x)),
1980
- `Failed to parse 'ListPromptVersionsToolCalls' from JSON`,
1981
- );
1982
- }
1983
-
1984
- /** @internal */
1985
- export const ListPromptVersionsMessages$inboundSchema: z.ZodType<
1986
- ListPromptVersionsMessages,
1987
- z.ZodTypeDef,
1988
- unknown
1989
- > = z.object({
1990
- role: ListPromptVersionsRole$inboundSchema,
1991
- content: z.union([
1992
- z.string(),
1993
- z.array(z.union([
1994
- z.lazy(() => ListPromptVersions21$inboundSchema),
1995
- z.lazy(() => ListPromptVersions22$inboundSchema),
1996
- z.lazy(() => ListPromptVersions23$inboundSchema),
1997
- ])),
1998
- ]),
1999
- tool_calls: z.array(z.lazy(() => ListPromptVersionsToolCalls$inboundSchema))
2000
- .optional(),
2001
- tool_call_id: z.string().optional(),
2002
- }).transform((v) => {
2003
- return remap$(v, {
2004
- "tool_calls": "toolCalls",
2005
- "tool_call_id": "toolCallId",
2006
- });
2007
- });
2008
-
2009
- /** @internal */
2010
- export type ListPromptVersionsMessages$Outbound = {
2011
- role: string;
2012
- content:
2013
- | string
2014
- | Array<
2015
- | ListPromptVersions21$Outbound
2016
- | ListPromptVersions22$Outbound
2017
- | ListPromptVersions23$Outbound
2018
- >;
2019
- tool_calls?: Array<ListPromptVersionsToolCalls$Outbound> | undefined;
2020
- tool_call_id?: string | undefined;
2021
- };
2022
-
2023
- /** @internal */
2024
- export const ListPromptVersionsMessages$outboundSchema: z.ZodType<
2025
- ListPromptVersionsMessages$Outbound,
2026
- z.ZodTypeDef,
2027
- ListPromptVersionsMessages
2028
- > = z.object({
2029
- role: ListPromptVersionsRole$outboundSchema,
2030
- content: z.union([
2031
- z.string(),
2032
- z.array(z.union([
2033
- z.lazy(() => ListPromptVersions21$outboundSchema),
2034
- z.lazy(() => ListPromptVersions22$outboundSchema),
2035
- z.lazy(() => ListPromptVersions23$outboundSchema),
2036
- ])),
2037
- ]),
2038
- toolCalls: z.array(z.lazy(() => ListPromptVersionsToolCalls$outboundSchema))
2039
- .optional(),
2040
- toolCallId: z.string().optional(),
2041
- }).transform((v) => {
2042
- return remap$(v, {
2043
- toolCalls: "tool_calls",
2044
- toolCallId: "tool_call_id",
2045
- });
2046
- });
2047
-
2048
- /**
2049
- * @internal
2050
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2051
- */
2052
- export namespace ListPromptVersionsMessages$ {
2053
- /** @deprecated use `ListPromptVersionsMessages$inboundSchema` instead. */
2054
- export const inboundSchema = ListPromptVersionsMessages$inboundSchema;
2055
- /** @deprecated use `ListPromptVersionsMessages$outboundSchema` instead. */
2056
- export const outboundSchema = ListPromptVersionsMessages$outboundSchema;
2057
- /** @deprecated use `ListPromptVersionsMessages$Outbound` instead. */
2058
- export type Outbound = ListPromptVersionsMessages$Outbound;
2059
- }
2060
-
2061
- export function listPromptVersionsMessagesToJSON(
2062
- listPromptVersionsMessages: ListPromptVersionsMessages,
2063
- ): string {
2064
- return JSON.stringify(
2065
- ListPromptVersionsMessages$outboundSchema.parse(listPromptVersionsMessages),
2066
- );
2067
- }
2068
-
2069
- export function listPromptVersionsMessagesFromJSON(
2070
- jsonString: string,
2071
- ): SafeParseResult<ListPromptVersionsMessages, SDKValidationError> {
2072
- return safeParse(
2073
- jsonString,
2074
- (x) => ListPromptVersionsMessages$inboundSchema.parse(JSON.parse(x)),
2075
- `Failed to parse 'ListPromptVersionsMessages' from JSON`,
2076
- );
2077
- }
2078
-
2079
- /** @internal */
2080
- export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
2081
- ListPromptVersionsPromptConfig,
2082
- z.ZodTypeDef,
2083
- unknown
2084
- > = z.object({
2085
- stream: z.boolean().optional(),
2086
- model: z.string().optional(),
2087
- model_db_id: z.nullable(z.string()).optional(),
2088
- model_type: z.nullable(ListPromptVersionsModelType$inboundSchema).optional(),
2089
- model_parameters: z.lazy(() =>
2090
- ListPromptVersionsModelParameters$inboundSchema
2091
- ).optional(),
2092
- provider: ListPromptVersionsProvider$inboundSchema.optional(),
2093
- integration_id: z.nullable(z.string()).optional(),
2094
- version: z.string().optional(),
2095
- messages: z.array(z.lazy(() => ListPromptVersionsMessages$inboundSchema)),
2096
- }).transform((v) => {
2097
- return remap$(v, {
2098
- "model_db_id": "modelDbId",
2099
- "model_type": "modelType",
2100
- "model_parameters": "modelParameters",
2101
- "integration_id": "integrationId",
2102
- });
2103
- });
2104
-
2105
- /** @internal */
2106
- export type ListPromptVersionsPromptConfig$Outbound = {
2107
- stream?: boolean | undefined;
2108
- model?: string | undefined;
2109
- model_db_id?: string | null | undefined;
2110
- model_type?: string | null | undefined;
2111
- model_parameters?: ListPromptVersionsModelParameters$Outbound | undefined;
2112
- provider?: string | undefined;
2113
- integration_id?: string | null | undefined;
2114
- version?: string | undefined;
2115
- messages: Array<ListPromptVersionsMessages$Outbound>;
2116
- };
2117
-
2118
- /** @internal */
2119
- export const ListPromptVersionsPromptConfig$outboundSchema: z.ZodType<
2120
- ListPromptVersionsPromptConfig$Outbound,
2121
- z.ZodTypeDef,
2122
- ListPromptVersionsPromptConfig
2123
- > = z.object({
2124
- stream: z.boolean().optional(),
2125
- model: z.string().optional(),
2126
- modelDbId: z.nullable(z.string()).optional(),
2127
- modelType: z.nullable(ListPromptVersionsModelType$outboundSchema).optional(),
2128
- modelParameters: z.lazy(() =>
2129
- ListPromptVersionsModelParameters$outboundSchema
2130
- ).optional(),
2131
- provider: ListPromptVersionsProvider$outboundSchema.optional(),
2132
- integrationId: z.nullable(z.string()).optional(),
2133
- version: z.string().optional(),
2134
- messages: z.array(z.lazy(() => ListPromptVersionsMessages$outboundSchema)),
2135
- }).transform((v) => {
2136
- return remap$(v, {
2137
- modelDbId: "model_db_id",
2138
- modelType: "model_type",
2139
- modelParameters: "model_parameters",
2140
- integrationId: "integration_id",
2141
- });
2142
- });
2143
-
2144
- /**
2145
- * @internal
2146
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2147
- */
2148
- export namespace ListPromptVersionsPromptConfig$ {
2149
- /** @deprecated use `ListPromptVersionsPromptConfig$inboundSchema` instead. */
2150
- export const inboundSchema = ListPromptVersionsPromptConfig$inboundSchema;
2151
- /** @deprecated use `ListPromptVersionsPromptConfig$outboundSchema` instead. */
2152
- export const outboundSchema = ListPromptVersionsPromptConfig$outboundSchema;
2153
- /** @deprecated use `ListPromptVersionsPromptConfig$Outbound` instead. */
2154
- export type Outbound = ListPromptVersionsPromptConfig$Outbound;
2155
- }
2156
-
2157
- export function listPromptVersionsPromptConfigToJSON(
2158
- listPromptVersionsPromptConfig: ListPromptVersionsPromptConfig,
2159
- ): string {
2160
- return JSON.stringify(
2161
- ListPromptVersionsPromptConfig$outboundSchema.parse(
2162
- listPromptVersionsPromptConfig,
2163
- ),
2164
- );
2165
- }
2166
-
2167
- export function listPromptVersionsPromptConfigFromJSON(
2168
- jsonString: string,
2169
- ): SafeParseResult<ListPromptVersionsPromptConfig, SDKValidationError> {
2170
- return safeParse(
2171
- jsonString,
2172
- (x) => ListPromptVersionsPromptConfig$inboundSchema.parse(JSON.parse(x)),
2173
- `Failed to parse 'ListPromptVersionsPromptConfig' from JSON`,
2174
- );
2175
- }
2176
-
2177
- /** @internal */
2178
- export const ListPromptVersionsUseCases$inboundSchema: z.ZodNativeEnum<
2179
- typeof ListPromptVersionsUseCases
2180
- > = z.nativeEnum(ListPromptVersionsUseCases);
2181
-
2182
- /** @internal */
2183
- export const ListPromptVersionsUseCases$outboundSchema: z.ZodNativeEnum<
2184
- typeof ListPromptVersionsUseCases
2185
- > = ListPromptVersionsUseCases$inboundSchema;
2186
-
2187
- /**
2188
- * @internal
2189
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2190
- */
2191
- export namespace ListPromptVersionsUseCases$ {
2192
- /** @deprecated use `ListPromptVersionsUseCases$inboundSchema` instead. */
2193
- export const inboundSchema = ListPromptVersionsUseCases$inboundSchema;
2194
- /** @deprecated use `ListPromptVersionsUseCases$outboundSchema` instead. */
2195
- export const outboundSchema = ListPromptVersionsUseCases$outboundSchema;
2196
- }
2197
-
2198
- /** @internal */
2199
- export const ListPromptVersionsLanguage$inboundSchema: z.ZodNativeEnum<
2200
- typeof ListPromptVersionsLanguage
2201
- > = z.nativeEnum(ListPromptVersionsLanguage);
2202
-
2203
- /** @internal */
2204
- export const ListPromptVersionsLanguage$outboundSchema: z.ZodNativeEnum<
2205
- typeof ListPromptVersionsLanguage
2206
- > = ListPromptVersionsLanguage$inboundSchema;
2207
-
2208
- /**
2209
- * @internal
2210
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2211
- */
2212
- export namespace ListPromptVersionsLanguage$ {
2213
- /** @deprecated use `ListPromptVersionsLanguage$inboundSchema` instead. */
2214
- export const inboundSchema = ListPromptVersionsLanguage$inboundSchema;
2215
- /** @deprecated use `ListPromptVersionsLanguage$outboundSchema` instead. */
2216
- export const outboundSchema = ListPromptVersionsLanguage$outboundSchema;
2217
- }
2218
-
2219
- /** @internal */
2220
- export const ListPromptVersionsMetadata$inboundSchema: z.ZodType<
2221
- ListPromptVersionsMetadata,
2222
- z.ZodTypeDef,
2223
- unknown
2224
- > = z.object({
2225
- use_cases: z.array(ListPromptVersionsUseCases$inboundSchema).optional(),
2226
- language: z.nullable(ListPromptVersionsLanguage$inboundSchema).optional(),
2227
- }).transform((v) => {
2228
- return remap$(v, {
2229
- "use_cases": "useCases",
2230
- });
2231
- });
2232
-
2233
- /** @internal */
2234
- export type ListPromptVersionsMetadata$Outbound = {
2235
- use_cases?: Array<string> | undefined;
2236
- language?: string | null | undefined;
2237
- };
2238
-
2239
- /** @internal */
2240
- export const ListPromptVersionsMetadata$outboundSchema: z.ZodType<
2241
- ListPromptVersionsMetadata$Outbound,
2242
- z.ZodTypeDef,
2243
- ListPromptVersionsMetadata
2244
- > = z.object({
2245
- useCases: z.array(ListPromptVersionsUseCases$outboundSchema).optional(),
2246
- language: z.nullable(ListPromptVersionsLanguage$outboundSchema).optional(),
2247
- }).transform((v) => {
2248
- return remap$(v, {
2249
- useCases: "use_cases",
2250
- });
2251
- });
2252
-
2253
- /**
2254
- * @internal
2255
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2256
- */
2257
- export namespace ListPromptVersionsMetadata$ {
2258
- /** @deprecated use `ListPromptVersionsMetadata$inboundSchema` instead. */
2259
- export const inboundSchema = ListPromptVersionsMetadata$inboundSchema;
2260
- /** @deprecated use `ListPromptVersionsMetadata$outboundSchema` instead. */
2261
- export const outboundSchema = ListPromptVersionsMetadata$outboundSchema;
2262
- /** @deprecated use `ListPromptVersionsMetadata$Outbound` instead. */
2263
- export type Outbound = ListPromptVersionsMetadata$Outbound;
2264
- }
2265
-
2266
- export function listPromptVersionsMetadataToJSON(
2267
- listPromptVersionsMetadata: ListPromptVersionsMetadata,
2268
- ): string {
2269
- return JSON.stringify(
2270
- ListPromptVersionsMetadata$outboundSchema.parse(listPromptVersionsMetadata),
2271
- );
2272
- }
2273
-
2274
- export function listPromptVersionsMetadataFromJSON(
2275
- jsonString: string,
2276
- ): SafeParseResult<ListPromptVersionsMetadata, SDKValidationError> {
2277
- return safeParse(
2278
- jsonString,
2279
- (x) => ListPromptVersionsMetadata$inboundSchema.parse(JSON.parse(x)),
2280
- `Failed to parse 'ListPromptVersionsMetadata' from JSON`,
2281
- );
2282
- }
2283
-
2284
- /** @internal */
2285
- export const ListPromptVersionsData$inboundSchema: z.ZodType<
2286
- ListPromptVersionsData,
2287
- z.ZodTypeDef,
2288
- unknown
2289
- > = z.object({
2290
- _id: z.string(),
2291
- created_by_id: z.nullable(z.string()).optional(),
2292
- updated_by_id: z.nullable(z.string()).optional(),
2293
- description: z.nullable(z.string()).optional(),
2294
- prompt_config: z.lazy(() => ListPromptVersionsPromptConfig$inboundSchema),
2295
- metadata: z.lazy(() => ListPromptVersionsMetadata$inboundSchema).optional(),
2296
- timestamp: z.string(),
2297
- }).transform((v) => {
2298
- return remap$(v, {
2299
- "_id": "id",
2300
- "created_by_id": "createdById",
2301
- "updated_by_id": "updatedById",
2302
- "prompt_config": "promptConfig",
2303
- });
2304
- });
2305
-
2306
- /** @internal */
2307
- export type ListPromptVersionsData$Outbound = {
2308
- _id: string;
2309
- created_by_id?: string | null | undefined;
2310
- updated_by_id?: string | null | undefined;
2311
- description?: string | null | undefined;
2312
- prompt_config: ListPromptVersionsPromptConfig$Outbound;
2313
- metadata?: ListPromptVersionsMetadata$Outbound | undefined;
2314
- timestamp: string;
2315
- };
2316
-
2317
- /** @internal */
2318
- export const ListPromptVersionsData$outboundSchema: z.ZodType<
2319
- ListPromptVersionsData$Outbound,
2320
- z.ZodTypeDef,
2321
- ListPromptVersionsData
2322
- > = z.object({
2323
- id: z.string(),
2324
- createdById: z.nullable(z.string()).optional(),
2325
- updatedById: z.nullable(z.string()).optional(),
2326
- description: z.nullable(z.string()).optional(),
2327
- promptConfig: z.lazy(() => ListPromptVersionsPromptConfig$outboundSchema),
2328
- metadata: z.lazy(() => ListPromptVersionsMetadata$outboundSchema).optional(),
2329
- timestamp: z.string(),
2330
- }).transform((v) => {
2331
- return remap$(v, {
2332
- id: "_id",
2333
- createdById: "created_by_id",
2334
- updatedById: "updated_by_id",
2335
- promptConfig: "prompt_config",
2336
- });
2337
- });
2338
-
2339
- /**
2340
- * @internal
2341
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2342
- */
2343
- export namespace ListPromptVersionsData$ {
2344
- /** @deprecated use `ListPromptVersionsData$inboundSchema` instead. */
2345
- export const inboundSchema = ListPromptVersionsData$inboundSchema;
2346
- /** @deprecated use `ListPromptVersionsData$outboundSchema` instead. */
2347
- export const outboundSchema = ListPromptVersionsData$outboundSchema;
2348
- /** @deprecated use `ListPromptVersionsData$Outbound` instead. */
2349
- export type Outbound = ListPromptVersionsData$Outbound;
2350
- }
2351
-
2352
- export function listPromptVersionsDataToJSON(
2353
- listPromptVersionsData: ListPromptVersionsData,
2354
- ): string {
2355
- return JSON.stringify(
2356
- ListPromptVersionsData$outboundSchema.parse(listPromptVersionsData),
2357
- );
2358
- }
2359
-
2360
- export function listPromptVersionsDataFromJSON(
2361
- jsonString: string,
2362
- ): SafeParseResult<ListPromptVersionsData, SDKValidationError> {
2363
- return safeParse(
2364
- jsonString,
2365
- (x) => ListPromptVersionsData$inboundSchema.parse(JSON.parse(x)),
2366
- `Failed to parse 'ListPromptVersionsData' from JSON`,
2367
- );
2368
- }
2369
-
2370
- /** @internal */
2371
- export const ListPromptVersionsResponseBody$inboundSchema: z.ZodType<
2372
- ListPromptVersionsResponseBody,
2373
- z.ZodTypeDef,
2374
- unknown
2375
- > = z.object({
2376
- object: ListPromptVersionsObject$inboundSchema,
2377
- data: z.array(z.lazy(() => ListPromptVersionsData$inboundSchema)),
2378
- has_more: z.boolean(),
2379
- }).transform((v) => {
2380
- return remap$(v, {
2381
- "has_more": "hasMore",
2382
- });
2383
- });
2384
-
2385
- /** @internal */
2386
- export type ListPromptVersionsResponseBody$Outbound = {
2387
- object: string;
2388
- data: Array<ListPromptVersionsData$Outbound>;
2389
- has_more: boolean;
2390
- };
2391
-
2392
- /** @internal */
2393
- export const ListPromptVersionsResponseBody$outboundSchema: z.ZodType<
2394
- ListPromptVersionsResponseBody$Outbound,
2395
- z.ZodTypeDef,
2396
- ListPromptVersionsResponseBody
2397
- > = z.object({
2398
- object: ListPromptVersionsObject$outboundSchema,
2399
- data: z.array(z.lazy(() => ListPromptVersionsData$outboundSchema)),
2400
- hasMore: z.boolean(),
2401
- }).transform((v) => {
2402
- return remap$(v, {
2403
- hasMore: "has_more",
2404
- });
2405
- });
2406
-
2407
- /**
2408
- * @internal
2409
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2410
- */
2411
- export namespace ListPromptVersionsResponseBody$ {
2412
- /** @deprecated use `ListPromptVersionsResponseBody$inboundSchema` instead. */
2413
- export const inboundSchema = ListPromptVersionsResponseBody$inboundSchema;
2414
- /** @deprecated use `ListPromptVersionsResponseBody$outboundSchema` instead. */
2415
- export const outboundSchema = ListPromptVersionsResponseBody$outboundSchema;
2416
- /** @deprecated use `ListPromptVersionsResponseBody$Outbound` instead. */
2417
- export type Outbound = ListPromptVersionsResponseBody$Outbound;
2418
- }
2419
-
2420
- export function listPromptVersionsResponseBodyToJSON(
2421
- listPromptVersionsResponseBody: ListPromptVersionsResponseBody,
2422
- ): string {
2423
- return JSON.stringify(
2424
- ListPromptVersionsResponseBody$outboundSchema.parse(
2425
- listPromptVersionsResponseBody,
2426
- ),
2427
- );
2428
- }
2429
-
2430
- export function listPromptVersionsResponseBodyFromJSON(
2431
- jsonString: string,
2432
- ): SafeParseResult<ListPromptVersionsResponseBody, SDKValidationError> {
2433
- return safeParse(
2434
- jsonString,
2435
- (x) => ListPromptVersionsResponseBody$inboundSchema.parse(JSON.parse(x)),
2436
- `Failed to parse 'ListPromptVersionsResponseBody' from JSON`,
2437
- );
2438
- }