@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
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: d2c2f5d9f1c7
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
import { bytesToBase64 } from "./base64.js";
|
|
7
|
-
import { isPlainObject } from "./
|
|
6
|
+
import { isPlainObject } from "./primitives.js";
|
|
8
7
|
|
|
9
8
|
export class EncodingError extends Error {
|
|
10
9
|
constructor(message: string) {
|
|
@@ -13,10 +12,41 @@ export class EncodingError extends Error {
|
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
|
|
15
|
+
export type CharEncoding = "percent" | "percentExceptReserved" | "none";
|
|
16
|
+
|
|
17
|
+
const reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi;
|
|
18
|
+
|
|
19
|
+
function encodeKeyChars(
|
|
20
|
+
v: string,
|
|
21
|
+
charEncoding: CharEncoding | undefined,
|
|
22
|
+
): string {
|
|
23
|
+
return encodeChars(
|
|
24
|
+
v,
|
|
25
|
+
charEncoding === "percentExceptReserved" ? "percent" : charEncoding,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function encodeChars(
|
|
30
|
+
v: string,
|
|
31
|
+
charEncoding: CharEncoding | undefined,
|
|
32
|
+
): string {
|
|
33
|
+
switch (charEncoding) {
|
|
34
|
+
case "percent":
|
|
35
|
+
return encodeURIComponent(v);
|
|
36
|
+
case "percentExceptReserved":
|
|
37
|
+
return encodeURIComponent(v).replace(
|
|
38
|
+
reservedEscapes,
|
|
39
|
+
(m) => decodeURIComponent(m),
|
|
40
|
+
);
|
|
41
|
+
default:
|
|
42
|
+
return v;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
16
46
|
export function encodeMatrix(
|
|
17
47
|
key: string,
|
|
18
48
|
value: unknown,
|
|
19
|
-
options?: { explode?: boolean; charEncoding?:
|
|
49
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
20
50
|
): string | undefined {
|
|
21
51
|
let out = "";
|
|
22
52
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -28,7 +58,7 @@ export function encodeMatrix(
|
|
|
28
58
|
}
|
|
29
59
|
|
|
30
60
|
const encodeString = (v: string) => {
|
|
31
|
-
return options?.charEncoding
|
|
61
|
+
return encodeChars(v, options?.charEncoding);
|
|
32
62
|
};
|
|
33
63
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
34
64
|
|
|
@@ -53,7 +83,7 @@ export function encodeMatrix(
|
|
|
53
83
|
return;
|
|
54
84
|
}
|
|
55
85
|
|
|
56
|
-
const keyPrefix =
|
|
86
|
+
const keyPrefix = encodeKeyChars(pk, options?.charEncoding);
|
|
57
87
|
tmp = `${keyPrefix}=${encValue}`;
|
|
58
88
|
// trim trailing '=' if value was empty
|
|
59
89
|
if (tmp === `${keyPrefix}=`) {
|
|
@@ -74,7 +104,7 @@ export function encodeMatrix(
|
|
|
74
104
|
export function encodeLabel(
|
|
75
105
|
key: string,
|
|
76
106
|
value: unknown,
|
|
77
|
-
options?: { explode?: boolean; charEncoding?:
|
|
107
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
78
108
|
): string | undefined {
|
|
79
109
|
let out = "";
|
|
80
110
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -86,7 +116,7 @@ export function encodeLabel(
|
|
|
86
116
|
}
|
|
87
117
|
|
|
88
118
|
const encodeString = (v: string) => {
|
|
89
|
-
return options?.charEncoding
|
|
119
|
+
return encodeChars(v, options?.charEncoding);
|
|
90
120
|
};
|
|
91
121
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
92
122
|
|
|
@@ -104,7 +134,7 @@ export function encodeLabel(
|
|
|
104
134
|
encValue = mapped?.join("").slice(1);
|
|
105
135
|
} else {
|
|
106
136
|
const k = options?.explode && isPlainObject(value)
|
|
107
|
-
? `${
|
|
137
|
+
? `${encodeKeyChars(pk, options?.charEncoding)}=`
|
|
108
138
|
: "";
|
|
109
139
|
encValue = `${k}${encodeValue(pv)}`;
|
|
110
140
|
}
|
|
@@ -118,14 +148,14 @@ export function encodeLabel(
|
|
|
118
148
|
type FormEncoder = (
|
|
119
149
|
key: string,
|
|
120
150
|
value: unknown,
|
|
121
|
-
options?: { explode?: boolean; charEncoding?:
|
|
151
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
122
152
|
) => string | undefined;
|
|
123
153
|
|
|
124
154
|
function formEncoder(sep: string): FormEncoder {
|
|
125
155
|
return (
|
|
126
156
|
key: string,
|
|
127
157
|
value: unknown,
|
|
128
|
-
options?: { explode?: boolean; charEncoding?:
|
|
158
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
129
159
|
) => {
|
|
130
160
|
let out = "";
|
|
131
161
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -137,7 +167,7 @@ function formEncoder(sep: string): FormEncoder {
|
|
|
137
167
|
}
|
|
138
168
|
|
|
139
169
|
const encodeString = (v: string) => {
|
|
140
|
-
return options?.charEncoding
|
|
170
|
+
return encodeChars(v, options?.charEncoding);
|
|
141
171
|
};
|
|
142
172
|
|
|
143
173
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
@@ -164,7 +194,7 @@ function formEncoder(sep: string): FormEncoder {
|
|
|
164
194
|
return;
|
|
165
195
|
}
|
|
166
196
|
|
|
167
|
-
tmp = `${
|
|
197
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
168
198
|
|
|
169
199
|
// If we end up with the nothing then skip forward
|
|
170
200
|
if (!tmp || tmp === "=") {
|
|
@@ -185,7 +215,7 @@ export const encodePipeDelimited = formEncoder("|");
|
|
|
185
215
|
export function encodeBodyForm(
|
|
186
216
|
key: string,
|
|
187
217
|
value: unknown,
|
|
188
|
-
options?: { explode?: boolean; charEncoding?:
|
|
218
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
189
219
|
): string {
|
|
190
220
|
let out = "";
|
|
191
221
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -193,7 +223,7 @@ export function encodeBodyForm(
|
|
|
193
223
|
: [[key, value]];
|
|
194
224
|
|
|
195
225
|
const encodeString = (v: string) => {
|
|
196
|
-
return options?.charEncoding
|
|
226
|
+
return encodeChars(v, options?.charEncoding);
|
|
197
227
|
};
|
|
198
228
|
|
|
199
229
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
@@ -212,7 +242,7 @@ export function encodeBodyForm(
|
|
|
212
242
|
encValue = `${encodeValue(pv)}`;
|
|
213
243
|
}
|
|
214
244
|
|
|
215
|
-
tmp = `${
|
|
245
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
216
246
|
|
|
217
247
|
// If we end up with the nothing then skip forward
|
|
218
248
|
if (!tmp || tmp === "=") {
|
|
@@ -228,7 +258,7 @@ export function encodeBodyForm(
|
|
|
228
258
|
export function encodeDeepObject(
|
|
229
259
|
key: string,
|
|
230
260
|
value: unknown,
|
|
231
|
-
options?: { charEncoding?:
|
|
261
|
+
options?: { charEncoding?: CharEncoding },
|
|
232
262
|
): string | undefined {
|
|
233
263
|
if (value == null) {
|
|
234
264
|
return;
|
|
@@ -246,7 +276,7 @@ export function encodeDeepObject(
|
|
|
246
276
|
export function encodeDeepObjectObject(
|
|
247
277
|
key: string,
|
|
248
278
|
value: unknown,
|
|
249
|
-
options?: { charEncoding?:
|
|
279
|
+
options?: { charEncoding?: CharEncoding },
|
|
250
280
|
): string | undefined {
|
|
251
281
|
if (value == null) {
|
|
252
282
|
return;
|
|
@@ -255,7 +285,7 @@ export function encodeDeepObjectObject(
|
|
|
255
285
|
let out = "";
|
|
256
286
|
|
|
257
287
|
const encodeString = (v: string) => {
|
|
258
|
-
return options?.charEncoding
|
|
288
|
+
return encodeChars(v, options?.charEncoding);
|
|
259
289
|
};
|
|
260
290
|
|
|
261
291
|
if (!isPlainObject(value)) {
|
|
@@ -279,7 +309,9 @@ export function encodeDeepObjectObject(
|
|
|
279
309
|
|
|
280
310
|
const pairs: unknown[] = Array.isArray(cv) ? cv : [cv];
|
|
281
311
|
const encoded = mapDefined(pairs, (v) => {
|
|
282
|
-
return `${
|
|
312
|
+
return `${encodeKeyChars(pk, options?.charEncoding)}=${
|
|
313
|
+
encodeString(serializeValue(v))
|
|
314
|
+
}`;
|
|
283
315
|
})?.join("&");
|
|
284
316
|
|
|
285
317
|
out += encoded == null ? "" : `&${encoded}`;
|
|
@@ -291,25 +323,27 @@ export function encodeDeepObjectObject(
|
|
|
291
323
|
export function encodeJSON(
|
|
292
324
|
key: string,
|
|
293
325
|
value: unknown,
|
|
294
|
-
options?: { explode?: boolean; charEncoding?:
|
|
326
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
295
327
|
): string | undefined {
|
|
296
328
|
if (typeof value === "undefined") {
|
|
297
329
|
return;
|
|
298
330
|
}
|
|
299
331
|
|
|
300
332
|
const encodeString = (v: string) => {
|
|
301
|
-
return options?.charEncoding
|
|
333
|
+
return encodeChars(v, options?.charEncoding);
|
|
302
334
|
};
|
|
303
335
|
|
|
304
336
|
const encVal = encodeString(JSON.stringify(value, jsonReplacer));
|
|
305
337
|
|
|
306
|
-
return options?.explode
|
|
338
|
+
return options?.explode
|
|
339
|
+
? encVal
|
|
340
|
+
: `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`;
|
|
307
341
|
}
|
|
308
342
|
|
|
309
343
|
export const encodeSimple = (
|
|
310
344
|
key: string,
|
|
311
345
|
value: unknown,
|
|
312
|
-
options?: { explode?: boolean; charEncoding?:
|
|
346
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
313
347
|
): string | undefined => {
|
|
314
348
|
let out = "";
|
|
315
349
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -321,7 +355,7 @@ export const encodeSimple = (
|
|
|
321
355
|
}
|
|
322
356
|
|
|
323
357
|
const encodeString = (v: string) => {
|
|
324
|
-
return options?.charEncoding
|
|
358
|
+
return encodeChars(v, options?.charEncoding);
|
|
325
359
|
};
|
|
326
360
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
327
361
|
|
|
@@ -427,7 +461,7 @@ export function queryJoin(...args: (string | undefined)[]): string {
|
|
|
427
461
|
|
|
428
462
|
type QueryEncoderOptions = {
|
|
429
463
|
explode?: boolean;
|
|
430
|
-
charEncoding?:
|
|
464
|
+
charEncoding?: CharEncoding;
|
|
431
465
|
allowEmptyValue?: string[];
|
|
432
466
|
};
|
|
433
467
|
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 205d20a788e0
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
5
|
+
// Some environments' type definitions do not include ReadableStream's async
|
|
6
|
+
// iterator, even though the runtime supports it or this class polyfills it.
|
|
7
|
+
// Declare the method here so Stream can override it and preserve T in for-await.
|
|
9
8
|
declare global {
|
|
10
9
|
interface ReadableStream<R = any> {
|
|
11
|
-
[Symbol.asyncIterator]():
|
|
10
|
+
[Symbol.asyncIterator](): {
|
|
11
|
+
next(): Promise<IteratorResult<R, undefined>>;
|
|
12
|
+
throw?(e?: unknown): Promise<IteratorResult<R, undefined>>;
|
|
13
|
+
return?(): Promise<IteratorResult<R, undefined>>;
|
|
14
|
+
[Symbol.asyncIterator](): any;
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
|
|
@@ -27,22 +31,45 @@ export class EventStream<T extends SseMessage<unknown>>
|
|
|
27
31
|
opts?: { dataRequired?: boolean },
|
|
28
32
|
) {
|
|
29
33
|
const upstream = responseBody.getReader();
|
|
30
|
-
let buffer: Uint8Array = new Uint8Array();
|
|
34
|
+
let buffer: Uint8Array = new Uint8Array(4096);
|
|
35
|
+
let bufferLen = 0;
|
|
36
|
+
let searchStart = 0;
|
|
31
37
|
const state = { eventId: undefined as string | undefined };
|
|
32
38
|
const dataRequired = opts?.dataRequired ?? true;
|
|
33
39
|
super({
|
|
34
40
|
async pull(downstream) {
|
|
35
41
|
try {
|
|
36
42
|
while (true) {
|
|
37
|
-
const match = findBoundary(buffer);
|
|
43
|
+
const match = findBoundary(buffer, bufferLen, searchStart);
|
|
38
44
|
if (!match) {
|
|
45
|
+
// Bytes before the trailing MAX_BOUNDARY_LEN-1 were already
|
|
46
|
+
// scanned with full lookahead and cannot start a boundary even
|
|
47
|
+
// once more data arrives, so the next scan can skip them.
|
|
48
|
+
searchStart = Math.max(0, bufferLen - MAX_BOUNDARY_LEN + 1);
|
|
39
49
|
const chunk = await upstream.read();
|
|
40
50
|
if (chunk.done) return downstream.close();
|
|
41
|
-
|
|
51
|
+
if (bufferLen + chunk.value.length > buffer.length) {
|
|
52
|
+
const grown = new Uint8Array(
|
|
53
|
+
Math.max(buffer.length * 2, bufferLen + chunk.value.length),
|
|
54
|
+
);
|
|
55
|
+
grown.set(buffer.subarray(0, bufferLen));
|
|
56
|
+
buffer = grown;
|
|
57
|
+
}
|
|
58
|
+
buffer.set(chunk.value, bufferLen);
|
|
59
|
+
bufferLen += chunk.value.length;
|
|
42
60
|
continue;
|
|
43
61
|
}
|
|
44
62
|
const message = buffer.slice(0, match.index);
|
|
45
|
-
buffer
|
|
63
|
+
buffer.copyWithin(0, match.index + match.length, bufferLen);
|
|
64
|
+
bufferLen -= match.index + match.length;
|
|
65
|
+
if (buffer.length > 4096 && bufferLen <= buffer.length >> 2) {
|
|
66
|
+
// Release oversized capacity retained after an unusually large
|
|
67
|
+
// event so long-lived streams do not hold peak memory.
|
|
68
|
+
const shrunk = new Uint8Array(Math.max(4096, bufferLen * 2));
|
|
69
|
+
shrunk.set(buffer.subarray(0, bufferLen));
|
|
70
|
+
buffer = shrunk;
|
|
71
|
+
}
|
|
72
|
+
searchStart = 0;
|
|
46
73
|
const item = parseMessage(message, parse, state, dataRequired);
|
|
47
74
|
if (item && !item.done) return downstream.enqueue(item.value);
|
|
48
75
|
if (item?.done) {
|
|
@@ -59,8 +86,11 @@ export class EventStream<T extends SseMessage<unknown>>
|
|
|
59
86
|
});
|
|
60
87
|
}
|
|
61
88
|
|
|
62
|
-
//
|
|
63
|
-
|
|
89
|
+
// Use ReadableStream's iterator return type instead of `any` so stream events
|
|
90
|
+
// keep their generated type in for-await loops.
|
|
91
|
+
override [Symbol.asyncIterator](): ReturnType<
|
|
92
|
+
ReadableStream<T>[typeof Symbol.asyncIterator]
|
|
93
|
+
> {
|
|
64
94
|
const fn = (ReadableStream.prototype as any)[Symbol.asyncIterator];
|
|
65
95
|
if (typeof fn === "function") return fn.call(this);
|
|
66
96
|
const reader = this.getReader();
|
|
@@ -86,17 +116,10 @@ export class EventStream<T extends SseMessage<unknown>>
|
|
|
86
116
|
[Symbol.asyncIterator]() {
|
|
87
117
|
return this;
|
|
88
118
|
},
|
|
89
|
-
}
|
|
119
|
+
} as ReturnType<ReadableStream<T>[typeof Symbol.asyncIterator]>;
|
|
90
120
|
}
|
|
91
121
|
}
|
|
92
122
|
|
|
93
|
-
function concatBuffer(a: Uint8Array, b: Uint8Array): Uint8Array {
|
|
94
|
-
const c = new Uint8Array(a.length + b.length);
|
|
95
|
-
c.set(a, 0);
|
|
96
|
-
c.set(b, a.length);
|
|
97
|
-
return c;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
123
|
const CR = 13;
|
|
101
124
|
const LF = 10;
|
|
102
125
|
const BOUNDARIES = [
|
|
@@ -109,12 +132,14 @@ const BOUNDARIES = [
|
|
|
109
132
|
[LF, CR], // \n\r
|
|
110
133
|
[LF, LF], // \n\n
|
|
111
134
|
];
|
|
135
|
+
const MAX_BOUNDARY_LEN = BOUNDARIES.reduce((m, b) => Math.max(m, b.length), 0);
|
|
112
136
|
|
|
113
137
|
function findBoundary(
|
|
114
138
|
buf: Uint8Array,
|
|
139
|
+
len: number,
|
|
140
|
+
from: number,
|
|
115
141
|
): { index: number; length: number } | null {
|
|
116
|
-
|
|
117
|
-
for (let i = 0; i < len; i++) {
|
|
142
|
+
for (let i = from; i < len; i++) {
|
|
118
143
|
if (buf[i] !== CR && buf[i] !== LF) continue;
|
|
119
144
|
for (const boundary of BOUNDARIES) {
|
|
120
145
|
if (i + boundary.length > len) continue;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 75ccecdb8ca8
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
export type Fetcher = (
|
|
@@ -46,8 +45,10 @@ export class HTTPClient {
|
|
|
46
45
|
private requestHooks: BeforeRequestHook[] = [];
|
|
47
46
|
private requestErrorHooks: RequestErrorHook[] = [];
|
|
48
47
|
private responseHooks: ResponseHook[] = [];
|
|
48
|
+
private options: HTTPClientOptions;
|
|
49
49
|
|
|
50
|
-
constructor(
|
|
50
|
+
constructor(options: HTTPClientOptions = {}) {
|
|
51
|
+
this.options = options;
|
|
51
52
|
this.fetcher = options.fetcher || DEFAULT_FETCHER;
|
|
52
53
|
}
|
|
53
54
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 9ecd10b48ebe
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
6
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
8
7
|
import { ERR, OK, Result } from "../types/fp.js";
|
|
9
8
|
import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js";
|
|
10
|
-
import { isPlainObject } from "./
|
|
9
|
+
import { isPlainObject } from "./primitives.js";
|
|
11
10
|
|
|
12
11
|
export type Encoding =
|
|
13
12
|
| "jsonl"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 5453293e6e64
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
class InvariantError extends Error {
|
|
@@ -149,3 +148,19 @@ export function allRequired<V extends Record<string, unknown>>(
|
|
|
149
148
|
|
|
150
149
|
return v as ReturnType<typeof allRequired<V>>;
|
|
151
150
|
}
|
|
151
|
+
|
|
152
|
+
export function isPlainObject(
|
|
153
|
+
value: unknown,
|
|
154
|
+
): value is Record<string, unknown> {
|
|
155
|
+
if (value === null || typeof value !== "object") return false;
|
|
156
|
+
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
157
|
+
const proto = Object.getPrototypeOf(value);
|
|
158
|
+
if (proto === null || proto === Object.prototype) return true;
|
|
159
|
+
// cross-realm plain objects (vm contexts, iframes) inherit from a
|
|
160
|
+
// different realm's Object.prototype, which itself has a null prototype
|
|
161
|
+
try {
|
|
162
|
+
return Object.getPrototypeOf(proto) === null;
|
|
163
|
+
} catch {
|
|
164
|
+
return false;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 7761f1f62f9d
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
import { isConnectionError, isTimeoutError } from "./http.js";
|
|
@@ -195,6 +194,14 @@ async function retryBackoff(
|
|
|
195
194
|
}
|
|
196
195
|
|
|
197
196
|
function retryIntervalFromResponse(res: Response): number {
|
|
197
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
198
|
+
if (retryAfterMsVal) {
|
|
199
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
200
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
201
|
+
return parsedMs;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
198
205
|
const retryVal = res.headers.get("retry-after") || "";
|
|
199
206
|
if (!retryVal) {
|
|
200
207
|
return 0;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 04d516044972
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
import { SDKHooks } from "../hooks/hooks.js";
|
|
@@ -24,6 +23,7 @@ import {
|
|
|
24
23
|
matchContentType,
|
|
25
24
|
} from "./http.js";
|
|
26
25
|
import { Logger } from "./logger.js";
|
|
26
|
+
import { combineSignals } from "./primitives.js";
|
|
27
27
|
import { retry, RetryConfig } from "./retries.js";
|
|
28
28
|
import { SecurityState } from "./security.js";
|
|
29
29
|
|
|
@@ -129,27 +129,55 @@ export class ClientSDK {
|
|
|
129
129
|
if (path) {
|
|
130
130
|
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
131
131
|
reqURL = new URL(path, baseURL);
|
|
132
|
+
if (!reqURL.search && baseURL.search) {
|
|
133
|
+
reqURL.search = baseURL.search;
|
|
134
|
+
}
|
|
132
135
|
} else {
|
|
133
136
|
reqURL = baseURL;
|
|
134
137
|
}
|
|
135
138
|
reqURL.hash = "";
|
|
136
139
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
if (typeof q !== "undefined") {
|
|
143
|
-
secQuery.push(q);
|
|
140
|
+
// Appends already-encoded query pairs to a query string, replacing any
|
|
141
|
+
// existing pairs with the same key so later sources take precedence.
|
|
142
|
+
const mergeQuery = (current: string, additions: string): string => {
|
|
143
|
+
if (!additions) {
|
|
144
|
+
return current;
|
|
144
145
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
const additionKeys = new Set(
|
|
147
|
+
additions
|
|
148
|
+
.split("&")
|
|
149
|
+
.filter((pair) => pair !== "")
|
|
150
|
+
.map((pair) => pair.split("=")[0] ?? ""),
|
|
151
|
+
);
|
|
152
|
+
const kept = current.split("&").filter((pair) => {
|
|
153
|
+
return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
|
|
154
|
+
});
|
|
155
|
+
return [...kept, additions].join("&");
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const encodeQueryRecord = (record: Record<string, unknown>): string => {
|
|
159
|
+
return Object.entries(record)
|
|
160
|
+
.map(([k, v]) => {
|
|
161
|
+
if (v == null) {
|
|
162
|
+
return undefined;
|
|
163
|
+
}
|
|
164
|
+
const value = v;
|
|
165
|
+
return encodeForm(k, value, {
|
|
166
|
+
explode: Array.isArray(value),
|
|
167
|
+
charEncoding: "percent",
|
|
168
|
+
});
|
|
169
|
+
})
|
|
170
|
+
.filter((pair): pair is string => typeof pair !== "undefined")
|
|
171
|
+
.join("&");
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const finalQuery = [
|
|
175
|
+
query || "",
|
|
176
|
+
encodeQueryRecord(security?.queryParams || {}),
|
|
177
|
+
].reduce(mergeQuery, reqURL.search.slice(1));
|
|
149
178
|
|
|
150
179
|
if (finalQuery) {
|
|
151
|
-
|
|
152
|
-
reqURL.search = `?${q}`;
|
|
180
|
+
reqURL.search = `?${finalQuery}`;
|
|
153
181
|
}
|
|
154
182
|
|
|
155
183
|
const headers = new Headers(opHeaders);
|
|
@@ -195,9 +223,8 @@ export class ClientSDK {
|
|
|
195
223
|
...options?.fetchOptions,
|
|
196
224
|
...options,
|
|
197
225
|
};
|
|
198
|
-
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
199
|
-
|
|
200
|
-
fetchOptions.signal = timeoutSignal;
|
|
226
|
+
if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
|
|
227
|
+
context.timeoutMs = conf.timeoutMs;
|
|
201
228
|
}
|
|
202
229
|
|
|
203
230
|
if (conf.body instanceof ReadableStream) {
|
|
@@ -244,10 +271,19 @@ export class ClientSDK {
|
|
|
244
271
|
>
|
|
245
272
|
> {
|
|
246
273
|
const { context, isErrorStatusCode } = options;
|
|
274
|
+
const timeoutMs = context.timeoutMs;
|
|
247
275
|
|
|
248
276
|
return retry(
|
|
249
277
|
async () => {
|
|
250
|
-
const
|
|
278
|
+
const cloned = request.clone();
|
|
279
|
+
let attempt = cloned;
|
|
280
|
+
if (timeoutMs != null && timeoutMs > 0) {
|
|
281
|
+
const timeoutSignal = AbortSignal.timeout(timeoutMs);
|
|
282
|
+
const combined = combineSignals(cloned.signal, timeoutSignal)
|
|
283
|
+
?? timeoutSignal;
|
|
284
|
+
attempt = new Request(cloned, { signal: combined });
|
|
285
|
+
}
|
|
286
|
+
const req = await this.#hooks.beforeRequest(context, attempt);
|
|
251
287
|
await logRequest(this.#logger, req).catch((e) =>
|
|
252
288
|
this.#logger?.log("Failed to log request:", e)
|
|
253
289
|
);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: f141fe3b5267
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
import * as components from "../models/components/index.js";
|
|
@@ -13,17 +12,22 @@ type OAuth2PasswordFlow = {
|
|
|
13
12
|
tokenURL: string;
|
|
14
13
|
};
|
|
15
14
|
|
|
16
|
-
export
|
|
17
|
-
Incomplete
|
|
18
|
-
UnrecognisedSecurityType
|
|
19
|
-
}
|
|
15
|
+
export const SecurityErrorCode = {
|
|
16
|
+
Incomplete: "incomplete",
|
|
17
|
+
UnrecognisedSecurityType: "unrecognized_security_type",
|
|
18
|
+
} as const;
|
|
19
|
+
export type SecurityErrorCode =
|
|
20
|
+
(typeof SecurityErrorCode)[keyof typeof SecurityErrorCode];
|
|
20
21
|
|
|
21
22
|
export class SecurityError extends Error {
|
|
23
|
+
public code: SecurityErrorCode;
|
|
24
|
+
|
|
22
25
|
constructor(
|
|
23
|
-
|
|
26
|
+
code: SecurityErrorCode,
|
|
24
27
|
message: string,
|
|
25
28
|
) {
|
|
26
29
|
super(message);
|
|
30
|
+
this.code = code;
|
|
27
31
|
this.name = "SecurityError";
|
|
28
32
|
}
|
|
29
33
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: d426535f2d54
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
import * as z from "zod/v4";
|
|
@@ -12,6 +11,7 @@ export const BuiltInConnectors = {
|
|
|
12
11
|
CodeInterpreter: "code_interpreter",
|
|
13
12
|
ImageGeneration: "image_generation",
|
|
14
13
|
DocumentLibrary: "document_library",
|
|
14
|
+
MistralMcp: "mistral_mcp",
|
|
15
15
|
} as const;
|
|
16
16
|
export type BuiltInConnectors = ClosedEnum<typeof BuiltInConnectors>;
|
|
17
17
|
|