@orq-ai/node 4.2.3 → 4.3.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 (492) hide show
  1. package/examples/package-lock.json +4 -7
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/lib/config.js.map +1 -1
  6. package/models/components/conversationresponse.js +1 -1
  7. package/models/components/conversationwithmessagesresponse.js +1 -1
  8. package/models/components/partdoneevent.js +1 -1
  9. package/models/components/reasoningpart.js +1 -1
  10. package/models/operations/createcontact.js +1 -1
  11. package/models/operations/createconversation.js +1 -1
  12. package/models/operations/createconversationresponse.js +2 -2
  13. package/models/operations/createdataset.js +1 -1
  14. package/models/operations/createdatasetitem.js +4 -4
  15. package/models/operations/createdatasource.js +1 -1
  16. package/models/operations/createeval.js +14 -14
  17. package/models/operations/createidentity.js +1 -1
  18. package/models/operations/createtool.js +6 -6
  19. package/models/operations/fileget.js +1 -1
  20. package/models/operations/filelist.js +1 -1
  21. package/models/operations/fileupload.js +1 -1
  22. package/models/operations/generateconversationname.js +1 -1
  23. package/models/operations/getalltools.js +6 -6
  24. package/models/operations/getevals.js +14 -14
  25. package/models/operations/listdatasetdatapoints.js +4 -4
  26. package/models/operations/listdatasets.js +1 -1
  27. package/models/operations/listdatasources.js +1 -1
  28. package/models/operations/listidentities.js +1 -1
  29. package/models/operations/retrievedatapoint.js +4 -4
  30. package/models/operations/retrievedataset.js +1 -1
  31. package/models/operations/retrievedatasource.js +1 -1
  32. package/models/operations/retrieveidentity.js +1 -1
  33. package/models/operations/retrievetool.js +6 -6
  34. package/models/operations/runagent.js +1 -1
  35. package/models/operations/streamrunagent.js +1 -1
  36. package/models/operations/updateconversation.js +1 -1
  37. package/models/operations/updatedatapoint.js +4 -4
  38. package/models/operations/updatedataset.js +1 -1
  39. package/models/operations/updatedatasource.js +1 -1
  40. package/models/operations/updateeval.js +14 -14
  41. package/models/operations/updateidentity.js +1 -1
  42. package/models/operations/updatetool.js +7 -7
  43. package/package.json +4 -3
  44. package/src/lib/config.ts +2 -2
  45. package/src/models/components/conversationresponse.ts +1 -1
  46. package/src/models/components/conversationwithmessagesresponse.ts +1 -1
  47. package/src/models/components/partdoneevent.ts +1 -1
  48. package/src/models/components/reasoningpart.ts +1 -1
  49. package/src/models/operations/createcontact.ts +1 -1
  50. package/src/models/operations/createconversation.ts +1 -1
  51. package/src/models/operations/createconversationresponse.ts +2 -2
  52. package/src/models/operations/createdataset.ts +1 -1
  53. package/src/models/operations/createdatasetitem.ts +4 -4
  54. package/src/models/operations/createdatasource.ts +1 -1
  55. package/src/models/operations/createeval.ts +14 -14
  56. package/src/models/operations/createidentity.ts +1 -1
  57. package/src/models/operations/createtool.ts +6 -6
  58. package/src/models/operations/fileget.ts +1 -1
  59. package/src/models/operations/filelist.ts +1 -1
  60. package/src/models/operations/fileupload.ts +1 -1
  61. package/src/models/operations/generateconversationname.ts +1 -1
  62. package/src/models/operations/getalltools.ts +6 -6
  63. package/src/models/operations/getevals.ts +14 -14
  64. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  65. package/src/models/operations/listdatasets.ts +1 -1
  66. package/src/models/operations/listdatasources.ts +1 -1
  67. package/src/models/operations/listidentities.ts +1 -1
  68. package/src/models/operations/retrievedatapoint.ts +4 -4
  69. package/src/models/operations/retrievedataset.ts +1 -1
  70. package/src/models/operations/retrievedatasource.ts +1 -1
  71. package/src/models/operations/retrieveidentity.ts +1 -1
  72. package/src/models/operations/retrievetool.ts +6 -6
  73. package/src/models/operations/runagent.ts +1 -1
  74. package/src/models/operations/streamrunagent.ts +1 -1
  75. package/src/models/operations/updateconversation.ts +1 -1
  76. package/src/models/operations/updatedatapoint.ts +4 -4
  77. package/src/models/operations/updatedataset.ts +1 -1
  78. package/src/models/operations/updatedatasource.ts +1 -1
  79. package/src/models/operations/updateeval.ts +14 -14
  80. package/src/models/operations/updateidentity.ts +1 -1
  81. package/src/models/operations/updatetool.ts +7 -7
  82. package/_speakeasy/.github/action-inputs-config.json +0 -53
  83. package/_speakeasy/.github/action-security-config.json +0 -88
  84. package/packages/orq-rc/examples/feedbackCreate.example.ts +0 -32
  85. package/packages/orq-rc/examples/package-lock.json +0 -610
  86. package/packages/orq-rc/examples/package.json +0 -18
  87. package/packages/orq-rc/jsr.json +0 -28
  88. package/packages/orq-rc/package-lock.json +0 -1724
  89. package/packages/orq-rc/package.json +0 -30
  90. package/packages/orq-rc/src/core.ts +0 -13
  91. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
  92. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  93. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  94. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  95. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  96. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  97. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  98. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  99. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
  100. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  101. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  102. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -167
  103. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -178
  104. package/packages/orq-rc/src/funcs/contactsList.ts +0 -172
  105. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -177
  106. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -178
  107. package/packages/orq-rc/src/funcs/conversationsCreate.ts +0 -161
  108. package/packages/orq-rc/src/funcs/conversationsCreateConversationResponse.ts +0 -186
  109. package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
  110. package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
  111. package/packages/orq-rc/src/funcs/conversationsList.ts +0 -186
  112. package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -181
  113. package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
  114. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  115. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  116. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  117. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  118. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  119. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  120. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  121. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  122. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  123. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  124. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  125. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  126. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  127. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  128. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  129. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  130. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  131. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  132. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  133. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
  134. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  135. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  136. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  137. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  138. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  139. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  140. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  141. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -165
  142. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
  143. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
  144. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
  145. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
  146. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  147. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  148. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  149. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  150. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  151. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  152. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  153. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  154. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  155. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  156. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  157. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  158. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  159. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  160. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  161. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  162. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  163. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  164. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  165. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  166. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -176
  167. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  168. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  169. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -185
  170. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
  171. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  172. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
  173. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  174. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  175. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
  176. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
  177. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  178. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
  179. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
  180. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  181. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  182. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -173
  183. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  184. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  185. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  186. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  187. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  188. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  189. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -161
  190. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -231
  191. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -221
  192. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
  193. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
  194. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
  195. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -184
  196. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
  197. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -180
  198. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
  199. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
  200. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
  201. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
  202. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
  203. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  204. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  205. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  206. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  207. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  208. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  209. package/packages/orq-rc/src/hooks/global.ts +0 -44
  210. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  211. package/packages/orq-rc/src/hooks/index.ts +0 -6
  212. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  213. package/packages/orq-rc/src/hooks/types.ts +0 -112
  214. package/packages/orq-rc/src/index.ts +0 -9
  215. package/packages/orq-rc/src/lib/base64.ts +0 -37
  216. package/packages/orq-rc/src/lib/config.ts +0 -74
  217. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  218. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  219. package/packages/orq-rc/src/lib/env.ts +0 -89
  220. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  221. package/packages/orq-rc/src/lib/files.ts +0 -82
  222. package/packages/orq-rc/src/lib/http.ts +0 -323
  223. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  224. package/packages/orq-rc/src/lib/logger.ts +0 -9
  225. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  226. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  227. package/packages/orq-rc/src/lib/retries.ts +0 -218
  228. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  229. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  230. package/packages/orq-rc/src/lib/security.ts +0 -264
  231. package/packages/orq-rc/src/lib/url.ts +0 -33
  232. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  233. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  234. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  235. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  236. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  237. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  238. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  239. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  240. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -494
  241. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
  242. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  243. package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -132
  244. package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +0 -149
  245. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -299
  246. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  247. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  248. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  249. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  250. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  251. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  252. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  253. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  254. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  255. package/packages/orq-rc/src/models/components/index.ts +0 -59
  256. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3446
  257. package/packages/orq-rc/src/models/components/messageresponse.ts +0 -127
  258. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  259. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  260. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
  261. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -69
  262. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  263. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  264. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  265. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  266. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -318
  267. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  268. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -91
  269. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  270. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  271. package/packages/orq-rc/src/models/components/security.ts +0 -32
  272. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  273. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  274. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  275. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  276. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  277. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  278. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  279. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
  280. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
  281. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -197
  282. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  283. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  284. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  285. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  286. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  287. package/packages/orq-rc/src/models/components/usermessagerequest.ts +0 -136
  288. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  289. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  290. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  291. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  292. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  293. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  294. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -62
  295. package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -51
  296. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  297. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  298. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  299. package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -99
  300. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  301. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  302. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  303. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  304. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  305. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  306. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  307. package/packages/orq-rc/src/models/errors/index.ts +0 -40
  308. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -96
  309. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  310. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  311. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  312. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -62
  313. package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -51
  314. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
  315. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  316. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  317. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  318. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  319. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -54
  320. package/packages/orq-rc/src/models/errors/updateconversation.ts +0 -51
  321. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  322. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  323. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  324. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  325. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  326. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -7010
  327. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -609
  328. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6442
  329. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  330. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3142
  331. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -162
  332. package/packages/orq-rc/src/models/operations/createconversation.ts +0 -227
  333. package/packages/orq-rc/src/models/operations/createconversationresponse.ts +0 -498
  334. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  335. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
  336. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
  337. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -681
  338. package/packages/orq-rc/src/models/operations/createeval.ts +0 -3128
  339. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
  340. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  341. package/packages/orq-rc/src/models/operations/createimage.ts +0 -755
  342. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -776
  343. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -783
  344. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
  345. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  346. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  347. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  348. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  349. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5388
  350. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -639
  351. package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3294
  352. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -492
  353. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
  354. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -722
  355. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -702
  356. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  357. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  358. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  359. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -34
  360. package/packages/orq-rc/src/models/operations/deleteconversation.ts +0 -39
  361. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  362. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  363. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  364. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  365. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
  366. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  367. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  368. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  369. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  370. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  371. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  372. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  373. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4519
  374. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -688
  375. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1266
  376. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4606
  377. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
  378. package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
  379. package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
  380. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
  381. package/packages/orq-rc/src/models/operations/generateconversationname.ts +0 -207
  382. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  383. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  384. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  385. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3157
  386. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
  387. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
  388. package/packages/orq-rc/src/models/operations/getevals.ts +0 -2334
  389. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  390. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  391. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3082
  392. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3127
  393. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  394. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  395. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  396. package/packages/orq-rc/src/models/operations/index.ts +0 -122
  397. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -733
  398. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1096
  399. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3002
  400. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
  401. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
  402. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -274
  403. package/packages/orq-rc/src/models/operations/listconversations.ts +0 -104
  404. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  405. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  406. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
  407. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
  408. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  409. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
  410. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3202
  411. package/packages/orq-rc/src/models/operations/parse.ts +0 -777
  412. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  413. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  414. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3088
  415. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -117
  416. package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -41
  417. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  418. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  419. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  420. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
  421. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  422. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  423. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  424. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
  425. package/packages/orq-rc/src/models/operations/runagent.ts +0 -5332
  426. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  427. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -629
  428. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5527
  429. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -7362
  430. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  431. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -188
  432. package/packages/orq-rc/src/models/operations/updateconversation.ts +0 -252
  433. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  434. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  435. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  436. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -3303
  437. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
  438. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  439. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  440. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  441. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -244
  442. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5459
  443. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2696
  444. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  445. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  446. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  447. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  448. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  449. package/packages/orq-rc/src/sdk/contacts.ts +0 -109
  450. package/packages/orq-rc/src/sdk/conversations.ts +0 -147
  451. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  452. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  453. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  454. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  455. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  456. package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
  457. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  458. package/packages/orq-rc/src/sdk/files.ts +0 -78
  459. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  460. package/packages/orq-rc/src/sdk/identities.ts +0 -99
  461. package/packages/orq-rc/src/sdk/images.ts +0 -25
  462. package/packages/orq-rc/src/sdk/index.ts +0 -5
  463. package/packages/orq-rc/src/sdk/internal.ts +0 -28
  464. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  465. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  466. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  467. package/packages/orq-rc/src/sdk/models.ts +0 -25
  468. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  469. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  470. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
  471. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  472. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  473. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  474. package/packages/orq-rc/src/sdk/responses.ts +0 -34
  475. package/packages/orq-rc/src/sdk/router.ts +0 -72
  476. package/packages/orq-rc/src/sdk/sdk.ts +0 -121
  477. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  478. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  479. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  480. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  481. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  482. package/packages/orq-rc/src/types/async.ts +0 -68
  483. package/packages/orq-rc/src/types/blobs.ts +0 -32
  484. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  485. package/packages/orq-rc/src/types/enums.ts +0 -45
  486. package/packages/orq-rc/src/types/fp.ts +0 -50
  487. package/packages/orq-rc/src/types/index.ts +0 -11
  488. package/packages/orq-rc/src/types/operations.ts +0 -105
  489. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  490. package/packages/orq-rc/src/types/streams.ts +0 -21
  491. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
  492. package/packages/orq-rc/tsconfig.json +0 -40
