@mistralai/mistralai 2.6.1 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/esm/funcs/betaUsersListOrganizations.d.ts +23 -0
- package/esm/funcs/betaUsersListOrganizations.d.ts.map +1 -0
- package/esm/funcs/betaUsersListOrganizations.js +128 -0
- package/esm/funcs/betaUsersListOrganizations.js.map +1 -0
- package/esm/funcs/betaUsersListWorkspaces.d.ts +21 -0
- package/esm/funcs/betaUsersListWorkspaces.d.ts.map +1 -0
- package/esm/funcs/betaUsersListWorkspaces.js +126 -0
- package/esm/funcs/betaUsersListWorkspaces.js.map +1 -0
- package/esm/funcs/realtimeSessionsCreate.d.ts +16 -0
- package/esm/funcs/realtimeSessionsCreate.d.ts.map +1 -0
- package/esm/funcs/realtimeSessionsCreate.js +82 -0
- package/esm/funcs/realtimeSessionsCreate.js.map +1 -0
- package/esm/funcs/workflowsDeploymentsGetDeployment.js +5 -1
- package/esm/funcs/workflowsDeploymentsGetDeployment.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/activitytaskcompletedresponse.d.ts +12 -0
- package/esm/models/components/activitytaskcompletedresponse.d.ts.map +1 -1
- package/esm/models/components/activitytaskcompletedresponse.js +6 -0
- package/esm/models/components/activitytaskcompletedresponse.js.map +1 -1
- package/esm/models/components/activitytaskfailedresponse.d.ts +12 -0
- package/esm/models/components/activitytaskfailedresponse.d.ts.map +1 -1
- package/esm/models/components/activitytaskfailedresponse.js +6 -0
- package/esm/models/components/activitytaskfailedresponse.js.map +1 -1
- package/esm/models/components/activitytaskretryingresponse.d.ts +12 -0
- package/esm/models/components/activitytaskretryingresponse.d.ts.map +1 -1
- package/esm/models/components/activitytaskretryingresponse.js +6 -0
- package/esm/models/components/activitytaskretryingresponse.js.map +1 -1
- package/esm/models/components/activitytaskstartedresponse.d.ts +12 -0
- package/esm/models/components/activitytaskstartedresponse.d.ts.map +1 -1
- package/esm/models/components/activitytaskstartedresponse.js +6 -0
- package/esm/models/components/activitytaskstartedresponse.js.map +1 -1
- package/esm/models/components/agentscompletionrequest.d.ts +6 -0
- package/esm/models/components/agentscompletionrequest.d.ts.map +1 -1
- package/esm/models/components/agentscompletionrequest.js +3 -0
- package/esm/models/components/agentscompletionrequest.js.map +1 -1
- package/esm/models/components/agentscompletionstreamrequest.d.ts +6 -0
- package/esm/models/components/agentscompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/agentscompletionstreamrequest.js +3 -0
- package/esm/models/components/agentscompletionstreamrequest.js.map +1 -1
- package/esm/models/components/authdirection.d.ts +10 -0
- package/esm/models/components/authdirection.d.ts.map +1 -0
- package/esm/models/components/authdirection.js +13 -0
- package/esm/models/components/authdirection.js.map +1 -0
- package/esm/models/components/authenticationmethodcreateorupdaterequest.d.ts +57 -0
- package/esm/models/components/authenticationmethodcreateorupdaterequest.d.ts.map +1 -0
- package/esm/models/components/authenticationmethodcreateorupdaterequest.js +50 -0
- package/esm/models/components/authenticationmethodcreateorupdaterequest.js.map +1 -0
- package/esm/models/components/chatcompletionrequest.d.ts +6 -0
- package/esm/models/components/chatcompletionrequest.d.ts.map +1 -1
- package/esm/models/components/chatcompletionrequest.js +3 -0
- package/esm/models/components/chatcompletionrequest.js.map +1 -1
- package/esm/models/components/chatcompletionstreamrequest.d.ts +6 -0
- package/esm/models/components/chatcompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/chatcompletionstreamrequest.js +3 -0
- package/esm/models/components/chatcompletionstreamrequest.js.map +1 -1
- package/esm/models/components/clientsecret.d.ts +11 -0
- package/esm/models/components/clientsecret.d.ts.map +1 -0
- package/esm/models/components/clientsecret.js +21 -0
- package/esm/models/components/clientsecret.js.map +1 -0
- package/esm/models/components/clientsessionpurpose.d.ts +15 -0
- package/esm/models/components/clientsessionpurpose.d.ts.map +1 -0
- package/esm/models/components/clientsessionpurpose.js +14 -0
- package/esm/models/components/clientsessionpurpose.js.map +1 -0
- package/esm/models/components/connectorauthenticationheader.d.ts +11 -2
- package/esm/models/components/connectorauthenticationheader.d.ts.map +1 -1
- package/esm/models/components/connectorauthenticationheader.js +14 -0
- package/esm/models/components/connectorauthenticationheader.js.map +1 -1
- package/esm/models/components/createconnectorrequest.d.ts +15 -0
- package/esm/models/components/createconnectorrequest.d.ts.map +1 -1
- package/esm/models/components/createconnectorrequest.js +5 -0
- package/esm/models/components/createconnectorrequest.js.map +1 -1
- package/esm/models/components/createingestionpipelineconfigurationrequest.d.ts +3 -0
- package/esm/models/components/createingestionpipelineconfigurationrequest.d.ts.map +1 -1
- package/esm/models/components/createingestionpipelineconfigurationrequest.js +3 -0
- package/esm/models/components/createingestionpipelineconfigurationrequest.js.map +1 -1
- package/esm/models/components/createrealtimesessionrequest.d.ts +17 -0
- package/esm/models/components/createrealtimesessionrequest.d.ts.map +1 -0
- package/esm/models/components/createrealtimesessionrequest.js +14 -0
- package/esm/models/components/createrealtimesessionrequest.js.map +1 -0
- package/esm/models/components/createrealtimesessionresponse.d.ts +18 -0
- package/esm/models/components/createrealtimesessionresponse.d.ts.map +1 -0
- package/esm/models/components/createrealtimesessionresponse.js +25 -0
- package/esm/models/components/createrealtimesessionresponse.js.map +1 -0
- package/esm/models/components/customtaskcanceledresponse.d.ts +12 -0
- package/esm/models/components/customtaskcanceledresponse.d.ts.map +1 -1
- package/esm/models/components/customtaskcanceledresponse.js +6 -0
- package/esm/models/components/customtaskcanceledresponse.js.map +1 -1
- package/esm/models/components/customtaskcompletedresponse.d.ts +12 -0
- package/esm/models/components/customtaskcompletedresponse.d.ts.map +1 -1
- package/esm/models/components/customtaskcompletedresponse.js +6 -0
- package/esm/models/components/customtaskcompletedresponse.js.map +1 -1
- package/esm/models/components/customtaskfailedresponse.d.ts +12 -0
- package/esm/models/components/customtaskfailedresponse.d.ts.map +1 -1
- package/esm/models/components/customtaskfailedresponse.js +6 -0
- package/esm/models/components/customtaskfailedresponse.js.map +1 -1
- package/esm/models/components/customtaskinprogressresponse.d.ts +12 -0
- package/esm/models/components/customtaskinprogressresponse.d.ts.map +1 -1
- package/esm/models/components/customtaskinprogressresponse.js +6 -0
- package/esm/models/components/customtaskinprogressresponse.js.map +1 -1
- package/esm/models/components/customtaskstartedresponse.d.ts +12 -0
- package/esm/models/components/customtaskstartedresponse.d.ts.map +1 -1
- package/esm/models/components/customtaskstartedresponse.js +6 -0
- package/esm/models/components/customtaskstartedresponse.js.map +1 -1
- package/esm/models/components/customtasktimedoutresponse.d.ts +12 -0
- package/esm/models/components/customtasktimedoutresponse.d.ts.map +1 -1
- package/esm/models/components/customtasktimedoutresponse.js +6 -0
- package/esm/models/components/customtasktimedoutresponse.js.map +1 -1
- package/esm/models/components/deploymentdetailresponse.d.ts +2 -0
- package/esm/models/components/deploymentdetailresponse.d.ts.map +1 -1
- package/esm/models/components/deploymentdetailresponse.js.map +1 -1
- package/esm/models/components/deploymentresponse.d.ts +2 -0
- package/esm/models/components/deploymentresponse.d.ts.map +1 -1
- package/esm/models/components/deploymentresponse.js.map +1 -1
- package/esm/models/components/deploymentworkerspecresponse.d.ts +5 -0
- package/esm/models/components/deploymentworkerspecresponse.d.ts.map +1 -1
- package/esm/models/components/deploymentworkerspecresponse.js +2 -0
- package/esm/models/components/deploymentworkerspecresponse.js.map +1 -1
- package/esm/models/components/extendedoauthservermetadata.d.ts +10 -0
- package/esm/models/components/extendedoauthservermetadata.d.ts.map +1 -1
- package/esm/models/components/extendedoauthservermetadata.js +67 -0
- package/esm/models/components/extendedoauthservermetadata.js.map +1 -1
- package/esm/models/components/gitcommitauthor.d.ts +12 -0
- package/esm/models/components/gitcommitauthor.d.ts.map +1 -0
- package/esm/models/components/gitcommitauthor.js +21 -0
- package/esm/models/components/gitcommitauthor.js.map +1 -0
- package/esm/models/components/gitcommitmetadata.d.ts +14 -0
- package/esm/models/components/gitcommitmetadata.d.ts.map +1 -0
- package/esm/models/components/gitcommitmetadata.js +23 -0
- package/esm/models/components/gitcommitmetadata.js.map +1 -0
- package/esm/models/components/globalheadervalue.d.ts +26 -0
- package/esm/models/components/globalheadervalue.d.ts.map +1 -0
- package/esm/models/components/globalheadervalue.js +32 -0
- package/esm/models/components/globalheadervalue.js.map +1 -0
- package/esm/models/components/inboundauthenticationtype.d.ts +9 -0
- package/esm/models/components/inboundauthenticationtype.d.ts.map +1 -0
- package/esm/models/components/inboundauthenticationtype.js +11 -0
- package/esm/models/components/inboundauthenticationtype.js.map +1 -0
- package/esm/models/components/index.d.ts +18 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +18 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/ingestionpipelinetargetindexref.d.ts +14 -0
- package/esm/models/components/ingestionpipelinetargetindexref.d.ts.map +1 -0
- package/esm/models/components/ingestionpipelinetargetindexref.js +14 -0
- package/esm/models/components/ingestionpipelinetargetindexref.js.map +1 -0
- package/esm/models/components/listorganizationsresponse.d.ts +14 -0
- package/esm/models/components/listorganizationsresponse.d.ts.map +1 -0
- package/esm/models/components/listorganizationsresponse.js +15 -0
- package/esm/models/components/listorganizationsresponse.js.map +1 -0
- package/esm/models/components/listworkspacesresponse.d.ts +14 -0
- package/esm/models/components/listworkspacesresponse.d.ts.map +1 -0
- package/esm/models/components/listworkspacesresponse.js +15 -0
- package/esm/models/components/listworkspacesresponse.js.map +1 -0
- package/esm/models/components/oauth2metadatasecrets.d.ts +27 -0
- package/esm/models/components/oauth2metadatasecrets.d.ts.map +1 -0
- package/esm/models/components/oauth2metadatasecrets.js +24 -0
- package/esm/models/components/oauth2metadatasecrets.js.map +1 -0
- package/esm/models/components/oauthmetadatasource.d.ts +18 -0
- package/esm/models/components/oauthmetadatasource.d.ts.map +1 -0
- package/esm/models/components/oauthmetadatasource.js +17 -0
- package/esm/models/components/oauthmetadatasource.js.map +1 -0
- 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/publicauthenticationmethod.d.ts +6 -0
- package/esm/models/components/publicauthenticationmethod.d.ts.map +1 -1
- package/esm/models/components/publicauthenticationmethod.js +8 -0
- package/esm/models/components/publicauthenticationmethod.js.map +1 -1
- package/esm/models/components/requestedservicetier.d.ts +10 -0
- package/esm/models/components/requestedservicetier.d.ts.map +1 -0
- package/esm/models/components/requestedservicetier.js +12 -0
- package/esm/models/components/requestedservicetier.js.map +1 -0
- package/esm/models/components/updateconnectorrequest.d.ts +4 -13
- package/esm/models/components/updateconnectorrequest.d.ts.map +1 -1
- package/esm/models/components/updateconnectorrequest.js +3 -4
- package/esm/models/components/updateconnectorrequest.js.map +1 -1
- package/esm/models/components/usageinfo.d.ts +5 -0
- package/esm/models/components/usageinfo.d.ts.map +1 -1
- package/esm/models/components/usageinfo.js +4 -0
- package/esm/models/components/usageinfo.js.map +1 -1
- package/esm/models/components/userorganization.d.ts +17 -0
- package/esm/models/components/userorganization.d.ts.map +1 -0
- package/esm/models/components/userorganization.js +15 -0
- package/esm/models/components/userorganization.js.map +1 -0
- package/esm/models/components/userworkspace.d.ts +21 -0
- package/esm/models/components/userworkspace.d.ts.map +1 -0
- package/esm/models/components/userworkspace.js +22 -0
- package/esm/models/components/userworkspace.js.map +1 -0
- package/esm/models/components/workflowexecutioncanceledattributes.d.ts +4 -0
- package/esm/models/components/workflowexecutioncanceledattributes.d.ts.map +1 -1
- package/esm/models/components/workflowexecutioncanceledattributes.js +1 -0
- package/esm/models/components/workflowexecutioncanceledattributes.js.map +1 -1
- package/esm/models/components/workflowexecutioncanceledresponse.d.ts +12 -0
- package/esm/models/components/workflowexecutioncanceledresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutioncanceledresponse.js +6 -0
- package/esm/models/components/workflowexecutioncanceledresponse.js.map +1 -1
- package/esm/models/components/workflowexecutioncompletedattributesresponse.d.ts +4 -0
- package/esm/models/components/workflowexecutioncompletedattributesresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutioncompletedattributesresponse.js +1 -0
- package/esm/models/components/workflowexecutioncompletedattributesresponse.js.map +1 -1
- package/esm/models/components/workflowexecutioncompletedresponse.d.ts +12 -0
- package/esm/models/components/workflowexecutioncompletedresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutioncompletedresponse.js +6 -0
- package/esm/models/components/workflowexecutioncompletedresponse.js.map +1 -1
- package/esm/models/components/workflowexecutioncontinuedasnewresponse.d.ts +12 -0
- package/esm/models/components/workflowexecutioncontinuedasnewresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutioncontinuedasnewresponse.js +6 -0
- package/esm/models/components/workflowexecutioncontinuedasnewresponse.js.map +1 -1
- package/esm/models/components/workflowexecutionfailedattributes.d.ts +4 -0
- package/esm/models/components/workflowexecutionfailedattributes.d.ts.map +1 -1
- package/esm/models/components/workflowexecutionfailedattributes.js +1 -0
- package/esm/models/components/workflowexecutionfailedattributes.js.map +1 -1
- package/esm/models/components/workflowexecutionfailedresponse.d.ts +12 -0
- package/esm/models/components/workflowexecutionfailedresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutionfailedresponse.js +6 -0
- package/esm/models/components/workflowexecutionfailedresponse.js.map +1 -1
- package/esm/models/components/workflowexecutionstartedattributesresponse.d.ts +4 -0
- package/esm/models/components/workflowexecutionstartedattributesresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutionstartedattributesresponse.js +1 -0
- package/esm/models/components/workflowexecutionstartedattributesresponse.js.map +1 -1
- package/esm/models/components/workflowexecutionstartedresponse.d.ts +12 -0
- package/esm/models/components/workflowexecutionstartedresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutionstartedresponse.js +6 -0
- package/esm/models/components/workflowexecutionstartedresponse.js.map +1 -1
- package/esm/models/components/workflowtaskfailedresponse.d.ts +12 -0
- package/esm/models/components/workflowtaskfailedresponse.d.ts.map +1 -1
- package/esm/models/components/workflowtaskfailedresponse.js +6 -0
- package/esm/models/components/workflowtaskfailedresponse.js.map +1 -1
- package/esm/models/components/workflowtasktimedoutresponse.d.ts +12 -0
- package/esm/models/components/workflowtasktimedoutresponse.d.ts.map +1 -1
- package/esm/models/components/workflowtasktimedoutresponse.js +6 -0
- package/esm/models/components/workflowtasktimedoutresponse.js.map +1 -1
- package/esm/models/operations/createclientsessionv1clientsessionspost.d.ts +9 -0
- package/esm/models/operations/createclientsessionv1clientsessionspost.d.ts.map +1 -0
- package/esm/models/operations/createclientsessionv1clientsessionspost.js +11 -0
- package/esm/models/operations/createclientsessionv1clientsessionspost.js.map +1 -0
- package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.d.ts +5 -0
- package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.d.ts.map +1 -1
- package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.js +6 -0
- package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.js.map +1 -1
- package/esm/models/operations/index.d.ts +3 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +3 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/usersapilistorganizations.d.ts +39 -0
- package/esm/models/operations/usersapilistorganizations.d.ts.map +1 -0
- package/esm/models/operations/usersapilistorganizations.js +39 -0
- package/esm/models/operations/usersapilistorganizations.js.map +1 -0
- package/esm/models/operations/usersapilistworkspaces.d.ts +44 -0
- package/esm/models/operations/usersapilistworkspaces.d.ts.map +1 -0
- package/esm/models/operations/usersapilistworkspaces.js +44 -0
- package/esm/models/operations/usersapilistworkspaces.js.map +1 -0
- package/esm/sdk/realtime.d.ts +7 -0
- package/esm/sdk/realtime.d.ts.map +1 -0
- package/esm/sdk/realtime.js +13 -0
- package/esm/sdk/realtime.js.map +1 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/sessions.d.ts +10 -0
- package/esm/sdk/sessions.d.ts.map +1 -0
- package/esm/sdk/sessions.js +16 -0
- package/esm/sdk/sessions.js.map +1 -0
- package/esm/sdk/users.d.ts +23 -0
- package/esm/sdk/users.d.ts.map +1 -1
- package/esm/sdk/users.js +25 -0
- package/esm/sdk/users.js.map +1 -1
- package/examples/src/model_management.ts +59 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/betaUsersListOrganizations.ts +257 -0
- package/src/funcs/betaUsersListWorkspaces.ts +257 -0
- package/src/funcs/realtimeSessionsCreate.ts +170 -0
- package/src/funcs/workflowsDeploymentsGetDeployment.ts +6 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/activitytaskcompletedresponse.ts +18 -0
- package/src/models/components/activitytaskfailedresponse.ts +18 -0
- package/src/models/components/activitytaskretryingresponse.ts +18 -0
- package/src/models/components/activitytaskstartedresponse.ts +18 -0
- package/src/models/components/agentscompletionrequest.ts +11 -0
- package/src/models/components/agentscompletionstreamrequest.ts +11 -0
- package/src/models/components/authdirection.ts +17 -0
- package/src/models/components/authenticationmethodcreateorupdaterequest.ts +138 -0
- package/src/models/components/chatcompletionrequest.ts +11 -0
- package/src/models/components/chatcompletionstreamrequest.ts +11 -0
- package/src/models/components/clientsecret.ts +36 -0
- package/src/models/components/clientsessionpurpose.ts +23 -0
- package/src/models/components/connectorauthenticationheader.ts +32 -2
- package/src/models/components/createconnectorrequest.ts +19 -0
- package/src/models/components/createingestionpipelineconfigurationrequest.ts +14 -0
- package/src/models/components/createrealtimesessionrequest.ts +39 -0
- package/src/models/components/createrealtimesessionresponse.ts +51 -0
- package/src/models/components/customtaskcanceledresponse.ts +18 -0
- package/src/models/components/customtaskcompletedresponse.ts +18 -0
- package/src/models/components/customtaskfailedresponse.ts +18 -0
- package/src/models/components/customtaskinprogressresponse.ts +18 -0
- package/src/models/components/customtaskstartedresponse.ts +18 -0
- package/src/models/components/customtasktimedoutresponse.ts +18 -0
- package/src/models/components/deploymentdetailresponse.ts +2 -0
- package/src/models/components/deploymentresponse.ts +2 -0
- package/src/models/components/deploymentworkerspecresponse.ts +9 -0
- package/src/models/components/extendedoauthservermetadata.ts +99 -0
- package/src/models/components/gitcommitauthor.ts +40 -0
- package/src/models/components/gitcommitmetadata.ts +46 -0
- package/src/models/components/globalheadervalue.ts +70 -0
- package/src/models/components/inboundauthenticationtype.ts +19 -0
- package/src/models/components/index.ts +18 -0
- package/src/models/components/ingestionpipelinetargetindexref.ts +36 -0
- package/src/models/components/listorganizationsresponse.ts +38 -0
- package/src/models/components/listworkspacesresponse.ts +35 -0
- package/src/models/components/oauth2metadatasecrets.ts +57 -0
- package/src/models/components/oauthmetadatasource.ts +31 -0
- package/src/models/components/observabilityerrorcode.ts +1 -0
- package/src/models/components/publicauthenticationmethod.ts +16 -0
- package/src/models/components/requestedservicetier.ts +18 -0
- package/src/models/components/updateconnectorrequest.ts +17 -15
- package/src/models/components/usageinfo.ts +9 -0
- package/src/models/components/userorganization.ts +39 -0
- package/src/models/components/userworkspace.ts +47 -0
- package/src/models/components/workflowexecutioncanceledattributes.ts +5 -0
- package/src/models/components/workflowexecutioncanceledresponse.ts +18 -0
- package/src/models/components/workflowexecutioncompletedattributesresponse.ts +5 -0
- package/src/models/components/workflowexecutioncompletedresponse.ts +18 -0
- package/src/models/components/workflowexecutioncontinuedasnewresponse.ts +18 -0
- package/src/models/components/workflowexecutionfailedattributes.ts +5 -0
- package/src/models/components/workflowexecutionfailedresponse.ts +18 -0
- package/src/models/components/workflowexecutionstartedattributesresponse.ts +5 -0
- package/src/models/components/workflowexecutionstartedresponse.ts +18 -0
- package/src/models/components/workflowtaskfailedresponse.ts +18 -0
- package/src/models/components/workflowtasktimedoutresponse.ts +18 -0
- package/src/models/operations/createclientsessionv1clientsessionspost.ts +20 -0
- package/src/models/operations/getdeploymentv1workflowsdeploymentsnameget.ts +11 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/usersapilistorganizations.ts +104 -0
- package/src/models/operations/usersapilistworkspaces.ts +114 -0
- package/src/sdk/realtime.ts +14 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sessions.ts +26 -0
- package/src/sdk/users.ts +52 -0
- package/examples/src/async_jobs.ts +0 -51
package/src/lib/config.ts
CHANGED
|
@@ -70,8 +70,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
70
70
|
export const SDK_METADATA = {
|
|
71
71
|
language: "typescript",
|
|
72
72
|
openapiDocVersion: "1.0.0",
|
|
73
|
-
sdkVersion: "2.6.
|
|
73
|
+
sdkVersion: "2.6.3",
|
|
74
74
|
genVersion: "2.884.13",
|
|
75
75
|
userAgent:
|
|
76
|
-
"speakeasy-sdk/typescript 2.6.
|
|
76
|
+
"speakeasy-sdk/typescript 2.6.3 2.884.13 1.0.0 @mistralai/mistralai",
|
|
77
77
|
} as const;
|
|
@@ -37,6 +37,18 @@ export type ActivityTaskCompletedResponse = {
|
|
|
37
37
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
38
38
|
*/
|
|
39
39
|
parentWorkflowExecId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
42
|
+
*/
|
|
43
|
+
continuedRunId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
46
|
+
*/
|
|
47
|
+
firstExecutionRunId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
50
|
+
*/
|
|
51
|
+
scheduleId: string | null;
|
|
40
52
|
/**
|
|
41
53
|
* Execution ID of the workflow that emitted this event.
|
|
42
54
|
*/
|
|
@@ -68,6 +80,9 @@ export const ActivityTaskCompletedResponse$inboundSchema: z.ZodType<
|
|
|
68
80
|
event_timestamp: z.int(),
|
|
69
81
|
root_workflow_exec_id: z.string(),
|
|
70
82
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
83
|
+
continued_run_id: z.nullable(z.string()),
|
|
84
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
85
|
+
schedule_id: z.nullable(z.string()),
|
|
71
86
|
workflow_exec_id: z.string(),
|
|
72
87
|
workflow_run_id: z.string(),
|
|
73
88
|
workflow_name: z.string(),
|
|
@@ -81,6 +96,9 @@ export const ActivityTaskCompletedResponse$inboundSchema: z.ZodType<
|
|
|
81
96
|
"event_timestamp": "eventTimestamp",
|
|
82
97
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
83
98
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
99
|
+
"continued_run_id": "continuedRunId",
|
|
100
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
101
|
+
"schedule_id": "scheduleId",
|
|
84
102
|
"workflow_exec_id": "workflowExecId",
|
|
85
103
|
"workflow_run_id": "workflowRunId",
|
|
86
104
|
"workflow_name": "workflowName",
|
|
@@ -37,6 +37,18 @@ export type ActivityTaskFailedResponse = {
|
|
|
37
37
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
38
38
|
*/
|
|
39
39
|
parentWorkflowExecId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
42
|
+
*/
|
|
43
|
+
continuedRunId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
46
|
+
*/
|
|
47
|
+
firstExecutionRunId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
50
|
+
*/
|
|
51
|
+
scheduleId: string | null;
|
|
40
52
|
/**
|
|
41
53
|
* Execution ID of the workflow that emitted this event.
|
|
42
54
|
*/
|
|
@@ -68,6 +80,9 @@ export const ActivityTaskFailedResponse$inboundSchema: z.ZodType<
|
|
|
68
80
|
event_timestamp: z.int(),
|
|
69
81
|
root_workflow_exec_id: z.string(),
|
|
70
82
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
83
|
+
continued_run_id: z.nullable(z.string()),
|
|
84
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
85
|
+
schedule_id: z.nullable(z.string()),
|
|
71
86
|
workflow_exec_id: z.string(),
|
|
72
87
|
workflow_run_id: z.string(),
|
|
73
88
|
workflow_name: z.string(),
|
|
@@ -79,6 +94,9 @@ export const ActivityTaskFailedResponse$inboundSchema: z.ZodType<
|
|
|
79
94
|
"event_timestamp": "eventTimestamp",
|
|
80
95
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
81
96
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
97
|
+
"continued_run_id": "continuedRunId",
|
|
98
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
99
|
+
"schedule_id": "scheduleId",
|
|
82
100
|
"workflow_exec_id": "workflowExecId",
|
|
83
101
|
"workflow_run_id": "workflowRunId",
|
|
84
102
|
"workflow_name": "workflowName",
|
|
@@ -37,6 +37,18 @@ export type ActivityTaskRetryingResponse = {
|
|
|
37
37
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
38
38
|
*/
|
|
39
39
|
parentWorkflowExecId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
42
|
+
*/
|
|
43
|
+
continuedRunId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
46
|
+
*/
|
|
47
|
+
firstExecutionRunId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
50
|
+
*/
|
|
51
|
+
scheduleId: string | null;
|
|
40
52
|
/**
|
|
41
53
|
* Execution ID of the workflow that emitted this event.
|
|
42
54
|
*/
|
|
@@ -68,6 +80,9 @@ export const ActivityTaskRetryingResponse$inboundSchema: z.ZodType<
|
|
|
68
80
|
event_timestamp: z.int(),
|
|
69
81
|
root_workflow_exec_id: z.string(),
|
|
70
82
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
83
|
+
continued_run_id: z.nullable(z.string()),
|
|
84
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
85
|
+
schedule_id: z.nullable(z.string()),
|
|
71
86
|
workflow_exec_id: z.string(),
|
|
72
87
|
workflow_run_id: z.string(),
|
|
73
88
|
workflow_name: z.string(),
|
|
@@ -81,6 +96,9 @@ export const ActivityTaskRetryingResponse$inboundSchema: z.ZodType<
|
|
|
81
96
|
"event_timestamp": "eventTimestamp",
|
|
82
97
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
83
98
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
99
|
+
"continued_run_id": "continuedRunId",
|
|
100
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
101
|
+
"schedule_id": "scheduleId",
|
|
84
102
|
"workflow_exec_id": "workflowExecId",
|
|
85
103
|
"workflow_run_id": "workflowRunId",
|
|
86
104
|
"workflow_name": "workflowName",
|
|
@@ -38,6 +38,18 @@ export type ActivityTaskStartedResponse = {
|
|
|
38
38
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
39
39
|
*/
|
|
40
40
|
parentWorkflowExecId: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
43
|
+
*/
|
|
44
|
+
continuedRunId: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
47
|
+
*/
|
|
48
|
+
firstExecutionRunId: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
51
|
+
*/
|
|
52
|
+
scheduleId: string | null;
|
|
41
53
|
/**
|
|
42
54
|
* Execution ID of the workflow that emitted this event.
|
|
43
55
|
*/
|
|
@@ -69,6 +81,9 @@ export const ActivityTaskStartedResponse$inboundSchema: z.ZodType<
|
|
|
69
81
|
event_timestamp: z.int(),
|
|
70
82
|
root_workflow_exec_id: z.string(),
|
|
71
83
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
84
|
+
continued_run_id: z.nullable(z.string()),
|
|
85
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
86
|
+
schedule_id: z.nullable(z.string()),
|
|
72
87
|
workflow_exec_id: z.string(),
|
|
73
88
|
workflow_run_id: z.string(),
|
|
74
89
|
workflow_name: z.string(),
|
|
@@ -82,6 +97,9 @@ export const ActivityTaskStartedResponse$inboundSchema: z.ZodType<
|
|
|
82
97
|
"event_timestamp": "eventTimestamp",
|
|
83
98
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
84
99
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
100
|
+
"continued_run_id": "continuedRunId",
|
|
101
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
102
|
+
"schedule_id": "scheduleId",
|
|
85
103
|
"workflow_exec_id": "workflowExecId",
|
|
86
104
|
"workflow_run_id": "workflowRunId",
|
|
87
105
|
"workflow_name": "workflowName",
|
|
@@ -49,6 +49,10 @@ import {
|
|
|
49
49
|
ReasoningEffort,
|
|
50
50
|
ReasoningEffort$outboundSchema,
|
|
51
51
|
} from "./reasoningeffort.js";
|
|
52
|
+
import {
|
|
53
|
+
RequestedServiceTier,
|
|
54
|
+
RequestedServiceTier$outboundSchema,
|
|
55
|
+
} from "./requestedservicetier.js";
|
|
52
56
|
import {
|
|
53
57
|
ResponseFormat,
|
|
54
58
|
ResponseFormat$Outbound,
|
|
@@ -180,6 +184,10 @@ export type AgentsCompletionRequest = {
|
|
|
180
184
|
promptMode?: MistralPromptMode | null | undefined;
|
|
181
185
|
guardrails?: Array<GuardrailConfig> | null | undefined;
|
|
182
186
|
promptCacheKey?: string | null | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* Determines whether to serve the request using priority or standard capacity.
|
|
189
|
+
*/
|
|
190
|
+
serviceTier?: RequestedServiceTier | null | undefined;
|
|
183
191
|
/**
|
|
184
192
|
* The ID of the agent to use for this completion.
|
|
185
193
|
*/
|
|
@@ -326,6 +334,7 @@ export type AgentsCompletionRequest$Outbound = {
|
|
|
326
334
|
prompt_mode?: string | null | undefined;
|
|
327
335
|
guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
|
|
328
336
|
prompt_cache_key?: string | null | undefined;
|
|
337
|
+
service_tier?: string | null | undefined;
|
|
329
338
|
agent_id: string;
|
|
330
339
|
};
|
|
331
340
|
|
|
@@ -376,6 +385,7 @@ export const AgentsCompletionRequest$outboundSchema: z.ZodType<
|
|
|
376
385
|
promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
|
|
377
386
|
guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
|
|
378
387
|
promptCacheKey: z.nullable(z.string()).optional(),
|
|
388
|
+
serviceTier: z.nullable(RequestedServiceTier$outboundSchema).optional(),
|
|
379
389
|
agentId: z.string(),
|
|
380
390
|
}).transform((v) => {
|
|
381
391
|
return remap$(v, {
|
|
@@ -389,6 +399,7 @@ export const AgentsCompletionRequest$outboundSchema: z.ZodType<
|
|
|
389
399
|
reasoningEffort: "reasoning_effort",
|
|
390
400
|
promptMode: "prompt_mode",
|
|
391
401
|
promptCacheKey: "prompt_cache_key",
|
|
402
|
+
serviceTier: "service_tier",
|
|
392
403
|
agentId: "agent_id",
|
|
393
404
|
});
|
|
394
405
|
});
|
|
@@ -49,6 +49,10 @@ import {
|
|
|
49
49
|
ReasoningEffort,
|
|
50
50
|
ReasoningEffort$outboundSchema,
|
|
51
51
|
} from "./reasoningeffort.js";
|
|
52
|
+
import {
|
|
53
|
+
RequestedServiceTier,
|
|
54
|
+
RequestedServiceTier$outboundSchema,
|
|
55
|
+
} from "./requestedservicetier.js";
|
|
52
56
|
import {
|
|
53
57
|
ResponseFormat,
|
|
54
58
|
ResponseFormat$Outbound,
|
|
@@ -179,6 +183,10 @@ export type AgentsCompletionStreamRequest = {
|
|
|
179
183
|
promptMode?: MistralPromptMode | null | undefined;
|
|
180
184
|
guardrails?: Array<GuardrailConfig> | null | undefined;
|
|
181
185
|
promptCacheKey?: string | null | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* Determines whether to serve the request using priority or standard capacity.
|
|
188
|
+
*/
|
|
189
|
+
serviceTier?: RequestedServiceTier | null | undefined;
|
|
182
190
|
/**
|
|
183
191
|
* The ID of the agent to use for this completion.
|
|
184
192
|
*/
|
|
@@ -326,6 +334,7 @@ export type AgentsCompletionStreamRequest$Outbound = {
|
|
|
326
334
|
prompt_mode?: string | null | undefined;
|
|
327
335
|
guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
|
|
328
336
|
prompt_cache_key?: string | null | undefined;
|
|
337
|
+
service_tier?: string | null | undefined;
|
|
329
338
|
agent_id: string;
|
|
330
339
|
};
|
|
331
340
|
|
|
@@ -376,6 +385,7 @@ export const AgentsCompletionStreamRequest$outboundSchema: z.ZodType<
|
|
|
376
385
|
promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
|
|
377
386
|
guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
|
|
378
387
|
promptCacheKey: z.nullable(z.string()).optional(),
|
|
388
|
+
serviceTier: z.nullable(RequestedServiceTier$outboundSchema).optional(),
|
|
379
389
|
agentId: z.string(),
|
|
380
390
|
}).transform((v) => {
|
|
381
391
|
return remap$(v, {
|
|
@@ -389,6 +399,7 @@ export const AgentsCompletionStreamRequest$outboundSchema: z.ZodType<
|
|
|
389
399
|
reasoningEffort: "reasoning_effort",
|
|
390
400
|
promptMode: "prompt_mode",
|
|
391
401
|
promptCacheKey: "prompt_cache_key",
|
|
402
|
+
serviceTier: "service_tier",
|
|
392
403
|
agentId: "agent_id",
|
|
393
404
|
});
|
|
394
405
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2086f6a291b7
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const AuthDirection = {
|
|
10
|
+
Inbound: "inbound",
|
|
11
|
+
Outbound: "outbound",
|
|
12
|
+
} as const;
|
|
13
|
+
export type AuthDirection = ClosedEnum<typeof AuthDirection>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const AuthDirection$outboundSchema: z.ZodEnum<typeof AuthDirection> = z
|
|
17
|
+
.enum(AuthDirection);
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b4ab75565bc0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
9
|
+
import {
|
|
10
|
+
AuthDirection,
|
|
11
|
+
AuthDirection$outboundSchema,
|
|
12
|
+
} from "./authdirection.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectorAuthenticationHeader,
|
|
15
|
+
ConnectorAuthenticationHeader$Outbound,
|
|
16
|
+
ConnectorAuthenticationHeader$outboundSchema,
|
|
17
|
+
} from "./connectorauthenticationheader.js";
|
|
18
|
+
import {
|
|
19
|
+
ExtendedOAuthServerMetadata,
|
|
20
|
+
ExtendedOAuthServerMetadata$Outbound,
|
|
21
|
+
ExtendedOAuthServerMetadata$outboundSchema,
|
|
22
|
+
} from "./extendedoauthservermetadata.js";
|
|
23
|
+
import {
|
|
24
|
+
GlobalHeaderValue,
|
|
25
|
+
GlobalHeaderValue$Outbound,
|
|
26
|
+
GlobalHeaderValue$outboundSchema,
|
|
27
|
+
} from "./globalheadervalue.js";
|
|
28
|
+
import {
|
|
29
|
+
InboundAuthenticationType,
|
|
30
|
+
InboundAuthenticationType$outboundSchema,
|
|
31
|
+
} from "./inboundauthenticationtype.js";
|
|
32
|
+
import {
|
|
33
|
+
Oauth2MetadataSecrets,
|
|
34
|
+
Oauth2MetadataSecrets$Outbound,
|
|
35
|
+
Oauth2MetadataSecrets$outboundSchema,
|
|
36
|
+
} from "./oauth2metadatasecrets.js";
|
|
37
|
+
import {
|
|
38
|
+
OutboundAuthenticationType,
|
|
39
|
+
OutboundAuthenticationType$outboundSchema,
|
|
40
|
+
} from "./outboundauthenticationtype.js";
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The type of authentication method (e.g. oauth2, bearer, none).
|
|
44
|
+
*/
|
|
45
|
+
export type MethodType = OutboundAuthenticationType | InboundAuthenticationType;
|
|
46
|
+
|
|
47
|
+
export type AuthenticationMethodCreateOrUpdateRequest = {
|
|
48
|
+
/**
|
|
49
|
+
* The type of authentication method (e.g. oauth2, bearer, none).
|
|
50
|
+
*/
|
|
51
|
+
methodType: OutboundAuthenticationType | InboundAuthenticationType;
|
|
52
|
+
authDirection?: AuthDirection | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Set of headers to connect to the connector
|
|
55
|
+
*/
|
|
56
|
+
headers?: Array<ConnectorAuthenticationHeader> | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Connector-wide headers keyed by header name, applied to every credential. Secret values are encrypted at rest and never returned in clear.
|
|
59
|
+
*/
|
|
60
|
+
globalHeaders?: { [k: string]: GlobalHeaderValue } | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* New OAuth2 client credentials (client_id and client_secret).
|
|
63
|
+
*/
|
|
64
|
+
oauth2MetadataSecrets?: Oauth2MetadataSecrets | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* New OAuth2 authorization server metadata.
|
|
67
|
+
*/
|
|
68
|
+
oauth2ServerMetadata?: ExtendedOAuthServerMetadata | null | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type MethodType$Outbound = string | string;
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const MethodType$outboundSchema: z.ZodType<
|
|
76
|
+
MethodType$Outbound,
|
|
77
|
+
MethodType
|
|
78
|
+
> = smartUnion([
|
|
79
|
+
OutboundAuthenticationType$outboundSchema,
|
|
80
|
+
InboundAuthenticationType$outboundSchema,
|
|
81
|
+
]);
|
|
82
|
+
|
|
83
|
+
export function methodTypeToJSON(methodType: MethodType): string {
|
|
84
|
+
return JSON.stringify(MethodType$outboundSchema.parse(methodType));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export type AuthenticationMethodCreateOrUpdateRequest$Outbound = {
|
|
89
|
+
method_type: string | string;
|
|
90
|
+
auth_direction?: string | undefined;
|
|
91
|
+
headers?: Array<ConnectorAuthenticationHeader$Outbound> | null | undefined;
|
|
92
|
+
global_headers?: { [k: string]: GlobalHeaderValue$Outbound } | undefined;
|
|
93
|
+
oauth2_metadata_secrets?: Oauth2MetadataSecrets$Outbound | null | undefined;
|
|
94
|
+
oauth2_server_metadata?:
|
|
95
|
+
| ExtendedOAuthServerMetadata$Outbound
|
|
96
|
+
| null
|
|
97
|
+
| undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const AuthenticationMethodCreateOrUpdateRequest$outboundSchema:
|
|
102
|
+
z.ZodType<
|
|
103
|
+
AuthenticationMethodCreateOrUpdateRequest$Outbound,
|
|
104
|
+
AuthenticationMethodCreateOrUpdateRequest
|
|
105
|
+
> = z.object({
|
|
106
|
+
methodType: smartUnion([
|
|
107
|
+
OutboundAuthenticationType$outboundSchema,
|
|
108
|
+
InboundAuthenticationType$outboundSchema,
|
|
109
|
+
]),
|
|
110
|
+
authDirection: AuthDirection$outboundSchema.optional(),
|
|
111
|
+
headers: z.nullable(z.array(ConnectorAuthenticationHeader$outboundSchema))
|
|
112
|
+
.optional(),
|
|
113
|
+
globalHeaders: z.record(z.string(), GlobalHeaderValue$outboundSchema)
|
|
114
|
+
.optional(),
|
|
115
|
+
oauth2MetadataSecrets: z.nullable(Oauth2MetadataSecrets$outboundSchema)
|
|
116
|
+
.optional(),
|
|
117
|
+
oauth2ServerMetadata: z.nullable(ExtendedOAuthServerMetadata$outboundSchema)
|
|
118
|
+
.optional(),
|
|
119
|
+
}).transform((v) => {
|
|
120
|
+
return remap$(v, {
|
|
121
|
+
methodType: "method_type",
|
|
122
|
+
authDirection: "auth_direction",
|
|
123
|
+
globalHeaders: "global_headers",
|
|
124
|
+
oauth2MetadataSecrets: "oauth2_metadata_secrets",
|
|
125
|
+
oauth2ServerMetadata: "oauth2_server_metadata",
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
export function authenticationMethodCreateOrUpdateRequestToJSON(
|
|
130
|
+
authenticationMethodCreateOrUpdateRequest:
|
|
131
|
+
AuthenticationMethodCreateOrUpdateRequest,
|
|
132
|
+
): string {
|
|
133
|
+
return JSON.stringify(
|
|
134
|
+
AuthenticationMethodCreateOrUpdateRequest$outboundSchema.parse(
|
|
135
|
+
authenticationMethodCreateOrUpdateRequest,
|
|
136
|
+
),
|
|
137
|
+
);
|
|
138
|
+
}
|
|
@@ -49,6 +49,10 @@ import {
|
|
|
49
49
|
ReasoningEffort,
|
|
50
50
|
ReasoningEffort$outboundSchema,
|
|
51
51
|
} from "./reasoningeffort.js";
|
|
52
|
+
import {
|
|
53
|
+
RequestedServiceTier,
|
|
54
|
+
RequestedServiceTier$outboundSchema,
|
|
55
|
+
} from "./requestedservicetier.js";
|
|
52
56
|
import {
|
|
53
57
|
ResponseFormat,
|
|
54
58
|
ResponseFormat$Outbound,
|
|
@@ -204,6 +208,10 @@ export type ChatCompletionRequest = {
|
|
|
204
208
|
promptMode?: MistralPromptMode | null | undefined;
|
|
205
209
|
guardrails?: Array<GuardrailConfig> | null | undefined;
|
|
206
210
|
promptCacheKey?: string | null | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* Determines whether to serve the request using priority or standard capacity.
|
|
213
|
+
*/
|
|
214
|
+
serviceTier?: RequestedServiceTier | null | undefined;
|
|
207
215
|
/**
|
|
208
216
|
* Whether to inject a safety prompt before all conversations.
|
|
209
217
|
*/
|
|
@@ -349,6 +357,7 @@ export type ChatCompletionRequest$Outbound = {
|
|
|
349
357
|
prompt_mode?: string | null | undefined;
|
|
350
358
|
guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
|
|
351
359
|
prompt_cache_key?: string | null | undefined;
|
|
360
|
+
service_tier?: string | null | undefined;
|
|
352
361
|
safe_prompt?: boolean | undefined;
|
|
353
362
|
};
|
|
354
363
|
|
|
@@ -402,6 +411,7 @@ export const ChatCompletionRequest$outboundSchema: z.ZodType<
|
|
|
402
411
|
promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
|
|
403
412
|
guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
|
|
404
413
|
promptCacheKey: z.nullable(z.string()).optional(),
|
|
414
|
+
serviceTier: z.nullable(RequestedServiceTier$outboundSchema).optional(),
|
|
405
415
|
safePrompt: z.boolean().optional(),
|
|
406
416
|
}).transform((v) => {
|
|
407
417
|
return remap$(v, {
|
|
@@ -416,6 +426,7 @@ export const ChatCompletionRequest$outboundSchema: z.ZodType<
|
|
|
416
426
|
reasoningEffort: "reasoning_effort",
|
|
417
427
|
promptMode: "prompt_mode",
|
|
418
428
|
promptCacheKey: "prompt_cache_key",
|
|
429
|
+
serviceTier: "service_tier",
|
|
419
430
|
safePrompt: "safe_prompt",
|
|
420
431
|
});
|
|
421
432
|
});
|
|
@@ -49,6 +49,10 @@ import {
|
|
|
49
49
|
ReasoningEffort,
|
|
50
50
|
ReasoningEffort$outboundSchema,
|
|
51
51
|
} from "./reasoningeffort.js";
|
|
52
|
+
import {
|
|
53
|
+
RequestedServiceTier,
|
|
54
|
+
RequestedServiceTier$outboundSchema,
|
|
55
|
+
} from "./requestedservicetier.js";
|
|
52
56
|
import {
|
|
53
57
|
ResponseFormat,
|
|
54
58
|
ResponseFormat$Outbound,
|
|
@@ -201,6 +205,10 @@ export type ChatCompletionStreamRequest = {
|
|
|
201
205
|
promptMode?: MistralPromptMode | null | undefined;
|
|
202
206
|
guardrails?: Array<GuardrailConfig> | null | undefined;
|
|
203
207
|
promptCacheKey?: string | null | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* Determines whether to serve the request using priority or standard capacity.
|
|
210
|
+
*/
|
|
211
|
+
serviceTier?: RequestedServiceTier | null | undefined;
|
|
204
212
|
/**
|
|
205
213
|
* Whether to inject a safety prompt before all conversations.
|
|
206
214
|
*/
|
|
@@ -350,6 +358,7 @@ export type ChatCompletionStreamRequest$Outbound = {
|
|
|
350
358
|
prompt_mode?: string | null | undefined;
|
|
351
359
|
guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
|
|
352
360
|
prompt_cache_key?: string | null | undefined;
|
|
361
|
+
service_tier?: string | null | undefined;
|
|
353
362
|
safe_prompt?: boolean | undefined;
|
|
354
363
|
};
|
|
355
364
|
|
|
@@ -403,6 +412,7 @@ export const ChatCompletionStreamRequest$outboundSchema: z.ZodType<
|
|
|
403
412
|
promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
|
|
404
413
|
guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
|
|
405
414
|
promptCacheKey: z.nullable(z.string()).optional(),
|
|
415
|
+
serviceTier: z.nullable(RequestedServiceTier$outboundSchema).optional(),
|
|
406
416
|
safePrompt: z.boolean().optional(),
|
|
407
417
|
}).transform((v) => {
|
|
408
418
|
return remap$(v, {
|
|
@@ -417,6 +427,7 @@ export const ChatCompletionStreamRequest$outboundSchema: z.ZodType<
|
|
|
417
427
|
reasoningEffort: "reasoning_effort",
|
|
418
428
|
promptMode: "prompt_mode",
|
|
419
429
|
promptCacheKey: "prompt_cache_key",
|
|
430
|
+
serviceTier: "service_tier",
|
|
420
431
|
safePrompt: "safe_prompt",
|
|
421
432
|
});
|
|
422
433
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f15778761426
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ClientSecret = {
|
|
13
|
+
value: string;
|
|
14
|
+
expiresAt: Date;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ClientSecret$inboundSchema: z.ZodType<ClientSecret, unknown> = z
|
|
19
|
+
.object({
|
|
20
|
+
value: z.string(),
|
|
21
|
+
expires_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"expires_at": "expiresAt",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function clientSecretFromJSON(
|
|
29
|
+
jsonString: string,
|
|
30
|
+
): SafeParseResult<ClientSecret, SDKValidationError> {
|
|
31
|
+
return safeParse(
|
|
32
|
+
jsonString,
|
|
33
|
+
(x) => ClientSecret$inboundSchema.parse(JSON.parse(x)),
|
|
34
|
+
`Failed to parse 'ClientSecret' from JSON`,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 999ece97f40e
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Supported purposes for client sessions.
|
|
11
|
+
*/
|
|
12
|
+
export const ClientSessionPurpose = {
|
|
13
|
+
Realtime: "realtime",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Supported purposes for client sessions.
|
|
17
|
+
*/
|
|
18
|
+
export type ClientSessionPurpose = ClosedEnum<typeof ClientSessionPurpose>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ClientSessionPurpose$inboundSchema: z.ZodEnum<
|
|
22
|
+
typeof ClientSessionPurpose
|
|
23
|
+
> = z.enum(ClientSessionPurpose);
|
|
@@ -11,8 +11,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
|
|
12
12
|
export type ConnectorAuthenticationHeader = {
|
|
13
13
|
name: string;
|
|
14
|
-
isRequired
|
|
15
|
-
isSecret
|
|
14
|
+
isRequired?: boolean | undefined;
|
|
15
|
+
isSecret?: boolean | undefined;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -29,7 +29,37 @@ export const ConnectorAuthenticationHeader$inboundSchema: z.ZodType<
|
|
|
29
29
|
"is_secret": "isSecret",
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type ConnectorAuthenticationHeader$Outbound = {
|
|
34
|
+
name: string;
|
|
35
|
+
is_required: boolean;
|
|
36
|
+
is_secret: boolean;
|
|
37
|
+
};
|
|
32
38
|
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const ConnectorAuthenticationHeader$outboundSchema: z.ZodType<
|
|
41
|
+
ConnectorAuthenticationHeader$Outbound,
|
|
42
|
+
ConnectorAuthenticationHeader
|
|
43
|
+
> = z.object({
|
|
44
|
+
name: z.string(),
|
|
45
|
+
isRequired: z.boolean().default(true),
|
|
46
|
+
isSecret: z.boolean().default(true),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
isRequired: "is_required",
|
|
50
|
+
isSecret: "is_secret",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function connectorAuthenticationHeaderToJSON(
|
|
55
|
+
connectorAuthenticationHeader: ConnectorAuthenticationHeader,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
ConnectorAuthenticationHeader$outboundSchema.parse(
|
|
59
|
+
connectorAuthenticationHeader,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
33
63
|
export function connectorAuthenticationHeaderFromJSON(
|
|
34
64
|
jsonString: string,
|
|
35
65
|
): SafeParseResult<ConnectorAuthenticationHeader, SDKValidationError> {
|