@orq-ai/node 4.9.0 → 4.10.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (604) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createcontact.js +1 -1
  7. package/models/operations/createdataset.js +1 -1
  8. package/models/operations/createdatasetitem.js +4 -4
  9. package/models/operations/createdatasource.js +1 -1
  10. package/models/operations/createeval.js +16 -16
  11. package/models/operations/createidentity.js +1 -1
  12. package/models/operations/createtool.js +6 -6
  13. package/models/operations/getalltools.js +6 -6
  14. package/models/operations/getevals.js +16 -16
  15. package/models/operations/getv2humanevalsets.js +2 -2
  16. package/models/operations/getv2humanevalsetsid.js +2 -2
  17. package/models/operations/listdatasetdatapoints.js +4 -4
  18. package/models/operations/listdatasets.js +1 -1
  19. package/models/operations/listdatasources.js +1 -1
  20. package/models/operations/listidentities.js +1 -1
  21. package/models/operations/patchv2humanevalsetsid.js +2 -2
  22. package/models/operations/postv2feedbackevaluation.js +3 -3
  23. package/models/operations/postv2humanevalsets.js +2 -2
  24. package/models/operations/retrievedatapoint.js +4 -4
  25. package/models/operations/retrievedataset.js +1 -1
  26. package/models/operations/retrievedatasource.js +1 -1
  27. package/models/operations/retrieveidentity.js +1 -1
  28. package/models/operations/retrievetool.js +6 -6
  29. package/models/operations/runagent.js +1 -1
  30. package/models/operations/streamrunagent.js +1 -1
  31. package/models/operations/updatedatapoint.js +4 -4
  32. package/models/operations/updatedataset.js +1 -1
  33. package/models/operations/updatedatasource.js +1 -1
  34. package/models/operations/updateeval.js +16 -16
  35. package/models/operations/updateidentity.js +1 -1
  36. package/models/operations/updatetool.js +7 -7
  37. package/package.json +8 -7
  38. package/src/lib/config.ts +2 -2
  39. package/src/models/components/reasoningpart.ts +1 -1
  40. package/src/models/operations/createcontact.ts +1 -1
  41. package/src/models/operations/createdataset.ts +1 -1
  42. package/src/models/operations/createdatasetitem.ts +4 -4
  43. package/src/models/operations/createdatasource.ts +1 -1
  44. package/src/models/operations/createeval.ts +16 -16
  45. package/src/models/operations/createidentity.ts +1 -1
  46. package/src/models/operations/createtool.ts +6 -6
  47. package/src/models/operations/getalltools.ts +6 -6
  48. package/src/models/operations/getevals.ts +16 -16
  49. package/src/models/operations/getv2humanevalsets.ts +2 -2
  50. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  51. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  52. package/src/models/operations/listdatasets.ts +1 -1
  53. package/src/models/operations/listdatasources.ts +1 -1
  54. package/src/models/operations/listidentities.ts +1 -1
  55. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  56. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  57. package/src/models/operations/postv2humanevalsets.ts +2 -2
  58. package/src/models/operations/retrievedatapoint.ts +4 -4
  59. package/src/models/operations/retrievedataset.ts +1 -1
  60. package/src/models/operations/retrievedatasource.ts +1 -1
  61. package/src/models/operations/retrieveidentity.ts +1 -1
  62. package/src/models/operations/retrievetool.ts +6 -6
  63. package/src/models/operations/runagent.ts +1 -1
  64. package/src/models/operations/streamrunagent.ts +1 -1
  65. package/src/models/operations/updatedatapoint.ts +4 -4
  66. package/src/models/operations/updatedataset.ts +1 -1
  67. package/src/models/operations/updatedatasource.ts +1 -1
  68. package/src/models/operations/updateeval.ts +16 -16
  69. package/src/models/operations/updateidentity.ts +1 -1
  70. package/src/models/operations/updatetool.ts +7 -7
  71. package/packages/orq-rc/examples/postV2FeedbackEvaluationRemove.example.ts +0 -24
  72. package/packages/orq-rc/src/core.ts +0 -13
  73. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -163
  74. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -181
  75. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -178
  76. package/packages/orq-rc/src/funcs/agentsList.ts +0 -186
  77. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +0 -180
  78. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -188
  79. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -184
  80. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -183
  81. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -181
  82. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -164
  83. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -205
  84. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
  85. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -185
  86. package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -172
  87. package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -172
  88. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -162
  89. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -162
  90. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -168
  91. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -167
  92. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -172
  93. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -168
  94. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -183
  95. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -169
  96. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -175
  97. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -176
  98. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -182
  99. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -177
  100. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -180
  101. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -170
  102. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -178
  103. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -178
  104. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -171
  105. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -188
  106. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -175
  107. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -171
  108. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -174
  109. package/packages/orq-rc/src/funcs/evalsGetV2EvaluatorsIdVersions.ts +0 -184
  110. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -182
  111. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -174
  112. package/packages/orq-rc/src/funcs/feedbackPostV2Feedback.ts +0 -174
  113. package/packages/orq-rc/src/funcs/feedbackPostV2FeedbackRemove.ts +0 -169
  114. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -162
  115. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -165
  116. package/packages/orq-rc/src/funcs/filesGet.ts +0 -168
  117. package/packages/orq-rc/src/funcs/filesGetContent.ts +0 -168
  118. package/packages/orq-rc/src/funcs/filesList.ts +0 -170
  119. package/packages/orq-rc/src/funcs/filesUpdate.ts +0 -169
  120. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +0 -163
  121. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +0 -172
  122. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +0 -172
  123. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +0 -170
  124. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +0 -172
  125. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +0 -166
  126. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +0 -170
  127. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +0 -165
  128. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +0 -166
  129. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +0 -164
  130. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -167
  131. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -177
  132. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -172
  133. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -185
  134. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -177
  135. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -160
  136. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -172
  137. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -167
  138. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -168
  139. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -175
  140. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -171
  141. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -174
  142. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -171
  143. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -171
  144. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -179
  145. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -172
  146. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -175
  147. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -167
  148. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -174
  149. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -170
  150. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -168
  151. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -165
  152. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -175
  153. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -171
  154. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -164
  155. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -177
  156. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -171
  157. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -169
  158. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -186
  159. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -181
  160. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -180
  161. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -185
  162. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -178
  163. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -178
  164. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -180
  165. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -175
  166. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -169
  167. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -181
  168. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -176
  169. package/packages/orq-rc/src/funcs/policiesCreate.ts +0 -162
  170. package/packages/orq-rc/src/funcs/policiesDelete.ts +0 -168
  171. package/packages/orq-rc/src/funcs/policiesList.ts +0 -170
  172. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +0 -167
  173. package/packages/orq-rc/src/funcs/policiesUpdate.ts +0 -168
  174. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +0 -161
  175. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +0 -161
  176. package/packages/orq-rc/src/funcs/projectsCreate.ts +0 -162
  177. package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -165
  178. package/packages/orq-rc/src/funcs/projectsGet.ts +0 -168
  179. package/packages/orq-rc/src/funcs/projectsList.ts +0 -170
  180. package/packages/orq-rc/src/funcs/projectsUpdate.ts +0 -171
  181. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -162
  182. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -174
  183. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -182
  184. package/packages/orq-rc/src/funcs/promptsList.ts +0 -169
  185. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -174
  186. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -167
  187. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -174
  188. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -163
  189. package/packages/orq-rc/src/funcs/responsesCreate.ts +0 -170
  190. package/packages/orq-rc/src/funcs/responsesGet.ts +0 -167
  191. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -163
  192. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -272
  193. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -262
  194. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -170
  195. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -170
  196. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -163
  197. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -224
  198. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -162
  199. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -220
  200. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -169
  201. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -160
  202. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -162
  203. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +0 -163
  204. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +0 -168
  205. package/packages/orq-rc/src/funcs/routingRulesList.ts +0 -170
  206. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +0 -167
  207. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +0 -168
  208. package/packages/orq-rc/src/funcs/schedulesCreate.ts +0 -185
  209. package/packages/orq-rc/src/funcs/schedulesDelete.ts +0 -184
  210. package/packages/orq-rc/src/funcs/schedulesList.ts +0 -167
  211. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +0 -183
  212. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +0 -190
  213. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +0 -191
  214. package/packages/orq-rc/src/funcs/skillsCreate.ts +0 -162
  215. package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -165
  216. package/packages/orq-rc/src/funcs/skillsGet.ts +0 -168
  217. package/packages/orq-rc/src/funcs/skillsList.ts +0 -170
  218. package/packages/orq-rc/src/funcs/skillsUpdate.ts +0 -171
  219. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -165
  220. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -168
  221. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -184
  222. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -191
  223. package/packages/orq-rc/src/funcs/toolsList.ts +0 -178
  224. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -167
  225. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -177
  226. package/packages/orq-rc/src/hooks/global.ts +0 -44
  227. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  228. package/packages/orq-rc/src/hooks/index.ts +0 -6
  229. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  230. package/packages/orq-rc/src/hooks/types.ts +0 -112
  231. package/packages/orq-rc/src/index.ts +0 -9
  232. package/packages/orq-rc/src/lib/base64.ts +0 -37
  233. package/packages/orq-rc/src/lib/config.ts +0 -74
  234. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  235. package/packages/orq-rc/src/lib/encodings.ts +0 -525
  236. package/packages/orq-rc/src/lib/env.ts +0 -89
  237. package/packages/orq-rc/src/lib/event-streams.ts +0 -165
  238. package/packages/orq-rc/src/lib/files.ts +0 -104
  239. package/packages/orq-rc/src/lib/http.ts +0 -323
  240. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  241. package/packages/orq-rc/src/lib/logger.ts +0 -9
  242. package/packages/orq-rc/src/lib/matchers.ts +0 -346
  243. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  244. package/packages/orq-rc/src/lib/retries.ts +0 -218
  245. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  246. package/packages/orq-rc/src/lib/sdks.ts +0 -406
  247. package/packages/orq-rc/src/lib/security.ts +0 -275
  248. package/packages/orq-rc/src/lib/url.ts +0 -35
  249. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  250. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  251. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  252. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  253. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  254. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  255. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  256. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  257. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -520
  258. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
  259. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  260. package/packages/orq-rc/src/models/components/budgetlimit.ts +0 -83
  261. package/packages/orq-rc/src/models/components/conversationparam.ts +0 -51
  262. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
  263. package/packages/orq-rc/src/models/components/createfilerequest.ts +0 -45
  264. package/packages/orq-rc/src/models/components/createfileresponse.ts +0 -32
  265. package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -34
  266. package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -32
  267. package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -52
  268. package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -32
  269. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  270. package/packages/orq-rc/src/models/components/deletefileresponse.ts +0 -27
  271. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +0 -27
  272. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +0 -27
  273. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  274. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  275. package/packages/orq-rc/src/models/components/evaluatorref.ts +0 -89
  276. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  277. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  278. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  279. package/packages/orq-rc/src/models/components/expression.ts +0 -33
  280. package/packages/orq-rc/src/models/components/expressioninput.ts +0 -29
  281. package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
  282. package/packages/orq-rc/src/models/components/fallbackconfig.ts +0 -27
  283. package/packages/orq-rc/src/models/components/file.ts +0 -48
  284. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  285. package/packages/orq-rc/src/models/components/filepart.ts +0 -223
  286. package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
  287. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +0 -36
  288. package/packages/orq-rc/src/models/components/getfileresponse.ts +0 -32
  289. package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -32
  290. package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -32
  291. package/packages/orq-rc/src/models/components/guardrailref.ts +0 -87
  292. package/packages/orq-rc/src/models/components/guardrailrule.ts +0 -66
  293. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  294. package/packages/orq-rc/src/models/components/incompletedetails.ts +0 -31
  295. package/packages/orq-rc/src/models/components/index.ts +0 -117
  296. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +0 -39
  297. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3450
  298. package/packages/orq-rc/src/models/components/limits.ts +0 -70
  299. package/packages/orq-rc/src/models/components/listfilesresponse.ts +0 -41
  300. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -41
  301. package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -41
  302. package/packages/orq-rc/src/models/components/memoryparam.ts +0 -56
  303. package/packages/orq-rc/src/models/components/modelref.ts +0 -64
  304. package/packages/orq-rc/src/models/components/modelsconfig.ts +0 -73
  305. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +0 -36
  306. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  307. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  308. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -70
  309. package/packages/orq-rc/src/models/components/policy.ts +0 -80
  310. package/packages/orq-rc/src/models/components/policyretryconfig.ts +0 -64
  311. package/packages/orq-rc/src/models/components/project.ts +0 -64
  312. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  313. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  314. package/packages/orq-rc/src/models/components/publicschedule.ts +0 -118
  315. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +0 -39
  316. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +0 -84
  317. package/packages/orq-rc/src/models/components/publicusage.ts +0 -77
  318. package/packages/orq-rc/src/models/components/reasoning.ts +0 -33
  319. package/packages/orq-rc/src/models/components/reasoningparam.ts +0 -30
  320. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  321. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  322. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  323. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  324. package/packages/orq-rc/src/models/components/requestlimit.ts +0 -69
  325. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
  326. package/packages/orq-rc/src/models/components/responseerror.ts +0 -33
  327. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +0 -52
  328. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  329. package/packages/orq-rc/src/models/components/responseidentity.ts +0 -48
  330. package/packages/orq-rc/src/models/components/responseretryconfig.ts +0 -45
  331. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
  332. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  333. package/packages/orq-rc/src/models/components/responsethread.ts +0 -30
  334. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  335. package/packages/orq-rc/src/models/components/routingrule.ts +0 -67
  336. package/packages/orq-rc/src/models/components/security.ts +0 -32
  337. package/packages/orq-rc/src/models/components/skill.ts +0 -75
  338. package/packages/orq-rc/src/models/components/streamoptions.ts +0 -32
  339. package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
  340. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  341. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  342. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +0 -59
  343. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  344. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -107
  345. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  346. package/packages/orq-rc/src/models/components/tokenlimit.ts +0 -69
  347. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  348. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  349. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -235
  350. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -219
  351. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -205
  352. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  353. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  354. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  355. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  356. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  357. package/packages/orq-rc/src/models/components/updatefilerequest.ts +0 -40
  358. package/packages/orq-rc/src/models/components/updatefileresponse.ts +0 -32
  359. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -42
  360. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -32
  361. package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -56
  362. package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -32
  363. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  364. package/packages/orq-rc/src/models/errors/createagentschedule.ts +0 -105
  365. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  366. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  367. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  368. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  369. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  370. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +0 -56
  371. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  372. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  373. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  374. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  375. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  376. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  377. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  378. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  379. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  380. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  381. package/packages/orq-rc/src/models/errors/index.ts +0 -42
  382. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  383. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  384. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
  385. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
  386. package/packages/orq-rc/src/models/errors/postv2feedback.ts +0 -96
  387. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +0 -51
  388. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  389. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  390. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +0 -56
  391. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
  392. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  393. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  394. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  395. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +0 -105
  396. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  397. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +0 -105
  398. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  399. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  400. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  401. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  402. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  403. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6467
  404. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -670
  405. package/packages/orq-rc/src/models/operations/createagentschedule.ts +0 -227
  406. package/packages/orq-rc/src/models/operations/createannotation.ts +0 -166
  407. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6398
  408. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  409. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3473
  410. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  411. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  412. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2554
  413. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
  414. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
  415. package/packages/orq-rc/src/models/operations/createeval.ts +0 -5046
  416. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  417. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1034
  418. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  419. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  420. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -958
  421. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  422. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  423. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  424. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  425. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5408
  426. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  427. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +0 -1509
  428. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  429. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2494
  430. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  431. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  432. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  433. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +0 -46
  434. package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -82
  435. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  436. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  437. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  438. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  439. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  440. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  441. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
  442. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  443. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  444. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  445. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  446. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  447. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  448. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +0 -36
  449. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  450. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4518
  451. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -737
  452. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1276
  453. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4661
  454. package/packages/orq-rc/src/models/operations/filecontent.ts +0 -36
  455. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -36
  456. package/packages/orq-rc/src/models/operations/fileget.ts +0 -32
  457. package/packages/orq-rc/src/models/operations/filelist.ts +0 -41
  458. package/packages/orq-rc/src/models/operations/fileupdate.ts +0 -41
  459. package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
  460. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  461. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  462. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  463. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3176
  464. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1389
  465. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
  466. package/packages/orq-rc/src/models/operations/getevals.ts +0 -3299
  467. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  468. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  469. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3101
  470. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3146
  471. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  472. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +0 -234
  473. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +0 -235
  474. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  475. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  476. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +0 -124
  477. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +0 -39
  478. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +0 -102
  479. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +0 -94
  480. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +0 -153
  481. package/packages/orq-rc/src/models/operations/index.ts +0 -154
  482. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -801
  483. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1257
  484. package/packages/orq-rc/src/models/operations/listagents.ts +0 -2783
  485. package/packages/orq-rc/src/models/operations/listagentschedules.ts +0 -69
  486. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
  487. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
  488. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  489. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  490. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
  491. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
  492. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  493. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3221
  494. package/packages/orq-rc/src/models/operations/parse.ts +0 -784
  495. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +0 -415
  496. package/packages/orq-rc/src/models/operations/policycreate.ts +0 -138
  497. package/packages/orq-rc/src/models/operations/policydelete.ts +0 -39
  498. package/packages/orq-rc/src/models/operations/policyget.ts +0 -110
  499. package/packages/orq-rc/src/models/operations/policylist.ts +0 -94
  500. package/packages/orq-rc/src/models/operations/policyupdate.ts +0 -174
  501. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -252
  502. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
  503. package/packages/orq-rc/src/models/operations/postv2feedback.ts +0 -207
  504. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +0 -321
  505. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
  506. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +0 -138
  507. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +0 -365
  508. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  509. package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -36
  510. package/packages/orq-rc/src/models/operations/projectget.ts +0 -36
  511. package/packages/orq-rc/src/models/operations/projectlist.ts +0 -43
  512. package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -41
  513. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  514. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2845
  515. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +0 -162
  516. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  517. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  518. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  519. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -174
  520. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  521. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  522. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  523. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +0 -225
  524. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1370
  525. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +0 -124
  526. package/packages/orq-rc/src/models/operations/routingruledelete.ts +0 -39
  527. package/packages/orq-rc/src/models/operations/routingruleget.ts +0 -102
  528. package/packages/orq-rc/src/models/operations/routingrulelist.ts +0 -94
  529. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +0 -154
  530. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4963
  531. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  532. package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -36
  533. package/packages/orq-rc/src/models/operations/skillget.ts +0 -40
  534. package/packages/orq-rc/src/models/operations/skilllist.ts +0 -49
  535. package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -41
  536. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -692
  537. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5125
  538. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +0 -86
  539. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6875
  540. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +0 -241
  541. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  542. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  543. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  544. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  545. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -3790
  546. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
  547. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  548. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  549. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  550. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
  551. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5490
  552. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2801
  553. package/packages/orq-rc/src/sdk/agents.ts +0 -234
  554. package/packages/orq-rc/src/sdk/annotations.ts +0 -39
  555. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  556. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  557. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  558. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  559. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  560. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  561. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  562. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  563. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  564. package/packages/orq-rc/src/sdk/evals.ts +0 -102
  565. package/packages/orq-rc/src/sdk/feedback.ts +0 -33
  566. package/packages/orq-rc/src/sdk/files.ts +0 -115
  567. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  568. package/packages/orq-rc/src/sdk/guardrailrules.ts +0 -99
  569. package/packages/orq-rc/src/sdk/humanreviewsets.ts +0 -84
  570. package/packages/orq-rc/src/sdk/identities.ts +0 -99
  571. package/packages/orq-rc/src/sdk/images.ts +0 -25
  572. package/packages/orq-rc/src/sdk/index.ts +0 -5
  573. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  574. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  575. package/packages/orq-rc/src/sdk/metrics.ts +0 -29
  576. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  577. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  578. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -53
  579. package/packages/orq-rc/src/sdk/policies.ts +0 -99
  580. package/packages/orq-rc/src/sdk/projects.ts +0 -97
  581. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  582. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  583. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  584. package/packages/orq-rc/src/sdk/responses.ts +0 -47
  585. package/packages/orq-rc/src/sdk/router.ts +0 -66
  586. package/packages/orq-rc/src/sdk/routingrules.ts +0 -99
  587. package/packages/orq-rc/src/sdk/schedules.ts +0 -117
  588. package/packages/orq-rc/src/sdk/sdk.ts +0 -177
  589. package/packages/orq-rc/src/sdk/skills.ts +0 -97
  590. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  591. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  592. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  593. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  594. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  595. package/packages/orq-rc/src/types/async.ts +0 -68
  596. package/packages/orq-rc/src/types/blobs.ts +0 -32
  597. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  598. package/packages/orq-rc/src/types/enums.ts +0 -45
  599. package/packages/orq-rc/src/types/fp.ts +0 -50
  600. package/packages/orq-rc/src/types/index.ts +0 -11
  601. package/packages/orq-rc/src/types/operations.ts +0 -105
  602. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  603. package/packages/orq-rc/src/types/streams.ts +0 -21
  604. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
