@orq-ai/node 3.12.0-rc.50 → 3.12.1

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