@mistralai/mistralai 3.3.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -46
- package/esm/extra/realtime/connection.d.ts +16 -3
- package/esm/extra/realtime/connection.d.ts.map +1 -1
- package/esm/extra/realtime/connection.js +35 -9
- package/esm/extra/realtime/connection.js.map +1 -1
- package/esm/extra/realtime/errors.d.ts +18 -0
- package/esm/extra/realtime/errors.d.ts.map +1 -1
- package/esm/extra/realtime/errors.js +19 -0
- package/esm/extra/realtime/errors.js.map +1 -1
- package/esm/extra/realtime/index.d.ts +20 -1
- package/esm/extra/realtime/index.d.ts.map +1 -1
- package/esm/extra/realtime/index.js +5 -0
- package/esm/extra/realtime/index.js.map +1 -1
- package/esm/extra/realtime/speech.d.ts +64 -0
- package/esm/extra/realtime/speech.d.ts.map +1 -0
- package/esm/extra/realtime/speech.js +461 -0
- package/esm/extra/realtime/speech.js.map +1 -0
- package/esm/extra/realtime/transcription.d.ts +2 -2
- package/esm/extra/realtime/transcription.d.ts.map +1 -1
- package/esm/extra/realtime/transcription.js +11 -2
- package/esm/extra/realtime/transcription.js.map +1 -1
- package/esm/extra/workflows/encoding/payload-encoder.d.ts.map +1 -1
- package/esm/extra/workflows/encoding/payload-encoder.js +2 -2
- package/esm/extra/workflows/encoding/payload-encoder.js.map +1 -1
- package/esm/extra/workflows/encoding/python-json.d.ts +3 -2
- package/esm/extra/workflows/encoding/python-json.d.ts.map +1 -1
- package/esm/extra/workflows/encoding/python-json.js +24 -9
- package/esm/extra/workflows/encoding/python-json.js.map +1 -1
- package/esm/funcs/{betaRagManagedIndexesCreate.d.ts → betaContextSearchIndexesCreate.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesCreate.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesCreate.js → betaContextSearchIndexesCreate.js} +3 -3
- package/esm/funcs/betaContextSearchIndexesCreate.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesDelete.d.ts → betaContextSearchIndexesDelete.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesDelete.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesDelete.js → betaContextSearchIndexesDelete.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesDelete.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesDeleteDocuments.d.ts → betaContextSearchIndexesDeleteDocuments.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesDeleteDocuments.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesDeleteDocuments.js → betaContextSearchIndexesDeleteDocuments.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesDeleteDocuments.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGenerateIndexSummary.d.ts → betaContextSearchIndexesGenerateIndexSummary.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesGenerateIndexSummary.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGenerateIndexSummary.js → betaContextSearchIndexesGenerateIndexSummary.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesGenerateIndexSummary.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGet.d.ts → betaContextSearchIndexesGet.d.ts} +2 -2
- package/esm/funcs/{betaRagManagedIndexesDelete.d.ts.map → betaContextSearchIndexesGet.d.ts.map} +1 -1
- package/esm/funcs/{betaRagManagedIndexesGet.js → betaContextSearchIndexesGet.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesGet.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGetChunk.d.ts → betaContextSearchIndexesGetChunk.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesGetChunk.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGetChunk.js → betaContextSearchIndexesGetChunk.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesGetChunk.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGetIndexSummary.d.ts → betaContextSearchIndexesGetIndexSummary.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesGetIndexSummary.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGetIndexSummary.js → betaContextSearchIndexesGetIndexSummary.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesGetIndexSummary.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGrep.d.ts → betaContextSearchIndexesGrep.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesGrep.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesGrep.js → betaContextSearchIndexesGrep.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesGrep.js.map +1 -0
- package/esm/funcs/betaContextSearchIndexesIngestDocuments.d.ts +19 -0
- package/esm/funcs/betaContextSearchIndexesIngestDocuments.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesIngestDocuments.js → betaContextSearchIndexesIngestDocuments.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesIngestDocuments.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesList.d.ts → betaContextSearchIndexesList.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesList.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesList.js → betaContextSearchIndexesList.js} +3 -3
- package/esm/funcs/betaContextSearchIndexesList.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesNavigate.d.ts → betaContextSearchIndexesNavigate.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesNavigate.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesNavigate.js → betaContextSearchIndexesNavigate.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesNavigate.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesRead.d.ts → betaContextSearchIndexesRead.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesRead.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesRead.js → betaContextSearchIndexesRead.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesRead.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesSearch.d.ts → betaContextSearchIndexesSearch.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesSearch.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesSearch.js → betaContextSearchIndexesSearch.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesSearch.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesSetIndexSummary.d.ts → betaContextSearchIndexesSetIndexSummary.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesSetIndexSummary.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesSetIndexSummary.js → betaContextSearchIndexesSetIndexSummary.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesSetIndexSummary.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesUpdate.d.ts → betaContextSearchIndexesUpdate.d.ts} +2 -2
- package/esm/funcs/betaContextSearchIndexesUpdate.d.ts.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesUpdate.js → betaContextSearchIndexesUpdate.js} +2 -2
- package/esm/funcs/betaContextSearchIndexesUpdate.js.map +1 -0
- package/esm/funcs/betaTriggersCreate.d.ts +15 -0
- package/esm/funcs/betaTriggersCreate.d.ts.map +1 -0
- package/esm/funcs/betaTriggersCreate.js +80 -0
- package/esm/funcs/betaTriggersCreate.js.map +1 -0
- package/esm/funcs/betaTriggersDelete.d.ts +15 -0
- package/esm/funcs/betaTriggersDelete.d.ts.map +1 -0
- package/esm/funcs/betaTriggersDelete.js +87 -0
- package/esm/funcs/betaTriggersDelete.js.map +1 -0
- package/esm/funcs/{betaRagManagedIndexesIngestDocuments.d.ts → betaTriggersGet.d.ts} +3 -6
- package/esm/funcs/betaTriggersGet.d.ts.map +1 -0
- package/esm/funcs/betaTriggersGet.js +86 -0
- package/esm/funcs/betaTriggersGet.js.map +1 -0
- package/esm/funcs/betaTriggersList.d.ts +16 -0
- package/esm/funcs/betaTriggersList.d.ts.map +1 -0
- package/esm/funcs/betaTriggersList.js +88 -0
- package/esm/funcs/betaTriggersList.js.map +1 -0
- package/esm/funcs/betaTriggersListEvents.d.ts +16 -0
- package/esm/funcs/betaTriggersListEvents.d.ts.map +1 -0
- package/esm/funcs/betaTriggersListEvents.js +92 -0
- package/esm/funcs/betaTriggersListEvents.js.map +1 -0
- package/esm/funcs/betaWebhooksCreate.d.ts +15 -0
- package/esm/funcs/betaWebhooksCreate.d.ts.map +1 -0
- package/esm/funcs/betaWebhooksCreate.js +80 -0
- package/esm/funcs/betaWebhooksCreate.js.map +1 -0
- package/esm/funcs/betaWebhooksDelete.d.ts +15 -0
- package/esm/funcs/betaWebhooksDelete.d.ts.map +1 -0
- package/esm/funcs/betaWebhooksDelete.js +87 -0
- package/esm/funcs/betaWebhooksDelete.js.map +1 -0
- package/esm/funcs/betaWebhooksGet.d.ts +16 -0
- package/esm/funcs/betaWebhooksGet.d.ts.map +1 -0
- package/esm/funcs/betaWebhooksGet.js +86 -0
- package/esm/funcs/betaWebhooksGet.js.map +1 -0
- package/esm/funcs/betaWebhooksGetSigningSecret.d.ts +16 -0
- package/esm/funcs/betaWebhooksGetSigningSecret.d.ts.map +1 -0
- package/esm/funcs/betaWebhooksGetSigningSecret.js +88 -0
- package/esm/funcs/betaWebhooksGetSigningSecret.js.map +1 -0
- package/esm/funcs/betaWebhooksList.d.ts +14 -0
- package/esm/funcs/betaWebhooksList.d.ts.map +1 -0
- package/esm/funcs/betaWebhooksList.js +67 -0
- package/esm/funcs/betaWebhooksList.js.map +1 -0
- package/esm/funcs/workflowsAddWorkflowTags.d.ts +15 -0
- package/esm/funcs/workflowsAddWorkflowTags.d.ts.map +1 -0
- package/esm/funcs/workflowsAddWorkflowTags.js +88 -0
- package/esm/funcs/workflowsAddWorkflowTags.js.map +1 -0
- package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.d.ts +22 -0
- package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.d.ts.map +1 -0
- package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.js +94 -0
- package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/connectionpreference.d.ts +12 -2
- package/esm/models/components/connectionpreference.d.ts.map +1 -1
- package/esm/models/components/connectionpreference.js +3 -3
- package/esm/models/components/connectionpreference.js.map +1 -1
- package/esm/models/components/connectoropenapispec.d.ts +14 -0
- package/esm/models/components/connectoropenapispec.d.ts.map +1 -0
- package/esm/models/components/connectoropenapispec.js +14 -0
- package/esm/models/components/connectoropenapispec.js.map +1 -0
- package/esm/models/components/createtrigger.d.ts +34 -0
- package/esm/models/components/createtrigger.d.ts.map +1 -0
- package/esm/models/components/createtrigger.js +26 -0
- package/esm/models/components/createtrigger.js.map +1 -0
- package/esm/models/components/createtriggeraction.d.ts +18 -0
- package/esm/models/components/createtriggeraction.d.ts.map +1 -0
- package/esm/models/components/createtriggeraction.js +19 -0
- package/esm/models/components/createtriggeraction.js.map +1 -0
- package/esm/models/components/createwebhook.d.ts +62 -0
- package/esm/models/components/createwebhook.d.ts.map +1 -0
- package/esm/models/components/createwebhook.js +47 -0
- package/esm/models/components/createwebhook.js.map +1 -0
- package/esm/models/components/deploymentarchiveresponse.d.ts +20 -0
- package/esm/models/components/deploymentarchiveresponse.d.ts.map +1 -0
- package/esm/models/components/deploymentarchiveresponse.js +20 -0
- package/esm/models/components/deploymentarchiveresponse.js.map +1 -0
- package/esm/models/components/deploymentworkerspecinput.d.ts +15 -2
- package/esm/models/components/deploymentworkerspecinput.d.ts.map +1 -1
- package/esm/models/components/deploymentworkerspecinput.js +5 -1
- package/esm/models/components/deploymentworkerspecinput.js.map +1 -1
- package/esm/models/components/deploymentworkerspecresponse.d.ts +8 -0
- package/esm/models/components/deploymentworkerspecresponse.d.ts.map +1 -1
- package/esm/models/components/deploymentworkerspecresponse.js +4 -0
- package/esm/models/components/deploymentworkerspecresponse.js.map +1 -1
- package/esm/models/components/getlog.d.ts +1 -0
- package/esm/models/components/getlog.d.ts.map +1 -1
- package/esm/models/components/getlog.js +2 -0
- package/esm/models/components/getlog.js.map +1 -1
- package/esm/models/components/getspan.d.ts +1 -0
- package/esm/models/components/getspan.d.ts.map +1 -1
- package/esm/models/components/getspan.js +2 -0
- package/esm/models/components/getspan.js.map +1 -1
- package/esm/models/components/getspanevaluation.d.ts +1 -0
- package/esm/models/components/getspanevaluation.d.ts.map +1 -1
- package/esm/models/components/getspanevaluation.js +2 -0
- package/esm/models/components/getspanevaluation.js.map +1 -1
- package/esm/models/components/gettrace.d.ts +1 -0
- package/esm/models/components/gettrace.d.ts.map +1 -1
- package/esm/models/components/gettrace.js +2 -0
- package/esm/models/components/gettrace.js.map +1 -1
- package/esm/models/components/httpconnector.d.ts +5 -0
- package/esm/models/components/httpconnector.d.ts.map +1 -1
- package/esm/models/components/httpconnector.js +3 -0
- package/esm/models/components/httpconnector.js.map +1 -1
- package/esm/models/components/index.d.ts +33 -5
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +33 -5
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/observabilityerrorcode.d.ts +1 -0
- package/esm/models/components/observabilityerrorcode.d.ts.map +1 -1
- package/esm/models/components/observabilityerrorcode.js +1 -0
- package/esm/models/components/observabilityerrorcode.js.map +1 -1
- package/esm/models/components/openapifilesource.d.ts +14 -0
- package/esm/models/components/openapifilesource.d.ts.map +1 -0
- package/esm/models/components/openapifilesource.js +14 -0
- package/esm/models/components/openapifilesource.js.map +1 -0
- package/esm/models/components/openapispecsource.d.ts +11 -0
- package/esm/models/components/openapispecsource.d.ts.map +1 -0
- package/esm/models/components/openapispecsource.js +16 -0
- package/esm/models/components/openapispecsource.js.map +1 -0
- package/esm/models/components/openapiurlsource.d.ts +14 -0
- package/esm/models/components/openapiurlsource.d.ts.map +1 -0
- package/esm/models/components/openapiurlsource.js +14 -0
- package/esm/models/components/openapiurlsource.js.map +1 -0
- package/esm/models/components/realtimespeecherror.d.ts +20 -0
- package/esm/models/components/realtimespeecherror.d.ts.map +1 -0
- package/esm/models/components/realtimespeecherror.js +23 -0
- package/esm/models/components/realtimespeecherror.js.map +1 -0
- package/esm/models/components/realtimespeecherrordetail.d.ts +45 -0
- package/esm/models/components/realtimespeecherrordetail.d.ts.map +1 -0
- package/esm/models/components/realtimespeecherrordetail.js +33 -0
- package/esm/models/components/realtimespeecherrordetail.js.map +1 -0
- package/esm/models/components/realtimespeechinputtextappend.d.ts +19 -0
- package/esm/models/components/realtimespeechinputtextappend.d.ts.map +1 -0
- package/esm/models/components/realtimespeechinputtextappend.js +22 -0
- package/esm/models/components/realtimespeechinputtextappend.js.map +1 -0
- package/esm/models/components/realtimespeechinputtextend.d.ts +17 -0
- package/esm/models/components/realtimespeechinputtextend.d.ts.map +1 -0
- package/esm/models/components/realtimespeechinputtextend.js +20 -0
- package/esm/models/components/realtimespeechinputtextend.js.map +1 -0
- package/esm/models/components/realtimespeechinputtextflush.d.ts +19 -0
- package/esm/models/components/realtimespeechinputtextflush.d.ts.map +1 -0
- package/esm/models/components/realtimespeechinputtextflush.js +22 -0
- package/esm/models/components/realtimespeechinputtextflush.js.map +1 -0
- package/esm/models/components/realtimespeechsession.d.ts +31 -0
- package/esm/models/components/realtimespeechsession.d.ts.map +1 -0
- package/esm/models/components/realtimespeechsession.js +49 -0
- package/esm/models/components/realtimespeechsession.js.map +1 -0
- package/esm/models/components/realtimespeechsessioncreated.d.ts +20 -0
- package/esm/models/components/realtimespeechsessioncreated.d.ts.map +1 -0
- package/esm/models/components/realtimespeechsessioncreated.js +23 -0
- package/esm/models/components/realtimespeechsessioncreated.js.map +1 -0
- package/esm/models/components/realtimespeechsessionupdated.d.ts +20 -0
- package/esm/models/components/realtimespeechsessionupdated.d.ts.map +1 -0
- package/esm/models/components/realtimespeechsessionupdated.js +23 -0
- package/esm/models/components/realtimespeechsessionupdated.js.map +1 -0
- package/esm/models/components/realtimespeechsessionupdatemessage.d.ts +20 -0
- package/esm/models/components/realtimespeechsessionupdatemessage.d.ts.map +1 -0
- package/esm/models/components/realtimespeechsessionupdatemessage.js +23 -0
- package/esm/models/components/realtimespeechsessionupdatemessage.js.map +1 -0
- package/esm/models/components/realtimespeechsessionupdatepayload.d.ts +42 -0
- package/esm/models/components/realtimespeechsessionupdatepayload.d.ts.map +1 -0
- package/esm/models/components/realtimespeechsessionupdatepayload.js +45 -0
- package/esm/models/components/realtimespeechsessionupdatepayload.js.map +1 -0
- package/esm/models/components/realtimespeechstreamingmode.d.ts +12 -0
- package/esm/models/components/realtimespeechstreamingmode.d.ts.map +1 -0
- package/esm/models/components/realtimespeechstreamingmode.js +13 -0
- package/esm/models/components/realtimespeechstreamingmode.js.map +1 -0
- package/esm/models/components/speechoutputformat.d.ts +2 -0
- package/esm/models/components/speechoutputformat.d.ts.map +1 -1
- package/esm/models/components/speechoutputformat.js +3 -1
- package/esm/models/components/speechoutputformat.js.map +1 -1
- package/esm/models/components/speechstreamaudiodelta.d.ts +8 -0
- package/esm/models/components/speechstreamaudiodelta.d.ts.map +1 -1
- package/esm/models/components/speechstreamaudiodelta.js +12 -0
- package/esm/models/components/speechstreamaudiodelta.js.map +1 -1
- package/esm/models/components/speechstreamdone.d.ts +10 -2
- package/esm/models/components/speechstreamdone.d.ts.map +1 -1
- package/esm/models/components/speechstreamdone.js +10 -2
- package/esm/models/components/speechstreamdone.js.map +1 -1
- package/esm/models/components/systemv2.d.ts +4 -0
- package/esm/models/components/systemv2.d.ts.map +1 -1
- package/esm/models/components/systemv2.js +2 -0
- package/esm/models/components/systemv2.js.map +1 -1
- package/esm/models/components/trigger.d.ts +24 -0
- package/esm/models/components/trigger.d.ts.map +1 -0
- package/esm/models/components/trigger.js +37 -0
- package/esm/models/components/trigger.js.map +1 -0
- package/esm/models/components/triggeraction.d.ts +12 -0
- package/esm/models/components/triggeraction.d.ts.map +1 -0
- package/esm/models/components/triggeraction.js +21 -0
- package/esm/models/components/triggeraction.js.map +1 -0
- package/esm/models/components/triggeractiontype.d.ts +14 -0
- package/esm/models/components/triggeractiontype.d.ts.map +1 -0
- package/esm/models/components/triggeractiontype.js +15 -0
- package/esm/models/components/triggeractiontype.js.map +1 -0
- package/esm/models/components/triggerevent.d.ts +19 -0
- package/esm/models/components/triggerevent.d.ts.map +1 -0
- package/esm/models/components/triggerevent.js +33 -0
- package/esm/models/components/triggerevent.js.map +1 -0
- package/esm/models/components/triggereventlist.d.ts +11 -0
- package/esm/models/components/triggereventlist.d.ts.map +1 -0
- package/esm/models/components/triggereventlist.js +14 -0
- package/esm/models/components/triggereventlist.js.map +1 -0
- package/esm/models/components/triggerhandler.d.ts +13 -0
- package/esm/models/components/triggerhandler.d.ts.map +1 -0
- package/esm/models/components/triggerhandler.js +14 -0
- package/esm/models/components/triggerhandler.js.map +1 -0
- package/esm/models/components/triggersownertype.d.ts +12 -0
- package/esm/models/components/triggersownertype.d.ts.map +1 -0
- package/esm/models/components/triggersownertype.js +13 -0
- package/esm/models/components/triggersownertype.js.map +1 -0
- package/esm/models/components/triggerstatusvalue.d.ts +12 -0
- package/esm/models/components/triggerstatusvalue.d.ts.map +1 -0
- package/esm/models/components/triggerstatusvalue.js +13 -0
- package/esm/models/components/triggerstatusvalue.js.map +1 -0
- package/esm/models/components/voicecreaterequest.d.ts +2 -3
- package/esm/models/components/voicecreaterequest.d.ts.map +1 -1
- package/esm/models/components/voicecreaterequest.js +2 -2
- package/esm/models/components/voicecreaterequest.js.map +1 -1
- package/esm/models/components/voiceupdaterequest.d.ts +2 -1
- package/esm/models/components/voiceupdaterequest.d.ts.map +1 -1
- package/esm/models/components/voiceupdaterequest.js +2 -1
- package/esm/models/components/voiceupdaterequest.js.map +1 -1
- package/esm/models/components/webhook.d.ts +35 -0
- package/esm/models/components/webhook.d.ts.map +1 -0
- package/esm/models/components/webhook.js +60 -0
- package/esm/models/components/webhook.js.map +1 -0
- package/esm/models/components/webhookprovider.d.ts +18 -0
- package/esm/models/components/webhookprovider.d.ts.map +1 -0
- package/esm/models/components/webhookprovider.js +19 -0
- package/esm/models/components/webhookprovider.js.map +1 -0
- package/esm/models/components/webhooksignatureencoding.d.ts +12 -0
- package/esm/models/components/webhooksignatureencoding.d.ts.map +1 -0
- package/esm/models/components/webhooksignatureencoding.js +13 -0
- package/esm/models/components/webhooksignatureencoding.js.map +1 -0
- package/esm/models/components/webhooksignaturehashalgorithm.d.ts +12 -0
- package/esm/models/components/webhooksignaturehashalgorithm.d.ts.map +1 -0
- package/esm/models/components/webhooksignaturehashalgorithm.js +13 -0
- package/esm/models/components/webhooksignaturehashalgorithm.js.map +1 -0
- package/esm/models/components/webhooksigningsecret.d.ts +13 -0
- package/esm/models/components/webhooksigningsecret.d.ts.map +1 -0
- package/esm/models/components/webhooksigningsecret.js +18 -0
- package/esm/models/components/webhooksigningsecret.js.map +1 -0
- package/esm/models/components/workflowsworkerspecupdate.d.ts +10 -0
- package/esm/models/components/workflowsworkerspecupdate.d.ts.map +1 -1
- package/esm/models/components/workflowsworkerspecupdate.js +4 -0
- package/esm/models/components/workflowsworkerspecupdate.js.map +1 -1
- package/esm/models/components/workflowtagsaddrequest.d.ts +15 -0
- package/esm/models/components/workflowtagsaddrequest.d.ts.map +1 -0
- package/esm/models/components/workflowtagsaddrequest.js +12 -0
- package/esm/models/components/workflowtagsaddrequest.js.map +1 -0
- package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.d.ts +15 -0
- package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.d.ts.map +1 -0
- package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.js +21 -0
- package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.js.map +1 -0
- package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.d.ts +12 -0
- package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.d.ts.map +1 -0
- package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.js +17 -0
- package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.js.map +1 -0
- package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.d.ts +12 -0
- package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.d.ts.map +1 -0
- package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.js +17 -0
- package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.js.map +1 -0
- package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.d.ts +12 -0
- package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.d.ts.map +1 -0
- package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.js +13 -0
- package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.js.map +1 -0
- package/esm/models/operations/gettriggerv1triggerstriggeridget.d.ts +12 -0
- package/esm/models/operations/gettriggerv1triggerstriggeridget.d.ts.map +1 -0
- package/esm/models/operations/gettriggerv1triggerstriggeridget.js +17 -0
- package/esm/models/operations/gettriggerv1triggerstriggeridget.js.map +1 -0
- package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.d.ts +12 -0
- package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.d.ts.map +1 -0
- package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.js +18 -0
- package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.js.map +1 -0
- package/esm/models/operations/getwebhookv1webhookswebhookidget.d.ts +12 -0
- package/esm/models/operations/getwebhookv1webhookswebhookidget.d.ts.map +1 -0
- package/esm/models/operations/getwebhookv1webhookswebhookidget.js +17 -0
- package/esm/models/operations/getwebhookv1webhookswebhookidget.js.map +1 -0
- package/esm/models/operations/index.d.ts +9 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +9 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.d.ts +17 -0
- package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.d.ts.map +1 -0
- package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.js +18 -0
- package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.js.map +1 -0
- package/esm/models/operations/listtriggersv1triggersget.d.ts +26 -0
- package/esm/models/operations/listtriggersv1triggersget.d.ts.map +1 -0
- package/esm/models/operations/listtriggersv1triggersget.js +21 -0
- package/esm/models/operations/listtriggersv1triggersget.js.map +1 -0
- package/esm/models/operations/skillslist.d.ts +3 -0
- package/esm/models/operations/skillslist.d.ts.map +1 -1
- package/esm/models/operations/skillslist.js.map +1 -1
- package/esm/sdk/beta.d.ts +9 -0
- package/esm/sdk/beta.d.ts.map +1 -1
- package/esm/sdk/beta.js +15 -0
- package/esm/sdk/beta.js.map +1 -1
- package/esm/sdk/context.d.ts +7 -0
- package/esm/sdk/context.d.ts.map +1 -0
- package/esm/sdk/context.js +12 -0
- package/esm/sdk/context.js.map +1 -0
- package/esm/sdk/{managedindexes.d.ts → contextsearchindexes.d.ts} +2 -2
- package/esm/sdk/contextsearchindexes.d.ts.map +1 -0
- package/esm/sdk/{managedindexes.js → contextsearchindexes.js} +32 -32
- package/esm/sdk/contextsearchindexes.js.map +1 -0
- package/esm/sdk/deployments.d.ts +10 -0
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js +13 -0
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/rag.d.ts +2 -5
- package/esm/sdk/rag.d.ts.map +1 -1
- package/esm/sdk/rag.js +2 -7
- package/esm/sdk/rag.js.map +1 -1
- package/esm/sdk/{searchindexes.d.ts → ragsearchindexes.d.ts} +2 -2
- package/esm/sdk/ragsearchindexes.d.ts.map +1 -0
- package/esm/sdk/{searchindexes.js → ragsearchindexes.js} +2 -2
- package/esm/sdk/ragsearchindexes.js.map +1 -0
- package/esm/sdk/triggers.d.ts +26 -0
- package/esm/sdk/triggers.d.ts.map +1 -0
- package/esm/sdk/triggers.js +43 -0
- package/esm/sdk/triggers.js.map +1 -0
- package/esm/sdk/webhooks.d.ts +26 -0
- package/esm/sdk/webhooks.d.ts.map +1 -0
- package/esm/sdk/webhooks.js +43 -0
- package/esm/sdk/webhooks.js.map +1 -0
- package/esm/sdk/workflows.d.ts +4 -0
- package/esm/sdk/workflows.d.ts.map +1 -1
- package/esm/sdk/workflows.js +7 -0
- package/esm/sdk/workflows.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +11 -11
- package/packages/mistralai-azure/examples/chatComplete.example.ts +0 -1
- package/packages/mistralai-azure/src/core.ts +0 -1
- package/packages/mistralai-azure/src/funcs/chatComplete.ts +1 -2
- package/packages/mistralai-azure/src/funcs/chatStream.ts +1 -2
- package/packages/mistralai-azure/src/funcs/ocrProcess.ts +1 -2
- package/packages/mistralai-azure/src/hooks/hooks.ts +0 -1
- package/packages/mistralai-azure/src/hooks/index.ts +0 -1
- package/packages/mistralai-azure/src/hooks/types.ts +1 -1
- package/packages/mistralai-azure/src/index.ts +0 -1
- package/packages/mistralai-azure/src/lib/base64.ts +0 -1
- package/packages/mistralai-azure/src/lib/config.ts +7 -8
- package/packages/mistralai-azure/src/lib/encodings.ts +59 -25
- package/packages/mistralai-azure/src/lib/env.ts +7 -4
- package/packages/mistralai-azure/src/lib/event-streams.ts +46 -21
- package/packages/mistralai-azure/src/lib/files.ts +0 -1
- package/packages/mistralai-azure/src/lib/http.ts +3 -2
- package/packages/mistralai-azure/src/lib/logger.ts +0 -1
- package/packages/mistralai-azure/src/lib/matchers.ts +1 -2
- package/packages/mistralai-azure/src/lib/primitives.ts +16 -1
- package/packages/mistralai-azure/src/lib/retries.ts +8 -1
- package/packages/mistralai-azure/src/lib/schemas.ts +0 -1
- package/packages/mistralai-azure/src/lib/sdks.ts +54 -18
- package/packages/mistralai-azure/src/lib/security.ts +10 -6
- package/packages/mistralai-azure/src/lib/url.ts +0 -1
- package/packages/mistralai-azure/src/models/components/apikeyauth.ts +0 -1
- package/packages/mistralai-azure/src/models/components/assistantmessage.ts +0 -1
- package/packages/mistralai-azure/src/models/components/builtinconnectors.ts +1 -1
- package/packages/mistralai-azure/src/models/components/chatcompletionchoice.ts +12 -1
- package/packages/mistralai-azure/src/models/components/chatcompletionrequest.ts +28 -40
- package/packages/mistralai-azure/src/models/components/chatcompletionresponse.ts +0 -1
- package/packages/mistralai-azure/src/models/components/chatcompletionresponsechoicelogprobs.ts +35 -0
- package/packages/mistralai-azure/src/models/components/chatcompletionresponsetokenlogprobs.ts +42 -0
- package/packages/mistralai-azure/src/models/components/chatcompletionresponsetokenlogprobstopk.ts +56 -0
- package/packages/mistralai-azure/src/models/components/chatcompletionstreamrequest.ts +28 -40
- package/packages/mistralai-azure/src/models/components/completionchunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/completionevent.ts +2 -2
- package/packages/mistralai-azure/src/models/components/completionresponsestreamchoice.ts +12 -1
- package/packages/mistralai-azure/src/models/components/contentchunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/customconnector.ts +5 -1
- package/packages/mistralai-azure/src/models/components/deltamessage.ts +0 -1
- package/packages/mistralai-azure/src/models/components/documentlibrarytool.ts +0 -1
- package/packages/mistralai-azure/src/models/components/documenturlchunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/filechunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/function.ts +0 -1
- package/packages/mistralai-azure/src/models/components/functioncall.ts +0 -1
- package/packages/mistralai-azure/src/models/components/functionname.ts +0 -1
- package/packages/mistralai-azure/src/models/components/guardrailconfig.ts +0 -1
- package/packages/mistralai-azure/src/models/components/imagedetail.ts +0 -1
- package/packages/mistralai-azure/src/models/components/imagegenerationtool.ts +0 -1
- package/packages/mistralai-azure/src/models/components/imageurl.ts +0 -1
- package/packages/mistralai-azure/src/models/components/imageurlchunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/index.ts +17 -4
- package/packages/mistralai-azure/src/models/components/jsonschema.ts +0 -1
- package/packages/mistralai-azure/src/models/components/mistralpromptmode.ts +0 -1
- package/packages/mistralai-azure/src/models/components/moderationllmaction.ts +0 -1
- package/packages/mistralai-azure/src/models/components/moderationllmv1categorythresholds.ts +0 -1
- package/packages/mistralai-azure/src/models/components/moderationllmv1config.ts +0 -1
- package/packages/mistralai-azure/src/models/components/moderationllmv2categorythresholds.ts +0 -1
- package/packages/mistralai-azure/src/models/components/moderationllmv2config.ts +0 -1
- package/packages/mistralai-azure/src/models/components/oauth2tokenauth.ts +0 -1
- package/packages/mistralai-azure/src/models/components/ocrasidetextblock.ts +62 -0
- package/packages/mistralai-azure/src/models/components/ocrblockconfidencescores.ts +59 -0
- package/packages/mistralai-azure/src/models/components/ocrcaptionblock.ts +62 -0
- package/packages/mistralai-azure/src/models/components/ocrcodeblock.ts +60 -0
- package/packages/mistralai-azure/src/models/components/ocrconfidencescore.ts +0 -1
- package/packages/mistralai-azure/src/models/components/ocrequationblock.ts +62 -0
- package/packages/mistralai-azure/src/models/components/ocrfooterblock.ts +60 -0
- package/packages/mistralai-azure/src/models/components/ocrheaderblock.ts +60 -0
- package/packages/mistralai-azure/src/models/components/ocrimageblock.ts +66 -0
- package/packages/mistralai-azure/src/models/components/ocrimageobject.ts +0 -1
- package/packages/mistralai-azure/src/models/components/ocrlistblock.ts +60 -0
- package/packages/mistralai-azure/src/models/components/ocrpageconfidencescores.ts +8 -5
- package/packages/mistralai-azure/src/models/components/ocrpagedimensions.ts +0 -1
- package/packages/mistralai-azure/src/models/components/ocrpageobject.ts +117 -1
- package/packages/mistralai-azure/src/models/components/ocrreferencesblock.ts +62 -0
- package/packages/mistralai-azure/src/models/components/ocrrequest.ts +15 -2
- package/packages/mistralai-azure/src/models/components/ocrresponse.ts +0 -1
- package/packages/mistralai-azure/src/models/components/ocrsignatureblock.ts +65 -0
- package/packages/mistralai-azure/src/models/components/ocrtableblock.ts +66 -0
- package/packages/mistralai-azure/src/models/components/ocrtableobject.ts +0 -1
- package/packages/mistralai-azure/src/models/components/ocrtextblock.ts +60 -0
- package/packages/mistralai-azure/src/models/components/ocrtitleblock.ts +60 -0
- package/packages/mistralai-azure/src/models/components/ocrusageinfo.ts +0 -1
- package/packages/mistralai-azure/src/models/components/prediction.ts +0 -1
- package/packages/mistralai-azure/src/models/components/reasoningeffort.ts +5 -1
- package/packages/mistralai-azure/src/models/components/referencechunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/responseformat.ts +0 -1
- package/packages/mistralai-azure/src/models/components/responseformats.ts +0 -1
- package/packages/mistralai-azure/src/models/components/security.ts +0 -1
- package/packages/mistralai-azure/src/models/components/systemmessage.ts +0 -1
- package/packages/mistralai-azure/src/models/components/systemmessagecontentchunks.ts +0 -1
- package/packages/mistralai-azure/src/models/components/textchunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/thinkchunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/tool.ts +0 -1
- package/packages/mistralai-azure/src/models/components/toolcall.ts +3 -4
- package/packages/mistralai-azure/src/models/components/toolchoice.ts +2 -3
- package/packages/mistralai-azure/src/models/components/toolchoiceenum.ts +0 -1
- package/packages/mistralai-azure/src/models/components/toolconfiguration.ts +0 -1
- package/packages/mistralai-azure/src/models/components/toolmessage.ts +0 -1
- package/packages/mistralai-azure/src/models/components/toolreferencechunk.ts +0 -1
- package/packages/mistralai-azure/src/models/components/usageinfo.ts +0 -1
- package/packages/mistralai-azure/src/models/components/usermessage.ts +0 -1
- package/packages/mistralai-azure/src/models/components/validationerror.ts +0 -1
- package/packages/mistralai-azure/src/models/errors/httpclienterrors.ts +0 -1
- package/packages/mistralai-azure/src/models/errors/httpvalidationerror.ts +0 -1
- package/packages/mistralai-azure/src/models/errors/index.ts +0 -1
- package/packages/mistralai-azure/src/models/errors/mistralazureerror.ts +0 -1
- package/packages/mistralai-azure/src/models/errors/responsevalidationerror.ts +0 -1
- package/packages/mistralai-azure/src/models/errors/sdkerror.ts +0 -1
- package/packages/mistralai-azure/src/models/errors/sdkvalidationerror.ts +0 -1
- package/packages/mistralai-azure/src/sdk/chat.ts +0 -1
- package/packages/mistralai-azure/src/sdk/index.ts +0 -1
- package/packages/mistralai-azure/src/sdk/ocr.ts +0 -1
- package/packages/mistralai-azure/src/types/async.ts +0 -1
- package/packages/mistralai-azure/src/types/blobs.ts +0 -1
- package/packages/mistralai-azure/src/types/constdatetime.ts +0 -1
- package/packages/mistralai-azure/src/types/discriminatedUnion.ts +0 -1
- package/packages/mistralai-azure/src/types/enums.ts +0 -1
- package/packages/mistralai-azure/src/types/fp.ts +0 -1
- package/packages/mistralai-azure/src/types/index.ts +0 -1
- package/packages/mistralai-azure/src/types/operations.ts +0 -1
- package/packages/mistralai-azure/src/types/rfcdate.ts +0 -1
- package/packages/mistralai-azure/src/types/smartUnion.ts +0 -1
- package/packages/mistralai-azure/src/types/streams.ts +0 -1
- package/packages/mistralai-azure/src/types/unrecognized.ts +0 -1
- package/packages/mistralai-gcp/examples/chatComplete.example.ts +0 -1
- package/packages/mistralai-gcp/src/core.ts +0 -1
- package/packages/mistralai-gcp/src/funcs/chatComplete.ts +1 -2
- package/packages/mistralai-gcp/src/funcs/chatStream.ts +1 -2
- package/packages/mistralai-gcp/src/funcs/fimComplete.ts +1 -2
- package/packages/mistralai-gcp/src/funcs/fimStream.ts +1 -2
- package/packages/mistralai-gcp/src/hooks/hooks.ts +0 -1
- package/packages/mistralai-gcp/src/hooks/index.ts +0 -1
- package/packages/mistralai-gcp/src/hooks/types.ts +1 -1
- package/packages/mistralai-gcp/src/index.ts +0 -1
- package/packages/mistralai-gcp/src/lib/base64.ts +0 -1
- package/packages/mistralai-gcp/src/lib/config.ts +7 -8
- package/packages/mistralai-gcp/src/lib/encodings.ts +59 -25
- package/packages/mistralai-gcp/src/lib/event-streams.ts +46 -21
- package/packages/mistralai-gcp/src/lib/files.ts +0 -1
- package/packages/mistralai-gcp/src/lib/http.ts +3 -2
- package/packages/mistralai-gcp/src/lib/logger.ts +0 -1
- package/packages/mistralai-gcp/src/lib/matchers.ts +1 -2
- package/packages/mistralai-gcp/src/lib/primitives.ts +16 -1
- package/packages/mistralai-gcp/src/lib/retries.ts +8 -1
- package/packages/mistralai-gcp/src/lib/schemas.ts +0 -1
- package/packages/mistralai-gcp/src/lib/sdks.ts +54 -18
- package/packages/mistralai-gcp/src/lib/security.ts +10 -6
- package/packages/mistralai-gcp/src/lib/url.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/apikeyauth.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/assistantmessage.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/builtinconnectors.ts +1 -1
- package/packages/mistralai-gcp/src/models/components/chatcompletionchoice.ts +12 -1
- package/packages/mistralai-gcp/src/models/components/chatcompletionrequest.ts +28 -40
- package/packages/mistralai-gcp/src/models/components/chatcompletionresponse.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/chatcompletionresponsechoicelogprobs.ts +35 -0
- package/packages/mistralai-gcp/src/models/components/chatcompletionresponsetokenlogprobs.ts +42 -0
- package/packages/mistralai-gcp/src/models/components/chatcompletionresponsetokenlogprobstopk.ts +56 -0
- package/packages/mistralai-gcp/src/models/components/chatcompletionstreamrequest.ts +28 -40
- package/packages/mistralai-gcp/src/models/components/completionchunk.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/completionevent.ts +2 -2
- package/packages/mistralai-gcp/src/models/components/completionresponsestreamchoice.ts +12 -1
- package/packages/mistralai-gcp/src/models/components/contentchunk.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/customconnector.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/deltamessage.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/documentlibrarytool.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/fimcompletionrequest.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/fimcompletionresponse.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/fimcompletionstreamrequest.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/function.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/functioncall.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/functionname.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/guardrailconfig.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/imagedetail.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/imagegenerationtool.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/imageurl.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/imageurlchunk.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/index.ts +3 -4
- package/packages/mistralai-gcp/src/models/components/jsonschema.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/mistralpromptmode.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/moderationllmaction.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/moderationllmv1categorythresholds.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/moderationllmv1config.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/moderationllmv2categorythresholds.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/moderationllmv2config.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/oauth2tokenauth.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/prediction.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/reasoningeffort.ts +5 -1
- package/packages/mistralai-gcp/src/models/components/referencechunk.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/responseformat.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/responseformats.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/security.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/systemmessage.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/systemmessagecontentchunks.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/textchunk.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/thinkchunk.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/tool.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/toolcall.ts +3 -4
- package/packages/mistralai-gcp/src/models/components/toolchoice.ts +2 -3
- package/packages/mistralai-gcp/src/models/components/toolchoiceenum.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/toolconfiguration.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/toolmessage.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/toolreferencechunk.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/usageinfo.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/usermessage.ts +0 -1
- package/packages/mistralai-gcp/src/models/components/validationerror.ts +0 -1
- package/packages/mistralai-gcp/src/models/errors/httpclienterrors.ts +0 -1
- package/packages/mistralai-gcp/src/models/errors/httpvalidationerror.ts +0 -1
- package/packages/mistralai-gcp/src/models/errors/index.ts +0 -1
- package/packages/mistralai-gcp/src/models/errors/mistralgcperror.ts +0 -1
- package/packages/mistralai-gcp/src/models/errors/responsevalidationerror.ts +0 -1
- package/packages/mistralai-gcp/src/models/errors/sdkerror.ts +0 -1
- package/packages/mistralai-gcp/src/models/errors/sdkvalidationerror.ts +0 -1
- package/packages/mistralai-gcp/src/sdk/chat.ts +0 -1
- package/packages/mistralai-gcp/src/sdk/fim.ts +0 -1
- package/packages/mistralai-gcp/src/sdk/index.ts +0 -1
- package/packages/mistralai-gcp/src/types/async.ts +0 -1
- package/packages/mistralai-gcp/src/types/blobs.ts +0 -1
- package/packages/mistralai-gcp/src/types/constdatetime.ts +0 -1
- package/packages/mistralai-gcp/src/types/discriminatedUnion.ts +0 -1
- package/packages/mistralai-gcp/src/types/enums.ts +0 -1
- package/packages/mistralai-gcp/src/types/fp.ts +0 -1
- package/packages/mistralai-gcp/src/types/index.ts +0 -1
- package/packages/mistralai-gcp/src/types/operations.ts +0 -1
- package/packages/mistralai-gcp/src/types/rfcdate.ts +0 -1
- package/packages/mistralai-gcp/src/types/smartUnion.ts +0 -1
- package/packages/mistralai-gcp/src/types/streams.ts +0 -1
- package/packages/mistralai-gcp/src/types/unrecognized.ts +0 -1
- package/src/extra/realtime/connection.ts +88 -13
- package/src/extra/realtime/errors.ts +32 -0
- package/src/extra/realtime/index.ts +42 -1
- package/src/extra/realtime/speech.ts +646 -0
- package/src/extra/realtime/transcription.ts +22 -9
- package/src/extra/workflows/encoding/payload-encoder.ts +2 -1
- package/src/extra/workflows/encoding/python-json.ts +34 -8
- package/src/funcs/{betaRagManagedIndexesCreate.ts → betaContextSearchIndexesCreate.ts} +2 -2
- package/src/funcs/{betaRagManagedIndexesDelete.ts → betaContextSearchIndexesDelete.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesDeleteDocuments.ts → betaContextSearchIndexesDeleteDocuments.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesGenerateIndexSummary.ts → betaContextSearchIndexesGenerateIndexSummary.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesGet.ts → betaContextSearchIndexesGet.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesGetChunk.ts → betaContextSearchIndexesGetChunk.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesGetIndexSummary.ts → betaContextSearchIndexesGetIndexSummary.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesGrep.ts → betaContextSearchIndexesGrep.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesIngestDocuments.ts → betaContextSearchIndexesIngestDocuments.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesList.ts → betaContextSearchIndexesList.ts} +2 -2
- package/src/funcs/{betaRagManagedIndexesNavigate.ts → betaContextSearchIndexesNavigate.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesRead.ts → betaContextSearchIndexesRead.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesSearch.ts → betaContextSearchIndexesSearch.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesSetIndexSummary.ts → betaContextSearchIndexesSetIndexSummary.ts} +1 -1
- package/src/funcs/{betaRagManagedIndexesUpdate.ts → betaContextSearchIndexesUpdate.ts} +1 -1
- package/src/funcs/betaTriggersCreate.ts +168 -0
- package/src/funcs/betaTriggersDelete.ts +176 -0
- package/src/funcs/betaTriggersGet.ts +177 -0
- package/src/funcs/betaTriggersList.ts +178 -0
- package/src/funcs/betaTriggersListEvents.ts +182 -0
- package/src/funcs/betaWebhooksCreate.ts +168 -0
- package/src/funcs/betaWebhooksDelete.ts +176 -0
- package/src/funcs/betaWebhooksGet.ts +177 -0
- package/src/funcs/betaWebhooksGetSigningSecret.ts +182 -0
- package/src/funcs/betaWebhooksList.ts +142 -0
- package/src/funcs/workflowsAddWorkflowTags.ts +186 -0
- package/src/funcs/workflowsDeploymentsGetDeploymentArchive.ts +188 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/connectionpreference.ts +15 -5
- package/src/models/components/connectoropenapispec.ts +37 -0
- package/src/models/components/createtrigger.ts +69 -0
- package/src/models/components/createtriggeraction.ts +45 -0
- package/src/models/components/createwebhook.ts +121 -0
- package/src/models/components/deploymentarchiveresponse.ts +47 -0
- package/src/models/components/deploymentworkerspecinput.ts +20 -3
- package/src/models/components/deploymentworkerspecresponse.ts +12 -0
- package/src/models/components/getlog.ts +3 -0
- package/src/models/components/getspan.ts +3 -0
- package/src/models/components/getspanevaluation.ts +3 -0
- package/src/models/components/gettrace.ts +3 -0
- package/src/models/components/httpconnector.ts +10 -0
- package/src/models/components/index.ts +33 -5
- package/src/models/components/observabilityerrorcode.ts +2 -0
- package/src/models/components/openapifilesource.ts +35 -0
- package/src/models/components/openapispecsource.ts +42 -0
- package/src/models/components/openapiurlsource.ts +35 -0
- package/src/models/components/realtimespeecherror.ts +59 -0
- package/src/models/components/realtimespeecherrordetail.ts +100 -0
- package/src/models/components/realtimespeechinputtextappend.ts +55 -0
- package/src/models/components/realtimespeechinputtextend.ts +49 -0
- package/src/models/components/realtimespeechinputtextflush.ts +55 -0
- package/src/models/components/realtimespeechsession.ts +98 -0
- package/src/models/components/realtimespeechsessioncreated.ts +61 -0
- package/src/models/components/realtimespeechsessionupdated.ts +61 -0
- package/src/models/components/realtimespeechsessionupdatemessage.ts +62 -0
- package/src/models/components/realtimespeechsessionupdatepayload.ts +108 -0
- package/src/models/components/realtimespeechstreamingmode.ts +23 -0
- package/src/models/components/speechoutputformat.ts +5 -1
- package/src/models/components/speechstreamaudiodelta.ts +25 -0
- package/src/models/components/speechstreamdone.ts +28 -5
- package/src/models/components/systemv2.ts +4 -0
- package/src/models/components/trigger.ts +67 -0
- package/src/models/components/triggeraction.ts +39 -0
- package/src/models/components/triggeractiontype.ts +26 -0
- package/src/models/components/triggerevent.ts +62 -0
- package/src/models/components/triggereventlist.ts +31 -0
- package/src/models/components/triggerhandler.ts +21 -0
- package/src/models/components/triggersownertype.ts +24 -0
- package/src/models/components/triggerstatusvalue.ts +21 -0
- package/src/models/components/voicecreaterequest.ts +3 -5
- package/src/models/components/voiceupdaterequest.ts +3 -2
- package/src/models/components/webhook.ts +111 -0
- package/src/models/components/webhookprovider.ts +30 -0
- package/src/models/components/webhooksignatureencoding.ts +26 -0
- package/src/models/components/webhooksignaturehashalgorithm.ts +26 -0
- package/src/models/components/webhooksigningsecret.ts +38 -0
- package/src/models/components/workflowsworkerspecupdate.ts +14 -0
- package/src/models/components/workflowtagsaddrequest.ts +33 -0
- package/src/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.ts +44 -0
- package/src/models/operations/deletetriggerv1triggerstriggeriddelete.ts +39 -0
- package/src/models/operations/deletewebhookv1webhookswebhookiddelete.ts +39 -0
- package/src/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.ts +34 -0
- package/src/models/operations/gettriggerv1triggerstriggeridget.ts +38 -0
- package/src/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.ts +40 -0
- package/src/models/operations/getwebhookv1webhookswebhookidget.ts +38 -0
- package/src/models/operations/index.ts +9 -0
- package/src/models/operations/listtriggereventsv1triggerstriggerideventsget.ts +45 -0
- package/src/models/operations/listtriggersv1triggersget.ts +54 -0
- package/src/models/operations/skillslist.ts +3 -0
- package/src/sdk/beta.ts +18 -0
- package/src/sdk/context.ts +13 -0
- package/src/sdk/{managedindexes.ts → contextsearchindexes.ts} +31 -31
- package/src/sdk/deployments.ts +22 -0
- package/src/sdk/rag.ts +4 -10
- package/src/sdk/{searchindexes.ts → ragsearchindexes.ts} +1 -1
- package/src/sdk/triggers.ts +85 -0
- package/src/sdk/webhooks.ts +84 -0
- package/src/sdk/workflows.ts +16 -0
- package/tests/extra/realtime-speech-ws.test.ts +193 -0
- package/tests/extra/realtime-speech.test.ts +532 -0
- package/tests/extra/realtime.test.ts +217 -0
- package/tests/extra/workflow-encryption.test.ts +2 -2
- package/tests/hooks/workflow-encoding.test.ts +1 -1
- package/esm/funcs/betaRagManagedIndexesCreate.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesCreate.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesDelete.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesDeleteDocuments.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesDeleteDocuments.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGenerateIndexSummary.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGenerateIndexSummary.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGet.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGet.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGetChunk.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGetChunk.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGetIndexSummary.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGetIndexSummary.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGrep.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesGrep.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesIngestDocuments.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesIngestDocuments.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesList.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesList.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesNavigate.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesNavigate.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesRead.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesRead.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesSearch.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesSearch.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesSetIndexSummary.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesSetIndexSummary.js.map +0 -1
- package/esm/funcs/betaRagManagedIndexesUpdate.d.ts.map +0 -1
- package/esm/funcs/betaRagManagedIndexesUpdate.js.map +0 -1
- package/esm/models/components/completiontokensdetails.d.ts +0 -19
- package/esm/models/components/completiontokensdetails.d.ts.map +0 -1
- package/esm/models/components/completiontokensdetails.js +0 -18
- package/esm/models/components/completiontokensdetails.js.map +0 -1
- package/esm/models/components/messagetokens.d.ts +0 -18
- package/esm/models/components/messagetokens.d.ts.map +0 -1
- package/esm/models/components/messagetokens.js +0 -26
- package/esm/models/components/messagetokens.js.map +0 -1
- package/esm/models/components/prompttokensdetails.d.ts +0 -16
- package/esm/models/components/prompttokensdetails.d.ts.map +0 -1
- package/esm/models/components/prompttokensdetails.js +0 -22
- package/esm/models/components/prompttokensdetails.js.map +0 -1
- package/esm/models/components/roles.d.ts +0 -12
- package/esm/models/components/roles.d.ts.map +0 -1
- package/esm/models/components/roles.js +0 -14
- package/esm/models/components/roles.js.map +0 -1
- package/esm/models/components/usageinfodollardefs.d.ts +0 -24
- package/esm/models/components/usageinfodollardefs.d.ts.map +0 -1
- package/esm/models/components/usageinfodollardefs.js +0 -41
- package/esm/models/components/usageinfodollardefs.js.map +0 -1
- package/esm/sdk/managedindexes.d.ts.map +0 -1
- package/esm/sdk/managedindexes.js.map +0 -1
- package/esm/sdk/searchindexes.d.ts.map +0 -1
- package/esm/sdk/searchindexes.js.map +0 -1
- package/packages/mistralai-azure/src/lib/dlv.ts +0 -54
- package/packages/mistralai-azure/src/lib/is-plain-object.ts +0 -44
- package/packages/mistralai-azure/src/models/components/codeinterpretertool.ts +0 -44
- package/packages/mistralai-azure/src/models/components/websearchpremiumtool.ts +0 -44
- package/packages/mistralai-azure/src/models/components/websearchtool.ts +0 -40
- package/packages/mistralai-gcp/src/lib/dlv.ts +0 -54
- package/packages/mistralai-gcp/src/lib/is-plain-object.ts +0 -44
- package/packages/mistralai-gcp/src/models/components/codeinterpretertool.ts +0 -44
- package/packages/mistralai-gcp/src/models/components/websearchpremiumtool.ts +0 -44
- package/packages/mistralai-gcp/src/models/components/websearchtool.ts +0 -40
- package/src/models/components/completiontokensdetails.ts +0 -44
- package/src/models/components/messagetokens.ts +0 -47
- package/src/models/components/prompttokensdetails.ts +0 -44
- package/src/models/components/roles.ts +0 -19
- package/src/models/components/usageinfodollardefs.ts +0 -76
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { MistralCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { MistralError } from "../models/errors/mistralerror.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Delete Webhook
|
|
32
|
+
*/
|
|
33
|
+
export function betaWebhooksDelete(
|
|
34
|
+
client: MistralCore,
|
|
35
|
+
request: operations.DeleteWebhookV1WebhooksWebhookIdDeleteRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
void,
|
|
40
|
+
| errors.HTTPValidationError
|
|
41
|
+
| MistralError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: MistralCore,
|
|
60
|
+
request: operations.DeleteWebhookV1WebhooksWebhookIdDeleteRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
void,
|
|
66
|
+
| errors.HTTPValidationError
|
|
67
|
+
| MistralError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
operations.DeleteWebhookV1WebhooksWebhookIdDeleteRequest$outboundSchema
|
|
83
|
+
.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = null;
|
|
91
|
+
|
|
92
|
+
const pathParams = {
|
|
93
|
+
webhook_id: encodeSimple("webhook_id", payload.webhook_id, {
|
|
94
|
+
explode: false,
|
|
95
|
+
charEncoding: "percent",
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
const path = pathToFunc("/v1/webhooks/{webhook_id}")(pathParams);
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
105
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
options: client._options,
|
|
110
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
|
+
operationID: "delete_webhook_v1_webhooks__webhook_id__delete",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
|
|
116
|
+
securitySource: client._options.apiKey,
|
|
117
|
+
retryConfig: options?.retries
|
|
118
|
+
|| client._options.retryConfig
|
|
119
|
+
|| { strategy: "none" },
|
|
120
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "DELETE",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path,
|
|
128
|
+
headers: headers,
|
|
129
|
+
body: body,
|
|
130
|
+
userAgent: client._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client._do(req, {
|
|
139
|
+
context,
|
|
140
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
141
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req }];
|
|
147
|
+
}
|
|
148
|
+
const response = doResult.value;
|
|
149
|
+
|
|
150
|
+
const responseFields = {
|
|
151
|
+
HttpMeta: { Response: response, Request: req },
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const [result] = await M.match<
|
|
155
|
+
void,
|
|
156
|
+
| errors.HTTPValidationError
|
|
157
|
+
| MistralError
|
|
158
|
+
| ResponseValidationError
|
|
159
|
+
| ConnectionError
|
|
160
|
+
| RequestAbortedError
|
|
161
|
+
| RequestTimeoutError
|
|
162
|
+
| InvalidRequestError
|
|
163
|
+
| UnexpectedClientError
|
|
164
|
+
| SDKValidationError
|
|
165
|
+
>(
|
|
166
|
+
M.nil(204, z.void()),
|
|
167
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
168
|
+
M.fail("4XX"),
|
|
169
|
+
M.fail("5XX"),
|
|
170
|
+
)(response, req, { extraFields: responseFields });
|
|
171
|
+
if (!result.ok) {
|
|
172
|
+
return [result, { status: "complete", request: req, response }];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return [result, { status: "complete", request: req, response }];
|
|
176
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { MistralCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { MistralError } from "../models/errors/mistralerror.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Get Webhook
|
|
32
|
+
*/
|
|
33
|
+
export function betaWebhooksGet(
|
|
34
|
+
client: MistralCore,
|
|
35
|
+
request: operations.GetWebhookV1WebhooksWebhookIdGetRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
components.Webhook,
|
|
40
|
+
| errors.HTTPValidationError
|
|
41
|
+
| MistralError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: MistralCore,
|
|
60
|
+
request: operations.GetWebhookV1WebhooksWebhookIdGetRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
components.Webhook,
|
|
66
|
+
| errors.HTTPValidationError
|
|
67
|
+
| MistralError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
operations.GetWebhookV1WebhooksWebhookIdGetRequest$outboundSchema.parse(
|
|
83
|
+
value,
|
|
84
|
+
),
|
|
85
|
+
"Input validation failed",
|
|
86
|
+
);
|
|
87
|
+
if (!parsed.ok) {
|
|
88
|
+
return [parsed, { status: "invalid" }];
|
|
89
|
+
}
|
|
90
|
+
const payload = parsed.value;
|
|
91
|
+
const body = null;
|
|
92
|
+
|
|
93
|
+
const pathParams = {
|
|
94
|
+
webhook_id: encodeSimple("webhook_id", payload.webhook_id, {
|
|
95
|
+
explode: false,
|
|
96
|
+
charEncoding: "percent",
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
const path = pathToFunc("/v1/webhooks/{webhook_id}")(pathParams);
|
|
100
|
+
|
|
101
|
+
const headers = new Headers(compactMap({
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "get_webhook_v1_webhooks__webhook_id__get",
|
|
113
|
+
oAuth2Scopes: null,
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.apiKey,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "GET",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
132
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client._do(req, {
|
|
140
|
+
context,
|
|
141
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
142
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
143
|
+
retryConfig: context.retryConfig,
|
|
144
|
+
retryCodes: context.retryCodes,
|
|
145
|
+
});
|
|
146
|
+
if (!doResult.ok) {
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
148
|
+
}
|
|
149
|
+
const response = doResult.value;
|
|
150
|
+
|
|
151
|
+
const responseFields = {
|
|
152
|
+
HttpMeta: { Response: response, Request: req },
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const [result] = await M.match<
|
|
156
|
+
components.Webhook,
|
|
157
|
+
| errors.HTTPValidationError
|
|
158
|
+
| MistralError
|
|
159
|
+
| ResponseValidationError
|
|
160
|
+
| ConnectionError
|
|
161
|
+
| RequestAbortedError
|
|
162
|
+
| RequestTimeoutError
|
|
163
|
+
| InvalidRequestError
|
|
164
|
+
| UnexpectedClientError
|
|
165
|
+
| SDKValidationError
|
|
166
|
+
>(
|
|
167
|
+
M.json(200, components.Webhook$inboundSchema),
|
|
168
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
169
|
+
M.fail("4XX"),
|
|
170
|
+
M.fail("5XX"),
|
|
171
|
+
)(response, req, { extraFields: responseFields });
|
|
172
|
+
if (!result.ok) {
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { MistralCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { MistralError } from "../models/errors/mistralerror.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Get Webhook Signing Secret
|
|
32
|
+
*/
|
|
33
|
+
export function betaWebhooksGetSigningSecret(
|
|
34
|
+
client: MistralCore,
|
|
35
|
+
request:
|
|
36
|
+
operations.GetWebhookSigningSecretV1WebhooksWebhookIdSigningSecretGetRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
components.WebhookSigningSecret,
|
|
41
|
+
| errors.HTTPValidationError
|
|
42
|
+
| MistralError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: MistralCore,
|
|
61
|
+
request:
|
|
62
|
+
operations.GetWebhookSigningSecretV1WebhooksWebhookIdSigningSecretGetRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
components.WebhookSigningSecret,
|
|
68
|
+
| errors.HTTPValidationError
|
|
69
|
+
| MistralError
|
|
70
|
+
| ResponseValidationError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| InvalidRequestError
|
|
75
|
+
| UnexpectedClientError
|
|
76
|
+
| SDKValidationError
|
|
77
|
+
>,
|
|
78
|
+
APICall,
|
|
79
|
+
]
|
|
80
|
+
> {
|
|
81
|
+
const parsed = safeParse(
|
|
82
|
+
request,
|
|
83
|
+
(value) =>
|
|
84
|
+
operations
|
|
85
|
+
.GetWebhookSigningSecretV1WebhooksWebhookIdSigningSecretGetRequest$outboundSchema
|
|
86
|
+
.parse(value),
|
|
87
|
+
"Input validation failed",
|
|
88
|
+
);
|
|
89
|
+
if (!parsed.ok) {
|
|
90
|
+
return [parsed, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const payload = parsed.value;
|
|
93
|
+
const body = null;
|
|
94
|
+
|
|
95
|
+
const pathParams = {
|
|
96
|
+
webhook_id: encodeSimple("webhook_id", payload.webhook_id, {
|
|
97
|
+
explode: false,
|
|
98
|
+
charEncoding: "percent",
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
const path = pathToFunc("/v1/webhooks/{webhook_id}/signing-secret")(
|
|
102
|
+
pathParams,
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
const headers = new Headers(compactMap({
|
|
106
|
+
Accept: "application/json",
|
|
107
|
+
}));
|
|
108
|
+
|
|
109
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
110
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
111
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
|
+
|
|
113
|
+
const context = {
|
|
114
|
+
options: client._options,
|
|
115
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
116
|
+
operationID:
|
|
117
|
+
"get_webhook_signing_secret_v1_webhooks__webhook_id__signing_secret_get",
|
|
118
|
+
oAuth2Scopes: null,
|
|
119
|
+
|
|
120
|
+
resolvedSecurity: requestSecurity,
|
|
121
|
+
|
|
122
|
+
securitySource: client._options.apiKey,
|
|
123
|
+
retryConfig: options?.retries
|
|
124
|
+
|| client._options.retryConfig
|
|
125
|
+
|| { strategy: "none" },
|
|
126
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const requestRes = client._createRequest(context, {
|
|
130
|
+
security: requestSecurity,
|
|
131
|
+
method: "GET",
|
|
132
|
+
baseURL: options?.serverURL,
|
|
133
|
+
path: path,
|
|
134
|
+
headers: headers,
|
|
135
|
+
body: body,
|
|
136
|
+
userAgent: client._options.userAgent,
|
|
137
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
|
|
138
|
+
}, options);
|
|
139
|
+
if (!requestRes.ok) {
|
|
140
|
+
return [requestRes, { status: "invalid" }];
|
|
141
|
+
}
|
|
142
|
+
const req = requestRes.value;
|
|
143
|
+
|
|
144
|
+
const doResult = await client._do(req, {
|
|
145
|
+
context,
|
|
146
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
147
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
|
+
retryConfig: context.retryConfig,
|
|
149
|
+
retryCodes: context.retryCodes,
|
|
150
|
+
});
|
|
151
|
+
if (!doResult.ok) {
|
|
152
|
+
return [doResult, { status: "request-error", request: req }];
|
|
153
|
+
}
|
|
154
|
+
const response = doResult.value;
|
|
155
|
+
|
|
156
|
+
const responseFields = {
|
|
157
|
+
HttpMeta: { Response: response, Request: req },
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const [result] = await M.match<
|
|
161
|
+
components.WebhookSigningSecret,
|
|
162
|
+
| errors.HTTPValidationError
|
|
163
|
+
| MistralError
|
|
164
|
+
| ResponseValidationError
|
|
165
|
+
| ConnectionError
|
|
166
|
+
| RequestAbortedError
|
|
167
|
+
| RequestTimeoutError
|
|
168
|
+
| InvalidRequestError
|
|
169
|
+
| UnexpectedClientError
|
|
170
|
+
| SDKValidationError
|
|
171
|
+
>(
|
|
172
|
+
M.json(200, components.WebhookSigningSecret$inboundSchema),
|
|
173
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
174
|
+
M.fail("4XX"),
|
|
175
|
+
M.fail("5XX"),
|
|
176
|
+
)(response, req, { extraFields: responseFields });
|
|
177
|
+
if (!result.ok) {
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return [result, { status: "complete", request: req, response }];
|
|
182
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { MistralCore } from "../core.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { MistralError } from "../models/errors/mistralerror.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* List Webhooks
|
|
29
|
+
*/
|
|
30
|
+
export function betaWebhooksList(
|
|
31
|
+
client: MistralCore,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
Array<components.Webhook>,
|
|
36
|
+
| MistralError
|
|
37
|
+
| ResponseValidationError
|
|
38
|
+
| ConnectionError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| InvalidRequestError
|
|
42
|
+
| UnexpectedClientError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
return new APIPromise($do(
|
|
47
|
+
client,
|
|
48
|
+
options,
|
|
49
|
+
));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function $do(
|
|
53
|
+
client: MistralCore,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): Promise<
|
|
56
|
+
[
|
|
57
|
+
Result<
|
|
58
|
+
Array<components.Webhook>,
|
|
59
|
+
| MistralError
|
|
60
|
+
| ResponseValidationError
|
|
61
|
+
| ConnectionError
|
|
62
|
+
| RequestAbortedError
|
|
63
|
+
| RequestTimeoutError
|
|
64
|
+
| InvalidRequestError
|
|
65
|
+
| UnexpectedClientError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
>,
|
|
68
|
+
APICall,
|
|
69
|
+
]
|
|
70
|
+
> {
|
|
71
|
+
const path = pathToFunc("/v1/webhooks")();
|
|
72
|
+
|
|
73
|
+
const headers = new Headers(compactMap({
|
|
74
|
+
Accept: "application/json",
|
|
75
|
+
}));
|
|
76
|
+
|
|
77
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
78
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
79
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80
|
+
|
|
81
|
+
const context = {
|
|
82
|
+
options: client._options,
|
|
83
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
84
|
+
operationID: "list_webhooks_v1_webhooks_get",
|
|
85
|
+
oAuth2Scopes: null,
|
|
86
|
+
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
|
|
89
|
+
securitySource: client._options.apiKey,
|
|
90
|
+
retryConfig: options?.retries
|
|
91
|
+
|| client._options.retryConfig
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const requestRes = client._createRequest(context, {
|
|
97
|
+
security: requestSecurity,
|
|
98
|
+
method: "GET",
|
|
99
|
+
baseURL: options?.serverURL,
|
|
100
|
+
path: path,
|
|
101
|
+
headers: headers,
|
|
102
|
+
userAgent: client._options.userAgent,
|
|
103
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
|
|
104
|
+
}, options);
|
|
105
|
+
if (!requestRes.ok) {
|
|
106
|
+
return [requestRes, { status: "invalid" }];
|
|
107
|
+
}
|
|
108
|
+
const req = requestRes.value;
|
|
109
|
+
|
|
110
|
+
const doResult = await client._do(req, {
|
|
111
|
+
context,
|
|
112
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
113
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
114
|
+
retryConfig: context.retryConfig,
|
|
115
|
+
retryCodes: context.retryCodes,
|
|
116
|
+
});
|
|
117
|
+
if (!doResult.ok) {
|
|
118
|
+
return [doResult, { status: "request-error", request: req }];
|
|
119
|
+
}
|
|
120
|
+
const response = doResult.value;
|
|
121
|
+
|
|
122
|
+
const [result] = await M.match<
|
|
123
|
+
Array<components.Webhook>,
|
|
124
|
+
| MistralError
|
|
125
|
+
| ResponseValidationError
|
|
126
|
+
| ConnectionError
|
|
127
|
+
| RequestAbortedError
|
|
128
|
+
| RequestTimeoutError
|
|
129
|
+
| InvalidRequestError
|
|
130
|
+
| UnexpectedClientError
|
|
131
|
+
| SDKValidationError
|
|
132
|
+
>(
|
|
133
|
+
M.json(200, z.array(components.Webhook$inboundSchema)),
|
|
134
|
+
M.fail("4XX"),
|
|
135
|
+
M.fail("5XX"),
|
|
136
|
+
)(response, req);
|
|
137
|
+
if (!result.ok) {
|
|
138
|
+
return [result, { status: "complete", request: req, response }];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return [result, { status: "complete", request: req, response }];
|
|
142
|
+
}
|