@@ -1,4519 +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 DeploymentGetConfigContentDeployments2 =
14
- components.TextContentPartSchema;
15
-
16
- /**
17
- * The contents of the tool message.
18
- */
19
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
20
- | string
21
- | Array<components.TextContentPartSchema>;
22
-
23
- /**
24
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
25
- */
26
- export const DeploymentGetConfigPrefixMessagesType = {
27
- Ephemeral: "ephemeral",
28
- } as const;
29
- /**
30
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
31
- */
32
- export type DeploymentGetConfigPrefixMessagesType = ClosedEnum<
33
- typeof DeploymentGetConfigPrefixMessagesType
34
- >;
35
-
36
- /**
37
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
38
- *
39
- * @remarks
40
- *
41
- * - `5m`: 5 minutes
42
- * - `1h`: 1 hour
43
- *
44
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
45
- */
46
- export const PrefixMessagesTtl = {
47
- Fivem: "5m",
48
- Oneh: "1h",
49
- } as const;
50
- /**
51
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
52
- *
53
- * @remarks
54
- *
55
- * - `5m`: 5 minutes
56
- * - `1h`: 1 hour
57
- *
58
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
59
- */
60
- export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
61
-
62
- export type PrefixMessagesCacheControl = {
63
- /**
64
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
65
- */
66
- type: DeploymentGetConfigPrefixMessagesType;
67
- /**
68
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
69
- *
70
- * @remarks
71
- *
72
- * - `5m`: 5 minutes
73
- * - `1h`: 1 hour
74
- *
75
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
76
- */
77
- ttl?: PrefixMessagesTtl | undefined;
78
- };
79
-
80
- export type ToolMessage = {
81
- /**
82
- * The role of the messages author, in this case tool.
83
- */
84
- role: "tool";
85
- /**
86
- * The contents of the tool message.
87
- */
88
- content: string | Array<components.TextContentPartSchema>;
89
- /**
90
- * Tool call that this message is responding to.
91
- */
92
- toolCallId: string | null;
93
- cacheControl?: PrefixMessagesCacheControl | undefined;
94
- };
95
-
96
- export type DeploymentGetConfigContent2 =
97
- | (components.TextContentPartSchema & { type: "text" })
98
- | components.RefusalPartSchema
99
- | components.ReasoningPartSchema
100
- | components.RedactedReasoningPartSchema;
101
-
102
- /**
103
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
104
- */
105
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
106
- | string
107
- | Array<
108
- | (components.TextContentPartSchema & { type: "text" })
109
- | components.RefusalPartSchema
110
- | components.ReasoningPartSchema
111
- | components.RedactedReasoningPartSchema
112
- >;
113
-
114
- /**
115
- * Data about a previous audio response from the model.
116
- */
117
- export type Audio = {
118
- /**
119
- * Unique identifier for a previous audio response from the model.
120
- */
121
- id: string;
122
- };
123
-
124
- /**
125
- * The type of the tool. Currently, only `function` is supported.
126
- */
127
- export const PrefixMessagesType = {
128
- Function: "function",
129
- } as const;
130
- /**
131
- * The type of the tool. Currently, only `function` is supported.
132
- */
133
- export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
134
-
135
- export type PrefixMessagesFunction = {
136
- /**
137
- * The name of the function to call.
138
- */
139
- name?: string | undefined;
140
- /**
141
- * 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.
142
- */
143
- arguments?: string | undefined;
144
- };
145
-
146
- export type PrefixMessagesToolCalls = {
147
- /**
148
- * The ID of the tool call.
149
- */
150
- id: string;
151
- /**
152
- * The type of the tool. Currently, only `function` is supported.
153
- */
154
- type: PrefixMessagesType;
155
- function: PrefixMessagesFunction;
156
- /**
157
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
158
- */
159
- thoughtSignature?: string | undefined;
160
- };
161
-
162
- export type AssistantMessage = {
163
- /**
164
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
165
- */
166
- content?:
167
- | string
168
- | Array<
169
- | (components.TextContentPartSchema & { type: "text" })
170
- | components.RefusalPartSchema
171
- | components.ReasoningPartSchema
172
- | components.RedactedReasoningPartSchema
173
- >
174
- | null
175
- | undefined;
176
- /**
177
- * The refusal message by the assistant.
178
- */
179
- refusal?: string | null | undefined;
180
- /**
181
- * The role of the messages author, in this case `assistant`.
182
- */
183
- role: "assistant";
184
- /**
185
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
186
- */
187
- name?: string | undefined;
188
- /**
189
- * Data about a previous audio response from the model.
190
- */
191
- audio?: Audio | null | undefined;
192
- /**
193
- * The tool calls generated by the model, such as function calls.
194
- */
195
- toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
196
- };
197
-
198
- /**
199
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
200
- */
201
- export const DeploymentGetConfig2DeploymentsType = {
202
- Ephemeral: "ephemeral",
203
- } as const;
204
- /**
205
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
206
- */
207
- export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
208
- typeof DeploymentGetConfig2DeploymentsType
209
- >;
210
-
211
- /**
212
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
213
- *
214
- * @remarks
215
- *
216
- * - `5m`: 5 minutes
217
- * - `1h`: 1 hour
218
- *
219
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
220
- */
221
- export const Ttl = {
222
- Fivem: "5m",
223
- Oneh: "1h",
224
- } as const;
225
- /**
226
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
227
- *
228
- * @remarks
229
- *
230
- * - `5m`: 5 minutes
231
- * - `1h`: 1 hour
232
- *
233
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
234
- */
235
- export type Ttl = ClosedEnum<typeof Ttl>;
236
-
237
- export type CacheControl = {
238
- /**
239
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
240
- */
241
- type: DeploymentGetConfig2DeploymentsType;
242
- /**
243
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
244
- *
245
- * @remarks
246
- *
247
- * - `5m`: 5 minutes
248
- * - `1h`: 1 hour
249
- *
250
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
251
- */
252
- ttl?: Ttl | undefined;
253
- };
254
-
255
- export type Four = {
256
- /**
257
- * The type of the content part. Always `file`.
258
- */
259
- type: "file";
260
- cacheControl?: CacheControl | undefined;
261
- /**
262
- * File data for the content part. Must contain either file_data or uri, but not both.
263
- */
264
- file: components.FileContentPartSchema;
265
- };
266
-
267
- export type Content2 =
268
- | (components.TextContentPartSchema & { type: "text" })
269
- | components.ImageContentPartSchema
270
- | components.AudioContentPartSchema
271
- | Four;
272
-
273
- /**
274
- * The contents of the user message.
275
- */
276
- export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
277
- | string
278
- | Array<
279
- | (components.TextContentPartSchema & { type: "text" })
280
- | components.ImageContentPartSchema
281
- | components.AudioContentPartSchema
282
- | Four
283
- >;
284
-
285
- export type UserMessage = {
286
- /**
287
- * The role of the messages author, in this case `user`.
288
- */
289
- role: "user";
290
- /**
291
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
292
- */
293
- name?: string | undefined;
294
- /**
295
- * The contents of the user message.
296
- */
297
- content:
298
- | string
299
- | Array<
300
- | (components.TextContentPartSchema & { type: "text" })
301
- | components.ImageContentPartSchema
302
- | components.AudioContentPartSchema
303
- | Four
304
- >;
305
- };
306
-
307
- /**
308
- * The contents of the developer message.
309
- */
310
- export type DeploymentGetConfigPrefixMessagesContent =
311
- | string
312
- | Array<components.TextContentPartSchema>;
313
-
314
- export type DeveloperMessage = {
315
- /**
316
- * The role of the messages author, in this case `developer`.
317
- */
318
- role: "developer";
319
- /**
320
- * The contents of the developer message.
321
- */
322
- content: string | Array<components.TextContentPartSchema>;
323
- /**
324
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
325
- */
326
- name?: string | undefined;
327
- };
328
-
329
- /**
330
- * The contents of the system message.
331
- */
332
- export type PrefixMessagesContent =
333
- | string
334
- | Array<components.TextContentPartSchema>;
335
-
336
- /**
337
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
338
- */
339
- export type SystemMessage = {
340
- /**
341
- * The role of the messages author, in this case `system`.
342
- */
343
- role: "system";
344
- /**
345
- * The contents of the system message.
346
- */
347
- content: string | Array<components.TextContentPartSchema>;
348
- /**
349
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
350
- */
351
- name?: string | undefined;
352
- };
353
-
354
- export type PrefixMessages =
355
- | SystemMessage
356
- | DeveloperMessage
357
- | UserMessage
358
- | AssistantMessage
359
- | ToolMessage;
360
-
361
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
362
- components.TextContentPartSchema;
363
-
364
- /**
365
- * The contents of the tool message.
366
- */
367
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
368
- | string
369
- | Array<components.TextContentPartSchema>;
370
-
371
- /**
372
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
373
- */
374
- export const DeploymentGetConfigMessagesType = {
375
- Ephemeral: "ephemeral",
376
- } as const;
377
- /**
378
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
379
- */
380
- export type DeploymentGetConfigMessagesType = ClosedEnum<
381
- typeof DeploymentGetConfigMessagesType
382
- >;
383
-
384
- /**
385
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
386
- *
387
- * @remarks
388
- *
389
- * - `5m`: 5 minutes
390
- * - `1h`: 1 hour
391
- *
392
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
393
- */
394
- export const MessagesTtl = {
395
- Fivem: "5m",
396
- Oneh: "1h",
397
- } as const;
398
- /**
399
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
400
- *
401
- * @remarks
402
- *
403
- * - `5m`: 5 minutes
404
- * - `1h`: 1 hour
405
- *
406
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
407
- */
408
- export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
409
-
410
- export type MessagesCacheControl = {
411
- /**
412
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
413
- */
414
- type: DeploymentGetConfigMessagesType;
415
- /**
416
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
417
- *
418
- * @remarks
419
- *
420
- * - `5m`: 5 minutes
421
- * - `1h`: 1 hour
422
- *
423
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
424
- */
425
- ttl?: MessagesTtl | undefined;
426
- };
427
-
428
- export type MessagesToolMessage = {
429
- /**
430
- * The role of the messages author, in this case tool.
431
- */
432
- role: "tool";
433
- /**
434
- * The contents of the tool message.
435
- */
436
- content: string | Array<components.TextContentPartSchema>;
437
- /**
438
- * Tool call that this message is responding to.
439
- */
440
- toolCallId: string | null;
441
- cacheControl?: MessagesCacheControl | undefined;
442
- };
443
-
444
- export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
445
- | (components.TextContentPartSchema & { type: "text" })
446
- | components.RefusalPartSchema
447
- | components.ReasoningPartSchema
448
- | components.RedactedReasoningPartSchema;
449
-
450
- /**
451
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
452
- */
453
- export type DeploymentGetConfigMessagesDeploymentsRequestContent =
454
- | string
455
- | Array<
456
- | (components.TextContentPartSchema & { type: "text" })
457
- | components.RefusalPartSchema
458
- | components.ReasoningPartSchema
459
- | components.RedactedReasoningPartSchema
460
- >;
461
-
462
- /**
463
- * Data about a previous audio response from the model.
464
- */
465
- export type MessagesAudio = {
466
- /**
467
- * Unique identifier for a previous audio response from the model.
468
- */
469
- id: string;
470
- };
471
-
472
- /**
473
- * The type of the tool. Currently, only `function` is supported.
474
- */
475
- export const MessagesType = {
476
- Function: "function",
477
- } as const;
478
- /**
479
- * The type of the tool. Currently, only `function` is supported.
480
- */
481
- export type MessagesType = ClosedEnum<typeof MessagesType>;
482
-
483
- export type MessagesFunction = {
484
- /**
485
- * The name of the function to call.
486
- */
487
- name?: string | undefined;
488
- /**
489
- * 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.
490
- */
491
- arguments?: string | undefined;
492
- };
493
-
494
- export type MessagesToolCalls = {
495
- /**
496
- * The ID of the tool call.
497
- */
498
- id: string;
499
- /**
500
- * The type of the tool. Currently, only `function` is supported.
501
- */
502
- type: MessagesType;
503
- function: MessagesFunction;
504
- /**
505
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
506
- */
507
- thoughtSignature?: string | undefined;
508
- };
509
-
510
- export type MessagesAssistantMessage = {
511
- /**
512
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
513
- */
514
- content?:
515
- | string
516
- | Array<
517
- | (components.TextContentPartSchema & { type: "text" })
518
- | components.RefusalPartSchema
519
- | components.ReasoningPartSchema
520
- | components.RedactedReasoningPartSchema
521
- >
522
- | null
523
- | undefined;
524
- /**
525
- * The refusal message by the assistant.
526
- */
527
- refusal?: string | null | undefined;
528
- /**
529
- * The role of the messages author, in this case `assistant`.
530
- */
531
- role: "assistant";
532
- /**
533
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
534
- */
535
- name?: string | undefined;
536
- /**
537
- * Data about a previous audio response from the model.
538
- */
539
- audio?: MessagesAudio | null | undefined;
540
- /**
541
- * The tool calls generated by the model, such as function calls.
542
- */
543
- toolCalls?: Array<MessagesToolCalls> | undefined;
544
- };
545
-
546
- /**
547
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
548
- */
549
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
550
- Ephemeral: "ephemeral",
551
- } as const;
552
- /**
553
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
554
- */
555
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
556
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
557
- >;
558
-
559
- /**
560
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
561
- *
562
- * @remarks
563
- *
564
- * - `5m`: 5 minutes
565
- * - `1h`: 1 hour
566
- *
567
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
568
- */
569
- export const TwoTtl = {
570
- Fivem: "5m",
571
- Oneh: "1h",
572
- } as const;
573
- /**
574
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
575
- *
576
- * @remarks
577
- *
578
- * - `5m`: 5 minutes
579
- * - `1h`: 1 hour
580
- *
581
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
582
- */
583
- export type TwoTtl = ClosedEnum<typeof TwoTtl>;
584
-
585
- export type TwoCacheControl = {
586
- /**
587
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
588
- */
589
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
590
- /**
591
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
592
- *
593
- * @remarks
594
- *
595
- * - `5m`: 5 minutes
596
- * - `1h`: 1 hour
597
- *
598
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
599
- */
600
- ttl?: TwoTtl | undefined;
601
- };
602
-
603
- export type Two4 = {
604
- /**
605
- * The type of the content part. Always `file`.
606
- */
607
- type: "file";
608
- cacheControl?: TwoCacheControl | undefined;
609
- /**
610
- * File data for the content part. Must contain either file_data or uri, but not both.
611
- */
612
- file: components.FileContentPartSchema;
613
- };
614
-
615
- export type DeploymentGetConfigContentDeploymentsRequest2 =
616
- | (components.TextContentPartSchema & { type: "text" })
617
- | components.ImageContentPartSchema
618
- | components.AudioContentPartSchema
619
- | Two4;
620
-
621
- /**
622
- * The contents of the user message.
623
- */
624
- export type DeploymentGetConfigMessagesDeploymentsContent =
625
- | string
626
- | Array<
627
- | (components.TextContentPartSchema & { type: "text" })
628
- | components.ImageContentPartSchema
629
- | components.AudioContentPartSchema
630
- | Two4
631
- >;
632
-
633
- export type MessagesUserMessage = {
634
- /**
635
- * The role of the messages author, in this case `user`.
636
- */
637
- role: "user";
638
- /**
639
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
640
- */
641
- name?: string | undefined;
642
- /**
643
- * The contents of the user message.
644
- */
645
- content:
646
- | string
647
- | Array<
648
- | (components.TextContentPartSchema & { type: "text" })
649
- | components.ImageContentPartSchema
650
- | components.AudioContentPartSchema
651
- | Two4
652
- >;
653
- };
654
-
655
- /**
656
- * The contents of the developer message.
657
- */
658
- export type DeploymentGetConfigMessagesContent =
659
- | string
660
- | Array<components.TextContentPartSchema>;
661
-
662
- export type MessagesDeveloperMessage = {
663
- /**
664
- * The role of the messages author, in this case `developer`.
665
- */
666
- role: "developer";
667
- /**
668
- * The contents of the developer message.
669
- */
670
- content: string | Array<components.TextContentPartSchema>;
671
- /**
672
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
673
- */
674
- name?: string | undefined;
675
- };
676
-
677
- /**
678
- * The contents of the system message.
679
- */
680
- export type MessagesContent = string | Array<components.TextContentPartSchema>;
681
-
682
- /**
683
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
684
- */
685
- export type MessagesSystemMessage = {
686
- /**
687
- * The role of the messages author, in this case `system`.
688
- */
689
- role: "system";
690
- /**
691
- * The contents of the system message.
692
- */
693
- content: string | Array<components.TextContentPartSchema>;
694
- /**
695
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
696
- */
697
- name?: string | undefined;
698
- };
699
-
700
- export type DeploymentGetConfigMessages =
701
- | MessagesSystemMessage
702
- | MessagesDeveloperMessage
703
- | MessagesUserMessage
704
- | MessagesAssistantMessage
705
- | MessagesToolMessage;
706
-
707
- /**
708
- * Metadata about the document
709
- */
710
- export type Metadata = {
711
- /**
712
- * Name of the file the text is from.
713
- */
714
- fileName?: string | undefined;
715
- /**
716
- * Content type of the file the text is from.
717
- */
718
- fileType?: string | undefined;
719
- /**
720
- * The page number the text is from.
721
- */
722
- pageNumber?: number | undefined;
723
- };
724
-
725
- export type Documents = {
726
- /**
727
- * The text content of the document
728
- */
729
- text: string;
730
- /**
731
- * Metadata about the document
732
- */
733
- metadata?: Metadata | undefined;
734
- };
735
-
736
- export type InvokeOptions = {
737
- /**
738
- * Whether to include the retrieved knowledge chunks in the response.
739
- */
740
- includeRetrievals?: boolean | undefined;
741
- /**
742
- * Whether to include the usage metrics in the response.
743
- */
744
- includeUsage?: boolean | undefined;
745
- /**
746
- * A mock response to use instead of calling the LLM API. This is useful for testing purposes. When provided, the system will return a response object with this content as the completion, without making an actual API call to the LLM provider. This works for both streaming and non-streaming requests. Mock responses will not generate logs, traces or be counted for your plan usage.
747
- */
748
- mockResponse?: string | undefined;
749
- };
750
-
751
- export type Thread = {
752
- /**
753
- * Unique thread identifier to group related invocations.
754
- */
755
- id: string;
756
- /**
757
- * Optional tags to differentiate or categorize threads
758
- */
759
- tags?: Array<string> | undefined;
760
- };
761
-
762
- /**
763
- * Exists
764
- */
765
- export type OrExists = {
766
- exists: boolean;
767
- };
768
-
769
- export type DeploymentGetConfigOrNin = string | number | boolean;
770
-
771
- /**
772
- * Not in
773
- */
774
- export type OrNin = {
775
- nin: Array<string | number | boolean>;
776
- };
777
-
778
- export type DeploymentGetConfigOrIn = string | number | boolean;
779
-
780
- /**
781
- * In
782
- */
783
- export type OrIn = {
784
- in: Array<string | number | boolean>;
785
- };
786
-
787
- /**
788
- * Less than or equal to
789
- */
790
- export type OrLte = {
791
- lte: number;
792
- };
793
-
794
- /**
795
- * Less than
796
- */
797
- export type OrLt = {
798
- lt: number;
799
- };
800
-
801
- /**
802
- * Greater than or equal to
803
- */
804
- export type OrGte = {
805
- gte: number;
806
- };
807
-
808
- /**
809
- * Greater than
810
- */
811
- export type OrGt = {
812
- gt: number;
813
- };
814
-
815
- export type DeploymentGetConfigOrNe = string | number | boolean;
816
-
817
- /**
818
- * Not equal to
819
- */
820
- export type OrNe = {
821
- ne: string | number | boolean;
822
- };
823
-
824
- export type DeploymentGetConfigOrEq = string | number | boolean;
825
-
826
- /**
827
- * Equal to
828
- */
829
- export type OrEq = {
830
- eq: string | number | boolean;
831
- };
832
-
833
- export type KnowledgeFilterOr =
834
- | OrEq
835
- | OrNe
836
- | OrGt
837
- | OrGte
838
- | OrLt
839
- | OrLte
840
- | OrIn
841
- | OrNin
842
- | OrExists;
843
-
844
- /**
845
- * Or
846
- */
847
- export type Or = {
848
- or: Array<
849
- {
850
- [k: string]:
851
- | OrEq
852
- | OrNe
853
- | OrGt
854
- | OrGte
855
- | OrLt
856
- | OrLte
857
- | OrIn
858
- | OrNin
859
- | OrExists;
860
- }
861
- >;
862
- };
863
-
864
- /**
865
- * Exists
866
- */
867
- export type AndExists = {
868
- exists: boolean;
869
- };
870
-
871
- export type DeploymentGetConfigAndNin = string | number | boolean;
872
-
873
- /**
874
- * Not in
875
- */
876
- export type AndNin = {
877
- nin: Array<string | number | boolean>;
878
- };
879
-
880
- export type DeploymentGetConfigAndIn = string | number | boolean;
881
-
882
- /**
883
- * In
884
- */
885
- export type AndIn = {
886
- in: Array<string | number | boolean>;
887
- };
888
-
889
- /**
890
- * Less than or equal to
891
- */
892
- export type AndLte = {
893
- lte: number;
894
- };
895
-
896
- /**
897
- * Less than
898
- */
899
- export type AndLt = {
900
- lt: number;
901
- };
902
-
903
- /**
904
- * Greater than or equal to
905
- */
906
- export type AndGte = {
907
- gte: number;
908
- };
909
-
910
- /**
911
- * Greater than
912
- */
913
- export type AndGt = {
914
- gt: number;
915
- };
916
-
917
- export type DeploymentGetConfigAndNe = string | number | boolean;
918
-
919
- /**
920
- * Not equal to
921
- */
922
- export type AndNe = {
923
- ne: string | number | boolean;
924
- };
925
-
926
- export type DeploymentGetConfigAndEq = string | number | boolean;
927
-
928
- /**
929
- * Equal to
930
- */
931
- export type AndEq = {
932
- eq: string | number | boolean;
933
- };
934
-
935
- export type KnowledgeFilterAnd =
936
- | AndEq
937
- | AndNe
938
- | AndGt
939
- | AndGte
940
- | AndLt
941
- | AndLte
942
- | AndIn
943
- | AndNin
944
- | AndExists;
945
-
946
- /**
947
- * And
948
- */
949
- export type And = {
950
- and: Array<
951
- {
952
- [k: string]:
953
- | AndEq
954
- | AndNe
955
- | AndGt
956
- | AndGte
957
- | AndLt
958
- | AndLte
959
- | AndIn
960
- | AndNin
961
- | AndExists;
962
- }
963
- >;
964
- };
965
-
966
- /**
967
- * Exists
968
- */
969
- export type Exists = {
970
- exists: boolean;
971
- };
972
-
973
- export type OneNin = string | number | boolean;
974
-
975
- /**
976
- * Not in
977
- */
978
- export type Nin = {
979
- nin: Array<string | number | boolean>;
980
- };
981
-
982
- export type OneIn = string | number | boolean;
983
-
984
- /**
985
- * In
986
- */
987
- export type In = {
988
- in: Array<string | number | boolean>;
989
- };
990
-
991
- /**
992
- * Less than or equal to
993
- */
994
- export type Lte = {
995
- lte: number;
996
- };
997
-
998
- /**
999
- * Less than
1000
- */
1001
- export type Lt = {
1002
- lt: number;
1003
- };
1004
-
1005
- /**
1006
- * Greater than or equal to
1007
- */
1008
- export type Gte = {
1009
- gte: number;
1010
- };
1011
-
1012
- /**
1013
- * Greater than
1014
- */
1015
- export type Gt = {
1016
- gt: number;
1017
- };
1018
-
1019
- export type OneNe = string | number | boolean;
1020
-
1021
- /**
1022
- * Not equal to
1023
- */
1024
- export type Ne = {
1025
- ne: string | number | boolean;
1026
- };
1027
-
1028
- export type OneEq = string | number | boolean;
1029
-
1030
- /**
1031
- * Equal to
1032
- */
1033
- export type Eq = {
1034
- eq: string | number | boolean;
1035
- };
1036
-
1037
- export type KnowledgeFilter1 =
1038
- | Eq
1039
- | Ne
1040
- | Gt
1041
- | Gte
1042
- | Lt
1043
- | Lte
1044
- | In
1045
- | Nin
1046
- | Exists;
1047
-
1048
- /**
1049
- * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1050
- */
1051
- export type KnowledgeFilter = And | Or | {
1052
- [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1053
- };
1054
-
1055
- export type DeploymentGetConfigRequestBody = {
1056
- /**
1057
- * The deployment key to invoke
1058
- */
1059
- key: string;
1060
- /**
1061
- * Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
1062
- */
1063
- inputs?: { [k: string]: any } | undefined;
1064
- /**
1065
- * Key-value pairs that match your data model and fields declared in your deployment routing configuration
1066
- */
1067
- context?: { [k: string]: any } | undefined;
1068
- /**
1069
- * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
1070
- */
1071
- prefixMessages?:
1072
- | Array<
1073
- | SystemMessage
1074
- | DeveloperMessage
1075
- | UserMessage
1076
- | AssistantMessage
1077
- | ToolMessage
1078
- >
1079
- | undefined;
1080
- /**
1081
- * A list of messages to send to the deployment.
1082
- */
1083
- messages?:
1084
- | Array<
1085
- | MessagesSystemMessage
1086
- | MessagesDeveloperMessage
1087
- | MessagesUserMessage
1088
- | MessagesAssistantMessage
1089
- | MessagesToolMessage
1090
- >
1091
- | undefined;
1092
- /**
1093
- * A list of file IDs that are associated with the deployment request.
1094
- */
1095
- fileIds?: Array<string> | undefined;
1096
- /**
1097
- * Key-value pairs that you want to attach to the log generated by this request.
1098
- */
1099
- metadata?: { [k: string]: any } | undefined;
1100
- /**
1101
- * Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
1102
- */
1103
- extraParams?: { [k: string]: any } | undefined;
1104
- /**
1105
- * A list of documents from your external knowledge base (e.g., chunks retrieved from your own vector database or RAG pipeline) that provide context for the model response. These documents can be used by evaluators and guardrails to assess the relevance and accuracy of the model output against the provided context.
1106
- */
1107
- documents?: Array<Documents> | undefined;
1108
- invokeOptions?: InvokeOptions | undefined;
1109
- thread?: Thread | undefined;
1110
- /**
1111
- * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1112
- */
1113
- knowledgeFilter?: And | Or | {
1114
- [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1115
- } | undefined;
1116
- };
1117
-
1118
- /**
1119
- * The type of the model. Current `chat`,`completion` and `image` are supported
1120
- */
1121
- export const DeploymentGetConfigType = {
1122
- Chat: "chat",
1123
- Completion: "completion",
1124
- Embedding: "embedding",
1125
- Image: "image",
1126
- Tts: "tts",
1127
- Stt: "stt",
1128
- Rerank: "rerank",
1129
- Ocr: "ocr",
1130
- Moderation: "moderation",
1131
- Vision: "vision",
1132
- } as const;
1133
- /**
1134
- * The type of the model. Current `chat`,`completion` and `image` are supported
1135
- */
1136
- export type DeploymentGetConfigType = ClosedEnum<
1137
- typeof DeploymentGetConfigType
1138
- >;
1139
-
1140
- /**
1141
- * The role of the prompt message
1142
- */
1143
- export const DeploymentGetConfigRole = {
1144
- System: "system",
1145
- Assistant: "assistant",
1146
- User: "user",
1147
- Exception: "exception",
1148
- Tool: "tool",
1149
- Prompt: "prompt",
1150
- Correction: "correction",
1151
- ExpectedOutput: "expected_output",
1152
- } as const;
1153
- /**
1154
- * The role of the prompt message
1155
- */
1156
- export type DeploymentGetConfigRole = ClosedEnum<
1157
- typeof DeploymentGetConfigRole
1158
- >;
1159
-
1160
- export type TwoFile = {
1161
- /**
1162
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
1163
- */
1164
- fileData?: string | undefined;
1165
- /**
1166
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
1167
- */
1168
- uri?: string | undefined;
1169
- /**
1170
- * MIME type of the file (e.g., application/pdf, image/png)
1171
- */
1172
- mimeType?: string | undefined;
1173
- /**
1174
- * The name of the file, used when passing the file to the model as a string.
1175
- */
1176
- filename?: string | undefined;
1177
- };
1178
-
1179
- export type DeploymentGetConfig23 = {
1180
- /**
1181
- * The type of the content part. Always `file`.
1182
- */
1183
- type: "file";
1184
- file: TwoFile;
1185
- };
1186
-
1187
- export type TwoImageUrl = {
1188
- /**
1189
- * The orq.ai id of the image
1190
- */
1191
- id?: string | undefined;
1192
- /**
1193
- * Either a URL of the image or the base64 encoded data URI.
1194
- */
1195
- url: string;
1196
- /**
1197
- * Specifies the detail level of the image. Currently only supported with OpenAI models
1198
- */
1199
- detail?: string | undefined;
1200
- };
1201
-
1202
- /**
1203
- * The image part of the prompt message. Only supported with vision models.
1204
- */
1205
- export type DeploymentGetConfig22 = {
1206
- type: "image_url";
1207
- imageUrl: TwoImageUrl;
1208
- };
1209
-
1210
- /**
1211
- * Text content part of a prompt message
1212
- */
1213
- export type DeploymentGetConfig21 = {
1214
- type: "text";
1215
- text: string;
1216
- };
1217
-
1218
- export type DeploymentGetConfigContentDeploymentsResponse2 =
1219
- | DeploymentGetConfig21
1220
- | DeploymentGetConfig22
1221
- | DeploymentGetConfig23;
1222
-
1223
- /**
1224
- * 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.
1225
- */
1226
- export type DeploymentGetConfigContent =
1227
- | string
1228
- | Array<
1229
- DeploymentGetConfig21 | DeploymentGetConfig22 | DeploymentGetConfig23
1230
- >;
1231
-
1232
- export const DeploymentGetConfigDeploymentsResponseType = {
1233
- Function: "function",
1234
- } as const;
1235
- export type DeploymentGetConfigDeploymentsResponseType = ClosedEnum<
1236
- typeof DeploymentGetConfigDeploymentsResponseType
1237
- >;
1238
-
1239
- export type DeploymentGetConfigDeploymentsFunction = {
1240
- name: string;
1241
- /**
1242
- * JSON string arguments for the functions
1243
- */
1244
- arguments: string;
1245
- };
1246
-
1247
- export type DeploymentGetConfigToolCalls = {
1248
- id?: string | undefined;
1249
- index?: number | undefined;
1250
- type: DeploymentGetConfigDeploymentsResponseType;
1251
- function: DeploymentGetConfigDeploymentsFunction;
1252
- };
1253
-
1254
- export type DeploymentGetConfigDeploymentsMessages = {
1255
- /**
1256
- * The role of the prompt message
1257
- */
1258
- role: DeploymentGetConfigRole;
1259
- /**
1260
- * 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.
1261
- */
1262
- content:
1263
- | string
1264
- | Array<
1265
- DeploymentGetConfig21 | DeploymentGetConfig22 | DeploymentGetConfig23
1266
- >
1267
- | null;
1268
- toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
1269
- toolCallId?: string | null | undefined;
1270
- };
1271
-
1272
- /**
1273
- * Only supported on `image` models.
1274
- */
1275
- export const DeploymentGetConfigFormat = {
1276
- Url: "url",
1277
- B64Json: "b64_json",
1278
- Text: "text",
1279
- JsonObject: "json_object",
1280
- } as const;
1281
- /**
1282
- * Only supported on `image` models.
1283
- */
1284
- export type DeploymentGetConfigFormat = ClosedEnum<
1285
- typeof DeploymentGetConfigFormat
1286
- >;
1287
-
1288
- export const ResponseFormat6 = {
1289
- Json: "json",
1290
- Text: "text",
1291
- Srt: "srt",
1292
- VerboseJson: "verbose_json",
1293
- Vtt: "vtt",
1294
- } as const;
1295
- export type ResponseFormat6 = ClosedEnum<typeof ResponseFormat6>;
1296
-
1297
- export const ResponseFormat5 = {
1298
- Url: "url",
1299
- Base64Json: "base64_json",
1300
- } as const;
1301
- export type ResponseFormat5 = ClosedEnum<typeof ResponseFormat5>;
1302
-
1303
- export const ResponseFormat4 = {
1304
- Mp3: "mp3",
1305
- Opus: "opus",
1306
- Aac: "aac",
1307
- Flac: "flac",
1308
- Wav: "wav",
1309
- Pcm: "pcm",
1310
- } as const;
1311
- export type ResponseFormat4 = ClosedEnum<typeof ResponseFormat4>;
1312
-
1313
- export const DeploymentGetConfigResponseFormatDeploymentsType = {
1314
- Text: "text",
1315
- } as const;
1316
- export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<
1317
- typeof DeploymentGetConfigResponseFormatDeploymentsType
1318
- >;
1319
-
1320
- export type ResponseFormat3 = {
1321
- type: DeploymentGetConfigResponseFormatDeploymentsType;
1322
- };
1323
-
1324
- export const DeploymentGetConfigResponseFormatType = {
1325
- JsonObject: "json_object",
1326
- } as const;
1327
- export type DeploymentGetConfigResponseFormatType = ClosedEnum<
1328
- typeof DeploymentGetConfigResponseFormatType
1329
- >;
1330
-
1331
- export type ResponseFormat2 = {
1332
- type: DeploymentGetConfigResponseFormatType;
1333
- };
1334
-
1335
- export const DeploymentGetConfigResponseFormatDeploymentsResponseType = {
1336
- JsonSchema: "json_schema",
1337
- } as const;
1338
- export type DeploymentGetConfigResponseFormatDeploymentsResponseType =
1339
- ClosedEnum<typeof DeploymentGetConfigResponseFormatDeploymentsResponseType>;
1340
-
1341
- export type DeploymentGetConfigResponseFormatJsonSchema = {
1342
- name: string;
1343
- description?: string | undefined;
1344
- strict?: boolean | undefined;
1345
- schema: { [k: string]: any };
1346
- };
1347
-
1348
- export type ResponseFormat1 = {
1349
- type: DeploymentGetConfigResponseFormatDeploymentsResponseType;
1350
- displayName?: string | undefined;
1351
- jsonSchema: DeploymentGetConfigResponseFormatJsonSchema;
1352
- };
1353
-
1354
- /**
1355
- * An object specifying the format that the model must output.
1356
- *
1357
- * @remarks
1358
- *
1359
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
1360
- *
1361
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
1362
- *
1363
- * 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.
1364
- */
1365
- export type DeploymentGetConfigResponseFormat =
1366
- | ResponseFormat1
1367
- | ResponseFormat2
1368
- | ResponseFormat3
1369
- | ResponseFormat4
1370
- | ResponseFormat5
1371
- | ResponseFormat6;
1372
-
1373
- /**
1374
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1375
- */
1376
- export const PhotoRealVersion = {
1377
- V1: "v1",
1378
- V2: "v2",
1379
- } as const;
1380
- /**
1381
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1382
- */
1383
- export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
1384
-
1385
- /**
1386
- * The format to return the embeddings
1387
- */
1388
- export const DeploymentGetConfigEncodingFormat = {
1389
- Float: "float",
1390
- Base64: "base64",
1391
- } as const;
1392
- /**
1393
- * The format to return the embeddings
1394
- */
1395
- export type DeploymentGetConfigEncodingFormat = ClosedEnum<
1396
- typeof DeploymentGetConfigEncodingFormat
1397
- >;
1398
-
1399
- /**
1400
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1401
- */
1402
- export const DeploymentGetConfigReasoningEffort = {
1403
- None: "none",
1404
- Disable: "disable",
1405
- Minimal: "minimal",
1406
- Low: "low",
1407
- Medium: "medium",
1408
- High: "high",
1409
- } as const;
1410
- /**
1411
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1412
- */
1413
- export type DeploymentGetConfigReasoningEffort = ClosedEnum<
1414
- typeof DeploymentGetConfigReasoningEffort
1415
- >;
1416
-
1417
- /**
1418
- * Controls the verbosity of the model output.
1419
- */
1420
- export const Verbosity = {
1421
- Low: "low",
1422
- Medium: "medium",
1423
- High: "high",
1424
- } as const;
1425
- /**
1426
- * Controls the verbosity of the model output.
1427
- */
1428
- export type Verbosity = ClosedEnum<typeof Verbosity>;
1429
-
1430
- /**
1431
- * The level of thinking to use for the model. Only supported by `Google AI`
1432
- */
1433
- export const ThinkingLevel = {
1434
- Low: "low",
1435
- High: "high",
1436
- } as const;
1437
- /**
1438
- * The level of thinking to use for the model. Only supported by `Google AI`
1439
- */
1440
- export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
1441
-
1442
- /**
1443
- * Model Parameters: Not all parameters apply to every model
1444
- */
1445
- export type DeploymentGetConfigParameters = {
1446
- /**
1447
- * Only supported on `chat` and `completion` models.
1448
- */
1449
- temperature?: number | undefined;
1450
- /**
1451
- * Only supported on `chat` and `completion` models.
1452
- */
1453
- maxTokens?: number | undefined;
1454
- /**
1455
- * Only supported on `chat` and `completion` models.
1456
- */
1457
- topK?: number | undefined;
1458
- /**
1459
- * Only supported on `chat` and `completion` models.
1460
- */
1461
- topP?: number | undefined;
1462
- /**
1463
- * Only supported on `chat` and `completion` models.
1464
- */
1465
- frequencyPenalty?: number | undefined;
1466
- /**
1467
- * Only supported on `chat` and `completion` models.
1468
- */
1469
- presencePenalty?: number | undefined;
1470
- /**
1471
- * Only supported on `image` models.
1472
- */
1473
- numImages?: number | undefined;
1474
- /**
1475
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
1476
- */
1477
- seed?: number | undefined;
1478
- /**
1479
- * Only supported on `image` models.
1480
- */
1481
- format?: DeploymentGetConfigFormat | undefined;
1482
- /**
1483
- * Only supported on `image` models.
1484
- */
1485
- dimensions?: string | undefined;
1486
- /**
1487
- * Only supported on `image` models.
1488
- */
1489
- quality?: string | undefined;
1490
- /**
1491
- * Only supported on `image` models.
1492
- */
1493
- style?: string | undefined;
1494
- /**
1495
- * An object specifying the format that the model must output.
1496
- *
1497
- * @remarks
1498
- *
1499
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
1500
- *
1501
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
1502
- *
1503
- * 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.
1504
- */
1505
- responseFormat?:
1506
- | ResponseFormat1
1507
- | ResponseFormat2
1508
- | ResponseFormat3
1509
- | ResponseFormat4
1510
- | ResponseFormat5
1511
- | ResponseFormat6
1512
- | null
1513
- | undefined;
1514
- /**
1515
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1516
- */
1517
- photoRealVersion?: PhotoRealVersion | undefined;
1518
- /**
1519
- * The format to return the embeddings
1520
- */
1521
- encodingFormat?: DeploymentGetConfigEncodingFormat | undefined;
1522
- /**
1523
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1524
- */
1525
- reasoningEffort?: DeploymentGetConfigReasoningEffort | undefined;
1526
- /**
1527
- * 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`
1528
- */
1529
- budgetTokens?: number | undefined;
1530
- /**
1531
- * Controls the verbosity of the model output.
1532
- */
1533
- verbosity?: Verbosity | undefined;
1534
- /**
1535
- * The level of thinking to use for the model. Only supported by `Google AI`
1536
- */
1537
- thinkingLevel?: ThinkingLevel | undefined;
1538
- };
1539
-
1540
- /**
1541
- * The type of the tool. Currently, only `function` is supported.
1542
- */
1543
- export const DeploymentGetConfigDeploymentsType = {
1544
- Function: "function",
1545
- } as const;
1546
- /**
1547
- * The type of the tool. Currently, only `function` is supported.
1548
- */
1549
- export type DeploymentGetConfigDeploymentsType = ClosedEnum<
1550
- typeof DeploymentGetConfigDeploymentsType
1551
- >;
1552
-
1553
- export type DeploymentGetConfigFunction = {
1554
- /**
1555
- * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1556
- */
1557
- name: string;
1558
- /**
1559
- * A description of what the function does, used by the model to choose when and how to call the function.
1560
- */
1561
- description?: string | undefined;
1562
- /**
1563
- * The parameters the functions accepts, described as a JSON Schema object.
1564
- *
1565
- * @remarks
1566
- *
1567
- * Omitting `parameters` defines a function with an empty parameter list.
1568
- */
1569
- parameters?: { [k: string]: any } | undefined;
1570
- };
1571
-
1572
- export type DeploymentGetConfigTools = {
1573
- /**
1574
- * The type of the tool. Currently, only `function` is supported.
1575
- */
1576
- type: DeploymentGetConfigDeploymentsType;
1577
- function: DeploymentGetConfigFunction;
1578
- };
1579
-
1580
- /**
1581
- * The deployment configuration
1582
- */
1583
- export type DeploymentGetConfigResponseBody = {
1584
- /**
1585
- * A unique identifier for the response. Can be used to add metrics to the transaction.
1586
- */
1587
- id: string;
1588
- /**
1589
- * The provider of the model
1590
- */
1591
- provider: string;
1592
- /**
1593
- * The model of the configuration
1594
- */
1595
- model: string;
1596
- /**
1597
- * The type of the model. Current `chat`,`completion` and `image` are supported
1598
- */
1599
- type?: DeploymentGetConfigType | undefined;
1600
- /**
1601
- * The current version of the deployment
1602
- */
1603
- version: string;
1604
- messages: Array<DeploymentGetConfigDeploymentsMessages>;
1605
- /**
1606
- * Model Parameters: Not all parameters apply to every model
1607
- */
1608
- parameters: DeploymentGetConfigParameters;
1609
- /**
1610
- * A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
1611
- */
1612
- tools?: Array<DeploymentGetConfigTools> | undefined;
1613
- };
1614
-
1615
- /** @internal */
1616
- export type DeploymentGetConfigContentDeployments2$Outbound =
1617
- components.TextContentPartSchema$Outbound;
1618
-
1619
- /** @internal */
1620
- export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
1621
- DeploymentGetConfigContentDeployments2$Outbound,
1622
- z.ZodTypeDef,
1623
- DeploymentGetConfigContentDeployments2
1624
- > = components.TextContentPartSchema$outboundSchema;
1625
-
1626
- export function deploymentGetConfigContentDeployments2ToJSON(
1627
- deploymentGetConfigContentDeployments2:
1628
- DeploymentGetConfigContentDeployments2,
1629
- ): string {
1630
- return JSON.stringify(
1631
- DeploymentGetConfigContentDeployments2$outboundSchema.parse(
1632
- deploymentGetConfigContentDeployments2,
1633
- ),
1634
- );
1635
- }
1636
-
1637
- /** @internal */
1638
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
1639
- | string
1640
- | Array<components.TextContentPartSchema$Outbound>;
1641
-
1642
- /** @internal */
1643
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
1644
- z.ZodType<
1645
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
1646
- z.ZodTypeDef,
1647
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
1648
- > = z.union([
1649
- z.string(),
1650
- z.array(components.TextContentPartSchema$outboundSchema),
1651
- ]);
1652
-
1653
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
1654
- deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
1655
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1656
- ): string {
1657
- return JSON.stringify(
1658
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
1659
- .parse(
1660
- deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1661
- ),
1662
- );
1663
- }
1664
-
1665
- /** @internal */
1666
- export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
1667
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
1668
- DeploymentGetConfigPrefixMessagesType,
1669
- );
1670
-
1671
- /** @internal */
1672
- export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
1673
- typeof PrefixMessagesTtl
1674
- > = z.nativeEnum(PrefixMessagesTtl);
1675
-
1676
- /** @internal */
1677
- export type PrefixMessagesCacheControl$Outbound = {
1678
- type: string;
1679
- ttl: string;
1680
- };
1681
-
1682
- /** @internal */
1683
- export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
1684
- PrefixMessagesCacheControl$Outbound,
1685
- z.ZodTypeDef,
1686
- PrefixMessagesCacheControl
1687
- > = z.object({
1688
- type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
1689
- ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
1690
- });
1691
-
1692
- export function prefixMessagesCacheControlToJSON(
1693
- prefixMessagesCacheControl: PrefixMessagesCacheControl,
1694
- ): string {
1695
- return JSON.stringify(
1696
- PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
1697
- );
1698
- }
1699
-
1700
- /** @internal */
1701
- export type ToolMessage$Outbound = {
1702
- role: "tool";
1703
- content: string | Array<components.TextContentPartSchema$Outbound>;
1704
- tool_call_id: string | null;
1705
- cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
1706
- };
1707
-
1708
- /** @internal */
1709
- export const ToolMessage$outboundSchema: z.ZodType<
1710
- ToolMessage$Outbound,
1711
- z.ZodTypeDef,
1712
- ToolMessage
1713
- > = z.object({
1714
- role: z.literal("tool"),
1715
- content: z.union([
1716
- z.string(),
1717
- z.array(components.TextContentPartSchema$outboundSchema),
1718
- ]),
1719
- toolCallId: z.nullable(z.string()),
1720
- cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
1721
- .optional(),
1722
- }).transform((v) => {
1723
- return remap$(v, {
1724
- toolCallId: "tool_call_id",
1725
- cacheControl: "cache_control",
1726
- });
1727
- });
1728
-
1729
- export function toolMessageToJSON(toolMessage: ToolMessage): string {
1730
- return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
1731
- }
1732
-
1733
- /** @internal */
1734
- export type DeploymentGetConfigContent2$Outbound =
1735
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1736
- | components.RefusalPartSchema$Outbound
1737
- | components.ReasoningPartSchema$Outbound
1738
- | components.RedactedReasoningPartSchema$Outbound;
1739
-
1740
- /** @internal */
1741
- export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
1742
- DeploymentGetConfigContent2$Outbound,
1743
- z.ZodTypeDef,
1744
- DeploymentGetConfigContent2
1745
- > = z.union([
1746
- components.TextContentPartSchema$outboundSchema.and(
1747
- z.object({ type: z.literal("text") }),
1748
- ),
1749
- components.RefusalPartSchema$outboundSchema,
1750
- components.ReasoningPartSchema$outboundSchema,
1751
- components.RedactedReasoningPartSchema$outboundSchema,
1752
- ]);
1753
-
1754
- export function deploymentGetConfigContent2ToJSON(
1755
- deploymentGetConfigContent2: DeploymentGetConfigContent2,
1756
- ): string {
1757
- return JSON.stringify(
1758
- DeploymentGetConfigContent2$outboundSchema.parse(
1759
- deploymentGetConfigContent2,
1760
- ),
1761
- );
1762
- }
1763
-
1764
- /** @internal */
1765
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
1766
- | string
1767
- | Array<
1768
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1769
- | components.RefusalPartSchema$Outbound
1770
- | components.ReasoningPartSchema$Outbound
1771
- | components.RedactedReasoningPartSchema$Outbound
1772
- >;
1773
-
1774
- /** @internal */
1775
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
1776
- z.ZodType<
1777
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
1778
- z.ZodTypeDef,
1779
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
1780
- > = z.union([
1781
- z.string(),
1782
- z.array(
1783
- z.union([
1784
- components.TextContentPartSchema$outboundSchema.and(
1785
- z.object({ type: z.literal("text") }),
1786
- ),
1787
- components.RefusalPartSchema$outboundSchema,
1788
- components.ReasoningPartSchema$outboundSchema,
1789
- components.RedactedReasoningPartSchema$outboundSchema,
1790
- ]),
1791
- ),
1792
- ]);
1793
-
1794
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
1795
- deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
1796
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
1797
- ): string {
1798
- return JSON.stringify(
1799
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
1800
- .parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
1801
- );
1802
- }
1803
-
1804
- /** @internal */
1805
- export type Audio$Outbound = {
1806
- id: string;
1807
- };
1808
-
1809
- /** @internal */
1810
- export const Audio$outboundSchema: z.ZodType<
1811
- Audio$Outbound,
1812
- z.ZodTypeDef,
1813
- Audio
1814
- > = z.object({
1815
- id: z.string(),
1816
- });
1817
-
1818
- export function audioToJSON(audio: Audio): string {
1819
- return JSON.stringify(Audio$outboundSchema.parse(audio));
1820
- }
1821
-
1822
- /** @internal */
1823
- export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
1824
- typeof PrefixMessagesType
1825
- > = z.nativeEnum(PrefixMessagesType);
1826
-
1827
- /** @internal */
1828
- export type PrefixMessagesFunction$Outbound = {
1829
- name?: string | undefined;
1830
- arguments?: string | undefined;
1831
- };
1832
-
1833
- /** @internal */
1834
- export const PrefixMessagesFunction$outboundSchema: z.ZodType<
1835
- PrefixMessagesFunction$Outbound,
1836
- z.ZodTypeDef,
1837
- PrefixMessagesFunction
1838
- > = z.object({
1839
- name: z.string().optional(),
1840
- arguments: z.string().optional(),
1841
- });
1842
-
1843
- export function prefixMessagesFunctionToJSON(
1844
- prefixMessagesFunction: PrefixMessagesFunction,
1845
- ): string {
1846
- return JSON.stringify(
1847
- PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
1848
- );
1849
- }
1850
-
1851
- /** @internal */
1852
- export type PrefixMessagesToolCalls$Outbound = {
1853
- id: string;
1854
- type: string;
1855
- function: PrefixMessagesFunction$Outbound;
1856
- thought_signature?: string | undefined;
1857
- };
1858
-
1859
- /** @internal */
1860
- export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
1861
- PrefixMessagesToolCalls$Outbound,
1862
- z.ZodTypeDef,
1863
- PrefixMessagesToolCalls
1864
- > = z.object({
1865
- id: z.string(),
1866
- type: PrefixMessagesType$outboundSchema,
1867
- function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
1868
- thoughtSignature: z.string().optional(),
1869
- }).transform((v) => {
1870
- return remap$(v, {
1871
- thoughtSignature: "thought_signature",
1872
- });
1873
- });
1874
-
1875
- export function prefixMessagesToolCallsToJSON(
1876
- prefixMessagesToolCalls: PrefixMessagesToolCalls,
1877
- ): string {
1878
- return JSON.stringify(
1879
- PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
1880
- );
1881
- }
1882
-
1883
- /** @internal */
1884
- export type AssistantMessage$Outbound = {
1885
- content?:
1886
- | string
1887
- | Array<
1888
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1889
- | components.RefusalPartSchema$Outbound
1890
- | components.ReasoningPartSchema$Outbound
1891
- | components.RedactedReasoningPartSchema$Outbound
1892
- >
1893
- | null
1894
- | undefined;
1895
- refusal?: string | null | undefined;
1896
- role: "assistant";
1897
- name?: string | undefined;
1898
- audio?: Audio$Outbound | null | undefined;
1899
- tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
1900
- };
1901
-
1902
- /** @internal */
1903
- export const AssistantMessage$outboundSchema: z.ZodType<
1904
- AssistantMessage$Outbound,
1905
- z.ZodTypeDef,
1906
- AssistantMessage
1907
- > = z.object({
1908
- content: z.nullable(
1909
- z.union([
1910
- z.string(),
1911
- z.array(
1912
- z.union([
1913
- components.TextContentPartSchema$outboundSchema.and(
1914
- z.object({ type: z.literal("text") }),
1915
- ),
1916
- components.RefusalPartSchema$outboundSchema,
1917
- components.ReasoningPartSchema$outboundSchema,
1918
- components.RedactedReasoningPartSchema$outboundSchema,
1919
- ]),
1920
- ),
1921
- ]),
1922
- ).optional(),
1923
- refusal: z.nullable(z.string()).optional(),
1924
- role: z.literal("assistant"),
1925
- name: z.string().optional(),
1926
- audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1927
- toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
1928
- .optional(),
1929
- }).transform((v) => {
1930
- return remap$(v, {
1931
- toolCalls: "tool_calls",
1932
- });
1933
- });
1934
-
1935
- export function assistantMessageToJSON(
1936
- assistantMessage: AssistantMessage,
1937
- ): string {
1938
- return JSON.stringify(
1939
- AssistantMessage$outboundSchema.parse(assistantMessage),
1940
- );
1941
- }
1942
-
1943
- /** @internal */
1944
- export const DeploymentGetConfig2DeploymentsType$outboundSchema:
1945
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> = z.nativeEnum(
1946
- DeploymentGetConfig2DeploymentsType,
1947
- );
1948
-
1949
- /** @internal */
1950
- export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(
1951
- Ttl,
1952
- );
1953
-
1954
- /** @internal */
1955
- export type CacheControl$Outbound = {
1956
- type: string;
1957
- ttl: string;
1958
- };
1959
-
1960
- /** @internal */
1961
- export const CacheControl$outboundSchema: z.ZodType<
1962
- CacheControl$Outbound,
1963
- z.ZodTypeDef,
1964
- CacheControl
1965
- > = z.object({
1966
- type: DeploymentGetConfig2DeploymentsType$outboundSchema,
1967
- ttl: Ttl$outboundSchema.default("5m"),
1968
- });
1969
-
1970
- export function cacheControlToJSON(cacheControl: CacheControl): string {
1971
- return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
1972
- }
1973
-
1974
- /** @internal */
1975
- export type Four$Outbound = {
1976
- type: "file";
1977
- cache_control?: CacheControl$Outbound | undefined;
1978
- file: components.FileContentPartSchema$Outbound;
1979
- };
1980
-
1981
- /** @internal */
1982
- export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
1983
- z.object({
1984
- type: z.literal("file"),
1985
- cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
1986
- file: components.FileContentPartSchema$outboundSchema,
1987
- }).transform((v) => {
1988
- return remap$(v, {
1989
- cacheControl: "cache_control",
1990
- });
1991
- });
1992
-
1993
- export function fourToJSON(four: Four): string {
1994
- return JSON.stringify(Four$outboundSchema.parse(four));
1995
- }
1996
-
1997
- /** @internal */
1998
- export type Content2$Outbound =
1999
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2000
- | components.ImageContentPartSchema$Outbound
2001
- | components.AudioContentPartSchema$Outbound
2002
- | Four$Outbound;
2003
-
2004
- /** @internal */
2005
- export const Content2$outboundSchema: z.ZodType<
2006
- Content2$Outbound,
2007
- z.ZodTypeDef,
2008
- Content2
2009
- > = z.union([
2010
- components.TextContentPartSchema$outboundSchema.and(
2011
- z.object({ type: z.literal("text") }),
2012
- ),
2013
- components.ImageContentPartSchema$outboundSchema,
2014
- components.AudioContentPartSchema$outboundSchema,
2015
- z.lazy(() => Four$outboundSchema),
2016
- ]);
2017
-
2018
- export function content2ToJSON(content2: Content2): string {
2019
- return JSON.stringify(Content2$outboundSchema.parse(content2));
2020
- }
2021
-
2022
- /** @internal */
2023
- export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
2024
- | string
2025
- | Array<
2026
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2027
- | components.ImageContentPartSchema$Outbound
2028
- | components.AudioContentPartSchema$Outbound
2029
- | Four$Outbound
2030
- >;
2031
-
2032
- /** @internal */
2033
- export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
2034
- z.ZodType<
2035
- DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
2036
- z.ZodTypeDef,
2037
- DeploymentGetConfigPrefixMessagesDeploymentsContent
2038
- > = z.union([
2039
- z.string(),
2040
- z.array(
2041
- z.union([
2042
- components.TextContentPartSchema$outboundSchema.and(
2043
- z.object({ type: z.literal("text") }),
2044
- ),
2045
- components.ImageContentPartSchema$outboundSchema,
2046
- components.AudioContentPartSchema$outboundSchema,
2047
- z.lazy(() => Four$outboundSchema),
2048
- ]),
2049
- ),
2050
- ]);
2051
-
2052
- export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
2053
- deploymentGetConfigPrefixMessagesDeploymentsContent:
2054
- DeploymentGetConfigPrefixMessagesDeploymentsContent,
2055
- ): string {
2056
- return JSON.stringify(
2057
- DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
2058
- deploymentGetConfigPrefixMessagesDeploymentsContent,
2059
- ),
2060
- );
2061
- }
2062
-
2063
- /** @internal */
2064
- export type UserMessage$Outbound = {
2065
- role: "user";
2066
- name?: string | undefined;
2067
- content:
2068
- | string
2069
- | Array<
2070
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2071
- | components.ImageContentPartSchema$Outbound
2072
- | components.AudioContentPartSchema$Outbound
2073
- | Four$Outbound
2074
- >;
2075
- };
2076
-
2077
- /** @internal */
2078
- export const UserMessage$outboundSchema: z.ZodType<
2079
- UserMessage$Outbound,
2080
- z.ZodTypeDef,
2081
- UserMessage
2082
- > = z.object({
2083
- role: z.literal("user"),
2084
- name: z.string().optional(),
2085
- content: z.union([
2086
- z.string(),
2087
- z.array(
2088
- z.union([
2089
- components.TextContentPartSchema$outboundSchema.and(
2090
- z.object({ type: z.literal("text") }),
2091
- ),
2092
- components.ImageContentPartSchema$outboundSchema,
2093
- components.AudioContentPartSchema$outboundSchema,
2094
- z.lazy(() => Four$outboundSchema),
2095
- ]),
2096
- ),
2097
- ]),
2098
- });
2099
-
2100
- export function userMessageToJSON(userMessage: UserMessage): string {
2101
- return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
2102
- }
2103
-
2104
- /** @internal */
2105
- export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2106
- | string
2107
- | Array<components.TextContentPartSchema$Outbound>;
2108
-
2109
- /** @internal */
2110
- export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
2111
- DeploymentGetConfigPrefixMessagesContent$Outbound,
2112
- z.ZodTypeDef,
2113
- DeploymentGetConfigPrefixMessagesContent
2114
- > = z.union([
2115
- z.string(),
2116
- z.array(components.TextContentPartSchema$outboundSchema),
2117
- ]);
2118
-
2119
- export function deploymentGetConfigPrefixMessagesContentToJSON(
2120
- deploymentGetConfigPrefixMessagesContent:
2121
- DeploymentGetConfigPrefixMessagesContent,
2122
- ): string {
2123
- return JSON.stringify(
2124
- DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
2125
- deploymentGetConfigPrefixMessagesContent,
2126
- ),
2127
- );
2128
- }
2129
-
2130
- /** @internal */
2131
- export type DeveloperMessage$Outbound = {
2132
- role: "developer";
2133
- content: string | Array<components.TextContentPartSchema$Outbound>;
2134
- name?: string | undefined;
2135
- };
2136
-
2137
- /** @internal */
2138
- export const DeveloperMessage$outboundSchema: z.ZodType<
2139
- DeveloperMessage$Outbound,
2140
- z.ZodTypeDef,
2141
- DeveloperMessage
2142
- > = z.object({
2143
- role: z.literal("developer"),
2144
- content: z.union([
2145
- z.string(),
2146
- z.array(components.TextContentPartSchema$outboundSchema),
2147
- ]),
2148
- name: z.string().optional(),
2149
- });
2150
-
2151
- export function developerMessageToJSON(
2152
- developerMessage: DeveloperMessage,
2153
- ): string {
2154
- return JSON.stringify(
2155
- DeveloperMessage$outboundSchema.parse(developerMessage),
2156
- );
2157
- }
2158
-
2159
- /** @internal */
2160
- export type PrefixMessagesContent$Outbound =
2161
- | string
2162
- | Array<components.TextContentPartSchema$Outbound>;
2163
-
2164
- /** @internal */
2165
- export const PrefixMessagesContent$outboundSchema: z.ZodType<
2166
- PrefixMessagesContent$Outbound,
2167
- z.ZodTypeDef,
2168
- PrefixMessagesContent
2169
- > = z.union([
2170
- z.string(),
2171
- z.array(components.TextContentPartSchema$outboundSchema),
2172
- ]);
2173
-
2174
- export function prefixMessagesContentToJSON(
2175
- prefixMessagesContent: PrefixMessagesContent,
2176
- ): string {
2177
- return JSON.stringify(
2178
- PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
2179
- );
2180
- }
2181
-
2182
- /** @internal */
2183
- export type SystemMessage$Outbound = {
2184
- role: "system";
2185
- content: string | Array<components.TextContentPartSchema$Outbound>;
2186
- name?: string | undefined;
2187
- };
2188
-
2189
- /** @internal */
2190
- export const SystemMessage$outboundSchema: z.ZodType<
2191
- SystemMessage$Outbound,
2192
- z.ZodTypeDef,
2193
- SystemMessage
2194
- > = z.object({
2195
- role: z.literal("system"),
2196
- content: z.union([
2197
- z.string(),
2198
- z.array(components.TextContentPartSchema$outboundSchema),
2199
- ]),
2200
- name: z.string().optional(),
2201
- });
2202
-
2203
- export function systemMessageToJSON(systemMessage: SystemMessage): string {
2204
- return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
2205
- }
2206
-
2207
- /** @internal */
2208
- export type PrefixMessages$Outbound =
2209
- | SystemMessage$Outbound
2210
- | DeveloperMessage$Outbound
2211
- | UserMessage$Outbound
2212
- | AssistantMessage$Outbound
2213
- | ToolMessage$Outbound;
2214
-
2215
- /** @internal */
2216
- export const PrefixMessages$outboundSchema: z.ZodType<
2217
- PrefixMessages$Outbound,
2218
- z.ZodTypeDef,
2219
- PrefixMessages
2220
- > = z.union([
2221
- z.lazy(() => SystemMessage$outboundSchema),
2222
- z.lazy(() => DeveloperMessage$outboundSchema),
2223
- z.lazy(() => UserMessage$outboundSchema),
2224
- z.lazy(() => AssistantMessage$outboundSchema),
2225
- z.lazy(() => ToolMessage$outboundSchema),
2226
- ]);
2227
-
2228
- export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
2229
- return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
2230
- }
2231
-
2232
- /** @internal */
2233
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
2234
- components.TextContentPartSchema$Outbound;
2235
-
2236
- /** @internal */
2237
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
2238
- z.ZodType<
2239
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
2240
- z.ZodTypeDef,
2241
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
2242
- > = components.TextContentPartSchema$outboundSchema;
2243
-
2244
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
2245
- deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
2246
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
2247
- ): string {
2248
- return JSON.stringify(
2249
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
2250
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
2251
- );
2252
- }
2253
-
2254
- /** @internal */
2255
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
2256
- | string
2257
- | Array<components.TextContentPartSchema$Outbound>;
2258
-
2259
- /** @internal */
2260
- export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
2261
- z.ZodType<
2262
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
2263
- z.ZodTypeDef,
2264
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
2265
- > = z.union([
2266
- z.string(),
2267
- z.array(components.TextContentPartSchema$outboundSchema),
2268
- ]);
2269
-
2270
- export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
2271
- deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent:
2272
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
2273
- ): string {
2274
- return JSON.stringify(
2275
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
2276
- .parse(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent),
2277
- );
2278
- }
2279
-
2280
- /** @internal */
2281
- export const DeploymentGetConfigMessagesType$outboundSchema: z.ZodNativeEnum<
2282
- typeof DeploymentGetConfigMessagesType
2283
- > = z.nativeEnum(DeploymentGetConfigMessagesType);
2284
-
2285
- /** @internal */
2286
- export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
2287
- .nativeEnum(MessagesTtl);
2288
-
2289
- /** @internal */
2290
- export type MessagesCacheControl$Outbound = {
2291
- type: string;
2292
- ttl: string;
2293
- };
2294
-
2295
- /** @internal */
2296
- export const MessagesCacheControl$outboundSchema: z.ZodType<
2297
- MessagesCacheControl$Outbound,
2298
- z.ZodTypeDef,
2299
- MessagesCacheControl
2300
- > = z.object({
2301
- type: DeploymentGetConfigMessagesType$outboundSchema,
2302
- ttl: MessagesTtl$outboundSchema.default("5m"),
2303
- });
2304
-
2305
- export function messagesCacheControlToJSON(
2306
- messagesCacheControl: MessagesCacheControl,
2307
- ): string {
2308
- return JSON.stringify(
2309
- MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
2310
- );
2311
- }
2312
-
2313
- /** @internal */
2314
- export type MessagesToolMessage$Outbound = {
2315
- role: "tool";
2316
- content: string | Array<components.TextContentPartSchema$Outbound>;
2317
- tool_call_id: string | null;
2318
- cache_control?: MessagesCacheControl$Outbound | undefined;
2319
- };
2320
-
2321
- /** @internal */
2322
- export const MessagesToolMessage$outboundSchema: z.ZodType<
2323
- MessagesToolMessage$Outbound,
2324
- z.ZodTypeDef,
2325
- MessagesToolMessage
2326
- > = z.object({
2327
- role: z.literal("tool"),
2328
- content: z.union([
2329
- z.string(),
2330
- z.array(components.TextContentPartSchema$outboundSchema),
2331
- ]),
2332
- toolCallId: z.nullable(z.string()),
2333
- cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
2334
- }).transform((v) => {
2335
- return remap$(v, {
2336
- toolCallId: "tool_call_id",
2337
- cacheControl: "cache_control",
2338
- });
2339
- });
2340
-
2341
- export function messagesToolMessageToJSON(
2342
- messagesToolMessage: MessagesToolMessage,
2343
- ): string {
2344
- return JSON.stringify(
2345
- MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
2346
- );
2347
- }
2348
-
2349
- /** @internal */
2350
- export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
2351
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2352
- | components.RefusalPartSchema$Outbound
2353
- | components.ReasoningPartSchema$Outbound
2354
- | components.RedactedReasoningPartSchema$Outbound;
2355
-
2356
- /** @internal */
2357
- export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
2358
- z.ZodType<
2359
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
2360
- z.ZodTypeDef,
2361
- DeploymentGetConfigContentDeploymentsRequestRequestBody2
2362
- > = z.union([
2363
- components.TextContentPartSchema$outboundSchema.and(
2364
- z.object({ type: z.literal("text") }),
2365
- ),
2366
- components.RefusalPartSchema$outboundSchema,
2367
- components.ReasoningPartSchema$outboundSchema,
2368
- components.RedactedReasoningPartSchema$outboundSchema,
2369
- ]);
2370
-
2371
- export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
2372
- deploymentGetConfigContentDeploymentsRequestRequestBody2:
2373
- DeploymentGetConfigContentDeploymentsRequestRequestBody2,
2374
- ): string {
2375
- return JSON.stringify(
2376
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
2377
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
2378
- );
2379
- }
2380
-
2381
- /** @internal */
2382
- export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
2383
- | string
2384
- | Array<
2385
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2386
- | components.RefusalPartSchema$Outbound
2387
- | components.ReasoningPartSchema$Outbound
2388
- | components.RedactedReasoningPartSchema$Outbound
2389
- >;
2390
-
2391
- /** @internal */
2392
- export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema:
2393
- z.ZodType<
2394
- DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound,
2395
- z.ZodTypeDef,
2396
- DeploymentGetConfigMessagesDeploymentsRequestContent
2397
- > = z.union([
2398
- z.string(),
2399
- z.array(
2400
- z.union([
2401
- components.TextContentPartSchema$outboundSchema.and(
2402
- z.object({ type: z.literal("text") }),
2403
- ),
2404
- components.RefusalPartSchema$outboundSchema,
2405
- components.ReasoningPartSchema$outboundSchema,
2406
- components.RedactedReasoningPartSchema$outboundSchema,
2407
- ]),
2408
- ),
2409
- ]);
2410
-
2411
- export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
2412
- deploymentGetConfigMessagesDeploymentsRequestContent:
2413
- DeploymentGetConfigMessagesDeploymentsRequestContent,
2414
- ): string {
2415
- return JSON.stringify(
2416
- DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema.parse(
2417
- deploymentGetConfigMessagesDeploymentsRequestContent,
2418
- ),
2419
- );
2420
- }
2421
-
2422
- /** @internal */
2423
- export type MessagesAudio$Outbound = {
2424
- id: string;
2425
- };
2426
-
2427
- /** @internal */
2428
- export const MessagesAudio$outboundSchema: z.ZodType<
2429
- MessagesAudio$Outbound,
2430
- z.ZodTypeDef,
2431
- MessagesAudio
2432
- > = z.object({
2433
- id: z.string(),
2434
- });
2435
-
2436
- export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
2437
- return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
2438
- }
2439
-
2440
- /** @internal */
2441
- export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
2442
- z.nativeEnum(MessagesType);
2443
-
2444
- /** @internal */
2445
- export type MessagesFunction$Outbound = {
2446
- name?: string | undefined;
2447
- arguments?: string | undefined;
2448
- };
2449
-
2450
- /** @internal */
2451
- export const MessagesFunction$outboundSchema: z.ZodType<
2452
- MessagesFunction$Outbound,
2453
- z.ZodTypeDef,
2454
- MessagesFunction
2455
- > = z.object({
2456
- name: z.string().optional(),
2457
- arguments: z.string().optional(),
2458
- });
2459
-
2460
- export function messagesFunctionToJSON(
2461
- messagesFunction: MessagesFunction,
2462
- ): string {
2463
- return JSON.stringify(
2464
- MessagesFunction$outboundSchema.parse(messagesFunction),
2465
- );
2466
- }
2467
-
2468
- /** @internal */
2469
- export type MessagesToolCalls$Outbound = {
2470
- id: string;
2471
- type: string;
2472
- function: MessagesFunction$Outbound;
2473
- thought_signature?: string | undefined;
2474
- };
2475
-
2476
- /** @internal */
2477
- export const MessagesToolCalls$outboundSchema: z.ZodType<
2478
- MessagesToolCalls$Outbound,
2479
- z.ZodTypeDef,
2480
- MessagesToolCalls
2481
- > = z.object({
2482
- id: z.string(),
2483
- type: MessagesType$outboundSchema,
2484
- function: z.lazy(() => MessagesFunction$outboundSchema),
2485
- thoughtSignature: z.string().optional(),
2486
- }).transform((v) => {
2487
- return remap$(v, {
2488
- thoughtSignature: "thought_signature",
2489
- });
2490
- });
2491
-
2492
- export function messagesToolCallsToJSON(
2493
- messagesToolCalls: MessagesToolCalls,
2494
- ): string {
2495
- return JSON.stringify(
2496
- MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
2497
- );
2498
- }
2499
-
2500
- /** @internal */
2501
- export type MessagesAssistantMessage$Outbound = {
2502
- content?:
2503
- | string
2504
- | Array<
2505
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2506
- | components.RefusalPartSchema$Outbound
2507
- | components.ReasoningPartSchema$Outbound
2508
- | components.RedactedReasoningPartSchema$Outbound
2509
- >
2510
- | null
2511
- | undefined;
2512
- refusal?: string | null | undefined;
2513
- role: "assistant";
2514
- name?: string | undefined;
2515
- audio?: MessagesAudio$Outbound | null | undefined;
2516
- tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
2517
- };
2518
-
2519
- /** @internal */
2520
- export const MessagesAssistantMessage$outboundSchema: z.ZodType<
2521
- MessagesAssistantMessage$Outbound,
2522
- z.ZodTypeDef,
2523
- MessagesAssistantMessage
2524
- > = z.object({
2525
- content: z.nullable(
2526
- z.union([
2527
- z.string(),
2528
- z.array(
2529
- z.union([
2530
- components.TextContentPartSchema$outboundSchema.and(
2531
- z.object({ type: z.literal("text") }),
2532
- ),
2533
- components.RefusalPartSchema$outboundSchema,
2534
- components.ReasoningPartSchema$outboundSchema,
2535
- components.RedactedReasoningPartSchema$outboundSchema,
2536
- ]),
2537
- ),
2538
- ]),
2539
- ).optional(),
2540
- refusal: z.nullable(z.string()).optional(),
2541
- role: z.literal("assistant"),
2542
- name: z.string().optional(),
2543
- audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
2544
- toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
2545
- }).transform((v) => {
2546
- return remap$(v, {
2547
- toolCalls: "tool_calls",
2548
- });
2549
- });
2550
-
2551
- export function messagesAssistantMessageToJSON(
2552
- messagesAssistantMessage: MessagesAssistantMessage,
2553
- ): string {
2554
- return JSON.stringify(
2555
- MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
2556
- );
2557
- }
2558
-
2559
- /** @internal */
2560
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
2561
- z.ZodNativeEnum<
2562
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
2563
- > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
2564
-
2565
- /** @internal */
2566
- export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
2567
- .nativeEnum(TwoTtl);
2568
-
2569
- /** @internal */
2570
- export type TwoCacheControl$Outbound = {
2571
- type: string;
2572
- ttl: string;
2573
- };
2574
-
2575
- /** @internal */
2576
- export const TwoCacheControl$outboundSchema: z.ZodType<
2577
- TwoCacheControl$Outbound,
2578
- z.ZodTypeDef,
2579
- TwoCacheControl
2580
- > = z.object({
2581
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
2582
- ttl: TwoTtl$outboundSchema.default("5m"),
2583
- });
2584
-
2585
- export function twoCacheControlToJSON(
2586
- twoCacheControl: TwoCacheControl,
2587
- ): string {
2588
- return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
2589
- }
2590
-
2591
- /** @internal */
2592
- export type Two4$Outbound = {
2593
- type: "file";
2594
- cache_control?: TwoCacheControl$Outbound | undefined;
2595
- file: components.FileContentPartSchema$Outbound;
2596
- };
2597
-
2598
- /** @internal */
2599
- export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
2600
- z.object({
2601
- type: z.literal("file"),
2602
- cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
2603
- file: components.FileContentPartSchema$outboundSchema,
2604
- }).transform((v) => {
2605
- return remap$(v, {
2606
- cacheControl: "cache_control",
2607
- });
2608
- });
2609
-
2610
- export function two4ToJSON(two4: Two4): string {
2611
- return JSON.stringify(Two4$outboundSchema.parse(two4));
2612
- }
2613
-
2614
- /** @internal */
2615
- export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
2616
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2617
- | components.ImageContentPartSchema$Outbound
2618
- | components.AudioContentPartSchema$Outbound
2619
- | Two4$Outbound;
2620
-
2621
- /** @internal */
2622
- export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
2623
- z.ZodType<
2624
- DeploymentGetConfigContentDeploymentsRequest2$Outbound,
2625
- z.ZodTypeDef,
2626
- DeploymentGetConfigContentDeploymentsRequest2
2627
- > = z.union([
2628
- components.TextContentPartSchema$outboundSchema.and(
2629
- z.object({ type: z.literal("text") }),
2630
- ),
2631
- components.ImageContentPartSchema$outboundSchema,
2632
- components.AudioContentPartSchema$outboundSchema,
2633
- z.lazy(() => Two4$outboundSchema),
2634
- ]);
2635
-
2636
- export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
2637
- deploymentGetConfigContentDeploymentsRequest2:
2638
- DeploymentGetConfigContentDeploymentsRequest2,
2639
- ): string {
2640
- return JSON.stringify(
2641
- DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
2642
- deploymentGetConfigContentDeploymentsRequest2,
2643
- ),
2644
- );
2645
- }
2646
-
2647
- /** @internal */
2648
- export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
2649
- | string
2650
- | Array<
2651
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2652
- | components.ImageContentPartSchema$Outbound
2653
- | components.AudioContentPartSchema$Outbound
2654
- | Two4$Outbound
2655
- >;
2656
-
2657
- /** @internal */
2658
- export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
2659
- z.ZodType<
2660
- DeploymentGetConfigMessagesDeploymentsContent$Outbound,
2661
- z.ZodTypeDef,
2662
- DeploymentGetConfigMessagesDeploymentsContent
2663
- > = z.union([
2664
- z.string(),
2665
- z.array(
2666
- z.union([
2667
- components.TextContentPartSchema$outboundSchema.and(
2668
- z.object({ type: z.literal("text") }),
2669
- ),
2670
- components.ImageContentPartSchema$outboundSchema,
2671
- components.AudioContentPartSchema$outboundSchema,
2672
- z.lazy(() => Two4$outboundSchema),
2673
- ]),
2674
- ),
2675
- ]);
2676
-
2677
- export function deploymentGetConfigMessagesDeploymentsContentToJSON(
2678
- deploymentGetConfigMessagesDeploymentsContent:
2679
- DeploymentGetConfigMessagesDeploymentsContent,
2680
- ): string {
2681
- return JSON.stringify(
2682
- DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
2683
- deploymentGetConfigMessagesDeploymentsContent,
2684
- ),
2685
- );
2686
- }
2687
-
2688
- /** @internal */
2689
- export type MessagesUserMessage$Outbound = {
2690
- role: "user";
2691
- name?: string | undefined;
2692
- content:
2693
- | string
2694
- | Array<
2695
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2696
- | components.ImageContentPartSchema$Outbound
2697
- | components.AudioContentPartSchema$Outbound
2698
- | Two4$Outbound
2699
- >;
2700
- };
2701
-
2702
- /** @internal */
2703
- export const MessagesUserMessage$outboundSchema: z.ZodType<
2704
- MessagesUserMessage$Outbound,
2705
- z.ZodTypeDef,
2706
- MessagesUserMessage
2707
- > = z.object({
2708
- role: z.literal("user"),
2709
- name: z.string().optional(),
2710
- content: z.union([
2711
- z.string(),
2712
- z.array(
2713
- z.union([
2714
- components.TextContentPartSchema$outboundSchema.and(
2715
- z.object({ type: z.literal("text") }),
2716
- ),
2717
- components.ImageContentPartSchema$outboundSchema,
2718
- components.AudioContentPartSchema$outboundSchema,
2719
- z.lazy(() => Two4$outboundSchema),
2720
- ]),
2721
- ),
2722
- ]),
2723
- });
2724
-
2725
- export function messagesUserMessageToJSON(
2726
- messagesUserMessage: MessagesUserMessage,
2727
- ): string {
2728
- return JSON.stringify(
2729
- MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
2730
- );
2731
- }
2732
-
2733
- /** @internal */
2734
- export type DeploymentGetConfigMessagesContent$Outbound =
2735
- | string
2736
- | Array<components.TextContentPartSchema$Outbound>;
2737
-
2738
- /** @internal */
2739
- export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
2740
- DeploymentGetConfigMessagesContent$Outbound,
2741
- z.ZodTypeDef,
2742
- DeploymentGetConfigMessagesContent
2743
- > = z.union([
2744
- z.string(),
2745
- z.array(components.TextContentPartSchema$outboundSchema),
2746
- ]);
2747
-
2748
- export function deploymentGetConfigMessagesContentToJSON(
2749
- deploymentGetConfigMessagesContent: DeploymentGetConfigMessagesContent,
2750
- ): string {
2751
- return JSON.stringify(
2752
- DeploymentGetConfigMessagesContent$outboundSchema.parse(
2753
- deploymentGetConfigMessagesContent,
2754
- ),
2755
- );
2756
- }
2757
-
2758
- /** @internal */
2759
- export type MessagesDeveloperMessage$Outbound = {
2760
- role: "developer";
2761
- content: string | Array<components.TextContentPartSchema$Outbound>;
2762
- name?: string | undefined;
2763
- };
2764
-
2765
- /** @internal */
2766
- export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
2767
- MessagesDeveloperMessage$Outbound,
2768
- z.ZodTypeDef,
2769
- MessagesDeveloperMessage
2770
- > = z.object({
2771
- role: z.literal("developer"),
2772
- content: z.union([
2773
- z.string(),
2774
- z.array(components.TextContentPartSchema$outboundSchema),
2775
- ]),
2776
- name: z.string().optional(),
2777
- });
2778
-
2779
- export function messagesDeveloperMessageToJSON(
2780
- messagesDeveloperMessage: MessagesDeveloperMessage,
2781
- ): string {
2782
- return JSON.stringify(
2783
- MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
2784
- );
2785
- }
2786
-
2787
- /** @internal */
2788
- export type MessagesContent$Outbound =
2789
- | string
2790
- | Array<components.TextContentPartSchema$Outbound>;
2791
-
2792
- /** @internal */
2793
- export const MessagesContent$outboundSchema: z.ZodType<
2794
- MessagesContent$Outbound,
2795
- z.ZodTypeDef,
2796
- MessagesContent
2797
- > = z.union([
2798
- z.string(),
2799
- z.array(components.TextContentPartSchema$outboundSchema),
2800
- ]);
2801
-
2802
- export function messagesContentToJSON(
2803
- messagesContent: MessagesContent,
2804
- ): string {
2805
- return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
2806
- }
2807
-
2808
- /** @internal */
2809
- export type MessagesSystemMessage$Outbound = {
2810
- role: "system";
2811
- content: string | Array<components.TextContentPartSchema$Outbound>;
2812
- name?: string | undefined;
2813
- };
2814
-
2815
- /** @internal */
2816
- export const MessagesSystemMessage$outboundSchema: z.ZodType<
2817
- MessagesSystemMessage$Outbound,
2818
- z.ZodTypeDef,
2819
- MessagesSystemMessage
2820
- > = z.object({
2821
- role: z.literal("system"),
2822
- content: z.union([
2823
- z.string(),
2824
- z.array(components.TextContentPartSchema$outboundSchema),
2825
- ]),
2826
- name: z.string().optional(),
2827
- });
2828
-
2829
- export function messagesSystemMessageToJSON(
2830
- messagesSystemMessage: MessagesSystemMessage,
2831
- ): string {
2832
- return JSON.stringify(
2833
- MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
2834
- );
2835
- }
2836
-
2837
- /** @internal */
2838
- export type DeploymentGetConfigMessages$Outbound =
2839
- | MessagesSystemMessage$Outbound
2840
- | MessagesDeveloperMessage$Outbound
2841
- | MessagesUserMessage$Outbound
2842
- | MessagesAssistantMessage$Outbound
2843
- | MessagesToolMessage$Outbound;
2844
-
2845
- /** @internal */
2846
- export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
2847
- DeploymentGetConfigMessages$Outbound,
2848
- z.ZodTypeDef,
2849
- DeploymentGetConfigMessages
2850
- > = z.union([
2851
- z.lazy(() => MessagesSystemMessage$outboundSchema),
2852
- z.lazy(() => MessagesDeveloperMessage$outboundSchema),
2853
- z.lazy(() => MessagesUserMessage$outboundSchema),
2854
- z.lazy(() => MessagesAssistantMessage$outboundSchema),
2855
- z.lazy(() => MessagesToolMessage$outboundSchema),
2856
- ]);
2857
-
2858
- export function deploymentGetConfigMessagesToJSON(
2859
- deploymentGetConfigMessages: DeploymentGetConfigMessages,
2860
- ): string {
2861
- return JSON.stringify(
2862
- DeploymentGetConfigMessages$outboundSchema.parse(
2863
- deploymentGetConfigMessages,
2864
- ),
2865
- );
2866
- }
2867
-
2868
- /** @internal */
2869
- export type Metadata$Outbound = {
2870
- file_name?: string | undefined;
2871
- file_type?: string | undefined;
2872
- page_number?: number | undefined;
2873
- };
2874
-
2875
- /** @internal */
2876
- export const Metadata$outboundSchema: z.ZodType<
2877
- Metadata$Outbound,
2878
- z.ZodTypeDef,
2879
- Metadata
2880
- > = z.object({
2881
- fileName: z.string().optional(),
2882
- fileType: z.string().optional(),
2883
- pageNumber: z.number().optional(),
2884
- }).transform((v) => {
2885
- return remap$(v, {
2886
- fileName: "file_name",
2887
- fileType: "file_type",
2888
- pageNumber: "page_number",
2889
- });
2890
- });
2891
-
2892
- export function metadataToJSON(metadata: Metadata): string {
2893
- return JSON.stringify(Metadata$outboundSchema.parse(metadata));
2894
- }
2895
-
2896
- /** @internal */
2897
- export type Documents$Outbound = {
2898
- text: string;
2899
- metadata?: Metadata$Outbound | undefined;
2900
- };
2901
-
2902
- /** @internal */
2903
- export const Documents$outboundSchema: z.ZodType<
2904
- Documents$Outbound,
2905
- z.ZodTypeDef,
2906
- Documents
2907
- > = z.object({
2908
- text: z.string(),
2909
- metadata: z.lazy(() => Metadata$outboundSchema).optional(),
2910
- });
2911
-
2912
- export function documentsToJSON(documents: Documents): string {
2913
- return JSON.stringify(Documents$outboundSchema.parse(documents));
2914
- }
2915
-
2916
- /** @internal */
2917
- export type InvokeOptions$Outbound = {
2918
- include_retrievals: boolean;
2919
- include_usage: boolean;
2920
- mock_response?: string | undefined;
2921
- };
2922
-
2923
- /** @internal */
2924
- export const InvokeOptions$outboundSchema: z.ZodType<
2925
- InvokeOptions$Outbound,
2926
- z.ZodTypeDef,
2927
- InvokeOptions
2928
- > = z.object({
2929
- includeRetrievals: z.boolean().default(false),
2930
- includeUsage: z.boolean().default(false),
2931
- mockResponse: z.string().optional(),
2932
- }).transform((v) => {
2933
- return remap$(v, {
2934
- includeRetrievals: "include_retrievals",
2935
- includeUsage: "include_usage",
2936
- mockResponse: "mock_response",
2937
- });
2938
- });
2939
-
2940
- export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
2941
- return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
2942
- }
2943
-
2944
- /** @internal */
2945
- export type Thread$Outbound = {
2946
- id: string;
2947
- tags?: Array<string> | undefined;
2948
- };
2949
-
2950
- /** @internal */
2951
- export const Thread$outboundSchema: z.ZodType<
2952
- Thread$Outbound,
2953
- z.ZodTypeDef,
2954
- Thread
2955
- > = z.object({
2956
- id: z.string(),
2957
- tags: z.array(z.string()).optional(),
2958
- });
2959
-
2960
- export function threadToJSON(thread: Thread): string {
2961
- return JSON.stringify(Thread$outboundSchema.parse(thread));
2962
- }
2963
-
2964
- /** @internal */
2965
- export type OrExists$Outbound = {
2966
- exists: boolean;
2967
- };
2968
-
2969
- /** @internal */
2970
- export const OrExists$outboundSchema: z.ZodType<
2971
- OrExists$Outbound,
2972
- z.ZodTypeDef,
2973
- OrExists
2974
- > = z.object({
2975
- exists: z.boolean(),
2976
- });
2977
-
2978
- export function orExistsToJSON(orExists: OrExists): string {
2979
- return JSON.stringify(OrExists$outboundSchema.parse(orExists));
2980
- }
2981
-
2982
- /** @internal */
2983
- export type DeploymentGetConfigOrNin$Outbound = string | number | boolean;
2984
-
2985
- /** @internal */
2986
- export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
2987
- DeploymentGetConfigOrNin$Outbound,
2988
- z.ZodTypeDef,
2989
- DeploymentGetConfigOrNin
2990
- > = z.union([z.string(), z.number(), z.boolean()]);
2991
-
2992
- export function deploymentGetConfigOrNinToJSON(
2993
- deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
2994
- ): string {
2995
- return JSON.stringify(
2996
- DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
2997
- );
2998
- }
2999
-
3000
- /** @internal */
3001
- export type OrNin$Outbound = {
3002
- nin: Array<string | number | boolean>;
3003
- };
3004
-
3005
- /** @internal */
3006
- export const OrNin$outboundSchema: z.ZodType<
3007
- OrNin$Outbound,
3008
- z.ZodTypeDef,
3009
- OrNin
3010
- > = z.object({
3011
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3012
- });
3013
-
3014
- export function orNinToJSON(orNin: OrNin): string {
3015
- return JSON.stringify(OrNin$outboundSchema.parse(orNin));
3016
- }
3017
-
3018
- /** @internal */
3019
- export type DeploymentGetConfigOrIn$Outbound = string | number | boolean;
3020
-
3021
- /** @internal */
3022
- export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
3023
- DeploymentGetConfigOrIn$Outbound,
3024
- z.ZodTypeDef,
3025
- DeploymentGetConfigOrIn
3026
- > = z.union([z.string(), z.number(), z.boolean()]);
3027
-
3028
- export function deploymentGetConfigOrInToJSON(
3029
- deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
3030
- ): string {
3031
- return JSON.stringify(
3032
- DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
3033
- );
3034
- }
3035
-
3036
- /** @internal */
3037
- export type OrIn$Outbound = {
3038
- in: Array<string | number | boolean>;
3039
- };
3040
-
3041
- /** @internal */
3042
- export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
3043
- z.object({
3044
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3045
- });
3046
-
3047
- export function orInToJSON(orIn: OrIn): string {
3048
- return JSON.stringify(OrIn$outboundSchema.parse(orIn));
3049
- }
3050
-
3051
- /** @internal */
3052
- export type OrLte$Outbound = {
3053
- lte: number;
3054
- };
3055
-
3056
- /** @internal */
3057
- export const OrLte$outboundSchema: z.ZodType<
3058
- OrLte$Outbound,
3059
- z.ZodTypeDef,
3060
- OrLte
3061
- > = z.object({
3062
- lte: z.number(),
3063
- });
3064
-
3065
- export function orLteToJSON(orLte: OrLte): string {
3066
- return JSON.stringify(OrLte$outboundSchema.parse(orLte));
3067
- }
3068
-
3069
- /** @internal */
3070
- export type OrLt$Outbound = {
3071
- lt: number;
3072
- };
3073
-
3074
- /** @internal */
3075
- export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
3076
- z.object({
3077
- lt: z.number(),
3078
- });
3079
-
3080
- export function orLtToJSON(orLt: OrLt): string {
3081
- return JSON.stringify(OrLt$outboundSchema.parse(orLt));
3082
- }
3083
-
3084
- /** @internal */
3085
- export type OrGte$Outbound = {
3086
- gte: number;
3087
- };
3088
-
3089
- /** @internal */
3090
- export const OrGte$outboundSchema: z.ZodType<
3091
- OrGte$Outbound,
3092
- z.ZodTypeDef,
3093
- OrGte
3094
- > = z.object({
3095
- gte: z.number(),
3096
- });
3097
-
3098
- export function orGteToJSON(orGte: OrGte): string {
3099
- return JSON.stringify(OrGte$outboundSchema.parse(orGte));
3100
- }
3101
-
3102
- /** @internal */
3103
- export type OrGt$Outbound = {
3104
- gt: number;
3105
- };
3106
-
3107
- /** @internal */
3108
- export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
3109
- z.object({
3110
- gt: z.number(),
3111
- });
3112
-
3113
- export function orGtToJSON(orGt: OrGt): string {
3114
- return JSON.stringify(OrGt$outboundSchema.parse(orGt));
3115
- }
3116
-
3117
- /** @internal */
3118
- export type DeploymentGetConfigOrNe$Outbound = string | number | boolean;
3119
-
3120
- /** @internal */
3121
- export const DeploymentGetConfigOrNe$outboundSchema: z.ZodType<
3122
- DeploymentGetConfigOrNe$Outbound,
3123
- z.ZodTypeDef,
3124
- DeploymentGetConfigOrNe
3125
- > = z.union([z.string(), z.number(), z.boolean()]);
3126
-
3127
- export function deploymentGetConfigOrNeToJSON(
3128
- deploymentGetConfigOrNe: DeploymentGetConfigOrNe,
3129
- ): string {
3130
- return JSON.stringify(
3131
- DeploymentGetConfigOrNe$outboundSchema.parse(deploymentGetConfigOrNe),
3132
- );
3133
- }
3134
-
3135
- /** @internal */
3136
- export type OrNe$Outbound = {
3137
- ne: string | number | boolean;
3138
- };
3139
-
3140
- /** @internal */
3141
- export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
3142
- z.object({
3143
- ne: z.union([z.string(), z.number(), z.boolean()]),
3144
- });
3145
-
3146
- export function orNeToJSON(orNe: OrNe): string {
3147
- return JSON.stringify(OrNe$outboundSchema.parse(orNe));
3148
- }
3149
-
3150
- /** @internal */
3151
- export type DeploymentGetConfigOrEq$Outbound = string | number | boolean;
3152
-
3153
- /** @internal */
3154
- export const DeploymentGetConfigOrEq$outboundSchema: z.ZodType<
3155
- DeploymentGetConfigOrEq$Outbound,
3156
- z.ZodTypeDef,
3157
- DeploymentGetConfigOrEq
3158
- > = z.union([z.string(), z.number(), z.boolean()]);
3159
-
3160
- export function deploymentGetConfigOrEqToJSON(
3161
- deploymentGetConfigOrEq: DeploymentGetConfigOrEq,
3162
- ): string {
3163
- return JSON.stringify(
3164
- DeploymentGetConfigOrEq$outboundSchema.parse(deploymentGetConfigOrEq),
3165
- );
3166
- }
3167
-
3168
- /** @internal */
3169
- export type OrEq$Outbound = {
3170
- eq: string | number | boolean;
3171
- };
3172
-
3173
- /** @internal */
3174
- export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
3175
- z.object({
3176
- eq: z.union([z.string(), z.number(), z.boolean()]),
3177
- });
3178
-
3179
- export function orEqToJSON(orEq: OrEq): string {
3180
- return JSON.stringify(OrEq$outboundSchema.parse(orEq));
3181
- }
3182
-
3183
- /** @internal */
3184
- export type KnowledgeFilterOr$Outbound =
3185
- | OrEq$Outbound
3186
- | OrNe$Outbound
3187
- | OrGt$Outbound
3188
- | OrGte$Outbound
3189
- | OrLt$Outbound
3190
- | OrLte$Outbound
3191
- | OrIn$Outbound
3192
- | OrNin$Outbound
3193
- | OrExists$Outbound;
3194
-
3195
- /** @internal */
3196
- export const KnowledgeFilterOr$outboundSchema: z.ZodType<
3197
- KnowledgeFilterOr$Outbound,
3198
- z.ZodTypeDef,
3199
- KnowledgeFilterOr
3200
- > = z.union([
3201
- z.lazy(() => OrEq$outboundSchema),
3202
- z.lazy(() => OrNe$outboundSchema),
3203
- z.lazy(() => OrGt$outboundSchema),
3204
- z.lazy(() => OrGte$outboundSchema),
3205
- z.lazy(() => OrLt$outboundSchema),
3206
- z.lazy(() => OrLte$outboundSchema),
3207
- z.lazy(() => OrIn$outboundSchema),
3208
- z.lazy(() => OrNin$outboundSchema),
3209
- z.lazy(() => OrExists$outboundSchema),
3210
- ]);
3211
-
3212
- export function knowledgeFilterOrToJSON(
3213
- knowledgeFilterOr: KnowledgeFilterOr,
3214
- ): string {
3215
- return JSON.stringify(
3216
- KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
3217
- );
3218
- }
3219
-
3220
- /** @internal */
3221
- export type Or$Outbound = {
3222
- or: Array<
3223
- {
3224
- [k: string]:
3225
- | OrEq$Outbound
3226
- | OrNe$Outbound
3227
- | OrGt$Outbound
3228
- | OrGte$Outbound
3229
- | OrLt$Outbound
3230
- | OrLte$Outbound
3231
- | OrIn$Outbound
3232
- | OrNin$Outbound
3233
- | OrExists$Outbound;
3234
- }
3235
- >;
3236
- };
3237
-
3238
- /** @internal */
3239
- export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
3240
- .object({
3241
- or: z.array(
3242
- z.record(z.union([
3243
- z.lazy(() => OrEq$outboundSchema),
3244
- z.lazy(() =>
3245
- OrNe$outboundSchema
3246
- ),
3247
- z.lazy(() => OrGt$outboundSchema),
3248
- z.lazy(() => OrGte$outboundSchema),
3249
- z.lazy(() => OrLt$outboundSchema),
3250
- z.lazy(() => OrLte$outboundSchema),
3251
- z.lazy(() => OrIn$outboundSchema),
3252
- z.lazy(() => OrNin$outboundSchema),
3253
- z.lazy(() => OrExists$outboundSchema),
3254
- ])),
3255
- ),
3256
- });
3257
-
3258
- export function orToJSON(or: Or): string {
3259
- return JSON.stringify(Or$outboundSchema.parse(or));
3260
- }
3261
-
3262
- /** @internal */
3263
- export type AndExists$Outbound = {
3264
- exists: boolean;
3265
- };
3266
-
3267
- /** @internal */
3268
- export const AndExists$outboundSchema: z.ZodType<
3269
- AndExists$Outbound,
3270
- z.ZodTypeDef,
3271
- AndExists
3272
- > = z.object({
3273
- exists: z.boolean(),
3274
- });
3275
-
3276
- export function andExistsToJSON(andExists: AndExists): string {
3277
- return JSON.stringify(AndExists$outboundSchema.parse(andExists));
3278
- }
3279
-
3280
- /** @internal */
3281
- export type DeploymentGetConfigAndNin$Outbound = string | number | boolean;
3282
-
3283
- /** @internal */
3284
- export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
3285
- DeploymentGetConfigAndNin$Outbound,
3286
- z.ZodTypeDef,
3287
- DeploymentGetConfigAndNin
3288
- > = z.union([z.string(), z.number(), z.boolean()]);
3289
-
3290
- export function deploymentGetConfigAndNinToJSON(
3291
- deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
3292
- ): string {
3293
- return JSON.stringify(
3294
- DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
3295
- );
3296
- }
3297
-
3298
- /** @internal */
3299
- export type AndNin$Outbound = {
3300
- nin: Array<string | number | boolean>;
3301
- };
3302
-
3303
- /** @internal */
3304
- export const AndNin$outboundSchema: z.ZodType<
3305
- AndNin$Outbound,
3306
- z.ZodTypeDef,
3307
- AndNin
3308
- > = z.object({
3309
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3310
- });
3311
-
3312
- export function andNinToJSON(andNin: AndNin): string {
3313
- return JSON.stringify(AndNin$outboundSchema.parse(andNin));
3314
- }
3315
-
3316
- /** @internal */
3317
- export type DeploymentGetConfigAndIn$Outbound = string | number | boolean;
3318
-
3319
- /** @internal */
3320
- export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
3321
- DeploymentGetConfigAndIn$Outbound,
3322
- z.ZodTypeDef,
3323
- DeploymentGetConfigAndIn
3324
- > = z.union([z.string(), z.number(), z.boolean()]);
3325
-
3326
- export function deploymentGetConfigAndInToJSON(
3327
- deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
3328
- ): string {
3329
- return JSON.stringify(
3330
- DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
3331
- );
3332
- }
3333
-
3334
- /** @internal */
3335
- export type AndIn$Outbound = {
3336
- in: Array<string | number | boolean>;
3337
- };
3338
-
3339
- /** @internal */
3340
- export const AndIn$outboundSchema: z.ZodType<
3341
- AndIn$Outbound,
3342
- z.ZodTypeDef,
3343
- AndIn
3344
- > = z.object({
3345
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3346
- });
3347
-
3348
- export function andInToJSON(andIn: AndIn): string {
3349
- return JSON.stringify(AndIn$outboundSchema.parse(andIn));
3350
- }
3351
-
3352
- /** @internal */
3353
- export type AndLte$Outbound = {
3354
- lte: number;
3355
- };
3356
-
3357
- /** @internal */
3358
- export const AndLte$outboundSchema: z.ZodType<
3359
- AndLte$Outbound,
3360
- z.ZodTypeDef,
3361
- AndLte
3362
- > = z.object({
3363
- lte: z.number(),
3364
- });
3365
-
3366
- export function andLteToJSON(andLte: AndLte): string {
3367
- return JSON.stringify(AndLte$outboundSchema.parse(andLte));
3368
- }
3369
-
3370
- /** @internal */
3371
- export type AndLt$Outbound = {
3372
- lt: number;
3373
- };
3374
-
3375
- /** @internal */
3376
- export const AndLt$outboundSchema: z.ZodType<
3377
- AndLt$Outbound,
3378
- z.ZodTypeDef,
3379
- AndLt
3380
- > = z.object({
3381
- lt: z.number(),
3382
- });
3383
-
3384
- export function andLtToJSON(andLt: AndLt): string {
3385
- return JSON.stringify(AndLt$outboundSchema.parse(andLt));
3386
- }
3387
-
3388
- /** @internal */
3389
- export type AndGte$Outbound = {
3390
- gte: number;
3391
- };
3392
-
3393
- /** @internal */
3394
- export const AndGte$outboundSchema: z.ZodType<
3395
- AndGte$Outbound,
3396
- z.ZodTypeDef,
3397
- AndGte
3398
- > = z.object({
3399
- gte: z.number(),
3400
- });
3401
-
3402
- export function andGteToJSON(andGte: AndGte): string {
3403
- return JSON.stringify(AndGte$outboundSchema.parse(andGte));
3404
- }
3405
-
3406
- /** @internal */
3407
- export type AndGt$Outbound = {
3408
- gt: number;
3409
- };
3410
-
3411
- /** @internal */
3412
- export const AndGt$outboundSchema: z.ZodType<
3413
- AndGt$Outbound,
3414
- z.ZodTypeDef,
3415
- AndGt
3416
- > = z.object({
3417
- gt: z.number(),
3418
- });
3419
-
3420
- export function andGtToJSON(andGt: AndGt): string {
3421
- return JSON.stringify(AndGt$outboundSchema.parse(andGt));
3422
- }
3423
-
3424
- /** @internal */
3425
- export type DeploymentGetConfigAndNe$Outbound = string | number | boolean;
3426
-
3427
- /** @internal */
3428
- export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
3429
- DeploymentGetConfigAndNe$Outbound,
3430
- z.ZodTypeDef,
3431
- DeploymentGetConfigAndNe
3432
- > = z.union([z.string(), z.number(), z.boolean()]);
3433
-
3434
- export function deploymentGetConfigAndNeToJSON(
3435
- deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
3436
- ): string {
3437
- return JSON.stringify(
3438
- DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
3439
- );
3440
- }
3441
-
3442
- /** @internal */
3443
- export type AndNe$Outbound = {
3444
- ne: string | number | boolean;
3445
- };
3446
-
3447
- /** @internal */
3448
- export const AndNe$outboundSchema: z.ZodType<
3449
- AndNe$Outbound,
3450
- z.ZodTypeDef,
3451
- AndNe
3452
- > = z.object({
3453
- ne: z.union([z.string(), z.number(), z.boolean()]),
3454
- });
3455
-
3456
- export function andNeToJSON(andNe: AndNe): string {
3457
- return JSON.stringify(AndNe$outboundSchema.parse(andNe));
3458
- }
3459
-
3460
- /** @internal */
3461
- export type DeploymentGetConfigAndEq$Outbound = string | number | boolean;
3462
-
3463
- /** @internal */
3464
- export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
3465
- DeploymentGetConfigAndEq$Outbound,
3466
- z.ZodTypeDef,
3467
- DeploymentGetConfigAndEq
3468
- > = z.union([z.string(), z.number(), z.boolean()]);
3469
-
3470
- export function deploymentGetConfigAndEqToJSON(
3471
- deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
3472
- ): string {
3473
- return JSON.stringify(
3474
- DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
3475
- );
3476
- }
3477
-
3478
- /** @internal */
3479
- export type AndEq$Outbound = {
3480
- eq: string | number | boolean;
3481
- };
3482
-
3483
- /** @internal */
3484
- export const AndEq$outboundSchema: z.ZodType<
3485
- AndEq$Outbound,
3486
- z.ZodTypeDef,
3487
- AndEq
3488
- > = z.object({
3489
- eq: z.union([z.string(), z.number(), z.boolean()]),
3490
- });
3491
-
3492
- export function andEqToJSON(andEq: AndEq): string {
3493
- return JSON.stringify(AndEq$outboundSchema.parse(andEq));
3494
- }
3495
-
3496
- /** @internal */
3497
- export type KnowledgeFilterAnd$Outbound =
3498
- | AndEq$Outbound
3499
- | AndNe$Outbound
3500
- | AndGt$Outbound
3501
- | AndGte$Outbound
3502
- | AndLt$Outbound
3503
- | AndLte$Outbound
3504
- | AndIn$Outbound
3505
- | AndNin$Outbound
3506
- | AndExists$Outbound;
3507
-
3508
- /** @internal */
3509
- export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
3510
- KnowledgeFilterAnd$Outbound,
3511
- z.ZodTypeDef,
3512
- KnowledgeFilterAnd
3513
- > = z.union([
3514
- z.lazy(() => AndEq$outboundSchema),
3515
- z.lazy(() => AndNe$outboundSchema),
3516
- z.lazy(() => AndGt$outboundSchema),
3517
- z.lazy(() => AndGte$outboundSchema),
3518
- z.lazy(() => AndLt$outboundSchema),
3519
- z.lazy(() => AndLte$outboundSchema),
3520
- z.lazy(() => AndIn$outboundSchema),
3521
- z.lazy(() => AndNin$outboundSchema),
3522
- z.lazy(() => AndExists$outboundSchema),
3523
- ]);
3524
-
3525
- export function knowledgeFilterAndToJSON(
3526
- knowledgeFilterAnd: KnowledgeFilterAnd,
3527
- ): string {
3528
- return JSON.stringify(
3529
- KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
3530
- );
3531
- }
3532
-
3533
- /** @internal */
3534
- export type And$Outbound = {
3535
- and: Array<
3536
- {
3537
- [k: string]:
3538
- | AndEq$Outbound
3539
- | AndNe$Outbound
3540
- | AndGt$Outbound
3541
- | AndGte$Outbound
3542
- | AndLt$Outbound
3543
- | AndLte$Outbound
3544
- | AndIn$Outbound
3545
- | AndNin$Outbound
3546
- | AndExists$Outbound;
3547
- }
3548
- >;
3549
- };
3550
-
3551
- /** @internal */
3552
- export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
3553
- .object({
3554
- and: z.array(
3555
- z.record(z.union([
3556
- z.lazy(() => AndEq$outboundSchema),
3557
- z.lazy(() =>
3558
- AndNe$outboundSchema
3559
- ),
3560
- z.lazy(() => AndGt$outboundSchema),
3561
- z.lazy(() => AndGte$outboundSchema),
3562
- z.lazy(() => AndLt$outboundSchema),
3563
- z.lazy(() => AndLte$outboundSchema),
3564
- z.lazy(() => AndIn$outboundSchema),
3565
- z.lazy(() => AndNin$outboundSchema),
3566
- z.lazy(() => AndExists$outboundSchema),
3567
- ])),
3568
- ),
3569
- });
3570
-
3571
- export function andToJSON(and: And): string {
3572
- return JSON.stringify(And$outboundSchema.parse(and));
3573
- }
3574
-
3575
- /** @internal */
3576
- export type Exists$Outbound = {
3577
- exists: boolean;
3578
- };
3579
-
3580
- /** @internal */
3581
- export const Exists$outboundSchema: z.ZodType<
3582
- Exists$Outbound,
3583
- z.ZodTypeDef,
3584
- Exists
3585
- > = z.object({
3586
- exists: z.boolean(),
3587
- });
3588
-
3589
- export function existsToJSON(exists: Exists): string {
3590
- return JSON.stringify(Exists$outboundSchema.parse(exists));
3591
- }
3592
-
3593
- /** @internal */
3594
- export type OneNin$Outbound = string | number | boolean;
3595
-
3596
- /** @internal */
3597
- export const OneNin$outboundSchema: z.ZodType<
3598
- OneNin$Outbound,
3599
- z.ZodTypeDef,
3600
- OneNin
3601
- > = z.union([z.string(), z.number(), z.boolean()]);
3602
-
3603
- export function oneNinToJSON(oneNin: OneNin): string {
3604
- return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
3605
- }
3606
-
3607
- /** @internal */
3608
- export type Nin$Outbound = {
3609
- nin: Array<string | number | boolean>;
3610
- };
3611
-
3612
- /** @internal */
3613
- export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
3614
- .object({
3615
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3616
- });
3617
-
3618
- export function ninToJSON(nin: Nin): string {
3619
- return JSON.stringify(Nin$outboundSchema.parse(nin));
3620
- }
3621
-
3622
- /** @internal */
3623
- export type OneIn$Outbound = string | number | boolean;
3624
-
3625
- /** @internal */
3626
- export const OneIn$outboundSchema: z.ZodType<
3627
- OneIn$Outbound,
3628
- z.ZodTypeDef,
3629
- OneIn
3630
- > = z.union([z.string(), z.number(), z.boolean()]);
3631
-
3632
- export function oneInToJSON(oneIn: OneIn): string {
3633
- return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
3634
- }
3635
-
3636
- /** @internal */
3637
- export type In$Outbound = {
3638
- in: Array<string | number | boolean>;
3639
- };
3640
-
3641
- /** @internal */
3642
- export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
3643
- .object({
3644
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3645
- });
3646
-
3647
- export function inToJSON(value: In): string {
3648
- return JSON.stringify(In$outboundSchema.parse(value));
3649
- }
3650
-
3651
- /** @internal */
3652
- export type Lte$Outbound = {
3653
- lte: number;
3654
- };
3655
-
3656
- /** @internal */
3657
- export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
3658
- .object({
3659
- lte: z.number(),
3660
- });
3661
-
3662
- export function lteToJSON(lte: Lte): string {
3663
- return JSON.stringify(Lte$outboundSchema.parse(lte));
3664
- }
3665
-
3666
- /** @internal */
3667
- export type Lt$Outbound = {
3668
- lt: number;
3669
- };
3670
-
3671
- /** @internal */
3672
- export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
3673
- .object({
3674
- lt: z.number(),
3675
- });
3676
-
3677
- export function ltToJSON(lt: Lt): string {
3678
- return JSON.stringify(Lt$outboundSchema.parse(lt));
3679
- }
3680
-
3681
- /** @internal */
3682
- export type Gte$Outbound = {
3683
- gte: number;
3684
- };
3685
-
3686
- /** @internal */
3687
- export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
3688
- .object({
3689
- gte: z.number(),
3690
- });
3691
-
3692
- export function gteToJSON(gte: Gte): string {
3693
- return JSON.stringify(Gte$outboundSchema.parse(gte));
3694
- }
3695
-
3696
- /** @internal */
3697
- export type Gt$Outbound = {
3698
- gt: number;
3699
- };
3700
-
3701
- /** @internal */
3702
- export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
3703
- .object({
3704
- gt: z.number(),
3705
- });
3706
-
3707
- export function gtToJSON(gt: Gt): string {
3708
- return JSON.stringify(Gt$outboundSchema.parse(gt));
3709
- }
3710
-
3711
- /** @internal */
3712
- export type OneNe$Outbound = string | number | boolean;
3713
-
3714
- /** @internal */
3715
- export const OneNe$outboundSchema: z.ZodType<
3716
- OneNe$Outbound,
3717
- z.ZodTypeDef,
3718
- OneNe
3719
- > = z.union([z.string(), z.number(), z.boolean()]);
3720
-
3721
- export function oneNeToJSON(oneNe: OneNe): string {
3722
- return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
3723
- }
3724
-
3725
- /** @internal */
3726
- export type Ne$Outbound = {
3727
- ne: string | number | boolean;
3728
- };
3729
-
3730
- /** @internal */
3731
- export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
3732
- .object({
3733
- ne: z.union([z.string(), z.number(), z.boolean()]),
3734
- });
3735
-
3736
- export function neToJSON(ne: Ne): string {
3737
- return JSON.stringify(Ne$outboundSchema.parse(ne));
3738
- }
3739
-
3740
- /** @internal */
3741
- export type OneEq$Outbound = string | number | boolean;
3742
-
3743
- /** @internal */
3744
- export const OneEq$outboundSchema: z.ZodType<
3745
- OneEq$Outbound,
3746
- z.ZodTypeDef,
3747
- OneEq
3748
- > = z.union([z.string(), z.number(), z.boolean()]);
3749
-
3750
- export function oneEqToJSON(oneEq: OneEq): string {
3751
- return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
3752
- }
3753
-
3754
- /** @internal */
3755
- export type Eq$Outbound = {
3756
- eq: string | number | boolean;
3757
- };
3758
-
3759
- /** @internal */
3760
- export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
3761
- .object({
3762
- eq: z.union([z.string(), z.number(), z.boolean()]),
3763
- });
3764
-
3765
- export function eqToJSON(eq: Eq): string {
3766
- return JSON.stringify(Eq$outboundSchema.parse(eq));
3767
- }
3768
-
3769
- /** @internal */
3770
- export type KnowledgeFilter1$Outbound =
3771
- | Eq$Outbound
3772
- | Ne$Outbound
3773
- | Gt$Outbound
3774
- | Gte$Outbound
3775
- | Lt$Outbound
3776
- | Lte$Outbound
3777
- | In$Outbound
3778
- | Nin$Outbound
3779
- | Exists$Outbound;
3780
-
3781
- /** @internal */
3782
- export const KnowledgeFilter1$outboundSchema: z.ZodType<
3783
- KnowledgeFilter1$Outbound,
3784
- z.ZodTypeDef,
3785
- KnowledgeFilter1
3786
- > = z.union([
3787
- z.lazy(() => Eq$outboundSchema),
3788
- z.lazy(() => Ne$outboundSchema),
3789
- z.lazy(() => Gt$outboundSchema),
3790
- z.lazy(() => Gte$outboundSchema),
3791
- z.lazy(() => Lt$outboundSchema),
3792
- z.lazy(() => Lte$outboundSchema),
3793
- z.lazy(() => In$outboundSchema),
3794
- z.lazy(() => Nin$outboundSchema),
3795
- z.lazy(() => Exists$outboundSchema),
3796
- ]);
3797
-
3798
- export function knowledgeFilter1ToJSON(
3799
- knowledgeFilter1: KnowledgeFilter1,
3800
- ): string {
3801
- return JSON.stringify(
3802
- KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
3803
- );
3804
- }
3805
-
3806
- /** @internal */
3807
- export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
3808
- [k: string]:
3809
- | Eq$Outbound
3810
- | Ne$Outbound
3811
- | Gt$Outbound
3812
- | Gte$Outbound
3813
- | Lt$Outbound
3814
- | Lte$Outbound
3815
- | In$Outbound
3816
- | Nin$Outbound
3817
- | Exists$Outbound;
3818
- };
3819
-
3820
- /** @internal */
3821
- export const KnowledgeFilter$outboundSchema: z.ZodType<
3822
- KnowledgeFilter$Outbound,
3823
- z.ZodTypeDef,
3824
- KnowledgeFilter
3825
- > = z.union([
3826
- z.lazy(() => And$outboundSchema),
3827
- z.lazy(() => Or$outboundSchema),
3828
- z.record(z.union([
3829
- z.lazy(() => Eq$outboundSchema),
3830
- z.lazy(() => Ne$outboundSchema),
3831
- z.lazy(() => Gt$outboundSchema),
3832
- z.lazy(() => Gte$outboundSchema),
3833
- z.lazy(() => Lt$outboundSchema),
3834
- z.lazy(() => Lte$outboundSchema),
3835
- z.lazy(() => In$outboundSchema),
3836
- z.lazy(() => Nin$outboundSchema),
3837
- z.lazy(() => Exists$outboundSchema),
3838
- ])),
3839
- ]);
3840
-
3841
- export function knowledgeFilterToJSON(
3842
- knowledgeFilter: KnowledgeFilter,
3843
- ): string {
3844
- return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
3845
- }
3846
-
3847
- /** @internal */
3848
- export type DeploymentGetConfigRequestBody$Outbound = {
3849
- key: string;
3850
- inputs?: { [k: string]: any } | undefined;
3851
- context?: { [k: string]: any } | undefined;
3852
- prefix_messages?:
3853
- | Array<
3854
- | SystemMessage$Outbound
3855
- | DeveloperMessage$Outbound
3856
- | UserMessage$Outbound
3857
- | AssistantMessage$Outbound
3858
- | ToolMessage$Outbound
3859
- >
3860
- | undefined;
3861
- messages?:
3862
- | Array<
3863
- | MessagesSystemMessage$Outbound
3864
- | MessagesDeveloperMessage$Outbound
3865
- | MessagesUserMessage$Outbound
3866
- | MessagesAssistantMessage$Outbound
3867
- | MessagesToolMessage$Outbound
3868
- >
3869
- | undefined;
3870
- file_ids?: Array<string> | undefined;
3871
- metadata?: { [k: string]: any } | undefined;
3872
- extra_params?: { [k: string]: any } | undefined;
3873
- documents?: Array<Documents$Outbound> | undefined;
3874
- invoke_options?: InvokeOptions$Outbound | undefined;
3875
- thread?: Thread$Outbound | undefined;
3876
- knowledge_filter?: And$Outbound | Or$Outbound | {
3877
- [k: string]:
3878
- | Eq$Outbound
3879
- | Ne$Outbound
3880
- | Gt$Outbound
3881
- | Gte$Outbound
3882
- | Lt$Outbound
3883
- | Lte$Outbound
3884
- | In$Outbound
3885
- | Nin$Outbound
3886
- | Exists$Outbound;
3887
- } | undefined;
3888
- };
3889
-
3890
- /** @internal */
3891
- export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
3892
- DeploymentGetConfigRequestBody$Outbound,
3893
- z.ZodTypeDef,
3894
- DeploymentGetConfigRequestBody
3895
- > = z.object({
3896
- key: z.string(),
3897
- inputs: z.record(z.any()).optional(),
3898
- context: z.record(z.any()).optional(),
3899
- prefixMessages: z.array(
3900
- z.union([
3901
- z.lazy(() => SystemMessage$outboundSchema),
3902
- z.lazy(() => DeveloperMessage$outboundSchema),
3903
- z.lazy(() => UserMessage$outboundSchema),
3904
- z.lazy(() => AssistantMessage$outboundSchema),
3905
- z.lazy(() => ToolMessage$outboundSchema),
3906
- ]),
3907
- ).optional(),
3908
- messages: z.array(
3909
- z.union([
3910
- z.lazy(() => MessagesSystemMessage$outboundSchema),
3911
- z.lazy(() => MessagesDeveloperMessage$outboundSchema),
3912
- z.lazy(() => MessagesUserMessage$outboundSchema),
3913
- z.lazy(() => MessagesAssistantMessage$outboundSchema),
3914
- z.lazy(() => MessagesToolMessage$outboundSchema),
3915
- ]),
3916
- ).optional(),
3917
- fileIds: z.array(z.string()).optional(),
3918
- metadata: z.record(z.any()).optional(),
3919
- extraParams: z.record(z.any()).optional(),
3920
- documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
3921
- invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
3922
- thread: z.lazy(() => Thread$outboundSchema).optional(),
3923
- knowledgeFilter: z.union([
3924
- z.lazy(() => And$outboundSchema),
3925
- z.lazy(() => Or$outboundSchema),
3926
- z.record(z.union([
3927
- z.lazy(() => Eq$outboundSchema),
3928
- z.lazy(() => Ne$outboundSchema),
3929
- z.lazy(() => Gt$outboundSchema),
3930
- z.lazy(() => Gte$outboundSchema),
3931
- z.lazy(() => Lt$outboundSchema),
3932
- z.lazy(() => Lte$outboundSchema),
3933
- z.lazy(() => In$outboundSchema),
3934
- z.lazy(() => Nin$outboundSchema),
3935
- z.lazy(() => Exists$outboundSchema),
3936
- ])),
3937
- ]).optional(),
3938
- }).transform((v) => {
3939
- return remap$(v, {
3940
- prefixMessages: "prefix_messages",
3941
- fileIds: "file_ids",
3942
- extraParams: "extra_params",
3943
- invokeOptions: "invoke_options",
3944
- knowledgeFilter: "knowledge_filter",
3945
- });
3946
- });
3947
-
3948
- export function deploymentGetConfigRequestBodyToJSON(
3949
- deploymentGetConfigRequestBody: DeploymentGetConfigRequestBody,
3950
- ): string {
3951
- return JSON.stringify(
3952
- DeploymentGetConfigRequestBody$outboundSchema.parse(
3953
- deploymentGetConfigRequestBody,
3954
- ),
3955
- );
3956
- }
3957
-
3958
- /** @internal */
3959
- export const DeploymentGetConfigType$inboundSchema: z.ZodNativeEnum<
3960
- typeof DeploymentGetConfigType
3961
- > = z.nativeEnum(DeploymentGetConfigType);
3962
-
3963
- /** @internal */
3964
- export const DeploymentGetConfigRole$inboundSchema: z.ZodNativeEnum<
3965
- typeof DeploymentGetConfigRole
3966
- > = z.nativeEnum(DeploymentGetConfigRole);
3967
-
3968
- /** @internal */
3969
- export const TwoFile$inboundSchema: z.ZodType<TwoFile, z.ZodTypeDef, unknown> =
3970
- z.object({
3971
- file_data: z.string().optional(),
3972
- uri: z.string().optional(),
3973
- mimeType: z.string().optional(),
3974
- filename: z.string().optional(),
3975
- }).transform((v) => {
3976
- return remap$(v, {
3977
- "file_data": "fileData",
3978
- });
3979
- });
3980
-
3981
- export function twoFileFromJSON(
3982
- jsonString: string,
3983
- ): SafeParseResult<TwoFile, SDKValidationError> {
3984
- return safeParse(
3985
- jsonString,
3986
- (x) => TwoFile$inboundSchema.parse(JSON.parse(x)),
3987
- `Failed to parse 'TwoFile' from JSON`,
3988
- );
3989
- }
3990
-
3991
- /** @internal */
3992
- export const DeploymentGetConfig23$inboundSchema: z.ZodType<
3993
- DeploymentGetConfig23,
3994
- z.ZodTypeDef,
3995
- unknown
3996
- > = z.object({
3997
- type: z.literal("file"),
3998
- file: z.lazy(() => TwoFile$inboundSchema),
3999
- });
4000
-
4001
- export function deploymentGetConfig23FromJSON(
4002
- jsonString: string,
4003
- ): SafeParseResult<DeploymentGetConfig23, SDKValidationError> {
4004
- return safeParse(
4005
- jsonString,
4006
- (x) => DeploymentGetConfig23$inboundSchema.parse(JSON.parse(x)),
4007
- `Failed to parse 'DeploymentGetConfig23' from JSON`,
4008
- );
4009
- }
4010
-
4011
- /** @internal */
4012
- export const TwoImageUrl$inboundSchema: z.ZodType<
4013
- TwoImageUrl,
4014
- z.ZodTypeDef,
4015
- unknown
4016
- > = z.object({
4017
- id: z.string().optional(),
4018
- url: z.string(),
4019
- detail: z.string().optional(),
4020
- });
4021
-
4022
- export function twoImageUrlFromJSON(
4023
- jsonString: string,
4024
- ): SafeParseResult<TwoImageUrl, SDKValidationError> {
4025
- return safeParse(
4026
- jsonString,
4027
- (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
4028
- `Failed to parse 'TwoImageUrl' from JSON`,
4029
- );
4030
- }
4031
-
4032
- /** @internal */
4033
- export const DeploymentGetConfig22$inboundSchema: z.ZodType<
4034
- DeploymentGetConfig22,
4035
- z.ZodTypeDef,
4036
- unknown
4037
- > = z.object({
4038
- type: z.literal("image_url"),
4039
- image_url: z.lazy(() => TwoImageUrl$inboundSchema),
4040
- }).transform((v) => {
4041
- return remap$(v, {
4042
- "image_url": "imageUrl",
4043
- });
4044
- });
4045
-
4046
- export function deploymentGetConfig22FromJSON(
4047
- jsonString: string,
4048
- ): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
4049
- return safeParse(
4050
- jsonString,
4051
- (x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
4052
- `Failed to parse 'DeploymentGetConfig22' from JSON`,
4053
- );
4054
- }
4055
-
4056
- /** @internal */
4057
- export const DeploymentGetConfig21$inboundSchema: z.ZodType<
4058
- DeploymentGetConfig21,
4059
- z.ZodTypeDef,
4060
- unknown
4061
- > = z.object({
4062
- type: z.literal("text"),
4063
- text: z.string(),
4064
- });
4065
-
4066
- export function deploymentGetConfig21FromJSON(
4067
- jsonString: string,
4068
- ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
4069
- return safeParse(
4070
- jsonString,
4071
- (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
4072
- `Failed to parse 'DeploymentGetConfig21' from JSON`,
4073
- );
4074
- }
4075
-
4076
- /** @internal */
4077
- export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
4078
- z.ZodType<
4079
- DeploymentGetConfigContentDeploymentsResponse2,
4080
- z.ZodTypeDef,
4081
- unknown
4082
- > = z.union([
4083
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
4084
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4085
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
4086
- ]);
4087
-
4088
- export function deploymentGetConfigContentDeploymentsResponse2FromJSON(
4089
- jsonString: string,
4090
- ): SafeParseResult<
4091
- DeploymentGetConfigContentDeploymentsResponse2,
4092
- SDKValidationError
4093
- > {
4094
- return safeParse(
4095
- jsonString,
4096
- (x) =>
4097
- DeploymentGetConfigContentDeploymentsResponse2$inboundSchema.parse(
4098
- JSON.parse(x),
4099
- ),
4100
- `Failed to parse 'DeploymentGetConfigContentDeploymentsResponse2' from JSON`,
4101
- );
4102
- }
4103
-
4104
- /** @internal */
4105
- export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
4106
- DeploymentGetConfigContent,
4107
- z.ZodTypeDef,
4108
- unknown
4109
- > = z.union([
4110
- z.string(),
4111
- z.array(z.union([
4112
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
4113
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4114
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
4115
- ])),
4116
- ]);
4117
-
4118
- export function deploymentGetConfigContentFromJSON(
4119
- jsonString: string,
4120
- ): SafeParseResult<DeploymentGetConfigContent, SDKValidationError> {
4121
- return safeParse(
4122
- jsonString,
4123
- (x) => DeploymentGetConfigContent$inboundSchema.parse(JSON.parse(x)),
4124
- `Failed to parse 'DeploymentGetConfigContent' from JSON`,
4125
- );
4126
- }
4127
-
4128
- /** @internal */
4129
- export const DeploymentGetConfigDeploymentsResponseType$inboundSchema:
4130
- z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType> = z
4131
- .nativeEnum(DeploymentGetConfigDeploymentsResponseType);
4132
-
4133
- /** @internal */
4134
- export const DeploymentGetConfigDeploymentsFunction$inboundSchema: z.ZodType<
4135
- DeploymentGetConfigDeploymentsFunction,
4136
- z.ZodTypeDef,
4137
- unknown
4138
- > = z.object({
4139
- name: z.string(),
4140
- arguments: z.string(),
4141
- });
4142
-
4143
- export function deploymentGetConfigDeploymentsFunctionFromJSON(
4144
- jsonString: string,
4145
- ): SafeParseResult<DeploymentGetConfigDeploymentsFunction, SDKValidationError> {
4146
- return safeParse(
4147
- jsonString,
4148
- (x) =>
4149
- DeploymentGetConfigDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
4150
- `Failed to parse 'DeploymentGetConfigDeploymentsFunction' from JSON`,
4151
- );
4152
- }
4153
-
4154
- /** @internal */
4155
- export const DeploymentGetConfigToolCalls$inboundSchema: z.ZodType<
4156
- DeploymentGetConfigToolCalls,
4157
- z.ZodTypeDef,
4158
- unknown
4159
- > = z.object({
4160
- id: z.string().optional(),
4161
- index: z.number().optional(),
4162
- type: DeploymentGetConfigDeploymentsResponseType$inboundSchema,
4163
- function: z.lazy(() => DeploymentGetConfigDeploymentsFunction$inboundSchema),
4164
- });
4165
-
4166
- export function deploymentGetConfigToolCallsFromJSON(
4167
- jsonString: string,
4168
- ): SafeParseResult<DeploymentGetConfigToolCalls, SDKValidationError> {
4169
- return safeParse(
4170
- jsonString,
4171
- (x) => DeploymentGetConfigToolCalls$inboundSchema.parse(JSON.parse(x)),
4172
- `Failed to parse 'DeploymentGetConfigToolCalls' from JSON`,
4173
- );
4174
- }
4175
-
4176
- /** @internal */
4177
- export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
4178
- DeploymentGetConfigDeploymentsMessages,
4179
- z.ZodTypeDef,
4180
- unknown
4181
- > = z.object({
4182
- role: DeploymentGetConfigRole$inboundSchema,
4183
- content: z.nullable(
4184
- z.union([
4185
- z.string(),
4186
- z.array(
4187
- z.union([
4188
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
4189
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4190
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
4191
- ]),
4192
- ),
4193
- ]),
4194
- ),
4195
- tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
4196
- .optional(),
4197
- tool_call_id: z.nullable(z.string()).optional(),
4198
- }).transform((v) => {
4199
- return remap$(v, {
4200
- "tool_calls": "toolCalls",
4201
- "tool_call_id": "toolCallId",
4202
- });
4203
- });
4204
-
4205
- export function deploymentGetConfigDeploymentsMessagesFromJSON(
4206
- jsonString: string,
4207
- ): SafeParseResult<DeploymentGetConfigDeploymentsMessages, SDKValidationError> {
4208
- return safeParse(
4209
- jsonString,
4210
- (x) =>
4211
- DeploymentGetConfigDeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
4212
- `Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`,
4213
- );
4214
- }
4215
-
4216
- /** @internal */
4217
- export const DeploymentGetConfigFormat$inboundSchema: z.ZodNativeEnum<
4218
- typeof DeploymentGetConfigFormat
4219
- > = z.nativeEnum(DeploymentGetConfigFormat);
4220
-
4221
- /** @internal */
4222
- export const ResponseFormat6$inboundSchema: z.ZodNativeEnum<
4223
- typeof ResponseFormat6
4224
- > = z.nativeEnum(ResponseFormat6);
4225
-
4226
- /** @internal */
4227
- export const ResponseFormat5$inboundSchema: z.ZodNativeEnum<
4228
- typeof ResponseFormat5
4229
- > = z.nativeEnum(ResponseFormat5);
4230
-
4231
- /** @internal */
4232
- export const ResponseFormat4$inboundSchema: z.ZodNativeEnum<
4233
- typeof ResponseFormat4
4234
- > = z.nativeEnum(ResponseFormat4);
4235
-
4236
- /** @internal */
4237
- export const DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema:
4238
- z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType> = z
4239
- .nativeEnum(DeploymentGetConfigResponseFormatDeploymentsType);
4240
-
4241
- /** @internal */
4242
- export const ResponseFormat3$inboundSchema: z.ZodType<
4243
- ResponseFormat3,
4244
- z.ZodTypeDef,
4245
- unknown
4246
- > = z.object({
4247
- type: DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema,
4248
- });
4249
-
4250
- export function responseFormat3FromJSON(
4251
- jsonString: string,
4252
- ): SafeParseResult<ResponseFormat3, SDKValidationError> {
4253
- return safeParse(
4254
- jsonString,
4255
- (x) => ResponseFormat3$inboundSchema.parse(JSON.parse(x)),
4256
- `Failed to parse 'ResponseFormat3' from JSON`,
4257
- );
4258
- }
4259
-
4260
- /** @internal */
4261
- export const DeploymentGetConfigResponseFormatType$inboundSchema:
4262
- z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatType> = z.nativeEnum(
4263
- DeploymentGetConfigResponseFormatType,
4264
- );
4265
-
4266
- /** @internal */
4267
- export const ResponseFormat2$inboundSchema: z.ZodType<
4268
- ResponseFormat2,
4269
- z.ZodTypeDef,
4270
- unknown
4271
- > = z.object({
4272
- type: DeploymentGetConfigResponseFormatType$inboundSchema,
4273
- });
4274
-
4275
- export function responseFormat2FromJSON(
4276
- jsonString: string,
4277
- ): SafeParseResult<ResponseFormat2, SDKValidationError> {
4278
- return safeParse(
4279
- jsonString,
4280
- (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
4281
- `Failed to parse 'ResponseFormat2' from JSON`,
4282
- );
4283
- }
4284
-
4285
- /** @internal */
4286
- export const DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema:
4287
- z.ZodNativeEnum<
4288
- typeof DeploymentGetConfigResponseFormatDeploymentsResponseType
4289
- > = z.nativeEnum(DeploymentGetConfigResponseFormatDeploymentsResponseType);
4290
-
4291
- /** @internal */
4292
- export const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema:
4293
- z.ZodType<
4294
- DeploymentGetConfigResponseFormatJsonSchema,
4295
- z.ZodTypeDef,
4296
- unknown
4297
- > = z.object({
4298
- name: z.string(),
4299
- description: z.string().optional(),
4300
- strict: z.boolean().optional(),
4301
- schema: z.record(z.any()),
4302
- });
4303
-
4304
- export function deploymentGetConfigResponseFormatJsonSchemaFromJSON(
4305
- jsonString: string,
4306
- ): SafeParseResult<
4307
- DeploymentGetConfigResponseFormatJsonSchema,
4308
- SDKValidationError
4309
- > {
4310
- return safeParse(
4311
- jsonString,
4312
- (x) =>
4313
- DeploymentGetConfigResponseFormatJsonSchema$inboundSchema.parse(
4314
- JSON.parse(x),
4315
- ),
4316
- `Failed to parse 'DeploymentGetConfigResponseFormatJsonSchema' from JSON`,
4317
- );
4318
- }
4319
-
4320
- /** @internal */
4321
- export const ResponseFormat1$inboundSchema: z.ZodType<
4322
- ResponseFormat1,
4323
- z.ZodTypeDef,
4324
- unknown
4325
- > = z.object({
4326
- type: DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema,
4327
- display_name: z.string().optional(),
4328
- json_schema: z.lazy(() =>
4329
- DeploymentGetConfigResponseFormatJsonSchema$inboundSchema
4330
- ),
4331
- }).transform((v) => {
4332
- return remap$(v, {
4333
- "display_name": "displayName",
4334
- "json_schema": "jsonSchema",
4335
- });
4336
- });
4337
-
4338
- export function responseFormat1FromJSON(
4339
- jsonString: string,
4340
- ): SafeParseResult<ResponseFormat1, SDKValidationError> {
4341
- return safeParse(
4342
- jsonString,
4343
- (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
4344
- `Failed to parse 'ResponseFormat1' from JSON`,
4345
- );
4346
- }
4347
-
4348
- /** @internal */
4349
- export const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<
4350
- DeploymentGetConfigResponseFormat,
4351
- z.ZodTypeDef,
4352
- unknown
4353
- > = z.union([
4354
- z.lazy(() => ResponseFormat1$inboundSchema),
4355
- z.lazy(() => ResponseFormat2$inboundSchema),
4356
- z.lazy(() => ResponseFormat3$inboundSchema),
4357
- ResponseFormat4$inboundSchema,
4358
- ResponseFormat5$inboundSchema,
4359
- ResponseFormat6$inboundSchema,
4360
- ]);
4361
-
4362
- export function deploymentGetConfigResponseFormatFromJSON(
4363
- jsonString: string,
4364
- ): SafeParseResult<DeploymentGetConfigResponseFormat, SDKValidationError> {
4365
- return safeParse(
4366
- jsonString,
4367
- (x) => DeploymentGetConfigResponseFormat$inboundSchema.parse(JSON.parse(x)),
4368
- `Failed to parse 'DeploymentGetConfigResponseFormat' from JSON`,
4369
- );
4370
- }
4371
-
4372
- /** @internal */
4373
- export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
4374
- typeof PhotoRealVersion
4375
- > = z.nativeEnum(PhotoRealVersion);
4376
-
4377
- /** @internal */
4378
- export const DeploymentGetConfigEncodingFormat$inboundSchema: z.ZodNativeEnum<
4379
- typeof DeploymentGetConfigEncodingFormat
4380
- > = z.nativeEnum(DeploymentGetConfigEncodingFormat);
4381
-
4382
- /** @internal */
4383
- export const DeploymentGetConfigReasoningEffort$inboundSchema: z.ZodNativeEnum<
4384
- typeof DeploymentGetConfigReasoningEffort
4385
- > = z.nativeEnum(DeploymentGetConfigReasoningEffort);
4386
-
4387
- /** @internal */
4388
- export const Verbosity$inboundSchema: z.ZodNativeEnum<typeof Verbosity> = z
4389
- .nativeEnum(Verbosity);
4390
-
4391
- /** @internal */
4392
- export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
4393
- typeof ThinkingLevel
4394
- > = z.nativeEnum(ThinkingLevel);
4395
-
4396
- /** @internal */
4397
- export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
4398
- DeploymentGetConfigParameters,
4399
- z.ZodTypeDef,
4400
- unknown
4401
- > = z.object({
4402
- temperature: z.number().optional(),
4403
- maxTokens: z.number().optional(),
4404
- topK: z.number().optional(),
4405
- topP: z.number().optional(),
4406
- frequencyPenalty: z.number().optional(),
4407
- presencePenalty: z.number().optional(),
4408
- numImages: z.number().optional(),
4409
- seed: z.number().optional(),
4410
- format: DeploymentGetConfigFormat$inboundSchema.optional(),
4411
- dimensions: z.string().optional(),
4412
- quality: z.string().optional(),
4413
- style: z.string().optional(),
4414
- responseFormat: z.nullable(
4415
- z.union([
4416
- z.lazy(() => ResponseFormat1$inboundSchema),
4417
- z.lazy(() => ResponseFormat2$inboundSchema),
4418
- z.lazy(() => ResponseFormat3$inboundSchema),
4419
- ResponseFormat4$inboundSchema,
4420
- ResponseFormat5$inboundSchema,
4421
- ResponseFormat6$inboundSchema,
4422
- ]),
4423
- ).optional(),
4424
- photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
4425
- encoding_format: DeploymentGetConfigEncodingFormat$inboundSchema.optional(),
4426
- reasoningEffort: DeploymentGetConfigReasoningEffort$inboundSchema.optional(),
4427
- budgetTokens: z.number().optional(),
4428
- verbosity: Verbosity$inboundSchema.optional(),
4429
- thinkingLevel: ThinkingLevel$inboundSchema.optional(),
4430
- }).transform((v) => {
4431
- return remap$(v, {
4432
- "encoding_format": "encodingFormat",
4433
- });
4434
- });
4435
-
4436
- export function deploymentGetConfigParametersFromJSON(
4437
- jsonString: string,
4438
- ): SafeParseResult<DeploymentGetConfigParameters, SDKValidationError> {
4439
- return safeParse(
4440
- jsonString,
4441
- (x) => DeploymentGetConfigParameters$inboundSchema.parse(JSON.parse(x)),
4442
- `Failed to parse 'DeploymentGetConfigParameters' from JSON`,
4443
- );
4444
- }
4445
-
4446
- /** @internal */
4447
- export const DeploymentGetConfigDeploymentsType$inboundSchema: z.ZodNativeEnum<
4448
- typeof DeploymentGetConfigDeploymentsType
4449
- > = z.nativeEnum(DeploymentGetConfigDeploymentsType);
4450
-
4451
- /** @internal */
4452
- export const DeploymentGetConfigFunction$inboundSchema: z.ZodType<
4453
- DeploymentGetConfigFunction,
4454
- z.ZodTypeDef,
4455
- unknown
4456
- > = z.object({
4457
- name: z.string(),
4458
- description: z.string().optional(),
4459
- parameters: z.record(z.any()).optional(),
4460
- });
4461
-
4462
- export function deploymentGetConfigFunctionFromJSON(
4463
- jsonString: string,
4464
- ): SafeParseResult<DeploymentGetConfigFunction, SDKValidationError> {
4465
- return safeParse(
4466
- jsonString,
4467
- (x) => DeploymentGetConfigFunction$inboundSchema.parse(JSON.parse(x)),
4468
- `Failed to parse 'DeploymentGetConfigFunction' from JSON`,
4469
- );
4470
- }
4471
-
4472
- /** @internal */
4473
- export const DeploymentGetConfigTools$inboundSchema: z.ZodType<
4474
- DeploymentGetConfigTools,
4475
- z.ZodTypeDef,
4476
- unknown
4477
- > = z.object({
4478
- type: DeploymentGetConfigDeploymentsType$inboundSchema,
4479
- function: z.lazy(() => DeploymentGetConfigFunction$inboundSchema),
4480
- });
4481
-
4482
- export function deploymentGetConfigToolsFromJSON(
4483
- jsonString: string,
4484
- ): SafeParseResult<DeploymentGetConfigTools, SDKValidationError> {
4485
- return safeParse(
4486
- jsonString,
4487
- (x) => DeploymentGetConfigTools$inboundSchema.parse(JSON.parse(x)),
4488
- `Failed to parse 'DeploymentGetConfigTools' from JSON`,
4489
- );
4490
- }
4491
-
4492
- /** @internal */
4493
- export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
4494
- DeploymentGetConfigResponseBody,
4495
- z.ZodTypeDef,
4496
- unknown
4497
- > = z.object({
4498
- id: z.string(),
4499
- provider: z.string(),
4500
- model: z.string(),
4501
- type: DeploymentGetConfigType$inboundSchema.optional(),
4502
- version: z.string(),
4503
- messages: z.array(
4504
- z.lazy(() => DeploymentGetConfigDeploymentsMessages$inboundSchema),
4505
- ),
4506
- parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
4507
- tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
4508
- .optional(),
4509
- });
4510
-
4511
- export function deploymentGetConfigResponseBodyFromJSON(
4512
- jsonString: string,
4513
- ): SafeParseResult<DeploymentGetConfigResponseBody, SDKValidationError> {
4514
- return safeParse(
4515
- jsonString,
4516
- (x) => DeploymentGetConfigResponseBody$inboundSchema.parse(JSON.parse(x)),
4517
- `Failed to parse 'DeploymentGetConfigResponseBody' from JSON`,
4518
- );
4519
- }