@orq-ai/node 3.9.3 → 3.10.0-rc.0

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