@orq-ai/node 3.11.0-rc.9 → 3.11.2

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