@orq-ai/node 3.10.2 → 3.11.0-rc.1

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