@orq-ai/node 4.5.2 → 4.6.0-rc.1
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +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/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- 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/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.js +1 -1
- package/models/operations/streamrunagent.js +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.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +4 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- 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/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- 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/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- 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/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 +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- 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 +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -184
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +0 -178
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -187
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -182
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -204
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -189
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -171
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -171
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -186
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -181
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -198
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -185
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -273
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -263
- package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -222
- package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -218
- package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
- package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
- package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -497
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -161
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -346
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -263
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
- package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
- package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
- package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
- package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
- package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -517
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
- package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
- package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
- package/packages/orq-rc/src/models/components/datapart.ts +0 -38
- package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
- package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
- package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
- package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
- package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
- package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
- package/packages/orq-rc/src/models/components/filepart.ts +0 -218
- package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
- package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
- package/packages/orq-rc/src/models/components/index.ts +0 -59
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3450
- package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
- package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
- package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
- package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
- package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
- package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
- package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
- package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
- package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
- package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
- package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
- package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
- package/packages/orq-rc/src/models/components/security.ts +0 -32
- package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
- package/packages/orq-rc/src/models/components/textpart.ts +0 -54
- package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
- package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
- package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
- package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -200
- package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
- package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
- package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
- package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
- package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
- package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
- package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -35
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6393
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -644
- package/packages/orq-rc/src/models/operations/createannotation.ts +0 -166
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6392
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
- package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3418
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
- package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -4170
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
- package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
- package/packages/orq-rc/src/models/operations/createimage.ts +0 -1028
- package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
- package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5391
- package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
- package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3325
- package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
- package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
- package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
- package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -79
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4525
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -729
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -1269
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4653
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3165
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -2842
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3090
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3135
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
- package/packages/orq-rc/src/models/operations/index.ts +0 -116
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -777
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1253
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -2754
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
- package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3210
- package/packages/orq-rc/src/models/operations/parse.ts +0 -777
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -252
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
- package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2814
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -4927
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -668
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5089
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6824
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4152
- package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5473
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2810
- package/packages/orq-rc/src/sdk/agents.ts +0 -234
- package/packages/orq-rc/src/sdk/annotations.ts +0 -39
- package/packages/orq-rc/src/sdk/audio.ts +0 -25
- package/packages/orq-rc/src/sdk/chat.ts +0 -13
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/completions.ts +0 -32
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/edits.ts +0 -27
- package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
- package/packages/orq-rc/src/sdk/evals.ts +0 -84
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/generations.ts +0 -27
- package/packages/orq-rc/src/sdk/identities.ts +0 -99
- package/packages/orq-rc/src/sdk/images.ts +0 -25
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/moderations.ts +0 -24
- package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
- package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/rerank.ts +0 -27
- package/packages/orq-rc/src/sdk/responses.ts +0 -53
- package/packages/orq-rc/src/sdk/router.ts +0 -72
- package/packages/orq-rc/src/sdk/sdk.ts +0 -115
- package/packages/orq-rc/src/sdk/speech.ts +0 -27
- package/packages/orq-rc/src/sdk/tools.ts +0 -135
- package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
- package/packages/orq-rc/src/sdk/translations.ts +0 -24
- package/packages/orq-rc/src/sdk/variations.ts +0 -27
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -35
|
@@ -1,3450 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
import {
|
|
9
|
-
AudioContentPartSchema,
|
|
10
|
-
AudioContentPartSchema$Outbound,
|
|
11
|
-
AudioContentPartSchema$outboundSchema,
|
|
12
|
-
} from "./audiocontentpartschema.js";
|
|
13
|
-
import {
|
|
14
|
-
FileContentPartSchema,
|
|
15
|
-
FileContentPartSchema$Outbound,
|
|
16
|
-
FileContentPartSchema$outboundSchema,
|
|
17
|
-
} from "./filecontentpartschema.js";
|
|
18
|
-
import {
|
|
19
|
-
ImageContentPartSchema,
|
|
20
|
-
ImageContentPartSchema$Outbound,
|
|
21
|
-
ImageContentPartSchema$outboundSchema,
|
|
22
|
-
} from "./imagecontentpartschema.js";
|
|
23
|
-
import {
|
|
24
|
-
PublicIdentity,
|
|
25
|
-
PublicIdentity$Outbound,
|
|
26
|
-
PublicIdentity$outboundSchema,
|
|
27
|
-
} from "./publicidentity.js";
|
|
28
|
-
import {
|
|
29
|
-
ReasoningPartSchema,
|
|
30
|
-
ReasoningPartSchema$Outbound,
|
|
31
|
-
ReasoningPartSchema$outboundSchema,
|
|
32
|
-
} from "./reasoningpartschema.js";
|
|
33
|
-
import {
|
|
34
|
-
RedactedReasoningPartSchema,
|
|
35
|
-
RedactedReasoningPartSchema$Outbound,
|
|
36
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
37
|
-
} from "./redactedreasoningpartschema.js";
|
|
38
|
-
import {
|
|
39
|
-
RefusalPartSchema,
|
|
40
|
-
RefusalPartSchema$Outbound,
|
|
41
|
-
RefusalPartSchema$outboundSchema,
|
|
42
|
-
} from "./refusalpartschema.js";
|
|
43
|
-
import {
|
|
44
|
-
TextContentPartSchema,
|
|
45
|
-
TextContentPartSchema$Outbound,
|
|
46
|
-
TextContentPartSchema$outboundSchema,
|
|
47
|
-
} from "./textcontentpartschema.js";
|
|
48
|
-
|
|
49
|
-
export type InvokeDeploymentRequestContent2 = TextContentPartSchema;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The contents of the tool message.
|
|
53
|
-
*/
|
|
54
|
-
export type InvokeDeploymentRequestPrefixMessages5Content =
|
|
55
|
-
| string
|
|
56
|
-
| Array<TextContentPartSchema>;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
60
|
-
*/
|
|
61
|
-
export const InvokeDeploymentRequestPrefixMessagesType = {
|
|
62
|
-
Ephemeral: "ephemeral",
|
|
63
|
-
} as const;
|
|
64
|
-
/**
|
|
65
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
66
|
-
*/
|
|
67
|
-
export type InvokeDeploymentRequestPrefixMessagesType = ClosedEnum<
|
|
68
|
-
typeof InvokeDeploymentRequestPrefixMessagesType
|
|
69
|
-
>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
73
|
-
*
|
|
74
|
-
* @remarks
|
|
75
|
-
*
|
|
76
|
-
* - `5m`: 5 minutes
|
|
77
|
-
* - `1h`: 1 hour
|
|
78
|
-
*
|
|
79
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
80
|
-
*/
|
|
81
|
-
export const PrefixMessagesTtl = {
|
|
82
|
-
Fivem: "5m",
|
|
83
|
-
Oneh: "1h",
|
|
84
|
-
} as const;
|
|
85
|
-
/**
|
|
86
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
87
|
-
*
|
|
88
|
-
* @remarks
|
|
89
|
-
*
|
|
90
|
-
* - `5m`: 5 minutes
|
|
91
|
-
* - `1h`: 1 hour
|
|
92
|
-
*
|
|
93
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
94
|
-
*/
|
|
95
|
-
export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
|
|
96
|
-
|
|
97
|
-
export type PrefixMessagesCacheControl = {
|
|
98
|
-
/**
|
|
99
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
100
|
-
*/
|
|
101
|
-
type: InvokeDeploymentRequestPrefixMessagesType;
|
|
102
|
-
/**
|
|
103
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
*
|
|
107
|
-
* - `5m`: 5 minutes
|
|
108
|
-
* - `1h`: 1 hour
|
|
109
|
-
*
|
|
110
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
111
|
-
*/
|
|
112
|
-
ttl?: PrefixMessagesTtl | undefined;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export type ToolMessage = {
|
|
116
|
-
/**
|
|
117
|
-
* The role of the messages author, in this case tool.
|
|
118
|
-
*/
|
|
119
|
-
role: "tool";
|
|
120
|
-
/**
|
|
121
|
-
* The contents of the tool message.
|
|
122
|
-
*/
|
|
123
|
-
content: string | Array<TextContentPartSchema>;
|
|
124
|
-
/**
|
|
125
|
-
* Tool call that this message is responding to.
|
|
126
|
-
*/
|
|
127
|
-
toolCallId: string | null;
|
|
128
|
-
cacheControl?: PrefixMessagesCacheControl | undefined;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
export type Content2 =
|
|
132
|
-
| (TextContentPartSchema & { type: "text" })
|
|
133
|
-
| RefusalPartSchema
|
|
134
|
-
| ReasoningPartSchema
|
|
135
|
-
| RedactedReasoningPartSchema;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
139
|
-
*/
|
|
140
|
-
export type InvokeDeploymentRequestPrefixMessages4Content =
|
|
141
|
-
| string
|
|
142
|
-
| Array<
|
|
143
|
-
| (TextContentPartSchema & { type: "text" })
|
|
144
|
-
| RefusalPartSchema
|
|
145
|
-
| ReasoningPartSchema
|
|
146
|
-
| RedactedReasoningPartSchema
|
|
147
|
-
>;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Data about a previous audio response from the model.
|
|
151
|
-
*/
|
|
152
|
-
export type Audio = {
|
|
153
|
-
/**
|
|
154
|
-
* Unique identifier for a previous audio response from the model.
|
|
155
|
-
*/
|
|
156
|
-
id: string;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
161
|
-
*/
|
|
162
|
-
export const PrefixMessagesType = {
|
|
163
|
-
Function: "function",
|
|
164
|
-
} as const;
|
|
165
|
-
/**
|
|
166
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
167
|
-
*/
|
|
168
|
-
export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
|
|
169
|
-
|
|
170
|
-
export type PrefixMessagesFunction = {
|
|
171
|
-
/**
|
|
172
|
-
* The name of the function to call.
|
|
173
|
-
*/
|
|
174
|
-
name?: string | undefined;
|
|
175
|
-
/**
|
|
176
|
-
* 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.
|
|
177
|
-
*/
|
|
178
|
-
arguments?: string | undefined;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
export type ToolCalls = {
|
|
182
|
-
/**
|
|
183
|
-
* The ID of the tool call.
|
|
184
|
-
*/
|
|
185
|
-
id: string;
|
|
186
|
-
/**
|
|
187
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
188
|
-
*/
|
|
189
|
-
type: PrefixMessagesType;
|
|
190
|
-
function: PrefixMessagesFunction;
|
|
191
|
-
/**
|
|
192
|
-
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
193
|
-
*/
|
|
194
|
-
thoughtSignature?: string | undefined;
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
export type AssistantMessage = {
|
|
198
|
-
/**
|
|
199
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
200
|
-
*/
|
|
201
|
-
content?:
|
|
202
|
-
| string
|
|
203
|
-
| Array<
|
|
204
|
-
| (TextContentPartSchema & { type: "text" })
|
|
205
|
-
| RefusalPartSchema
|
|
206
|
-
| ReasoningPartSchema
|
|
207
|
-
| RedactedReasoningPartSchema
|
|
208
|
-
>
|
|
209
|
-
| null
|
|
210
|
-
| undefined;
|
|
211
|
-
/**
|
|
212
|
-
* The refusal message by the assistant.
|
|
213
|
-
*/
|
|
214
|
-
refusal?: string | null | undefined;
|
|
215
|
-
/**
|
|
216
|
-
* The role of the messages author, in this case `assistant`.
|
|
217
|
-
*/
|
|
218
|
-
role: "assistant";
|
|
219
|
-
/**
|
|
220
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
221
|
-
*/
|
|
222
|
-
name?: string | undefined;
|
|
223
|
-
/**
|
|
224
|
-
* Data about a previous audio response from the model.
|
|
225
|
-
*/
|
|
226
|
-
audio?: Audio | null | undefined;
|
|
227
|
-
/**
|
|
228
|
-
* The tool calls generated by the model, such as function calls.
|
|
229
|
-
*/
|
|
230
|
-
toolCalls?: Array<ToolCalls> | undefined;
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
235
|
-
*/
|
|
236
|
-
export const InvokeDeploymentRequest2PrefixMessagesType = {
|
|
237
|
-
Ephemeral: "ephemeral",
|
|
238
|
-
} as const;
|
|
239
|
-
/**
|
|
240
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
241
|
-
*/
|
|
242
|
-
export type InvokeDeploymentRequest2PrefixMessagesType = ClosedEnum<
|
|
243
|
-
typeof InvokeDeploymentRequest2PrefixMessagesType
|
|
244
|
-
>;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
248
|
-
*
|
|
249
|
-
* @remarks
|
|
250
|
-
*
|
|
251
|
-
* - `5m`: 5 minutes
|
|
252
|
-
* - `1h`: 1 hour
|
|
253
|
-
*
|
|
254
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
255
|
-
*/
|
|
256
|
-
export const TwoTtl = {
|
|
257
|
-
Fivem: "5m",
|
|
258
|
-
Oneh: "1h",
|
|
259
|
-
} as const;
|
|
260
|
-
/**
|
|
261
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
262
|
-
*
|
|
263
|
-
* @remarks
|
|
264
|
-
*
|
|
265
|
-
* - `5m`: 5 minutes
|
|
266
|
-
* - `1h`: 1 hour
|
|
267
|
-
*
|
|
268
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
269
|
-
*/
|
|
270
|
-
export type TwoTtl = ClosedEnum<typeof TwoTtl>;
|
|
271
|
-
|
|
272
|
-
export type TwoCacheControl = {
|
|
273
|
-
/**
|
|
274
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
275
|
-
*/
|
|
276
|
-
type: InvokeDeploymentRequest2PrefixMessagesType;
|
|
277
|
-
/**
|
|
278
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
279
|
-
*
|
|
280
|
-
* @remarks
|
|
281
|
-
*
|
|
282
|
-
* - `5m`: 5 minutes
|
|
283
|
-
* - `1h`: 1 hour
|
|
284
|
-
*
|
|
285
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
286
|
-
*/
|
|
287
|
-
ttl?: TwoTtl | undefined;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
export type Four = {
|
|
291
|
-
/**
|
|
292
|
-
* The type of the content part. Always `file`.
|
|
293
|
-
*/
|
|
294
|
-
type: "file";
|
|
295
|
-
cacheControl?: TwoCacheControl | undefined;
|
|
296
|
-
/**
|
|
297
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
298
|
-
*/
|
|
299
|
-
file: FileContentPartSchema;
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
export type Two =
|
|
303
|
-
| (TextContentPartSchema & { type: "text" })
|
|
304
|
-
| ImageContentPartSchema
|
|
305
|
-
| AudioContentPartSchema
|
|
306
|
-
| Four;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* The contents of the user message.
|
|
310
|
-
*/
|
|
311
|
-
export type InvokeDeploymentRequestPrefixMessagesContent =
|
|
312
|
-
| string
|
|
313
|
-
| Array<
|
|
314
|
-
| (TextContentPartSchema & { type: "text" })
|
|
315
|
-
| ImageContentPartSchema
|
|
316
|
-
| AudioContentPartSchema
|
|
317
|
-
| Four
|
|
318
|
-
>;
|
|
319
|
-
|
|
320
|
-
export type UserMessage = {
|
|
321
|
-
/**
|
|
322
|
-
* The role of the messages author, in this case `user`.
|
|
323
|
-
*/
|
|
324
|
-
role: "user";
|
|
325
|
-
/**
|
|
326
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
327
|
-
*/
|
|
328
|
-
name?: string | undefined;
|
|
329
|
-
/**
|
|
330
|
-
* The contents of the user message.
|
|
331
|
-
*/
|
|
332
|
-
content:
|
|
333
|
-
| string
|
|
334
|
-
| Array<
|
|
335
|
-
| (TextContentPartSchema & { type: "text" })
|
|
336
|
-
| ImageContentPartSchema
|
|
337
|
-
| AudioContentPartSchema
|
|
338
|
-
| Four
|
|
339
|
-
>;
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* The contents of the developer message.
|
|
344
|
-
*/
|
|
345
|
-
export type PrefixMessagesContent = string | Array<TextContentPartSchema>;
|
|
346
|
-
|
|
347
|
-
export type DeveloperMessage = {
|
|
348
|
-
/**
|
|
349
|
-
* The role of the messages author, in this case `developer`.
|
|
350
|
-
*/
|
|
351
|
-
role: "developer";
|
|
352
|
-
/**
|
|
353
|
-
* The contents of the developer message.
|
|
354
|
-
*/
|
|
355
|
-
content: string | Array<TextContentPartSchema>;
|
|
356
|
-
/**
|
|
357
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
358
|
-
*/
|
|
359
|
-
name?: string | undefined;
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* The contents of the system message.
|
|
364
|
-
*/
|
|
365
|
-
export type Content = string | Array<TextContentPartSchema>;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
369
|
-
*/
|
|
370
|
-
export type SystemMessage = {
|
|
371
|
-
/**
|
|
372
|
-
* The role of the messages author, in this case `system`.
|
|
373
|
-
*/
|
|
374
|
-
role: "system";
|
|
375
|
-
/**
|
|
376
|
-
* The contents of the system message.
|
|
377
|
-
*/
|
|
378
|
-
content: string | Array<TextContentPartSchema>;
|
|
379
|
-
/**
|
|
380
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
381
|
-
*/
|
|
382
|
-
name?: string | undefined;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
export type PrefixMessages =
|
|
386
|
-
| SystemMessage
|
|
387
|
-
| DeveloperMessage
|
|
388
|
-
| UserMessage
|
|
389
|
-
| AssistantMessage
|
|
390
|
-
| ToolMessage;
|
|
391
|
-
|
|
392
|
-
export type InvokeDeploymentRequestContentMessages52 = TextContentPartSchema;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* The contents of the tool message.
|
|
396
|
-
*/
|
|
397
|
-
export type InvokeDeploymentRequestMessages5Content =
|
|
398
|
-
| string
|
|
399
|
-
| Array<TextContentPartSchema>;
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
403
|
-
*/
|
|
404
|
-
export const InvokeDeploymentRequestMessagesType = {
|
|
405
|
-
Ephemeral: "ephemeral",
|
|
406
|
-
} as const;
|
|
407
|
-
/**
|
|
408
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
409
|
-
*/
|
|
410
|
-
export type InvokeDeploymentRequestMessagesType = ClosedEnum<
|
|
411
|
-
typeof InvokeDeploymentRequestMessagesType
|
|
412
|
-
>;
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
416
|
-
*
|
|
417
|
-
* @remarks
|
|
418
|
-
*
|
|
419
|
-
* - `5m`: 5 minutes
|
|
420
|
-
* - `1h`: 1 hour
|
|
421
|
-
*
|
|
422
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
423
|
-
*/
|
|
424
|
-
export const MessagesTtl = {
|
|
425
|
-
Fivem: "5m",
|
|
426
|
-
Oneh: "1h",
|
|
427
|
-
} as const;
|
|
428
|
-
/**
|
|
429
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
430
|
-
*
|
|
431
|
-
* @remarks
|
|
432
|
-
*
|
|
433
|
-
* - `5m`: 5 minutes
|
|
434
|
-
* - `1h`: 1 hour
|
|
435
|
-
*
|
|
436
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
437
|
-
*/
|
|
438
|
-
export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
|
|
439
|
-
|
|
440
|
-
export type MessagesCacheControl = {
|
|
441
|
-
/**
|
|
442
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
443
|
-
*/
|
|
444
|
-
type: InvokeDeploymentRequestMessagesType;
|
|
445
|
-
/**
|
|
446
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
447
|
-
*
|
|
448
|
-
* @remarks
|
|
449
|
-
*
|
|
450
|
-
* - `5m`: 5 minutes
|
|
451
|
-
* - `1h`: 1 hour
|
|
452
|
-
*
|
|
453
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
454
|
-
*/
|
|
455
|
-
ttl?: MessagesTtl | undefined;
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
export type MessagesToolMessage = {
|
|
459
|
-
/**
|
|
460
|
-
* The role of the messages author, in this case tool.
|
|
461
|
-
*/
|
|
462
|
-
role: "tool";
|
|
463
|
-
/**
|
|
464
|
-
* The contents of the tool message.
|
|
465
|
-
*/
|
|
466
|
-
content: string | Array<TextContentPartSchema>;
|
|
467
|
-
/**
|
|
468
|
-
* Tool call that this message is responding to.
|
|
469
|
-
*/
|
|
470
|
-
toolCallId: string | null;
|
|
471
|
-
cacheControl?: MessagesCacheControl | undefined;
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
export type InvokeDeploymentRequestContentMessages42 =
|
|
475
|
-
| (TextContentPartSchema & { type: "text" })
|
|
476
|
-
| RefusalPartSchema
|
|
477
|
-
| ReasoningPartSchema
|
|
478
|
-
| RedactedReasoningPartSchema;
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
482
|
-
*/
|
|
483
|
-
export type InvokeDeploymentRequestMessages4Content =
|
|
484
|
-
| string
|
|
485
|
-
| Array<
|
|
486
|
-
| (TextContentPartSchema & { type: "text" })
|
|
487
|
-
| RefusalPartSchema
|
|
488
|
-
| ReasoningPartSchema
|
|
489
|
-
| RedactedReasoningPartSchema
|
|
490
|
-
>;
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* Data about a previous audio response from the model.
|
|
494
|
-
*/
|
|
495
|
-
export type MessagesAudio = {
|
|
496
|
-
/**
|
|
497
|
-
* Unique identifier for a previous audio response from the model.
|
|
498
|
-
*/
|
|
499
|
-
id: string;
|
|
500
|
-
};
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
504
|
-
*/
|
|
505
|
-
export const MessagesType = {
|
|
506
|
-
Function: "function",
|
|
507
|
-
} as const;
|
|
508
|
-
/**
|
|
509
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
510
|
-
*/
|
|
511
|
-
export type MessagesType = ClosedEnum<typeof MessagesType>;
|
|
512
|
-
|
|
513
|
-
export type MessagesFunction = {
|
|
514
|
-
/**
|
|
515
|
-
* The name of the function to call.
|
|
516
|
-
*/
|
|
517
|
-
name?: string | undefined;
|
|
518
|
-
/**
|
|
519
|
-
* 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.
|
|
520
|
-
*/
|
|
521
|
-
arguments?: string | undefined;
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
export type MessagesToolCalls = {
|
|
525
|
-
/**
|
|
526
|
-
* The ID of the tool call.
|
|
527
|
-
*/
|
|
528
|
-
id: string;
|
|
529
|
-
/**
|
|
530
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
531
|
-
*/
|
|
532
|
-
type: MessagesType;
|
|
533
|
-
function: MessagesFunction;
|
|
534
|
-
/**
|
|
535
|
-
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
536
|
-
*/
|
|
537
|
-
thoughtSignature?: string | undefined;
|
|
538
|
-
};
|
|
539
|
-
|
|
540
|
-
export type MessagesAssistantMessage = {
|
|
541
|
-
/**
|
|
542
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
543
|
-
*/
|
|
544
|
-
content?:
|
|
545
|
-
| string
|
|
546
|
-
| Array<
|
|
547
|
-
| (TextContentPartSchema & { type: "text" })
|
|
548
|
-
| RefusalPartSchema
|
|
549
|
-
| ReasoningPartSchema
|
|
550
|
-
| RedactedReasoningPartSchema
|
|
551
|
-
>
|
|
552
|
-
| null
|
|
553
|
-
| undefined;
|
|
554
|
-
/**
|
|
555
|
-
* The refusal message by the assistant.
|
|
556
|
-
*/
|
|
557
|
-
refusal?: string | null | undefined;
|
|
558
|
-
/**
|
|
559
|
-
* The role of the messages author, in this case `assistant`.
|
|
560
|
-
*/
|
|
561
|
-
role: "assistant";
|
|
562
|
-
/**
|
|
563
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
564
|
-
*/
|
|
565
|
-
name?: string | undefined;
|
|
566
|
-
/**
|
|
567
|
-
* Data about a previous audio response from the model.
|
|
568
|
-
*/
|
|
569
|
-
audio?: MessagesAudio | null | undefined;
|
|
570
|
-
/**
|
|
571
|
-
* The tool calls generated by the model, such as function calls.
|
|
572
|
-
*/
|
|
573
|
-
toolCalls?: Array<MessagesToolCalls> | undefined;
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
578
|
-
*/
|
|
579
|
-
export const InvokeDeploymentRequest2MessagesType = {
|
|
580
|
-
Ephemeral: "ephemeral",
|
|
581
|
-
} as const;
|
|
582
|
-
/**
|
|
583
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
584
|
-
*/
|
|
585
|
-
export type InvokeDeploymentRequest2MessagesType = ClosedEnum<
|
|
586
|
-
typeof InvokeDeploymentRequest2MessagesType
|
|
587
|
-
>;
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
591
|
-
*
|
|
592
|
-
* @remarks
|
|
593
|
-
*
|
|
594
|
-
* - `5m`: 5 minutes
|
|
595
|
-
* - `1h`: 1 hour
|
|
596
|
-
*
|
|
597
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
598
|
-
*/
|
|
599
|
-
export const InvokeDeploymentRequest2Ttl = {
|
|
600
|
-
Fivem: "5m",
|
|
601
|
-
Oneh: "1h",
|
|
602
|
-
} as const;
|
|
603
|
-
/**
|
|
604
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
605
|
-
*
|
|
606
|
-
* @remarks
|
|
607
|
-
*
|
|
608
|
-
* - `5m`: 5 minutes
|
|
609
|
-
* - `1h`: 1 hour
|
|
610
|
-
*
|
|
611
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
612
|
-
*/
|
|
613
|
-
export type InvokeDeploymentRequest2Ttl = ClosedEnum<
|
|
614
|
-
typeof InvokeDeploymentRequest2Ttl
|
|
615
|
-
>;
|
|
616
|
-
|
|
617
|
-
export type InvokeDeploymentRequest2CacheControl = {
|
|
618
|
-
/**
|
|
619
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
620
|
-
*/
|
|
621
|
-
type: InvokeDeploymentRequest2MessagesType;
|
|
622
|
-
/**
|
|
623
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
624
|
-
*
|
|
625
|
-
* @remarks
|
|
626
|
-
*
|
|
627
|
-
* - `5m`: 5 minutes
|
|
628
|
-
* - `1h`: 1 hour
|
|
629
|
-
*
|
|
630
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
631
|
-
*/
|
|
632
|
-
ttl?: InvokeDeploymentRequest2Ttl | undefined;
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
export type Two4 = {
|
|
636
|
-
/**
|
|
637
|
-
* The type of the content part. Always `file`.
|
|
638
|
-
*/
|
|
639
|
-
type: "file";
|
|
640
|
-
cacheControl?: InvokeDeploymentRequest2CacheControl | undefined;
|
|
641
|
-
/**
|
|
642
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
643
|
-
*/
|
|
644
|
-
file: FileContentPartSchema;
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
export type InvokeDeploymentRequestContentMessages2 =
|
|
648
|
-
| (TextContentPartSchema & { type: "text" })
|
|
649
|
-
| ImageContentPartSchema
|
|
650
|
-
| AudioContentPartSchema
|
|
651
|
-
| Two4;
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* The contents of the user message.
|
|
655
|
-
*/
|
|
656
|
-
export type InvokeDeploymentRequestMessages3Content =
|
|
657
|
-
| string
|
|
658
|
-
| Array<
|
|
659
|
-
| (TextContentPartSchema & { type: "text" })
|
|
660
|
-
| ImageContentPartSchema
|
|
661
|
-
| AudioContentPartSchema
|
|
662
|
-
| Two4
|
|
663
|
-
>;
|
|
664
|
-
|
|
665
|
-
export type MessagesUserMessage = {
|
|
666
|
-
/**
|
|
667
|
-
* The role of the messages author, in this case `user`.
|
|
668
|
-
*/
|
|
669
|
-
role: "user";
|
|
670
|
-
/**
|
|
671
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
672
|
-
*/
|
|
673
|
-
name?: string | undefined;
|
|
674
|
-
/**
|
|
675
|
-
* The contents of the user message.
|
|
676
|
-
*/
|
|
677
|
-
content:
|
|
678
|
-
| string
|
|
679
|
-
| Array<
|
|
680
|
-
| (TextContentPartSchema & { type: "text" })
|
|
681
|
-
| ImageContentPartSchema
|
|
682
|
-
| AudioContentPartSchema
|
|
683
|
-
| Two4
|
|
684
|
-
>;
|
|
685
|
-
};
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* The contents of the developer message.
|
|
689
|
-
*/
|
|
690
|
-
export type InvokeDeploymentRequestMessagesContent =
|
|
691
|
-
| string
|
|
692
|
-
| Array<TextContentPartSchema>;
|
|
693
|
-
|
|
694
|
-
export type MessagesDeveloperMessage = {
|
|
695
|
-
/**
|
|
696
|
-
* The role of the messages author, in this case `developer`.
|
|
697
|
-
*/
|
|
698
|
-
role: "developer";
|
|
699
|
-
/**
|
|
700
|
-
* The contents of the developer message.
|
|
701
|
-
*/
|
|
702
|
-
content: string | Array<TextContentPartSchema>;
|
|
703
|
-
/**
|
|
704
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
705
|
-
*/
|
|
706
|
-
name?: string | undefined;
|
|
707
|
-
};
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* The contents of the system message.
|
|
711
|
-
*/
|
|
712
|
-
export type MessagesContent = string | Array<TextContentPartSchema>;
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
716
|
-
*/
|
|
717
|
-
export type MessagesSystemMessage = {
|
|
718
|
-
/**
|
|
719
|
-
* The role of the messages author, in this case `system`.
|
|
720
|
-
*/
|
|
721
|
-
role: "system";
|
|
722
|
-
/**
|
|
723
|
-
* The contents of the system message.
|
|
724
|
-
*/
|
|
725
|
-
content: string | Array<TextContentPartSchema>;
|
|
726
|
-
/**
|
|
727
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
728
|
-
*/
|
|
729
|
-
name?: string | undefined;
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
export type Messages =
|
|
733
|
-
| MessagesSystemMessage
|
|
734
|
-
| MessagesDeveloperMessage
|
|
735
|
-
| MessagesUserMessage
|
|
736
|
-
| MessagesAssistantMessage
|
|
737
|
-
| MessagesToolMessage;
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* Metadata about the document
|
|
741
|
-
*/
|
|
742
|
-
export type Metadata = {
|
|
743
|
-
/**
|
|
744
|
-
* Name of the file the text is from.
|
|
745
|
-
*/
|
|
746
|
-
fileName?: string | undefined;
|
|
747
|
-
/**
|
|
748
|
-
* Content type of the file the text is from.
|
|
749
|
-
*/
|
|
750
|
-
fileType?: string | undefined;
|
|
751
|
-
/**
|
|
752
|
-
* The page number the text is from.
|
|
753
|
-
*/
|
|
754
|
-
pageNumber?: number | undefined;
|
|
755
|
-
};
|
|
756
|
-
|
|
757
|
-
export type Documents = {
|
|
758
|
-
/**
|
|
759
|
-
* The text content of the document
|
|
760
|
-
*/
|
|
761
|
-
text: string;
|
|
762
|
-
/**
|
|
763
|
-
* Metadata about the document
|
|
764
|
-
*/
|
|
765
|
-
metadata?: Metadata | undefined;
|
|
766
|
-
};
|
|
767
|
-
|
|
768
|
-
export type InvokeOptions = {
|
|
769
|
-
/**
|
|
770
|
-
* Whether to include the retrieved knowledge chunks in the response.
|
|
771
|
-
*/
|
|
772
|
-
includeRetrievals?: boolean | undefined;
|
|
773
|
-
/**
|
|
774
|
-
* Whether to include the usage metrics in the response.
|
|
775
|
-
*/
|
|
776
|
-
includeUsage?: boolean | undefined;
|
|
777
|
-
/**
|
|
778
|
-
* 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.
|
|
779
|
-
*/
|
|
780
|
-
mockResponse?: string | undefined;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
export type Thread = {
|
|
784
|
-
/**
|
|
785
|
-
* Unique thread identifier to group related invocations.
|
|
786
|
-
*/
|
|
787
|
-
id: string;
|
|
788
|
-
/**
|
|
789
|
-
* Optional tags to differentiate or categorize threads
|
|
790
|
-
*/
|
|
791
|
-
tags?: Array<string> | undefined;
|
|
792
|
-
};
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* Exists
|
|
796
|
-
*/
|
|
797
|
-
export type OrExists = {
|
|
798
|
-
exists: boolean;
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
export type OrNin = string | number | boolean;
|
|
802
|
-
|
|
803
|
-
/**
|
|
804
|
-
* Not in
|
|
805
|
-
*/
|
|
806
|
-
export type InvokeDeploymentRequestOrNin = {
|
|
807
|
-
nin: Array<string | number | boolean>;
|
|
808
|
-
};
|
|
809
|
-
|
|
810
|
-
export type OrIn = string | number | boolean;
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* In
|
|
814
|
-
*/
|
|
815
|
-
export type InvokeDeploymentRequestOrIn = {
|
|
816
|
-
in: Array<string | number | boolean>;
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* Less than or equal to
|
|
821
|
-
*/
|
|
822
|
-
export type OrLte = {
|
|
823
|
-
lte: number;
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* Less than
|
|
828
|
-
*/
|
|
829
|
-
export type OrLt = {
|
|
830
|
-
lt: number;
|
|
831
|
-
};
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* Greater than or equal to
|
|
835
|
-
*/
|
|
836
|
-
export type OrGte = {
|
|
837
|
-
gte: number;
|
|
838
|
-
};
|
|
839
|
-
|
|
840
|
-
/**
|
|
841
|
-
* Greater than
|
|
842
|
-
*/
|
|
843
|
-
export type OrGt = {
|
|
844
|
-
gt: number;
|
|
845
|
-
};
|
|
846
|
-
|
|
847
|
-
export type OrNe = string | number | boolean;
|
|
848
|
-
|
|
849
|
-
/**
|
|
850
|
-
* Not equal to
|
|
851
|
-
*/
|
|
852
|
-
export type InvokeDeploymentRequestOrNe = {
|
|
853
|
-
ne: string | number | boolean;
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
export type OrEq = string | number | boolean;
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* Equal to
|
|
860
|
-
*/
|
|
861
|
-
export type InvokeDeploymentRequestOrEq = {
|
|
862
|
-
eq: string | number | boolean;
|
|
863
|
-
};
|
|
864
|
-
|
|
865
|
-
export type Or =
|
|
866
|
-
| InvokeDeploymentRequestOrEq
|
|
867
|
-
| InvokeDeploymentRequestOrNe
|
|
868
|
-
| OrGt
|
|
869
|
-
| OrGte
|
|
870
|
-
| OrLt
|
|
871
|
-
| OrLte
|
|
872
|
-
| InvokeDeploymentRequestOrIn
|
|
873
|
-
| InvokeDeploymentRequestOrNin
|
|
874
|
-
| OrExists;
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
* Or
|
|
878
|
-
*/
|
|
879
|
-
export type KnowledgeFilterOr = {
|
|
880
|
-
or: Array<
|
|
881
|
-
{
|
|
882
|
-
[k: string]:
|
|
883
|
-
| InvokeDeploymentRequestOrEq
|
|
884
|
-
| InvokeDeploymentRequestOrNe
|
|
885
|
-
| OrGt
|
|
886
|
-
| OrGte
|
|
887
|
-
| OrLt
|
|
888
|
-
| OrLte
|
|
889
|
-
| InvokeDeploymentRequestOrIn
|
|
890
|
-
| InvokeDeploymentRequestOrNin
|
|
891
|
-
| OrExists;
|
|
892
|
-
}
|
|
893
|
-
>;
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Exists
|
|
898
|
-
*/
|
|
899
|
-
export type AndExists = {
|
|
900
|
-
exists: boolean;
|
|
901
|
-
};
|
|
902
|
-
|
|
903
|
-
export type AndNin = string | number | boolean;
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Not in
|
|
907
|
-
*/
|
|
908
|
-
export type InvokeDeploymentRequestAndNin = {
|
|
909
|
-
nin: Array<string | number | boolean>;
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
export type AndIn = string | number | boolean;
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
* In
|
|
916
|
-
*/
|
|
917
|
-
export type InvokeDeploymentRequestAndIn = {
|
|
918
|
-
in: Array<string | number | boolean>;
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
/**
|
|
922
|
-
* Less than or equal to
|
|
923
|
-
*/
|
|
924
|
-
export type AndLte = {
|
|
925
|
-
lte: number;
|
|
926
|
-
};
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* Less than
|
|
930
|
-
*/
|
|
931
|
-
export type AndLt = {
|
|
932
|
-
lt: number;
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* Greater than or equal to
|
|
937
|
-
*/
|
|
938
|
-
export type AndGte = {
|
|
939
|
-
gte: number;
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* Greater than
|
|
944
|
-
*/
|
|
945
|
-
export type AndGt = {
|
|
946
|
-
gt: number;
|
|
947
|
-
};
|
|
948
|
-
|
|
949
|
-
export type AndNe = string | number | boolean;
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
* Not equal to
|
|
953
|
-
*/
|
|
954
|
-
export type InvokeDeploymentRequestAndNe = {
|
|
955
|
-
ne: string | number | boolean;
|
|
956
|
-
};
|
|
957
|
-
|
|
958
|
-
export type AndEq = string | number | boolean;
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* Equal to
|
|
962
|
-
*/
|
|
963
|
-
export type InvokeDeploymentRequestAndEq = {
|
|
964
|
-
eq: string | number | boolean;
|
|
965
|
-
};
|
|
966
|
-
|
|
967
|
-
export type And =
|
|
968
|
-
| InvokeDeploymentRequestAndEq
|
|
969
|
-
| InvokeDeploymentRequestAndNe
|
|
970
|
-
| AndGt
|
|
971
|
-
| AndGte
|
|
972
|
-
| AndLt
|
|
973
|
-
| AndLte
|
|
974
|
-
| InvokeDeploymentRequestAndIn
|
|
975
|
-
| InvokeDeploymentRequestAndNin
|
|
976
|
-
| AndExists;
|
|
977
|
-
|
|
978
|
-
/**
|
|
979
|
-
* And
|
|
980
|
-
*/
|
|
981
|
-
export type KnowledgeFilterAnd = {
|
|
982
|
-
and: Array<
|
|
983
|
-
{
|
|
984
|
-
[k: string]:
|
|
985
|
-
| InvokeDeploymentRequestAndEq
|
|
986
|
-
| InvokeDeploymentRequestAndNe
|
|
987
|
-
| AndGt
|
|
988
|
-
| AndGte
|
|
989
|
-
| AndLt
|
|
990
|
-
| AndLte
|
|
991
|
-
| InvokeDeploymentRequestAndIn
|
|
992
|
-
| InvokeDeploymentRequestAndNin
|
|
993
|
-
| AndExists;
|
|
994
|
-
}
|
|
995
|
-
>;
|
|
996
|
-
};
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Exists
|
|
1000
|
-
*/
|
|
1001
|
-
export type Exists = {
|
|
1002
|
-
exists: boolean;
|
|
1003
|
-
};
|
|
1004
|
-
|
|
1005
|
-
export type Nin = string | number | boolean;
|
|
1006
|
-
|
|
1007
|
-
/**
|
|
1008
|
-
* Not in
|
|
1009
|
-
*/
|
|
1010
|
-
export type OneNin = {
|
|
1011
|
-
nin: Array<string | number | boolean>;
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
export type In = string | number | boolean;
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* In
|
|
1018
|
-
*/
|
|
1019
|
-
export type OneIn = {
|
|
1020
|
-
in: Array<string | number | boolean>;
|
|
1021
|
-
};
|
|
1022
|
-
|
|
1023
|
-
/**
|
|
1024
|
-
* Less than or equal to
|
|
1025
|
-
*/
|
|
1026
|
-
export type Lte = {
|
|
1027
|
-
lte: number;
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
/**
|
|
1031
|
-
* Less than
|
|
1032
|
-
*/
|
|
1033
|
-
export type Lt = {
|
|
1034
|
-
lt: number;
|
|
1035
|
-
};
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* Greater than or equal to
|
|
1039
|
-
*/
|
|
1040
|
-
export type Gte = {
|
|
1041
|
-
gte: number;
|
|
1042
|
-
};
|
|
1043
|
-
|
|
1044
|
-
/**
|
|
1045
|
-
* Greater than
|
|
1046
|
-
*/
|
|
1047
|
-
export type Gt = {
|
|
1048
|
-
gt: number;
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
export type Ne = string | number | boolean;
|
|
1052
|
-
|
|
1053
|
-
/**
|
|
1054
|
-
* Not equal to
|
|
1055
|
-
*/
|
|
1056
|
-
export type OneNe = {
|
|
1057
|
-
ne: string | number | boolean;
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
export type Eq = string | number | boolean;
|
|
1061
|
-
|
|
1062
|
-
/**
|
|
1063
|
-
* Equal to
|
|
1064
|
-
*/
|
|
1065
|
-
export type OneEq = {
|
|
1066
|
-
eq: string | number | boolean;
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
export type One = OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
|
|
1070
|
-
|
|
1071
|
-
/**
|
|
1072
|
-
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
1073
|
-
*/
|
|
1074
|
-
export type KnowledgeFilter = KnowledgeFilterAnd | KnowledgeFilterOr | {
|
|
1075
|
-
[k: string]: OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
|
|
1076
|
-
};
|
|
1077
|
-
|
|
1078
|
-
/**
|
|
1079
|
-
* The deployment request payload
|
|
1080
|
-
*/
|
|
1081
|
-
export type InvokeDeploymentRequest = {
|
|
1082
|
-
/**
|
|
1083
|
-
* The deployment key to invoke
|
|
1084
|
-
*/
|
|
1085
|
-
key: string;
|
|
1086
|
-
/**
|
|
1087
|
-
* If set, partial message content will be sent. Tokens will be sent as data-only `server-sent events` as they become available, with the stream terminated by a `data: [DONE]` message.
|
|
1088
|
-
*/
|
|
1089
|
-
stream?: boolean | undefined;
|
|
1090
|
-
/**
|
|
1091
|
-
* 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.
|
|
1092
|
-
*/
|
|
1093
|
-
inputs?: { [k: string]: any } | undefined;
|
|
1094
|
-
/**
|
|
1095
|
-
* Key-value pairs that match your data model and fields declared in your deployment routing configuration
|
|
1096
|
-
*/
|
|
1097
|
-
context?: { [k: string]: any } | undefined;
|
|
1098
|
-
/**
|
|
1099
|
-
* A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
|
|
1100
|
-
*/
|
|
1101
|
-
prefixMessages?:
|
|
1102
|
-
| Array<
|
|
1103
|
-
| SystemMessage
|
|
1104
|
-
| DeveloperMessage
|
|
1105
|
-
| UserMessage
|
|
1106
|
-
| AssistantMessage
|
|
1107
|
-
| ToolMessage
|
|
1108
|
-
>
|
|
1109
|
-
| undefined;
|
|
1110
|
-
/**
|
|
1111
|
-
* A list of messages to send to the deployment.
|
|
1112
|
-
*/
|
|
1113
|
-
messages?:
|
|
1114
|
-
| Array<
|
|
1115
|
-
| MessagesSystemMessage
|
|
1116
|
-
| MessagesDeveloperMessage
|
|
1117
|
-
| MessagesUserMessage
|
|
1118
|
-
| MessagesAssistantMessage
|
|
1119
|
-
| MessagesToolMessage
|
|
1120
|
-
>
|
|
1121
|
-
| undefined;
|
|
1122
|
-
/**
|
|
1123
|
-
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
1124
|
-
*/
|
|
1125
|
-
identity?: PublicIdentity | undefined;
|
|
1126
|
-
/**
|
|
1127
|
-
* A list of file IDs that are associated with the deployment request.
|
|
1128
|
-
*/
|
|
1129
|
-
fileIds?: Array<string> | undefined;
|
|
1130
|
-
/**
|
|
1131
|
-
* Key-value pairs that you want to attach to the log generated by this request.
|
|
1132
|
-
*/
|
|
1133
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1134
|
-
/**
|
|
1135
|
-
* 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.
|
|
1136
|
-
*/
|
|
1137
|
-
extraParams?: { [k: string]: any } | undefined;
|
|
1138
|
-
/**
|
|
1139
|
-
* 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.
|
|
1140
|
-
*/
|
|
1141
|
-
documents?: Array<Documents> | undefined;
|
|
1142
|
-
invokeOptions?: InvokeOptions | undefined;
|
|
1143
|
-
thread?: Thread | undefined;
|
|
1144
|
-
/**
|
|
1145
|
-
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
1146
|
-
*/
|
|
1147
|
-
knowledgeFilter?: KnowledgeFilterAnd | KnowledgeFilterOr | {
|
|
1148
|
-
[k: string]: OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
|
|
1149
|
-
} | undefined;
|
|
1150
|
-
};
|
|
1151
|
-
|
|
1152
|
-
/** @internal */
|
|
1153
|
-
export type InvokeDeploymentRequestContent2$Outbound =
|
|
1154
|
-
TextContentPartSchema$Outbound;
|
|
1155
|
-
|
|
1156
|
-
/** @internal */
|
|
1157
|
-
export const InvokeDeploymentRequestContent2$outboundSchema: z.ZodType<
|
|
1158
|
-
InvokeDeploymentRequestContent2$Outbound,
|
|
1159
|
-
z.ZodTypeDef,
|
|
1160
|
-
InvokeDeploymentRequestContent2
|
|
1161
|
-
> = TextContentPartSchema$outboundSchema;
|
|
1162
|
-
|
|
1163
|
-
export function invokeDeploymentRequestContent2ToJSON(
|
|
1164
|
-
invokeDeploymentRequestContent2: InvokeDeploymentRequestContent2,
|
|
1165
|
-
): string {
|
|
1166
|
-
return JSON.stringify(
|
|
1167
|
-
InvokeDeploymentRequestContent2$outboundSchema.parse(
|
|
1168
|
-
invokeDeploymentRequestContent2,
|
|
1169
|
-
),
|
|
1170
|
-
);
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
/** @internal */
|
|
1174
|
-
export type InvokeDeploymentRequestPrefixMessages5Content$Outbound =
|
|
1175
|
-
| string
|
|
1176
|
-
| Array<TextContentPartSchema$Outbound>;
|
|
1177
|
-
|
|
1178
|
-
/** @internal */
|
|
1179
|
-
export const InvokeDeploymentRequestPrefixMessages5Content$outboundSchema:
|
|
1180
|
-
z.ZodType<
|
|
1181
|
-
InvokeDeploymentRequestPrefixMessages5Content$Outbound,
|
|
1182
|
-
z.ZodTypeDef,
|
|
1183
|
-
InvokeDeploymentRequestPrefixMessages5Content
|
|
1184
|
-
> = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
|
|
1185
|
-
|
|
1186
|
-
export function invokeDeploymentRequestPrefixMessages5ContentToJSON(
|
|
1187
|
-
invokeDeploymentRequestPrefixMessages5Content:
|
|
1188
|
-
InvokeDeploymentRequestPrefixMessages5Content,
|
|
1189
|
-
): string {
|
|
1190
|
-
return JSON.stringify(
|
|
1191
|
-
InvokeDeploymentRequestPrefixMessages5Content$outboundSchema.parse(
|
|
1192
|
-
invokeDeploymentRequestPrefixMessages5Content,
|
|
1193
|
-
),
|
|
1194
|
-
);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
/** @internal */
|
|
1198
|
-
export const InvokeDeploymentRequestPrefixMessagesType$outboundSchema:
|
|
1199
|
-
z.ZodNativeEnum<typeof InvokeDeploymentRequestPrefixMessagesType> = z
|
|
1200
|
-
.nativeEnum(InvokeDeploymentRequestPrefixMessagesType);
|
|
1201
|
-
|
|
1202
|
-
/** @internal */
|
|
1203
|
-
export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
|
|
1204
|
-
typeof PrefixMessagesTtl
|
|
1205
|
-
> = z.nativeEnum(PrefixMessagesTtl);
|
|
1206
|
-
|
|
1207
|
-
/** @internal */
|
|
1208
|
-
export type PrefixMessagesCacheControl$Outbound = {
|
|
1209
|
-
type: string;
|
|
1210
|
-
ttl: string;
|
|
1211
|
-
};
|
|
1212
|
-
|
|
1213
|
-
/** @internal */
|
|
1214
|
-
export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
|
|
1215
|
-
PrefixMessagesCacheControl$Outbound,
|
|
1216
|
-
z.ZodTypeDef,
|
|
1217
|
-
PrefixMessagesCacheControl
|
|
1218
|
-
> = z.object({
|
|
1219
|
-
type: InvokeDeploymentRequestPrefixMessagesType$outboundSchema,
|
|
1220
|
-
ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
|
|
1221
|
-
});
|
|
1222
|
-
|
|
1223
|
-
export function prefixMessagesCacheControlToJSON(
|
|
1224
|
-
prefixMessagesCacheControl: PrefixMessagesCacheControl,
|
|
1225
|
-
): string {
|
|
1226
|
-
return JSON.stringify(
|
|
1227
|
-
PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
|
|
1228
|
-
);
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
/** @internal */
|
|
1232
|
-
export type ToolMessage$Outbound = {
|
|
1233
|
-
role: "tool";
|
|
1234
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1235
|
-
tool_call_id: string | null;
|
|
1236
|
-
cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
|
|
1237
|
-
};
|
|
1238
|
-
|
|
1239
|
-
/** @internal */
|
|
1240
|
-
export const ToolMessage$outboundSchema: z.ZodType<
|
|
1241
|
-
ToolMessage$Outbound,
|
|
1242
|
-
z.ZodTypeDef,
|
|
1243
|
-
ToolMessage
|
|
1244
|
-
> = z.object({
|
|
1245
|
-
role: z.literal("tool"),
|
|
1246
|
-
content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
|
|
1247
|
-
toolCallId: z.nullable(z.string()),
|
|
1248
|
-
cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
|
|
1249
|
-
.optional(),
|
|
1250
|
-
}).transform((v) => {
|
|
1251
|
-
return remap$(v, {
|
|
1252
|
-
toolCallId: "tool_call_id",
|
|
1253
|
-
cacheControl: "cache_control",
|
|
1254
|
-
});
|
|
1255
|
-
});
|
|
1256
|
-
|
|
1257
|
-
export function toolMessageToJSON(toolMessage: ToolMessage): string {
|
|
1258
|
-
return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
/** @internal */
|
|
1262
|
-
export type Content2$Outbound =
|
|
1263
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1264
|
-
| RefusalPartSchema$Outbound
|
|
1265
|
-
| ReasoningPartSchema$Outbound
|
|
1266
|
-
| RedactedReasoningPartSchema$Outbound;
|
|
1267
|
-
|
|
1268
|
-
/** @internal */
|
|
1269
|
-
export const Content2$outboundSchema: z.ZodType<
|
|
1270
|
-
Content2$Outbound,
|
|
1271
|
-
z.ZodTypeDef,
|
|
1272
|
-
Content2
|
|
1273
|
-
> = z.union([
|
|
1274
|
-
TextContentPartSchema$outboundSchema.and(
|
|
1275
|
-
z.object({ type: z.literal("text") }),
|
|
1276
|
-
),
|
|
1277
|
-
RefusalPartSchema$outboundSchema,
|
|
1278
|
-
ReasoningPartSchema$outboundSchema,
|
|
1279
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
1280
|
-
]);
|
|
1281
|
-
|
|
1282
|
-
export function content2ToJSON(content2: Content2): string {
|
|
1283
|
-
return JSON.stringify(Content2$outboundSchema.parse(content2));
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
/** @internal */
|
|
1287
|
-
export type InvokeDeploymentRequestPrefixMessages4Content$Outbound =
|
|
1288
|
-
| string
|
|
1289
|
-
| Array<
|
|
1290
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1291
|
-
| RefusalPartSchema$Outbound
|
|
1292
|
-
| ReasoningPartSchema$Outbound
|
|
1293
|
-
| RedactedReasoningPartSchema$Outbound
|
|
1294
|
-
>;
|
|
1295
|
-
|
|
1296
|
-
/** @internal */
|
|
1297
|
-
export const InvokeDeploymentRequestPrefixMessages4Content$outboundSchema:
|
|
1298
|
-
z.ZodType<
|
|
1299
|
-
InvokeDeploymentRequestPrefixMessages4Content$Outbound,
|
|
1300
|
-
z.ZodTypeDef,
|
|
1301
|
-
InvokeDeploymentRequestPrefixMessages4Content
|
|
1302
|
-
> = z.union([
|
|
1303
|
-
z.string(),
|
|
1304
|
-
z.array(
|
|
1305
|
-
z.union([
|
|
1306
|
-
TextContentPartSchema$outboundSchema.and(
|
|
1307
|
-
z.object({ type: z.literal("text") }),
|
|
1308
|
-
),
|
|
1309
|
-
RefusalPartSchema$outboundSchema,
|
|
1310
|
-
ReasoningPartSchema$outboundSchema,
|
|
1311
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
1312
|
-
]),
|
|
1313
|
-
),
|
|
1314
|
-
]);
|
|
1315
|
-
|
|
1316
|
-
export function invokeDeploymentRequestPrefixMessages4ContentToJSON(
|
|
1317
|
-
invokeDeploymentRequestPrefixMessages4Content:
|
|
1318
|
-
InvokeDeploymentRequestPrefixMessages4Content,
|
|
1319
|
-
): string {
|
|
1320
|
-
return JSON.stringify(
|
|
1321
|
-
InvokeDeploymentRequestPrefixMessages4Content$outboundSchema.parse(
|
|
1322
|
-
invokeDeploymentRequestPrefixMessages4Content,
|
|
1323
|
-
),
|
|
1324
|
-
);
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
/** @internal */
|
|
1328
|
-
export type Audio$Outbound = {
|
|
1329
|
-
id: string;
|
|
1330
|
-
};
|
|
1331
|
-
|
|
1332
|
-
/** @internal */
|
|
1333
|
-
export const Audio$outboundSchema: z.ZodType<
|
|
1334
|
-
Audio$Outbound,
|
|
1335
|
-
z.ZodTypeDef,
|
|
1336
|
-
Audio
|
|
1337
|
-
> = z.object({
|
|
1338
|
-
id: z.string(),
|
|
1339
|
-
});
|
|
1340
|
-
|
|
1341
|
-
export function audioToJSON(audio: Audio): string {
|
|
1342
|
-
return JSON.stringify(Audio$outboundSchema.parse(audio));
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
/** @internal */
|
|
1346
|
-
export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1347
|
-
typeof PrefixMessagesType
|
|
1348
|
-
> = z.nativeEnum(PrefixMessagesType);
|
|
1349
|
-
|
|
1350
|
-
/** @internal */
|
|
1351
|
-
export type PrefixMessagesFunction$Outbound = {
|
|
1352
|
-
name?: string | undefined;
|
|
1353
|
-
arguments?: string | undefined;
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1356
|
-
/** @internal */
|
|
1357
|
-
export const PrefixMessagesFunction$outboundSchema: z.ZodType<
|
|
1358
|
-
PrefixMessagesFunction$Outbound,
|
|
1359
|
-
z.ZodTypeDef,
|
|
1360
|
-
PrefixMessagesFunction
|
|
1361
|
-
> = z.object({
|
|
1362
|
-
name: z.string().optional(),
|
|
1363
|
-
arguments: z.string().optional(),
|
|
1364
|
-
});
|
|
1365
|
-
|
|
1366
|
-
export function prefixMessagesFunctionToJSON(
|
|
1367
|
-
prefixMessagesFunction: PrefixMessagesFunction,
|
|
1368
|
-
): string {
|
|
1369
|
-
return JSON.stringify(
|
|
1370
|
-
PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
|
|
1371
|
-
);
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
/** @internal */
|
|
1375
|
-
export type ToolCalls$Outbound = {
|
|
1376
|
-
id: string;
|
|
1377
|
-
type: string;
|
|
1378
|
-
function: PrefixMessagesFunction$Outbound;
|
|
1379
|
-
thought_signature?: string | undefined;
|
|
1380
|
-
};
|
|
1381
|
-
|
|
1382
|
-
/** @internal */
|
|
1383
|
-
export const ToolCalls$outboundSchema: z.ZodType<
|
|
1384
|
-
ToolCalls$Outbound,
|
|
1385
|
-
z.ZodTypeDef,
|
|
1386
|
-
ToolCalls
|
|
1387
|
-
> = z.object({
|
|
1388
|
-
id: z.string(),
|
|
1389
|
-
type: PrefixMessagesType$outboundSchema,
|
|
1390
|
-
function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
|
|
1391
|
-
thoughtSignature: z.string().optional(),
|
|
1392
|
-
}).transform((v) => {
|
|
1393
|
-
return remap$(v, {
|
|
1394
|
-
thoughtSignature: "thought_signature",
|
|
1395
|
-
});
|
|
1396
|
-
});
|
|
1397
|
-
|
|
1398
|
-
export function toolCallsToJSON(toolCalls: ToolCalls): string {
|
|
1399
|
-
return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
/** @internal */
|
|
1403
|
-
export type AssistantMessage$Outbound = {
|
|
1404
|
-
content?:
|
|
1405
|
-
| string
|
|
1406
|
-
| Array<
|
|
1407
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1408
|
-
| RefusalPartSchema$Outbound
|
|
1409
|
-
| ReasoningPartSchema$Outbound
|
|
1410
|
-
| RedactedReasoningPartSchema$Outbound
|
|
1411
|
-
>
|
|
1412
|
-
| null
|
|
1413
|
-
| undefined;
|
|
1414
|
-
refusal?: string | null | undefined;
|
|
1415
|
-
role: "assistant";
|
|
1416
|
-
name?: string | undefined;
|
|
1417
|
-
audio?: Audio$Outbound | null | undefined;
|
|
1418
|
-
tool_calls?: Array<ToolCalls$Outbound> | undefined;
|
|
1419
|
-
};
|
|
1420
|
-
|
|
1421
|
-
/** @internal */
|
|
1422
|
-
export const AssistantMessage$outboundSchema: z.ZodType<
|
|
1423
|
-
AssistantMessage$Outbound,
|
|
1424
|
-
z.ZodTypeDef,
|
|
1425
|
-
AssistantMessage
|
|
1426
|
-
> = z.object({
|
|
1427
|
-
content: z.nullable(
|
|
1428
|
-
z.union([
|
|
1429
|
-
z.string(),
|
|
1430
|
-
z.array(
|
|
1431
|
-
z.union([
|
|
1432
|
-
TextContentPartSchema$outboundSchema.and(
|
|
1433
|
-
z.object({ type: z.literal("text") }),
|
|
1434
|
-
),
|
|
1435
|
-
RefusalPartSchema$outboundSchema,
|
|
1436
|
-
ReasoningPartSchema$outboundSchema,
|
|
1437
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
1438
|
-
]),
|
|
1439
|
-
),
|
|
1440
|
-
]),
|
|
1441
|
-
).optional(),
|
|
1442
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1443
|
-
role: z.literal("assistant"),
|
|
1444
|
-
name: z.string().optional(),
|
|
1445
|
-
audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
|
|
1446
|
-
toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
|
|
1447
|
-
}).transform((v) => {
|
|
1448
|
-
return remap$(v, {
|
|
1449
|
-
toolCalls: "tool_calls",
|
|
1450
|
-
});
|
|
1451
|
-
});
|
|
1452
|
-
|
|
1453
|
-
export function assistantMessageToJSON(
|
|
1454
|
-
assistantMessage: AssistantMessage,
|
|
1455
|
-
): string {
|
|
1456
|
-
return JSON.stringify(
|
|
1457
|
-
AssistantMessage$outboundSchema.parse(assistantMessage),
|
|
1458
|
-
);
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
|
-
/** @internal */
|
|
1462
|
-
export const InvokeDeploymentRequest2PrefixMessagesType$outboundSchema:
|
|
1463
|
-
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessagesType> = z
|
|
1464
|
-
.nativeEnum(InvokeDeploymentRequest2PrefixMessagesType);
|
|
1465
|
-
|
|
1466
|
-
/** @internal */
|
|
1467
|
-
export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
|
|
1468
|
-
.nativeEnum(TwoTtl);
|
|
1469
|
-
|
|
1470
|
-
/** @internal */
|
|
1471
|
-
export type TwoCacheControl$Outbound = {
|
|
1472
|
-
type: string;
|
|
1473
|
-
ttl: string;
|
|
1474
|
-
};
|
|
1475
|
-
|
|
1476
|
-
/** @internal */
|
|
1477
|
-
export const TwoCacheControl$outboundSchema: z.ZodType<
|
|
1478
|
-
TwoCacheControl$Outbound,
|
|
1479
|
-
z.ZodTypeDef,
|
|
1480
|
-
TwoCacheControl
|
|
1481
|
-
> = z.object({
|
|
1482
|
-
type: InvokeDeploymentRequest2PrefixMessagesType$outboundSchema,
|
|
1483
|
-
ttl: TwoTtl$outboundSchema.default("5m"),
|
|
1484
|
-
});
|
|
1485
|
-
|
|
1486
|
-
export function twoCacheControlToJSON(
|
|
1487
|
-
twoCacheControl: TwoCacheControl,
|
|
1488
|
-
): string {
|
|
1489
|
-
return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
/** @internal */
|
|
1493
|
-
export type Four$Outbound = {
|
|
1494
|
-
type: "file";
|
|
1495
|
-
cache_control?: TwoCacheControl$Outbound | undefined;
|
|
1496
|
-
file: FileContentPartSchema$Outbound;
|
|
1497
|
-
};
|
|
1498
|
-
|
|
1499
|
-
/** @internal */
|
|
1500
|
-
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
1501
|
-
z.object({
|
|
1502
|
-
type: z.literal("file"),
|
|
1503
|
-
cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
|
|
1504
|
-
file: FileContentPartSchema$outboundSchema,
|
|
1505
|
-
}).transform((v) => {
|
|
1506
|
-
return remap$(v, {
|
|
1507
|
-
cacheControl: "cache_control",
|
|
1508
|
-
});
|
|
1509
|
-
});
|
|
1510
|
-
|
|
1511
|
-
export function fourToJSON(four: Four): string {
|
|
1512
|
-
return JSON.stringify(Four$outboundSchema.parse(four));
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
/** @internal */
|
|
1516
|
-
export type Two$Outbound =
|
|
1517
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1518
|
-
| ImageContentPartSchema$Outbound
|
|
1519
|
-
| AudioContentPartSchema$Outbound
|
|
1520
|
-
| Four$Outbound;
|
|
1521
|
-
|
|
1522
|
-
/** @internal */
|
|
1523
|
-
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
1524
|
-
.union([
|
|
1525
|
-
TextContentPartSchema$outboundSchema.and(
|
|
1526
|
-
z.object({ type: z.literal("text") }),
|
|
1527
|
-
),
|
|
1528
|
-
ImageContentPartSchema$outboundSchema,
|
|
1529
|
-
AudioContentPartSchema$outboundSchema,
|
|
1530
|
-
z.lazy(() => Four$outboundSchema),
|
|
1531
|
-
]);
|
|
1532
|
-
|
|
1533
|
-
export function twoToJSON(two: Two): string {
|
|
1534
|
-
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
/** @internal */
|
|
1538
|
-
export type InvokeDeploymentRequestPrefixMessagesContent$Outbound =
|
|
1539
|
-
| string
|
|
1540
|
-
| Array<
|
|
1541
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1542
|
-
| ImageContentPartSchema$Outbound
|
|
1543
|
-
| AudioContentPartSchema$Outbound
|
|
1544
|
-
| Four$Outbound
|
|
1545
|
-
>;
|
|
1546
|
-
|
|
1547
|
-
/** @internal */
|
|
1548
|
-
export const InvokeDeploymentRequestPrefixMessagesContent$outboundSchema:
|
|
1549
|
-
z.ZodType<
|
|
1550
|
-
InvokeDeploymentRequestPrefixMessagesContent$Outbound,
|
|
1551
|
-
z.ZodTypeDef,
|
|
1552
|
-
InvokeDeploymentRequestPrefixMessagesContent
|
|
1553
|
-
> = z.union([
|
|
1554
|
-
z.string(),
|
|
1555
|
-
z.array(
|
|
1556
|
-
z.union([
|
|
1557
|
-
TextContentPartSchema$outboundSchema.and(
|
|
1558
|
-
z.object({ type: z.literal("text") }),
|
|
1559
|
-
),
|
|
1560
|
-
ImageContentPartSchema$outboundSchema,
|
|
1561
|
-
AudioContentPartSchema$outboundSchema,
|
|
1562
|
-
z.lazy(() => Four$outboundSchema),
|
|
1563
|
-
]),
|
|
1564
|
-
),
|
|
1565
|
-
]);
|
|
1566
|
-
|
|
1567
|
-
export function invokeDeploymentRequestPrefixMessagesContentToJSON(
|
|
1568
|
-
invokeDeploymentRequestPrefixMessagesContent:
|
|
1569
|
-
InvokeDeploymentRequestPrefixMessagesContent,
|
|
1570
|
-
): string {
|
|
1571
|
-
return JSON.stringify(
|
|
1572
|
-
InvokeDeploymentRequestPrefixMessagesContent$outboundSchema.parse(
|
|
1573
|
-
invokeDeploymentRequestPrefixMessagesContent,
|
|
1574
|
-
),
|
|
1575
|
-
);
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
/** @internal */
|
|
1579
|
-
export type UserMessage$Outbound = {
|
|
1580
|
-
role: "user";
|
|
1581
|
-
name?: string | undefined;
|
|
1582
|
-
content:
|
|
1583
|
-
| string
|
|
1584
|
-
| Array<
|
|
1585
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1586
|
-
| ImageContentPartSchema$Outbound
|
|
1587
|
-
| AudioContentPartSchema$Outbound
|
|
1588
|
-
| Four$Outbound
|
|
1589
|
-
>;
|
|
1590
|
-
};
|
|
1591
|
-
|
|
1592
|
-
/** @internal */
|
|
1593
|
-
export const UserMessage$outboundSchema: z.ZodType<
|
|
1594
|
-
UserMessage$Outbound,
|
|
1595
|
-
z.ZodTypeDef,
|
|
1596
|
-
UserMessage
|
|
1597
|
-
> = z.object({
|
|
1598
|
-
role: z.literal("user"),
|
|
1599
|
-
name: z.string().optional(),
|
|
1600
|
-
content: z.union([
|
|
1601
|
-
z.string(),
|
|
1602
|
-
z.array(
|
|
1603
|
-
z.union([
|
|
1604
|
-
TextContentPartSchema$outboundSchema.and(
|
|
1605
|
-
z.object({ type: z.literal("text") }),
|
|
1606
|
-
),
|
|
1607
|
-
ImageContentPartSchema$outboundSchema,
|
|
1608
|
-
AudioContentPartSchema$outboundSchema,
|
|
1609
|
-
z.lazy(() => Four$outboundSchema),
|
|
1610
|
-
]),
|
|
1611
|
-
),
|
|
1612
|
-
]),
|
|
1613
|
-
});
|
|
1614
|
-
|
|
1615
|
-
export function userMessageToJSON(userMessage: UserMessage): string {
|
|
1616
|
-
return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
/** @internal */
|
|
1620
|
-
export type PrefixMessagesContent$Outbound =
|
|
1621
|
-
| string
|
|
1622
|
-
| Array<TextContentPartSchema$Outbound>;
|
|
1623
|
-
|
|
1624
|
-
/** @internal */
|
|
1625
|
-
export const PrefixMessagesContent$outboundSchema: z.ZodType<
|
|
1626
|
-
PrefixMessagesContent$Outbound,
|
|
1627
|
-
z.ZodTypeDef,
|
|
1628
|
-
PrefixMessagesContent
|
|
1629
|
-
> = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
|
|
1630
|
-
|
|
1631
|
-
export function prefixMessagesContentToJSON(
|
|
1632
|
-
prefixMessagesContent: PrefixMessagesContent,
|
|
1633
|
-
): string {
|
|
1634
|
-
return JSON.stringify(
|
|
1635
|
-
PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
|
|
1636
|
-
);
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
/** @internal */
|
|
1640
|
-
export type DeveloperMessage$Outbound = {
|
|
1641
|
-
role: "developer";
|
|
1642
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1643
|
-
name?: string | undefined;
|
|
1644
|
-
};
|
|
1645
|
-
|
|
1646
|
-
/** @internal */
|
|
1647
|
-
export const DeveloperMessage$outboundSchema: z.ZodType<
|
|
1648
|
-
DeveloperMessage$Outbound,
|
|
1649
|
-
z.ZodTypeDef,
|
|
1650
|
-
DeveloperMessage
|
|
1651
|
-
> = z.object({
|
|
1652
|
-
role: z.literal("developer"),
|
|
1653
|
-
content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
|
|
1654
|
-
name: z.string().optional(),
|
|
1655
|
-
});
|
|
1656
|
-
|
|
1657
|
-
export function developerMessageToJSON(
|
|
1658
|
-
developerMessage: DeveloperMessage,
|
|
1659
|
-
): string {
|
|
1660
|
-
return JSON.stringify(
|
|
1661
|
-
DeveloperMessage$outboundSchema.parse(developerMessage),
|
|
1662
|
-
);
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
/** @internal */
|
|
1666
|
-
export type Content$Outbound = string | Array<TextContentPartSchema$Outbound>;
|
|
1667
|
-
|
|
1668
|
-
/** @internal */
|
|
1669
|
-
export const Content$outboundSchema: z.ZodType<
|
|
1670
|
-
Content$Outbound,
|
|
1671
|
-
z.ZodTypeDef,
|
|
1672
|
-
Content
|
|
1673
|
-
> = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
|
|
1674
|
-
|
|
1675
|
-
export function contentToJSON(content: Content): string {
|
|
1676
|
-
return JSON.stringify(Content$outboundSchema.parse(content));
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
/** @internal */
|
|
1680
|
-
export type SystemMessage$Outbound = {
|
|
1681
|
-
role: "system";
|
|
1682
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1683
|
-
name?: string | undefined;
|
|
1684
|
-
};
|
|
1685
|
-
|
|
1686
|
-
/** @internal */
|
|
1687
|
-
export const SystemMessage$outboundSchema: z.ZodType<
|
|
1688
|
-
SystemMessage$Outbound,
|
|
1689
|
-
z.ZodTypeDef,
|
|
1690
|
-
SystemMessage
|
|
1691
|
-
> = z.object({
|
|
1692
|
-
role: z.literal("system"),
|
|
1693
|
-
content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
|
|
1694
|
-
name: z.string().optional(),
|
|
1695
|
-
});
|
|
1696
|
-
|
|
1697
|
-
export function systemMessageToJSON(systemMessage: SystemMessage): string {
|
|
1698
|
-
return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
/** @internal */
|
|
1702
|
-
export type PrefixMessages$Outbound =
|
|
1703
|
-
| SystemMessage$Outbound
|
|
1704
|
-
| DeveloperMessage$Outbound
|
|
1705
|
-
| UserMessage$Outbound
|
|
1706
|
-
| AssistantMessage$Outbound
|
|
1707
|
-
| ToolMessage$Outbound;
|
|
1708
|
-
|
|
1709
|
-
/** @internal */
|
|
1710
|
-
export const PrefixMessages$outboundSchema: z.ZodType<
|
|
1711
|
-
PrefixMessages$Outbound,
|
|
1712
|
-
z.ZodTypeDef,
|
|
1713
|
-
PrefixMessages
|
|
1714
|
-
> = z.union([
|
|
1715
|
-
z.lazy(() => SystemMessage$outboundSchema),
|
|
1716
|
-
z.lazy(() => DeveloperMessage$outboundSchema),
|
|
1717
|
-
z.lazy(() => UserMessage$outboundSchema),
|
|
1718
|
-
z.lazy(() => AssistantMessage$outboundSchema),
|
|
1719
|
-
z.lazy(() => ToolMessage$outboundSchema),
|
|
1720
|
-
]);
|
|
1721
|
-
|
|
1722
|
-
export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
|
|
1723
|
-
return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
/** @internal */
|
|
1727
|
-
export type InvokeDeploymentRequestContentMessages52$Outbound =
|
|
1728
|
-
TextContentPartSchema$Outbound;
|
|
1729
|
-
|
|
1730
|
-
/** @internal */
|
|
1731
|
-
export const InvokeDeploymentRequestContentMessages52$outboundSchema: z.ZodType<
|
|
1732
|
-
InvokeDeploymentRequestContentMessages52$Outbound,
|
|
1733
|
-
z.ZodTypeDef,
|
|
1734
|
-
InvokeDeploymentRequestContentMessages52
|
|
1735
|
-
> = TextContentPartSchema$outboundSchema;
|
|
1736
|
-
|
|
1737
|
-
export function invokeDeploymentRequestContentMessages52ToJSON(
|
|
1738
|
-
invokeDeploymentRequestContentMessages52:
|
|
1739
|
-
InvokeDeploymentRequestContentMessages52,
|
|
1740
|
-
): string {
|
|
1741
|
-
return JSON.stringify(
|
|
1742
|
-
InvokeDeploymentRequestContentMessages52$outboundSchema.parse(
|
|
1743
|
-
invokeDeploymentRequestContentMessages52,
|
|
1744
|
-
),
|
|
1745
|
-
);
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
/** @internal */
|
|
1749
|
-
export type InvokeDeploymentRequestMessages5Content$Outbound =
|
|
1750
|
-
| string
|
|
1751
|
-
| Array<TextContentPartSchema$Outbound>;
|
|
1752
|
-
|
|
1753
|
-
/** @internal */
|
|
1754
|
-
export const InvokeDeploymentRequestMessages5Content$outboundSchema: z.ZodType<
|
|
1755
|
-
InvokeDeploymentRequestMessages5Content$Outbound,
|
|
1756
|
-
z.ZodTypeDef,
|
|
1757
|
-
InvokeDeploymentRequestMessages5Content
|
|
1758
|
-
> = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
|
|
1759
|
-
|
|
1760
|
-
export function invokeDeploymentRequestMessages5ContentToJSON(
|
|
1761
|
-
invokeDeploymentRequestMessages5Content:
|
|
1762
|
-
InvokeDeploymentRequestMessages5Content,
|
|
1763
|
-
): string {
|
|
1764
|
-
return JSON.stringify(
|
|
1765
|
-
InvokeDeploymentRequestMessages5Content$outboundSchema.parse(
|
|
1766
|
-
invokeDeploymentRequestMessages5Content,
|
|
1767
|
-
),
|
|
1768
|
-
);
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
/** @internal */
|
|
1772
|
-
export const InvokeDeploymentRequestMessagesType$outboundSchema:
|
|
1773
|
-
z.ZodNativeEnum<typeof InvokeDeploymentRequestMessagesType> = z.nativeEnum(
|
|
1774
|
-
InvokeDeploymentRequestMessagesType,
|
|
1775
|
-
);
|
|
1776
|
-
|
|
1777
|
-
/** @internal */
|
|
1778
|
-
export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
|
|
1779
|
-
.nativeEnum(MessagesTtl);
|
|
1780
|
-
|
|
1781
|
-
/** @internal */
|
|
1782
|
-
export type MessagesCacheControl$Outbound = {
|
|
1783
|
-
type: string;
|
|
1784
|
-
ttl: string;
|
|
1785
|
-
};
|
|
1786
|
-
|
|
1787
|
-
/** @internal */
|
|
1788
|
-
export const MessagesCacheControl$outboundSchema: z.ZodType<
|
|
1789
|
-
MessagesCacheControl$Outbound,
|
|
1790
|
-
z.ZodTypeDef,
|
|
1791
|
-
MessagesCacheControl
|
|
1792
|
-
> = z.object({
|
|
1793
|
-
type: InvokeDeploymentRequestMessagesType$outboundSchema,
|
|
1794
|
-
ttl: MessagesTtl$outboundSchema.default("5m"),
|
|
1795
|
-
});
|
|
1796
|
-
|
|
1797
|
-
export function messagesCacheControlToJSON(
|
|
1798
|
-
messagesCacheControl: MessagesCacheControl,
|
|
1799
|
-
): string {
|
|
1800
|
-
return JSON.stringify(
|
|
1801
|
-
MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
|
|
1802
|
-
);
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
/** @internal */
|
|
1806
|
-
export type MessagesToolMessage$Outbound = {
|
|
1807
|
-
role: "tool";
|
|
1808
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1809
|
-
tool_call_id: string | null;
|
|
1810
|
-
cache_control?: MessagesCacheControl$Outbound | undefined;
|
|
1811
|
-
};
|
|
1812
|
-
|
|
1813
|
-
/** @internal */
|
|
1814
|
-
export const MessagesToolMessage$outboundSchema: z.ZodType<
|
|
1815
|
-
MessagesToolMessage$Outbound,
|
|
1816
|
-
z.ZodTypeDef,
|
|
1817
|
-
MessagesToolMessage
|
|
1818
|
-
> = z.object({
|
|
1819
|
-
role: z.literal("tool"),
|
|
1820
|
-
content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
|
|
1821
|
-
toolCallId: z.nullable(z.string()),
|
|
1822
|
-
cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
|
|
1823
|
-
}).transform((v) => {
|
|
1824
|
-
return remap$(v, {
|
|
1825
|
-
toolCallId: "tool_call_id",
|
|
1826
|
-
cacheControl: "cache_control",
|
|
1827
|
-
});
|
|
1828
|
-
});
|
|
1829
|
-
|
|
1830
|
-
export function messagesToolMessageToJSON(
|
|
1831
|
-
messagesToolMessage: MessagesToolMessage,
|
|
1832
|
-
): string {
|
|
1833
|
-
return JSON.stringify(
|
|
1834
|
-
MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
|
|
1835
|
-
);
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
/** @internal */
|
|
1839
|
-
export type InvokeDeploymentRequestContentMessages42$Outbound =
|
|
1840
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1841
|
-
| RefusalPartSchema$Outbound
|
|
1842
|
-
| ReasoningPartSchema$Outbound
|
|
1843
|
-
| RedactedReasoningPartSchema$Outbound;
|
|
1844
|
-
|
|
1845
|
-
/** @internal */
|
|
1846
|
-
export const InvokeDeploymentRequestContentMessages42$outboundSchema: z.ZodType<
|
|
1847
|
-
InvokeDeploymentRequestContentMessages42$Outbound,
|
|
1848
|
-
z.ZodTypeDef,
|
|
1849
|
-
InvokeDeploymentRequestContentMessages42
|
|
1850
|
-
> = z.union([
|
|
1851
|
-
TextContentPartSchema$outboundSchema.and(
|
|
1852
|
-
z.object({ type: z.literal("text") }),
|
|
1853
|
-
),
|
|
1854
|
-
RefusalPartSchema$outboundSchema,
|
|
1855
|
-
ReasoningPartSchema$outboundSchema,
|
|
1856
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
1857
|
-
]);
|
|
1858
|
-
|
|
1859
|
-
export function invokeDeploymentRequestContentMessages42ToJSON(
|
|
1860
|
-
invokeDeploymentRequestContentMessages42:
|
|
1861
|
-
InvokeDeploymentRequestContentMessages42,
|
|
1862
|
-
): string {
|
|
1863
|
-
return JSON.stringify(
|
|
1864
|
-
InvokeDeploymentRequestContentMessages42$outboundSchema.parse(
|
|
1865
|
-
invokeDeploymentRequestContentMessages42,
|
|
1866
|
-
),
|
|
1867
|
-
);
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
/** @internal */
|
|
1871
|
-
export type InvokeDeploymentRequestMessages4Content$Outbound =
|
|
1872
|
-
| string
|
|
1873
|
-
| Array<
|
|
1874
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1875
|
-
| RefusalPartSchema$Outbound
|
|
1876
|
-
| ReasoningPartSchema$Outbound
|
|
1877
|
-
| RedactedReasoningPartSchema$Outbound
|
|
1878
|
-
>;
|
|
1879
|
-
|
|
1880
|
-
/** @internal */
|
|
1881
|
-
export const InvokeDeploymentRequestMessages4Content$outboundSchema: z.ZodType<
|
|
1882
|
-
InvokeDeploymentRequestMessages4Content$Outbound,
|
|
1883
|
-
z.ZodTypeDef,
|
|
1884
|
-
InvokeDeploymentRequestMessages4Content
|
|
1885
|
-
> = z.union([
|
|
1886
|
-
z.string(),
|
|
1887
|
-
z.array(
|
|
1888
|
-
z.union([
|
|
1889
|
-
TextContentPartSchema$outboundSchema.and(
|
|
1890
|
-
z.object({ type: z.literal("text") }),
|
|
1891
|
-
),
|
|
1892
|
-
RefusalPartSchema$outboundSchema,
|
|
1893
|
-
ReasoningPartSchema$outboundSchema,
|
|
1894
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
1895
|
-
]),
|
|
1896
|
-
),
|
|
1897
|
-
]);
|
|
1898
|
-
|
|
1899
|
-
export function invokeDeploymentRequestMessages4ContentToJSON(
|
|
1900
|
-
invokeDeploymentRequestMessages4Content:
|
|
1901
|
-
InvokeDeploymentRequestMessages4Content,
|
|
1902
|
-
): string {
|
|
1903
|
-
return JSON.stringify(
|
|
1904
|
-
InvokeDeploymentRequestMessages4Content$outboundSchema.parse(
|
|
1905
|
-
invokeDeploymentRequestMessages4Content,
|
|
1906
|
-
),
|
|
1907
|
-
);
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
/** @internal */
|
|
1911
|
-
export type MessagesAudio$Outbound = {
|
|
1912
|
-
id: string;
|
|
1913
|
-
};
|
|
1914
|
-
|
|
1915
|
-
/** @internal */
|
|
1916
|
-
export const MessagesAudio$outboundSchema: z.ZodType<
|
|
1917
|
-
MessagesAudio$Outbound,
|
|
1918
|
-
z.ZodTypeDef,
|
|
1919
|
-
MessagesAudio
|
|
1920
|
-
> = z.object({
|
|
1921
|
-
id: z.string(),
|
|
1922
|
-
});
|
|
1923
|
-
|
|
1924
|
-
export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
|
|
1925
|
-
return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
/** @internal */
|
|
1929
|
-
export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
|
|
1930
|
-
z.nativeEnum(MessagesType);
|
|
1931
|
-
|
|
1932
|
-
/** @internal */
|
|
1933
|
-
export type MessagesFunction$Outbound = {
|
|
1934
|
-
name?: string | undefined;
|
|
1935
|
-
arguments?: string | undefined;
|
|
1936
|
-
};
|
|
1937
|
-
|
|
1938
|
-
/** @internal */
|
|
1939
|
-
export const MessagesFunction$outboundSchema: z.ZodType<
|
|
1940
|
-
MessagesFunction$Outbound,
|
|
1941
|
-
z.ZodTypeDef,
|
|
1942
|
-
MessagesFunction
|
|
1943
|
-
> = z.object({
|
|
1944
|
-
name: z.string().optional(),
|
|
1945
|
-
arguments: z.string().optional(),
|
|
1946
|
-
});
|
|
1947
|
-
|
|
1948
|
-
export function messagesFunctionToJSON(
|
|
1949
|
-
messagesFunction: MessagesFunction,
|
|
1950
|
-
): string {
|
|
1951
|
-
return JSON.stringify(
|
|
1952
|
-
MessagesFunction$outboundSchema.parse(messagesFunction),
|
|
1953
|
-
);
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
/** @internal */
|
|
1957
|
-
export type MessagesToolCalls$Outbound = {
|
|
1958
|
-
id: string;
|
|
1959
|
-
type: string;
|
|
1960
|
-
function: MessagesFunction$Outbound;
|
|
1961
|
-
thought_signature?: string | undefined;
|
|
1962
|
-
};
|
|
1963
|
-
|
|
1964
|
-
/** @internal */
|
|
1965
|
-
export const MessagesToolCalls$outboundSchema: z.ZodType<
|
|
1966
|
-
MessagesToolCalls$Outbound,
|
|
1967
|
-
z.ZodTypeDef,
|
|
1968
|
-
MessagesToolCalls
|
|
1969
|
-
> = z.object({
|
|
1970
|
-
id: z.string(),
|
|
1971
|
-
type: MessagesType$outboundSchema,
|
|
1972
|
-
function: z.lazy(() => MessagesFunction$outboundSchema),
|
|
1973
|
-
thoughtSignature: z.string().optional(),
|
|
1974
|
-
}).transform((v) => {
|
|
1975
|
-
return remap$(v, {
|
|
1976
|
-
thoughtSignature: "thought_signature",
|
|
1977
|
-
});
|
|
1978
|
-
});
|
|
1979
|
-
|
|
1980
|
-
export function messagesToolCallsToJSON(
|
|
1981
|
-
messagesToolCalls: MessagesToolCalls,
|
|
1982
|
-
): string {
|
|
1983
|
-
return JSON.stringify(
|
|
1984
|
-
MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
|
|
1985
|
-
);
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
/** @internal */
|
|
1989
|
-
export type MessagesAssistantMessage$Outbound = {
|
|
1990
|
-
content?:
|
|
1991
|
-
| string
|
|
1992
|
-
| Array<
|
|
1993
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
1994
|
-
| RefusalPartSchema$Outbound
|
|
1995
|
-
| ReasoningPartSchema$Outbound
|
|
1996
|
-
| RedactedReasoningPartSchema$Outbound
|
|
1997
|
-
>
|
|
1998
|
-
| null
|
|
1999
|
-
| undefined;
|
|
2000
|
-
refusal?: string | null | undefined;
|
|
2001
|
-
role: "assistant";
|
|
2002
|
-
name?: string | undefined;
|
|
2003
|
-
audio?: MessagesAudio$Outbound | null | undefined;
|
|
2004
|
-
tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
|
|
2005
|
-
};
|
|
2006
|
-
|
|
2007
|
-
/** @internal */
|
|
2008
|
-
export const MessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
2009
|
-
MessagesAssistantMessage$Outbound,
|
|
2010
|
-
z.ZodTypeDef,
|
|
2011
|
-
MessagesAssistantMessage
|
|
2012
|
-
> = z.object({
|
|
2013
|
-
content: z.nullable(
|
|
2014
|
-
z.union([
|
|
2015
|
-
z.string(),
|
|
2016
|
-
z.array(
|
|
2017
|
-
z.union([
|
|
2018
|
-
TextContentPartSchema$outboundSchema.and(
|
|
2019
|
-
z.object({ type: z.literal("text") }),
|
|
2020
|
-
),
|
|
2021
|
-
RefusalPartSchema$outboundSchema,
|
|
2022
|
-
ReasoningPartSchema$outboundSchema,
|
|
2023
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
2024
|
-
]),
|
|
2025
|
-
),
|
|
2026
|
-
]),
|
|
2027
|
-
).optional(),
|
|
2028
|
-
refusal: z.nullable(z.string()).optional(),
|
|
2029
|
-
role: z.literal("assistant"),
|
|
2030
|
-
name: z.string().optional(),
|
|
2031
|
-
audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
|
|
2032
|
-
toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
|
|
2033
|
-
}).transform((v) => {
|
|
2034
|
-
return remap$(v, {
|
|
2035
|
-
toolCalls: "tool_calls",
|
|
2036
|
-
});
|
|
2037
|
-
});
|
|
2038
|
-
|
|
2039
|
-
export function messagesAssistantMessageToJSON(
|
|
2040
|
-
messagesAssistantMessage: MessagesAssistantMessage,
|
|
2041
|
-
): string {
|
|
2042
|
-
return JSON.stringify(
|
|
2043
|
-
MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
|
|
2044
|
-
);
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
/** @internal */
|
|
2048
|
-
export const InvokeDeploymentRequest2MessagesType$outboundSchema:
|
|
2049
|
-
z.ZodNativeEnum<typeof InvokeDeploymentRequest2MessagesType> = z.nativeEnum(
|
|
2050
|
-
InvokeDeploymentRequest2MessagesType,
|
|
2051
|
-
);
|
|
2052
|
-
|
|
2053
|
-
/** @internal */
|
|
2054
|
-
export const InvokeDeploymentRequest2Ttl$outboundSchema: z.ZodNativeEnum<
|
|
2055
|
-
typeof InvokeDeploymentRequest2Ttl
|
|
2056
|
-
> = z.nativeEnum(InvokeDeploymentRequest2Ttl);
|
|
2057
|
-
|
|
2058
|
-
/** @internal */
|
|
2059
|
-
export type InvokeDeploymentRequest2CacheControl$Outbound = {
|
|
2060
|
-
type: string;
|
|
2061
|
-
ttl: string;
|
|
2062
|
-
};
|
|
2063
|
-
|
|
2064
|
-
/** @internal */
|
|
2065
|
-
export const InvokeDeploymentRequest2CacheControl$outboundSchema: z.ZodType<
|
|
2066
|
-
InvokeDeploymentRequest2CacheControl$Outbound,
|
|
2067
|
-
z.ZodTypeDef,
|
|
2068
|
-
InvokeDeploymentRequest2CacheControl
|
|
2069
|
-
> = z.object({
|
|
2070
|
-
type: InvokeDeploymentRequest2MessagesType$outboundSchema,
|
|
2071
|
-
ttl: InvokeDeploymentRequest2Ttl$outboundSchema.default("5m"),
|
|
2072
|
-
});
|
|
2073
|
-
|
|
2074
|
-
export function invokeDeploymentRequest2CacheControlToJSON(
|
|
2075
|
-
invokeDeploymentRequest2CacheControl: InvokeDeploymentRequest2CacheControl,
|
|
2076
|
-
): string {
|
|
2077
|
-
return JSON.stringify(
|
|
2078
|
-
InvokeDeploymentRequest2CacheControl$outboundSchema.parse(
|
|
2079
|
-
invokeDeploymentRequest2CacheControl,
|
|
2080
|
-
),
|
|
2081
|
-
);
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
/** @internal */
|
|
2085
|
-
export type Two4$Outbound = {
|
|
2086
|
-
type: "file";
|
|
2087
|
-
cache_control?: InvokeDeploymentRequest2CacheControl$Outbound | undefined;
|
|
2088
|
-
file: FileContentPartSchema$Outbound;
|
|
2089
|
-
};
|
|
2090
|
-
|
|
2091
|
-
/** @internal */
|
|
2092
|
-
export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
|
|
2093
|
-
z.object({
|
|
2094
|
-
type: z.literal("file"),
|
|
2095
|
-
cacheControl: z.lazy(() =>
|
|
2096
|
-
InvokeDeploymentRequest2CacheControl$outboundSchema
|
|
2097
|
-
).optional(),
|
|
2098
|
-
file: FileContentPartSchema$outboundSchema,
|
|
2099
|
-
}).transform((v) => {
|
|
2100
|
-
return remap$(v, {
|
|
2101
|
-
cacheControl: "cache_control",
|
|
2102
|
-
});
|
|
2103
|
-
});
|
|
2104
|
-
|
|
2105
|
-
export function two4ToJSON(two4: Two4): string {
|
|
2106
|
-
return JSON.stringify(Two4$outboundSchema.parse(two4));
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
/** @internal */
|
|
2110
|
-
export type InvokeDeploymentRequestContentMessages2$Outbound =
|
|
2111
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
2112
|
-
| ImageContentPartSchema$Outbound
|
|
2113
|
-
| AudioContentPartSchema$Outbound
|
|
2114
|
-
| Two4$Outbound;
|
|
2115
|
-
|
|
2116
|
-
/** @internal */
|
|
2117
|
-
export const InvokeDeploymentRequestContentMessages2$outboundSchema: z.ZodType<
|
|
2118
|
-
InvokeDeploymentRequestContentMessages2$Outbound,
|
|
2119
|
-
z.ZodTypeDef,
|
|
2120
|
-
InvokeDeploymentRequestContentMessages2
|
|
2121
|
-
> = z.union([
|
|
2122
|
-
TextContentPartSchema$outboundSchema.and(
|
|
2123
|
-
z.object({ type: z.literal("text") }),
|
|
2124
|
-
),
|
|
2125
|
-
ImageContentPartSchema$outboundSchema,
|
|
2126
|
-
AudioContentPartSchema$outboundSchema,
|
|
2127
|
-
z.lazy(() => Two4$outboundSchema),
|
|
2128
|
-
]);
|
|
2129
|
-
|
|
2130
|
-
export function invokeDeploymentRequestContentMessages2ToJSON(
|
|
2131
|
-
invokeDeploymentRequestContentMessages2:
|
|
2132
|
-
InvokeDeploymentRequestContentMessages2,
|
|
2133
|
-
): string {
|
|
2134
|
-
return JSON.stringify(
|
|
2135
|
-
InvokeDeploymentRequestContentMessages2$outboundSchema.parse(
|
|
2136
|
-
invokeDeploymentRequestContentMessages2,
|
|
2137
|
-
),
|
|
2138
|
-
);
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
/** @internal */
|
|
2142
|
-
export type InvokeDeploymentRequestMessages3Content$Outbound =
|
|
2143
|
-
| string
|
|
2144
|
-
| Array<
|
|
2145
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
2146
|
-
| ImageContentPartSchema$Outbound
|
|
2147
|
-
| AudioContentPartSchema$Outbound
|
|
2148
|
-
| Two4$Outbound
|
|
2149
|
-
>;
|
|
2150
|
-
|
|
2151
|
-
/** @internal */
|
|
2152
|
-
export const InvokeDeploymentRequestMessages3Content$outboundSchema: z.ZodType<
|
|
2153
|
-
InvokeDeploymentRequestMessages3Content$Outbound,
|
|
2154
|
-
z.ZodTypeDef,
|
|
2155
|
-
InvokeDeploymentRequestMessages3Content
|
|
2156
|
-
> = z.union([
|
|
2157
|
-
z.string(),
|
|
2158
|
-
z.array(
|
|
2159
|
-
z.union([
|
|
2160
|
-
TextContentPartSchema$outboundSchema.and(
|
|
2161
|
-
z.object({ type: z.literal("text") }),
|
|
2162
|
-
),
|
|
2163
|
-
ImageContentPartSchema$outboundSchema,
|
|
2164
|
-
AudioContentPartSchema$outboundSchema,
|
|
2165
|
-
z.lazy(() => Two4$outboundSchema),
|
|
2166
|
-
]),
|
|
2167
|
-
),
|
|
2168
|
-
]);
|
|
2169
|
-
|
|
2170
|
-
export function invokeDeploymentRequestMessages3ContentToJSON(
|
|
2171
|
-
invokeDeploymentRequestMessages3Content:
|
|
2172
|
-
InvokeDeploymentRequestMessages3Content,
|
|
2173
|
-
): string {
|
|
2174
|
-
return JSON.stringify(
|
|
2175
|
-
InvokeDeploymentRequestMessages3Content$outboundSchema.parse(
|
|
2176
|
-
invokeDeploymentRequestMessages3Content,
|
|
2177
|
-
),
|
|
2178
|
-
);
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
|
-
/** @internal */
|
|
2182
|
-
export type MessagesUserMessage$Outbound = {
|
|
2183
|
-
role: "user";
|
|
2184
|
-
name?: string | undefined;
|
|
2185
|
-
content:
|
|
2186
|
-
| string
|
|
2187
|
-
| Array<
|
|
2188
|
-
| (TextContentPartSchema$Outbound & { type: "text" })
|
|
2189
|
-
| ImageContentPartSchema$Outbound
|
|
2190
|
-
| AudioContentPartSchema$Outbound
|
|
2191
|
-
| Two4$Outbound
|
|
2192
|
-
>;
|
|
2193
|
-
};
|
|
2194
|
-
|
|
2195
|
-
/** @internal */
|
|
2196
|
-
export const MessagesUserMessage$outboundSchema: z.ZodType<
|
|
2197
|
-
MessagesUserMessage$Outbound,
|
|
2198
|
-
z.ZodTypeDef,
|
|
2199
|
-
MessagesUserMessage
|
|
2200
|
-
> = z.object({
|
|
2201
|
-
role: z.literal("user"),
|
|
2202
|
-
name: z.string().optional(),
|
|
2203
|
-
content: z.union([
|
|
2204
|
-
z.string(),
|
|
2205
|
-
z.array(
|
|
2206
|
-
z.union([
|
|
2207
|
-
TextContentPartSchema$outboundSchema.and(
|
|
2208
|
-
z.object({ type: z.literal("text") }),
|
|
2209
|
-
),
|
|
2210
|
-
ImageContentPartSchema$outboundSchema,
|
|
2211
|
-
AudioContentPartSchema$outboundSchema,
|
|
2212
|
-
z.lazy(() => Two4$outboundSchema),
|
|
2213
|
-
]),
|
|
2214
|
-
),
|
|
2215
|
-
]),
|
|
2216
|
-
});
|
|
2217
|
-
|
|
2218
|
-
export function messagesUserMessageToJSON(
|
|
2219
|
-
messagesUserMessage: MessagesUserMessage,
|
|
2220
|
-
): string {
|
|
2221
|
-
return JSON.stringify(
|
|
2222
|
-
MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
|
|
2223
|
-
);
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
/** @internal */
|
|
2227
|
-
export type InvokeDeploymentRequestMessagesContent$Outbound =
|
|
2228
|
-
| string
|
|
2229
|
-
| Array<TextContentPartSchema$Outbound>;
|
|
2230
|
-
|
|
2231
|
-
/** @internal */
|
|
2232
|
-
export const InvokeDeploymentRequestMessagesContent$outboundSchema: z.ZodType<
|
|
2233
|
-
InvokeDeploymentRequestMessagesContent$Outbound,
|
|
2234
|
-
z.ZodTypeDef,
|
|
2235
|
-
InvokeDeploymentRequestMessagesContent
|
|
2236
|
-
> = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
|
|
2237
|
-
|
|
2238
|
-
export function invokeDeploymentRequestMessagesContentToJSON(
|
|
2239
|
-
invokeDeploymentRequestMessagesContent:
|
|
2240
|
-
InvokeDeploymentRequestMessagesContent,
|
|
2241
|
-
): string {
|
|
2242
|
-
return JSON.stringify(
|
|
2243
|
-
InvokeDeploymentRequestMessagesContent$outboundSchema.parse(
|
|
2244
|
-
invokeDeploymentRequestMessagesContent,
|
|
2245
|
-
),
|
|
2246
|
-
);
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
/** @internal */
|
|
2250
|
-
export type MessagesDeveloperMessage$Outbound = {
|
|
2251
|
-
role: "developer";
|
|
2252
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
2253
|
-
name?: string | undefined;
|
|
2254
|
-
};
|
|
2255
|
-
|
|
2256
|
-
/** @internal */
|
|
2257
|
-
export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
2258
|
-
MessagesDeveloperMessage$Outbound,
|
|
2259
|
-
z.ZodTypeDef,
|
|
2260
|
-
MessagesDeveloperMessage
|
|
2261
|
-
> = z.object({
|
|
2262
|
-
role: z.literal("developer"),
|
|
2263
|
-
content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
|
|
2264
|
-
name: z.string().optional(),
|
|
2265
|
-
});
|
|
2266
|
-
|
|
2267
|
-
export function messagesDeveloperMessageToJSON(
|
|
2268
|
-
messagesDeveloperMessage: MessagesDeveloperMessage,
|
|
2269
|
-
): string {
|
|
2270
|
-
return JSON.stringify(
|
|
2271
|
-
MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
|
|
2272
|
-
);
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
/** @internal */
|
|
2276
|
-
export type MessagesContent$Outbound =
|
|
2277
|
-
| string
|
|
2278
|
-
| Array<TextContentPartSchema$Outbound>;
|
|
2279
|
-
|
|
2280
|
-
/** @internal */
|
|
2281
|
-
export const MessagesContent$outboundSchema: z.ZodType<
|
|
2282
|
-
MessagesContent$Outbound,
|
|
2283
|
-
z.ZodTypeDef,
|
|
2284
|
-
MessagesContent
|
|
2285
|
-
> = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
|
|
2286
|
-
|
|
2287
|
-
export function messagesContentToJSON(
|
|
2288
|
-
messagesContent: MessagesContent,
|
|
2289
|
-
): string {
|
|
2290
|
-
return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
/** @internal */
|
|
2294
|
-
export type MessagesSystemMessage$Outbound = {
|
|
2295
|
-
role: "system";
|
|
2296
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
2297
|
-
name?: string | undefined;
|
|
2298
|
-
};
|
|
2299
|
-
|
|
2300
|
-
/** @internal */
|
|
2301
|
-
export const MessagesSystemMessage$outboundSchema: z.ZodType<
|
|
2302
|
-
MessagesSystemMessage$Outbound,
|
|
2303
|
-
z.ZodTypeDef,
|
|
2304
|
-
MessagesSystemMessage
|
|
2305
|
-
> = z.object({
|
|
2306
|
-
role: z.literal("system"),
|
|
2307
|
-
content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
|
|
2308
|
-
name: z.string().optional(),
|
|
2309
|
-
});
|
|
2310
|
-
|
|
2311
|
-
export function messagesSystemMessageToJSON(
|
|
2312
|
-
messagesSystemMessage: MessagesSystemMessage,
|
|
2313
|
-
): string {
|
|
2314
|
-
return JSON.stringify(
|
|
2315
|
-
MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
|
|
2316
|
-
);
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
-
/** @internal */
|
|
2320
|
-
export type Messages$Outbound =
|
|
2321
|
-
| MessagesSystemMessage$Outbound
|
|
2322
|
-
| MessagesDeveloperMessage$Outbound
|
|
2323
|
-
| MessagesUserMessage$Outbound
|
|
2324
|
-
| MessagesAssistantMessage$Outbound
|
|
2325
|
-
| MessagesToolMessage$Outbound;
|
|
2326
|
-
|
|
2327
|
-
/** @internal */
|
|
2328
|
-
export const Messages$outboundSchema: z.ZodType<
|
|
2329
|
-
Messages$Outbound,
|
|
2330
|
-
z.ZodTypeDef,
|
|
2331
|
-
Messages
|
|
2332
|
-
> = z.union([
|
|
2333
|
-
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
2334
|
-
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
2335
|
-
z.lazy(() => MessagesUserMessage$outboundSchema),
|
|
2336
|
-
z.lazy(() => MessagesAssistantMessage$outboundSchema),
|
|
2337
|
-
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
2338
|
-
]);
|
|
2339
|
-
|
|
2340
|
-
export function messagesToJSON(messages: Messages): string {
|
|
2341
|
-
return JSON.stringify(Messages$outboundSchema.parse(messages));
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
/** @internal */
|
|
2345
|
-
export type Metadata$Outbound = {
|
|
2346
|
-
file_name?: string | undefined;
|
|
2347
|
-
file_type?: string | undefined;
|
|
2348
|
-
page_number?: number | undefined;
|
|
2349
|
-
};
|
|
2350
|
-
|
|
2351
|
-
/** @internal */
|
|
2352
|
-
export const Metadata$outboundSchema: z.ZodType<
|
|
2353
|
-
Metadata$Outbound,
|
|
2354
|
-
z.ZodTypeDef,
|
|
2355
|
-
Metadata
|
|
2356
|
-
> = z.object({
|
|
2357
|
-
fileName: z.string().optional(),
|
|
2358
|
-
fileType: z.string().optional(),
|
|
2359
|
-
pageNumber: z.number().optional(),
|
|
2360
|
-
}).transform((v) => {
|
|
2361
|
-
return remap$(v, {
|
|
2362
|
-
fileName: "file_name",
|
|
2363
|
-
fileType: "file_type",
|
|
2364
|
-
pageNumber: "page_number",
|
|
2365
|
-
});
|
|
2366
|
-
});
|
|
2367
|
-
|
|
2368
|
-
export function metadataToJSON(metadata: Metadata): string {
|
|
2369
|
-
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
/** @internal */
|
|
2373
|
-
export type Documents$Outbound = {
|
|
2374
|
-
text: string;
|
|
2375
|
-
metadata?: Metadata$Outbound | undefined;
|
|
2376
|
-
};
|
|
2377
|
-
|
|
2378
|
-
/** @internal */
|
|
2379
|
-
export const Documents$outboundSchema: z.ZodType<
|
|
2380
|
-
Documents$Outbound,
|
|
2381
|
-
z.ZodTypeDef,
|
|
2382
|
-
Documents
|
|
2383
|
-
> = z.object({
|
|
2384
|
-
text: z.string(),
|
|
2385
|
-
metadata: z.lazy(() => Metadata$outboundSchema).optional(),
|
|
2386
|
-
});
|
|
2387
|
-
|
|
2388
|
-
export function documentsToJSON(documents: Documents): string {
|
|
2389
|
-
return JSON.stringify(Documents$outboundSchema.parse(documents));
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
|
-
/** @internal */
|
|
2393
|
-
export type InvokeOptions$Outbound = {
|
|
2394
|
-
include_retrievals: boolean;
|
|
2395
|
-
include_usage: boolean;
|
|
2396
|
-
mock_response?: string | undefined;
|
|
2397
|
-
};
|
|
2398
|
-
|
|
2399
|
-
/** @internal */
|
|
2400
|
-
export const InvokeOptions$outboundSchema: z.ZodType<
|
|
2401
|
-
InvokeOptions$Outbound,
|
|
2402
|
-
z.ZodTypeDef,
|
|
2403
|
-
InvokeOptions
|
|
2404
|
-
> = z.object({
|
|
2405
|
-
includeRetrievals: z.boolean().default(false),
|
|
2406
|
-
includeUsage: z.boolean().default(false),
|
|
2407
|
-
mockResponse: z.string().optional(),
|
|
2408
|
-
}).transform((v) => {
|
|
2409
|
-
return remap$(v, {
|
|
2410
|
-
includeRetrievals: "include_retrievals",
|
|
2411
|
-
includeUsage: "include_usage",
|
|
2412
|
-
mockResponse: "mock_response",
|
|
2413
|
-
});
|
|
2414
|
-
});
|
|
2415
|
-
|
|
2416
|
-
export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
|
|
2417
|
-
return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
|
-
/** @internal */
|
|
2421
|
-
export type Thread$Outbound = {
|
|
2422
|
-
id: string;
|
|
2423
|
-
tags?: Array<string> | undefined;
|
|
2424
|
-
};
|
|
2425
|
-
|
|
2426
|
-
/** @internal */
|
|
2427
|
-
export const Thread$outboundSchema: z.ZodType<
|
|
2428
|
-
Thread$Outbound,
|
|
2429
|
-
z.ZodTypeDef,
|
|
2430
|
-
Thread
|
|
2431
|
-
> = z.object({
|
|
2432
|
-
id: z.string(),
|
|
2433
|
-
tags: z.array(z.string()).optional(),
|
|
2434
|
-
});
|
|
2435
|
-
|
|
2436
|
-
export function threadToJSON(thread: Thread): string {
|
|
2437
|
-
return JSON.stringify(Thread$outboundSchema.parse(thread));
|
|
2438
|
-
}
|
|
2439
|
-
|
|
2440
|
-
/** @internal */
|
|
2441
|
-
export type OrExists$Outbound = {
|
|
2442
|
-
exists: boolean;
|
|
2443
|
-
};
|
|
2444
|
-
|
|
2445
|
-
/** @internal */
|
|
2446
|
-
export const OrExists$outboundSchema: z.ZodType<
|
|
2447
|
-
OrExists$Outbound,
|
|
2448
|
-
z.ZodTypeDef,
|
|
2449
|
-
OrExists
|
|
2450
|
-
> = z.object({
|
|
2451
|
-
exists: z.boolean(),
|
|
2452
|
-
});
|
|
2453
|
-
|
|
2454
|
-
export function orExistsToJSON(orExists: OrExists): string {
|
|
2455
|
-
return JSON.stringify(OrExists$outboundSchema.parse(orExists));
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
/** @internal */
|
|
2459
|
-
export type OrNin$Outbound = string | number | boolean;
|
|
2460
|
-
|
|
2461
|
-
/** @internal */
|
|
2462
|
-
export const OrNin$outboundSchema: z.ZodType<
|
|
2463
|
-
OrNin$Outbound,
|
|
2464
|
-
z.ZodTypeDef,
|
|
2465
|
-
OrNin
|
|
2466
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2467
|
-
|
|
2468
|
-
export function orNinToJSON(orNin: OrNin): string {
|
|
2469
|
-
return JSON.stringify(OrNin$outboundSchema.parse(orNin));
|
|
2470
|
-
}
|
|
2471
|
-
|
|
2472
|
-
/** @internal */
|
|
2473
|
-
export type InvokeDeploymentRequestOrNin$Outbound = {
|
|
2474
|
-
nin: Array<string | number | boolean>;
|
|
2475
|
-
};
|
|
2476
|
-
|
|
2477
|
-
/** @internal */
|
|
2478
|
-
export const InvokeDeploymentRequestOrNin$outboundSchema: z.ZodType<
|
|
2479
|
-
InvokeDeploymentRequestOrNin$Outbound,
|
|
2480
|
-
z.ZodTypeDef,
|
|
2481
|
-
InvokeDeploymentRequestOrNin
|
|
2482
|
-
> = z.object({
|
|
2483
|
-
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
2484
|
-
});
|
|
2485
|
-
|
|
2486
|
-
export function invokeDeploymentRequestOrNinToJSON(
|
|
2487
|
-
invokeDeploymentRequestOrNin: InvokeDeploymentRequestOrNin,
|
|
2488
|
-
): string {
|
|
2489
|
-
return JSON.stringify(
|
|
2490
|
-
InvokeDeploymentRequestOrNin$outboundSchema.parse(
|
|
2491
|
-
invokeDeploymentRequestOrNin,
|
|
2492
|
-
),
|
|
2493
|
-
);
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
/** @internal */
|
|
2497
|
-
export type OrIn$Outbound = string | number | boolean;
|
|
2498
|
-
|
|
2499
|
-
/** @internal */
|
|
2500
|
-
export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
|
|
2501
|
-
z.union([z.string(), z.number(), z.boolean()]);
|
|
2502
|
-
|
|
2503
|
-
export function orInToJSON(orIn: OrIn): string {
|
|
2504
|
-
return JSON.stringify(OrIn$outboundSchema.parse(orIn));
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
/** @internal */
|
|
2508
|
-
export type InvokeDeploymentRequestOrIn$Outbound = {
|
|
2509
|
-
in: Array<string | number | boolean>;
|
|
2510
|
-
};
|
|
2511
|
-
|
|
2512
|
-
/** @internal */
|
|
2513
|
-
export const InvokeDeploymentRequestOrIn$outboundSchema: z.ZodType<
|
|
2514
|
-
InvokeDeploymentRequestOrIn$Outbound,
|
|
2515
|
-
z.ZodTypeDef,
|
|
2516
|
-
InvokeDeploymentRequestOrIn
|
|
2517
|
-
> = z.object({
|
|
2518
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
2519
|
-
});
|
|
2520
|
-
|
|
2521
|
-
export function invokeDeploymentRequestOrInToJSON(
|
|
2522
|
-
invokeDeploymentRequestOrIn: InvokeDeploymentRequestOrIn,
|
|
2523
|
-
): string {
|
|
2524
|
-
return JSON.stringify(
|
|
2525
|
-
InvokeDeploymentRequestOrIn$outboundSchema.parse(
|
|
2526
|
-
invokeDeploymentRequestOrIn,
|
|
2527
|
-
),
|
|
2528
|
-
);
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
/** @internal */
|
|
2532
|
-
export type OrLte$Outbound = {
|
|
2533
|
-
lte: number;
|
|
2534
|
-
};
|
|
2535
|
-
|
|
2536
|
-
/** @internal */
|
|
2537
|
-
export const OrLte$outboundSchema: z.ZodType<
|
|
2538
|
-
OrLte$Outbound,
|
|
2539
|
-
z.ZodTypeDef,
|
|
2540
|
-
OrLte
|
|
2541
|
-
> = z.object({
|
|
2542
|
-
lte: z.number(),
|
|
2543
|
-
});
|
|
2544
|
-
|
|
2545
|
-
export function orLteToJSON(orLte: OrLte): string {
|
|
2546
|
-
return JSON.stringify(OrLte$outboundSchema.parse(orLte));
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
/** @internal */
|
|
2550
|
-
export type OrLt$Outbound = {
|
|
2551
|
-
lt: number;
|
|
2552
|
-
};
|
|
2553
|
-
|
|
2554
|
-
/** @internal */
|
|
2555
|
-
export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
|
|
2556
|
-
z.object({
|
|
2557
|
-
lt: z.number(),
|
|
2558
|
-
});
|
|
2559
|
-
|
|
2560
|
-
export function orLtToJSON(orLt: OrLt): string {
|
|
2561
|
-
return JSON.stringify(OrLt$outboundSchema.parse(orLt));
|
|
2562
|
-
}
|
|
2563
|
-
|
|
2564
|
-
/** @internal */
|
|
2565
|
-
export type OrGte$Outbound = {
|
|
2566
|
-
gte: number;
|
|
2567
|
-
};
|
|
2568
|
-
|
|
2569
|
-
/** @internal */
|
|
2570
|
-
export const OrGte$outboundSchema: z.ZodType<
|
|
2571
|
-
OrGte$Outbound,
|
|
2572
|
-
z.ZodTypeDef,
|
|
2573
|
-
OrGte
|
|
2574
|
-
> = z.object({
|
|
2575
|
-
gte: z.number(),
|
|
2576
|
-
});
|
|
2577
|
-
|
|
2578
|
-
export function orGteToJSON(orGte: OrGte): string {
|
|
2579
|
-
return JSON.stringify(OrGte$outboundSchema.parse(orGte));
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
/** @internal */
|
|
2583
|
-
export type OrGt$Outbound = {
|
|
2584
|
-
gt: number;
|
|
2585
|
-
};
|
|
2586
|
-
|
|
2587
|
-
/** @internal */
|
|
2588
|
-
export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
|
|
2589
|
-
z.object({
|
|
2590
|
-
gt: z.number(),
|
|
2591
|
-
});
|
|
2592
|
-
|
|
2593
|
-
export function orGtToJSON(orGt: OrGt): string {
|
|
2594
|
-
return JSON.stringify(OrGt$outboundSchema.parse(orGt));
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
/** @internal */
|
|
2598
|
-
export type OrNe$Outbound = string | number | boolean;
|
|
2599
|
-
|
|
2600
|
-
/** @internal */
|
|
2601
|
-
export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
|
|
2602
|
-
z.union([z.string(), z.number(), z.boolean()]);
|
|
2603
|
-
|
|
2604
|
-
export function orNeToJSON(orNe: OrNe): string {
|
|
2605
|
-
return JSON.stringify(OrNe$outboundSchema.parse(orNe));
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
/** @internal */
|
|
2609
|
-
export type InvokeDeploymentRequestOrNe$Outbound = {
|
|
2610
|
-
ne: string | number | boolean;
|
|
2611
|
-
};
|
|
2612
|
-
|
|
2613
|
-
/** @internal */
|
|
2614
|
-
export const InvokeDeploymentRequestOrNe$outboundSchema: z.ZodType<
|
|
2615
|
-
InvokeDeploymentRequestOrNe$Outbound,
|
|
2616
|
-
z.ZodTypeDef,
|
|
2617
|
-
InvokeDeploymentRequestOrNe
|
|
2618
|
-
> = z.object({
|
|
2619
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
2620
|
-
});
|
|
2621
|
-
|
|
2622
|
-
export function invokeDeploymentRequestOrNeToJSON(
|
|
2623
|
-
invokeDeploymentRequestOrNe: InvokeDeploymentRequestOrNe,
|
|
2624
|
-
): string {
|
|
2625
|
-
return JSON.stringify(
|
|
2626
|
-
InvokeDeploymentRequestOrNe$outboundSchema.parse(
|
|
2627
|
-
invokeDeploymentRequestOrNe,
|
|
2628
|
-
),
|
|
2629
|
-
);
|
|
2630
|
-
}
|
|
2631
|
-
|
|
2632
|
-
/** @internal */
|
|
2633
|
-
export type OrEq$Outbound = string | number | boolean;
|
|
2634
|
-
|
|
2635
|
-
/** @internal */
|
|
2636
|
-
export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
|
|
2637
|
-
z.union([z.string(), z.number(), z.boolean()]);
|
|
2638
|
-
|
|
2639
|
-
export function orEqToJSON(orEq: OrEq): string {
|
|
2640
|
-
return JSON.stringify(OrEq$outboundSchema.parse(orEq));
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
/** @internal */
|
|
2644
|
-
export type InvokeDeploymentRequestOrEq$Outbound = {
|
|
2645
|
-
eq: string | number | boolean;
|
|
2646
|
-
};
|
|
2647
|
-
|
|
2648
|
-
/** @internal */
|
|
2649
|
-
export const InvokeDeploymentRequestOrEq$outboundSchema: z.ZodType<
|
|
2650
|
-
InvokeDeploymentRequestOrEq$Outbound,
|
|
2651
|
-
z.ZodTypeDef,
|
|
2652
|
-
InvokeDeploymentRequestOrEq
|
|
2653
|
-
> = z.object({
|
|
2654
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
2655
|
-
});
|
|
2656
|
-
|
|
2657
|
-
export function invokeDeploymentRequestOrEqToJSON(
|
|
2658
|
-
invokeDeploymentRequestOrEq: InvokeDeploymentRequestOrEq,
|
|
2659
|
-
): string {
|
|
2660
|
-
return JSON.stringify(
|
|
2661
|
-
InvokeDeploymentRequestOrEq$outboundSchema.parse(
|
|
2662
|
-
invokeDeploymentRequestOrEq,
|
|
2663
|
-
),
|
|
2664
|
-
);
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
/** @internal */
|
|
2668
|
-
export type Or$Outbound =
|
|
2669
|
-
| InvokeDeploymentRequestOrEq$Outbound
|
|
2670
|
-
| InvokeDeploymentRequestOrNe$Outbound
|
|
2671
|
-
| OrGt$Outbound
|
|
2672
|
-
| OrGte$Outbound
|
|
2673
|
-
| OrLt$Outbound
|
|
2674
|
-
| OrLte$Outbound
|
|
2675
|
-
| InvokeDeploymentRequestOrIn$Outbound
|
|
2676
|
-
| InvokeDeploymentRequestOrNin$Outbound
|
|
2677
|
-
| OrExists$Outbound;
|
|
2678
|
-
|
|
2679
|
-
/** @internal */
|
|
2680
|
-
export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
|
|
2681
|
-
.union([
|
|
2682
|
-
z.lazy(() => InvokeDeploymentRequestOrEq$outboundSchema),
|
|
2683
|
-
z.lazy(() => InvokeDeploymentRequestOrNe$outboundSchema),
|
|
2684
|
-
z.lazy(() => OrGt$outboundSchema),
|
|
2685
|
-
z.lazy(() => OrGte$outboundSchema),
|
|
2686
|
-
z.lazy(() => OrLt$outboundSchema),
|
|
2687
|
-
z.lazy(() => OrLte$outboundSchema),
|
|
2688
|
-
z.lazy(() => InvokeDeploymentRequestOrIn$outboundSchema),
|
|
2689
|
-
z.lazy(() => InvokeDeploymentRequestOrNin$outboundSchema),
|
|
2690
|
-
z.lazy(() => OrExists$outboundSchema),
|
|
2691
|
-
]);
|
|
2692
|
-
|
|
2693
|
-
export function orToJSON(or: Or): string {
|
|
2694
|
-
return JSON.stringify(Or$outboundSchema.parse(or));
|
|
2695
|
-
}
|
|
2696
|
-
|
|
2697
|
-
/** @internal */
|
|
2698
|
-
export type KnowledgeFilterOr$Outbound = {
|
|
2699
|
-
or: Array<
|
|
2700
|
-
{
|
|
2701
|
-
[k: string]:
|
|
2702
|
-
| InvokeDeploymentRequestOrEq$Outbound
|
|
2703
|
-
| InvokeDeploymentRequestOrNe$Outbound
|
|
2704
|
-
| OrGt$Outbound
|
|
2705
|
-
| OrGte$Outbound
|
|
2706
|
-
| OrLt$Outbound
|
|
2707
|
-
| OrLte$Outbound
|
|
2708
|
-
| InvokeDeploymentRequestOrIn$Outbound
|
|
2709
|
-
| InvokeDeploymentRequestOrNin$Outbound
|
|
2710
|
-
| OrExists$Outbound;
|
|
2711
|
-
}
|
|
2712
|
-
>;
|
|
2713
|
-
};
|
|
2714
|
-
|
|
2715
|
-
/** @internal */
|
|
2716
|
-
export const KnowledgeFilterOr$outboundSchema: z.ZodType<
|
|
2717
|
-
KnowledgeFilterOr$Outbound,
|
|
2718
|
-
z.ZodTypeDef,
|
|
2719
|
-
KnowledgeFilterOr
|
|
2720
|
-
> = z.object({
|
|
2721
|
-
or: z.array(
|
|
2722
|
-
z.record(z.union([
|
|
2723
|
-
z.lazy(() => InvokeDeploymentRequestOrEq$outboundSchema),
|
|
2724
|
-
z.lazy(() =>
|
|
2725
|
-
InvokeDeploymentRequestOrNe$outboundSchema
|
|
2726
|
-
),
|
|
2727
|
-
z.lazy(() => OrGt$outboundSchema),
|
|
2728
|
-
z.lazy(() => OrGte$outboundSchema),
|
|
2729
|
-
z.lazy(() => OrLt$outboundSchema),
|
|
2730
|
-
z.lazy(() => OrLte$outboundSchema),
|
|
2731
|
-
z.lazy(() => InvokeDeploymentRequestOrIn$outboundSchema),
|
|
2732
|
-
z.lazy(() => InvokeDeploymentRequestOrNin$outboundSchema),
|
|
2733
|
-
z.lazy(() => OrExists$outboundSchema),
|
|
2734
|
-
])),
|
|
2735
|
-
),
|
|
2736
|
-
});
|
|
2737
|
-
|
|
2738
|
-
export function knowledgeFilterOrToJSON(
|
|
2739
|
-
knowledgeFilterOr: KnowledgeFilterOr,
|
|
2740
|
-
): string {
|
|
2741
|
-
return JSON.stringify(
|
|
2742
|
-
KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
|
|
2743
|
-
);
|
|
2744
|
-
}
|
|
2745
|
-
|
|
2746
|
-
/** @internal */
|
|
2747
|
-
export type AndExists$Outbound = {
|
|
2748
|
-
exists: boolean;
|
|
2749
|
-
};
|
|
2750
|
-
|
|
2751
|
-
/** @internal */
|
|
2752
|
-
export const AndExists$outboundSchema: z.ZodType<
|
|
2753
|
-
AndExists$Outbound,
|
|
2754
|
-
z.ZodTypeDef,
|
|
2755
|
-
AndExists
|
|
2756
|
-
> = z.object({
|
|
2757
|
-
exists: z.boolean(),
|
|
2758
|
-
});
|
|
2759
|
-
|
|
2760
|
-
export function andExistsToJSON(andExists: AndExists): string {
|
|
2761
|
-
return JSON.stringify(AndExists$outboundSchema.parse(andExists));
|
|
2762
|
-
}
|
|
2763
|
-
|
|
2764
|
-
/** @internal */
|
|
2765
|
-
export type AndNin$Outbound = string | number | boolean;
|
|
2766
|
-
|
|
2767
|
-
/** @internal */
|
|
2768
|
-
export const AndNin$outboundSchema: z.ZodType<
|
|
2769
|
-
AndNin$Outbound,
|
|
2770
|
-
z.ZodTypeDef,
|
|
2771
|
-
AndNin
|
|
2772
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2773
|
-
|
|
2774
|
-
export function andNinToJSON(andNin: AndNin): string {
|
|
2775
|
-
return JSON.stringify(AndNin$outboundSchema.parse(andNin));
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
/** @internal */
|
|
2779
|
-
export type InvokeDeploymentRequestAndNin$Outbound = {
|
|
2780
|
-
nin: Array<string | number | boolean>;
|
|
2781
|
-
};
|
|
2782
|
-
|
|
2783
|
-
/** @internal */
|
|
2784
|
-
export const InvokeDeploymentRequestAndNin$outboundSchema: z.ZodType<
|
|
2785
|
-
InvokeDeploymentRequestAndNin$Outbound,
|
|
2786
|
-
z.ZodTypeDef,
|
|
2787
|
-
InvokeDeploymentRequestAndNin
|
|
2788
|
-
> = z.object({
|
|
2789
|
-
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
2790
|
-
});
|
|
2791
|
-
|
|
2792
|
-
export function invokeDeploymentRequestAndNinToJSON(
|
|
2793
|
-
invokeDeploymentRequestAndNin: InvokeDeploymentRequestAndNin,
|
|
2794
|
-
): string {
|
|
2795
|
-
return JSON.stringify(
|
|
2796
|
-
InvokeDeploymentRequestAndNin$outboundSchema.parse(
|
|
2797
|
-
invokeDeploymentRequestAndNin,
|
|
2798
|
-
),
|
|
2799
|
-
);
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
/** @internal */
|
|
2803
|
-
export type AndIn$Outbound = string | number | boolean;
|
|
2804
|
-
|
|
2805
|
-
/** @internal */
|
|
2806
|
-
export const AndIn$outboundSchema: z.ZodType<
|
|
2807
|
-
AndIn$Outbound,
|
|
2808
|
-
z.ZodTypeDef,
|
|
2809
|
-
AndIn
|
|
2810
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2811
|
-
|
|
2812
|
-
export function andInToJSON(andIn: AndIn): string {
|
|
2813
|
-
return JSON.stringify(AndIn$outboundSchema.parse(andIn));
|
|
2814
|
-
}
|
|
2815
|
-
|
|
2816
|
-
/** @internal */
|
|
2817
|
-
export type InvokeDeploymentRequestAndIn$Outbound = {
|
|
2818
|
-
in: Array<string | number | boolean>;
|
|
2819
|
-
};
|
|
2820
|
-
|
|
2821
|
-
/** @internal */
|
|
2822
|
-
export const InvokeDeploymentRequestAndIn$outboundSchema: z.ZodType<
|
|
2823
|
-
InvokeDeploymentRequestAndIn$Outbound,
|
|
2824
|
-
z.ZodTypeDef,
|
|
2825
|
-
InvokeDeploymentRequestAndIn
|
|
2826
|
-
> = z.object({
|
|
2827
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
2828
|
-
});
|
|
2829
|
-
|
|
2830
|
-
export function invokeDeploymentRequestAndInToJSON(
|
|
2831
|
-
invokeDeploymentRequestAndIn: InvokeDeploymentRequestAndIn,
|
|
2832
|
-
): string {
|
|
2833
|
-
return JSON.stringify(
|
|
2834
|
-
InvokeDeploymentRequestAndIn$outboundSchema.parse(
|
|
2835
|
-
invokeDeploymentRequestAndIn,
|
|
2836
|
-
),
|
|
2837
|
-
);
|
|
2838
|
-
}
|
|
2839
|
-
|
|
2840
|
-
/** @internal */
|
|
2841
|
-
export type AndLte$Outbound = {
|
|
2842
|
-
lte: number;
|
|
2843
|
-
};
|
|
2844
|
-
|
|
2845
|
-
/** @internal */
|
|
2846
|
-
export const AndLte$outboundSchema: z.ZodType<
|
|
2847
|
-
AndLte$Outbound,
|
|
2848
|
-
z.ZodTypeDef,
|
|
2849
|
-
AndLte
|
|
2850
|
-
> = z.object({
|
|
2851
|
-
lte: z.number(),
|
|
2852
|
-
});
|
|
2853
|
-
|
|
2854
|
-
export function andLteToJSON(andLte: AndLte): string {
|
|
2855
|
-
return JSON.stringify(AndLte$outboundSchema.parse(andLte));
|
|
2856
|
-
}
|
|
2857
|
-
|
|
2858
|
-
/** @internal */
|
|
2859
|
-
export type AndLt$Outbound = {
|
|
2860
|
-
lt: number;
|
|
2861
|
-
};
|
|
2862
|
-
|
|
2863
|
-
/** @internal */
|
|
2864
|
-
export const AndLt$outboundSchema: z.ZodType<
|
|
2865
|
-
AndLt$Outbound,
|
|
2866
|
-
z.ZodTypeDef,
|
|
2867
|
-
AndLt
|
|
2868
|
-
> = z.object({
|
|
2869
|
-
lt: z.number(),
|
|
2870
|
-
});
|
|
2871
|
-
|
|
2872
|
-
export function andLtToJSON(andLt: AndLt): string {
|
|
2873
|
-
return JSON.stringify(AndLt$outboundSchema.parse(andLt));
|
|
2874
|
-
}
|
|
2875
|
-
|
|
2876
|
-
/** @internal */
|
|
2877
|
-
export type AndGte$Outbound = {
|
|
2878
|
-
gte: number;
|
|
2879
|
-
};
|
|
2880
|
-
|
|
2881
|
-
/** @internal */
|
|
2882
|
-
export const AndGte$outboundSchema: z.ZodType<
|
|
2883
|
-
AndGte$Outbound,
|
|
2884
|
-
z.ZodTypeDef,
|
|
2885
|
-
AndGte
|
|
2886
|
-
> = z.object({
|
|
2887
|
-
gte: z.number(),
|
|
2888
|
-
});
|
|
2889
|
-
|
|
2890
|
-
export function andGteToJSON(andGte: AndGte): string {
|
|
2891
|
-
return JSON.stringify(AndGte$outboundSchema.parse(andGte));
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
/** @internal */
|
|
2895
|
-
export type AndGt$Outbound = {
|
|
2896
|
-
gt: number;
|
|
2897
|
-
};
|
|
2898
|
-
|
|
2899
|
-
/** @internal */
|
|
2900
|
-
export const AndGt$outboundSchema: z.ZodType<
|
|
2901
|
-
AndGt$Outbound,
|
|
2902
|
-
z.ZodTypeDef,
|
|
2903
|
-
AndGt
|
|
2904
|
-
> = z.object({
|
|
2905
|
-
gt: z.number(),
|
|
2906
|
-
});
|
|
2907
|
-
|
|
2908
|
-
export function andGtToJSON(andGt: AndGt): string {
|
|
2909
|
-
return JSON.stringify(AndGt$outboundSchema.parse(andGt));
|
|
2910
|
-
}
|
|
2911
|
-
|
|
2912
|
-
/** @internal */
|
|
2913
|
-
export type AndNe$Outbound = string | number | boolean;
|
|
2914
|
-
|
|
2915
|
-
/** @internal */
|
|
2916
|
-
export const AndNe$outboundSchema: z.ZodType<
|
|
2917
|
-
AndNe$Outbound,
|
|
2918
|
-
z.ZodTypeDef,
|
|
2919
|
-
AndNe
|
|
2920
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2921
|
-
|
|
2922
|
-
export function andNeToJSON(andNe: AndNe): string {
|
|
2923
|
-
return JSON.stringify(AndNe$outboundSchema.parse(andNe));
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
|
-
/** @internal */
|
|
2927
|
-
export type InvokeDeploymentRequestAndNe$Outbound = {
|
|
2928
|
-
ne: string | number | boolean;
|
|
2929
|
-
};
|
|
2930
|
-
|
|
2931
|
-
/** @internal */
|
|
2932
|
-
export const InvokeDeploymentRequestAndNe$outboundSchema: z.ZodType<
|
|
2933
|
-
InvokeDeploymentRequestAndNe$Outbound,
|
|
2934
|
-
z.ZodTypeDef,
|
|
2935
|
-
InvokeDeploymentRequestAndNe
|
|
2936
|
-
> = z.object({
|
|
2937
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
2938
|
-
});
|
|
2939
|
-
|
|
2940
|
-
export function invokeDeploymentRequestAndNeToJSON(
|
|
2941
|
-
invokeDeploymentRequestAndNe: InvokeDeploymentRequestAndNe,
|
|
2942
|
-
): string {
|
|
2943
|
-
return JSON.stringify(
|
|
2944
|
-
InvokeDeploymentRequestAndNe$outboundSchema.parse(
|
|
2945
|
-
invokeDeploymentRequestAndNe,
|
|
2946
|
-
),
|
|
2947
|
-
);
|
|
2948
|
-
}
|
|
2949
|
-
|
|
2950
|
-
/** @internal */
|
|
2951
|
-
export type AndEq$Outbound = string | number | boolean;
|
|
2952
|
-
|
|
2953
|
-
/** @internal */
|
|
2954
|
-
export const AndEq$outboundSchema: z.ZodType<
|
|
2955
|
-
AndEq$Outbound,
|
|
2956
|
-
z.ZodTypeDef,
|
|
2957
|
-
AndEq
|
|
2958
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2959
|
-
|
|
2960
|
-
export function andEqToJSON(andEq: AndEq): string {
|
|
2961
|
-
return JSON.stringify(AndEq$outboundSchema.parse(andEq));
|
|
2962
|
-
}
|
|
2963
|
-
|
|
2964
|
-
/** @internal */
|
|
2965
|
-
export type InvokeDeploymentRequestAndEq$Outbound = {
|
|
2966
|
-
eq: string | number | boolean;
|
|
2967
|
-
};
|
|
2968
|
-
|
|
2969
|
-
/** @internal */
|
|
2970
|
-
export const InvokeDeploymentRequestAndEq$outboundSchema: z.ZodType<
|
|
2971
|
-
InvokeDeploymentRequestAndEq$Outbound,
|
|
2972
|
-
z.ZodTypeDef,
|
|
2973
|
-
InvokeDeploymentRequestAndEq
|
|
2974
|
-
> = z.object({
|
|
2975
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
2976
|
-
});
|
|
2977
|
-
|
|
2978
|
-
export function invokeDeploymentRequestAndEqToJSON(
|
|
2979
|
-
invokeDeploymentRequestAndEq: InvokeDeploymentRequestAndEq,
|
|
2980
|
-
): string {
|
|
2981
|
-
return JSON.stringify(
|
|
2982
|
-
InvokeDeploymentRequestAndEq$outboundSchema.parse(
|
|
2983
|
-
invokeDeploymentRequestAndEq,
|
|
2984
|
-
),
|
|
2985
|
-
);
|
|
2986
|
-
}
|
|
2987
|
-
|
|
2988
|
-
/** @internal */
|
|
2989
|
-
export type And$Outbound =
|
|
2990
|
-
| InvokeDeploymentRequestAndEq$Outbound
|
|
2991
|
-
| InvokeDeploymentRequestAndNe$Outbound
|
|
2992
|
-
| AndGt$Outbound
|
|
2993
|
-
| AndGte$Outbound
|
|
2994
|
-
| AndLt$Outbound
|
|
2995
|
-
| AndLte$Outbound
|
|
2996
|
-
| InvokeDeploymentRequestAndIn$Outbound
|
|
2997
|
-
| InvokeDeploymentRequestAndNin$Outbound
|
|
2998
|
-
| AndExists$Outbound;
|
|
2999
|
-
|
|
3000
|
-
/** @internal */
|
|
3001
|
-
export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
|
|
3002
|
-
.union([
|
|
3003
|
-
z.lazy(() => InvokeDeploymentRequestAndEq$outboundSchema),
|
|
3004
|
-
z.lazy(() => InvokeDeploymentRequestAndNe$outboundSchema),
|
|
3005
|
-
z.lazy(() => AndGt$outboundSchema),
|
|
3006
|
-
z.lazy(() => AndGte$outboundSchema),
|
|
3007
|
-
z.lazy(() => AndLt$outboundSchema),
|
|
3008
|
-
z.lazy(() => AndLte$outboundSchema),
|
|
3009
|
-
z.lazy(() => InvokeDeploymentRequestAndIn$outboundSchema),
|
|
3010
|
-
z.lazy(() => InvokeDeploymentRequestAndNin$outboundSchema),
|
|
3011
|
-
z.lazy(() => AndExists$outboundSchema),
|
|
3012
|
-
]);
|
|
3013
|
-
|
|
3014
|
-
export function andToJSON(and: And): string {
|
|
3015
|
-
return JSON.stringify(And$outboundSchema.parse(and));
|
|
3016
|
-
}
|
|
3017
|
-
|
|
3018
|
-
/** @internal */
|
|
3019
|
-
export type KnowledgeFilterAnd$Outbound = {
|
|
3020
|
-
and: Array<
|
|
3021
|
-
{
|
|
3022
|
-
[k: string]:
|
|
3023
|
-
| InvokeDeploymentRequestAndEq$Outbound
|
|
3024
|
-
| InvokeDeploymentRequestAndNe$Outbound
|
|
3025
|
-
| AndGt$Outbound
|
|
3026
|
-
| AndGte$Outbound
|
|
3027
|
-
| AndLt$Outbound
|
|
3028
|
-
| AndLte$Outbound
|
|
3029
|
-
| InvokeDeploymentRequestAndIn$Outbound
|
|
3030
|
-
| InvokeDeploymentRequestAndNin$Outbound
|
|
3031
|
-
| AndExists$Outbound;
|
|
3032
|
-
}
|
|
3033
|
-
>;
|
|
3034
|
-
};
|
|
3035
|
-
|
|
3036
|
-
/** @internal */
|
|
3037
|
-
export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
|
|
3038
|
-
KnowledgeFilterAnd$Outbound,
|
|
3039
|
-
z.ZodTypeDef,
|
|
3040
|
-
KnowledgeFilterAnd
|
|
3041
|
-
> = z.object({
|
|
3042
|
-
and: z.array(
|
|
3043
|
-
z.record(z.union([
|
|
3044
|
-
z.lazy(() => InvokeDeploymentRequestAndEq$outboundSchema),
|
|
3045
|
-
z.lazy(() =>
|
|
3046
|
-
InvokeDeploymentRequestAndNe$outboundSchema
|
|
3047
|
-
),
|
|
3048
|
-
z.lazy(() => AndGt$outboundSchema),
|
|
3049
|
-
z.lazy(() => AndGte$outboundSchema),
|
|
3050
|
-
z.lazy(() => AndLt$outboundSchema),
|
|
3051
|
-
z.lazy(() => AndLte$outboundSchema),
|
|
3052
|
-
z.lazy(() => InvokeDeploymentRequestAndIn$outboundSchema),
|
|
3053
|
-
z.lazy(() => InvokeDeploymentRequestAndNin$outboundSchema),
|
|
3054
|
-
z.lazy(() => AndExists$outboundSchema),
|
|
3055
|
-
])),
|
|
3056
|
-
),
|
|
3057
|
-
});
|
|
3058
|
-
|
|
3059
|
-
export function knowledgeFilterAndToJSON(
|
|
3060
|
-
knowledgeFilterAnd: KnowledgeFilterAnd,
|
|
3061
|
-
): string {
|
|
3062
|
-
return JSON.stringify(
|
|
3063
|
-
KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
|
|
3064
|
-
);
|
|
3065
|
-
}
|
|
3066
|
-
|
|
3067
|
-
/** @internal */
|
|
3068
|
-
export type Exists$Outbound = {
|
|
3069
|
-
exists: boolean;
|
|
3070
|
-
};
|
|
3071
|
-
|
|
3072
|
-
/** @internal */
|
|
3073
|
-
export const Exists$outboundSchema: z.ZodType<
|
|
3074
|
-
Exists$Outbound,
|
|
3075
|
-
z.ZodTypeDef,
|
|
3076
|
-
Exists
|
|
3077
|
-
> = z.object({
|
|
3078
|
-
exists: z.boolean(),
|
|
3079
|
-
});
|
|
3080
|
-
|
|
3081
|
-
export function existsToJSON(exists: Exists): string {
|
|
3082
|
-
return JSON.stringify(Exists$outboundSchema.parse(exists));
|
|
3083
|
-
}
|
|
3084
|
-
|
|
3085
|
-
/** @internal */
|
|
3086
|
-
export type Nin$Outbound = string | number | boolean;
|
|
3087
|
-
|
|
3088
|
-
/** @internal */
|
|
3089
|
-
export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
|
|
3090
|
-
.union([z.string(), z.number(), z.boolean()]);
|
|
3091
|
-
|
|
3092
|
-
export function ninToJSON(nin: Nin): string {
|
|
3093
|
-
return JSON.stringify(Nin$outboundSchema.parse(nin));
|
|
3094
|
-
}
|
|
3095
|
-
|
|
3096
|
-
/** @internal */
|
|
3097
|
-
export type OneNin$Outbound = {
|
|
3098
|
-
nin: Array<string | number | boolean>;
|
|
3099
|
-
};
|
|
3100
|
-
|
|
3101
|
-
/** @internal */
|
|
3102
|
-
export const OneNin$outboundSchema: z.ZodType<
|
|
3103
|
-
OneNin$Outbound,
|
|
3104
|
-
z.ZodTypeDef,
|
|
3105
|
-
OneNin
|
|
3106
|
-
> = z.object({
|
|
3107
|
-
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3108
|
-
});
|
|
3109
|
-
|
|
3110
|
-
export function oneNinToJSON(oneNin: OneNin): string {
|
|
3111
|
-
return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
|
|
3112
|
-
}
|
|
3113
|
-
|
|
3114
|
-
/** @internal */
|
|
3115
|
-
export type In$Outbound = string | number | boolean;
|
|
3116
|
-
|
|
3117
|
-
/** @internal */
|
|
3118
|
-
export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
|
|
3119
|
-
.union([z.string(), z.number(), z.boolean()]);
|
|
3120
|
-
|
|
3121
|
-
export function inToJSON(value: In): string {
|
|
3122
|
-
return JSON.stringify(In$outboundSchema.parse(value));
|
|
3123
|
-
}
|
|
3124
|
-
|
|
3125
|
-
/** @internal */
|
|
3126
|
-
export type OneIn$Outbound = {
|
|
3127
|
-
in: Array<string | number | boolean>;
|
|
3128
|
-
};
|
|
3129
|
-
|
|
3130
|
-
/** @internal */
|
|
3131
|
-
export const OneIn$outboundSchema: z.ZodType<
|
|
3132
|
-
OneIn$Outbound,
|
|
3133
|
-
z.ZodTypeDef,
|
|
3134
|
-
OneIn
|
|
3135
|
-
> = z.object({
|
|
3136
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3137
|
-
});
|
|
3138
|
-
|
|
3139
|
-
export function oneInToJSON(oneIn: OneIn): string {
|
|
3140
|
-
return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
|
|
3141
|
-
}
|
|
3142
|
-
|
|
3143
|
-
/** @internal */
|
|
3144
|
-
export type Lte$Outbound = {
|
|
3145
|
-
lte: number;
|
|
3146
|
-
};
|
|
3147
|
-
|
|
3148
|
-
/** @internal */
|
|
3149
|
-
export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
|
|
3150
|
-
.object({
|
|
3151
|
-
lte: z.number(),
|
|
3152
|
-
});
|
|
3153
|
-
|
|
3154
|
-
export function lteToJSON(lte: Lte): string {
|
|
3155
|
-
return JSON.stringify(Lte$outboundSchema.parse(lte));
|
|
3156
|
-
}
|
|
3157
|
-
|
|
3158
|
-
/** @internal */
|
|
3159
|
-
export type Lt$Outbound = {
|
|
3160
|
-
lt: number;
|
|
3161
|
-
};
|
|
3162
|
-
|
|
3163
|
-
/** @internal */
|
|
3164
|
-
export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
|
|
3165
|
-
.object({
|
|
3166
|
-
lt: z.number(),
|
|
3167
|
-
});
|
|
3168
|
-
|
|
3169
|
-
export function ltToJSON(lt: Lt): string {
|
|
3170
|
-
return JSON.stringify(Lt$outboundSchema.parse(lt));
|
|
3171
|
-
}
|
|
3172
|
-
|
|
3173
|
-
/** @internal */
|
|
3174
|
-
export type Gte$Outbound = {
|
|
3175
|
-
gte: number;
|
|
3176
|
-
};
|
|
3177
|
-
|
|
3178
|
-
/** @internal */
|
|
3179
|
-
export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
|
|
3180
|
-
.object({
|
|
3181
|
-
gte: z.number(),
|
|
3182
|
-
});
|
|
3183
|
-
|
|
3184
|
-
export function gteToJSON(gte: Gte): string {
|
|
3185
|
-
return JSON.stringify(Gte$outboundSchema.parse(gte));
|
|
3186
|
-
}
|
|
3187
|
-
|
|
3188
|
-
/** @internal */
|
|
3189
|
-
export type Gt$Outbound = {
|
|
3190
|
-
gt: number;
|
|
3191
|
-
};
|
|
3192
|
-
|
|
3193
|
-
/** @internal */
|
|
3194
|
-
export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
|
|
3195
|
-
.object({
|
|
3196
|
-
gt: z.number(),
|
|
3197
|
-
});
|
|
3198
|
-
|
|
3199
|
-
export function gtToJSON(gt: Gt): string {
|
|
3200
|
-
return JSON.stringify(Gt$outboundSchema.parse(gt));
|
|
3201
|
-
}
|
|
3202
|
-
|
|
3203
|
-
/** @internal */
|
|
3204
|
-
export type Ne$Outbound = string | number | boolean;
|
|
3205
|
-
|
|
3206
|
-
/** @internal */
|
|
3207
|
-
export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
|
|
3208
|
-
.union([z.string(), z.number(), z.boolean()]);
|
|
3209
|
-
|
|
3210
|
-
export function neToJSON(ne: Ne): string {
|
|
3211
|
-
return JSON.stringify(Ne$outboundSchema.parse(ne));
|
|
3212
|
-
}
|
|
3213
|
-
|
|
3214
|
-
/** @internal */
|
|
3215
|
-
export type OneNe$Outbound = {
|
|
3216
|
-
ne: string | number | boolean;
|
|
3217
|
-
};
|
|
3218
|
-
|
|
3219
|
-
/** @internal */
|
|
3220
|
-
export const OneNe$outboundSchema: z.ZodType<
|
|
3221
|
-
OneNe$Outbound,
|
|
3222
|
-
z.ZodTypeDef,
|
|
3223
|
-
OneNe
|
|
3224
|
-
> = z.object({
|
|
3225
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3226
|
-
});
|
|
3227
|
-
|
|
3228
|
-
export function oneNeToJSON(oneNe: OneNe): string {
|
|
3229
|
-
return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
|
|
3230
|
-
}
|
|
3231
|
-
|
|
3232
|
-
/** @internal */
|
|
3233
|
-
export type Eq$Outbound = string | number | boolean;
|
|
3234
|
-
|
|
3235
|
-
/** @internal */
|
|
3236
|
-
export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
|
|
3237
|
-
.union([z.string(), z.number(), z.boolean()]);
|
|
3238
|
-
|
|
3239
|
-
export function eqToJSON(eq: Eq): string {
|
|
3240
|
-
return JSON.stringify(Eq$outboundSchema.parse(eq));
|
|
3241
|
-
}
|
|
3242
|
-
|
|
3243
|
-
/** @internal */
|
|
3244
|
-
export type OneEq$Outbound = {
|
|
3245
|
-
eq: string | number | boolean;
|
|
3246
|
-
};
|
|
3247
|
-
|
|
3248
|
-
/** @internal */
|
|
3249
|
-
export const OneEq$outboundSchema: z.ZodType<
|
|
3250
|
-
OneEq$Outbound,
|
|
3251
|
-
z.ZodTypeDef,
|
|
3252
|
-
OneEq
|
|
3253
|
-
> = z.object({
|
|
3254
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3255
|
-
});
|
|
3256
|
-
|
|
3257
|
-
export function oneEqToJSON(oneEq: OneEq): string {
|
|
3258
|
-
return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
|
|
3259
|
-
}
|
|
3260
|
-
|
|
3261
|
-
/** @internal */
|
|
3262
|
-
export type One$Outbound =
|
|
3263
|
-
| OneEq$Outbound
|
|
3264
|
-
| OneNe$Outbound
|
|
3265
|
-
| Gt$Outbound
|
|
3266
|
-
| Gte$Outbound
|
|
3267
|
-
| Lt$Outbound
|
|
3268
|
-
| Lte$Outbound
|
|
3269
|
-
| OneIn$Outbound
|
|
3270
|
-
| OneNin$Outbound
|
|
3271
|
-
| Exists$Outbound;
|
|
3272
|
-
|
|
3273
|
-
/** @internal */
|
|
3274
|
-
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
3275
|
-
.union([
|
|
3276
|
-
z.lazy(() => OneEq$outboundSchema),
|
|
3277
|
-
z.lazy(() => OneNe$outboundSchema),
|
|
3278
|
-
z.lazy(() => Gt$outboundSchema),
|
|
3279
|
-
z.lazy(() => Gte$outboundSchema),
|
|
3280
|
-
z.lazy(() => Lt$outboundSchema),
|
|
3281
|
-
z.lazy(() => Lte$outboundSchema),
|
|
3282
|
-
z.lazy(() => OneIn$outboundSchema),
|
|
3283
|
-
z.lazy(() => OneNin$outboundSchema),
|
|
3284
|
-
z.lazy(() => Exists$outboundSchema),
|
|
3285
|
-
]);
|
|
3286
|
-
|
|
3287
|
-
export function oneToJSON(one: One): string {
|
|
3288
|
-
return JSON.stringify(One$outboundSchema.parse(one));
|
|
3289
|
-
}
|
|
3290
|
-
|
|
3291
|
-
/** @internal */
|
|
3292
|
-
export type KnowledgeFilter$Outbound =
|
|
3293
|
-
| KnowledgeFilterAnd$Outbound
|
|
3294
|
-
| KnowledgeFilterOr$Outbound
|
|
3295
|
-
| {
|
|
3296
|
-
[k: string]:
|
|
3297
|
-
| OneEq$Outbound
|
|
3298
|
-
| OneNe$Outbound
|
|
3299
|
-
| Gt$Outbound
|
|
3300
|
-
| Gte$Outbound
|
|
3301
|
-
| Lt$Outbound
|
|
3302
|
-
| Lte$Outbound
|
|
3303
|
-
| OneIn$Outbound
|
|
3304
|
-
| OneNin$Outbound
|
|
3305
|
-
| Exists$Outbound;
|
|
3306
|
-
};
|
|
3307
|
-
|
|
3308
|
-
/** @internal */
|
|
3309
|
-
export const KnowledgeFilter$outboundSchema: z.ZodType<
|
|
3310
|
-
KnowledgeFilter$Outbound,
|
|
3311
|
-
z.ZodTypeDef,
|
|
3312
|
-
KnowledgeFilter
|
|
3313
|
-
> = z.union([
|
|
3314
|
-
z.lazy(() => KnowledgeFilterAnd$outboundSchema),
|
|
3315
|
-
z.lazy(() => KnowledgeFilterOr$outboundSchema),
|
|
3316
|
-
z.record(z.union([
|
|
3317
|
-
z.lazy(() => OneEq$outboundSchema),
|
|
3318
|
-
z.lazy(() => OneNe$outboundSchema),
|
|
3319
|
-
z.lazy(() => Gt$outboundSchema),
|
|
3320
|
-
z.lazy(() => Gte$outboundSchema),
|
|
3321
|
-
z.lazy(() => Lt$outboundSchema),
|
|
3322
|
-
z.lazy(() => Lte$outboundSchema),
|
|
3323
|
-
z.lazy(() => OneIn$outboundSchema),
|
|
3324
|
-
z.lazy(() => OneNin$outboundSchema),
|
|
3325
|
-
z.lazy(() => Exists$outboundSchema),
|
|
3326
|
-
])),
|
|
3327
|
-
]);
|
|
3328
|
-
|
|
3329
|
-
export function knowledgeFilterToJSON(
|
|
3330
|
-
knowledgeFilter: KnowledgeFilter,
|
|
3331
|
-
): string {
|
|
3332
|
-
return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
|
|
3333
|
-
}
|
|
3334
|
-
|
|
3335
|
-
/** @internal */
|
|
3336
|
-
export type InvokeDeploymentRequest$Outbound = {
|
|
3337
|
-
key: string;
|
|
3338
|
-
stream: boolean;
|
|
3339
|
-
inputs?: { [k: string]: any } | undefined;
|
|
3340
|
-
context?: { [k: string]: any } | undefined;
|
|
3341
|
-
prefix_messages?:
|
|
3342
|
-
| Array<
|
|
3343
|
-
| SystemMessage$Outbound
|
|
3344
|
-
| DeveloperMessage$Outbound
|
|
3345
|
-
| UserMessage$Outbound
|
|
3346
|
-
| AssistantMessage$Outbound
|
|
3347
|
-
| ToolMessage$Outbound
|
|
3348
|
-
>
|
|
3349
|
-
| undefined;
|
|
3350
|
-
messages?:
|
|
3351
|
-
| Array<
|
|
3352
|
-
| MessagesSystemMessage$Outbound
|
|
3353
|
-
| MessagesDeveloperMessage$Outbound
|
|
3354
|
-
| MessagesUserMessage$Outbound
|
|
3355
|
-
| MessagesAssistantMessage$Outbound
|
|
3356
|
-
| MessagesToolMessage$Outbound
|
|
3357
|
-
>
|
|
3358
|
-
| undefined;
|
|
3359
|
-
identity?: PublicIdentity$Outbound | undefined;
|
|
3360
|
-
file_ids?: Array<string> | undefined;
|
|
3361
|
-
metadata?: { [k: string]: any } | undefined;
|
|
3362
|
-
extra_params?: { [k: string]: any } | undefined;
|
|
3363
|
-
documents?: Array<Documents$Outbound> | undefined;
|
|
3364
|
-
invoke_options?: InvokeOptions$Outbound | undefined;
|
|
3365
|
-
thread?: Thread$Outbound | undefined;
|
|
3366
|
-
knowledge_filter?:
|
|
3367
|
-
| KnowledgeFilterAnd$Outbound
|
|
3368
|
-
| KnowledgeFilterOr$Outbound
|
|
3369
|
-
| {
|
|
3370
|
-
[k: string]:
|
|
3371
|
-
| OneEq$Outbound
|
|
3372
|
-
| OneNe$Outbound
|
|
3373
|
-
| Gt$Outbound
|
|
3374
|
-
| Gte$Outbound
|
|
3375
|
-
| Lt$Outbound
|
|
3376
|
-
| Lte$Outbound
|
|
3377
|
-
| OneIn$Outbound
|
|
3378
|
-
| OneNin$Outbound
|
|
3379
|
-
| Exists$Outbound;
|
|
3380
|
-
}
|
|
3381
|
-
| undefined;
|
|
3382
|
-
};
|
|
3383
|
-
|
|
3384
|
-
/** @internal */
|
|
3385
|
-
export const InvokeDeploymentRequest$outboundSchema: z.ZodType<
|
|
3386
|
-
InvokeDeploymentRequest$Outbound,
|
|
3387
|
-
z.ZodTypeDef,
|
|
3388
|
-
InvokeDeploymentRequest
|
|
3389
|
-
> = z.object({
|
|
3390
|
-
key: z.string(),
|
|
3391
|
-
stream: z.boolean().default(false),
|
|
3392
|
-
inputs: z.record(z.any()).optional(),
|
|
3393
|
-
context: z.record(z.any()).optional(),
|
|
3394
|
-
prefixMessages: z.array(
|
|
3395
|
-
z.union([
|
|
3396
|
-
z.lazy(() => SystemMessage$outboundSchema),
|
|
3397
|
-
z.lazy(() => DeveloperMessage$outboundSchema),
|
|
3398
|
-
z.lazy(() => UserMessage$outboundSchema),
|
|
3399
|
-
z.lazy(() => AssistantMessage$outboundSchema),
|
|
3400
|
-
z.lazy(() => ToolMessage$outboundSchema),
|
|
3401
|
-
]),
|
|
3402
|
-
).optional(),
|
|
3403
|
-
messages: z.array(
|
|
3404
|
-
z.union([
|
|
3405
|
-
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
3406
|
-
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
3407
|
-
z.lazy(() => MessagesUserMessage$outboundSchema),
|
|
3408
|
-
z.lazy(() => MessagesAssistantMessage$outboundSchema),
|
|
3409
|
-
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
3410
|
-
]),
|
|
3411
|
-
).optional(),
|
|
3412
|
-
identity: PublicIdentity$outboundSchema.optional(),
|
|
3413
|
-
fileIds: z.array(z.string()).optional(),
|
|
3414
|
-
metadata: z.record(z.any()).optional(),
|
|
3415
|
-
extraParams: z.record(z.any()).optional(),
|
|
3416
|
-
documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
|
|
3417
|
-
invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
|
|
3418
|
-
thread: z.lazy(() => Thread$outboundSchema).optional(),
|
|
3419
|
-
knowledgeFilter: z.union([
|
|
3420
|
-
z.lazy(() => KnowledgeFilterAnd$outboundSchema),
|
|
3421
|
-
z.lazy(() => KnowledgeFilterOr$outboundSchema),
|
|
3422
|
-
z.record(z.union([
|
|
3423
|
-
z.lazy(() => OneEq$outboundSchema),
|
|
3424
|
-
z.lazy(() => OneNe$outboundSchema),
|
|
3425
|
-
z.lazy(() => Gt$outboundSchema),
|
|
3426
|
-
z.lazy(() => Gte$outboundSchema),
|
|
3427
|
-
z.lazy(() => Lt$outboundSchema),
|
|
3428
|
-
z.lazy(() => Lte$outboundSchema),
|
|
3429
|
-
z.lazy(() => OneIn$outboundSchema),
|
|
3430
|
-
z.lazy(() => OneNin$outboundSchema),
|
|
3431
|
-
z.lazy(() => Exists$outboundSchema),
|
|
3432
|
-
])),
|
|
3433
|
-
]).optional(),
|
|
3434
|
-
}).transform((v) => {
|
|
3435
|
-
return remap$(v, {
|
|
3436
|
-
prefixMessages: "prefix_messages",
|
|
3437
|
-
fileIds: "file_ids",
|
|
3438
|
-
extraParams: "extra_params",
|
|
3439
|
-
invokeOptions: "invoke_options",
|
|
3440
|
-
knowledgeFilter: "knowledge_filter",
|
|
3441
|
-
});
|
|
3442
|
-
});
|
|
3443
|
-
|
|
3444
|
-
export function invokeDeploymentRequestToJSON(
|
|
3445
|
-
invokeDeploymentRequest: InvokeDeploymentRequest,
|
|
3446
|
-
): string {
|
|
3447
|
-
return JSON.stringify(
|
|
3448
|
-
InvokeDeploymentRequest$outboundSchema.parse(invokeDeploymentRequest),
|
|
3449
|
-
);
|
|
3450
|
-
}
|