@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,2305 +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 GetPromptVersionRequest = {
13
- /**
14
- * The unique identifier of the prompt
15
- */
16
- promptId: string;
17
- /**
18
- * The unique identifier of the prompt version
19
- */
20
- versionId: string;
21
- };
22
-
23
- /**
24
- * The modality of the model
25
- */
26
- export const GetPromptVersionModelType = {
27
- Chat: "chat",
28
- Completion: "completion",
29
- Embedding: "embedding",
30
- Vision: "vision",
31
- Image: "image",
32
- Tts: "tts",
33
- Stt: "stt",
34
- Rerank: "rerank",
35
- Moderations: "moderations",
36
- } as const;
37
- /**
38
- * The modality of the model
39
- */
40
- export type GetPromptVersionModelType = ClosedEnum<
41
- typeof GetPromptVersionModelType
42
- >;
43
-
44
- /**
45
- * Only supported on `image` models.
46
- */
47
- export const GetPromptVersionFormat = {
48
- Url: "url",
49
- B64Json: "b64_json",
50
- Text: "text",
51
- JsonObject: "json_object",
52
- } as const;
53
- /**
54
- * Only supported on `image` models.
55
- */
56
- export type GetPromptVersionFormat = ClosedEnum<typeof GetPromptVersionFormat>;
57
-
58
- export const GetPromptVersionResponseFormatPromptsResponseType = {
59
- Text: "text",
60
- } as const;
61
- export type GetPromptVersionResponseFormatPromptsResponseType = ClosedEnum<
62
- typeof GetPromptVersionResponseFormatPromptsResponseType
63
- >;
64
-
65
- export type GetPromptVersionResponseFormat3 = {
66
- type: GetPromptVersionResponseFormatPromptsResponseType;
67
- };
68
-
69
- export const GetPromptVersionResponseFormatPromptsType = {
70
- JsonObject: "json_object",
71
- } as const;
72
- export type GetPromptVersionResponseFormatPromptsType = ClosedEnum<
73
- typeof GetPromptVersionResponseFormatPromptsType
74
- >;
75
-
76
- export type GetPromptVersionResponseFormat2 = {
77
- type: GetPromptVersionResponseFormatPromptsType;
78
- };
79
-
80
- export const GetPromptVersionResponseFormatType = {
81
- JsonSchema: "json_schema",
82
- } as const;
83
- export type GetPromptVersionResponseFormatType = ClosedEnum<
84
- typeof GetPromptVersionResponseFormatType
85
- >;
86
-
87
- export type GetPromptVersionResponseFormatJsonSchema = {
88
- name: string;
89
- strict?: boolean | undefined;
90
- schema: { [k: string]: any };
91
- };
92
-
93
- export type GetPromptVersionResponseFormat1 = {
94
- type: GetPromptVersionResponseFormatType;
95
- jsonSchema: GetPromptVersionResponseFormatJsonSchema;
96
- };
97
-
98
- /**
99
- * An object specifying the format that the model must output.
100
- *
101
- * @remarks
102
- *
103
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
104
- *
105
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
106
- *
107
- * 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.
108
- */
109
- export type GetPromptVersionResponseFormat =
110
- | GetPromptVersionResponseFormat1
111
- | GetPromptVersionResponseFormat2
112
- | GetPromptVersionResponseFormat3;
113
-
114
- /**
115
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
116
- */
117
- export const GetPromptVersionPhotoRealVersion = {
118
- V1: "v1",
119
- V2: "v2",
120
- } as const;
121
- /**
122
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
123
- */
124
- export type GetPromptVersionPhotoRealVersion = ClosedEnum<
125
- typeof GetPromptVersionPhotoRealVersion
126
- >;
127
-
128
- /**
129
- * The format to return the embeddings
130
- */
131
- export const GetPromptVersionEncodingFormat = {
132
- Float: "float",
133
- Base64: "base64",
134
- } as const;
135
- /**
136
- * The format to return the embeddings
137
- */
138
- export type GetPromptVersionEncodingFormat = ClosedEnum<
139
- typeof GetPromptVersionEncodingFormat
140
- >;
141
-
142
- /**
143
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
144
- */
145
- export const GetPromptVersionReasoningEffort = {
146
- Disable: "disable",
147
- Low: "low",
148
- Medium: "medium",
149
- High: "high",
150
- } as const;
151
- /**
152
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
153
- */
154
- export type GetPromptVersionReasoningEffort = ClosedEnum<
155
- typeof GetPromptVersionReasoningEffort
156
- >;
157
-
158
- /**
159
- * Controls the verbosity of the model output.
160
- */
161
- export const GetPromptVersionVerbosity = {
162
- Low: "low",
163
- Medium: "medium",
164
- High: "high",
165
- } as const;
166
- /**
167
- * Controls the verbosity of the model output.
168
- */
169
- export type GetPromptVersionVerbosity = ClosedEnum<
170
- typeof GetPromptVersionVerbosity
171
- >;
172
-
173
- /**
174
- * Model Parameters: Not all parameters apply to every model
175
- */
176
- export type GetPromptVersionModelParameters = {
177
- /**
178
- * Only supported on `chat` and `completion` models.
179
- */
180
- temperature?: number | undefined;
181
- /**
182
- * Only supported on `chat` and `completion` models.
183
- */
184
- maxTokens?: number | undefined;
185
- /**
186
- * Only supported on `chat` and `completion` models.
187
- */
188
- topK?: number | undefined;
189
- /**
190
- * Only supported on `chat` and `completion` models.
191
- */
192
- topP?: number | undefined;
193
- /**
194
- * Only supported on `chat` and `completion` models.
195
- */
196
- frequencyPenalty?: number | undefined;
197
- /**
198
- * Only supported on `chat` and `completion` models.
199
- */
200
- presencePenalty?: number | undefined;
201
- /**
202
- * Only supported on `image` models.
203
- */
204
- numImages?: number | undefined;
205
- /**
206
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
207
- */
208
- seed?: number | undefined;
209
- /**
210
- * Only supported on `image` models.
211
- */
212
- format?: GetPromptVersionFormat | undefined;
213
- /**
214
- * Only supported on `image` models.
215
- */
216
- dimensions?: string | undefined;
217
- /**
218
- * Only supported on `image` models.
219
- */
220
- quality?: string | undefined;
221
- /**
222
- * Only supported on `image` models.
223
- */
224
- style?: string | undefined;
225
- /**
226
- * An object specifying the format that the model must output.
227
- *
228
- * @remarks
229
- *
230
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
231
- *
232
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
233
- *
234
- * 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.
235
- */
236
- responseFormat?:
237
- | GetPromptVersionResponseFormat1
238
- | GetPromptVersionResponseFormat2
239
- | GetPromptVersionResponseFormat3
240
- | null
241
- | undefined;
242
- /**
243
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
244
- */
245
- photoRealVersion?: GetPromptVersionPhotoRealVersion | undefined;
246
- /**
247
- * The format to return the embeddings
248
- */
249
- encodingFormat?: GetPromptVersionEncodingFormat | undefined;
250
- /**
251
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
252
- */
253
- reasoningEffort?: GetPromptVersionReasoningEffort | undefined;
254
- /**
255
- * 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`
256
- */
257
- budgetTokens?: number | undefined;
258
- /**
259
- * Controls the verbosity of the model output.
260
- */
261
- verbosity?: GetPromptVersionVerbosity | undefined;
262
- };
263
-
264
- export const GetPromptVersionProvider = {
265
- Cohere: "cohere",
266
- Openai: "openai",
267
- Anthropic: "anthropic",
268
- Huggingface: "huggingface",
269
- Replicate: "replicate",
270
- Google: "google",
271
- GoogleAi: "google-ai",
272
- Azure: "azure",
273
- Aws: "aws",
274
- Anyscale: "anyscale",
275
- Perplexity: "perplexity",
276
- Groq: "groq",
277
- Fal: "fal",
278
- Leonardoai: "leonardoai",
279
- Nvidia: "nvidia",
280
- Jina: "jina",
281
- Togetherai: "togetherai",
282
- Elevenlabs: "elevenlabs",
283
- Litellm: "litellm",
284
- Openailike: "openailike",
285
- Cerebras: "cerebras",
286
- } as const;
287
- export type GetPromptVersionProvider = ClosedEnum<
288
- typeof GetPromptVersionProvider
289
- >;
290
-
291
- /**
292
- * The role of the prompt message
293
- */
294
- export const GetPromptVersionRole = {
295
- System: "system",
296
- Assistant: "assistant",
297
- User: "user",
298
- Exception: "exception",
299
- Tool: "tool",
300
- Prompt: "prompt",
301
- Correction: "correction",
302
- ExpectedOutput: "expected_output",
303
- } as const;
304
- /**
305
- * The role of the prompt message
306
- */
307
- export type GetPromptVersionRole = ClosedEnum<typeof GetPromptVersionRole>;
308
-
309
- /**
310
- * The type of the content part. Always `file`.
311
- */
312
- export const GetPromptVersion2PromptsResponseType = {
313
- File: "file",
314
- } as const;
315
- /**
316
- * The type of the content part. Always `file`.
317
- */
318
- export type GetPromptVersion2PromptsResponseType = ClosedEnum<
319
- typeof GetPromptVersion2PromptsResponseType
320
- >;
321
-
322
- export type GetPromptVersion2File = {
323
- /**
324
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
325
- */
326
- fileData: string;
327
- /**
328
- * The name of the file, used when passing the file to the model as a string.
329
- */
330
- filename?: string | undefined;
331
- };
332
-
333
- export type GetPromptVersion23 = {
334
- /**
335
- * The type of the content part. Always `file`.
336
- */
337
- type: GetPromptVersion2PromptsResponseType;
338
- file: GetPromptVersion2File;
339
- };
340
-
341
- export const GetPromptVersion2PromptsType = {
342
- ImageUrl: "image_url",
343
- } as const;
344
- export type GetPromptVersion2PromptsType = ClosedEnum<
345
- typeof GetPromptVersion2PromptsType
346
- >;
347
-
348
- export type GetPromptVersion2ImageUrl = {
349
- /**
350
- * The orq.ai id of the image
351
- */
352
- id?: string | undefined;
353
- /**
354
- * Either a URL of the image or the base64 encoded data URI.
355
- */
356
- url: string;
357
- /**
358
- * Specifies the detail level of the image. Currently only supported with OpenAI models
359
- */
360
- detail?: string | undefined;
361
- };
362
-
363
- /**
364
- * The image part of the prompt message. Only supported with vision models.
365
- */
366
- export type GetPromptVersion22 = {
367
- type: GetPromptVersion2PromptsType;
368
- imageUrl: GetPromptVersion2ImageUrl;
369
- };
370
-
371
- export const GetPromptVersion2Type = {
372
- Text: "text",
373
- } as const;
374
- export type GetPromptVersion2Type = ClosedEnum<typeof GetPromptVersion2Type>;
375
-
376
- /**
377
- * Text content part of a prompt message
378
- */
379
- export type GetPromptVersion21 = {
380
- type: GetPromptVersion2Type;
381
- text: string;
382
- };
383
-
384
- export type GetPromptVersionContent2 =
385
- | GetPromptVersion21
386
- | GetPromptVersion22
387
- | GetPromptVersion23;
388
-
389
- /**
390
- * 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.
391
- */
392
- export type GetPromptVersionContent =
393
- | string
394
- | Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
395
-
396
- export const GetPromptVersionType = {
397
- Function: "function",
398
- } as const;
399
- export type GetPromptVersionType = ClosedEnum<typeof GetPromptVersionType>;
400
-
401
- export type GetPromptVersionFunction = {
402
- name: string;
403
- /**
404
- * JSON string arguments for the functions
405
- */
406
- arguments: string;
407
- };
408
-
409
- export type GetPromptVersionToolCalls = {
410
- id?: string | undefined;
411
- index?: number | undefined;
412
- type: GetPromptVersionType;
413
- function: GetPromptVersionFunction;
414
- };
415
-
416
- export type GetPromptVersionMessages = {
417
- /**
418
- * The role of the prompt message
419
- */
420
- role: GetPromptVersionRole;
421
- /**
422
- * 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.
423
- */
424
- content:
425
- | string
426
- | Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
427
- toolCalls?: Array<GetPromptVersionToolCalls> | undefined;
428
- toolCallId?: string | undefined;
429
- };
430
-
431
- /**
432
- * A list of messages compatible with the openAI schema
433
- */
434
- export type GetPromptVersionPromptConfig = {
435
- stream?: boolean | undefined;
436
- model?: string | undefined;
437
- /**
438
- * The id of the resource
439
- */
440
- modelDbId?: string | null | undefined;
441
- /**
442
- * The modality of the model
443
- */
444
- modelType?: GetPromptVersionModelType | null | undefined;
445
- /**
446
- * Model Parameters: Not all parameters apply to every model
447
- */
448
- modelParameters?: GetPromptVersionModelParameters | undefined;
449
- provider?: GetPromptVersionProvider | undefined;
450
- /**
451
- * The id of the resource
452
- */
453
- integrationId?: string | null | undefined;
454
- version?: string | undefined;
455
- messages: Array<GetPromptVersionMessages>;
456
- };
457
-
458
- export const GetPromptVersionUseCases = {
459
- AgentsSimulations: "Agents simulations",
460
- Agents: "Agents",
461
- APIInteraction: "API interaction",
462
- AutonomousAgents: "Autonomous Agents",
463
- Chatbots: "Chatbots",
464
- Classification: "Classification",
465
- CodeUnderstanding: "Code understanding",
466
- CodeWriting: "Code writing",
467
- Conversation: "Conversation",
468
- DocumentsQA: "Documents QA",
469
- Evaluation: "Evaluation",
470
- Extraction: "Extraction",
471
- MultiModal: "Multi-modal",
472
- SelfChecking: "Self-checking",
473
- SentimentAnalysis: "Sentiment analysis",
474
- Sql: "SQL",
475
- Summarization: "Summarization",
476
- Tagging: "Tagging",
477
- TranslationDocument: "Translation (document)",
478
- TranslationSentences: "Translation (sentences)",
479
- } as const;
480
- export type GetPromptVersionUseCases = ClosedEnum<
481
- typeof GetPromptVersionUseCases
482
- >;
483
-
484
- /**
485
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
486
- */
487
- export const GetPromptVersionLanguage = {
488
- Chinese: "Chinese",
489
- Dutch: "Dutch",
490
- English: "English",
491
- French: "French",
492
- German: "German",
493
- Russian: "Russian",
494
- Spanish: "Spanish",
495
- } as const;
496
- /**
497
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
498
- */
499
- export type GetPromptVersionLanguage = ClosedEnum<
500
- typeof GetPromptVersionLanguage
501
- >;
502
-
503
- export type GetPromptVersionMetadata = {
504
- /**
505
- * 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
506
- */
507
- useCases?: Array<GetPromptVersionUseCases> | undefined;
508
- /**
509
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
510
- */
511
- language?: GetPromptVersionLanguage | null | undefined;
512
- };
513
-
514
- /**
515
- * Prompt version retrieved successfully.
516
- */
517
- export type GetPromptVersionResponseBody = {
518
- id: string;
519
- createdById?: string | null | undefined;
520
- updatedById?: string | null | undefined;
521
- /**
522
- * 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
523
- */
524
- description?: string | null | undefined;
525
- /**
526
- * A list of messages compatible with the openAI schema
527
- */
528
- promptConfig: GetPromptVersionPromptConfig;
529
- metadata?: GetPromptVersionMetadata | undefined;
530
- timestamp: string;
531
- };
532
-
533
- /** @internal */
534
- export const GetPromptVersionRequest$inboundSchema: z.ZodType<
535
- GetPromptVersionRequest,
536
- z.ZodTypeDef,
537
- unknown
538
- > = z.object({
539
- prompt_id: z.string(),
540
- version_id: z.string(),
541
- }).transform((v) => {
542
- return remap$(v, {
543
- "prompt_id": "promptId",
544
- "version_id": "versionId",
545
- });
546
- });
547
-
548
- /** @internal */
549
- export type GetPromptVersionRequest$Outbound = {
550
- prompt_id: string;
551
- version_id: string;
552
- };
553
-
554
- /** @internal */
555
- export const GetPromptVersionRequest$outboundSchema: z.ZodType<
556
- GetPromptVersionRequest$Outbound,
557
- z.ZodTypeDef,
558
- GetPromptVersionRequest
559
- > = z.object({
560
- promptId: z.string(),
561
- versionId: z.string(),
562
- }).transform((v) => {
563
- return remap$(v, {
564
- promptId: "prompt_id",
565
- versionId: "version_id",
566
- });
567
- });
568
-
569
- /**
570
- * @internal
571
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
572
- */
573
- export namespace GetPromptVersionRequest$ {
574
- /** @deprecated use `GetPromptVersionRequest$inboundSchema` instead. */
575
- export const inboundSchema = GetPromptVersionRequest$inboundSchema;
576
- /** @deprecated use `GetPromptVersionRequest$outboundSchema` instead. */
577
- export const outboundSchema = GetPromptVersionRequest$outboundSchema;
578
- /** @deprecated use `GetPromptVersionRequest$Outbound` instead. */
579
- export type Outbound = GetPromptVersionRequest$Outbound;
580
- }
581
-
582
- export function getPromptVersionRequestToJSON(
583
- getPromptVersionRequest: GetPromptVersionRequest,
584
- ): string {
585
- return JSON.stringify(
586
- GetPromptVersionRequest$outboundSchema.parse(getPromptVersionRequest),
587
- );
588
- }
589
-
590
- export function getPromptVersionRequestFromJSON(
591
- jsonString: string,
592
- ): SafeParseResult<GetPromptVersionRequest, SDKValidationError> {
593
- return safeParse(
594
- jsonString,
595
- (x) => GetPromptVersionRequest$inboundSchema.parse(JSON.parse(x)),
596
- `Failed to parse 'GetPromptVersionRequest' from JSON`,
597
- );
598
- }
599
-
600
- /** @internal */
601
- export const GetPromptVersionModelType$inboundSchema: z.ZodNativeEnum<
602
- typeof GetPromptVersionModelType
603
- > = z.nativeEnum(GetPromptVersionModelType);
604
-
605
- /** @internal */
606
- export const GetPromptVersionModelType$outboundSchema: z.ZodNativeEnum<
607
- typeof GetPromptVersionModelType
608
- > = GetPromptVersionModelType$inboundSchema;
609
-
610
- /**
611
- * @internal
612
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
613
- */
614
- export namespace GetPromptVersionModelType$ {
615
- /** @deprecated use `GetPromptVersionModelType$inboundSchema` instead. */
616
- export const inboundSchema = GetPromptVersionModelType$inboundSchema;
617
- /** @deprecated use `GetPromptVersionModelType$outboundSchema` instead. */
618
- export const outboundSchema = GetPromptVersionModelType$outboundSchema;
619
- }
620
-
621
- /** @internal */
622
- export const GetPromptVersionFormat$inboundSchema: z.ZodNativeEnum<
623
- typeof GetPromptVersionFormat
624
- > = z.nativeEnum(GetPromptVersionFormat);
625
-
626
- /** @internal */
627
- export const GetPromptVersionFormat$outboundSchema: z.ZodNativeEnum<
628
- typeof GetPromptVersionFormat
629
- > = GetPromptVersionFormat$inboundSchema;
630
-
631
- /**
632
- * @internal
633
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
634
- */
635
- export namespace GetPromptVersionFormat$ {
636
- /** @deprecated use `GetPromptVersionFormat$inboundSchema` instead. */
637
- export const inboundSchema = GetPromptVersionFormat$inboundSchema;
638
- /** @deprecated use `GetPromptVersionFormat$outboundSchema` instead. */
639
- export const outboundSchema = GetPromptVersionFormat$outboundSchema;
640
- }
641
-
642
- /** @internal */
643
- export const GetPromptVersionResponseFormatPromptsResponseType$inboundSchema:
644
- z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponseType> = z
645
- .nativeEnum(GetPromptVersionResponseFormatPromptsResponseType);
646
-
647
- /** @internal */
648
- export const GetPromptVersionResponseFormatPromptsResponseType$outboundSchema:
649
- z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponseType> =
650
- GetPromptVersionResponseFormatPromptsResponseType$inboundSchema;
651
-
652
- /**
653
- * @internal
654
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
655
- */
656
- export namespace GetPromptVersionResponseFormatPromptsResponseType$ {
657
- /** @deprecated use `GetPromptVersionResponseFormatPromptsResponseType$inboundSchema` instead. */
658
- export const inboundSchema =
659
- GetPromptVersionResponseFormatPromptsResponseType$inboundSchema;
660
- /** @deprecated use `GetPromptVersionResponseFormatPromptsResponseType$outboundSchema` instead. */
661
- export const outboundSchema =
662
- GetPromptVersionResponseFormatPromptsResponseType$outboundSchema;
663
- }
664
-
665
- /** @internal */
666
- export const GetPromptVersionResponseFormat3$inboundSchema: z.ZodType<
667
- GetPromptVersionResponseFormat3,
668
- z.ZodTypeDef,
669
- unknown
670
- > = z.object({
671
- type: GetPromptVersionResponseFormatPromptsResponseType$inboundSchema,
672
- });
673
-
674
- /** @internal */
675
- export type GetPromptVersionResponseFormat3$Outbound = {
676
- type: string;
677
- };
678
-
679
- /** @internal */
680
- export const GetPromptVersionResponseFormat3$outboundSchema: z.ZodType<
681
- GetPromptVersionResponseFormat3$Outbound,
682
- z.ZodTypeDef,
683
- GetPromptVersionResponseFormat3
684
- > = z.object({
685
- type: GetPromptVersionResponseFormatPromptsResponseType$outboundSchema,
686
- });
687
-
688
- /**
689
- * @internal
690
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
691
- */
692
- export namespace GetPromptVersionResponseFormat3$ {
693
- /** @deprecated use `GetPromptVersionResponseFormat3$inboundSchema` instead. */
694
- export const inboundSchema = GetPromptVersionResponseFormat3$inboundSchema;
695
- /** @deprecated use `GetPromptVersionResponseFormat3$outboundSchema` instead. */
696
- export const outboundSchema = GetPromptVersionResponseFormat3$outboundSchema;
697
- /** @deprecated use `GetPromptVersionResponseFormat3$Outbound` instead. */
698
- export type Outbound = GetPromptVersionResponseFormat3$Outbound;
699
- }
700
-
701
- export function getPromptVersionResponseFormat3ToJSON(
702
- getPromptVersionResponseFormat3: GetPromptVersionResponseFormat3,
703
- ): string {
704
- return JSON.stringify(
705
- GetPromptVersionResponseFormat3$outboundSchema.parse(
706
- getPromptVersionResponseFormat3,
707
- ),
708
- );
709
- }
710
-
711
- export function getPromptVersionResponseFormat3FromJSON(
712
- jsonString: string,
713
- ): SafeParseResult<GetPromptVersionResponseFormat3, SDKValidationError> {
714
- return safeParse(
715
- jsonString,
716
- (x) => GetPromptVersionResponseFormat3$inboundSchema.parse(JSON.parse(x)),
717
- `Failed to parse 'GetPromptVersionResponseFormat3' from JSON`,
718
- );
719
- }
720
-
721
- /** @internal */
722
- export const GetPromptVersionResponseFormatPromptsType$inboundSchema:
723
- z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> = z
724
- .nativeEnum(GetPromptVersionResponseFormatPromptsType);
725
-
726
- /** @internal */
727
- export const GetPromptVersionResponseFormatPromptsType$outboundSchema:
728
- z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> =
729
- GetPromptVersionResponseFormatPromptsType$inboundSchema;
730
-
731
- /**
732
- * @internal
733
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
734
- */
735
- export namespace GetPromptVersionResponseFormatPromptsType$ {
736
- /** @deprecated use `GetPromptVersionResponseFormatPromptsType$inboundSchema` instead. */
737
- export const inboundSchema =
738
- GetPromptVersionResponseFormatPromptsType$inboundSchema;
739
- /** @deprecated use `GetPromptVersionResponseFormatPromptsType$outboundSchema` instead. */
740
- export const outboundSchema =
741
- GetPromptVersionResponseFormatPromptsType$outboundSchema;
742
- }
743
-
744
- /** @internal */
745
- export const GetPromptVersionResponseFormat2$inboundSchema: z.ZodType<
746
- GetPromptVersionResponseFormat2,
747
- z.ZodTypeDef,
748
- unknown
749
- > = z.object({
750
- type: GetPromptVersionResponseFormatPromptsType$inboundSchema,
751
- });
752
-
753
- /** @internal */
754
- export type GetPromptVersionResponseFormat2$Outbound = {
755
- type: string;
756
- };
757
-
758
- /** @internal */
759
- export const GetPromptVersionResponseFormat2$outboundSchema: z.ZodType<
760
- GetPromptVersionResponseFormat2$Outbound,
761
- z.ZodTypeDef,
762
- GetPromptVersionResponseFormat2
763
- > = z.object({
764
- type: GetPromptVersionResponseFormatPromptsType$outboundSchema,
765
- });
766
-
767
- /**
768
- * @internal
769
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
770
- */
771
- export namespace GetPromptVersionResponseFormat2$ {
772
- /** @deprecated use `GetPromptVersionResponseFormat2$inboundSchema` instead. */
773
- export const inboundSchema = GetPromptVersionResponseFormat2$inboundSchema;
774
- /** @deprecated use `GetPromptVersionResponseFormat2$outboundSchema` instead. */
775
- export const outboundSchema = GetPromptVersionResponseFormat2$outboundSchema;
776
- /** @deprecated use `GetPromptVersionResponseFormat2$Outbound` instead. */
777
- export type Outbound = GetPromptVersionResponseFormat2$Outbound;
778
- }
779
-
780
- export function getPromptVersionResponseFormat2ToJSON(
781
- getPromptVersionResponseFormat2: GetPromptVersionResponseFormat2,
782
- ): string {
783
- return JSON.stringify(
784
- GetPromptVersionResponseFormat2$outboundSchema.parse(
785
- getPromptVersionResponseFormat2,
786
- ),
787
- );
788
- }
789
-
790
- export function getPromptVersionResponseFormat2FromJSON(
791
- jsonString: string,
792
- ): SafeParseResult<GetPromptVersionResponseFormat2, SDKValidationError> {
793
- return safeParse(
794
- jsonString,
795
- (x) => GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)),
796
- `Failed to parse 'GetPromptVersionResponseFormat2' from JSON`,
797
- );
798
- }
799
-
800
- /** @internal */
801
- export const GetPromptVersionResponseFormatType$inboundSchema: z.ZodNativeEnum<
802
- typeof GetPromptVersionResponseFormatType
803
- > = z.nativeEnum(GetPromptVersionResponseFormatType);
804
-
805
- /** @internal */
806
- export const GetPromptVersionResponseFormatType$outboundSchema: z.ZodNativeEnum<
807
- typeof GetPromptVersionResponseFormatType
808
- > = GetPromptVersionResponseFormatType$inboundSchema;
809
-
810
- /**
811
- * @internal
812
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
813
- */
814
- export namespace GetPromptVersionResponseFormatType$ {
815
- /** @deprecated use `GetPromptVersionResponseFormatType$inboundSchema` instead. */
816
- export const inboundSchema = GetPromptVersionResponseFormatType$inboundSchema;
817
- /** @deprecated use `GetPromptVersionResponseFormatType$outboundSchema` instead. */
818
- export const outboundSchema =
819
- GetPromptVersionResponseFormatType$outboundSchema;
820
- }
821
-
822
- /** @internal */
823
- export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
824
- GetPromptVersionResponseFormatJsonSchema,
825
- z.ZodTypeDef,
826
- unknown
827
- > = z.object({
828
- name: z.string(),
829
- strict: z.boolean().optional(),
830
- schema: z.record(z.any()),
831
- });
832
-
833
- /** @internal */
834
- export type GetPromptVersionResponseFormatJsonSchema$Outbound = {
835
- name: string;
836
- strict?: boolean | undefined;
837
- schema: { [k: string]: any };
838
- };
839
-
840
- /** @internal */
841
- export const GetPromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<
842
- GetPromptVersionResponseFormatJsonSchema$Outbound,
843
- z.ZodTypeDef,
844
- GetPromptVersionResponseFormatJsonSchema
845
- > = z.object({
846
- name: z.string(),
847
- strict: z.boolean().optional(),
848
- schema: z.record(z.any()),
849
- });
850
-
851
- /**
852
- * @internal
853
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
854
- */
855
- export namespace GetPromptVersionResponseFormatJsonSchema$ {
856
- /** @deprecated use `GetPromptVersionResponseFormatJsonSchema$inboundSchema` instead. */
857
- export const inboundSchema =
858
- GetPromptVersionResponseFormatJsonSchema$inboundSchema;
859
- /** @deprecated use `GetPromptVersionResponseFormatJsonSchema$outboundSchema` instead. */
860
- export const outboundSchema =
861
- GetPromptVersionResponseFormatJsonSchema$outboundSchema;
862
- /** @deprecated use `GetPromptVersionResponseFormatJsonSchema$Outbound` instead. */
863
- export type Outbound = GetPromptVersionResponseFormatJsonSchema$Outbound;
864
- }
865
-
866
- export function getPromptVersionResponseFormatJsonSchemaToJSON(
867
- getPromptVersionResponseFormatJsonSchema:
868
- GetPromptVersionResponseFormatJsonSchema,
869
- ): string {
870
- return JSON.stringify(
871
- GetPromptVersionResponseFormatJsonSchema$outboundSchema.parse(
872
- getPromptVersionResponseFormatJsonSchema,
873
- ),
874
- );
875
- }
876
-
877
- export function getPromptVersionResponseFormatJsonSchemaFromJSON(
878
- jsonString: string,
879
- ): SafeParseResult<
880
- GetPromptVersionResponseFormatJsonSchema,
881
- SDKValidationError
882
- > {
883
- return safeParse(
884
- jsonString,
885
- (x) =>
886
- GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(
887
- JSON.parse(x),
888
- ),
889
- `Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`,
890
- );
891
- }
892
-
893
- /** @internal */
894
- export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
895
- GetPromptVersionResponseFormat1,
896
- z.ZodTypeDef,
897
- unknown
898
- > = z.object({
899
- type: GetPromptVersionResponseFormatType$inboundSchema,
900
- json_schema: z.lazy(() =>
901
- GetPromptVersionResponseFormatJsonSchema$inboundSchema
902
- ),
903
- }).transform((v) => {
904
- return remap$(v, {
905
- "json_schema": "jsonSchema",
906
- });
907
- });
908
-
909
- /** @internal */
910
- export type GetPromptVersionResponseFormat1$Outbound = {
911
- type: string;
912
- json_schema: GetPromptVersionResponseFormatJsonSchema$Outbound;
913
- };
914
-
915
- /** @internal */
916
- export const GetPromptVersionResponseFormat1$outboundSchema: z.ZodType<
917
- GetPromptVersionResponseFormat1$Outbound,
918
- z.ZodTypeDef,
919
- GetPromptVersionResponseFormat1
920
- > = z.object({
921
- type: GetPromptVersionResponseFormatType$outboundSchema,
922
- jsonSchema: z.lazy(() =>
923
- GetPromptVersionResponseFormatJsonSchema$outboundSchema
924
- ),
925
- }).transform((v) => {
926
- return remap$(v, {
927
- jsonSchema: "json_schema",
928
- });
929
- });
930
-
931
- /**
932
- * @internal
933
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
934
- */
935
- export namespace GetPromptVersionResponseFormat1$ {
936
- /** @deprecated use `GetPromptVersionResponseFormat1$inboundSchema` instead. */
937
- export const inboundSchema = GetPromptVersionResponseFormat1$inboundSchema;
938
- /** @deprecated use `GetPromptVersionResponseFormat1$outboundSchema` instead. */
939
- export const outboundSchema = GetPromptVersionResponseFormat1$outboundSchema;
940
- /** @deprecated use `GetPromptVersionResponseFormat1$Outbound` instead. */
941
- export type Outbound = GetPromptVersionResponseFormat1$Outbound;
942
- }
943
-
944
- export function getPromptVersionResponseFormat1ToJSON(
945
- getPromptVersionResponseFormat1: GetPromptVersionResponseFormat1,
946
- ): string {
947
- return JSON.stringify(
948
- GetPromptVersionResponseFormat1$outboundSchema.parse(
949
- getPromptVersionResponseFormat1,
950
- ),
951
- );
952
- }
953
-
954
- export function getPromptVersionResponseFormat1FromJSON(
955
- jsonString: string,
956
- ): SafeParseResult<GetPromptVersionResponseFormat1, SDKValidationError> {
957
- return safeParse(
958
- jsonString,
959
- (x) => GetPromptVersionResponseFormat1$inboundSchema.parse(JSON.parse(x)),
960
- `Failed to parse 'GetPromptVersionResponseFormat1' from JSON`,
961
- );
962
- }
963
-
964
- /** @internal */
965
- export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
966
- GetPromptVersionResponseFormat,
967
- z.ZodTypeDef,
968
- unknown
969
- > = z.union([
970
- z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
971
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
972
- z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
973
- ]);
974
-
975
- /** @internal */
976
- export type GetPromptVersionResponseFormat$Outbound =
977
- | GetPromptVersionResponseFormat1$Outbound
978
- | GetPromptVersionResponseFormat2$Outbound
979
- | GetPromptVersionResponseFormat3$Outbound;
980
-
981
- /** @internal */
982
- export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
983
- GetPromptVersionResponseFormat$Outbound,
984
- z.ZodTypeDef,
985
- GetPromptVersionResponseFormat
986
- > = z.union([
987
- z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
988
- z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
989
- z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
990
- ]);
991
-
992
- /**
993
- * @internal
994
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
995
- */
996
- export namespace GetPromptVersionResponseFormat$ {
997
- /** @deprecated use `GetPromptVersionResponseFormat$inboundSchema` instead. */
998
- export const inboundSchema = GetPromptVersionResponseFormat$inboundSchema;
999
- /** @deprecated use `GetPromptVersionResponseFormat$outboundSchema` instead. */
1000
- export const outboundSchema = GetPromptVersionResponseFormat$outboundSchema;
1001
- /** @deprecated use `GetPromptVersionResponseFormat$Outbound` instead. */
1002
- export type Outbound = GetPromptVersionResponseFormat$Outbound;
1003
- }
1004
-
1005
- export function getPromptVersionResponseFormatToJSON(
1006
- getPromptVersionResponseFormat: GetPromptVersionResponseFormat,
1007
- ): string {
1008
- return JSON.stringify(
1009
- GetPromptVersionResponseFormat$outboundSchema.parse(
1010
- getPromptVersionResponseFormat,
1011
- ),
1012
- );
1013
- }
1014
-
1015
- export function getPromptVersionResponseFormatFromJSON(
1016
- jsonString: string,
1017
- ): SafeParseResult<GetPromptVersionResponseFormat, SDKValidationError> {
1018
- return safeParse(
1019
- jsonString,
1020
- (x) => GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)),
1021
- `Failed to parse 'GetPromptVersionResponseFormat' from JSON`,
1022
- );
1023
- }
1024
-
1025
- /** @internal */
1026
- export const GetPromptVersionPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1027
- typeof GetPromptVersionPhotoRealVersion
1028
- > = z.nativeEnum(GetPromptVersionPhotoRealVersion);
1029
-
1030
- /** @internal */
1031
- export const GetPromptVersionPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1032
- typeof GetPromptVersionPhotoRealVersion
1033
- > = GetPromptVersionPhotoRealVersion$inboundSchema;
1034
-
1035
- /**
1036
- * @internal
1037
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1038
- */
1039
- export namespace GetPromptVersionPhotoRealVersion$ {
1040
- /** @deprecated use `GetPromptVersionPhotoRealVersion$inboundSchema` instead. */
1041
- export const inboundSchema = GetPromptVersionPhotoRealVersion$inboundSchema;
1042
- /** @deprecated use `GetPromptVersionPhotoRealVersion$outboundSchema` instead. */
1043
- export const outboundSchema = GetPromptVersionPhotoRealVersion$outboundSchema;
1044
- }
1045
-
1046
- /** @internal */
1047
- export const GetPromptVersionEncodingFormat$inboundSchema: z.ZodNativeEnum<
1048
- typeof GetPromptVersionEncodingFormat
1049
- > = z.nativeEnum(GetPromptVersionEncodingFormat);
1050
-
1051
- /** @internal */
1052
- export const GetPromptVersionEncodingFormat$outboundSchema: z.ZodNativeEnum<
1053
- typeof GetPromptVersionEncodingFormat
1054
- > = GetPromptVersionEncodingFormat$inboundSchema;
1055
-
1056
- /**
1057
- * @internal
1058
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1059
- */
1060
- export namespace GetPromptVersionEncodingFormat$ {
1061
- /** @deprecated use `GetPromptVersionEncodingFormat$inboundSchema` instead. */
1062
- export const inboundSchema = GetPromptVersionEncodingFormat$inboundSchema;
1063
- /** @deprecated use `GetPromptVersionEncodingFormat$outboundSchema` instead. */
1064
- export const outboundSchema = GetPromptVersionEncodingFormat$outboundSchema;
1065
- }
1066
-
1067
- /** @internal */
1068
- export const GetPromptVersionReasoningEffort$inboundSchema: z.ZodNativeEnum<
1069
- typeof GetPromptVersionReasoningEffort
1070
- > = z.nativeEnum(GetPromptVersionReasoningEffort);
1071
-
1072
- /** @internal */
1073
- export const GetPromptVersionReasoningEffort$outboundSchema: z.ZodNativeEnum<
1074
- typeof GetPromptVersionReasoningEffort
1075
- > = GetPromptVersionReasoningEffort$inboundSchema;
1076
-
1077
- /**
1078
- * @internal
1079
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1080
- */
1081
- export namespace GetPromptVersionReasoningEffort$ {
1082
- /** @deprecated use `GetPromptVersionReasoningEffort$inboundSchema` instead. */
1083
- export const inboundSchema = GetPromptVersionReasoningEffort$inboundSchema;
1084
- /** @deprecated use `GetPromptVersionReasoningEffort$outboundSchema` instead. */
1085
- export const outboundSchema = GetPromptVersionReasoningEffort$outboundSchema;
1086
- }
1087
-
1088
- /** @internal */
1089
- export const GetPromptVersionVerbosity$inboundSchema: z.ZodNativeEnum<
1090
- typeof GetPromptVersionVerbosity
1091
- > = z.nativeEnum(GetPromptVersionVerbosity);
1092
-
1093
- /** @internal */
1094
- export const GetPromptVersionVerbosity$outboundSchema: z.ZodNativeEnum<
1095
- typeof GetPromptVersionVerbosity
1096
- > = GetPromptVersionVerbosity$inboundSchema;
1097
-
1098
- /**
1099
- * @internal
1100
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1101
- */
1102
- export namespace GetPromptVersionVerbosity$ {
1103
- /** @deprecated use `GetPromptVersionVerbosity$inboundSchema` instead. */
1104
- export const inboundSchema = GetPromptVersionVerbosity$inboundSchema;
1105
- /** @deprecated use `GetPromptVersionVerbosity$outboundSchema` instead. */
1106
- export const outboundSchema = GetPromptVersionVerbosity$outboundSchema;
1107
- }
1108
-
1109
- /** @internal */
1110
- export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
1111
- GetPromptVersionModelParameters,
1112
- z.ZodTypeDef,
1113
- unknown
1114
- > = z.object({
1115
- temperature: z.number().optional(),
1116
- maxTokens: z.number().optional(),
1117
- topK: z.number().optional(),
1118
- topP: z.number().optional(),
1119
- frequencyPenalty: z.number().optional(),
1120
- presencePenalty: z.number().optional(),
1121
- numImages: z.number().optional(),
1122
- seed: z.number().optional(),
1123
- format: GetPromptVersionFormat$inboundSchema.optional(),
1124
- dimensions: z.string().optional(),
1125
- quality: z.string().optional(),
1126
- style: z.string().optional(),
1127
- responseFormat: z.nullable(
1128
- z.union([
1129
- z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
1130
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
1131
- z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
1132
- ]),
1133
- ).optional(),
1134
- photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
1135
- encoding_format: GetPromptVersionEncodingFormat$inboundSchema.optional(),
1136
- reasoningEffort: GetPromptVersionReasoningEffort$inboundSchema.optional(),
1137
- budgetTokens: z.number().optional(),
1138
- verbosity: GetPromptVersionVerbosity$inboundSchema.optional(),
1139
- }).transform((v) => {
1140
- return remap$(v, {
1141
- "encoding_format": "encodingFormat",
1142
- });
1143
- });
1144
-
1145
- /** @internal */
1146
- export type GetPromptVersionModelParameters$Outbound = {
1147
- temperature?: number | undefined;
1148
- maxTokens?: number | undefined;
1149
- topK?: number | undefined;
1150
- topP?: number | undefined;
1151
- frequencyPenalty?: number | undefined;
1152
- presencePenalty?: number | undefined;
1153
- numImages?: number | undefined;
1154
- seed?: number | undefined;
1155
- format?: string | undefined;
1156
- dimensions?: string | undefined;
1157
- quality?: string | undefined;
1158
- style?: string | undefined;
1159
- responseFormat?:
1160
- | GetPromptVersionResponseFormat1$Outbound
1161
- | GetPromptVersionResponseFormat2$Outbound
1162
- | GetPromptVersionResponseFormat3$Outbound
1163
- | null
1164
- | undefined;
1165
- photoRealVersion?: string | undefined;
1166
- encoding_format?: string | undefined;
1167
- reasoningEffort?: string | undefined;
1168
- budgetTokens?: number | undefined;
1169
- verbosity?: string | undefined;
1170
- };
1171
-
1172
- /** @internal */
1173
- export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
1174
- GetPromptVersionModelParameters$Outbound,
1175
- z.ZodTypeDef,
1176
- GetPromptVersionModelParameters
1177
- > = z.object({
1178
- temperature: z.number().optional(),
1179
- maxTokens: z.number().optional(),
1180
- topK: z.number().optional(),
1181
- topP: z.number().optional(),
1182
- frequencyPenalty: z.number().optional(),
1183
- presencePenalty: z.number().optional(),
1184
- numImages: z.number().optional(),
1185
- seed: z.number().optional(),
1186
- format: GetPromptVersionFormat$outboundSchema.optional(),
1187
- dimensions: z.string().optional(),
1188
- quality: z.string().optional(),
1189
- style: z.string().optional(),
1190
- responseFormat: z.nullable(
1191
- z.union([
1192
- z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
1193
- z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
1194
- z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
1195
- ]),
1196
- ).optional(),
1197
- photoRealVersion: GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
1198
- encodingFormat: GetPromptVersionEncodingFormat$outboundSchema.optional(),
1199
- reasoningEffort: GetPromptVersionReasoningEffort$outboundSchema.optional(),
1200
- budgetTokens: z.number().optional(),
1201
- verbosity: GetPromptVersionVerbosity$outboundSchema.optional(),
1202
- }).transform((v) => {
1203
- return remap$(v, {
1204
- encodingFormat: "encoding_format",
1205
- });
1206
- });
1207
-
1208
- /**
1209
- * @internal
1210
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1211
- */
1212
- export namespace GetPromptVersionModelParameters$ {
1213
- /** @deprecated use `GetPromptVersionModelParameters$inboundSchema` instead. */
1214
- export const inboundSchema = GetPromptVersionModelParameters$inboundSchema;
1215
- /** @deprecated use `GetPromptVersionModelParameters$outboundSchema` instead. */
1216
- export const outboundSchema = GetPromptVersionModelParameters$outboundSchema;
1217
- /** @deprecated use `GetPromptVersionModelParameters$Outbound` instead. */
1218
- export type Outbound = GetPromptVersionModelParameters$Outbound;
1219
- }
1220
-
1221
- export function getPromptVersionModelParametersToJSON(
1222
- getPromptVersionModelParameters: GetPromptVersionModelParameters,
1223
- ): string {
1224
- return JSON.stringify(
1225
- GetPromptVersionModelParameters$outboundSchema.parse(
1226
- getPromptVersionModelParameters,
1227
- ),
1228
- );
1229
- }
1230
-
1231
- export function getPromptVersionModelParametersFromJSON(
1232
- jsonString: string,
1233
- ): SafeParseResult<GetPromptVersionModelParameters, SDKValidationError> {
1234
- return safeParse(
1235
- jsonString,
1236
- (x) => GetPromptVersionModelParameters$inboundSchema.parse(JSON.parse(x)),
1237
- `Failed to parse 'GetPromptVersionModelParameters' from JSON`,
1238
- );
1239
- }
1240
-
1241
- /** @internal */
1242
- export const GetPromptVersionProvider$inboundSchema: z.ZodNativeEnum<
1243
- typeof GetPromptVersionProvider
1244
- > = z.nativeEnum(GetPromptVersionProvider);
1245
-
1246
- /** @internal */
1247
- export const GetPromptVersionProvider$outboundSchema: z.ZodNativeEnum<
1248
- typeof GetPromptVersionProvider
1249
- > = GetPromptVersionProvider$inboundSchema;
1250
-
1251
- /**
1252
- * @internal
1253
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1254
- */
1255
- export namespace GetPromptVersionProvider$ {
1256
- /** @deprecated use `GetPromptVersionProvider$inboundSchema` instead. */
1257
- export const inboundSchema = GetPromptVersionProvider$inboundSchema;
1258
- /** @deprecated use `GetPromptVersionProvider$outboundSchema` instead. */
1259
- export const outboundSchema = GetPromptVersionProvider$outboundSchema;
1260
- }
1261
-
1262
- /** @internal */
1263
- export const GetPromptVersionRole$inboundSchema: z.ZodNativeEnum<
1264
- typeof GetPromptVersionRole
1265
- > = z.nativeEnum(GetPromptVersionRole);
1266
-
1267
- /** @internal */
1268
- export const GetPromptVersionRole$outboundSchema: z.ZodNativeEnum<
1269
- typeof GetPromptVersionRole
1270
- > = GetPromptVersionRole$inboundSchema;
1271
-
1272
- /**
1273
- * @internal
1274
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1275
- */
1276
- export namespace GetPromptVersionRole$ {
1277
- /** @deprecated use `GetPromptVersionRole$inboundSchema` instead. */
1278
- export const inboundSchema = GetPromptVersionRole$inboundSchema;
1279
- /** @deprecated use `GetPromptVersionRole$outboundSchema` instead. */
1280
- export const outboundSchema = GetPromptVersionRole$outboundSchema;
1281
- }
1282
-
1283
- /** @internal */
1284
- export const GetPromptVersion2PromptsResponseType$inboundSchema:
1285
- z.ZodNativeEnum<typeof GetPromptVersion2PromptsResponseType> = z.nativeEnum(
1286
- GetPromptVersion2PromptsResponseType,
1287
- );
1288
-
1289
- /** @internal */
1290
- export const GetPromptVersion2PromptsResponseType$outboundSchema:
1291
- z.ZodNativeEnum<typeof GetPromptVersion2PromptsResponseType> =
1292
- GetPromptVersion2PromptsResponseType$inboundSchema;
1293
-
1294
- /**
1295
- * @internal
1296
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1297
- */
1298
- export namespace GetPromptVersion2PromptsResponseType$ {
1299
- /** @deprecated use `GetPromptVersion2PromptsResponseType$inboundSchema` instead. */
1300
- export const inboundSchema =
1301
- GetPromptVersion2PromptsResponseType$inboundSchema;
1302
- /** @deprecated use `GetPromptVersion2PromptsResponseType$outboundSchema` instead. */
1303
- export const outboundSchema =
1304
- GetPromptVersion2PromptsResponseType$outboundSchema;
1305
- }
1306
-
1307
- /** @internal */
1308
- export const GetPromptVersion2File$inboundSchema: z.ZodType<
1309
- GetPromptVersion2File,
1310
- z.ZodTypeDef,
1311
- unknown
1312
- > = z.object({
1313
- file_data: z.string(),
1314
- filename: z.string().optional(),
1315
- }).transform((v) => {
1316
- return remap$(v, {
1317
- "file_data": "fileData",
1318
- });
1319
- });
1320
-
1321
- /** @internal */
1322
- export type GetPromptVersion2File$Outbound = {
1323
- file_data: string;
1324
- filename?: string | undefined;
1325
- };
1326
-
1327
- /** @internal */
1328
- export const GetPromptVersion2File$outboundSchema: z.ZodType<
1329
- GetPromptVersion2File$Outbound,
1330
- z.ZodTypeDef,
1331
- GetPromptVersion2File
1332
- > = z.object({
1333
- fileData: z.string(),
1334
- filename: z.string().optional(),
1335
- }).transform((v) => {
1336
- return remap$(v, {
1337
- fileData: "file_data",
1338
- });
1339
- });
1340
-
1341
- /**
1342
- * @internal
1343
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1344
- */
1345
- export namespace GetPromptVersion2File$ {
1346
- /** @deprecated use `GetPromptVersion2File$inboundSchema` instead. */
1347
- export const inboundSchema = GetPromptVersion2File$inboundSchema;
1348
- /** @deprecated use `GetPromptVersion2File$outboundSchema` instead. */
1349
- export const outboundSchema = GetPromptVersion2File$outboundSchema;
1350
- /** @deprecated use `GetPromptVersion2File$Outbound` instead. */
1351
- export type Outbound = GetPromptVersion2File$Outbound;
1352
- }
1353
-
1354
- export function getPromptVersion2FileToJSON(
1355
- getPromptVersion2File: GetPromptVersion2File,
1356
- ): string {
1357
- return JSON.stringify(
1358
- GetPromptVersion2File$outboundSchema.parse(getPromptVersion2File),
1359
- );
1360
- }
1361
-
1362
- export function getPromptVersion2FileFromJSON(
1363
- jsonString: string,
1364
- ): SafeParseResult<GetPromptVersion2File, SDKValidationError> {
1365
- return safeParse(
1366
- jsonString,
1367
- (x) => GetPromptVersion2File$inboundSchema.parse(JSON.parse(x)),
1368
- `Failed to parse 'GetPromptVersion2File' from JSON`,
1369
- );
1370
- }
1371
-
1372
- /** @internal */
1373
- export const GetPromptVersion23$inboundSchema: z.ZodType<
1374
- GetPromptVersion23,
1375
- z.ZodTypeDef,
1376
- unknown
1377
- > = z.object({
1378
- type: GetPromptVersion2PromptsResponseType$inboundSchema,
1379
- file: z.lazy(() => GetPromptVersion2File$inboundSchema),
1380
- });
1381
-
1382
- /** @internal */
1383
- export type GetPromptVersion23$Outbound = {
1384
- type: string;
1385
- file: GetPromptVersion2File$Outbound;
1386
- };
1387
-
1388
- /** @internal */
1389
- export const GetPromptVersion23$outboundSchema: z.ZodType<
1390
- GetPromptVersion23$Outbound,
1391
- z.ZodTypeDef,
1392
- GetPromptVersion23
1393
- > = z.object({
1394
- type: GetPromptVersion2PromptsResponseType$outboundSchema,
1395
- file: z.lazy(() => GetPromptVersion2File$outboundSchema),
1396
- });
1397
-
1398
- /**
1399
- * @internal
1400
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1401
- */
1402
- export namespace GetPromptVersion23$ {
1403
- /** @deprecated use `GetPromptVersion23$inboundSchema` instead. */
1404
- export const inboundSchema = GetPromptVersion23$inboundSchema;
1405
- /** @deprecated use `GetPromptVersion23$outboundSchema` instead. */
1406
- export const outboundSchema = GetPromptVersion23$outboundSchema;
1407
- /** @deprecated use `GetPromptVersion23$Outbound` instead. */
1408
- export type Outbound = GetPromptVersion23$Outbound;
1409
- }
1410
-
1411
- export function getPromptVersion23ToJSON(
1412
- getPromptVersion23: GetPromptVersion23,
1413
- ): string {
1414
- return JSON.stringify(
1415
- GetPromptVersion23$outboundSchema.parse(getPromptVersion23),
1416
- );
1417
- }
1418
-
1419
- export function getPromptVersion23FromJSON(
1420
- jsonString: string,
1421
- ): SafeParseResult<GetPromptVersion23, SDKValidationError> {
1422
- return safeParse(
1423
- jsonString,
1424
- (x) => GetPromptVersion23$inboundSchema.parse(JSON.parse(x)),
1425
- `Failed to parse 'GetPromptVersion23' from JSON`,
1426
- );
1427
- }
1428
-
1429
- /** @internal */
1430
- export const GetPromptVersion2PromptsType$inboundSchema: z.ZodNativeEnum<
1431
- typeof GetPromptVersion2PromptsType
1432
- > = z.nativeEnum(GetPromptVersion2PromptsType);
1433
-
1434
- /** @internal */
1435
- export const GetPromptVersion2PromptsType$outboundSchema: z.ZodNativeEnum<
1436
- typeof GetPromptVersion2PromptsType
1437
- > = GetPromptVersion2PromptsType$inboundSchema;
1438
-
1439
- /**
1440
- * @internal
1441
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1442
- */
1443
- export namespace GetPromptVersion2PromptsType$ {
1444
- /** @deprecated use `GetPromptVersion2PromptsType$inboundSchema` instead. */
1445
- export const inboundSchema = GetPromptVersion2PromptsType$inboundSchema;
1446
- /** @deprecated use `GetPromptVersion2PromptsType$outboundSchema` instead. */
1447
- export const outboundSchema = GetPromptVersion2PromptsType$outboundSchema;
1448
- }
1449
-
1450
- /** @internal */
1451
- export const GetPromptVersion2ImageUrl$inboundSchema: z.ZodType<
1452
- GetPromptVersion2ImageUrl,
1453
- z.ZodTypeDef,
1454
- unknown
1455
- > = z.object({
1456
- id: z.string().optional(),
1457
- url: z.string(),
1458
- detail: z.string().optional(),
1459
- });
1460
-
1461
- /** @internal */
1462
- export type GetPromptVersion2ImageUrl$Outbound = {
1463
- id?: string | undefined;
1464
- url: string;
1465
- detail?: string | undefined;
1466
- };
1467
-
1468
- /** @internal */
1469
- export const GetPromptVersion2ImageUrl$outboundSchema: z.ZodType<
1470
- GetPromptVersion2ImageUrl$Outbound,
1471
- z.ZodTypeDef,
1472
- GetPromptVersion2ImageUrl
1473
- > = z.object({
1474
- id: z.string().optional(),
1475
- url: z.string(),
1476
- detail: z.string().optional(),
1477
- });
1478
-
1479
- /**
1480
- * @internal
1481
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1482
- */
1483
- export namespace GetPromptVersion2ImageUrl$ {
1484
- /** @deprecated use `GetPromptVersion2ImageUrl$inboundSchema` instead. */
1485
- export const inboundSchema = GetPromptVersion2ImageUrl$inboundSchema;
1486
- /** @deprecated use `GetPromptVersion2ImageUrl$outboundSchema` instead. */
1487
- export const outboundSchema = GetPromptVersion2ImageUrl$outboundSchema;
1488
- /** @deprecated use `GetPromptVersion2ImageUrl$Outbound` instead. */
1489
- export type Outbound = GetPromptVersion2ImageUrl$Outbound;
1490
- }
1491
-
1492
- export function getPromptVersion2ImageUrlToJSON(
1493
- getPromptVersion2ImageUrl: GetPromptVersion2ImageUrl,
1494
- ): string {
1495
- return JSON.stringify(
1496
- GetPromptVersion2ImageUrl$outboundSchema.parse(getPromptVersion2ImageUrl),
1497
- );
1498
- }
1499
-
1500
- export function getPromptVersion2ImageUrlFromJSON(
1501
- jsonString: string,
1502
- ): SafeParseResult<GetPromptVersion2ImageUrl, SDKValidationError> {
1503
- return safeParse(
1504
- jsonString,
1505
- (x) => GetPromptVersion2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1506
- `Failed to parse 'GetPromptVersion2ImageUrl' from JSON`,
1507
- );
1508
- }
1509
-
1510
- /** @internal */
1511
- export const GetPromptVersion22$inboundSchema: z.ZodType<
1512
- GetPromptVersion22,
1513
- z.ZodTypeDef,
1514
- unknown
1515
- > = z.object({
1516
- type: GetPromptVersion2PromptsType$inboundSchema,
1517
- image_url: z.lazy(() => GetPromptVersion2ImageUrl$inboundSchema),
1518
- }).transform((v) => {
1519
- return remap$(v, {
1520
- "image_url": "imageUrl",
1521
- });
1522
- });
1523
-
1524
- /** @internal */
1525
- export type GetPromptVersion22$Outbound = {
1526
- type: string;
1527
- image_url: GetPromptVersion2ImageUrl$Outbound;
1528
- };
1529
-
1530
- /** @internal */
1531
- export const GetPromptVersion22$outboundSchema: z.ZodType<
1532
- GetPromptVersion22$Outbound,
1533
- z.ZodTypeDef,
1534
- GetPromptVersion22
1535
- > = z.object({
1536
- type: GetPromptVersion2PromptsType$outboundSchema,
1537
- imageUrl: z.lazy(() => GetPromptVersion2ImageUrl$outboundSchema),
1538
- }).transform((v) => {
1539
- return remap$(v, {
1540
- imageUrl: "image_url",
1541
- });
1542
- });
1543
-
1544
- /**
1545
- * @internal
1546
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1547
- */
1548
- export namespace GetPromptVersion22$ {
1549
- /** @deprecated use `GetPromptVersion22$inboundSchema` instead. */
1550
- export const inboundSchema = GetPromptVersion22$inboundSchema;
1551
- /** @deprecated use `GetPromptVersion22$outboundSchema` instead. */
1552
- export const outboundSchema = GetPromptVersion22$outboundSchema;
1553
- /** @deprecated use `GetPromptVersion22$Outbound` instead. */
1554
- export type Outbound = GetPromptVersion22$Outbound;
1555
- }
1556
-
1557
- export function getPromptVersion22ToJSON(
1558
- getPromptVersion22: GetPromptVersion22,
1559
- ): string {
1560
- return JSON.stringify(
1561
- GetPromptVersion22$outboundSchema.parse(getPromptVersion22),
1562
- );
1563
- }
1564
-
1565
- export function getPromptVersion22FromJSON(
1566
- jsonString: string,
1567
- ): SafeParseResult<GetPromptVersion22, SDKValidationError> {
1568
- return safeParse(
1569
- jsonString,
1570
- (x) => GetPromptVersion22$inboundSchema.parse(JSON.parse(x)),
1571
- `Failed to parse 'GetPromptVersion22' from JSON`,
1572
- );
1573
- }
1574
-
1575
- /** @internal */
1576
- export const GetPromptVersion2Type$inboundSchema: z.ZodNativeEnum<
1577
- typeof GetPromptVersion2Type
1578
- > = z.nativeEnum(GetPromptVersion2Type);
1579
-
1580
- /** @internal */
1581
- export const GetPromptVersion2Type$outboundSchema: z.ZodNativeEnum<
1582
- typeof GetPromptVersion2Type
1583
- > = GetPromptVersion2Type$inboundSchema;
1584
-
1585
- /**
1586
- * @internal
1587
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1588
- */
1589
- export namespace GetPromptVersion2Type$ {
1590
- /** @deprecated use `GetPromptVersion2Type$inboundSchema` instead. */
1591
- export const inboundSchema = GetPromptVersion2Type$inboundSchema;
1592
- /** @deprecated use `GetPromptVersion2Type$outboundSchema` instead. */
1593
- export const outboundSchema = GetPromptVersion2Type$outboundSchema;
1594
- }
1595
-
1596
- /** @internal */
1597
- export const GetPromptVersion21$inboundSchema: z.ZodType<
1598
- GetPromptVersion21,
1599
- z.ZodTypeDef,
1600
- unknown
1601
- > = z.object({
1602
- type: GetPromptVersion2Type$inboundSchema,
1603
- text: z.string(),
1604
- });
1605
-
1606
- /** @internal */
1607
- export type GetPromptVersion21$Outbound = {
1608
- type: string;
1609
- text: string;
1610
- };
1611
-
1612
- /** @internal */
1613
- export const GetPromptVersion21$outboundSchema: z.ZodType<
1614
- GetPromptVersion21$Outbound,
1615
- z.ZodTypeDef,
1616
- GetPromptVersion21
1617
- > = z.object({
1618
- type: GetPromptVersion2Type$outboundSchema,
1619
- text: z.string(),
1620
- });
1621
-
1622
- /**
1623
- * @internal
1624
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1625
- */
1626
- export namespace GetPromptVersion21$ {
1627
- /** @deprecated use `GetPromptVersion21$inboundSchema` instead. */
1628
- export const inboundSchema = GetPromptVersion21$inboundSchema;
1629
- /** @deprecated use `GetPromptVersion21$outboundSchema` instead. */
1630
- export const outboundSchema = GetPromptVersion21$outboundSchema;
1631
- /** @deprecated use `GetPromptVersion21$Outbound` instead. */
1632
- export type Outbound = GetPromptVersion21$Outbound;
1633
- }
1634
-
1635
- export function getPromptVersion21ToJSON(
1636
- getPromptVersion21: GetPromptVersion21,
1637
- ): string {
1638
- return JSON.stringify(
1639
- GetPromptVersion21$outboundSchema.parse(getPromptVersion21),
1640
- );
1641
- }
1642
-
1643
- export function getPromptVersion21FromJSON(
1644
- jsonString: string,
1645
- ): SafeParseResult<GetPromptVersion21, SDKValidationError> {
1646
- return safeParse(
1647
- jsonString,
1648
- (x) => GetPromptVersion21$inboundSchema.parse(JSON.parse(x)),
1649
- `Failed to parse 'GetPromptVersion21' from JSON`,
1650
- );
1651
- }
1652
-
1653
- /** @internal */
1654
- export const GetPromptVersionContent2$inboundSchema: z.ZodType<
1655
- GetPromptVersionContent2,
1656
- z.ZodTypeDef,
1657
- unknown
1658
- > = z.union([
1659
- z.lazy(() => GetPromptVersion21$inboundSchema),
1660
- z.lazy(() => GetPromptVersion22$inboundSchema),
1661
- z.lazy(() => GetPromptVersion23$inboundSchema),
1662
- ]);
1663
-
1664
- /** @internal */
1665
- export type GetPromptVersionContent2$Outbound =
1666
- | GetPromptVersion21$Outbound
1667
- | GetPromptVersion22$Outbound
1668
- | GetPromptVersion23$Outbound;
1669
-
1670
- /** @internal */
1671
- export const GetPromptVersionContent2$outboundSchema: z.ZodType<
1672
- GetPromptVersionContent2$Outbound,
1673
- z.ZodTypeDef,
1674
- GetPromptVersionContent2
1675
- > = z.union([
1676
- z.lazy(() => GetPromptVersion21$outboundSchema),
1677
- z.lazy(() => GetPromptVersion22$outboundSchema),
1678
- z.lazy(() => GetPromptVersion23$outboundSchema),
1679
- ]);
1680
-
1681
- /**
1682
- * @internal
1683
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1684
- */
1685
- export namespace GetPromptVersionContent2$ {
1686
- /** @deprecated use `GetPromptVersionContent2$inboundSchema` instead. */
1687
- export const inboundSchema = GetPromptVersionContent2$inboundSchema;
1688
- /** @deprecated use `GetPromptVersionContent2$outboundSchema` instead. */
1689
- export const outboundSchema = GetPromptVersionContent2$outboundSchema;
1690
- /** @deprecated use `GetPromptVersionContent2$Outbound` instead. */
1691
- export type Outbound = GetPromptVersionContent2$Outbound;
1692
- }
1693
-
1694
- export function getPromptVersionContent2ToJSON(
1695
- getPromptVersionContent2: GetPromptVersionContent2,
1696
- ): string {
1697
- return JSON.stringify(
1698
- GetPromptVersionContent2$outboundSchema.parse(getPromptVersionContent2),
1699
- );
1700
- }
1701
-
1702
- export function getPromptVersionContent2FromJSON(
1703
- jsonString: string,
1704
- ): SafeParseResult<GetPromptVersionContent2, SDKValidationError> {
1705
- return safeParse(
1706
- jsonString,
1707
- (x) => GetPromptVersionContent2$inboundSchema.parse(JSON.parse(x)),
1708
- `Failed to parse 'GetPromptVersionContent2' from JSON`,
1709
- );
1710
- }
1711
-
1712
- /** @internal */
1713
- export const GetPromptVersionContent$inboundSchema: z.ZodType<
1714
- GetPromptVersionContent,
1715
- z.ZodTypeDef,
1716
- unknown
1717
- > = z.union([
1718
- z.string(),
1719
- z.array(z.union([
1720
- z.lazy(() => GetPromptVersion21$inboundSchema),
1721
- z.lazy(() => GetPromptVersion22$inboundSchema),
1722
- z.lazy(() => GetPromptVersion23$inboundSchema),
1723
- ])),
1724
- ]);
1725
-
1726
- /** @internal */
1727
- export type GetPromptVersionContent$Outbound =
1728
- | string
1729
- | Array<
1730
- | GetPromptVersion21$Outbound
1731
- | GetPromptVersion22$Outbound
1732
- | GetPromptVersion23$Outbound
1733
- >;
1734
-
1735
- /** @internal */
1736
- export const GetPromptVersionContent$outboundSchema: z.ZodType<
1737
- GetPromptVersionContent$Outbound,
1738
- z.ZodTypeDef,
1739
- GetPromptVersionContent
1740
- > = z.union([
1741
- z.string(),
1742
- z.array(z.union([
1743
- z.lazy(() => GetPromptVersion21$outboundSchema),
1744
- z.lazy(() => GetPromptVersion22$outboundSchema),
1745
- z.lazy(() => GetPromptVersion23$outboundSchema),
1746
- ])),
1747
- ]);
1748
-
1749
- /**
1750
- * @internal
1751
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1752
- */
1753
- export namespace GetPromptVersionContent$ {
1754
- /** @deprecated use `GetPromptVersionContent$inboundSchema` instead. */
1755
- export const inboundSchema = GetPromptVersionContent$inboundSchema;
1756
- /** @deprecated use `GetPromptVersionContent$outboundSchema` instead. */
1757
- export const outboundSchema = GetPromptVersionContent$outboundSchema;
1758
- /** @deprecated use `GetPromptVersionContent$Outbound` instead. */
1759
- export type Outbound = GetPromptVersionContent$Outbound;
1760
- }
1761
-
1762
- export function getPromptVersionContentToJSON(
1763
- getPromptVersionContent: GetPromptVersionContent,
1764
- ): string {
1765
- return JSON.stringify(
1766
- GetPromptVersionContent$outboundSchema.parse(getPromptVersionContent),
1767
- );
1768
- }
1769
-
1770
- export function getPromptVersionContentFromJSON(
1771
- jsonString: string,
1772
- ): SafeParseResult<GetPromptVersionContent, SDKValidationError> {
1773
- return safeParse(
1774
- jsonString,
1775
- (x) => GetPromptVersionContent$inboundSchema.parse(JSON.parse(x)),
1776
- `Failed to parse 'GetPromptVersionContent' from JSON`,
1777
- );
1778
- }
1779
-
1780
- /** @internal */
1781
- export const GetPromptVersionType$inboundSchema: z.ZodNativeEnum<
1782
- typeof GetPromptVersionType
1783
- > = z.nativeEnum(GetPromptVersionType);
1784
-
1785
- /** @internal */
1786
- export const GetPromptVersionType$outboundSchema: z.ZodNativeEnum<
1787
- typeof GetPromptVersionType
1788
- > = GetPromptVersionType$inboundSchema;
1789
-
1790
- /**
1791
- * @internal
1792
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1793
- */
1794
- export namespace GetPromptVersionType$ {
1795
- /** @deprecated use `GetPromptVersionType$inboundSchema` instead. */
1796
- export const inboundSchema = GetPromptVersionType$inboundSchema;
1797
- /** @deprecated use `GetPromptVersionType$outboundSchema` instead. */
1798
- export const outboundSchema = GetPromptVersionType$outboundSchema;
1799
- }
1800
-
1801
- /** @internal */
1802
- export const GetPromptVersionFunction$inboundSchema: z.ZodType<
1803
- GetPromptVersionFunction,
1804
- z.ZodTypeDef,
1805
- unknown
1806
- > = z.object({
1807
- name: z.string(),
1808
- arguments: z.string(),
1809
- });
1810
-
1811
- /** @internal */
1812
- export type GetPromptVersionFunction$Outbound = {
1813
- name: string;
1814
- arguments: string;
1815
- };
1816
-
1817
- /** @internal */
1818
- export const GetPromptVersionFunction$outboundSchema: z.ZodType<
1819
- GetPromptVersionFunction$Outbound,
1820
- z.ZodTypeDef,
1821
- GetPromptVersionFunction
1822
- > = z.object({
1823
- name: z.string(),
1824
- arguments: z.string(),
1825
- });
1826
-
1827
- /**
1828
- * @internal
1829
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1830
- */
1831
- export namespace GetPromptVersionFunction$ {
1832
- /** @deprecated use `GetPromptVersionFunction$inboundSchema` instead. */
1833
- export const inboundSchema = GetPromptVersionFunction$inboundSchema;
1834
- /** @deprecated use `GetPromptVersionFunction$outboundSchema` instead. */
1835
- export const outboundSchema = GetPromptVersionFunction$outboundSchema;
1836
- /** @deprecated use `GetPromptVersionFunction$Outbound` instead. */
1837
- export type Outbound = GetPromptVersionFunction$Outbound;
1838
- }
1839
-
1840
- export function getPromptVersionFunctionToJSON(
1841
- getPromptVersionFunction: GetPromptVersionFunction,
1842
- ): string {
1843
- return JSON.stringify(
1844
- GetPromptVersionFunction$outboundSchema.parse(getPromptVersionFunction),
1845
- );
1846
- }
1847
-
1848
- export function getPromptVersionFunctionFromJSON(
1849
- jsonString: string,
1850
- ): SafeParseResult<GetPromptVersionFunction, SDKValidationError> {
1851
- return safeParse(
1852
- jsonString,
1853
- (x) => GetPromptVersionFunction$inboundSchema.parse(JSON.parse(x)),
1854
- `Failed to parse 'GetPromptVersionFunction' from JSON`,
1855
- );
1856
- }
1857
-
1858
- /** @internal */
1859
- export const GetPromptVersionToolCalls$inboundSchema: z.ZodType<
1860
- GetPromptVersionToolCalls,
1861
- z.ZodTypeDef,
1862
- unknown
1863
- > = z.object({
1864
- id: z.string().optional(),
1865
- index: z.number().optional(),
1866
- type: GetPromptVersionType$inboundSchema,
1867
- function: z.lazy(() => GetPromptVersionFunction$inboundSchema),
1868
- });
1869
-
1870
- /** @internal */
1871
- export type GetPromptVersionToolCalls$Outbound = {
1872
- id?: string | undefined;
1873
- index?: number | undefined;
1874
- type: string;
1875
- function: GetPromptVersionFunction$Outbound;
1876
- };
1877
-
1878
- /** @internal */
1879
- export const GetPromptVersionToolCalls$outboundSchema: z.ZodType<
1880
- GetPromptVersionToolCalls$Outbound,
1881
- z.ZodTypeDef,
1882
- GetPromptVersionToolCalls
1883
- > = z.object({
1884
- id: z.string().optional(),
1885
- index: z.number().optional(),
1886
- type: GetPromptVersionType$outboundSchema,
1887
- function: z.lazy(() => GetPromptVersionFunction$outboundSchema),
1888
- });
1889
-
1890
- /**
1891
- * @internal
1892
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1893
- */
1894
- export namespace GetPromptVersionToolCalls$ {
1895
- /** @deprecated use `GetPromptVersionToolCalls$inboundSchema` instead. */
1896
- export const inboundSchema = GetPromptVersionToolCalls$inboundSchema;
1897
- /** @deprecated use `GetPromptVersionToolCalls$outboundSchema` instead. */
1898
- export const outboundSchema = GetPromptVersionToolCalls$outboundSchema;
1899
- /** @deprecated use `GetPromptVersionToolCalls$Outbound` instead. */
1900
- export type Outbound = GetPromptVersionToolCalls$Outbound;
1901
- }
1902
-
1903
- export function getPromptVersionToolCallsToJSON(
1904
- getPromptVersionToolCalls: GetPromptVersionToolCalls,
1905
- ): string {
1906
- return JSON.stringify(
1907
- GetPromptVersionToolCalls$outboundSchema.parse(getPromptVersionToolCalls),
1908
- );
1909
- }
1910
-
1911
- export function getPromptVersionToolCallsFromJSON(
1912
- jsonString: string,
1913
- ): SafeParseResult<GetPromptVersionToolCalls, SDKValidationError> {
1914
- return safeParse(
1915
- jsonString,
1916
- (x) => GetPromptVersionToolCalls$inboundSchema.parse(JSON.parse(x)),
1917
- `Failed to parse 'GetPromptVersionToolCalls' from JSON`,
1918
- );
1919
- }
1920
-
1921
- /** @internal */
1922
- export const GetPromptVersionMessages$inboundSchema: z.ZodType<
1923
- GetPromptVersionMessages,
1924
- z.ZodTypeDef,
1925
- unknown
1926
- > = z.object({
1927
- role: GetPromptVersionRole$inboundSchema,
1928
- content: z.union([
1929
- z.string(),
1930
- z.array(z.union([
1931
- z.lazy(() => GetPromptVersion21$inboundSchema),
1932
- z.lazy(() => GetPromptVersion22$inboundSchema),
1933
- z.lazy(() => GetPromptVersion23$inboundSchema),
1934
- ])),
1935
- ]),
1936
- tool_calls: z.array(z.lazy(() => GetPromptVersionToolCalls$inboundSchema))
1937
- .optional(),
1938
- tool_call_id: z.string().optional(),
1939
- }).transform((v) => {
1940
- return remap$(v, {
1941
- "tool_calls": "toolCalls",
1942
- "tool_call_id": "toolCallId",
1943
- });
1944
- });
1945
-
1946
- /** @internal */
1947
- export type GetPromptVersionMessages$Outbound = {
1948
- role: string;
1949
- content:
1950
- | string
1951
- | Array<
1952
- | GetPromptVersion21$Outbound
1953
- | GetPromptVersion22$Outbound
1954
- | GetPromptVersion23$Outbound
1955
- >;
1956
- tool_calls?: Array<GetPromptVersionToolCalls$Outbound> | undefined;
1957
- tool_call_id?: string | undefined;
1958
- };
1959
-
1960
- /** @internal */
1961
- export const GetPromptVersionMessages$outboundSchema: z.ZodType<
1962
- GetPromptVersionMessages$Outbound,
1963
- z.ZodTypeDef,
1964
- GetPromptVersionMessages
1965
- > = z.object({
1966
- role: GetPromptVersionRole$outboundSchema,
1967
- content: z.union([
1968
- z.string(),
1969
- z.array(z.union([
1970
- z.lazy(() => GetPromptVersion21$outboundSchema),
1971
- z.lazy(() => GetPromptVersion22$outboundSchema),
1972
- z.lazy(() => GetPromptVersion23$outboundSchema),
1973
- ])),
1974
- ]),
1975
- toolCalls: z.array(z.lazy(() => GetPromptVersionToolCalls$outboundSchema))
1976
- .optional(),
1977
- toolCallId: z.string().optional(),
1978
- }).transform((v) => {
1979
- return remap$(v, {
1980
- toolCalls: "tool_calls",
1981
- toolCallId: "tool_call_id",
1982
- });
1983
- });
1984
-
1985
- /**
1986
- * @internal
1987
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1988
- */
1989
- export namespace GetPromptVersionMessages$ {
1990
- /** @deprecated use `GetPromptVersionMessages$inboundSchema` instead. */
1991
- export const inboundSchema = GetPromptVersionMessages$inboundSchema;
1992
- /** @deprecated use `GetPromptVersionMessages$outboundSchema` instead. */
1993
- export const outboundSchema = GetPromptVersionMessages$outboundSchema;
1994
- /** @deprecated use `GetPromptVersionMessages$Outbound` instead. */
1995
- export type Outbound = GetPromptVersionMessages$Outbound;
1996
- }
1997
-
1998
- export function getPromptVersionMessagesToJSON(
1999
- getPromptVersionMessages: GetPromptVersionMessages,
2000
- ): string {
2001
- return JSON.stringify(
2002
- GetPromptVersionMessages$outboundSchema.parse(getPromptVersionMessages),
2003
- );
2004
- }
2005
-
2006
- export function getPromptVersionMessagesFromJSON(
2007
- jsonString: string,
2008
- ): SafeParseResult<GetPromptVersionMessages, SDKValidationError> {
2009
- return safeParse(
2010
- jsonString,
2011
- (x) => GetPromptVersionMessages$inboundSchema.parse(JSON.parse(x)),
2012
- `Failed to parse 'GetPromptVersionMessages' from JSON`,
2013
- );
2014
- }
2015
-
2016
- /** @internal */
2017
- export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
2018
- GetPromptVersionPromptConfig,
2019
- z.ZodTypeDef,
2020
- unknown
2021
- > = z.object({
2022
- stream: z.boolean().optional(),
2023
- model: z.string().optional(),
2024
- model_db_id: z.nullable(z.string()).optional(),
2025
- model_type: z.nullable(GetPromptVersionModelType$inboundSchema).optional(),
2026
- model_parameters: z.lazy(() => GetPromptVersionModelParameters$inboundSchema)
2027
- .optional(),
2028
- provider: GetPromptVersionProvider$inboundSchema.optional(),
2029
- integration_id: z.nullable(z.string()).optional(),
2030
- version: z.string().optional(),
2031
- messages: z.array(z.lazy(() => GetPromptVersionMessages$inboundSchema)),
2032
- }).transform((v) => {
2033
- return remap$(v, {
2034
- "model_db_id": "modelDbId",
2035
- "model_type": "modelType",
2036
- "model_parameters": "modelParameters",
2037
- "integration_id": "integrationId",
2038
- });
2039
- });
2040
-
2041
- /** @internal */
2042
- export type GetPromptVersionPromptConfig$Outbound = {
2043
- stream?: boolean | undefined;
2044
- model?: string | undefined;
2045
- model_db_id?: string | null | undefined;
2046
- model_type?: string | null | undefined;
2047
- model_parameters?: GetPromptVersionModelParameters$Outbound | undefined;
2048
- provider?: string | undefined;
2049
- integration_id?: string | null | undefined;
2050
- version?: string | undefined;
2051
- messages: Array<GetPromptVersionMessages$Outbound>;
2052
- };
2053
-
2054
- /** @internal */
2055
- export const GetPromptVersionPromptConfig$outboundSchema: z.ZodType<
2056
- GetPromptVersionPromptConfig$Outbound,
2057
- z.ZodTypeDef,
2058
- GetPromptVersionPromptConfig
2059
- > = z.object({
2060
- stream: z.boolean().optional(),
2061
- model: z.string().optional(),
2062
- modelDbId: z.nullable(z.string()).optional(),
2063
- modelType: z.nullable(GetPromptVersionModelType$outboundSchema).optional(),
2064
- modelParameters: z.lazy(() => GetPromptVersionModelParameters$outboundSchema)
2065
- .optional(),
2066
- provider: GetPromptVersionProvider$outboundSchema.optional(),
2067
- integrationId: z.nullable(z.string()).optional(),
2068
- version: z.string().optional(),
2069
- messages: z.array(z.lazy(() => GetPromptVersionMessages$outboundSchema)),
2070
- }).transform((v) => {
2071
- return remap$(v, {
2072
- modelDbId: "model_db_id",
2073
- modelType: "model_type",
2074
- modelParameters: "model_parameters",
2075
- integrationId: "integration_id",
2076
- });
2077
- });
2078
-
2079
- /**
2080
- * @internal
2081
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2082
- */
2083
- export namespace GetPromptVersionPromptConfig$ {
2084
- /** @deprecated use `GetPromptVersionPromptConfig$inboundSchema` instead. */
2085
- export const inboundSchema = GetPromptVersionPromptConfig$inboundSchema;
2086
- /** @deprecated use `GetPromptVersionPromptConfig$outboundSchema` instead. */
2087
- export const outboundSchema = GetPromptVersionPromptConfig$outboundSchema;
2088
- /** @deprecated use `GetPromptVersionPromptConfig$Outbound` instead. */
2089
- export type Outbound = GetPromptVersionPromptConfig$Outbound;
2090
- }
2091
-
2092
- export function getPromptVersionPromptConfigToJSON(
2093
- getPromptVersionPromptConfig: GetPromptVersionPromptConfig,
2094
- ): string {
2095
- return JSON.stringify(
2096
- GetPromptVersionPromptConfig$outboundSchema.parse(
2097
- getPromptVersionPromptConfig,
2098
- ),
2099
- );
2100
- }
2101
-
2102
- export function getPromptVersionPromptConfigFromJSON(
2103
- jsonString: string,
2104
- ): SafeParseResult<GetPromptVersionPromptConfig, SDKValidationError> {
2105
- return safeParse(
2106
- jsonString,
2107
- (x) => GetPromptVersionPromptConfig$inboundSchema.parse(JSON.parse(x)),
2108
- `Failed to parse 'GetPromptVersionPromptConfig' from JSON`,
2109
- );
2110
- }
2111
-
2112
- /** @internal */
2113
- export const GetPromptVersionUseCases$inboundSchema: z.ZodNativeEnum<
2114
- typeof GetPromptVersionUseCases
2115
- > = z.nativeEnum(GetPromptVersionUseCases);
2116
-
2117
- /** @internal */
2118
- export const GetPromptVersionUseCases$outboundSchema: z.ZodNativeEnum<
2119
- typeof GetPromptVersionUseCases
2120
- > = GetPromptVersionUseCases$inboundSchema;
2121
-
2122
- /**
2123
- * @internal
2124
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2125
- */
2126
- export namespace GetPromptVersionUseCases$ {
2127
- /** @deprecated use `GetPromptVersionUseCases$inboundSchema` instead. */
2128
- export const inboundSchema = GetPromptVersionUseCases$inboundSchema;
2129
- /** @deprecated use `GetPromptVersionUseCases$outboundSchema` instead. */
2130
- export const outboundSchema = GetPromptVersionUseCases$outboundSchema;
2131
- }
2132
-
2133
- /** @internal */
2134
- export const GetPromptVersionLanguage$inboundSchema: z.ZodNativeEnum<
2135
- typeof GetPromptVersionLanguage
2136
- > = z.nativeEnum(GetPromptVersionLanguage);
2137
-
2138
- /** @internal */
2139
- export const GetPromptVersionLanguage$outboundSchema: z.ZodNativeEnum<
2140
- typeof GetPromptVersionLanguage
2141
- > = GetPromptVersionLanguage$inboundSchema;
2142
-
2143
- /**
2144
- * @internal
2145
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2146
- */
2147
- export namespace GetPromptVersionLanguage$ {
2148
- /** @deprecated use `GetPromptVersionLanguage$inboundSchema` instead. */
2149
- export const inboundSchema = GetPromptVersionLanguage$inboundSchema;
2150
- /** @deprecated use `GetPromptVersionLanguage$outboundSchema` instead. */
2151
- export const outboundSchema = GetPromptVersionLanguage$outboundSchema;
2152
- }
2153
-
2154
- /** @internal */
2155
- export const GetPromptVersionMetadata$inboundSchema: z.ZodType<
2156
- GetPromptVersionMetadata,
2157
- z.ZodTypeDef,
2158
- unknown
2159
- > = z.object({
2160
- use_cases: z.array(GetPromptVersionUseCases$inboundSchema).optional(),
2161
- language: z.nullable(GetPromptVersionLanguage$inboundSchema).optional(),
2162
- }).transform((v) => {
2163
- return remap$(v, {
2164
- "use_cases": "useCases",
2165
- });
2166
- });
2167
-
2168
- /** @internal */
2169
- export type GetPromptVersionMetadata$Outbound = {
2170
- use_cases?: Array<string> | undefined;
2171
- language?: string | null | undefined;
2172
- };
2173
-
2174
- /** @internal */
2175
- export const GetPromptVersionMetadata$outboundSchema: z.ZodType<
2176
- GetPromptVersionMetadata$Outbound,
2177
- z.ZodTypeDef,
2178
- GetPromptVersionMetadata
2179
- > = z.object({
2180
- useCases: z.array(GetPromptVersionUseCases$outboundSchema).optional(),
2181
- language: z.nullable(GetPromptVersionLanguage$outboundSchema).optional(),
2182
- }).transform((v) => {
2183
- return remap$(v, {
2184
- useCases: "use_cases",
2185
- });
2186
- });
2187
-
2188
- /**
2189
- * @internal
2190
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2191
- */
2192
- export namespace GetPromptVersionMetadata$ {
2193
- /** @deprecated use `GetPromptVersionMetadata$inboundSchema` instead. */
2194
- export const inboundSchema = GetPromptVersionMetadata$inboundSchema;
2195
- /** @deprecated use `GetPromptVersionMetadata$outboundSchema` instead. */
2196
- export const outboundSchema = GetPromptVersionMetadata$outboundSchema;
2197
- /** @deprecated use `GetPromptVersionMetadata$Outbound` instead. */
2198
- export type Outbound = GetPromptVersionMetadata$Outbound;
2199
- }
2200
-
2201
- export function getPromptVersionMetadataToJSON(
2202
- getPromptVersionMetadata: GetPromptVersionMetadata,
2203
- ): string {
2204
- return JSON.stringify(
2205
- GetPromptVersionMetadata$outboundSchema.parse(getPromptVersionMetadata),
2206
- );
2207
- }
2208
-
2209
- export function getPromptVersionMetadataFromJSON(
2210
- jsonString: string,
2211
- ): SafeParseResult<GetPromptVersionMetadata, SDKValidationError> {
2212
- return safeParse(
2213
- jsonString,
2214
- (x) => GetPromptVersionMetadata$inboundSchema.parse(JSON.parse(x)),
2215
- `Failed to parse 'GetPromptVersionMetadata' from JSON`,
2216
- );
2217
- }
2218
-
2219
- /** @internal */
2220
- export const GetPromptVersionResponseBody$inboundSchema: z.ZodType<
2221
- GetPromptVersionResponseBody,
2222
- z.ZodTypeDef,
2223
- unknown
2224
- > = z.object({
2225
- _id: z.string(),
2226
- created_by_id: z.nullable(z.string()).optional(),
2227
- updated_by_id: z.nullable(z.string()).optional(),
2228
- description: z.nullable(z.string()).optional(),
2229
- prompt_config: z.lazy(() => GetPromptVersionPromptConfig$inboundSchema),
2230
- metadata: z.lazy(() => GetPromptVersionMetadata$inboundSchema).optional(),
2231
- timestamp: z.string(),
2232
- }).transform((v) => {
2233
- return remap$(v, {
2234
- "_id": "id",
2235
- "created_by_id": "createdById",
2236
- "updated_by_id": "updatedById",
2237
- "prompt_config": "promptConfig",
2238
- });
2239
- });
2240
-
2241
- /** @internal */
2242
- export type GetPromptVersionResponseBody$Outbound = {
2243
- _id: string;
2244
- created_by_id?: string | null | undefined;
2245
- updated_by_id?: string | null | undefined;
2246
- description?: string | null | undefined;
2247
- prompt_config: GetPromptVersionPromptConfig$Outbound;
2248
- metadata?: GetPromptVersionMetadata$Outbound | undefined;
2249
- timestamp: string;
2250
- };
2251
-
2252
- /** @internal */
2253
- export const GetPromptVersionResponseBody$outboundSchema: z.ZodType<
2254
- GetPromptVersionResponseBody$Outbound,
2255
- z.ZodTypeDef,
2256
- GetPromptVersionResponseBody
2257
- > = z.object({
2258
- id: z.string(),
2259
- createdById: z.nullable(z.string()).optional(),
2260
- updatedById: z.nullable(z.string()).optional(),
2261
- description: z.nullable(z.string()).optional(),
2262
- promptConfig: z.lazy(() => GetPromptVersionPromptConfig$outboundSchema),
2263
- metadata: z.lazy(() => GetPromptVersionMetadata$outboundSchema).optional(),
2264
- timestamp: z.string(),
2265
- }).transform((v) => {
2266
- return remap$(v, {
2267
- id: "_id",
2268
- createdById: "created_by_id",
2269
- updatedById: "updated_by_id",
2270
- promptConfig: "prompt_config",
2271
- });
2272
- });
2273
-
2274
- /**
2275
- * @internal
2276
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2277
- */
2278
- export namespace GetPromptVersionResponseBody$ {
2279
- /** @deprecated use `GetPromptVersionResponseBody$inboundSchema` instead. */
2280
- export const inboundSchema = GetPromptVersionResponseBody$inboundSchema;
2281
- /** @deprecated use `GetPromptVersionResponseBody$outboundSchema` instead. */
2282
- export const outboundSchema = GetPromptVersionResponseBody$outboundSchema;
2283
- /** @deprecated use `GetPromptVersionResponseBody$Outbound` instead. */
2284
- export type Outbound = GetPromptVersionResponseBody$Outbound;
2285
- }
2286
-
2287
- export function getPromptVersionResponseBodyToJSON(
2288
- getPromptVersionResponseBody: GetPromptVersionResponseBody,
2289
- ): string {
2290
- return JSON.stringify(
2291
- GetPromptVersionResponseBody$outboundSchema.parse(
2292
- getPromptVersionResponseBody,
2293
- ),
2294
- );
2295
- }
2296
-
2297
- export function getPromptVersionResponseBodyFromJSON(
2298
- jsonString: string,
2299
- ): SafeParseResult<GetPromptVersionResponseBody, SDKValidationError> {
2300
- return safeParse(
2301
- jsonString,
2302
- (x) => GetPromptVersionResponseBody$inboundSchema.parse(JSON.parse(x)),
2303
- `Failed to parse 'GetPromptVersionResponseBody' from JSON`,
2304
- );
2305
- }