@orq-ai/node 3.9.0-rc.8 → 3.9.0

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