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