@orq-ai/node 4.1.4 → 4.2.0-rc.11

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 (559) hide show
  1. package/README.md +18 -0
  2. package/bin/mcp-server.js +835 -380
  3. package/bin/mcp-server.js.map +61 -58
  4. package/examples/package-lock.json +4 -7
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/config.js.map +1 -1
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/mcp-server.js.map +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/mcp-server/server.js.map +1 -1
  13. package/models/components/conversationresponse.js +2 -2
  14. package/models/components/invokedeploymentrequest.d.ts +1 -1
  15. package/models/components/partdoneevent.js +2 -2
  16. package/models/components/reasoningpart.js +2 -2
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createconversation.js +2 -2
  19. package/models/operations/createdataset.js +2 -2
  20. package/models/operations/createdatasetitem.js +8 -8
  21. package/models/operations/createdatasource.js +2 -2
  22. package/models/operations/createeval.js +28 -28
  23. package/models/operations/createtool.js +12 -12
  24. package/models/operations/deploymentgetconfig.d.ts +1 -1
  25. package/models/operations/deploymentstream.d.ts +1 -1
  26. package/models/operations/fileget.js +2 -2
  27. package/models/operations/filelist.js +2 -2
  28. package/models/operations/fileupload.js +2 -2
  29. package/models/operations/generateconversationname.js +2 -2
  30. package/models/operations/getalltools.js +12 -12
  31. package/models/operations/getevals.js +28 -28
  32. package/models/operations/listcontacts.js +2 -2
  33. package/models/operations/listdatasetdatapoints.js +8 -8
  34. package/models/operations/listdatasets.js +2 -2
  35. package/models/operations/listdatasources.js +2 -2
  36. package/models/operations/retrievecontact.js +2 -2
  37. package/models/operations/retrieveconversation.js +2 -2
  38. package/models/operations/retrievedatapoint.js +8 -8
  39. package/models/operations/retrievedataset.js +2 -2
  40. package/models/operations/retrievedatasource.js +2 -2
  41. package/models/operations/retrievetool.js +12 -12
  42. package/models/operations/runagent.js +2 -2
  43. package/models/operations/streamrunagent.js +2 -2
  44. package/models/operations/updatecontact.js +2 -2
  45. package/models/operations/updateconversation.js +2 -2
  46. package/models/operations/updatedatapoint.js +8 -8
  47. package/models/operations/updatedataset.js +2 -2
  48. package/models/operations/updatedatasource.js +2 -2
  49. package/models/operations/updateeval.js +28 -28
  50. package/models/operations/updatetool.js +14 -14
  51. package/package.json +4 -3
  52. package/src/lib/config.ts +3 -3
  53. package/src/mcp-server/mcp-server.ts +1 -1
  54. package/src/mcp-server/server.ts +1 -1
  55. package/src/models/components/conversationresponse.ts +2 -2
  56. package/src/models/components/invokedeploymentrequest.ts +1 -1
  57. package/src/models/components/partdoneevent.ts +2 -2
  58. package/src/models/components/reasoningpart.ts +2 -2
  59. package/src/models/operations/createcontact.ts +2 -2
  60. package/src/models/operations/createconversation.ts +2 -2
  61. package/src/models/operations/createdataset.ts +2 -2
  62. package/src/models/operations/createdatasetitem.ts +8 -8
  63. package/src/models/operations/createdatasource.ts +2 -2
  64. package/src/models/operations/createeval.ts +28 -28
  65. package/src/models/operations/createtool.ts +12 -12
  66. package/src/models/operations/deploymentgetconfig.ts +1 -1
  67. package/src/models/operations/deploymentstream.ts +1 -1
  68. package/src/models/operations/fileget.ts +2 -2
  69. package/src/models/operations/filelist.ts +2 -2
  70. package/src/models/operations/fileupload.ts +2 -2
  71. package/src/models/operations/generateconversationname.ts +2 -2
  72. package/src/models/operations/getalltools.ts +12 -12
  73. package/src/models/operations/getevals.ts +28 -28
  74. package/src/models/operations/listcontacts.ts +2 -2
  75. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  76. package/src/models/operations/listdatasets.ts +2 -2
  77. package/src/models/operations/listdatasources.ts +2 -2
  78. package/src/models/operations/retrievecontact.ts +2 -2
  79. package/src/models/operations/retrieveconversation.ts +2 -2
  80. package/src/models/operations/retrievedatapoint.ts +8 -8
  81. package/src/models/operations/retrievedataset.ts +2 -2
  82. package/src/models/operations/retrievedatasource.ts +2 -2
  83. package/src/models/operations/retrievetool.ts +12 -12
  84. package/src/models/operations/runagent.ts +2 -2
  85. package/src/models/operations/streamrunagent.ts +2 -2
  86. package/src/models/operations/updatecontact.ts +2 -2
  87. package/src/models/operations/updateconversation.ts +2 -2
  88. package/src/models/operations/updatedatapoint.ts +8 -8
  89. package/src/models/operations/updatedataset.ts +2 -2
  90. package/src/models/operations/updatedatasource.ts +2 -2
  91. package/src/models/operations/updateeval.ts +28 -28
  92. package/src/models/operations/updatetool.ts +14 -14
  93. package/_speakeasy/.github/action-inputs-config.json +0 -53
  94. package/_speakeasy/.github/action-security-config.json +0 -88
  95. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  96. package/packages/orq-rc/examples/package-lock.json +0 -619
  97. package/packages/orq-rc/examples/package.json +0 -18
  98. package/packages/orq-rc/jsr.json +0 -28
  99. package/packages/orq-rc/package-lock.json +0 -3552
  100. package/packages/orq-rc/package.json +0 -40
  101. package/packages/orq-rc/src/core.ts +0 -13
  102. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -170
  103. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  104. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  105. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  106. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  107. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  108. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  109. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  110. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
  111. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  112. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  113. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  114. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  115. package/packages/orq-rc/src/funcs/contactsList.ts +0 -170
  116. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  117. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  118. package/packages/orq-rc/src/funcs/conversationsCreate.ts +0 -161
  119. package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
  120. package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
  121. package/packages/orq-rc/src/funcs/conversationsList.ts +0 -181
  122. package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -180
  123. package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
  124. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  125. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  126. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  127. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  128. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  129. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  130. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  131. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  132. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  133. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  134. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  135. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  136. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  137. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  138. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  139. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  140. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  141. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  142. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  143. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
  144. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  145. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  146. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -190
  147. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  148. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  149. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  150. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  151. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  152. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  153. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  154. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  155. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  156. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  157. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  158. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  159. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  160. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  161. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  162. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  163. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  164. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  165. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  166. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  167. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  168. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  169. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  170. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  171. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  172. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
  173. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  174. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  175. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
  176. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
  177. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  178. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -183
  179. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  180. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  181. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
  182. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
  183. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  184. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
  185. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
  186. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  187. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  188. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  189. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  190. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  191. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  192. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  193. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  194. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  195. package/packages/orq-rc/src/funcs/routerChatCompletions.ts +0 -172
  196. package/packages/orq-rc/src/funcs/routerImagesGenerate.ts +0 -160
  197. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
  198. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  199. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  200. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  201. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  202. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  203. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  204. package/packages/orq-rc/src/hooks/global.ts +0 -44
  205. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  206. package/packages/orq-rc/src/hooks/index.ts +0 -6
  207. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  208. package/packages/orq-rc/src/hooks/types.ts +0 -112
  209. package/packages/orq-rc/src/index.ts +0 -9
  210. package/packages/orq-rc/src/lib/base64.ts +0 -37
  211. package/packages/orq-rc/src/lib/config.ts +0 -74
  212. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  213. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  214. package/packages/orq-rc/src/lib/env.ts +0 -89
  215. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  216. package/packages/orq-rc/src/lib/files.ts +0 -82
  217. package/packages/orq-rc/src/lib/http.ts +0 -323
  218. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  219. package/packages/orq-rc/src/lib/logger.ts +0 -9
  220. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  221. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  222. package/packages/orq-rc/src/lib/retries.ts +0 -218
  223. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  224. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  225. package/packages/orq-rc/src/lib/security.ts +0 -264
  226. package/packages/orq-rc/src/lib/url.ts +0 -33
  227. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  228. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  229. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  230. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  231. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  232. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  233. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -121
  234. package/packages/orq-rc/src/mcp-server/resources.ts +0 -176
  235. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  236. package/packages/orq-rc/src/mcp-server/server.ts +0 -267
  237. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  238. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  239. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  240. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
  241. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
  242. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -40
  243. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  245. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
  246. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  247. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -40
  248. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  249. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  251. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  252. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/conversationsCreate.ts +0 -37
  255. package/packages/orq-rc/src/mcp-server/tools/conversationsDelete.ts +0 -35
  256. package/packages/orq-rc/src/mcp-server/tools/conversationsGenerateName.ts +0 -40
  257. package/packages/orq-rc/src/mcp-server/tools/conversationsList.ts +0 -41
  258. package/packages/orq-rc/src/mcp-server/tools/conversationsRetrieve.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/conversationsUpdate.ts +0 -40
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  277. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  278. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
  280. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  281. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -39
  282. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -40
  283. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  284. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  285. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  287. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  309. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  310. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  311. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  323. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  324. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  325. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  326. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  328. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  330. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  331. package/packages/orq-rc/src/mcp-server/tools/routerChatCompletions.ts +0 -37
  332. package/packages/orq-rc/src/mcp-server/tools/routerImagesGenerate.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  334. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  335. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersions.ts +0 -37
  336. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -39
  337. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  338. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  339. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  340. package/packages/orq-rc/src/mcp-server/tools.ts +0 -133
  341. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -173
  342. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -309
  343. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -125
  344. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -150
  345. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -125
  346. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -801
  347. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -305
  348. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -185
  349. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -822
  350. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -1399
  351. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  352. package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -194
  353. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -340
  354. package/packages/orq-rc/src/models/components/datapart.ts +0 -58
  355. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -112
  356. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -125
  357. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -105
  358. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -113
  359. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  360. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  361. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  362. package/packages/orq-rc/src/models/components/index.ts +0 -55
  363. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -5271
  364. package/packages/orq-rc/src/models/components/partdelta.ts +0 -80
  365. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -120
  366. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -216
  367. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -99
  368. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -90
  369. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  370. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  371. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  372. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -526
  373. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -118
  374. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -124
  375. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -148
  376. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -27
  377. package/packages/orq-rc/src/models/components/security.ts +0 -56
  378. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  379. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  380. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  381. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  382. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -108
  383. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -83
  384. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -121
  385. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -392
  386. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -360
  387. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -336
  388. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -123
  389. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  390. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -130
  391. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -141
  392. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -132
  393. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  394. package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
  395. package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
  396. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
  397. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
  398. package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -67
  399. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
  400. package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -132
  401. package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
  402. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
  403. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -67
  404. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +0 -69
  405. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -67
  406. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -69
  407. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
  408. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  409. package/packages/orq-rc/src/models/errors/index.ts +0 -35
  410. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -128
  411. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  412. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  413. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
  414. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
  415. package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -67
  416. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  417. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
  418. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
  419. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
  420. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
  421. package/packages/orq-rc/src/models/errors/updateconversation.ts +0 -67
  422. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
  423. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
  424. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
  425. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
  426. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8610
  427. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -770
  428. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -8948
  429. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
  430. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
  431. package/packages/orq-rc/src/models/operations/createconversation.ts +0 -314
  432. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
  433. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -4044
  434. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -662
  435. package/packages/orq-rc/src/models/operations/createeval.ts +0 -5397
  436. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
  437. package/packages/orq-rc/src/models/operations/createimage.ts +0 -966
  438. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
  439. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -241
  440. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -245
  441. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
  442. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5320
  443. package/packages/orq-rc/src/models/operations/createtool.ts +0 -3791
  444. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
  445. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
  446. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
  447. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
  448. package/packages/orq-rc/src/models/operations/deleteconversation.ts +0 -63
  449. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
  450. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
  451. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
  452. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
  453. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
  454. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
  455. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
  456. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
  457. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
  458. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
  459. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -3596
  460. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -7042
  461. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1136
  462. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2005
  463. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -7134
  464. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
  465. package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
  466. package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
  467. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
  468. package/packages/orq-rc/src/models/operations/generateconversationname.ts +0 -319
  469. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -280
  470. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -305
  471. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
  472. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1991
  473. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2214
  474. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
  475. package/packages/orq-rc/src/models/operations/getevals.ts +0 -4268
  476. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
  477. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
  478. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1875
  479. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1892
  480. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -274
  481. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +0 -193
  482. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -276
  483. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -194
  484. package/packages/orq-rc/src/models/operations/index.ts +0 -106
  485. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -957
  486. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1878
  487. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3811
  488. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
  489. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
  490. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -420
  491. package/packages/orq-rc/src/models/operations/listconversations.ts +0 -151
  492. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2486
  493. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
  494. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
  495. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1048
  496. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
  497. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -1989
  498. package/packages/orq-rc/src/models/operations/parse.ts +0 -945
  499. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
  500. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3956
  501. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
  502. package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -262
  503. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2334
  504. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
  505. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
  506. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -183
  507. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -192
  508. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
  509. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2262
  510. package/packages/orq-rc/src/models/operations/runagent.ts +0 -6502
  511. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
  512. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -838
  513. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -6833
  514. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -9054
  515. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
  516. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
  517. package/packages/orq-rc/src/models/operations/updateconversation.ts +0 -377
  518. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -4058
  519. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
  520. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
  521. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -5776
  522. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
  523. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -250
  524. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -254
  525. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -375
  526. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5618
  527. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4114
  528. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  529. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  530. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  531. package/packages/orq-rc/src/sdk/conversations.ts +0 -125
  532. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  533. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  534. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  535. package/packages/orq-rc/src/sdk/evaluators.ts +0 -45
  536. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  537. package/packages/orq-rc/src/sdk/files.ts +0 -78
  538. package/packages/orq-rc/src/sdk/index.ts +0 -5
  539. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  540. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  541. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  542. package/packages/orq-rc/src/sdk/models.ts +0 -25
  543. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  544. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  545. package/packages/orq-rc/src/sdk/responses.ts +0 -34
  546. package/packages/orq-rc/src/sdk/router.ts +0 -52
  547. package/packages/orq-rc/src/sdk/sdk.ts +0 -109
  548. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  549. package/packages/orq-rc/src/types/async.ts +0 -68
  550. package/packages/orq-rc/src/types/blobs.ts +0 -32
  551. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  552. package/packages/orq-rc/src/types/enums.ts +0 -45
  553. package/packages/orq-rc/src/types/fp.ts +0 -50
  554. package/packages/orq-rc/src/types/index.ts +0 -11
  555. package/packages/orq-rc/src/types/operations.ts +0 -105
  556. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  557. package/packages/orq-rc/src/types/streams.ts +0 -21
  558. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
  559. package/packages/orq-rc/tsconfig.json +0 -40
