@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
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d0798e7afb73
|
|
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 * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export type UsersApiListWorkspacesSecurity = {
|
|
14
|
+
dashboardUserContextAuth: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type UsersApiListWorkspacesRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Return only workspaces belonging to this organization.
|
|
20
|
+
*/
|
|
21
|
+
organizationId?: string | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Number of workspaces to skip before returning results.
|
|
24
|
+
*/
|
|
25
|
+
offset?: number | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Maximum number of workspaces to return.
|
|
28
|
+
*/
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type UsersApiListWorkspacesResponse = {
|
|
33
|
+
result: components.ListWorkspacesResponse;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type UsersApiListWorkspacesSecurity$Outbound = {
|
|
38
|
+
DashboardUserContextAuth: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const UsersApiListWorkspacesSecurity$outboundSchema: z.ZodType<
|
|
43
|
+
UsersApiListWorkspacesSecurity$Outbound,
|
|
44
|
+
UsersApiListWorkspacesSecurity
|
|
45
|
+
> = z.object({
|
|
46
|
+
dashboardUserContextAuth: z.string(),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
dashboardUserContextAuth: "DashboardUserContextAuth",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function usersApiListWorkspacesSecurityToJSON(
|
|
54
|
+
usersApiListWorkspacesSecurity: UsersApiListWorkspacesSecurity,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
UsersApiListWorkspacesSecurity$outboundSchema.parse(
|
|
58
|
+
usersApiListWorkspacesSecurity,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type UsersApiListWorkspacesRequest$Outbound = {
|
|
65
|
+
organization_id?: string | null | undefined;
|
|
66
|
+
offset: number;
|
|
67
|
+
limit: number;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const UsersApiListWorkspacesRequest$outboundSchema: z.ZodType<
|
|
72
|
+
UsersApiListWorkspacesRequest$Outbound,
|
|
73
|
+
UsersApiListWorkspacesRequest
|
|
74
|
+
> = z.object({
|
|
75
|
+
organizationId: z.nullable(z.string()).optional(),
|
|
76
|
+
offset: z.int().default(0),
|
|
77
|
+
limit: z.int().default(100),
|
|
78
|
+
}).transform((v) => {
|
|
79
|
+
return remap$(v, {
|
|
80
|
+
organizationId: "organization_id",
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export function usersApiListWorkspacesRequestToJSON(
|
|
85
|
+
usersApiListWorkspacesRequest: UsersApiListWorkspacesRequest,
|
|
86
|
+
): string {
|
|
87
|
+
return JSON.stringify(
|
|
88
|
+
UsersApiListWorkspacesRequest$outboundSchema.parse(
|
|
89
|
+
usersApiListWorkspacesRequest,
|
|
90
|
+
),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const UsersApiListWorkspacesResponse$inboundSchema: z.ZodType<
|
|
96
|
+
UsersApiListWorkspacesResponse,
|
|
97
|
+
unknown
|
|
98
|
+
> = z.object({
|
|
99
|
+
Result: components.ListWorkspacesResponse$inboundSchema,
|
|
100
|
+
}).transform((v) => {
|
|
101
|
+
return remap$(v, {
|
|
102
|
+
"Result": "result",
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export function usersApiListWorkspacesResponseFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<UsersApiListWorkspacesResponse, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => UsersApiListWorkspacesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'UsersApiListWorkspacesResponse' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: dc7128196075
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
7
|
+
import { Sessions } from "./sessions.js";
|
|
8
|
+
|
|
9
|
+
export class Realtime extends ClientSDK {
|
|
10
|
+
private _sessions?: Sessions;
|
|
11
|
+
get sessions(): Sessions {
|
|
12
|
+
return (this._sessions ??= new Sessions(this._options));
|
|
13
|
+
}
|
|
14
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { Files } from "./files.js";
|
|
|
16
16
|
import { Fim } from "./fim.js";
|
|
17
17
|
import { Models } from "./models.js";
|
|
18
18
|
import { Ocr } from "./ocr.js";
|
|
19
|
+
import { Realtime } from "./realtime.js";
|
|
19
20
|
import { Workflows } from "./workflows.js";
|
|
20
21
|
|
|
21
22
|
export class Mistral extends ClientSDK {
|
|
@@ -34,6 +35,11 @@ export class Mistral extends ClientSDK {
|
|
|
34
35
|
return (this._models ??= new Models(this._options));
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
private _realtime?: Realtime;
|
|
39
|
+
get realtime(): Realtime {
|
|
40
|
+
return (this._realtime ??= new Realtime(this._options));
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
private _files?: Files;
|
|
38
44
|
get files(): Files {
|
|
39
45
|
return (this._files ??= new Files(this._options));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8dd1c8430722
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { realtimeSessionsCreate } from "../funcs/realtimeSessionsCreate.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as components from "../models/components/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
|
|
12
|
+
export class Sessions extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Create Client Session
|
|
15
|
+
*/
|
|
16
|
+
async create(
|
|
17
|
+
request: operations.Body,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): Promise<components.CreateRealtimeSessionResponse> {
|
|
20
|
+
return unwrapAsync(realtimeSessionsCreate(
|
|
21
|
+
this,
|
|
22
|
+
request,
|
|
23
|
+
options,
|
|
24
|
+
));
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/sdk/users.ts
CHANGED
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { betaUsersGetIdentity } from "../funcs/betaUsersGetIdentity.js";
|
|
7
|
+
import { betaUsersListOrganizations } from "../funcs/betaUsersListOrganizations.js";
|
|
8
|
+
import { betaUsersListWorkspaces } from "../funcs/betaUsersListWorkspaces.js";
|
|
7
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
10
|
import * as components from "../models/components/index.js";
|
|
9
11
|
import * as operations from "../models/operations/index.js";
|
|
10
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
11
14
|
|
|
12
15
|
export class Users extends ClientSDK {
|
|
13
16
|
/**
|
|
@@ -23,4 +26,53 @@ export class Users extends ClientSDK {
|
|
|
23
26
|
options,
|
|
24
27
|
));
|
|
25
28
|
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* List Organizations
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* List every organization the authenticated user is a member of.
|
|
35
|
+
*
|
|
36
|
+
* Identity-only: the caller need not have selected an organization, so this
|
|
37
|
+
* reads only the user and never scopes by the active org.
|
|
38
|
+
*/
|
|
39
|
+
async listOrganizations(
|
|
40
|
+
security: operations.UsersApiListOrganizationsSecurity,
|
|
41
|
+
request?: operations.UsersApiListOrganizationsRequest | undefined,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): Promise<
|
|
44
|
+
PageIterator<
|
|
45
|
+
operations.UsersApiListOrganizationsResponse,
|
|
46
|
+
{ offset: number }
|
|
47
|
+
>
|
|
48
|
+
> {
|
|
49
|
+
return unwrapResultIterator(betaUsersListOrganizations(
|
|
50
|
+
this,
|
|
51
|
+
security,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* List Workspaces
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* List every workspace the authenticated user is a member of, across all
|
|
62
|
+
* their organizations, each tagged with the organization it belongs to.
|
|
63
|
+
*/
|
|
64
|
+
async listWorkspaces(
|
|
65
|
+
security: operations.UsersApiListWorkspacesSecurity,
|
|
66
|
+
request?: operations.UsersApiListWorkspacesRequest | undefined,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): Promise<
|
|
69
|
+
PageIterator<operations.UsersApiListWorkspacesResponse, { offset: number }>
|
|
70
|
+
> {
|
|
71
|
+
return unwrapResultIterator(betaUsersListWorkspaces(
|
|
72
|
+
this,
|
|
73
|
+
security,
|
|
74
|
+
request,
|
|
75
|
+
options,
|
|
76
|
+
));
|
|
77
|
+
}
|
|
26
78
|
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as fs from "fs";
|
|
2
|
-
import { Mistral } from "@mistralai/mistralai";
|
|
3
|
-
import path from "path";
|
|
4
|
-
import { fileURLToPath } from "url";
|
|
5
|
-
|
|
6
|
-
const apiKey = process.env["MISTRAL_API_KEY"];
|
|
7
|
-
if (!apiKey) {
|
|
8
|
-
throw new Error("missing MISTRAL_API_KEY environment variable");
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const mistral = new Mistral();
|
|
12
|
-
|
|
13
|
-
// Get the absolute directory path
|
|
14
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
15
|
-
const __dirname = path.dirname(__filename);
|
|
16
|
-
const filePath = path.join(__dirname, "file.jsonl");
|
|
17
|
-
|
|
18
|
-
// Create a new file
|
|
19
|
-
const blob = new Blob([fs.readFileSync(filePath)], {
|
|
20
|
-
type: "application/json",
|
|
21
|
-
});
|
|
22
|
-
const createdFile = await mistral.files.upload({ file: blob });
|
|
23
|
-
|
|
24
|
-
// Create a new job
|
|
25
|
-
const hyperparameters = {
|
|
26
|
-
training_steps: 10,
|
|
27
|
-
learning_rate: 0.0001,
|
|
28
|
-
};
|
|
29
|
-
const createdJob = await mistral.fineTuning.jobs.create({
|
|
30
|
-
model: "open-mistral-7b",
|
|
31
|
-
trainingFiles: [{ fileId: createdFile.id, weight: 1 }],
|
|
32
|
-
validationFiles: [createdFile.id],
|
|
33
|
-
hyperparameters: hyperparameters,
|
|
34
|
-
});
|
|
35
|
-
console.log(createdJob);
|
|
36
|
-
|
|
37
|
-
// List jobs
|
|
38
|
-
const jobs = await mistral.fineTuning.jobs.list();
|
|
39
|
-
console.log(jobs);
|
|
40
|
-
|
|
41
|
-
// Retrieve a job
|
|
42
|
-
const retrievedJob = await mistral.fineTuning.jobs.get({
|
|
43
|
-
jobId: createdJob.id,
|
|
44
|
-
});
|
|
45
|
-
console.log(retrievedJob);
|
|
46
|
-
|
|
47
|
-
// Cancel a job
|
|
48
|
-
const canceledJob = await mistral.fineTuning.jobs.cancel({
|
|
49
|
-
jobId: createdJob.id,
|
|
50
|
-
});
|
|
51
|
-
console.log(canceledJob);
|