@@ -1,3146 +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 * as components from "../components/index.js";
11
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
-
13
- export type GetPromptVersionRequest = {
14
- /**
15
- * The unique identifier of the prompt
16
- */
17
- promptId: string;
18
- /**
19
- * The unique identifier of the prompt version
20
- */
21
- versionId: string;
22
- };
23
-
24
- /**
25
- * The modality of the model
26
- */
27
- export const GetPromptVersionModelType = {
28
- Chat: "chat",
29
- Completion: "completion",
30
- Embedding: "embedding",
31
- Image: "image",
32
- Tts: "tts",
33
- Stt: "stt",
34
- Rerank: "rerank",
35
- Ocr: "ocr",
36
- Moderation: "moderation",
37
- Vision: "vision",
38
- } as const;
39
- /**
40
- * The modality of the model
41
- */
42
- export type GetPromptVersionModelType = ClosedEnum<
43
- typeof GetPromptVersionModelType
44
- >;
45
-
46
- /**
47
- * Only supported on `image` models.
48
- */
49
- export const GetPromptVersionFormat = {
50
- Url: "url",
51
- B64Json: "b64_json",
52
- Text: "text",
53
- JsonObject: "json_object",
54
- } as const;
55
- /**
56
- * Only supported on `image` models.
57
- */
58
- export type GetPromptVersionFormat = ClosedEnum<typeof GetPromptVersionFormat>;
59
-
60
- export const GetPromptVersionResponseFormat6 = {
61
- Json: "json",
62
- Text: "text",
63
- Srt: "srt",
64
- VerboseJson: "verbose_json",
65
- Vtt: "vtt",
66
- } as const;
67
- export type GetPromptVersionResponseFormat6 = ClosedEnum<
68
- typeof GetPromptVersionResponseFormat6
69
- >;
70
-
71
- export const GetPromptVersionResponseFormat5 = {
72
- Url: "url",
73
- Base64Json: "base64_json",
74
- } as const;
75
- export type GetPromptVersionResponseFormat5 = ClosedEnum<
76
- typeof GetPromptVersionResponseFormat5
77
- >;
78
-
79
- export const GetPromptVersionResponseFormat4 = {
80
- Mp3: "mp3",
81
- Opus: "opus",
82
- Aac: "aac",
83
- Flac: "flac",
84
- Wav: "wav",
85
- Pcm: "pcm",
86
- } as const;
87
- export type GetPromptVersionResponseFormat4 = ClosedEnum<
88
- typeof GetPromptVersionResponseFormat4
89
- >;
90
-
91
- export const GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
92
- {
93
- Text: "text",
94
- } as const;
95
- export type GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
96
- ClosedEnum<
97
- typeof GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
98
- >;
99
-
100
- export type GetPromptVersionResponseFormat3 = {
101
- type:
102
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType;
103
- };
104
-
105
- export const GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType =
106
- {
107
- JsonObject: "json_object",
108
- } as const;
109
- export type GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType =
110
- ClosedEnum<
111
- typeof GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType
112
- >;
113
-
114
- export type GetPromptVersionResponseFormat2 = {
115
- type: GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType;
116
- };
117
-
118
- export const GetPromptVersionResponseFormatPromptsResponse200Type = {
119
- JsonSchema: "json_schema",
120
- } as const;
121
- export type GetPromptVersionResponseFormatPromptsResponse200Type = ClosedEnum<
122
- typeof GetPromptVersionResponseFormatPromptsResponse200Type
123
- >;
124
-
125
- export type GetPromptVersionResponseFormatPromptsResponseJsonSchema = {
126
- name: string;
127
- description?: string | undefined;
128
- strict?: boolean | undefined;
129
- schema: { [k: string]: any };
130
- };
131
-
132
- export type GetPromptVersionResponseFormat1 = {
133
- type: GetPromptVersionResponseFormatPromptsResponse200Type;
134
- displayName?: string | undefined;
135
- jsonSchema: GetPromptVersionResponseFormatPromptsResponseJsonSchema;
136
- };
137
-
138
- /**
139
- * An object specifying the format that the model must output.
140
- *
141
- * @remarks
142
- *
143
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
144
- *
145
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
146
- *
147
- * 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.
148
- */
149
- export type GetPromptVersionPromptsResponseFormat =
150
- | GetPromptVersionResponseFormat1
151
- | GetPromptVersionResponseFormat2
152
- | GetPromptVersionResponseFormat3
153
- | GetPromptVersionResponseFormat4
154
- | GetPromptVersionResponseFormat5
155
- | GetPromptVersionResponseFormat6;
156
-
157
- /**
158
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
159
- */
160
- export const GetPromptVersionPhotoRealVersion = {
161
- V1: "v1",
162
- V2: "v2",
163
- } as const;
164
- /**
165
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
166
- */
167
- export type GetPromptVersionPhotoRealVersion = ClosedEnum<
168
- typeof GetPromptVersionPhotoRealVersion
169
- >;
170
-
171
- /**
172
- * The format to return the embeddings
173
- */
174
- export const GetPromptVersionEncodingFormat = {
175
- Float: "float",
176
- Base64: "base64",
177
- } as const;
178
- /**
179
- * The format to return the embeddings
180
- */
181
- export type GetPromptVersionEncodingFormat = ClosedEnum<
182
- typeof GetPromptVersionEncodingFormat
183
- >;
184
-
185
- /**
186
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
187
- */
188
- export const GetPromptVersionPromptsReasoningEffort = {
189
- None: "none",
190
- Disable: "disable",
191
- Minimal: "minimal",
192
- Low: "low",
193
- Medium: "medium",
194
- High: "high",
195
- } as const;
196
- /**
197
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
198
- */
199
- export type GetPromptVersionPromptsReasoningEffort = ClosedEnum<
200
- typeof GetPromptVersionPromptsReasoningEffort
201
- >;
202
-
203
- /**
204
- * Controls the verbosity of the model output.
205
- */
206
- export const GetPromptVersionVerbosity = {
207
- Low: "low",
208
- Medium: "medium",
209
- High: "high",
210
- } as const;
211
- /**
212
- * Controls the verbosity of the model output.
213
- */
214
- export type GetPromptVersionVerbosity = ClosedEnum<
215
- typeof GetPromptVersionVerbosity
216
- >;
217
-
218
- /**
219
- * The level of thinking to use for the model. Only supported by `Google AI`
220
- */
221
- export const GetPromptVersionThinkingLevel = {
222
- Low: "low",
223
- Medium: "medium",
224
- High: "high",
225
- } as const;
226
- /**
227
- * The level of thinking to use for the model. Only supported by `Google AI`
228
- */
229
- export type GetPromptVersionThinkingLevel = ClosedEnum<
230
- typeof GetPromptVersionThinkingLevel
231
- >;
232
-
233
- /**
234
- * Model Parameters: Not all parameters apply to every model
235
- */
236
- export type GetPromptVersionModelParameters = {
237
- /**
238
- * Only supported on `chat` and `completion` models.
239
- */
240
- temperature?: number | undefined;
241
- /**
242
- * Only supported on `chat` and `completion` models.
243
- */
244
- maxTokens?: number | undefined;
245
- /**
246
- * Only supported on `chat` and `completion` models.
247
- */
248
- topK?: number | undefined;
249
- /**
250
- * Only supported on `chat` and `completion` models.
251
- */
252
- topP?: number | undefined;
253
- /**
254
- * Only supported on `chat` and `completion` models.
255
- */
256
- frequencyPenalty?: number | undefined;
257
- /**
258
- * Only supported on `chat` and `completion` models.
259
- */
260
- presencePenalty?: number | undefined;
261
- /**
262
- * Only supported on `image` models.
263
- */
264
- numImages?: number | undefined;
265
- /**
266
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
267
- */
268
- seed?: number | undefined;
269
- /**
270
- * Only supported on `image` models.
271
- */
272
- format?: GetPromptVersionFormat | undefined;
273
- /**
274
- * Only supported on `image` models.
275
- */
276
- dimensions?: string | undefined;
277
- /**
278
- * Only supported on `image` models.
279
- */
280
- quality?: string | undefined;
281
- /**
282
- * Only supported on `image` models.
283
- */
284
- style?: string | undefined;
285
- /**
286
- * An object specifying the format that the model must output.
287
- *
288
- * @remarks
289
- *
290
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
291
- *
292
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
293
- *
294
- * 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.
295
- */
296
- responseFormat?:
297
- | GetPromptVersionResponseFormat1
298
- | GetPromptVersionResponseFormat2
299
- | GetPromptVersionResponseFormat3
300
- | GetPromptVersionResponseFormat4
301
- | GetPromptVersionResponseFormat5
302
- | GetPromptVersionResponseFormat6
303
- | null
304
- | undefined;
305
- /**
306
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
307
- */
308
- photoRealVersion?: GetPromptVersionPhotoRealVersion | undefined;
309
- /**
310
- * The format to return the embeddings
311
- */
312
- encodingFormat?: GetPromptVersionEncodingFormat | undefined;
313
- /**
314
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
315
- */
316
- reasoningEffort?: GetPromptVersionPromptsReasoningEffort | undefined;
317
- /**
318
- * 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`
319
- */
320
- budgetTokens?: number | undefined;
321
- /**
322
- * Controls the verbosity of the model output.
323
- */
324
- verbosity?: GetPromptVersionVerbosity | undefined;
325
- /**
326
- * The level of thinking to use for the model. Only supported by `Google AI`
327
- */
328
- thinkingLevel?: GetPromptVersionThinkingLevel | undefined;
329
- };
330
-
331
- export const GetPromptVersionProvider = {
332
- Openai: "openai",
333
- Groq: "groq",
334
- Cohere: "cohere",
335
- Azure: "azure",
336
- Aws: "aws",
337
- Google: "google",
338
- GoogleAi: "google-ai",
339
- Huggingface: "huggingface",
340
- Togetherai: "togetherai",
341
- Perplexity: "perplexity",
342
- Anthropic: "anthropic",
343
- Leonardoai: "leonardoai",
344
- Fal: "fal",
345
- Nvidia: "nvidia",
346
- Jina: "jina",
347
- Elevenlabs: "elevenlabs",
348
- Litellm: "litellm",
349
- Cerebras: "cerebras",
350
- Openailike: "openailike",
351
- Bytedance: "bytedance",
352
- Mistral: "mistral",
353
- Deepseek: "deepseek",
354
- Contextualai: "contextualai",
355
- Moonshotai: "moonshotai",
356
- Zai: "zai",
357
- Minimax: "minimax",
358
- Xai: "xai",
359
- Alibaba: "alibaba",
360
- Tensorix: "tensorix",
361
- Scaleway: "scaleway",
362
- Hcompany: "hcompany",
363
- Inceptron: "inceptron",
364
- Slack: "slack",
365
- Orq: "orq",
366
- } as const;
367
- export type GetPromptVersionProvider = ClosedEnum<
368
- typeof GetPromptVersionProvider
369
- >;
370
-
371
- /**
372
- * The role of the prompt message
373
- */
374
- export const GetPromptVersionRole = {
375
- System: "system",
376
- Developer: "developer",
377
- Assistant: "assistant",
378
- User: "user",
379
- Exception: "exception",
380
- Tool: "tool",
381
- Prompt: "prompt",
382
- Correction: "correction",
383
- ExpectedOutput: "expected_output",
384
- } as const;
385
- /**
386
- * The role of the prompt message
387
- */
388
- export type GetPromptVersionRole = ClosedEnum<typeof GetPromptVersionRole>;
389
-
390
- export type GetPromptVersion2File = {
391
- /**
392
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
393
- */
394
- fileData?: string | undefined;
395
- /**
396
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
397
- */
398
- uri?: string | undefined;
399
- /**
400
- * MIME type of the file (e.g., application/pdf, image/png)
401
- */
402
- mimeType?: string | undefined;
403
- /**
404
- * The name of the file, used when passing the file to the model as a string.
405
- */
406
- filename?: string | undefined;
407
- };
408
-
409
- export type GetPromptVersion23 = {
410
- /**
411
- * The type of the content part. Always `file`.
412
- */
413
- type: "file";
414
- file: GetPromptVersion2File;
415
- };
416
-
417
- export type GetPromptVersion2ImageUrl = {
418
- /**
419
- * The orq.ai id of the image
420
- */
421
- id?: string | undefined;
422
- /**
423
- * Either a URL of the image or the base64 encoded data URI.
424
- */
425
- url: string;
426
- /**
427
- * Specifies the detail level of the image. Currently only supported with OpenAI models
428
- */
429
- detail?: string | undefined;
430
- };
431
-
432
- /**
433
- * The image part of the prompt message. Only supported with vision models.
434
- */
435
- export type GetPromptVersion22 = {
436
- type: "image_url";
437
- imageUrl: GetPromptVersion2ImageUrl;
438
- };
439
-
440
- /**
441
- * Text content part of a prompt message
442
- */
443
- export type GetPromptVersion21 = {
444
- type: "text";
445
- text: string;
446
- };
447
-
448
- export type GetPromptVersionContent2 =
449
- | GetPromptVersion21
450
- | GetPromptVersion22
451
- | GetPromptVersion23;
452
-
453
- /**
454
- * 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.
455
- */
456
- export type GetPromptVersionContent =
457
- | string
458
- | Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
459
-
460
- export const GetPromptVersionPromptsType = {
461
- Function: "function",
462
- } as const;
463
- export type GetPromptVersionPromptsType = ClosedEnum<
464
- typeof GetPromptVersionPromptsType
465
- >;
466
-
467
- export type GetPromptVersionFunction = {
468
- name: string;
469
- /**
470
- * JSON string arguments for the functions
471
- */
472
- arguments: string;
473
- };
474
-
475
- export type GetPromptVersionToolCalls = {
476
- id?: string | undefined;
477
- index?: number | undefined;
478
- type: GetPromptVersionPromptsType;
479
- function: GetPromptVersionFunction;
480
- };
481
-
482
- export type GetPromptVersionMessages = {
483
- /**
484
- * The role of the prompt message
485
- */
486
- role: GetPromptVersionRole;
487
- /**
488
- * 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.
489
- */
490
- content:
491
- | string
492
- | Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>
493
- | null;
494
- toolCalls?: Array<GetPromptVersionToolCalls> | undefined;
495
- toolCallId?: string | null | undefined;
496
- };
497
-
498
- /**
499
- * [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
500
- *
501
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
502
- */
503
- export type GetPromptVersionPromptConfig = {
504
- stream?: boolean | undefined;
505
- model?: string | null | undefined;
506
- /**
507
- * The id of the resource
508
- */
509
- modelDbId?: string | null | undefined;
510
- /**
511
- * The modality of the model
512
- */
513
- modelType?: GetPromptVersionModelType | null | undefined;
514
- /**
515
- * Model Parameters: Not all parameters apply to every model
516
- */
517
- modelParameters?: GetPromptVersionModelParameters | undefined;
518
- provider?: GetPromptVersionProvider | null | undefined;
519
- /**
520
- * The ID of the integration to use
521
- */
522
- integrationId?: string | null | undefined;
523
- version?: string | undefined;
524
- messages: Array<GetPromptVersionMessages>;
525
- };
526
-
527
- /**
528
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
529
- */
530
- export const GetPromptVersionVoice = {
531
- Alloy: "alloy",
532
- Echo: "echo",
533
- Fable: "fable",
534
- Onyx: "onyx",
535
- Nova: "nova",
536
- Shimmer: "shimmer",
537
- } as const;
538
- /**
539
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
540
- */
541
- export type GetPromptVersionVoice = ClosedEnum<typeof GetPromptVersionVoice>;
542
-
543
- /**
544
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
545
- */
546
- export const GetPromptVersionPromptsFormat = {
547
- Wav: "wav",
548
- Mp3: "mp3",
549
- Flac: "flac",
550
- Opus: "opus",
551
- Pcm16: "pcm16",
552
- } as const;
553
- /**
554
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
555
- */
556
- export type GetPromptVersionPromptsFormat = ClosedEnum<
557
- typeof GetPromptVersionPromptsFormat
558
- >;
559
-
560
- /**
561
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
562
- */
563
- export type GetPromptVersionAudio = {
564
- /**
565
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
566
- */
567
- voice: GetPromptVersionVoice;
568
- /**
569
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
570
- */
571
- format: GetPromptVersionPromptsFormat;
572
- };
573
-
574
- export type GetPromptVersionResponseFormatJsonSchema = {
575
- /**
576
- * A description of what the response format is for, used by the model to determine how to respond in the format.
577
- */
578
- description?: string | undefined;
579
- /**
580
- * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
581
- */
582
- name: string;
583
- /**
584
- * The schema for the response format, described as a JSON Schema object.
585
- */
586
- schema?: any | undefined;
587
- /**
588
- * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
589
- */
590
- strict: boolean;
591
- };
592
-
593
- /**
594
- * @remarks
595
- *
596
- * JSON Schema response format. Used to generate structured JSON responses
597
- */
598
- export type GetPromptVersionResponseFormatPromptsJSONSchema = {
599
- type: "json_schema";
600
- jsonSchema: GetPromptVersionResponseFormatJsonSchema;
601
- };
602
-
603
- /**
604
- * @remarks
605
- *
606
- * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
607
- */
608
- export type GetPromptVersionResponseFormatJSONObject = {
609
- type: "json_object";
610
- };
611
-
612
- /**
613
- * @remarks
614
- *
615
- * Default response format. Used to generate text responses
616
- */
617
- export type GetPromptVersionResponseFormatText = {
618
- type: "text";
619
- };
620
-
621
- /**
622
- * An object specifying the format that the model must output
623
- */
624
- export type GetPromptVersionResponseFormat =
625
- | GetPromptVersionResponseFormatText
626
- | GetPromptVersionResponseFormatJSONObject
627
- | GetPromptVersionResponseFormatPromptsJSONSchema;
628
-
629
- /**
630
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
631
- *
632
- * @remarks
633
- *
634
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
635
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
636
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
637
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
638
- *
639
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
640
- */
641
- export const GetPromptVersionReasoningEffort = {
642
- None: "none",
643
- Minimal: "minimal",
644
- Low: "low",
645
- Medium: "medium",
646
- High: "high",
647
- Xhigh: "xhigh",
648
- } as const;
649
- /**
650
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
651
- *
652
- * @remarks
653
- *
654
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
655
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
656
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
657
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
658
- *
659
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
660
- */
661
- export type GetPromptVersionReasoningEffort = ClosedEnum<
662
- typeof GetPromptVersionReasoningEffort
663
- >;
664
-
665
- /**
666
- * Up to 4 sequences where the API will stop generating further tokens.
667
- */
668
- export type GetPromptVersionStop = string | Array<string>;
669
-
670
- /**
671
- * Options for streaming response. Only set this when you set stream: true.
672
- */
673
- export type GetPromptVersionStreamOptions = {
674
- /**
675
- * If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
676
- */
677
- includeUsage?: boolean | undefined;
678
- };
679
-
680
- export type GetPromptVersionThinking =
681
- | components.ThinkingConfigDisabledSchema
682
- | components.ThinkingConfigEnabledSchema
683
- | components.ThinkingConfigAdaptiveSchema;
684
-
685
- /**
686
- * The type of the tool. Currently, only function is supported.
687
- */
688
- export const GetPromptVersionToolChoiceType = {
689
- Function: "function",
690
- } as const;
691
- /**
692
- * The type of the tool. Currently, only function is supported.
693
- */
694
- export type GetPromptVersionToolChoiceType = ClosedEnum<
695
- typeof GetPromptVersionToolChoiceType
696
- >;
697
-
698
- export type GetPromptVersionToolChoiceFunction = {
699
- /**
700
- * The name of the function to call.
701
- */
702
- name: string;
703
- };
704
-
705
- export type GetPromptVersionToolChoice2 = {
706
- /**
707
- * The type of the tool. Currently, only function is supported.
708
- */
709
- type?: GetPromptVersionToolChoiceType | undefined;
710
- function: GetPromptVersionToolChoiceFunction;
711
- };
712
-
713
- export const GetPromptVersionToolChoice1 = {
714
- None: "none",
715
- Auto: "auto",
716
- Required: "required",
717
- } as const;
718
- export type GetPromptVersionToolChoice1 = ClosedEnum<
719
- typeof GetPromptVersionToolChoice1
720
- >;
721
-
722
- /**
723
- * Controls which (if any) tool is called by the model.
724
- */
725
- export type GetPromptVersionToolChoice =
726
- | GetPromptVersionToolChoice2
727
- | GetPromptVersionToolChoice1;
728
-
729
- export const GetPromptVersionModalities = {
730
- Text: "text",
731
- Audio: "audio",
732
- } as const;
733
- export type GetPromptVersionModalities = ClosedEnum<
734
- typeof GetPromptVersionModalities
735
- >;
736
-
737
- /**
738
- * The key of the guardrail.
739
- */
740
- export const GetPromptVersionId1 = {
741
- OrqPiiDetection: "orq_pii_detection",
742
- OrqSexualModeration: "orq_sexual_moderation",
743
- OrqHarmfulModeration: "orq_harmful_moderation",
744
- } as const;
745
- /**
746
- * The key of the guardrail.
747
- */
748
- export type GetPromptVersionId1 = ClosedEnum<typeof GetPromptVersionId1>;
749
-
750
- export type GetPromptVersionId = GetPromptVersionId1 | string;
751
-
752
- /**
753
- * Determines whether the guardrail runs on the input (user message) or output (model response).
754
- */
755
- export const GetPromptVersionExecuteOn = {
756
- Input: "input",
757
- Output: "output",
758
- } as const;
759
- /**
760
- * Determines whether the guardrail runs on the input (user message) or output (model response).
761
- */
762
- export type GetPromptVersionExecuteOn = ClosedEnum<
763
- typeof GetPromptVersionExecuteOn
764
- >;
765
-
766
- export type GetPromptVersionGuardrails = {
767
- id: GetPromptVersionId1 | string;
768
- /**
769
- * Determines whether the guardrail runs on the input (user message) or output (model response).
770
- */
771
- executeOn: GetPromptVersionExecuteOn;
772
- };
773
-
774
- export type GetPromptVersionFallbacks = {
775
- /**
776
- * Fallback model identifier
777
- */
778
- model: string;
779
- };
780
-
781
- /**
782
- * Retry configuration for the request
783
- */
784
- export type GetPromptVersionRetry = {
785
- /**
786
- * Number of retry attempts (1-5)
787
- */
788
- count: number;
789
- /**
790
- * HTTP status codes that trigger retry logic
791
- */
792
- onCodes?: Array<number> | undefined;
793
- };
794
-
795
- export const GetPromptVersionType = {
796
- ExactMatch: "exact_match",
797
- } as const;
798
- export type GetPromptVersionType = ClosedEnum<typeof GetPromptVersionType>;
799
-
800
- /**
801
- * Cache configuration for the request.
802
- */
803
- export type GetPromptVersionCache = {
804
- /**
805
- * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
806
- */
807
- ttl: number;
808
- type: GetPromptVersionType;
809
- };
810
-
811
- export const GetPromptVersionLoadBalancerType = {
812
- WeightBased: "weight_based",
813
- } as const;
814
- export type GetPromptVersionLoadBalancerType = ClosedEnum<
815
- typeof GetPromptVersionLoadBalancerType
816
- >;
817
-
818
- export type GetPromptVersionLoadBalancerModels = {
819
- /**
820
- * Model identifier for load balancing
821
- */
822
- model: string;
823
- /**
824
- * Weight assigned to this model for load balancing
825
- */
826
- weight: number;
827
- };
828
-
829
- export type GetPromptVersionLoadBalancer1 = {
830
- type: GetPromptVersionLoadBalancerType;
831
- models: Array<GetPromptVersionLoadBalancerModels>;
832
- };
833
-
834
- /**
835
- * Load balancer configuration for the request.
836
- */
837
- export type GetPromptVersionLoadBalancer = GetPromptVersionLoadBalancer1;
838
-
839
- /**
840
- * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
841
- */
842
- export type GetPromptVersionTimeout = {
843
- /**
844
- * Timeout value in milliseconds
845
- */
846
- callTimeout: number;
847
- };
848
-
849
- export type GetPromptVersionContentPromptsResponse2002 =
850
- components.TextContentPartSchema;
851
-
852
- /**
853
- * The contents of the tool message.
854
- */
855
- export type GetPromptVersionMessagesPromptsResponse200Content =
856
- | string
857
- | Array<components.TextContentPartSchema>;
858
-
859
- /**
860
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
861
- */
862
- export const GetPromptVersionMessagesPromptsType = {
863
- Ephemeral: "ephemeral",
864
- } as const;
865
- /**
866
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
867
- */
868
- export type GetPromptVersionMessagesPromptsType = ClosedEnum<
869
- typeof GetPromptVersionMessagesPromptsType
870
- >;
871
-
872
- /**
873
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
874
- *
875
- * @remarks
876
- *
877
- * - `5m`: 5 minutes
878
- * - `1h`: 1 hour
879
- *
880
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
881
- */
882
- export const GetPromptVersionMessagesTtl = {
883
- Fivem: "5m",
884
- Oneh: "1h",
885
- } as const;
886
- /**
887
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
888
- *
889
- * @remarks
890
- *
891
- * - `5m`: 5 minutes
892
- * - `1h`: 1 hour
893
- *
894
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
895
- */
896
- export type GetPromptVersionMessagesTtl = ClosedEnum<
897
- typeof GetPromptVersionMessagesTtl
898
- >;
899
-
900
- export type GetPromptVersionMessagesCacheControl = {
901
- /**
902
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
903
- */
904
- type: GetPromptVersionMessagesPromptsType;
905
- /**
906
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
907
- *
908
- * @remarks
909
- *
910
- * - `5m`: 5 minutes
911
- * - `1h`: 1 hour
912
- *
913
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
914
- */
915
- ttl: GetPromptVersionMessagesTtl;
916
- };
917
-
918
- export type GetPromptVersionMessagesToolMessage = {
919
- /**
920
- * The role of the messages author, in this case tool.
921
- */
922
- role: "tool";
923
- /**
924
- * The contents of the tool message.
925
- */
926
- content: string | Array<components.TextContentPartSchema>;
927
- /**
928
- * Tool call that this message is responding to.
929
- */
930
- toolCallId: string | null;
931
- cacheControl?: GetPromptVersionMessagesCacheControl | undefined;
932
- };
933
-
934
- export type GetPromptVersionContentPromptsResponse2 =
935
- | (components.TextContentPartSchema & { type: "text" })
936
- | components.RefusalPartSchema
937
- | components.ReasoningPartSchema
938
- | components.RedactedReasoningPartSchema;
939
-
940
- /**
941
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
942
- */
943
- export type GetPromptVersionMessagesPromptsResponseContent =
944
- | string
945
- | Array<
946
- | (components.TextContentPartSchema & { type: "text" })
947
- | components.RefusalPartSchema
948
- | components.ReasoningPartSchema
949
- | components.RedactedReasoningPartSchema
950
- >;
951
-
952
- /**
953
- * Data about a previous audio response from the model.
954
- */
955
- export type GetPromptVersionMessagesAudio = {
956
- /**
957
- * Unique identifier for a previous audio response from the model.
958
- */
959
- id: string;
960
- };
961
-
962
- /**
963
- * The type of the tool. Currently, only `function` is supported.
964
- */
965
- export const GetPromptVersionMessagesType = {
966
- Function: "function",
967
- } as const;
968
- /**
969
- * The type of the tool. Currently, only `function` is supported.
970
- */
971
- export type GetPromptVersionMessagesType = ClosedEnum<
972
- typeof GetPromptVersionMessagesType
973
- >;
974
-
975
- export type GetPromptVersionMessagesFunction = {
976
- /**
977
- * The name of the function to call.
978
- */
979
- name?: string | undefined;
980
- /**
981
- * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
982
- */
983
- arguments?: string | undefined;
984
- };
985
-
986
- export type GetPromptVersionMessagesToolCalls = {
987
- /**
988
- * The ID of the tool call.
989
- */
990
- id: string;
991
- /**
992
- * The type of the tool. Currently, only `function` is supported.
993
- */
994
- type: GetPromptVersionMessagesType;
995
- function: GetPromptVersionMessagesFunction;
996
- /**
997
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
998
- */
999
- thoughtSignature?: string | undefined;
1000
- };
1001
-
1002
- export type GetPromptVersionMessagesAssistantMessage = {
1003
- /**
1004
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
1005
- */
1006
- content?:
1007
- | string
1008
- | Array<
1009
- | (components.TextContentPartSchema & { type: "text" })
1010
- | components.RefusalPartSchema
1011
- | components.ReasoningPartSchema
1012
- | components.RedactedReasoningPartSchema
1013
- >
1014
- | null
1015
- | undefined;
1016
- /**
1017
- * The refusal message by the assistant.
1018
- */
1019
- refusal?: string | null | undefined;
1020
- /**
1021
- * The role of the messages author, in this case `assistant`.
1022
- */
1023
- role: "assistant";
1024
- /**
1025
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1026
- */
1027
- name?: string | undefined;
1028
- /**
1029
- * Data about a previous audio response from the model.
1030
- */
1031
- audio?: GetPromptVersionMessagesAudio | null | undefined;
1032
- /**
1033
- * The tool calls generated by the model, such as function calls.
1034
- */
1035
- toolCalls?: Array<GetPromptVersionMessagesToolCalls> | undefined;
1036
- };
1037
-
1038
- /**
1039
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1040
- */
1041
- export const GetPromptVersion2PromptsResponse200ApplicationJSONType = {
1042
- Ephemeral: "ephemeral",
1043
- } as const;
1044
- /**
1045
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1046
- */
1047
- export type GetPromptVersion2PromptsResponse200ApplicationJSONType = ClosedEnum<
1048
- typeof GetPromptVersion2PromptsResponse200ApplicationJSONType
1049
- >;
1050
-
1051
- /**
1052
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1053
- *
1054
- * @remarks
1055
- *
1056
- * - `5m`: 5 minutes
1057
- * - `1h`: 1 hour
1058
- *
1059
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1060
- */
1061
- export const GetPromptVersion2Ttl = {
1062
- Fivem: "5m",
1063
- Oneh: "1h",
1064
- } as const;
1065
- /**
1066
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1067
- *
1068
- * @remarks
1069
- *
1070
- * - `5m`: 5 minutes
1071
- * - `1h`: 1 hour
1072
- *
1073
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1074
- */
1075
- export type GetPromptVersion2Ttl = ClosedEnum<typeof GetPromptVersion2Ttl>;
1076
-
1077
- export type GetPromptVersion2CacheControl = {
1078
- /**
1079
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1080
- */
1081
- type: GetPromptVersion2PromptsResponse200ApplicationJSONType;
1082
- /**
1083
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1084
- *
1085
- * @remarks
1086
- *
1087
- * - `5m`: 5 minutes
1088
- * - `1h`: 1 hour
1089
- *
1090
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1091
- */
1092
- ttl: GetPromptVersion2Ttl;
1093
- };
1094
-
1095
- export type GetPromptVersion24 = {
1096
- /**
1097
- * The type of the content part. Always `file`.
1098
- */
1099
- type: "file";
1100
- cacheControl?: GetPromptVersion2CacheControl | undefined;
1101
- /**
1102
- * File data for the content part. Must contain either file_data or uri, but not both.
1103
- */
1104
- file: components.FileContentPartSchema;
1105
- };
1106
-
1107
- export type GetPromptVersionContentPrompts2 =
1108
- | (components.TextContentPartSchema & { type: "text" })
1109
- | components.ImageContentPartSchema
1110
- | components.AudioContentPartSchema
1111
- | GetPromptVersion24;
1112
-
1113
- /**
1114
- * The contents of the user message.
1115
- */
1116
- export type GetPromptVersionMessagesPromptsContent =
1117
- | string
1118
- | Array<
1119
- | (components.TextContentPartSchema & { type: "text" })
1120
- | components.ImageContentPartSchema
1121
- | components.AudioContentPartSchema
1122
- | GetPromptVersion24
1123
- >;
1124
-
1125
- export type GetPromptVersionMessagesUserMessage = {
1126
- /**
1127
- * The role of the messages author, in this case `user`.
1128
- */
1129
- role: "user";
1130
- /**
1131
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1132
- */
1133
- name?: string | undefined;
1134
- /**
1135
- * The contents of the user message.
1136
- */
1137
- content:
1138
- | string
1139
- | Array<
1140
- | (components.TextContentPartSchema & { type: "text" })
1141
- | components.ImageContentPartSchema
1142
- | components.AudioContentPartSchema
1143
- | GetPromptVersion24
1144
- >;
1145
- };
1146
-
1147
- /**
1148
- * The contents of the system message.
1149
- */
1150
- export type GetPromptVersionMessagesContent =
1151
- | string
1152
- | Array<components.TextContentPartSchema>;
1153
-
1154
- /**
1155
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
1156
- */
1157
- export type GetPromptVersionMessagesSystemMessage = {
1158
- /**
1159
- * The role of the messages author, in this case `system`.
1160
- */
1161
- role: "system";
1162
- /**
1163
- * The contents of the system message.
1164
- */
1165
- content: string | Array<components.TextContentPartSchema>;
1166
- /**
1167
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1168
- */
1169
- name?: string | undefined;
1170
- };
1171
-
1172
- export type GetPromptVersionPromptsMessages =
1173
- | GetPromptVersionMessagesSystemMessage
1174
- | GetPromptVersionMessagesUserMessage
1175
- | GetPromptVersionMessagesAssistantMessage
1176
- | GetPromptVersionMessagesToolMessage;
1177
-
1178
- /**
1179
- * Prompt configuration with model and messages. Use this instead of prompt_config.
1180
- */
1181
- export type GetPromptVersionPromptField = {
1182
- /**
1183
- * The name to display on the trace. If not specified, the default system name will be used.
1184
- */
1185
- name?: string | undefined;
1186
- /**
1187
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
1188
- */
1189
- audio?: GetPromptVersionAudio | null | undefined;
1190
- /**
1191
- * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
1192
- */
1193
- frequencyPenalty?: number | null | undefined;
1194
- /**
1195
- * `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
1196
- *
1197
- * @remarks
1198
- *
1199
- * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
1200
- */
1201
- maxTokens?: number | null | undefined;
1202
- /**
1203
- * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
1204
- */
1205
- maxCompletionTokens?: number | null | undefined;
1206
- /**
1207
- * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
1208
- */
1209
- logprobs?: boolean | null | undefined;
1210
- /**
1211
- * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
1212
- */
1213
- topLogprobs?: number | null | undefined;
1214
- /**
1215
- * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
1216
- */
1217
- n?: number | null | undefined;
1218
- /**
1219
- * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
1220
- */
1221
- presencePenalty?: number | null | undefined;
1222
- /**
1223
- * An object specifying the format that the model must output
1224
- */
1225
- responseFormat?:
1226
- | GetPromptVersionResponseFormatText
1227
- | GetPromptVersionResponseFormatJSONObject
1228
- | GetPromptVersionResponseFormatPromptsJSONSchema
1229
- | undefined;
1230
- /**
1231
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1232
- *
1233
- * @remarks
1234
- *
1235
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
1236
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1237
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1238
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1239
- *
1240
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1241
- */
1242
- reasoningEffort?: GetPromptVersionReasoningEffort | undefined;
1243
- /**
1244
- * Adjusts response verbosity. Lower levels yield shorter answers.
1245
- */
1246
- verbosity?: string | undefined;
1247
- /**
1248
- * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
1249
- */
1250
- seed?: number | null | undefined;
1251
- /**
1252
- * Up to 4 sequences where the API will stop generating further tokens.
1253
- */
1254
- stop?: string | Array<string> | null | undefined;
1255
- /**
1256
- * Options for streaming response. Only set this when you set stream: true.
1257
- */
1258
- streamOptions?: GetPromptVersionStreamOptions | null | undefined;
1259
- thinking?:
1260
- | components.ThinkingConfigDisabledSchema
1261
- | components.ThinkingConfigEnabledSchema
1262
- | components.ThinkingConfigAdaptiveSchema
1263
- | undefined;
1264
- /**
1265
- * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1266
- */
1267
- temperature?: number | null | undefined;
1268
- /**
1269
- * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
1270
- */
1271
- topP?: number | null | undefined;
1272
- /**
1273
- * Limits the model to consider only the top k most likely tokens at each step.
1274
- */
1275
- topK?: number | null | undefined;
1276
- /**
1277
- * Controls which (if any) tool is called by the model.
1278
- */
1279
- toolChoice?:
1280
- | GetPromptVersionToolChoice2
1281
- | GetPromptVersionToolChoice1
1282
- | undefined;
1283
- /**
1284
- * Whether to enable parallel function calling during tool use.
1285
- */
1286
- parallelToolCalls?: boolean | undefined;
1287
- /**
1288
- * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
1289
- */
1290
- modalities?: Array<GetPromptVersionModalities> | null | undefined;
1291
- /**
1292
- * A list of guardrails to apply to the request.
1293
- */
1294
- guardrails?: Array<GetPromptVersionGuardrails> | undefined;
1295
- /**
1296
- * Array of fallback models to use if primary model fails
1297
- */
1298
- fallbacks?: Array<GetPromptVersionFallbacks> | undefined;
1299
- /**
1300
- * Retry configuration for the request
1301
- */
1302
- retry?: GetPromptVersionRetry | undefined;
1303
- /**
1304
- * Cache configuration for the request.
1305
- */
1306
- cache?: GetPromptVersionCache | undefined;
1307
- /**
1308
- * Load balancer configuration for the request.
1309
- */
1310
- loadBalancer?: GetPromptVersionLoadBalancer1 | undefined;
1311
- /**
1312
- * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
1313
- */
1314
- timeout?: GetPromptVersionTimeout | undefined;
1315
- /**
1316
- * Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
1317
- */
1318
- messages?:
1319
- | Array<
1320
- | GetPromptVersionMessagesSystemMessage
1321
- | GetPromptVersionMessagesUserMessage
1322
- | GetPromptVersionMessagesAssistantMessage
1323
- | GetPromptVersionMessagesToolMessage
1324
- >
1325
- | undefined;
1326
- /**
1327
- * Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-3-5-sonnet-20241022`. For private models, use format: `{workspaceKey}@{provider}/{model}`.
1328
- */
1329
- model?: string | null | undefined;
1330
- version?: string | undefined;
1331
- };
1332
-
1333
- export const GetPromptVersionUseCases = {
1334
- AgentsSimulations: "Agents simulations",
1335
- Agents: "Agents",
1336
- APIInteraction: "API interaction",
1337
- AutonomousAgents: "Autonomous Agents",
1338
- Chatbots: "Chatbots",
1339
- Classification: "Classification",
1340
- CodeUnderstanding: "Code understanding",
1341
- CodeWriting: "Code writing",
1342
- Conversation: "Conversation",
1343
- DocumentsQA: "Documents QA",
1344
- Evaluation: "Evaluation",
1345
- Extraction: "Extraction",
1346
- MultiModal: "Multi-modal",
1347
- SelfChecking: "Self-checking",
1348
- SentimentAnalysis: "Sentiment analysis",
1349
- Sql: "SQL",
1350
- Summarization: "Summarization",
1351
- Tagging: "Tagging",
1352
- TranslationDocument: "Translation (document)",
1353
- TranslationSentences: "Translation (sentences)",
1354
- } as const;
1355
- export type GetPromptVersionUseCases = ClosedEnum<
1356
- typeof GetPromptVersionUseCases
1357
- >;
1358
-
1359
- /**
1360
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1361
- */
1362
- export const GetPromptVersionLanguage = {
1363
- Chinese: "Chinese",
1364
- Dutch: "Dutch",
1365
- English: "English",
1366
- French: "French",
1367
- German: "German",
1368
- Russian: "Russian",
1369
- Spanish: "Spanish",
1370
- } as const;
1371
- /**
1372
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1373
- */
1374
- export type GetPromptVersionLanguage = ClosedEnum<
1375
- typeof GetPromptVersionLanguage
1376
- >;
1377
-
1378
- export type GetPromptVersionMetadata = {
1379
- /**
1380
- * 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
1381
- */
1382
- useCases?: Array<GetPromptVersionUseCases> | undefined;
1383
- /**
1384
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1385
- */
1386
- language?: GetPromptVersionLanguage | null | undefined;
1387
- };
1388
-
1389
- /**
1390
- * Prompt version retrieved successfully.
1391
- */
1392
- export type GetPromptVersionResponseBody = {
1393
- id: string;
1394
- createdById?: string | null | undefined;
1395
- updatedById?: string | null | undefined;
1396
- /**
1397
- * 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
1398
- */
1399
- description?: string | null | undefined;
1400
- /**
1401
- * [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
1402
- *
1403
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1404
- */
1405
- promptConfig?: GetPromptVersionPromptConfig | undefined;
1406
- /**
1407
- * Prompt configuration with model and messages. Use this instead of prompt_config.
1408
- */
1409
- prompt: GetPromptVersionPromptField;
1410
- metadata?: GetPromptVersionMetadata | undefined;
1411
- timestamp: string;
1412
- };
1413
-
1414
- /** @internal */
1415
- export type GetPromptVersionRequest$Outbound = {
1416
- prompt_id: string;
1417
- version_id: string;
1418
- };
1419
-
1420
- /** @internal */
1421
- export const GetPromptVersionRequest$outboundSchema: z.ZodType<
1422
- GetPromptVersionRequest$Outbound,
1423
- z.ZodTypeDef,
1424
- GetPromptVersionRequest
1425
- > = z.object({
1426
- promptId: z.string(),
1427
- versionId: z.string(),
1428
- }).transform((v) => {
1429
- return remap$(v, {
1430
- promptId: "prompt_id",
1431
- versionId: "version_id",
1432
- });
1433
- });
1434
-
1435
- export function getPromptVersionRequestToJSON(
1436
- getPromptVersionRequest: GetPromptVersionRequest,
1437
- ): string {
1438
- return JSON.stringify(
1439
- GetPromptVersionRequest$outboundSchema.parse(getPromptVersionRequest),
1440
- );
1441
- }
1442
-
1443
- /** @internal */
1444
- export const GetPromptVersionModelType$inboundSchema: z.ZodNativeEnum<
1445
- typeof GetPromptVersionModelType
1446
- > = z.nativeEnum(GetPromptVersionModelType);
1447
-
1448
- /** @internal */
1449
- export const GetPromptVersionFormat$inboundSchema: z.ZodNativeEnum<
1450
- typeof GetPromptVersionFormat
1451
- > = z.nativeEnum(GetPromptVersionFormat);
1452
-
1453
- /** @internal */
1454
- export const GetPromptVersionResponseFormat6$inboundSchema: z.ZodNativeEnum<
1455
- typeof GetPromptVersionResponseFormat6
1456
- > = z.nativeEnum(GetPromptVersionResponseFormat6);
1457
-
1458
- /** @internal */
1459
- export const GetPromptVersionResponseFormat5$inboundSchema: z.ZodNativeEnum<
1460
- typeof GetPromptVersionResponseFormat5
1461
- > = z.nativeEnum(GetPromptVersionResponseFormat5);
1462
-
1463
- /** @internal */
1464
- export const GetPromptVersionResponseFormat4$inboundSchema: z.ZodNativeEnum<
1465
- typeof GetPromptVersionResponseFormat4
1466
- > = z.nativeEnum(GetPromptVersionResponseFormat4);
1467
-
1468
- /** @internal */
1469
- export const GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1470
- z.ZodNativeEnum<
1471
- typeof GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
1472
- > = z.nativeEnum(
1473
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType,
1474
- );
1475
-
1476
- /** @internal */
1477
- export const GetPromptVersionResponseFormat3$inboundSchema: z.ZodType<
1478
- GetPromptVersionResponseFormat3,
1479
- z.ZodTypeDef,
1480
- unknown
1481
- > = z.object({
1482
- type:
1483
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1484
- });
1485
-
1486
- export function getPromptVersionResponseFormat3FromJSON(
1487
- jsonString: string,
1488
- ): SafeParseResult<GetPromptVersionResponseFormat3, SDKValidationError> {
1489
- return safeParse(
1490
- jsonString,
1491
- (x) => GetPromptVersionResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1492
- `Failed to parse 'GetPromptVersionResponseFormat3' from JSON`,
1493
- );
1494
- }
1495
-
1496
- /** @internal */
1497
- export const GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
1498
- z.ZodNativeEnum<
1499
- typeof GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType
1500
- > = z.nativeEnum(
1501
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType,
1502
- );
1503
-
1504
- /** @internal */
1505
- export const GetPromptVersionResponseFormat2$inboundSchema: z.ZodType<
1506
- GetPromptVersionResponseFormat2,
1507
- z.ZodTypeDef,
1508
- unknown
1509
- > = z.object({
1510
- type:
1511
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
1512
- });
1513
-
1514
- export function getPromptVersionResponseFormat2FromJSON(
1515
- jsonString: string,
1516
- ): SafeParseResult<GetPromptVersionResponseFormat2, SDKValidationError> {
1517
- return safeParse(
1518
- jsonString,
1519
- (x) => GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1520
- `Failed to parse 'GetPromptVersionResponseFormat2' from JSON`,
1521
- );
1522
- }
1523
-
1524
- /** @internal */
1525
- export const GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema:
1526
- z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponse200Type> =
1527
- z.nativeEnum(GetPromptVersionResponseFormatPromptsResponse200Type);
1528
-
1529
- /** @internal */
1530
- export const GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema:
1531
- z.ZodType<
1532
- GetPromptVersionResponseFormatPromptsResponseJsonSchema,
1533
- z.ZodTypeDef,
1534
- unknown
1535
- > = z.object({
1536
- name: z.string(),
1537
- description: z.string().optional(),
1538
- strict: z.boolean().optional(),
1539
- schema: z.record(z.any()),
1540
- });
1541
-
1542
- export function getPromptVersionResponseFormatPromptsResponseJsonSchemaFromJSON(
1543
- jsonString: string,
1544
- ): SafeParseResult<
1545
- GetPromptVersionResponseFormatPromptsResponseJsonSchema,
1546
- SDKValidationError
1547
- > {
1548
- return safeParse(
1549
- jsonString,
1550
- (x) =>
1551
- GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema
1552
- .parse(JSON.parse(x)),
1553
- `Failed to parse 'GetPromptVersionResponseFormatPromptsResponseJsonSchema' from JSON`,
1554
- );
1555
- }
1556
-
1557
- /** @internal */
1558
- export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
1559
- GetPromptVersionResponseFormat1,
1560
- z.ZodTypeDef,
1561
- unknown
1562
- > = z.object({
1563
- type: GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema,
1564
- display_name: z.string().optional(),
1565
- json_schema: z.lazy(() =>
1566
- GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema
1567
- ),
1568
- }).transform((v) => {
1569
- return remap$(v, {
1570
- "display_name": "displayName",
1571
- "json_schema": "jsonSchema",
1572
- });
1573
- });
1574
-
1575
- export function getPromptVersionResponseFormat1FromJSON(
1576
- jsonString: string,
1577
- ): SafeParseResult<GetPromptVersionResponseFormat1, SDKValidationError> {
1578
- return safeParse(
1579
- jsonString,
1580
- (x) => GetPromptVersionResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1581
- `Failed to parse 'GetPromptVersionResponseFormat1' from JSON`,
1582
- );
1583
- }
1584
-
1585
- /** @internal */
1586
- export const GetPromptVersionPromptsResponseFormat$inboundSchema: z.ZodType<
1587
- GetPromptVersionPromptsResponseFormat,
1588
- z.ZodTypeDef,
1589
- unknown
1590
- > = z.union([
1591
- z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
1592
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
1593
- z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
1594
- GetPromptVersionResponseFormat4$inboundSchema,
1595
- GetPromptVersionResponseFormat5$inboundSchema,
1596
- GetPromptVersionResponseFormat6$inboundSchema,
1597
- ]);
1598
-
1599
- export function getPromptVersionPromptsResponseFormatFromJSON(
1600
- jsonString: string,
1601
- ): SafeParseResult<GetPromptVersionPromptsResponseFormat, SDKValidationError> {
1602
- return safeParse(
1603
- jsonString,
1604
- (x) =>
1605
- GetPromptVersionPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1606
- `Failed to parse 'GetPromptVersionPromptsResponseFormat' from JSON`,
1607
- );
1608
- }
1609
-
1610
- /** @internal */
1611
- export const GetPromptVersionPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1612
- typeof GetPromptVersionPhotoRealVersion
1613
- > = z.nativeEnum(GetPromptVersionPhotoRealVersion);
1614
-
1615
- /** @internal */
1616
- export const GetPromptVersionEncodingFormat$inboundSchema: z.ZodNativeEnum<
1617
- typeof GetPromptVersionEncodingFormat
1618
- > = z.nativeEnum(GetPromptVersionEncodingFormat);
1619
-
1620
- /** @internal */
1621
- export const GetPromptVersionPromptsReasoningEffort$inboundSchema:
1622
- z.ZodNativeEnum<typeof GetPromptVersionPromptsReasoningEffort> = z.nativeEnum(
1623
- GetPromptVersionPromptsReasoningEffort,
1624
- );
1625
-
1626
- /** @internal */
1627
- export const GetPromptVersionVerbosity$inboundSchema: z.ZodNativeEnum<
1628
- typeof GetPromptVersionVerbosity
1629
- > = z.nativeEnum(GetPromptVersionVerbosity);
1630
-
1631
- /** @internal */
1632
- export const GetPromptVersionThinkingLevel$inboundSchema: z.ZodNativeEnum<
1633
- typeof GetPromptVersionThinkingLevel
1634
- > = z.nativeEnum(GetPromptVersionThinkingLevel);
1635
-
1636
- /** @internal */
1637
- export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
1638
- GetPromptVersionModelParameters,
1639
- z.ZodTypeDef,
1640
- unknown
1641
- > = z.object({
1642
- temperature: z.number().optional(),
1643
- maxTokens: z.number().optional(),
1644
- topK: z.number().optional(),
1645
- topP: z.number().optional(),
1646
- frequencyPenalty: z.number().optional(),
1647
- presencePenalty: z.number().optional(),
1648
- numImages: z.number().optional(),
1649
- seed: z.number().optional(),
1650
- format: GetPromptVersionFormat$inboundSchema.optional(),
1651
- dimensions: z.string().optional(),
1652
- quality: z.string().optional(),
1653
- style: z.string().optional(),
1654
- responseFormat: z.nullable(
1655
- z.union([
1656
- z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
1657
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
1658
- z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
1659
- GetPromptVersionResponseFormat4$inboundSchema,
1660
- GetPromptVersionResponseFormat5$inboundSchema,
1661
- GetPromptVersionResponseFormat6$inboundSchema,
1662
- ]),
1663
- ).optional(),
1664
- photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
1665
- encoding_format: GetPromptVersionEncodingFormat$inboundSchema.optional(),
1666
- reasoningEffort: GetPromptVersionPromptsReasoningEffort$inboundSchema
1667
- .optional(),
1668
- budgetTokens: z.number().optional(),
1669
- verbosity: GetPromptVersionVerbosity$inboundSchema.optional(),
1670
- thinkingLevel: GetPromptVersionThinkingLevel$inboundSchema.optional(),
1671
- }).transform((v) => {
1672
- return remap$(v, {
1673
- "encoding_format": "encodingFormat",
1674
- });
1675
- });
1676
-
1677
- export function getPromptVersionModelParametersFromJSON(
1678
- jsonString: string,
1679
- ): SafeParseResult<GetPromptVersionModelParameters, SDKValidationError> {
1680
- return safeParse(
1681
- jsonString,
1682
- (x) => GetPromptVersionModelParameters$inboundSchema.parse(JSON.parse(x)),
1683
- `Failed to parse 'GetPromptVersionModelParameters' from JSON`,
1684
- );
1685
- }
1686
-
1687
- /** @internal */
1688
- export const GetPromptVersionProvider$inboundSchema: z.ZodNativeEnum<
1689
- typeof GetPromptVersionProvider
1690
- > = z.nativeEnum(GetPromptVersionProvider);
1691
-
1692
- /** @internal */
1693
- export const GetPromptVersionRole$inboundSchema: z.ZodNativeEnum<
1694
- typeof GetPromptVersionRole
1695
- > = z.nativeEnum(GetPromptVersionRole);
1696
-
1697
- /** @internal */
1698
- export const GetPromptVersion2File$inboundSchema: z.ZodType<
1699
- GetPromptVersion2File,
1700
- z.ZodTypeDef,
1701
- unknown
1702
- > = z.object({
1703
- file_data: z.string().optional(),
1704
- uri: z.string().optional(),
1705
- mimeType: z.string().optional(),
1706
- filename: z.string().optional(),
1707
- }).transform((v) => {
1708
- return remap$(v, {
1709
- "file_data": "fileData",
1710
- });
1711
- });
1712
-
1713
- export function getPromptVersion2FileFromJSON(
1714
- jsonString: string,
1715
- ): SafeParseResult<GetPromptVersion2File, SDKValidationError> {
1716
- return safeParse(
1717
- jsonString,
1718
- (x) => GetPromptVersion2File$inboundSchema.parse(JSON.parse(x)),
1719
- `Failed to parse 'GetPromptVersion2File' from JSON`,
1720
- );
1721
- }
1722
-
1723
- /** @internal */
1724
- export const GetPromptVersion23$inboundSchema: z.ZodType<
1725
- GetPromptVersion23,
1726
- z.ZodTypeDef,
1727
- unknown
1728
- > = z.object({
1729
- type: z.literal("file"),
1730
- file: z.lazy(() => GetPromptVersion2File$inboundSchema),
1731
- });
1732
-
1733
- export function getPromptVersion23FromJSON(
1734
- jsonString: string,
1735
- ): SafeParseResult<GetPromptVersion23, SDKValidationError> {
1736
- return safeParse(
1737
- jsonString,
1738
- (x) => GetPromptVersion23$inboundSchema.parse(JSON.parse(x)),
1739
- `Failed to parse 'GetPromptVersion23' from JSON`,
1740
- );
1741
- }
1742
-
1743
- /** @internal */
1744
- export const GetPromptVersion2ImageUrl$inboundSchema: z.ZodType<
1745
- GetPromptVersion2ImageUrl,
1746
- z.ZodTypeDef,
1747
- unknown
1748
- > = z.object({
1749
- id: z.string().optional(),
1750
- url: z.string(),
1751
- detail: z.string().optional(),
1752
- });
1753
-
1754
- export function getPromptVersion2ImageUrlFromJSON(
1755
- jsonString: string,
1756
- ): SafeParseResult<GetPromptVersion2ImageUrl, SDKValidationError> {
1757
- return safeParse(
1758
- jsonString,
1759
- (x) => GetPromptVersion2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1760
- `Failed to parse 'GetPromptVersion2ImageUrl' from JSON`,
1761
- );
1762
- }
1763
-
1764
- /** @internal */
1765
- export const GetPromptVersion22$inboundSchema: z.ZodType<
1766
- GetPromptVersion22,
1767
- z.ZodTypeDef,
1768
- unknown
1769
- > = z.object({
1770
- type: z.literal("image_url"),
1771
- image_url: z.lazy(() => GetPromptVersion2ImageUrl$inboundSchema),
1772
- }).transform((v) => {
1773
- return remap$(v, {
1774
- "image_url": "imageUrl",
1775
- });
1776
- });
1777
-
1778
- export function getPromptVersion22FromJSON(
1779
- jsonString: string,
1780
- ): SafeParseResult<GetPromptVersion22, SDKValidationError> {
1781
- return safeParse(
1782
- jsonString,
1783
- (x) => GetPromptVersion22$inboundSchema.parse(JSON.parse(x)),
1784
- `Failed to parse 'GetPromptVersion22' from JSON`,
1785
- );
1786
- }
1787
-
1788
- /** @internal */
1789
- export const GetPromptVersion21$inboundSchema: z.ZodType<
1790
- GetPromptVersion21,
1791
- z.ZodTypeDef,
1792
- unknown
1793
- > = z.object({
1794
- type: z.literal("text"),
1795
- text: z.string(),
1796
- });
1797
-
1798
- export function getPromptVersion21FromJSON(
1799
- jsonString: string,
1800
- ): SafeParseResult<GetPromptVersion21, SDKValidationError> {
1801
- return safeParse(
1802
- jsonString,
1803
- (x) => GetPromptVersion21$inboundSchema.parse(JSON.parse(x)),
1804
- `Failed to parse 'GetPromptVersion21' from JSON`,
1805
- );
1806
- }
1807
-
1808
- /** @internal */
1809
- export const GetPromptVersionContent2$inboundSchema: z.ZodType<
1810
- GetPromptVersionContent2,
1811
- z.ZodTypeDef,
1812
- unknown
1813
- > = z.union([
1814
- z.lazy(() => GetPromptVersion21$inboundSchema),
1815
- z.lazy(() => GetPromptVersion22$inboundSchema),
1816
- z.lazy(() => GetPromptVersion23$inboundSchema),
1817
- ]);
1818
-
1819
- export function getPromptVersionContent2FromJSON(
1820
- jsonString: string,
1821
- ): SafeParseResult<GetPromptVersionContent2, SDKValidationError> {
1822
- return safeParse(
1823
- jsonString,
1824
- (x) => GetPromptVersionContent2$inboundSchema.parse(JSON.parse(x)),
1825
- `Failed to parse 'GetPromptVersionContent2' from JSON`,
1826
- );
1827
- }
1828
-
1829
- /** @internal */
1830
- export const GetPromptVersionContent$inboundSchema: z.ZodType<
1831
- GetPromptVersionContent,
1832
- z.ZodTypeDef,
1833
- unknown
1834
- > = z.union([
1835
- z.string(),
1836
- z.array(z.union([
1837
- z.lazy(() => GetPromptVersion21$inboundSchema),
1838
- z.lazy(() => GetPromptVersion22$inboundSchema),
1839
- z.lazy(() => GetPromptVersion23$inboundSchema),
1840
- ])),
1841
- ]);
1842
-
1843
- export function getPromptVersionContentFromJSON(
1844
- jsonString: string,
1845
- ): SafeParseResult<GetPromptVersionContent, SDKValidationError> {
1846
- return safeParse(
1847
- jsonString,
1848
- (x) => GetPromptVersionContent$inboundSchema.parse(JSON.parse(x)),
1849
- `Failed to parse 'GetPromptVersionContent' from JSON`,
1850
- );
1851
- }
1852
-
1853
- /** @internal */
1854
- export const GetPromptVersionPromptsType$inboundSchema: z.ZodNativeEnum<
1855
- typeof GetPromptVersionPromptsType
1856
- > = z.nativeEnum(GetPromptVersionPromptsType);
1857
-
1858
- /** @internal */
1859
- export const GetPromptVersionFunction$inboundSchema: z.ZodType<
1860
- GetPromptVersionFunction,
1861
- z.ZodTypeDef,
1862
- unknown
1863
- > = z.object({
1864
- name: z.string(),
1865
- arguments: z.string(),
1866
- });
1867
-
1868
- export function getPromptVersionFunctionFromJSON(
1869
- jsonString: string,
1870
- ): SafeParseResult<GetPromptVersionFunction, SDKValidationError> {
1871
- return safeParse(
1872
- jsonString,
1873
- (x) => GetPromptVersionFunction$inboundSchema.parse(JSON.parse(x)),
1874
- `Failed to parse 'GetPromptVersionFunction' from JSON`,
1875
- );
1876
- }
1877
-
1878
- /** @internal */
1879
- export const GetPromptVersionToolCalls$inboundSchema: z.ZodType<
1880
- GetPromptVersionToolCalls,
1881
- z.ZodTypeDef,
1882
- unknown
1883
- > = z.object({
1884
- id: z.string().optional(),
1885
- index: z.number().optional(),
1886
- type: GetPromptVersionPromptsType$inboundSchema,
1887
- function: z.lazy(() => GetPromptVersionFunction$inboundSchema),
1888
- });
1889
-
1890
- export function getPromptVersionToolCallsFromJSON(
1891
- jsonString: string,
1892
- ): SafeParseResult<GetPromptVersionToolCalls, SDKValidationError> {
1893
- return safeParse(
1894
- jsonString,
1895
- (x) => GetPromptVersionToolCalls$inboundSchema.parse(JSON.parse(x)),
1896
- `Failed to parse 'GetPromptVersionToolCalls' from JSON`,
1897
- );
1898
- }
1899
-
1900
- /** @internal */
1901
- export const GetPromptVersionMessages$inboundSchema: z.ZodType<
1902
- GetPromptVersionMessages,
1903
- z.ZodTypeDef,
1904
- unknown
1905
- > = z.object({
1906
- role: GetPromptVersionRole$inboundSchema,
1907
- content: z.nullable(
1908
- z.union([
1909
- z.string(),
1910
- z.array(
1911
- z.union([
1912
- z.lazy(() => GetPromptVersion21$inboundSchema),
1913
- z.lazy(() => GetPromptVersion22$inboundSchema),
1914
- z.lazy(() => GetPromptVersion23$inboundSchema),
1915
- ]),
1916
- ),
1917
- ]),
1918
- ),
1919
- tool_calls: z.array(z.lazy(() => GetPromptVersionToolCalls$inboundSchema))
1920
- .optional(),
1921
- tool_call_id: z.nullable(z.string()).optional(),
1922
- }).transform((v) => {
1923
- return remap$(v, {
1924
- "tool_calls": "toolCalls",
1925
- "tool_call_id": "toolCallId",
1926
- });
1927
- });
1928
-
1929
- export function getPromptVersionMessagesFromJSON(
1930
- jsonString: string,
1931
- ): SafeParseResult<GetPromptVersionMessages, SDKValidationError> {
1932
- return safeParse(
1933
- jsonString,
1934
- (x) => GetPromptVersionMessages$inboundSchema.parse(JSON.parse(x)),
1935
- `Failed to parse 'GetPromptVersionMessages' from JSON`,
1936
- );
1937
- }
1938
-
1939
- /** @internal */
1940
- export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
1941
- GetPromptVersionPromptConfig,
1942
- z.ZodTypeDef,
1943
- unknown
1944
- > = z.object({
1945
- stream: z.boolean().optional(),
1946
- model: z.nullable(z.string()).optional(),
1947
- model_db_id: z.nullable(z.string()).optional(),
1948
- model_type: z.nullable(GetPromptVersionModelType$inboundSchema).optional(),
1949
- model_parameters: z.lazy(() => GetPromptVersionModelParameters$inboundSchema)
1950
- .optional(),
1951
- provider: z.nullable(GetPromptVersionProvider$inboundSchema).optional(),
1952
- integration_id: z.nullable(z.string()).optional(),
1953
- version: z.string().optional(),
1954
- messages: z.array(z.lazy(() => GetPromptVersionMessages$inboundSchema)),
1955
- }).transform((v) => {
1956
- return remap$(v, {
1957
- "model_db_id": "modelDbId",
1958
- "model_type": "modelType",
1959
- "model_parameters": "modelParameters",
1960
- "integration_id": "integrationId",
1961
- });
1962
- });
1963
-
1964
- export function getPromptVersionPromptConfigFromJSON(
1965
- jsonString: string,
1966
- ): SafeParseResult<GetPromptVersionPromptConfig, SDKValidationError> {
1967
- return safeParse(
1968
- jsonString,
1969
- (x) => GetPromptVersionPromptConfig$inboundSchema.parse(JSON.parse(x)),
1970
- `Failed to parse 'GetPromptVersionPromptConfig' from JSON`,
1971
- );
1972
- }
1973
-
1974
- /** @internal */
1975
- export const GetPromptVersionVoice$inboundSchema: z.ZodNativeEnum<
1976
- typeof GetPromptVersionVoice
1977
- > = z.nativeEnum(GetPromptVersionVoice);
1978
-
1979
- /** @internal */
1980
- export const GetPromptVersionPromptsFormat$inboundSchema: z.ZodNativeEnum<
1981
- typeof GetPromptVersionPromptsFormat
1982
- > = z.nativeEnum(GetPromptVersionPromptsFormat);
1983
-
1984
- /** @internal */
1985
- export const GetPromptVersionAudio$inboundSchema: z.ZodType<
1986
- GetPromptVersionAudio,
1987
- z.ZodTypeDef,
1988
- unknown
1989
- > = z.object({
1990
- voice: GetPromptVersionVoice$inboundSchema,
1991
- format: GetPromptVersionPromptsFormat$inboundSchema,
1992
- });
1993
-
1994
- export function getPromptVersionAudioFromJSON(
1995
- jsonString: string,
1996
- ): SafeParseResult<GetPromptVersionAudio, SDKValidationError> {
1997
- return safeParse(
1998
- jsonString,
1999
- (x) => GetPromptVersionAudio$inboundSchema.parse(JSON.parse(x)),
2000
- `Failed to parse 'GetPromptVersionAudio' from JSON`,
2001
- );
2002
- }
2003
-
2004
- /** @internal */
2005
- export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
2006
- GetPromptVersionResponseFormatJsonSchema,
2007
- z.ZodTypeDef,
2008
- unknown
2009
- > = z.object({
2010
- description: z.string().optional(),
2011
- name: z.string(),
2012
- schema: z.any().optional(),
2013
- strict: z.boolean().default(false),
2014
- });
2015
-
2016
- export function getPromptVersionResponseFormatJsonSchemaFromJSON(
2017
- jsonString: string,
2018
- ): SafeParseResult<
2019
- GetPromptVersionResponseFormatJsonSchema,
2020
- SDKValidationError
2021
- > {
2022
- return safeParse(
2023
- jsonString,
2024
- (x) =>
2025
- GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(
2026
- JSON.parse(x),
2027
- ),
2028
- `Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`,
2029
- );
2030
- }
2031
-
2032
- /** @internal */
2033
- export const GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema:
2034
- z.ZodType<
2035
- GetPromptVersionResponseFormatPromptsJSONSchema,
2036
- z.ZodTypeDef,
2037
- unknown
2038
- > = z.object({
2039
- type: z.literal("json_schema"),
2040
- json_schema: z.lazy(() =>
2041
- GetPromptVersionResponseFormatJsonSchema$inboundSchema
2042
- ),
2043
- }).transform((v) => {
2044
- return remap$(v, {
2045
- "json_schema": "jsonSchema",
2046
- });
2047
- });
2048
-
2049
- export function getPromptVersionResponseFormatPromptsJSONSchemaFromJSON(
2050
- jsonString: string,
2051
- ): SafeParseResult<
2052
- GetPromptVersionResponseFormatPromptsJSONSchema,
2053
- SDKValidationError
2054
- > {
2055
- return safeParse(
2056
- jsonString,
2057
- (x) =>
2058
- GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema.parse(
2059
- JSON.parse(x),
2060
- ),
2061
- `Failed to parse 'GetPromptVersionResponseFormatPromptsJSONSchema' from JSON`,
2062
- );
2063
- }
2064
-
2065
- /** @internal */
2066
- export const GetPromptVersionResponseFormatJSONObject$inboundSchema: z.ZodType<
2067
- GetPromptVersionResponseFormatJSONObject,
2068
- z.ZodTypeDef,
2069
- unknown
2070
- > = z.object({
2071
- type: z.literal("json_object"),
2072
- });
2073
-
2074
- export function getPromptVersionResponseFormatJSONObjectFromJSON(
2075
- jsonString: string,
2076
- ): SafeParseResult<
2077
- GetPromptVersionResponseFormatJSONObject,
2078
- SDKValidationError
2079
- > {
2080
- return safeParse(
2081
- jsonString,
2082
- (x) =>
2083
- GetPromptVersionResponseFormatJSONObject$inboundSchema.parse(
2084
- JSON.parse(x),
2085
- ),
2086
- `Failed to parse 'GetPromptVersionResponseFormatJSONObject' from JSON`,
2087
- );
2088
- }
2089
-
2090
- /** @internal */
2091
- export const GetPromptVersionResponseFormatText$inboundSchema: z.ZodType<
2092
- GetPromptVersionResponseFormatText,
2093
- z.ZodTypeDef,
2094
- unknown
2095
- > = z.object({
2096
- type: z.literal("text"),
2097
- });
2098
-
2099
- export function getPromptVersionResponseFormatTextFromJSON(
2100
- jsonString: string,
2101
- ): SafeParseResult<GetPromptVersionResponseFormatText, SDKValidationError> {
2102
- return safeParse(
2103
- jsonString,
2104
- (x) =>
2105
- GetPromptVersionResponseFormatText$inboundSchema.parse(JSON.parse(x)),
2106
- `Failed to parse 'GetPromptVersionResponseFormatText' from JSON`,
2107
- );
2108
- }
2109
-
2110
- /** @internal */
2111
- export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
2112
- GetPromptVersionResponseFormat,
2113
- z.ZodTypeDef,
2114
- unknown
2115
- > = z.union([
2116
- z.lazy(() => GetPromptVersionResponseFormatText$inboundSchema),
2117
- z.lazy(() => GetPromptVersionResponseFormatJSONObject$inboundSchema),
2118
- z.lazy(() => GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema),
2119
- ]);
2120
-
2121
- export function getPromptVersionResponseFormatFromJSON(
2122
- jsonString: string,
2123
- ): SafeParseResult<GetPromptVersionResponseFormat, SDKValidationError> {
2124
- return safeParse(
2125
- jsonString,
2126
- (x) => GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)),
2127
- `Failed to parse 'GetPromptVersionResponseFormat' from JSON`,
2128
- );
2129
- }
2130
-
2131
- /** @internal */
2132
- export const GetPromptVersionReasoningEffort$inboundSchema: z.ZodNativeEnum<
2133
- typeof GetPromptVersionReasoningEffort
2134
- > = z.nativeEnum(GetPromptVersionReasoningEffort);
2135
-
2136
- /** @internal */
2137
- export const GetPromptVersionStop$inboundSchema: z.ZodType<
2138
- GetPromptVersionStop,
2139
- z.ZodTypeDef,
2140
- unknown
2141
- > = z.union([z.string(), z.array(z.string())]);
2142
-
2143
- export function getPromptVersionStopFromJSON(
2144
- jsonString: string,
2145
- ): SafeParseResult<GetPromptVersionStop, SDKValidationError> {
2146
- return safeParse(
2147
- jsonString,
2148
- (x) => GetPromptVersionStop$inboundSchema.parse(JSON.parse(x)),
2149
- `Failed to parse 'GetPromptVersionStop' from JSON`,
2150
- );
2151
- }
2152
-
2153
- /** @internal */
2154
- export const GetPromptVersionStreamOptions$inboundSchema: z.ZodType<
2155
- GetPromptVersionStreamOptions,
2156
- z.ZodTypeDef,
2157
- unknown
2158
- > = z.object({
2159
- include_usage: z.boolean().optional(),
2160
- }).transform((v) => {
2161
- return remap$(v, {
2162
- "include_usage": "includeUsage",
2163
- });
2164
- });
2165
-
2166
- export function getPromptVersionStreamOptionsFromJSON(
2167
- jsonString: string,
2168
- ): SafeParseResult<GetPromptVersionStreamOptions, SDKValidationError> {
2169
- return safeParse(
2170
- jsonString,
2171
- (x) => GetPromptVersionStreamOptions$inboundSchema.parse(JSON.parse(x)),
2172
- `Failed to parse 'GetPromptVersionStreamOptions' from JSON`,
2173
- );
2174
- }
2175
-
2176
- /** @internal */
2177
- export const GetPromptVersionThinking$inboundSchema: z.ZodType<
2178
- GetPromptVersionThinking,
2179
- z.ZodTypeDef,
2180
- unknown
2181
- > = z.union([
2182
- components.ThinkingConfigDisabledSchema$inboundSchema,
2183
- components.ThinkingConfigEnabledSchema$inboundSchema,
2184
- components.ThinkingConfigAdaptiveSchema$inboundSchema,
2185
- ]);
2186
-
2187
- export function getPromptVersionThinkingFromJSON(
2188
- jsonString: string,
2189
- ): SafeParseResult<GetPromptVersionThinking, SDKValidationError> {
2190
- return safeParse(
2191
- jsonString,
2192
- (x) => GetPromptVersionThinking$inboundSchema.parse(JSON.parse(x)),
2193
- `Failed to parse 'GetPromptVersionThinking' from JSON`,
2194
- );
2195
- }
2196
-
2197
- /** @internal */
2198
- export const GetPromptVersionToolChoiceType$inboundSchema: z.ZodNativeEnum<
2199
- typeof GetPromptVersionToolChoiceType
2200
- > = z.nativeEnum(GetPromptVersionToolChoiceType);
2201
-
2202
- /** @internal */
2203
- export const GetPromptVersionToolChoiceFunction$inboundSchema: z.ZodType<
2204
- GetPromptVersionToolChoiceFunction,
2205
- z.ZodTypeDef,
2206
- unknown
2207
- > = z.object({
2208
- name: z.string(),
2209
- });
2210
-
2211
- export function getPromptVersionToolChoiceFunctionFromJSON(
2212
- jsonString: string,
2213
- ): SafeParseResult<GetPromptVersionToolChoiceFunction, SDKValidationError> {
2214
- return safeParse(
2215
- jsonString,
2216
- (x) =>
2217
- GetPromptVersionToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
2218
- `Failed to parse 'GetPromptVersionToolChoiceFunction' from JSON`,
2219
- );
2220
- }
2221
-
2222
- /** @internal */
2223
- export const GetPromptVersionToolChoice2$inboundSchema: z.ZodType<
2224
- GetPromptVersionToolChoice2,
2225
- z.ZodTypeDef,
2226
- unknown
2227
- > = z.object({
2228
- type: GetPromptVersionToolChoiceType$inboundSchema.optional(),
2229
- function: z.lazy(() => GetPromptVersionToolChoiceFunction$inboundSchema),
2230
- });
2231
-
2232
- export function getPromptVersionToolChoice2FromJSON(
2233
- jsonString: string,
2234
- ): SafeParseResult<GetPromptVersionToolChoice2, SDKValidationError> {
2235
- return safeParse(
2236
- jsonString,
2237
- (x) => GetPromptVersionToolChoice2$inboundSchema.parse(JSON.parse(x)),
2238
- `Failed to parse 'GetPromptVersionToolChoice2' from JSON`,
2239
- );
2240
- }
2241
-
2242
- /** @internal */
2243
- export const GetPromptVersionToolChoice1$inboundSchema: z.ZodNativeEnum<
2244
- typeof GetPromptVersionToolChoice1
2245
- > = z.nativeEnum(GetPromptVersionToolChoice1);
2246
-
2247
- /** @internal */
2248
- export const GetPromptVersionToolChoice$inboundSchema: z.ZodType<
2249
- GetPromptVersionToolChoice,
2250
- z.ZodTypeDef,
2251
- unknown
2252
- > = z.union([
2253
- z.lazy(() => GetPromptVersionToolChoice2$inboundSchema),
2254
- GetPromptVersionToolChoice1$inboundSchema,
2255
- ]);
2256
-
2257
- export function getPromptVersionToolChoiceFromJSON(
2258
- jsonString: string,
2259
- ): SafeParseResult<GetPromptVersionToolChoice, SDKValidationError> {
2260
- return safeParse(
2261
- jsonString,
2262
- (x) => GetPromptVersionToolChoice$inboundSchema.parse(JSON.parse(x)),
2263
- `Failed to parse 'GetPromptVersionToolChoice' from JSON`,
2264
- );
2265
- }
2266
-
2267
- /** @internal */
2268
- export const GetPromptVersionModalities$inboundSchema: z.ZodNativeEnum<
2269
- typeof GetPromptVersionModalities
2270
- > = z.nativeEnum(GetPromptVersionModalities);
2271
-
2272
- /** @internal */
2273
- export const GetPromptVersionId1$inboundSchema: z.ZodNativeEnum<
2274
- typeof GetPromptVersionId1
2275
- > = z.nativeEnum(GetPromptVersionId1);
2276
-
2277
- /** @internal */
2278
- export const GetPromptVersionId$inboundSchema: z.ZodType<
2279
- GetPromptVersionId,
2280
- z.ZodTypeDef,
2281
- unknown
2282
- > = z.union([GetPromptVersionId1$inboundSchema, z.string()]);
2283
-
2284
- export function getPromptVersionIdFromJSON(
2285
- jsonString: string,
2286
- ): SafeParseResult<GetPromptVersionId, SDKValidationError> {
2287
- return safeParse(
2288
- jsonString,
2289
- (x) => GetPromptVersionId$inboundSchema.parse(JSON.parse(x)),
2290
- `Failed to parse 'GetPromptVersionId' from JSON`,
2291
- );
2292
- }
2293
-
2294
- /** @internal */
2295
- export const GetPromptVersionExecuteOn$inboundSchema: z.ZodNativeEnum<
2296
- typeof GetPromptVersionExecuteOn
2297
- > = z.nativeEnum(GetPromptVersionExecuteOn);
2298
-
2299
- /** @internal */
2300
- export const GetPromptVersionGuardrails$inboundSchema: z.ZodType<
2301
- GetPromptVersionGuardrails,
2302
- z.ZodTypeDef,
2303
- unknown
2304
- > = z.object({
2305
- id: z.union([GetPromptVersionId1$inboundSchema, z.string()]),
2306
- execute_on: GetPromptVersionExecuteOn$inboundSchema,
2307
- }).transform((v) => {
2308
- return remap$(v, {
2309
- "execute_on": "executeOn",
2310
- });
2311
- });
2312
-
2313
- export function getPromptVersionGuardrailsFromJSON(
2314
- jsonString: string,
2315
- ): SafeParseResult<GetPromptVersionGuardrails, SDKValidationError> {
2316
- return safeParse(
2317
- jsonString,
2318
- (x) => GetPromptVersionGuardrails$inboundSchema.parse(JSON.parse(x)),
2319
- `Failed to parse 'GetPromptVersionGuardrails' from JSON`,
2320
- );
2321
- }
2322
-
2323
- /** @internal */
2324
- export const GetPromptVersionFallbacks$inboundSchema: z.ZodType<
2325
- GetPromptVersionFallbacks,
2326
- z.ZodTypeDef,
2327
- unknown
2328
- > = z.object({
2329
- model: z.string(),
2330
- });
2331
-
2332
- export function getPromptVersionFallbacksFromJSON(
2333
- jsonString: string,
2334
- ): SafeParseResult<GetPromptVersionFallbacks, SDKValidationError> {
2335
- return safeParse(
2336
- jsonString,
2337
- (x) => GetPromptVersionFallbacks$inboundSchema.parse(JSON.parse(x)),
2338
- `Failed to parse 'GetPromptVersionFallbacks' from JSON`,
2339
- );
2340
- }
2341
-
2342
- /** @internal */
2343
- export const GetPromptVersionRetry$inboundSchema: z.ZodType<
2344
- GetPromptVersionRetry,
2345
- z.ZodTypeDef,
2346
- unknown
2347
- > = z.object({
2348
- count: z.number().default(3),
2349
- on_codes: z.array(z.number()).optional(),
2350
- }).transform((v) => {
2351
- return remap$(v, {
2352
- "on_codes": "onCodes",
2353
- });
2354
- });
2355
-
2356
- export function getPromptVersionRetryFromJSON(
2357
- jsonString: string,
2358
- ): SafeParseResult<GetPromptVersionRetry, SDKValidationError> {
2359
- return safeParse(
2360
- jsonString,
2361
- (x) => GetPromptVersionRetry$inboundSchema.parse(JSON.parse(x)),
2362
- `Failed to parse 'GetPromptVersionRetry' from JSON`,
2363
- );
2364
- }
2365
-
2366
- /** @internal */
2367
- export const GetPromptVersionType$inboundSchema: z.ZodNativeEnum<
2368
- typeof GetPromptVersionType
2369
- > = z.nativeEnum(GetPromptVersionType);
2370
-
2371
- /** @internal */
2372
- export const GetPromptVersionCache$inboundSchema: z.ZodType<
2373
- GetPromptVersionCache,
2374
- z.ZodTypeDef,
2375
- unknown
2376
- > = z.object({
2377
- ttl: z.number().default(1800),
2378
- type: GetPromptVersionType$inboundSchema,
2379
- });
2380
-
2381
- export function getPromptVersionCacheFromJSON(
2382
- jsonString: string,
2383
- ): SafeParseResult<GetPromptVersionCache, SDKValidationError> {
2384
- return safeParse(
2385
- jsonString,
2386
- (x) => GetPromptVersionCache$inboundSchema.parse(JSON.parse(x)),
2387
- `Failed to parse 'GetPromptVersionCache' from JSON`,
2388
- );
2389
- }
2390
-
2391
- /** @internal */
2392
- export const GetPromptVersionLoadBalancerType$inboundSchema: z.ZodNativeEnum<
2393
- typeof GetPromptVersionLoadBalancerType
2394
- > = z.nativeEnum(GetPromptVersionLoadBalancerType);
2395
-
2396
- /** @internal */
2397
- export const GetPromptVersionLoadBalancerModels$inboundSchema: z.ZodType<
2398
- GetPromptVersionLoadBalancerModels,
2399
- z.ZodTypeDef,
2400
- unknown
2401
- > = z.object({
2402
- model: z.string(),
2403
- weight: z.number().default(0.5),
2404
- });
2405
-
2406
- export function getPromptVersionLoadBalancerModelsFromJSON(
2407
- jsonString: string,
2408
- ): SafeParseResult<GetPromptVersionLoadBalancerModels, SDKValidationError> {
2409
- return safeParse(
2410
- jsonString,
2411
- (x) =>
2412
- GetPromptVersionLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
2413
- `Failed to parse 'GetPromptVersionLoadBalancerModels' from JSON`,
2414
- );
2415
- }
2416
-
2417
- /** @internal */
2418
- export const GetPromptVersionLoadBalancer1$inboundSchema: z.ZodType<
2419
- GetPromptVersionLoadBalancer1,
2420
- z.ZodTypeDef,
2421
- unknown
2422
- > = z.object({
2423
- type: GetPromptVersionLoadBalancerType$inboundSchema,
2424
- models: z.array(
2425
- z.lazy(() => GetPromptVersionLoadBalancerModels$inboundSchema),
2426
- ),
2427
- });
2428
-
2429
- export function getPromptVersionLoadBalancer1FromJSON(
2430
- jsonString: string,
2431
- ): SafeParseResult<GetPromptVersionLoadBalancer1, SDKValidationError> {
2432
- return safeParse(
2433
- jsonString,
2434
- (x) => GetPromptVersionLoadBalancer1$inboundSchema.parse(JSON.parse(x)),
2435
- `Failed to parse 'GetPromptVersionLoadBalancer1' from JSON`,
2436
- );
2437
- }
2438
-
2439
- /** @internal */
2440
- export const GetPromptVersionLoadBalancer$inboundSchema: z.ZodType<
2441
- GetPromptVersionLoadBalancer,
2442
- z.ZodTypeDef,
2443
- unknown
2444
- > = z.lazy(() => GetPromptVersionLoadBalancer1$inboundSchema);
2445
-
2446
- export function getPromptVersionLoadBalancerFromJSON(
2447
- jsonString: string,
2448
- ): SafeParseResult<GetPromptVersionLoadBalancer, SDKValidationError> {
2449
- return safeParse(
2450
- jsonString,
2451
- (x) => GetPromptVersionLoadBalancer$inboundSchema.parse(JSON.parse(x)),
2452
- `Failed to parse 'GetPromptVersionLoadBalancer' from JSON`,
2453
- );
2454
- }
2455
-
2456
- /** @internal */
2457
- export const GetPromptVersionTimeout$inboundSchema: z.ZodType<
2458
- GetPromptVersionTimeout,
2459
- z.ZodTypeDef,
2460
- unknown
2461
- > = z.object({
2462
- call_timeout: z.number(),
2463
- }).transform((v) => {
2464
- return remap$(v, {
2465
- "call_timeout": "callTimeout",
2466
- });
2467
- });
2468
-
2469
- export function getPromptVersionTimeoutFromJSON(
2470
- jsonString: string,
2471
- ): SafeParseResult<GetPromptVersionTimeout, SDKValidationError> {
2472
- return safeParse(
2473
- jsonString,
2474
- (x) => GetPromptVersionTimeout$inboundSchema.parse(JSON.parse(x)),
2475
- `Failed to parse 'GetPromptVersionTimeout' from JSON`,
2476
- );
2477
- }
2478
-
2479
- /** @internal */
2480
- export const GetPromptVersionContentPromptsResponse2002$inboundSchema:
2481
- z.ZodType<GetPromptVersionContentPromptsResponse2002, z.ZodTypeDef, unknown> =
2482
- components.TextContentPartSchema$inboundSchema;
2483
-
2484
- export function getPromptVersionContentPromptsResponse2002FromJSON(
2485
- jsonString: string,
2486
- ): SafeParseResult<
2487
- GetPromptVersionContentPromptsResponse2002,
2488
- SDKValidationError
2489
- > {
2490
- return safeParse(
2491
- jsonString,
2492
- (x) =>
2493
- GetPromptVersionContentPromptsResponse2002$inboundSchema.parse(
2494
- JSON.parse(x),
2495
- ),
2496
- `Failed to parse 'GetPromptVersionContentPromptsResponse2002' from JSON`,
2497
- );
2498
- }
2499
-
2500
- /** @internal */
2501
- export const GetPromptVersionMessagesPromptsResponse200Content$inboundSchema:
2502
- z.ZodType<
2503
- GetPromptVersionMessagesPromptsResponse200Content,
2504
- z.ZodTypeDef,
2505
- unknown
2506
- > = z.union([
2507
- z.string(),
2508
- z.array(components.TextContentPartSchema$inboundSchema),
2509
- ]);
2510
-
2511
- export function getPromptVersionMessagesPromptsResponse200ContentFromJSON(
2512
- jsonString: string,
2513
- ): SafeParseResult<
2514
- GetPromptVersionMessagesPromptsResponse200Content,
2515
- SDKValidationError
2516
- > {
2517
- return safeParse(
2518
- jsonString,
2519
- (x) =>
2520
- GetPromptVersionMessagesPromptsResponse200Content$inboundSchema.parse(
2521
- JSON.parse(x),
2522
- ),
2523
- `Failed to parse 'GetPromptVersionMessagesPromptsResponse200Content' from JSON`,
2524
- );
2525
- }
2526
-
2527
- /** @internal */
2528
- export const GetPromptVersionMessagesPromptsType$inboundSchema: z.ZodNativeEnum<
2529
- typeof GetPromptVersionMessagesPromptsType
2530
- > = z.nativeEnum(GetPromptVersionMessagesPromptsType);
2531
-
2532
- /** @internal */
2533
- export const GetPromptVersionMessagesTtl$inboundSchema: z.ZodNativeEnum<
2534
- typeof GetPromptVersionMessagesTtl
2535
- > = z.nativeEnum(GetPromptVersionMessagesTtl);
2536
-
2537
- /** @internal */
2538
- export const GetPromptVersionMessagesCacheControl$inboundSchema: z.ZodType<
2539
- GetPromptVersionMessagesCacheControl,
2540
- z.ZodTypeDef,
2541
- unknown
2542
- > = z.object({
2543
- type: GetPromptVersionMessagesPromptsType$inboundSchema,
2544
- ttl: GetPromptVersionMessagesTtl$inboundSchema.default("5m"),
2545
- });
2546
-
2547
- export function getPromptVersionMessagesCacheControlFromJSON(
2548
- jsonString: string,
2549
- ): SafeParseResult<GetPromptVersionMessagesCacheControl, SDKValidationError> {
2550
- return safeParse(
2551
- jsonString,
2552
- (x) =>
2553
- GetPromptVersionMessagesCacheControl$inboundSchema.parse(JSON.parse(x)),
2554
- `Failed to parse 'GetPromptVersionMessagesCacheControl' from JSON`,
2555
- );
2556
- }
2557
-
2558
- /** @internal */
2559
- export const GetPromptVersionMessagesToolMessage$inboundSchema: z.ZodType<
2560
- GetPromptVersionMessagesToolMessage,
2561
- z.ZodTypeDef,
2562
- unknown
2563
- > = z.object({
2564
- role: z.literal("tool"),
2565
- content: z.union([
2566
- z.string(),
2567
- z.array(components.TextContentPartSchema$inboundSchema),
2568
- ]),
2569
- tool_call_id: z.nullable(z.string()),
2570
- cache_control: z.lazy(() =>
2571
- GetPromptVersionMessagesCacheControl$inboundSchema
2572
- ).optional(),
2573
- }).transform((v) => {
2574
- return remap$(v, {
2575
- "tool_call_id": "toolCallId",
2576
- "cache_control": "cacheControl",
2577
- });
2578
- });
2579
-
2580
- export function getPromptVersionMessagesToolMessageFromJSON(
2581
- jsonString: string,
2582
- ): SafeParseResult<GetPromptVersionMessagesToolMessage, SDKValidationError> {
2583
- return safeParse(
2584
- jsonString,
2585
- (x) =>
2586
- GetPromptVersionMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
2587
- `Failed to parse 'GetPromptVersionMessagesToolMessage' from JSON`,
2588
- );
2589
- }
2590
-
2591
- /** @internal */
2592
- export const GetPromptVersionContentPromptsResponse2$inboundSchema: z.ZodType<
2593
- GetPromptVersionContentPromptsResponse2,
2594
- z.ZodTypeDef,
2595
- unknown
2596
- > = z.union([
2597
- components.TextContentPartSchema$inboundSchema.and(
2598
- z.object({ type: z.literal("text") }),
2599
- ),
2600
- components.RefusalPartSchema$inboundSchema,
2601
- components.ReasoningPartSchema$inboundSchema,
2602
- components.RedactedReasoningPartSchema$inboundSchema,
2603
- ]);
2604
-
2605
- export function getPromptVersionContentPromptsResponse2FromJSON(
2606
- jsonString: string,
2607
- ): SafeParseResult<
2608
- GetPromptVersionContentPromptsResponse2,
2609
- SDKValidationError
2610
- > {
2611
- return safeParse(
2612
- jsonString,
2613
- (x) =>
2614
- GetPromptVersionContentPromptsResponse2$inboundSchema.parse(
2615
- JSON.parse(x),
2616
- ),
2617
- `Failed to parse 'GetPromptVersionContentPromptsResponse2' from JSON`,
2618
- );
2619
- }
2620
-
2621
- /** @internal */
2622
- export const GetPromptVersionMessagesPromptsResponseContent$inboundSchema:
2623
- z.ZodType<
2624
- GetPromptVersionMessagesPromptsResponseContent,
2625
- z.ZodTypeDef,
2626
- unknown
2627
- > = z.union([
2628
- z.string(),
2629
- z.array(
2630
- z.union([
2631
- components.TextContentPartSchema$inboundSchema.and(
2632
- z.object({ type: z.literal("text") }),
2633
- ),
2634
- components.RefusalPartSchema$inboundSchema,
2635
- components.ReasoningPartSchema$inboundSchema,
2636
- components.RedactedReasoningPartSchema$inboundSchema,
2637
- ]),
2638
- ),
2639
- ]);
2640
-
2641
- export function getPromptVersionMessagesPromptsResponseContentFromJSON(
2642
- jsonString: string,
2643
- ): SafeParseResult<
2644
- GetPromptVersionMessagesPromptsResponseContent,
2645
- SDKValidationError
2646
- > {
2647
- return safeParse(
2648
- jsonString,
2649
- (x) =>
2650
- GetPromptVersionMessagesPromptsResponseContent$inboundSchema.parse(
2651
- JSON.parse(x),
2652
- ),
2653
- `Failed to parse 'GetPromptVersionMessagesPromptsResponseContent' from JSON`,
2654
- );
2655
- }
2656
-
2657
- /** @internal */
2658
- export const GetPromptVersionMessagesAudio$inboundSchema: z.ZodType<
2659
- GetPromptVersionMessagesAudio,
2660
- z.ZodTypeDef,
2661
- unknown
2662
- > = z.object({
2663
- id: z.string(),
2664
- });
2665
-
2666
- export function getPromptVersionMessagesAudioFromJSON(
2667
- jsonString: string,
2668
- ): SafeParseResult<GetPromptVersionMessagesAudio, SDKValidationError> {
2669
- return safeParse(
2670
- jsonString,
2671
- (x) => GetPromptVersionMessagesAudio$inboundSchema.parse(JSON.parse(x)),
2672
- `Failed to parse 'GetPromptVersionMessagesAudio' from JSON`,
2673
- );
2674
- }
2675
-
2676
- /** @internal */
2677
- export const GetPromptVersionMessagesType$inboundSchema: z.ZodNativeEnum<
2678
- typeof GetPromptVersionMessagesType
2679
- > = z.nativeEnum(GetPromptVersionMessagesType);
2680
-
2681
- /** @internal */
2682
- export const GetPromptVersionMessagesFunction$inboundSchema: z.ZodType<
2683
- GetPromptVersionMessagesFunction,
2684
- z.ZodTypeDef,
2685
- unknown
2686
- > = z.object({
2687
- name: z.string().optional(),
2688
- arguments: z.string().optional(),
2689
- });
2690
-
2691
- export function getPromptVersionMessagesFunctionFromJSON(
2692
- jsonString: string,
2693
- ): SafeParseResult<GetPromptVersionMessagesFunction, SDKValidationError> {
2694
- return safeParse(
2695
- jsonString,
2696
- (x) => GetPromptVersionMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2697
- `Failed to parse 'GetPromptVersionMessagesFunction' from JSON`,
2698
- );
2699
- }
2700
-
2701
- /** @internal */
2702
- export const GetPromptVersionMessagesToolCalls$inboundSchema: z.ZodType<
2703
- GetPromptVersionMessagesToolCalls,
2704
- z.ZodTypeDef,
2705
- unknown
2706
- > = z.object({
2707
- id: z.string(),
2708
- type: GetPromptVersionMessagesType$inboundSchema,
2709
- function: z.lazy(() => GetPromptVersionMessagesFunction$inboundSchema),
2710
- thought_signature: z.string().optional(),
2711
- }).transform((v) => {
2712
- return remap$(v, {
2713
- "thought_signature": "thoughtSignature",
2714
- });
2715
- });
2716
-
2717
- export function getPromptVersionMessagesToolCallsFromJSON(
2718
- jsonString: string,
2719
- ): SafeParseResult<GetPromptVersionMessagesToolCalls, SDKValidationError> {
2720
- return safeParse(
2721
- jsonString,
2722
- (x) => GetPromptVersionMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
2723
- `Failed to parse 'GetPromptVersionMessagesToolCalls' from JSON`,
2724
- );
2725
- }
2726
-
2727
- /** @internal */
2728
- export const GetPromptVersionMessagesAssistantMessage$inboundSchema: z.ZodType<
2729
- GetPromptVersionMessagesAssistantMessage,
2730
- z.ZodTypeDef,
2731
- unknown
2732
- > = z.object({
2733
- content: z.nullable(
2734
- z.union([
2735
- z.string(),
2736
- z.array(
2737
- z.union([
2738
- components.TextContentPartSchema$inboundSchema.and(
2739
- z.object({ type: z.literal("text") }),
2740
- ),
2741
- components.RefusalPartSchema$inboundSchema,
2742
- components.ReasoningPartSchema$inboundSchema,
2743
- components.RedactedReasoningPartSchema$inboundSchema,
2744
- ]),
2745
- ),
2746
- ]),
2747
- ).optional(),
2748
- refusal: z.nullable(z.string()).optional(),
2749
- role: z.literal("assistant"),
2750
- name: z.string().optional(),
2751
- audio: z.nullable(z.lazy(() => GetPromptVersionMessagesAudio$inboundSchema))
2752
- .optional(),
2753
- tool_calls: z.array(
2754
- z.lazy(() => GetPromptVersionMessagesToolCalls$inboundSchema),
2755
- ).optional(),
2756
- }).transform((v) => {
2757
- return remap$(v, {
2758
- "tool_calls": "toolCalls",
2759
- });
2760
- });
2761
-
2762
- export function getPromptVersionMessagesAssistantMessageFromJSON(
2763
- jsonString: string,
2764
- ): SafeParseResult<
2765
- GetPromptVersionMessagesAssistantMessage,
2766
- SDKValidationError
2767
- > {
2768
- return safeParse(
2769
- jsonString,
2770
- (x) =>
2771
- GetPromptVersionMessagesAssistantMessage$inboundSchema.parse(
2772
- JSON.parse(x),
2773
- ),
2774
- `Failed to parse 'GetPromptVersionMessagesAssistantMessage' from JSON`,
2775
- );
2776
- }
2777
-
2778
- /** @internal */
2779
- export const GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema:
2780
- z.ZodNativeEnum<
2781
- typeof GetPromptVersion2PromptsResponse200ApplicationJSONType
2782
- > = z.nativeEnum(GetPromptVersion2PromptsResponse200ApplicationJSONType);
2783
-
2784
- /** @internal */
2785
- export const GetPromptVersion2Ttl$inboundSchema: z.ZodNativeEnum<
2786
- typeof GetPromptVersion2Ttl
2787
- > = z.nativeEnum(GetPromptVersion2Ttl);
2788
-
2789
- /** @internal */
2790
- export const GetPromptVersion2CacheControl$inboundSchema: z.ZodType<
2791
- GetPromptVersion2CacheControl,
2792
- z.ZodTypeDef,
2793
- unknown
2794
- > = z.object({
2795
- type: GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema,
2796
- ttl: GetPromptVersion2Ttl$inboundSchema.default("5m"),
2797
- });
2798
-
2799
- export function getPromptVersion2CacheControlFromJSON(
2800
- jsonString: string,
2801
- ): SafeParseResult<GetPromptVersion2CacheControl, SDKValidationError> {
2802
- return safeParse(
2803
- jsonString,
2804
- (x) => GetPromptVersion2CacheControl$inboundSchema.parse(JSON.parse(x)),
2805
- `Failed to parse 'GetPromptVersion2CacheControl' from JSON`,
2806
- );
2807
- }
2808
-
2809
- /** @internal */
2810
- export const GetPromptVersion24$inboundSchema: z.ZodType<
2811
- GetPromptVersion24,
2812
- z.ZodTypeDef,
2813
- unknown
2814
- > = z.object({
2815
- type: z.literal("file"),
2816
- cache_control: z.lazy(() => GetPromptVersion2CacheControl$inboundSchema)
2817
- .optional(),
2818
- file: components.FileContentPartSchema$inboundSchema,
2819
- }).transform((v) => {
2820
- return remap$(v, {
2821
- "cache_control": "cacheControl",
2822
- });
2823
- });
2824
-
2825
- export function getPromptVersion24FromJSON(
2826
- jsonString: string,
2827
- ): SafeParseResult<GetPromptVersion24, SDKValidationError> {
2828
- return safeParse(
2829
- jsonString,
2830
- (x) => GetPromptVersion24$inboundSchema.parse(JSON.parse(x)),
2831
- `Failed to parse 'GetPromptVersion24' from JSON`,
2832
- );
2833
- }
2834
-
2835
- /** @internal */
2836
- export const GetPromptVersionContentPrompts2$inboundSchema: z.ZodType<
2837
- GetPromptVersionContentPrompts2,
2838
- z.ZodTypeDef,
2839
- unknown
2840
- > = z.union([
2841
- components.TextContentPartSchema$inboundSchema.and(
2842
- z.object({ type: z.literal("text") }),
2843
- ),
2844
- components.ImageContentPartSchema$inboundSchema,
2845
- components.AudioContentPartSchema$inboundSchema,
2846
- z.lazy(() => GetPromptVersion24$inboundSchema),
2847
- ]);
2848
-
2849
- export function getPromptVersionContentPrompts2FromJSON(
2850
- jsonString: string,
2851
- ): SafeParseResult<GetPromptVersionContentPrompts2, SDKValidationError> {
2852
- return safeParse(
2853
- jsonString,
2854
- (x) => GetPromptVersionContentPrompts2$inboundSchema.parse(JSON.parse(x)),
2855
- `Failed to parse 'GetPromptVersionContentPrompts2' from JSON`,
2856
- );
2857
- }
2858
-
2859
- /** @internal */
2860
- export const GetPromptVersionMessagesPromptsContent$inboundSchema: z.ZodType<
2861
- GetPromptVersionMessagesPromptsContent,
2862
- z.ZodTypeDef,
2863
- unknown
2864
- > = z.union([
2865
- z.string(),
2866
- z.array(
2867
- z.union([
2868
- components.TextContentPartSchema$inboundSchema.and(
2869
- z.object({ type: z.literal("text") }),
2870
- ),
2871
- components.ImageContentPartSchema$inboundSchema,
2872
- components.AudioContentPartSchema$inboundSchema,
2873
- z.lazy(() => GetPromptVersion24$inboundSchema),
2874
- ]),
2875
- ),
2876
- ]);
2877
-
2878
- export function getPromptVersionMessagesPromptsContentFromJSON(
2879
- jsonString: string,
2880
- ): SafeParseResult<GetPromptVersionMessagesPromptsContent, SDKValidationError> {
2881
- return safeParse(
2882
- jsonString,
2883
- (x) =>
2884
- GetPromptVersionMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)),
2885
- `Failed to parse 'GetPromptVersionMessagesPromptsContent' from JSON`,
2886
- );
2887
- }
2888
-
2889
- /** @internal */
2890
- export const GetPromptVersionMessagesUserMessage$inboundSchema: z.ZodType<
2891
- GetPromptVersionMessagesUserMessage,
2892
- z.ZodTypeDef,
2893
- unknown
2894
- > = z.object({
2895
- role: z.literal("user"),
2896
- name: z.string().optional(),
2897
- content: z.union([
2898
- z.string(),
2899
- z.array(
2900
- z.union([
2901
- components.TextContentPartSchema$inboundSchema.and(
2902
- z.object({ type: z.literal("text") }),
2903
- ),
2904
- components.ImageContentPartSchema$inboundSchema,
2905
- components.AudioContentPartSchema$inboundSchema,
2906
- z.lazy(() => GetPromptVersion24$inboundSchema),
2907
- ]),
2908
- ),
2909
- ]),
2910
- });
2911
-
2912
- export function getPromptVersionMessagesUserMessageFromJSON(
2913
- jsonString: string,
2914
- ): SafeParseResult<GetPromptVersionMessagesUserMessage, SDKValidationError> {
2915
- return safeParse(
2916
- jsonString,
2917
- (x) =>
2918
- GetPromptVersionMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
2919
- `Failed to parse 'GetPromptVersionMessagesUserMessage' from JSON`,
2920
- );
2921
- }
2922
-
2923
- /** @internal */
2924
- export const GetPromptVersionMessagesContent$inboundSchema: z.ZodType<
2925
- GetPromptVersionMessagesContent,
2926
- z.ZodTypeDef,
2927
- unknown
2928
- > = z.union([
2929
- z.string(),
2930
- z.array(components.TextContentPartSchema$inboundSchema),
2931
- ]);
2932
-
2933
- export function getPromptVersionMessagesContentFromJSON(
2934
- jsonString: string,
2935
- ): SafeParseResult<GetPromptVersionMessagesContent, SDKValidationError> {
2936
- return safeParse(
2937
- jsonString,
2938
- (x) => GetPromptVersionMessagesContent$inboundSchema.parse(JSON.parse(x)),
2939
- `Failed to parse 'GetPromptVersionMessagesContent' from JSON`,
2940
- );
2941
- }
2942
-
2943
- /** @internal */
2944
- export const GetPromptVersionMessagesSystemMessage$inboundSchema: z.ZodType<
2945
- GetPromptVersionMessagesSystemMessage,
2946
- z.ZodTypeDef,
2947
- unknown
2948
- > = z.object({
2949
- role: z.literal("system"),
2950
- content: z.union([
2951
- z.string(),
2952
- z.array(components.TextContentPartSchema$inboundSchema),
2953
- ]),
2954
- name: z.string().optional(),
2955
- });
2956
-
2957
- export function getPromptVersionMessagesSystemMessageFromJSON(
2958
- jsonString: string,
2959
- ): SafeParseResult<GetPromptVersionMessagesSystemMessage, SDKValidationError> {
2960
- return safeParse(
2961
- jsonString,
2962
- (x) =>
2963
- GetPromptVersionMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
2964
- `Failed to parse 'GetPromptVersionMessagesSystemMessage' from JSON`,
2965
- );
2966
- }
2967
-
2968
- /** @internal */
2969
- export const GetPromptVersionPromptsMessages$inboundSchema: z.ZodType<
2970
- GetPromptVersionPromptsMessages,
2971
- z.ZodTypeDef,
2972
- unknown
2973
- > = z.union([
2974
- z.lazy(() => GetPromptVersionMessagesSystemMessage$inboundSchema),
2975
- z.lazy(() => GetPromptVersionMessagesUserMessage$inboundSchema),
2976
- z.lazy(() => GetPromptVersionMessagesAssistantMessage$inboundSchema),
2977
- z.lazy(() => GetPromptVersionMessagesToolMessage$inboundSchema),
2978
- ]);
2979
-
2980
- export function getPromptVersionPromptsMessagesFromJSON(
2981
- jsonString: string,
2982
- ): SafeParseResult<GetPromptVersionPromptsMessages, SDKValidationError> {
2983
- return safeParse(
2984
- jsonString,
2985
- (x) => GetPromptVersionPromptsMessages$inboundSchema.parse(JSON.parse(x)),
2986
- `Failed to parse 'GetPromptVersionPromptsMessages' from JSON`,
2987
- );
2988
- }
2989
-
2990
- /** @internal */
2991
- export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
2992
- GetPromptVersionPromptField,
2993
- z.ZodTypeDef,
2994
- unknown
2995
- > = z.object({
2996
- name: z.string().optional(),
2997
- audio: z.nullable(z.lazy(() => GetPromptVersionAudio$inboundSchema))
2998
- .optional(),
2999
- frequency_penalty: z.nullable(z.number()).optional(),
3000
- max_tokens: z.nullable(z.number().int()).optional(),
3001
- max_completion_tokens: z.nullable(z.number().int()).optional(),
3002
- logprobs: z.nullable(z.boolean()).optional(),
3003
- top_logprobs: z.nullable(z.number().int()).optional(),
3004
- n: z.nullable(z.number().int()).optional(),
3005
- presence_penalty: z.nullable(z.number()).optional(),
3006
- response_format: z.union([
3007
- z.lazy(() => GetPromptVersionResponseFormatText$inboundSchema),
3008
- z.lazy(() => GetPromptVersionResponseFormatJSONObject$inboundSchema),
3009
- z.lazy(() => GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema),
3010
- ]).optional(),
3011
- reasoning_effort: GetPromptVersionReasoningEffort$inboundSchema.optional(),
3012
- verbosity: z.string().optional(),
3013
- seed: z.nullable(z.number()).optional(),
3014
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3015
- stream_options: z.nullable(
3016
- z.lazy(() => GetPromptVersionStreamOptions$inboundSchema),
3017
- ).optional(),
3018
- thinking: z.union([
3019
- components.ThinkingConfigDisabledSchema$inboundSchema,
3020
- components.ThinkingConfigEnabledSchema$inboundSchema,
3021
- components.ThinkingConfigAdaptiveSchema$inboundSchema,
3022
- ]).optional(),
3023
- temperature: z.nullable(z.number()).optional(),
3024
- top_p: z.nullable(z.number()).optional(),
3025
- top_k: z.nullable(z.number()).optional(),
3026
- tool_choice: z.union([
3027
- z.lazy(() => GetPromptVersionToolChoice2$inboundSchema),
3028
- GetPromptVersionToolChoice1$inboundSchema,
3029
- ]).optional(),
3030
- parallel_tool_calls: z.boolean().optional(),
3031
- modalities: z.nullable(z.array(GetPromptVersionModalities$inboundSchema))
3032
- .optional(),
3033
- guardrails: z.array(z.lazy(() => GetPromptVersionGuardrails$inboundSchema))
3034
- .optional(),
3035
- fallbacks: z.array(z.lazy(() => GetPromptVersionFallbacks$inboundSchema))
3036
- .optional(),
3037
- retry: z.lazy(() => GetPromptVersionRetry$inboundSchema).optional(),
3038
- cache: z.lazy(() => GetPromptVersionCache$inboundSchema).optional(),
3039
- load_balancer: z.lazy(() => GetPromptVersionLoadBalancer1$inboundSchema)
3040
- .optional(),
3041
- timeout: z.lazy(() => GetPromptVersionTimeout$inboundSchema).optional(),
3042
- messages: z.array(
3043
- z.union([
3044
- z.lazy(() => GetPromptVersionMessagesSystemMessage$inboundSchema),
3045
- z.lazy(() => GetPromptVersionMessagesUserMessage$inboundSchema),
3046
- z.lazy(() => GetPromptVersionMessagesAssistantMessage$inboundSchema),
3047
- z.lazy(() => GetPromptVersionMessagesToolMessage$inboundSchema),
3048
- ]),
3049
- ).optional(),
3050
- model: z.nullable(z.string()).optional(),
3051
- version: z.string().optional(),
3052
- }).transform((v) => {
3053
- return remap$(v, {
3054
- "frequency_penalty": "frequencyPenalty",
3055
- "max_tokens": "maxTokens",
3056
- "max_completion_tokens": "maxCompletionTokens",
3057
- "top_logprobs": "topLogprobs",
3058
- "presence_penalty": "presencePenalty",
3059
- "response_format": "responseFormat",
3060
- "reasoning_effort": "reasoningEffort",
3061
- "stream_options": "streamOptions",
3062
- "top_p": "topP",
3063
- "top_k": "topK",
3064
- "tool_choice": "toolChoice",
3065
- "parallel_tool_calls": "parallelToolCalls",
3066
- "load_balancer": "loadBalancer",
3067
- });
3068
- });
3069
-
3070
- export function getPromptVersionPromptFieldFromJSON(
3071
- jsonString: string,
3072
- ): SafeParseResult<GetPromptVersionPromptField, SDKValidationError> {
3073
- return safeParse(
3074
- jsonString,
3075
- (x) => GetPromptVersionPromptField$inboundSchema.parse(JSON.parse(x)),
3076
- `Failed to parse 'GetPromptVersionPromptField' from JSON`,
3077
- );
3078
- }
3079
-
3080
- /** @internal */
3081
- export const GetPromptVersionUseCases$inboundSchema: z.ZodNativeEnum<
3082
- typeof GetPromptVersionUseCases
3083
- > = z.nativeEnum(GetPromptVersionUseCases);
3084
-
3085
- /** @internal */
3086
- export const GetPromptVersionLanguage$inboundSchema: z.ZodNativeEnum<
3087
- typeof GetPromptVersionLanguage
3088
- > = z.nativeEnum(GetPromptVersionLanguage);
3089
-
3090
- /** @internal */
3091
- export const GetPromptVersionMetadata$inboundSchema: z.ZodType<
3092
- GetPromptVersionMetadata,
3093
- z.ZodTypeDef,
3094
- unknown
3095
- > = z.object({
3096
- use_cases: z.array(GetPromptVersionUseCases$inboundSchema).optional(),
3097
- language: z.nullable(GetPromptVersionLanguage$inboundSchema).optional(),
3098
- }).transform((v) => {
3099
- return remap$(v, {
3100
- "use_cases": "useCases",
3101
- });
3102
- });
3103
-
3104
- export function getPromptVersionMetadataFromJSON(
3105
- jsonString: string,
3106
- ): SafeParseResult<GetPromptVersionMetadata, SDKValidationError> {
3107
- return safeParse(
3108
- jsonString,
3109
- (x) => GetPromptVersionMetadata$inboundSchema.parse(JSON.parse(x)),
3110
- `Failed to parse 'GetPromptVersionMetadata' from JSON`,
3111
- );
3112
- }
3113
-
3114
- /** @internal */
3115
- export const GetPromptVersionResponseBody$inboundSchema: z.ZodType<
3116
- GetPromptVersionResponseBody,
3117
- z.ZodTypeDef,
3118
- unknown
3119
- > = z.object({
3120
- _id: z.string(),
3121
- created_by_id: z.nullable(z.string()).optional(),
3122
- updated_by_id: z.nullable(z.string()).optional(),
3123
- description: z.nullable(z.string()).optional(),
3124
- prompt_config: z.lazy(() => GetPromptVersionPromptConfig$inboundSchema)
3125
- .optional(),
3126
- prompt: z.lazy(() => GetPromptVersionPromptField$inboundSchema),
3127
- metadata: z.lazy(() => GetPromptVersionMetadata$inboundSchema).optional(),
3128
- timestamp: z.string(),
3129
- }).transform((v) => {
3130
- return remap$(v, {
3131
- "_id": "id",
3132
- "created_by_id": "createdById",
3133
- "updated_by_id": "updatedById",
3134
- "prompt_config": "promptConfig",
3135
- });
3136
- });
3137
-
3138
- export function getPromptVersionResponseBodyFromJSON(
3139
- jsonString: string,
3140
- ): SafeParseResult<GetPromptVersionResponseBody, SDKValidationError> {
3141
- return safeParse(
3142
- jsonString,
3143
- (x) => GetPromptVersionResponseBody$inboundSchema.parse(JSON.parse(x)),
3144
- `Failed to parse 'GetPromptVersionResponseBody' from JSON`,
3145
- );
3146
- }