@@ -1,1991 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
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
- Image: "image",
45
- Tts: "tts",
46
- Stt: "stt",
47
- Rerank: "rerank",
48
- Moderation: "moderation",
49
- Vision: "vision",
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 GetAllPromptsResponseFormat6 = {
71
- Json: "json",
72
- Text: "text",
73
- Srt: "srt",
74
- VerboseJson: "verbose_json",
75
- Vtt: "vtt",
76
- } as const;
77
- export type GetAllPromptsResponseFormat6 = ClosedEnum<
78
- typeof GetAllPromptsResponseFormat6
79
- >;
80
-
81
- export const GetAllPromptsResponseFormat5 = {
82
- Url: "url",
83
- Base64Json: "base64_json",
84
- } as const;
85
- export type GetAllPromptsResponseFormat5 = ClosedEnum<
86
- typeof GetAllPromptsResponseFormat5
87
- >;
88
-
89
- export const GetAllPromptsResponseFormat4 = {
90
- Mp3: "mp3",
91
- Opus: "opus",
92
- Aac: "aac",
93
- Flac: "flac",
94
- Wav: "wav",
95
- Pcm: "pcm",
96
- } as const;
97
- export type GetAllPromptsResponseFormat4 = ClosedEnum<
98
- typeof GetAllPromptsResponseFormat4
99
- >;
100
-
101
- export const GetAllPromptsResponseFormatPromptsResponseType = {
102
- Text: "text",
103
- } as const;
104
- export type GetAllPromptsResponseFormatPromptsResponseType = ClosedEnum<
105
- typeof GetAllPromptsResponseFormatPromptsResponseType
106
- >;
107
-
108
- export type GetAllPromptsResponseFormat3 = {
109
- type: GetAllPromptsResponseFormatPromptsResponseType;
110
- };
111
-
112
- export const GetAllPromptsResponseFormatPromptsType = {
113
- JsonObject: "json_object",
114
- } as const;
115
- export type GetAllPromptsResponseFormatPromptsType = ClosedEnum<
116
- typeof GetAllPromptsResponseFormatPromptsType
117
- >;
118
-
119
- export type GetAllPromptsResponseFormat2 = {
120
- type: GetAllPromptsResponseFormatPromptsType;
121
- };
122
-
123
- export const GetAllPromptsResponseFormatType = {
124
- JsonSchema: "json_schema",
125
- } as const;
126
- export type GetAllPromptsResponseFormatType = ClosedEnum<
127
- typeof GetAllPromptsResponseFormatType
128
- >;
129
-
130
- export type GetAllPromptsResponseFormatJsonSchema = {
131
- name: string;
132
- description?: string | undefined;
133
- strict?: boolean | undefined;
134
- schema: { [k: string]: any };
135
- };
136
-
137
- export type GetAllPromptsResponseFormat1 = {
138
- type: GetAllPromptsResponseFormatType;
139
- displayName?: string | undefined;
140
- jsonSchema: GetAllPromptsResponseFormatJsonSchema;
141
- };
142
-
143
- /**
144
- * An object specifying the format that the model must output.
145
- *
146
- * @remarks
147
- *
148
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
149
- *
150
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
151
- *
152
- * 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.
153
- */
154
- export type GetAllPromptsResponseFormat =
155
- | GetAllPromptsResponseFormat1
156
- | GetAllPromptsResponseFormat2
157
- | GetAllPromptsResponseFormat3
158
- | GetAllPromptsResponseFormat4
159
- | GetAllPromptsResponseFormat5
160
- | GetAllPromptsResponseFormat6;
161
-
162
- /**
163
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
164
- */
165
- export const GetAllPromptsPhotoRealVersion = {
166
- V1: "v1",
167
- V2: "v2",
168
- } as const;
169
- /**
170
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
171
- */
172
- export type GetAllPromptsPhotoRealVersion = ClosedEnum<
173
- typeof GetAllPromptsPhotoRealVersion
174
- >;
175
-
176
- /**
177
- * The format to return the embeddings
178
- */
179
- export const GetAllPromptsEncodingFormat = {
180
- Float: "float",
181
- Base64: "base64",
182
- } as const;
183
- /**
184
- * The format to return the embeddings
185
- */
186
- export type GetAllPromptsEncodingFormat = ClosedEnum<
187
- typeof GetAllPromptsEncodingFormat
188
- >;
189
-
190
- /**
191
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
192
- */
193
- export const GetAllPromptsReasoningEffort = {
194
- None: "none",
195
- Disable: "disable",
196
- Minimal: "minimal",
197
- Low: "low",
198
- Medium: "medium",
199
- High: "high",
200
- } as const;
201
- /**
202
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
203
- */
204
- export type GetAllPromptsReasoningEffort = ClosedEnum<
205
- typeof GetAllPromptsReasoningEffort
206
- >;
207
-
208
- /**
209
- * Controls the verbosity of the model output.
210
- */
211
- export const GetAllPromptsVerbosity = {
212
- Low: "low",
213
- Medium: "medium",
214
- High: "high",
215
- } as const;
216
- /**
217
- * Controls the verbosity of the model output.
218
- */
219
- export type GetAllPromptsVerbosity = ClosedEnum<typeof GetAllPromptsVerbosity>;
220
-
221
- /**
222
- * The level of thinking to use for the model. Only supported by `Google AI`
223
- */
224
- export const GetAllPromptsThinkingLevel = {
225
- Low: "low",
226
- High: "high",
227
- } as const;
228
- /**
229
- * The level of thinking to use for the model. Only supported by `Google AI`
230
- */
231
- export type GetAllPromptsThinkingLevel = ClosedEnum<
232
- typeof GetAllPromptsThinkingLevel
233
- >;
234
-
235
- /**
236
- * Model Parameters: Not all parameters apply to every model
237
- */
238
- export type GetAllPromptsModelParameters = {
239
- /**
240
- * Only supported on `chat` and `completion` models.
241
- */
242
- temperature?: number | undefined;
243
- /**
244
- * Only supported on `chat` and `completion` models.
245
- */
246
- maxTokens?: number | undefined;
247
- /**
248
- * Only supported on `chat` and `completion` models.
249
- */
250
- topK?: number | undefined;
251
- /**
252
- * Only supported on `chat` and `completion` models.
253
- */
254
- topP?: number | undefined;
255
- /**
256
- * Only supported on `chat` and `completion` models.
257
- */
258
- frequencyPenalty?: number | undefined;
259
- /**
260
- * Only supported on `chat` and `completion` models.
261
- */
262
- presencePenalty?: number | undefined;
263
- /**
264
- * Only supported on `image` models.
265
- */
266
- numImages?: number | undefined;
267
- /**
268
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
269
- */
270
- seed?: number | undefined;
271
- /**
272
- * Only supported on `image` models.
273
- */
274
- format?: GetAllPromptsFormat | undefined;
275
- /**
276
- * Only supported on `image` models.
277
- */
278
- dimensions?: string | undefined;
279
- /**
280
- * Only supported on `image` models.
281
- */
282
- quality?: string | undefined;
283
- /**
284
- * Only supported on `image` models.
285
- */
286
- style?: string | undefined;
287
- /**
288
- * An object specifying the format that the model must output.
289
- *
290
- * @remarks
291
- *
292
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
293
- *
294
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
295
- *
296
- * 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.
297
- */
298
- responseFormat?:
299
- | GetAllPromptsResponseFormat1
300
- | GetAllPromptsResponseFormat2
301
- | GetAllPromptsResponseFormat3
302
- | GetAllPromptsResponseFormat4
303
- | GetAllPromptsResponseFormat5
304
- | GetAllPromptsResponseFormat6
305
- | null
306
- | undefined;
307
- /**
308
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
309
- */
310
- photoRealVersion?: GetAllPromptsPhotoRealVersion | undefined;
311
- /**
312
- * The format to return the embeddings
313
- */
314
- encodingFormat?: GetAllPromptsEncodingFormat | undefined;
315
- /**
316
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
317
- */
318
- reasoningEffort?: GetAllPromptsReasoningEffort | undefined;
319
- /**
320
- * 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`
321
- */
322
- budgetTokens?: number | undefined;
323
- /**
324
- * Controls the verbosity of the model output.
325
- */
326
- verbosity?: GetAllPromptsVerbosity | undefined;
327
- /**
328
- * The level of thinking to use for the model. Only supported by `Google AI`
329
- */
330
- thinkingLevel?: GetAllPromptsThinkingLevel | undefined;
331
- };
332
-
333
- export const GetAllPromptsProvider = {
334
- Openai: "openai",
335
- Groq: "groq",
336
- Cohere: "cohere",
337
- Azure: "azure",
338
- Aws: "aws",
339
- Google: "google",
340
- GoogleAi: "google-ai",
341
- Huggingface: "huggingface",
342
- Togetherai: "togetherai",
343
- Perplexity: "perplexity",
344
- Anthropic: "anthropic",
345
- Leonardoai: "leonardoai",
346
- Fal: "fal",
347
- Nvidia: "nvidia",
348
- Jina: "jina",
349
- Elevenlabs: "elevenlabs",
350
- Litellm: "litellm",
351
- Cerebras: "cerebras",
352
- Openailike: "openailike",
353
- Bytedance: "bytedance",
354
- Mistral: "mistral",
355
- Deepseek: "deepseek",
356
- Contextualai: "contextualai",
357
- Moonshotai: "moonshotai",
358
- Zai: "zai",
359
- Slack: "slack",
360
- } as const;
361
- export type GetAllPromptsProvider = ClosedEnum<typeof GetAllPromptsProvider>;
362
-
363
- /**
364
- * The role of the prompt message
365
- */
366
- export const GetAllPromptsRole = {
367
- System: "system",
368
- Assistant: "assistant",
369
- User: "user",
370
- Exception: "exception",
371
- Tool: "tool",
372
- Prompt: "prompt",
373
- Correction: "correction",
374
- ExpectedOutput: "expected_output",
375
- } as const;
376
- /**
377
- * The role of the prompt message
378
- */
379
- export type GetAllPromptsRole = ClosedEnum<typeof GetAllPromptsRole>;
380
-
381
- export type GetAllPrompts2File = {
382
- /**
383
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
384
- */
385
- fileData?: string | undefined;
386
- /**
387
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
388
- */
389
- uri?: string | undefined;
390
- /**
391
- * MIME type of the file (e.g., application/pdf, image/png)
392
- */
393
- mimeType?: string | undefined;
394
- /**
395
- * The name of the file, used when passing the file to the model as a string.
396
- */
397
- filename?: string | undefined;
398
- };
399
-
400
- export type GetAllPrompts23 = {
401
- /**
402
- * The type of the content part. Always `file`.
403
- */
404
- type: "file";
405
- file: GetAllPrompts2File;
406
- };
407
-
408
- export type GetAllPrompts2ImageUrl = {
409
- /**
410
- * The orq.ai id of the image
411
- */
412
- id?: string | undefined;
413
- /**
414
- * Either a URL of the image or the base64 encoded data URI.
415
- */
416
- url: string;
417
- /**
418
- * Specifies the detail level of the image. Currently only supported with OpenAI models
419
- */
420
- detail?: string | undefined;
421
- };
422
-
423
- /**
424
- * The image part of the prompt message. Only supported with vision models.
425
- */
426
- export type GetAllPrompts22 = {
427
- type: "image_url";
428
- imageUrl: GetAllPrompts2ImageUrl;
429
- };
430
-
431
- /**
432
- * Text content part of a prompt message
433
- */
434
- export type GetAllPrompts21 = {
435
- type: "text";
436
- text: string;
437
- };
438
-
439
- export type GetAllPromptsContent2 =
440
- | GetAllPrompts21
441
- | GetAllPrompts22
442
- | GetAllPrompts23;
443
-
444
- /**
445
- * 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. Can be null for tool messages in certain scenarios.
446
- */
447
- export type GetAllPromptsContent =
448
- | string
449
- | Array<GetAllPrompts21 | GetAllPrompts22 | GetAllPrompts23>;
450
-
451
- export const GetAllPromptsPromptsType = {
452
- Function: "function",
453
- } as const;
454
- export type GetAllPromptsPromptsType = ClosedEnum<
455
- typeof GetAllPromptsPromptsType
456
- >;
457
-
458
- export type GetAllPromptsFunction = {
459
- name: string;
460
- /**
461
- * JSON string arguments for the functions
462
- */
463
- arguments: string;
464
- };
465
-
466
- export type GetAllPromptsToolCalls = {
467
- id?: string | undefined;
468
- index?: number | undefined;
469
- type: GetAllPromptsPromptsType;
470
- function: GetAllPromptsFunction;
471
- };
472
-
473
- export type GetAllPromptsMessages = {
474
- /**
475
- * The role of the prompt message
476
- */
477
- role: GetAllPromptsRole;
478
- /**
479
- * 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. Can be null for tool messages in certain scenarios.
480
- */
481
- content:
482
- | string
483
- | Array<GetAllPrompts21 | GetAllPrompts22 | GetAllPrompts23>
484
- | null;
485
- toolCalls?: Array<GetAllPromptsToolCalls> | undefined;
486
- toolCallId?: string | null | undefined;
487
- };
488
-
489
- /**
490
- * A list of messages compatible with the openAI schema
491
- */
492
- export type GetAllPromptsPromptConfig = {
493
- stream?: boolean | undefined;
494
- model?: string | undefined;
495
- /**
496
- * The id of the resource
497
- */
498
- modelDbId?: string | null | undefined;
499
- /**
500
- * The modality of the model
501
- */
502
- modelType?: GetAllPromptsModelType | null | undefined;
503
- /**
504
- * Model Parameters: Not all parameters apply to every model
505
- */
506
- modelParameters?: GetAllPromptsModelParameters | undefined;
507
- provider?: GetAllPromptsProvider | undefined;
508
- /**
509
- * The ID of the integration to use
510
- */
511
- integrationId?: string | null | undefined;
512
- version?: string | undefined;
513
- messages: Array<GetAllPromptsMessages>;
514
- };
515
-
516
- export const GetAllPromptsUseCases = {
517
- AgentsSimulations: "Agents simulations",
518
- Agents: "Agents",
519
- APIInteraction: "API interaction",
520
- AutonomousAgents: "Autonomous Agents",
521
- Chatbots: "Chatbots",
522
- Classification: "Classification",
523
- CodeUnderstanding: "Code understanding",
524
- CodeWriting: "Code writing",
525
- Conversation: "Conversation",
526
- DocumentsQA: "Documents QA",
527
- Evaluation: "Evaluation",
528
- Extraction: "Extraction",
529
- MultiModal: "Multi-modal",
530
- SelfChecking: "Self-checking",
531
- SentimentAnalysis: "Sentiment analysis",
532
- Sql: "SQL",
533
- Summarization: "Summarization",
534
- Tagging: "Tagging",
535
- TranslationDocument: "Translation (document)",
536
- TranslationSentences: "Translation (sentences)",
537
- } as const;
538
- export type GetAllPromptsUseCases = ClosedEnum<typeof GetAllPromptsUseCases>;
539
-
540
- /**
541
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
542
- */
543
- export const GetAllPromptsLanguage = {
544
- Chinese: "Chinese",
545
- Dutch: "Dutch",
546
- English: "English",
547
- French: "French",
548
- German: "German",
549
- Russian: "Russian",
550
- Spanish: "Spanish",
551
- } as const;
552
- /**
553
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
554
- */
555
- export type GetAllPromptsLanguage = ClosedEnum<typeof GetAllPromptsLanguage>;
556
-
557
- export type GetAllPromptsMetadata = {
558
- /**
559
- * 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
560
- */
561
- useCases?: Array<GetAllPromptsUseCases> | undefined;
562
- /**
563
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
564
- */
565
- language?: GetAllPromptsLanguage | null | undefined;
566
- };
567
-
568
- /**
569
- * A prompt entity with configuration, metadata, and versioning.
570
- */
571
- export type GetAllPromptsPrompt = {
572
- id: string;
573
- type: GetAllPromptsType;
574
- owner: string;
575
- domainId: string;
576
- created: string;
577
- updated: string;
578
- createdById?: string | null | undefined;
579
- updatedById?: string | null | undefined;
580
- /**
581
- * The prompt’s name, meant to be displayable in the UI.
582
- */
583
- displayName: string;
584
- /**
585
- * 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
586
- */
587
- description?: string | null | undefined;
588
- /**
589
- * A list of messages compatible with the openAI schema
590
- */
591
- promptConfig: GetAllPromptsPromptConfig;
592
- metadata?: GetAllPromptsMetadata | undefined;
593
- };
594
-
595
- /**
596
- * Prompts retrieved.
597
- */
598
- export type GetAllPromptsResponseBody = {
599
- object: GetAllPromptsObject;
600
- data: Array<GetAllPromptsPrompt>;
601
- hasMore: boolean;
602
- };
603
-
604
- /** @internal */
605
- export const GetAllPromptsRequest$inboundSchema: z.ZodType<
606
- GetAllPromptsRequest,
607
- z.ZodTypeDef,
608
- unknown
609
- > = z.object({
610
- limit: z.number().default(10),
611
- starting_after: z.string().optional(),
612
- ending_before: z.string().optional(),
613
- }).transform((v) => {
614
- return remap$(v, {
615
- "starting_after": "startingAfter",
616
- "ending_before": "endingBefore",
617
- });
618
- });
619
- /** @internal */
620
- export type GetAllPromptsRequest$Outbound = {
621
- limit: number;
622
- starting_after?: string | undefined;
623
- ending_before?: string | undefined;
624
- };
625
-
626
- /** @internal */
627
- export const GetAllPromptsRequest$outboundSchema: z.ZodType<
628
- GetAllPromptsRequest$Outbound,
629
- z.ZodTypeDef,
630
- GetAllPromptsRequest
631
- > = z.object({
632
- limit: z.number().default(10),
633
- startingAfter: z.string().optional(),
634
- endingBefore: z.string().optional(),
635
- }).transform((v) => {
636
- return remap$(v, {
637
- startingAfter: "starting_after",
638
- endingBefore: "ending_before",
639
- });
640
- });
641
-
642
- export function getAllPromptsRequestToJSON(
643
- getAllPromptsRequest: GetAllPromptsRequest,
644
- ): string {
645
- return JSON.stringify(
646
- GetAllPromptsRequest$outboundSchema.parse(getAllPromptsRequest),
647
- );
648
- }
649
- export function getAllPromptsRequestFromJSON(
650
- jsonString: string,
651
- ): SafeParseResult<GetAllPromptsRequest, SDKValidationError> {
652
- return safeParse(
653
- jsonString,
654
- (x) => GetAllPromptsRequest$inboundSchema.parse(JSON.parse(x)),
655
- `Failed to parse 'GetAllPromptsRequest' from JSON`,
656
- );
657
- }
658
-
659
- /** @internal */
660
- export const GetAllPromptsObject$inboundSchema: z.ZodNativeEnum<
661
- typeof GetAllPromptsObject
662
- > = z.nativeEnum(GetAllPromptsObject);
663
- /** @internal */
664
- export const GetAllPromptsObject$outboundSchema: z.ZodNativeEnum<
665
- typeof GetAllPromptsObject
666
- > = GetAllPromptsObject$inboundSchema;
667
-
668
- /** @internal */
669
- export const GetAllPromptsType$inboundSchema: z.ZodNativeEnum<
670
- typeof GetAllPromptsType
671
- > = z.nativeEnum(GetAllPromptsType);
672
- /** @internal */
673
- export const GetAllPromptsType$outboundSchema: z.ZodNativeEnum<
674
- typeof GetAllPromptsType
675
- > = GetAllPromptsType$inboundSchema;
676
-
677
- /** @internal */
678
- export const GetAllPromptsModelType$inboundSchema: z.ZodNativeEnum<
679
- typeof GetAllPromptsModelType
680
- > = z.nativeEnum(GetAllPromptsModelType);
681
- /** @internal */
682
- export const GetAllPromptsModelType$outboundSchema: z.ZodNativeEnum<
683
- typeof GetAllPromptsModelType
684
- > = GetAllPromptsModelType$inboundSchema;
685
-
686
- /** @internal */
687
- export const GetAllPromptsFormat$inboundSchema: z.ZodNativeEnum<
688
- typeof GetAllPromptsFormat
689
- > = z.nativeEnum(GetAllPromptsFormat);
690
- /** @internal */
691
- export const GetAllPromptsFormat$outboundSchema: z.ZodNativeEnum<
692
- typeof GetAllPromptsFormat
693
- > = GetAllPromptsFormat$inboundSchema;
694
-
695
- /** @internal */
696
- export const GetAllPromptsResponseFormat6$inboundSchema: z.ZodNativeEnum<
697
- typeof GetAllPromptsResponseFormat6
698
- > = z.nativeEnum(GetAllPromptsResponseFormat6);
699
- /** @internal */
700
- export const GetAllPromptsResponseFormat6$outboundSchema: z.ZodNativeEnum<
701
- typeof GetAllPromptsResponseFormat6
702
- > = GetAllPromptsResponseFormat6$inboundSchema;
703
-
704
- /** @internal */
705
- export const GetAllPromptsResponseFormat5$inboundSchema: z.ZodNativeEnum<
706
- typeof GetAllPromptsResponseFormat5
707
- > = z.nativeEnum(GetAllPromptsResponseFormat5);
708
- /** @internal */
709
- export const GetAllPromptsResponseFormat5$outboundSchema: z.ZodNativeEnum<
710
- typeof GetAllPromptsResponseFormat5
711
- > = GetAllPromptsResponseFormat5$inboundSchema;
712
-
713
- /** @internal */
714
- export const GetAllPromptsResponseFormat4$inboundSchema: z.ZodNativeEnum<
715
- typeof GetAllPromptsResponseFormat4
716
- > = z.nativeEnum(GetAllPromptsResponseFormat4);
717
- /** @internal */
718
- export const GetAllPromptsResponseFormat4$outboundSchema: z.ZodNativeEnum<
719
- typeof GetAllPromptsResponseFormat4
720
- > = GetAllPromptsResponseFormat4$inboundSchema;
721
-
722
- /** @internal */
723
- export const GetAllPromptsResponseFormatPromptsResponseType$inboundSchema:
724
- z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsResponseType> = z
725
- .nativeEnum(GetAllPromptsResponseFormatPromptsResponseType);
726
- /** @internal */
727
- export const GetAllPromptsResponseFormatPromptsResponseType$outboundSchema:
728
- z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsResponseType> =
729
- GetAllPromptsResponseFormatPromptsResponseType$inboundSchema;
730
-
731
- /** @internal */
732
- export const GetAllPromptsResponseFormat3$inboundSchema: z.ZodType<
733
- GetAllPromptsResponseFormat3,
734
- z.ZodTypeDef,
735
- unknown
736
- > = z.object({
737
- type: GetAllPromptsResponseFormatPromptsResponseType$inboundSchema,
738
- });
739
- /** @internal */
740
- export type GetAllPromptsResponseFormat3$Outbound = {
741
- type: string;
742
- };
743
-
744
- /** @internal */
745
- export const GetAllPromptsResponseFormat3$outboundSchema: z.ZodType<
746
- GetAllPromptsResponseFormat3$Outbound,
747
- z.ZodTypeDef,
748
- GetAllPromptsResponseFormat3
749
- > = z.object({
750
- type: GetAllPromptsResponseFormatPromptsResponseType$outboundSchema,
751
- });
752
-
753
- export function getAllPromptsResponseFormat3ToJSON(
754
- getAllPromptsResponseFormat3: GetAllPromptsResponseFormat3,
755
- ): string {
756
- return JSON.stringify(
757
- GetAllPromptsResponseFormat3$outboundSchema.parse(
758
- getAllPromptsResponseFormat3,
759
- ),
760
- );
761
- }
762
- export function getAllPromptsResponseFormat3FromJSON(
763
- jsonString: string,
764
- ): SafeParseResult<GetAllPromptsResponseFormat3, SDKValidationError> {
765
- return safeParse(
766
- jsonString,
767
- (x) => GetAllPromptsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
768
- `Failed to parse 'GetAllPromptsResponseFormat3' from JSON`,
769
- );
770
- }
771
-
772
- /** @internal */
773
- export const GetAllPromptsResponseFormatPromptsType$inboundSchema:
774
- z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> = z.nativeEnum(
775
- GetAllPromptsResponseFormatPromptsType,
776
- );
777
- /** @internal */
778
- export const GetAllPromptsResponseFormatPromptsType$outboundSchema:
779
- z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> =
780
- GetAllPromptsResponseFormatPromptsType$inboundSchema;
781
-
782
- /** @internal */
783
- export const GetAllPromptsResponseFormat2$inboundSchema: z.ZodType<
784
- GetAllPromptsResponseFormat2,
785
- z.ZodTypeDef,
786
- unknown
787
- > = z.object({
788
- type: GetAllPromptsResponseFormatPromptsType$inboundSchema,
789
- });
790
- /** @internal */
791
- export type GetAllPromptsResponseFormat2$Outbound = {
792
- type: string;
793
- };
794
-
795
- /** @internal */
796
- export const GetAllPromptsResponseFormat2$outboundSchema: z.ZodType<
797
- GetAllPromptsResponseFormat2$Outbound,
798
- z.ZodTypeDef,
799
- GetAllPromptsResponseFormat2
800
- > = z.object({
801
- type: GetAllPromptsResponseFormatPromptsType$outboundSchema,
802
- });
803
-
804
- export function getAllPromptsResponseFormat2ToJSON(
805
- getAllPromptsResponseFormat2: GetAllPromptsResponseFormat2,
806
- ): string {
807
- return JSON.stringify(
808
- GetAllPromptsResponseFormat2$outboundSchema.parse(
809
- getAllPromptsResponseFormat2,
810
- ),
811
- );
812
- }
813
- export function getAllPromptsResponseFormat2FromJSON(
814
- jsonString: string,
815
- ): SafeParseResult<GetAllPromptsResponseFormat2, SDKValidationError> {
816
- return safeParse(
817
- jsonString,
818
- (x) => GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
819
- `Failed to parse 'GetAllPromptsResponseFormat2' from JSON`,
820
- );
821
- }
822
-
823
- /** @internal */
824
- export const GetAllPromptsResponseFormatType$inboundSchema: z.ZodNativeEnum<
825
- typeof GetAllPromptsResponseFormatType
826
- > = z.nativeEnum(GetAllPromptsResponseFormatType);
827
- /** @internal */
828
- export const GetAllPromptsResponseFormatType$outboundSchema: z.ZodNativeEnum<
829
- typeof GetAllPromptsResponseFormatType
830
- > = GetAllPromptsResponseFormatType$inboundSchema;
831
-
832
- /** @internal */
833
- export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
834
- GetAllPromptsResponseFormatJsonSchema,
835
- z.ZodTypeDef,
836
- unknown
837
- > = z.object({
838
- name: z.string(),
839
- description: z.string().optional(),
840
- strict: z.boolean().optional(),
841
- schema: z.record(z.any()),
842
- });
843
- /** @internal */
844
- export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
845
- name: string;
846
- description?: string | undefined;
847
- strict?: boolean | undefined;
848
- schema: { [k: string]: any };
849
- };
850
-
851
- /** @internal */
852
- export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
853
- GetAllPromptsResponseFormatJsonSchema$Outbound,
854
- z.ZodTypeDef,
855
- GetAllPromptsResponseFormatJsonSchema
856
- > = z.object({
857
- name: z.string(),
858
- description: z.string().optional(),
859
- strict: z.boolean().optional(),
860
- schema: z.record(z.any()),
861
- });
862
-
863
- export function getAllPromptsResponseFormatJsonSchemaToJSON(
864
- getAllPromptsResponseFormatJsonSchema: GetAllPromptsResponseFormatJsonSchema,
865
- ): string {
866
- return JSON.stringify(
867
- GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(
868
- getAllPromptsResponseFormatJsonSchema,
869
- ),
870
- );
871
- }
872
- export function getAllPromptsResponseFormatJsonSchemaFromJSON(
873
- jsonString: string,
874
- ): SafeParseResult<GetAllPromptsResponseFormatJsonSchema, SDKValidationError> {
875
- return safeParse(
876
- jsonString,
877
- (x) =>
878
- GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
879
- `Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
880
- );
881
- }
882
-
883
- /** @internal */
884
- export const GetAllPromptsResponseFormat1$inboundSchema: z.ZodType<
885
- GetAllPromptsResponseFormat1,
886
- z.ZodTypeDef,
887
- unknown
888
- > = z.object({
889
- type: GetAllPromptsResponseFormatType$inboundSchema,
890
- display_name: z.string().optional(),
891
- json_schema: z.lazy(() =>
892
- GetAllPromptsResponseFormatJsonSchema$inboundSchema
893
- ),
894
- }).transform((v) => {
895
- return remap$(v, {
896
- "display_name": "displayName",
897
- "json_schema": "jsonSchema",
898
- });
899
- });
900
- /** @internal */
901
- export type GetAllPromptsResponseFormat1$Outbound = {
902
- type: string;
903
- display_name?: string | undefined;
904
- json_schema: GetAllPromptsResponseFormatJsonSchema$Outbound;
905
- };
906
-
907
- /** @internal */
908
- export const GetAllPromptsResponseFormat1$outboundSchema: z.ZodType<
909
- GetAllPromptsResponseFormat1$Outbound,
910
- z.ZodTypeDef,
911
- GetAllPromptsResponseFormat1
912
- > = z.object({
913
- type: GetAllPromptsResponseFormatType$outboundSchema,
914
- displayName: z.string().optional(),
915
- jsonSchema: z.lazy(() =>
916
- GetAllPromptsResponseFormatJsonSchema$outboundSchema
917
- ),
918
- }).transform((v) => {
919
- return remap$(v, {
920
- displayName: "display_name",
921
- jsonSchema: "json_schema",
922
- });
923
- });
924
-
925
- export function getAllPromptsResponseFormat1ToJSON(
926
- getAllPromptsResponseFormat1: GetAllPromptsResponseFormat1,
927
- ): string {
928
- return JSON.stringify(
929
- GetAllPromptsResponseFormat1$outboundSchema.parse(
930
- getAllPromptsResponseFormat1,
931
- ),
932
- );
933
- }
934
- export function getAllPromptsResponseFormat1FromJSON(
935
- jsonString: string,
936
- ): SafeParseResult<GetAllPromptsResponseFormat1, SDKValidationError> {
937
- return safeParse(
938
- jsonString,
939
- (x) => GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
940
- `Failed to parse 'GetAllPromptsResponseFormat1' from JSON`,
941
- );
942
- }
943
-
944
- /** @internal */
945
- export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
946
- GetAllPromptsResponseFormat,
947
- z.ZodTypeDef,
948
- unknown
949
- > = z.union([
950
- z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
951
- z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
952
- z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
953
- GetAllPromptsResponseFormat4$inboundSchema,
954
- GetAllPromptsResponseFormat5$inboundSchema,
955
- GetAllPromptsResponseFormat6$inboundSchema,
956
- ]);
957
- /** @internal */
958
- export type GetAllPromptsResponseFormat$Outbound =
959
- | GetAllPromptsResponseFormat1$Outbound
960
- | GetAllPromptsResponseFormat2$Outbound
961
- | GetAllPromptsResponseFormat3$Outbound
962
- | string
963
- | string
964
- | string;
965
-
966
- /** @internal */
967
- export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
968
- GetAllPromptsResponseFormat$Outbound,
969
- z.ZodTypeDef,
970
- GetAllPromptsResponseFormat
971
- > = z.union([
972
- z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
973
- z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
974
- z.lazy(() => GetAllPromptsResponseFormat3$outboundSchema),
975
- GetAllPromptsResponseFormat4$outboundSchema,
976
- GetAllPromptsResponseFormat5$outboundSchema,
977
- GetAllPromptsResponseFormat6$outboundSchema,
978
- ]);
979
-
980
- export function getAllPromptsResponseFormatToJSON(
981
- getAllPromptsResponseFormat: GetAllPromptsResponseFormat,
982
- ): string {
983
- return JSON.stringify(
984
- GetAllPromptsResponseFormat$outboundSchema.parse(
985
- getAllPromptsResponseFormat,
986
- ),
987
- );
988
- }
989
- export function getAllPromptsResponseFormatFromJSON(
990
- jsonString: string,
991
- ): SafeParseResult<GetAllPromptsResponseFormat, SDKValidationError> {
992
- return safeParse(
993
- jsonString,
994
- (x) => GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
995
- `Failed to parse 'GetAllPromptsResponseFormat' from JSON`,
996
- );
997
- }
998
-
999
- /** @internal */
1000
- export const GetAllPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1001
- typeof GetAllPromptsPhotoRealVersion
1002
- > = z.nativeEnum(GetAllPromptsPhotoRealVersion);
1003
- /** @internal */
1004
- export const GetAllPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1005
- typeof GetAllPromptsPhotoRealVersion
1006
- > = GetAllPromptsPhotoRealVersion$inboundSchema;
1007
-
1008
- /** @internal */
1009
- export const GetAllPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1010
- typeof GetAllPromptsEncodingFormat
1011
- > = z.nativeEnum(GetAllPromptsEncodingFormat);
1012
- /** @internal */
1013
- export const GetAllPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
1014
- typeof GetAllPromptsEncodingFormat
1015
- > = GetAllPromptsEncodingFormat$inboundSchema;
1016
-
1017
- /** @internal */
1018
- export const GetAllPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1019
- typeof GetAllPromptsReasoningEffort
1020
- > = z.nativeEnum(GetAllPromptsReasoningEffort);
1021
- /** @internal */
1022
- export const GetAllPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1023
- typeof GetAllPromptsReasoningEffort
1024
- > = GetAllPromptsReasoningEffort$inboundSchema;
1025
-
1026
- /** @internal */
1027
- export const GetAllPromptsVerbosity$inboundSchema: z.ZodNativeEnum<
1028
- typeof GetAllPromptsVerbosity
1029
- > = z.nativeEnum(GetAllPromptsVerbosity);
1030
- /** @internal */
1031
- export const GetAllPromptsVerbosity$outboundSchema: z.ZodNativeEnum<
1032
- typeof GetAllPromptsVerbosity
1033
- > = GetAllPromptsVerbosity$inboundSchema;
1034
-
1035
- /** @internal */
1036
- export const GetAllPromptsThinkingLevel$inboundSchema: z.ZodNativeEnum<
1037
- typeof GetAllPromptsThinkingLevel
1038
- > = z.nativeEnum(GetAllPromptsThinkingLevel);
1039
- /** @internal */
1040
- export const GetAllPromptsThinkingLevel$outboundSchema: z.ZodNativeEnum<
1041
- typeof GetAllPromptsThinkingLevel
1042
- > = GetAllPromptsThinkingLevel$inboundSchema;
1043
-
1044
- /** @internal */
1045
- export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
1046
- GetAllPromptsModelParameters,
1047
- z.ZodTypeDef,
1048
- unknown
1049
- > = z.object({
1050
- temperature: z.number().optional(),
1051
- maxTokens: z.number().optional(),
1052
- topK: z.number().optional(),
1053
- topP: z.number().optional(),
1054
- frequencyPenalty: z.number().optional(),
1055
- presencePenalty: z.number().optional(),
1056
- numImages: z.number().optional(),
1057
- seed: z.number().optional(),
1058
- format: GetAllPromptsFormat$inboundSchema.optional(),
1059
- dimensions: z.string().optional(),
1060
- quality: z.string().optional(),
1061
- style: z.string().optional(),
1062
- responseFormat: z.nullable(
1063
- z.union([
1064
- z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
1065
- z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
1066
- z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
1067
- GetAllPromptsResponseFormat4$inboundSchema,
1068
- GetAllPromptsResponseFormat5$inboundSchema,
1069
- GetAllPromptsResponseFormat6$inboundSchema,
1070
- ]),
1071
- ).optional(),
1072
- photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
1073
- encoding_format: GetAllPromptsEncodingFormat$inboundSchema.optional(),
1074
- reasoningEffort: GetAllPromptsReasoningEffort$inboundSchema.optional(),
1075
- budgetTokens: z.number().optional(),
1076
- verbosity: GetAllPromptsVerbosity$inboundSchema.optional(),
1077
- thinkingLevel: GetAllPromptsThinkingLevel$inboundSchema.optional(),
1078
- }).transform((v) => {
1079
- return remap$(v, {
1080
- "encoding_format": "encodingFormat",
1081
- });
1082
- });
1083
- /** @internal */
1084
- export type GetAllPromptsModelParameters$Outbound = {
1085
- temperature?: number | undefined;
1086
- maxTokens?: number | undefined;
1087
- topK?: number | undefined;
1088
- topP?: number | undefined;
1089
- frequencyPenalty?: number | undefined;
1090
- presencePenalty?: number | undefined;
1091
- numImages?: number | undefined;
1092
- seed?: number | undefined;
1093
- format?: string | undefined;
1094
- dimensions?: string | undefined;
1095
- quality?: string | undefined;
1096
- style?: string | undefined;
1097
- responseFormat?:
1098
- | GetAllPromptsResponseFormat1$Outbound
1099
- | GetAllPromptsResponseFormat2$Outbound
1100
- | GetAllPromptsResponseFormat3$Outbound
1101
- | string
1102
- | string
1103
- | string
1104
- | null
1105
- | undefined;
1106
- photoRealVersion?: string | undefined;
1107
- encoding_format?: string | undefined;
1108
- reasoningEffort?: string | undefined;
1109
- budgetTokens?: number | undefined;
1110
- verbosity?: string | undefined;
1111
- thinkingLevel?: string | undefined;
1112
- };
1113
-
1114
- /** @internal */
1115
- export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
1116
- GetAllPromptsModelParameters$Outbound,
1117
- z.ZodTypeDef,
1118
- GetAllPromptsModelParameters
1119
- > = z.object({
1120
- temperature: z.number().optional(),
1121
- maxTokens: z.number().optional(),
1122
- topK: z.number().optional(),
1123
- topP: z.number().optional(),
1124
- frequencyPenalty: z.number().optional(),
1125
- presencePenalty: z.number().optional(),
1126
- numImages: z.number().optional(),
1127
- seed: z.number().optional(),
1128
- format: GetAllPromptsFormat$outboundSchema.optional(),
1129
- dimensions: z.string().optional(),
1130
- quality: z.string().optional(),
1131
- style: z.string().optional(),
1132
- responseFormat: z.nullable(
1133
- z.union([
1134
- z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
1135
- z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
1136
- z.lazy(() => GetAllPromptsResponseFormat3$outboundSchema),
1137
- GetAllPromptsResponseFormat4$outboundSchema,
1138
- GetAllPromptsResponseFormat5$outboundSchema,
1139
- GetAllPromptsResponseFormat6$outboundSchema,
1140
- ]),
1141
- ).optional(),
1142
- photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
1143
- encodingFormat: GetAllPromptsEncodingFormat$outboundSchema.optional(),
1144
- reasoningEffort: GetAllPromptsReasoningEffort$outboundSchema.optional(),
1145
- budgetTokens: z.number().optional(),
1146
- verbosity: GetAllPromptsVerbosity$outboundSchema.optional(),
1147
- thinkingLevel: GetAllPromptsThinkingLevel$outboundSchema.optional(),
1148
- }).transform((v) => {
1149
- return remap$(v, {
1150
- encodingFormat: "encoding_format",
1151
- });
1152
- });
1153
-
1154
- export function getAllPromptsModelParametersToJSON(
1155
- getAllPromptsModelParameters: GetAllPromptsModelParameters,
1156
- ): string {
1157
- return JSON.stringify(
1158
- GetAllPromptsModelParameters$outboundSchema.parse(
1159
- getAllPromptsModelParameters,
1160
- ),
1161
- );
1162
- }
1163
- export function getAllPromptsModelParametersFromJSON(
1164
- jsonString: string,
1165
- ): SafeParseResult<GetAllPromptsModelParameters, SDKValidationError> {
1166
- return safeParse(
1167
- jsonString,
1168
- (x) => GetAllPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
1169
- `Failed to parse 'GetAllPromptsModelParameters' from JSON`,
1170
- );
1171
- }
1172
-
1173
- /** @internal */
1174
- export const GetAllPromptsProvider$inboundSchema: z.ZodNativeEnum<
1175
- typeof GetAllPromptsProvider
1176
- > = z.nativeEnum(GetAllPromptsProvider);
1177
- /** @internal */
1178
- export const GetAllPromptsProvider$outboundSchema: z.ZodNativeEnum<
1179
- typeof GetAllPromptsProvider
1180
- > = GetAllPromptsProvider$inboundSchema;
1181
-
1182
- /** @internal */
1183
- export const GetAllPromptsRole$inboundSchema: z.ZodNativeEnum<
1184
- typeof GetAllPromptsRole
1185
- > = z.nativeEnum(GetAllPromptsRole);
1186
- /** @internal */
1187
- export const GetAllPromptsRole$outboundSchema: z.ZodNativeEnum<
1188
- typeof GetAllPromptsRole
1189
- > = GetAllPromptsRole$inboundSchema;
1190
-
1191
- /** @internal */
1192
- export const GetAllPrompts2File$inboundSchema: z.ZodType<
1193
- GetAllPrompts2File,
1194
- z.ZodTypeDef,
1195
- unknown
1196
- > = z.object({
1197
- file_data: z.string().optional(),
1198
- uri: z.string().optional(),
1199
- mimeType: z.string().optional(),
1200
- filename: z.string().optional(),
1201
- }).transform((v) => {
1202
- return remap$(v, {
1203
- "file_data": "fileData",
1204
- });
1205
- });
1206
- /** @internal */
1207
- export type GetAllPrompts2File$Outbound = {
1208
- file_data?: string | undefined;
1209
- uri?: string | undefined;
1210
- mimeType?: string | undefined;
1211
- filename?: string | undefined;
1212
- };
1213
-
1214
- /** @internal */
1215
- export const GetAllPrompts2File$outboundSchema: z.ZodType<
1216
- GetAllPrompts2File$Outbound,
1217
- z.ZodTypeDef,
1218
- GetAllPrompts2File
1219
- > = z.object({
1220
- fileData: z.string().optional(),
1221
- uri: z.string().optional(),
1222
- mimeType: z.string().optional(),
1223
- filename: z.string().optional(),
1224
- }).transform((v) => {
1225
- return remap$(v, {
1226
- fileData: "file_data",
1227
- });
1228
- });
1229
-
1230
- export function getAllPrompts2FileToJSON(
1231
- getAllPrompts2File: GetAllPrompts2File,
1232
- ): string {
1233
- return JSON.stringify(
1234
- GetAllPrompts2File$outboundSchema.parse(getAllPrompts2File),
1235
- );
1236
- }
1237
- export function getAllPrompts2FileFromJSON(
1238
- jsonString: string,
1239
- ): SafeParseResult<GetAllPrompts2File, SDKValidationError> {
1240
- return safeParse(
1241
- jsonString,
1242
- (x) => GetAllPrompts2File$inboundSchema.parse(JSON.parse(x)),
1243
- `Failed to parse 'GetAllPrompts2File' from JSON`,
1244
- );
1245
- }
1246
-
1247
- /** @internal */
1248
- export const GetAllPrompts23$inboundSchema: z.ZodType<
1249
- GetAllPrompts23,
1250
- z.ZodTypeDef,
1251
- unknown
1252
- > = z.object({
1253
- type: z.literal("file"),
1254
- file: z.lazy(() => GetAllPrompts2File$inboundSchema),
1255
- });
1256
- /** @internal */
1257
- export type GetAllPrompts23$Outbound = {
1258
- type: "file";
1259
- file: GetAllPrompts2File$Outbound;
1260
- };
1261
-
1262
- /** @internal */
1263
- export const GetAllPrompts23$outboundSchema: z.ZodType<
1264
- GetAllPrompts23$Outbound,
1265
- z.ZodTypeDef,
1266
- GetAllPrompts23
1267
- > = z.object({
1268
- type: z.literal("file"),
1269
- file: z.lazy(() => GetAllPrompts2File$outboundSchema),
1270
- });
1271
-
1272
- export function getAllPrompts23ToJSON(
1273
- getAllPrompts23: GetAllPrompts23,
1274
- ): string {
1275
- return JSON.stringify(GetAllPrompts23$outboundSchema.parse(getAllPrompts23));
1276
- }
1277
- export function getAllPrompts23FromJSON(
1278
- jsonString: string,
1279
- ): SafeParseResult<GetAllPrompts23, SDKValidationError> {
1280
- return safeParse(
1281
- jsonString,
1282
- (x) => GetAllPrompts23$inboundSchema.parse(JSON.parse(x)),
1283
- `Failed to parse 'GetAllPrompts23' from JSON`,
1284
- );
1285
- }
1286
-
1287
- /** @internal */
1288
- export const GetAllPrompts2ImageUrl$inboundSchema: z.ZodType<
1289
- GetAllPrompts2ImageUrl,
1290
- z.ZodTypeDef,
1291
- unknown
1292
- > = z.object({
1293
- id: z.string().optional(),
1294
- url: z.string(),
1295
- detail: z.string().optional(),
1296
- });
1297
- /** @internal */
1298
- export type GetAllPrompts2ImageUrl$Outbound = {
1299
- id?: string | undefined;
1300
- url: string;
1301
- detail?: string | undefined;
1302
- };
1303
-
1304
- /** @internal */
1305
- export const GetAllPrompts2ImageUrl$outboundSchema: z.ZodType<
1306
- GetAllPrompts2ImageUrl$Outbound,
1307
- z.ZodTypeDef,
1308
- GetAllPrompts2ImageUrl
1309
- > = z.object({
1310
- id: z.string().optional(),
1311
- url: z.string(),
1312
- detail: z.string().optional(),
1313
- });
1314
-
1315
- export function getAllPrompts2ImageUrlToJSON(
1316
- getAllPrompts2ImageUrl: GetAllPrompts2ImageUrl,
1317
- ): string {
1318
- return JSON.stringify(
1319
- GetAllPrompts2ImageUrl$outboundSchema.parse(getAllPrompts2ImageUrl),
1320
- );
1321
- }
1322
- export function getAllPrompts2ImageUrlFromJSON(
1323
- jsonString: string,
1324
- ): SafeParseResult<GetAllPrompts2ImageUrl, SDKValidationError> {
1325
- return safeParse(
1326
- jsonString,
1327
- (x) => GetAllPrompts2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1328
- `Failed to parse 'GetAllPrompts2ImageUrl' from JSON`,
1329
- );
1330
- }
1331
-
1332
- /** @internal */
1333
- export const GetAllPrompts22$inboundSchema: z.ZodType<
1334
- GetAllPrompts22,
1335
- z.ZodTypeDef,
1336
- unknown
1337
- > = z.object({
1338
- type: z.literal("image_url"),
1339
- image_url: z.lazy(() => GetAllPrompts2ImageUrl$inboundSchema),
1340
- }).transform((v) => {
1341
- return remap$(v, {
1342
- "image_url": "imageUrl",
1343
- });
1344
- });
1345
- /** @internal */
1346
- export type GetAllPrompts22$Outbound = {
1347
- type: "image_url";
1348
- image_url: GetAllPrompts2ImageUrl$Outbound;
1349
- };
1350
-
1351
- /** @internal */
1352
- export const GetAllPrompts22$outboundSchema: z.ZodType<
1353
- GetAllPrompts22$Outbound,
1354
- z.ZodTypeDef,
1355
- GetAllPrompts22
1356
- > = z.object({
1357
- type: z.literal("image_url"),
1358
- imageUrl: z.lazy(() => GetAllPrompts2ImageUrl$outboundSchema),
1359
- }).transform((v) => {
1360
- return remap$(v, {
1361
- imageUrl: "image_url",
1362
- });
1363
- });
1364
-
1365
- export function getAllPrompts22ToJSON(
1366
- getAllPrompts22: GetAllPrompts22,
1367
- ): string {
1368
- return JSON.stringify(GetAllPrompts22$outboundSchema.parse(getAllPrompts22));
1369
- }
1370
- export function getAllPrompts22FromJSON(
1371
- jsonString: string,
1372
- ): SafeParseResult<GetAllPrompts22, SDKValidationError> {
1373
- return safeParse(
1374
- jsonString,
1375
- (x) => GetAllPrompts22$inboundSchema.parse(JSON.parse(x)),
1376
- `Failed to parse 'GetAllPrompts22' from JSON`,
1377
- );
1378
- }
1379
-
1380
- /** @internal */
1381
- export const GetAllPrompts21$inboundSchema: z.ZodType<
1382
- GetAllPrompts21,
1383
- z.ZodTypeDef,
1384
- unknown
1385
- > = z.object({
1386
- type: z.literal("text"),
1387
- text: z.string(),
1388
- });
1389
- /** @internal */
1390
- export type GetAllPrompts21$Outbound = {
1391
- type: "text";
1392
- text: string;
1393
- };
1394
-
1395
- /** @internal */
1396
- export const GetAllPrompts21$outboundSchema: z.ZodType<
1397
- GetAllPrompts21$Outbound,
1398
- z.ZodTypeDef,
1399
- GetAllPrompts21
1400
- > = z.object({
1401
- type: z.literal("text"),
1402
- text: z.string(),
1403
- });
1404
-
1405
- export function getAllPrompts21ToJSON(
1406
- getAllPrompts21: GetAllPrompts21,
1407
- ): string {
1408
- return JSON.stringify(GetAllPrompts21$outboundSchema.parse(getAllPrompts21));
1409
- }
1410
- export function getAllPrompts21FromJSON(
1411
- jsonString: string,
1412
- ): SafeParseResult<GetAllPrompts21, SDKValidationError> {
1413
- return safeParse(
1414
- jsonString,
1415
- (x) => GetAllPrompts21$inboundSchema.parse(JSON.parse(x)),
1416
- `Failed to parse 'GetAllPrompts21' from JSON`,
1417
- );
1418
- }
1419
-
1420
- /** @internal */
1421
- export const GetAllPromptsContent2$inboundSchema: z.ZodType<
1422
- GetAllPromptsContent2,
1423
- z.ZodTypeDef,
1424
- unknown
1425
- > = z.union([
1426
- z.lazy(() => GetAllPrompts21$inboundSchema),
1427
- z.lazy(() => GetAllPrompts22$inboundSchema),
1428
- z.lazy(() => GetAllPrompts23$inboundSchema),
1429
- ]);
1430
- /** @internal */
1431
- export type GetAllPromptsContent2$Outbound =
1432
- | GetAllPrompts21$Outbound
1433
- | GetAllPrompts22$Outbound
1434
- | GetAllPrompts23$Outbound;
1435
-
1436
- /** @internal */
1437
- export const GetAllPromptsContent2$outboundSchema: z.ZodType<
1438
- GetAllPromptsContent2$Outbound,
1439
- z.ZodTypeDef,
1440
- GetAllPromptsContent2
1441
- > = z.union([
1442
- z.lazy(() => GetAllPrompts21$outboundSchema),
1443
- z.lazy(() => GetAllPrompts22$outboundSchema),
1444
- z.lazy(() => GetAllPrompts23$outboundSchema),
1445
- ]);
1446
-
1447
- export function getAllPromptsContent2ToJSON(
1448
- getAllPromptsContent2: GetAllPromptsContent2,
1449
- ): string {
1450
- return JSON.stringify(
1451
- GetAllPromptsContent2$outboundSchema.parse(getAllPromptsContent2),
1452
- );
1453
- }
1454
- export function getAllPromptsContent2FromJSON(
1455
- jsonString: string,
1456
- ): SafeParseResult<GetAllPromptsContent2, SDKValidationError> {
1457
- return safeParse(
1458
- jsonString,
1459
- (x) => GetAllPromptsContent2$inboundSchema.parse(JSON.parse(x)),
1460
- `Failed to parse 'GetAllPromptsContent2' from JSON`,
1461
- );
1462
- }
1463
-
1464
- /** @internal */
1465
- export const GetAllPromptsContent$inboundSchema: z.ZodType<
1466
- GetAllPromptsContent,
1467
- z.ZodTypeDef,
1468
- unknown
1469
- > = z.union([
1470
- z.string(),
1471
- z.array(z.union([
1472
- z.lazy(() => GetAllPrompts21$inboundSchema),
1473
- z.lazy(() => GetAllPrompts22$inboundSchema),
1474
- z.lazy(() => GetAllPrompts23$inboundSchema),
1475
- ])),
1476
- ]);
1477
- /** @internal */
1478
- export type GetAllPromptsContent$Outbound =
1479
- | string
1480
- | Array<
1481
- | GetAllPrompts21$Outbound
1482
- | GetAllPrompts22$Outbound
1483
- | GetAllPrompts23$Outbound
1484
- >;
1485
-
1486
- /** @internal */
1487
- export const GetAllPromptsContent$outboundSchema: z.ZodType<
1488
- GetAllPromptsContent$Outbound,
1489
- z.ZodTypeDef,
1490
- GetAllPromptsContent
1491
- > = z.union([
1492
- z.string(),
1493
- z.array(z.union([
1494
- z.lazy(() => GetAllPrompts21$outboundSchema),
1495
- z.lazy(() => GetAllPrompts22$outboundSchema),
1496
- z.lazy(() => GetAllPrompts23$outboundSchema),
1497
- ])),
1498
- ]);
1499
-
1500
- export function getAllPromptsContentToJSON(
1501
- getAllPromptsContent: GetAllPromptsContent,
1502
- ): string {
1503
- return JSON.stringify(
1504
- GetAllPromptsContent$outboundSchema.parse(getAllPromptsContent),
1505
- );
1506
- }
1507
- export function getAllPromptsContentFromJSON(
1508
- jsonString: string,
1509
- ): SafeParseResult<GetAllPromptsContent, SDKValidationError> {
1510
- return safeParse(
1511
- jsonString,
1512
- (x) => GetAllPromptsContent$inboundSchema.parse(JSON.parse(x)),
1513
- `Failed to parse 'GetAllPromptsContent' from JSON`,
1514
- );
1515
- }
1516
-
1517
- /** @internal */
1518
- export const GetAllPromptsPromptsType$inboundSchema: z.ZodNativeEnum<
1519
- typeof GetAllPromptsPromptsType
1520
- > = z.nativeEnum(GetAllPromptsPromptsType);
1521
- /** @internal */
1522
- export const GetAllPromptsPromptsType$outboundSchema: z.ZodNativeEnum<
1523
- typeof GetAllPromptsPromptsType
1524
- > = GetAllPromptsPromptsType$inboundSchema;
1525
-
1526
- /** @internal */
1527
- export const GetAllPromptsFunction$inboundSchema: z.ZodType<
1528
- GetAllPromptsFunction,
1529
- z.ZodTypeDef,
1530
- unknown
1531
- > = z.object({
1532
- name: z.string(),
1533
- arguments: z.string(),
1534
- });
1535
- /** @internal */
1536
- export type GetAllPromptsFunction$Outbound = {
1537
- name: string;
1538
- arguments: string;
1539
- };
1540
-
1541
- /** @internal */
1542
- export const GetAllPromptsFunction$outboundSchema: z.ZodType<
1543
- GetAllPromptsFunction$Outbound,
1544
- z.ZodTypeDef,
1545
- GetAllPromptsFunction
1546
- > = z.object({
1547
- name: z.string(),
1548
- arguments: z.string(),
1549
- });
1550
-
1551
- export function getAllPromptsFunctionToJSON(
1552
- getAllPromptsFunction: GetAllPromptsFunction,
1553
- ): string {
1554
- return JSON.stringify(
1555
- GetAllPromptsFunction$outboundSchema.parse(getAllPromptsFunction),
1556
- );
1557
- }
1558
- export function getAllPromptsFunctionFromJSON(
1559
- jsonString: string,
1560
- ): SafeParseResult<GetAllPromptsFunction, SDKValidationError> {
1561
- return safeParse(
1562
- jsonString,
1563
- (x) => GetAllPromptsFunction$inboundSchema.parse(JSON.parse(x)),
1564
- `Failed to parse 'GetAllPromptsFunction' from JSON`,
1565
- );
1566
- }
1567
-
1568
- /** @internal */
1569
- export const GetAllPromptsToolCalls$inboundSchema: z.ZodType<
1570
- GetAllPromptsToolCalls,
1571
- z.ZodTypeDef,
1572
- unknown
1573
- > = z.object({
1574
- id: z.string().optional(),
1575
- index: z.number().optional(),
1576
- type: GetAllPromptsPromptsType$inboundSchema,
1577
- function: z.lazy(() => GetAllPromptsFunction$inboundSchema),
1578
- });
1579
- /** @internal */
1580
- export type GetAllPromptsToolCalls$Outbound = {
1581
- id?: string | undefined;
1582
- index?: number | undefined;
1583
- type: string;
1584
- function: GetAllPromptsFunction$Outbound;
1585
- };
1586
-
1587
- /** @internal */
1588
- export const GetAllPromptsToolCalls$outboundSchema: z.ZodType<
1589
- GetAllPromptsToolCalls$Outbound,
1590
- z.ZodTypeDef,
1591
- GetAllPromptsToolCalls
1592
- > = z.object({
1593
- id: z.string().optional(),
1594
- index: z.number().optional(),
1595
- type: GetAllPromptsPromptsType$outboundSchema,
1596
- function: z.lazy(() => GetAllPromptsFunction$outboundSchema),
1597
- });
1598
-
1599
- export function getAllPromptsToolCallsToJSON(
1600
- getAllPromptsToolCalls: GetAllPromptsToolCalls,
1601
- ): string {
1602
- return JSON.stringify(
1603
- GetAllPromptsToolCalls$outboundSchema.parse(getAllPromptsToolCalls),
1604
- );
1605
- }
1606
- export function getAllPromptsToolCallsFromJSON(
1607
- jsonString: string,
1608
- ): SafeParseResult<GetAllPromptsToolCalls, SDKValidationError> {
1609
- return safeParse(
1610
- jsonString,
1611
- (x) => GetAllPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
1612
- `Failed to parse 'GetAllPromptsToolCalls' from JSON`,
1613
- );
1614
- }
1615
-
1616
- /** @internal */
1617
- export const GetAllPromptsMessages$inboundSchema: z.ZodType<
1618
- GetAllPromptsMessages,
1619
- z.ZodTypeDef,
1620
- unknown
1621
- > = z.object({
1622
- role: GetAllPromptsRole$inboundSchema,
1623
- content: z.nullable(
1624
- z.union([
1625
- z.string(),
1626
- z.array(z.union([
1627
- z.lazy(() => GetAllPrompts21$inboundSchema),
1628
- z.lazy(() => GetAllPrompts22$inboundSchema),
1629
- z.lazy(() => GetAllPrompts23$inboundSchema),
1630
- ])),
1631
- ]),
1632
- ),
1633
- tool_calls: z.array(z.lazy(() => GetAllPromptsToolCalls$inboundSchema))
1634
- .optional(),
1635
- tool_call_id: z.nullable(z.string()).optional(),
1636
- }).transform((v) => {
1637
- return remap$(v, {
1638
- "tool_calls": "toolCalls",
1639
- "tool_call_id": "toolCallId",
1640
- });
1641
- });
1642
- /** @internal */
1643
- export type GetAllPromptsMessages$Outbound = {
1644
- role: string;
1645
- content:
1646
- | string
1647
- | Array<
1648
- | GetAllPrompts21$Outbound
1649
- | GetAllPrompts22$Outbound
1650
- | GetAllPrompts23$Outbound
1651
- >
1652
- | null;
1653
- tool_calls?: Array<GetAllPromptsToolCalls$Outbound> | undefined;
1654
- tool_call_id?: string | null | undefined;
1655
- };
1656
-
1657
- /** @internal */
1658
- export const GetAllPromptsMessages$outboundSchema: z.ZodType<
1659
- GetAllPromptsMessages$Outbound,
1660
- z.ZodTypeDef,
1661
- GetAllPromptsMessages
1662
- > = z.object({
1663
- role: GetAllPromptsRole$outboundSchema,
1664
- content: z.nullable(
1665
- z.union([
1666
- z.string(),
1667
- z.array(
1668
- z.union([
1669
- z.lazy(() => GetAllPrompts21$outboundSchema),
1670
- z.lazy(() => GetAllPrompts22$outboundSchema),
1671
- z.lazy(() => GetAllPrompts23$outboundSchema),
1672
- ]),
1673
- ),
1674
- ]),
1675
- ),
1676
- toolCalls: z.array(z.lazy(() => GetAllPromptsToolCalls$outboundSchema))
1677
- .optional(),
1678
- toolCallId: z.nullable(z.string()).optional(),
1679
- }).transform((v) => {
1680
- return remap$(v, {
1681
- toolCalls: "tool_calls",
1682
- toolCallId: "tool_call_id",
1683
- });
1684
- });
1685
-
1686
- export function getAllPromptsMessagesToJSON(
1687
- getAllPromptsMessages: GetAllPromptsMessages,
1688
- ): string {
1689
- return JSON.stringify(
1690
- GetAllPromptsMessages$outboundSchema.parse(getAllPromptsMessages),
1691
- );
1692
- }
1693
- export function getAllPromptsMessagesFromJSON(
1694
- jsonString: string,
1695
- ): SafeParseResult<GetAllPromptsMessages, SDKValidationError> {
1696
- return safeParse(
1697
- jsonString,
1698
- (x) => GetAllPromptsMessages$inboundSchema.parse(JSON.parse(x)),
1699
- `Failed to parse 'GetAllPromptsMessages' from JSON`,
1700
- );
1701
- }
1702
-
1703
- /** @internal */
1704
- export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
1705
- GetAllPromptsPromptConfig,
1706
- z.ZodTypeDef,
1707
- unknown
1708
- > = z.object({
1709
- stream: z.boolean().optional(),
1710
- model: z.string().optional(),
1711
- model_db_id: z.nullable(z.string()).optional(),
1712
- model_type: z.nullable(GetAllPromptsModelType$inboundSchema).optional(),
1713
- model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
1714
- .optional(),
1715
- provider: GetAllPromptsProvider$inboundSchema.optional(),
1716
- integration_id: z.nullable(z.string()).optional(),
1717
- version: z.string().optional(),
1718
- messages: z.array(z.lazy(() => GetAllPromptsMessages$inboundSchema)),
1719
- }).transform((v) => {
1720
- return remap$(v, {
1721
- "model_db_id": "modelDbId",
1722
- "model_type": "modelType",
1723
- "model_parameters": "modelParameters",
1724
- "integration_id": "integrationId",
1725
- });
1726
- });
1727
- /** @internal */
1728
- export type GetAllPromptsPromptConfig$Outbound = {
1729
- stream?: boolean | undefined;
1730
- model?: string | undefined;
1731
- model_db_id?: string | null | undefined;
1732
- model_type?: string | null | undefined;
1733
- model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
1734
- provider?: string | undefined;
1735
- integration_id?: string | null | undefined;
1736
- version?: string | undefined;
1737
- messages: Array<GetAllPromptsMessages$Outbound>;
1738
- };
1739
-
1740
- /** @internal */
1741
- export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
1742
- GetAllPromptsPromptConfig$Outbound,
1743
- z.ZodTypeDef,
1744
- GetAllPromptsPromptConfig
1745
- > = z.object({
1746
- stream: z.boolean().optional(),
1747
- model: z.string().optional(),
1748
- modelDbId: z.nullable(z.string()).optional(),
1749
- modelType: z.nullable(GetAllPromptsModelType$outboundSchema).optional(),
1750
- modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
1751
- .optional(),
1752
- provider: GetAllPromptsProvider$outboundSchema.optional(),
1753
- integrationId: z.nullable(z.string()).optional(),
1754
- version: z.string().optional(),
1755
- messages: z.array(z.lazy(() => GetAllPromptsMessages$outboundSchema)),
1756
- }).transform((v) => {
1757
- return remap$(v, {
1758
- modelDbId: "model_db_id",
1759
- modelType: "model_type",
1760
- modelParameters: "model_parameters",
1761
- integrationId: "integration_id",
1762
- });
1763
- });
1764
-
1765
- export function getAllPromptsPromptConfigToJSON(
1766
- getAllPromptsPromptConfig: GetAllPromptsPromptConfig,
1767
- ): string {
1768
- return JSON.stringify(
1769
- GetAllPromptsPromptConfig$outboundSchema.parse(getAllPromptsPromptConfig),
1770
- );
1771
- }
1772
- export function getAllPromptsPromptConfigFromJSON(
1773
- jsonString: string,
1774
- ): SafeParseResult<GetAllPromptsPromptConfig, SDKValidationError> {
1775
- return safeParse(
1776
- jsonString,
1777
- (x) => GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
1778
- `Failed to parse 'GetAllPromptsPromptConfig' from JSON`,
1779
- );
1780
- }
1781
-
1782
- /** @internal */
1783
- export const GetAllPromptsUseCases$inboundSchema: z.ZodNativeEnum<
1784
- typeof GetAllPromptsUseCases
1785
- > = z.nativeEnum(GetAllPromptsUseCases);
1786
- /** @internal */
1787
- export const GetAllPromptsUseCases$outboundSchema: z.ZodNativeEnum<
1788
- typeof GetAllPromptsUseCases
1789
- > = GetAllPromptsUseCases$inboundSchema;
1790
-
1791
- /** @internal */
1792
- export const GetAllPromptsLanguage$inboundSchema: z.ZodNativeEnum<
1793
- typeof GetAllPromptsLanguage
1794
- > = z.nativeEnum(GetAllPromptsLanguage);
1795
- /** @internal */
1796
- export const GetAllPromptsLanguage$outboundSchema: z.ZodNativeEnum<
1797
- typeof GetAllPromptsLanguage
1798
- > = GetAllPromptsLanguage$inboundSchema;
1799
-
1800
- /** @internal */
1801
- export const GetAllPromptsMetadata$inboundSchema: z.ZodType<
1802
- GetAllPromptsMetadata,
1803
- z.ZodTypeDef,
1804
- unknown
1805
- > = z.object({
1806
- use_cases: z.array(GetAllPromptsUseCases$inboundSchema).optional(),
1807
- language: z.nullable(GetAllPromptsLanguage$inboundSchema).optional(),
1808
- }).transform((v) => {
1809
- return remap$(v, {
1810
- "use_cases": "useCases",
1811
- });
1812
- });
1813
- /** @internal */
1814
- export type GetAllPromptsMetadata$Outbound = {
1815
- use_cases?: Array<string> | undefined;
1816
- language?: string | null | undefined;
1817
- };
1818
-
1819
- /** @internal */
1820
- export const GetAllPromptsMetadata$outboundSchema: z.ZodType<
1821
- GetAllPromptsMetadata$Outbound,
1822
- z.ZodTypeDef,
1823
- GetAllPromptsMetadata
1824
- > = z.object({
1825
- useCases: z.array(GetAllPromptsUseCases$outboundSchema).optional(),
1826
- language: z.nullable(GetAllPromptsLanguage$outboundSchema).optional(),
1827
- }).transform((v) => {
1828
- return remap$(v, {
1829
- useCases: "use_cases",
1830
- });
1831
- });
1832
-
1833
- export function getAllPromptsMetadataToJSON(
1834
- getAllPromptsMetadata: GetAllPromptsMetadata,
1835
- ): string {
1836
- return JSON.stringify(
1837
- GetAllPromptsMetadata$outboundSchema.parse(getAllPromptsMetadata),
1838
- );
1839
- }
1840
- export function getAllPromptsMetadataFromJSON(
1841
- jsonString: string,
1842
- ): SafeParseResult<GetAllPromptsMetadata, SDKValidationError> {
1843
- return safeParse(
1844
- jsonString,
1845
- (x) => GetAllPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
1846
- `Failed to parse 'GetAllPromptsMetadata' from JSON`,
1847
- );
1848
- }
1849
-
1850
- /** @internal */
1851
- export const GetAllPromptsPrompt$inboundSchema: z.ZodType<
1852
- GetAllPromptsPrompt,
1853
- z.ZodTypeDef,
1854
- unknown
1855
- > = z.object({
1856
- _id: z.string(),
1857
- type: GetAllPromptsType$inboundSchema,
1858
- owner: z.string(),
1859
- domain_id: z.string(),
1860
- created: z.string(),
1861
- updated: z.string(),
1862
- created_by_id: z.nullable(z.string()).optional(),
1863
- updated_by_id: z.nullable(z.string()).optional(),
1864
- display_name: z.string(),
1865
- description: z.nullable(z.string()).optional(),
1866
- prompt_config: z.lazy(() => GetAllPromptsPromptConfig$inboundSchema),
1867
- metadata: z.lazy(() => GetAllPromptsMetadata$inboundSchema).optional(),
1868
- }).transform((v) => {
1869
- return remap$(v, {
1870
- "_id": "id",
1871
- "domain_id": "domainId",
1872
- "created_by_id": "createdById",
1873
- "updated_by_id": "updatedById",
1874
- "display_name": "displayName",
1875
- "prompt_config": "promptConfig",
1876
- });
1877
- });
1878
- /** @internal */
1879
- export type GetAllPromptsPrompt$Outbound = {
1880
- _id: string;
1881
- type: string;
1882
- owner: string;
1883
- domain_id: string;
1884
- created: string;
1885
- updated: string;
1886
- created_by_id?: string | null | undefined;
1887
- updated_by_id?: string | null | undefined;
1888
- display_name: string;
1889
- description?: string | null | undefined;
1890
- prompt_config: GetAllPromptsPromptConfig$Outbound;
1891
- metadata?: GetAllPromptsMetadata$Outbound | undefined;
1892
- };
1893
-
1894
- /** @internal */
1895
- export const GetAllPromptsPrompt$outboundSchema: z.ZodType<
1896
- GetAllPromptsPrompt$Outbound,
1897
- z.ZodTypeDef,
1898
- GetAllPromptsPrompt
1899
- > = z.object({
1900
- id: z.string(),
1901
- type: GetAllPromptsType$outboundSchema,
1902
- owner: z.string(),
1903
- domainId: z.string(),
1904
- created: z.string(),
1905
- updated: z.string(),
1906
- createdById: z.nullable(z.string()).optional(),
1907
- updatedById: z.nullable(z.string()).optional(),
1908
- displayName: z.string(),
1909
- description: z.nullable(z.string()).optional(),
1910
- promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema),
1911
- metadata: z.lazy(() => GetAllPromptsMetadata$outboundSchema).optional(),
1912
- }).transform((v) => {
1913
- return remap$(v, {
1914
- id: "_id",
1915
- domainId: "domain_id",
1916
- createdById: "created_by_id",
1917
- updatedById: "updated_by_id",
1918
- displayName: "display_name",
1919
- promptConfig: "prompt_config",
1920
- });
1921
- });
1922
-
1923
- export function getAllPromptsPromptToJSON(
1924
- getAllPromptsPrompt: GetAllPromptsPrompt,
1925
- ): string {
1926
- return JSON.stringify(
1927
- GetAllPromptsPrompt$outboundSchema.parse(getAllPromptsPrompt),
1928
- );
1929
- }
1930
- export function getAllPromptsPromptFromJSON(
1931
- jsonString: string,
1932
- ): SafeParseResult<GetAllPromptsPrompt, SDKValidationError> {
1933
- return safeParse(
1934
- jsonString,
1935
- (x) => GetAllPromptsPrompt$inboundSchema.parse(JSON.parse(x)),
1936
- `Failed to parse 'GetAllPromptsPrompt' from JSON`,
1937
- );
1938
- }
1939
-
1940
- /** @internal */
1941
- export const GetAllPromptsResponseBody$inboundSchema: z.ZodType<
1942
- GetAllPromptsResponseBody,
1943
- z.ZodTypeDef,
1944
- unknown
1945
- > = z.object({
1946
- object: GetAllPromptsObject$inboundSchema,
1947
- data: z.array(z.lazy(() => GetAllPromptsPrompt$inboundSchema)),
1948
- has_more: z.boolean(),
1949
- }).transform((v) => {
1950
- return remap$(v, {
1951
- "has_more": "hasMore",
1952
- });
1953
- });
1954
- /** @internal */
1955
- export type GetAllPromptsResponseBody$Outbound = {
1956
- object: string;
1957
- data: Array<GetAllPromptsPrompt$Outbound>;
1958
- has_more: boolean;
1959
- };
1960
-
1961
- /** @internal */
1962
- export const GetAllPromptsResponseBody$outboundSchema: z.ZodType<
1963
- GetAllPromptsResponseBody$Outbound,
1964
- z.ZodTypeDef,
1965
- GetAllPromptsResponseBody
1966
- > = z.object({
1967
- object: GetAllPromptsObject$outboundSchema,
1968
- data: z.array(z.lazy(() => GetAllPromptsPrompt$outboundSchema)),
1969
- hasMore: z.boolean(),
1970
- }).transform((v) => {
1971
- return remap$(v, {
1972
- hasMore: "has_more",
1973
- });
1974
- });
1975
-
1976
- export function getAllPromptsResponseBodyToJSON(
1977
- getAllPromptsResponseBody: GetAllPromptsResponseBody,
1978
- ): string {
1979
- return JSON.stringify(
1980
- GetAllPromptsResponseBody$outboundSchema.parse(getAllPromptsResponseBody),
1981
- );
1982
- }
1983
- export function getAllPromptsResponseBodyFromJSON(
1984
- jsonString: string,
1985
- ): SafeParseResult<GetAllPromptsResponseBody, SDKValidationError> {
1986
- return safeParse(
1987
- jsonString,
1988
- (x) => GetAllPromptsResponseBody$inboundSchema.parse(JSON.parse(x)),
1989
- `Failed to parse 'GetAllPromptsResponseBody' from JSON`,
1990
- );
1991
- }