@mistralai/mistralai 2.6.2 → 2.6.4
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/extra/observability/index.d.ts +1 -1
- package/esm/extra/observability/index.d.ts.map +1 -1
- package/esm/extra/observability/index.js +1 -1
- package/esm/extra/observability/index.js.map +1 -1
- package/esm/extra/observability/telemetry.d.ts +9 -0
- package/esm/extra/observability/telemetry.d.ts.map +1 -1
- package/esm/extra/observability/telemetry.js +12 -0
- package/esm/extra/observability/telemetry.js.map +1 -1
- 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/authenticationmethodcreateorupdaterequest.d.ts +10 -0
- package/esm/models/components/authenticationmethodcreateorupdaterequest.d.ts.map +1 -1
- package/esm/models/components/authenticationmethodcreateorupdaterequest.js +4 -0
- package/esm/models/components/authenticationmethodcreateorupdaterequest.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/createconnectorrequest.d.ts +10 -0
- package/esm/models/components/createconnectorrequest.d.ts.map +1 -1
- package/esm/models/components/createconnectorrequest.js +4 -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 +19 -0
- package/esm/models/components/createrealtimesessionrequest.d.ts.map +1 -0
- package/esm/models/components/createrealtimesessionrequest.js +20 -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/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/extendedoauthservermetadata.d.ts +8 -0
- package/esm/models/components/extendedoauthservermetadata.d.ts.map +1 -1
- package/esm/models/components/extendedoauthservermetadata.js +65 -0
- package/esm/models/components/extendedoauthservermetadata.js.map +1 -1
- 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/index.d.ts +12 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +12 -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/messagetokens.d.ts +1 -0
- package/esm/models/components/messagetokens.d.ts.map +1 -1
- package/esm/models/components/messagetokens.js +2 -0
- package/esm/models/components/messagetokens.js.map +1 -1
- 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/prompt.d.ts +5 -0
- package/esm/models/components/prompt.d.ts.map +1 -1
- package/esm/models/components/prompt.js +3 -0
- package/esm/models/components/prompt.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/registerdeploymentrequestvespaindex.d.ts +2 -0
- package/esm/models/components/registerdeploymentrequestvespaindex.d.ts.map +1 -1
- package/esm/models/components/registerdeploymentrequestvespaindex.js +6 -0
- package/esm/models/components/registerdeploymentrequestvespaindex.js.map +1 -1
- package/esm/models/components/tempotraceattribute.d.ts +3 -2
- package/esm/models/components/tempotraceattribute.d.ts.map +1 -1
- package/esm/models/components/tempotraceattribute.js +3 -0
- package/esm/models/components/tempotraceattribute.js.map +1 -1
- package/esm/models/components/tempotraceattributearrayelement.d.ts +4 -0
- package/esm/models/components/tempotraceattributearrayelement.d.ts.map +1 -1
- package/esm/models/components/tempotraceattributearrayelement.js +1 -0
- package/esm/models/components/tempotraceattributearrayelement.js.map +1 -1
- package/esm/models/components/tempotraceattributedoublevalue.d.ts +13 -0
- package/esm/models/components/tempotraceattributedoublevalue.d.ts.map +1 -0
- package/esm/models/components/tempotraceattributedoublevalue.js +14 -0
- package/esm/models/components/tempotraceattributedoublevalue.js.map +1 -0
- package/esm/models/components/usageinfodollardefs.d.ts +1 -0
- package/esm/models/components/usageinfodollardefs.d.ts.map +1 -1
- package/esm/models/components/usageinfodollardefs.js +2 -0
- package/esm/models/components/usageinfodollardefs.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/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/jsr.json +1 -1
- package/package.json +1 -1
- package/src/extra/observability/index.ts +1 -0
- package/src/extra/observability/telemetry.ts +13 -0
- 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/authenticationmethodcreateorupdaterequest.ts +13 -0
- package/src/models/components/clientsecret.ts +36 -0
- package/src/models/components/clientsessionpurpose.ts +23 -0
- package/src/models/components/createconnectorrequest.ts +13 -0
- package/src/models/components/createingestionpipelineconfigurationrequest.ts +14 -0
- package/src/models/components/createrealtimesessionrequest.ts +47 -0
- package/src/models/components/createrealtimesessionresponse.ts +51 -0
- package/src/models/components/deploymentdetailresponse.ts +2 -0
- package/src/models/components/deploymentresponse.ts +2 -0
- package/src/models/components/extendedoauthservermetadata.ts +95 -0
- package/src/models/components/globalheadervalue.ts +70 -0
- package/src/models/components/index.ts +12 -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/messagetokens.ts +3 -0
- package/src/models/components/oauthmetadatasource.ts +31 -0
- package/src/models/components/prompt.ts +8 -0
- package/src/models/components/publicauthenticationmethod.ts +16 -0
- package/src/models/components/registerdeploymentrequestvespaindex.ts +8 -0
- package/src/models/components/tempotraceattribute.ts +8 -0
- package/src/models/components/tempotraceattributearrayelement.ts +5 -0
- package/src/models/components/tempotraceattributedoublevalue.ts +34 -0
- package/src/models/components/usageinfodollardefs.ts +3 -0
- package/src/models/components/userorganization.ts +39 -0
- package/src/models/components/userworkspace.ts +47 -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/tests/extra/observability/telemetry.test.ts +115 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1e00d716ccf6
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
UserOrganization,
|
|
12
|
+
UserOrganization$inboundSchema,
|
|
13
|
+
} from "./userorganization.js";
|
|
14
|
+
|
|
15
|
+
export type ListOrganizationsResponse = {
|
|
16
|
+
/**
|
|
17
|
+
* The organizations the authenticated user is a member of.
|
|
18
|
+
*/
|
|
19
|
+
organizations: Array<UserOrganization>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ListOrganizationsResponse$inboundSchema: z.ZodType<
|
|
24
|
+
ListOrganizationsResponse,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
organizations: z.array(UserOrganization$inboundSchema),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function listOrganizationsResponseFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<ListOrganizationsResponse, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => ListOrganizationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'ListOrganizationsResponse' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d0a0a253bc7e
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { UserWorkspace, UserWorkspace$inboundSchema } from "./userworkspace.js";
|
|
11
|
+
|
|
12
|
+
export type ListWorkspacesResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* The workspaces the authenticated user is a member of, each tagged with the organization it belongs to.
|
|
15
|
+
*/
|
|
16
|
+
workspaces: Array<UserWorkspace>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const ListWorkspacesResponse$inboundSchema: z.ZodType<
|
|
21
|
+
ListWorkspacesResponse,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
workspaces: z.array(UserWorkspace$inboundSchema),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function listWorkspacesResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<ListWorkspacesResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => ListWorkspacesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'ListWorkspacesResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -16,6 +16,7 @@ import { Roles, Roles$inboundSchema } from "./roles.js";
|
|
|
16
16
|
export type MessageTokens = {
|
|
17
17
|
role: Roles;
|
|
18
18
|
totalTokens?: number | null | undefined;
|
|
19
|
+
settingsTokens?: number | null | undefined;
|
|
19
20
|
truncated: boolean;
|
|
20
21
|
usageCount: number;
|
|
21
22
|
};
|
|
@@ -25,11 +26,13 @@ export const MessageTokens$inboundSchema: z.ZodType<MessageTokens, unknown> = z
|
|
|
25
26
|
.object({
|
|
26
27
|
role: Roles$inboundSchema,
|
|
27
28
|
total_tokens: z.nullable(z.int()).optional(),
|
|
29
|
+
settings_tokens: z.nullable(z.int()).optional(),
|
|
28
30
|
truncated: z.boolean().default(false),
|
|
29
31
|
usage_count: z.int().default(1),
|
|
30
32
|
}).transform((v) => {
|
|
31
33
|
return remap$(v, {
|
|
32
34
|
"total_tokens": "totalTokens",
|
|
35
|
+
"settings_tokens": "settingsTokens",
|
|
33
36
|
"usage_count": "usageCount",
|
|
34
37
|
});
|
|
35
38
|
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 10a04a8e4a87
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* How a connector's OAuth server metadata was obtained.
|
|
12
|
+
*/
|
|
13
|
+
export const OAuthMetadataSource = {
|
|
14
|
+
Autodiscovery: "autodiscovery",
|
|
15
|
+
Provided: "provided",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* How a connector's OAuth server metadata was obtained.
|
|
19
|
+
*/
|
|
20
|
+
export type OAuthMetadataSource = OpenEnum<typeof OAuthMetadataSource>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const OAuthMetadataSource$inboundSchema: z.ZodType<
|
|
24
|
+
OAuthMetadataSource,
|
|
25
|
+
unknown
|
|
26
|
+
> = openEnums.inboundSchema(OAuthMetadataSource);
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const OAuthMetadataSource$outboundSchema: z.ZodType<
|
|
29
|
+
string,
|
|
30
|
+
OAuthMetadataSource
|
|
31
|
+
> = openEnums.outboundSchema(OAuthMetadataSource);
|
|
@@ -56,6 +56,11 @@ export type Prompt = {
|
|
|
56
56
|
* Display description.
|
|
57
57
|
*/
|
|
58
58
|
description?: string | undefined;
|
|
59
|
+
createdBy?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* RFC 3339 timestamp.
|
|
62
|
+
*/
|
|
63
|
+
versionCreatedAt?: Date | undefined;
|
|
59
64
|
};
|
|
60
65
|
|
|
61
66
|
/** @internal */
|
|
@@ -74,6 +79,9 @@ export const Prompt$inboundSchema: z.ZodType<Prompt, unknown> = z.object({
|
|
|
74
79
|
latestVersion: z.int().optional(),
|
|
75
80
|
title: z.string().optional(),
|
|
76
81
|
description: z.string().optional(),
|
|
82
|
+
createdBy: z.string().optional(),
|
|
83
|
+
versionCreatedAt: z.iso.datetime({ offset: true }).transform(v => new Date(v))
|
|
84
|
+
.optional(),
|
|
77
85
|
});
|
|
78
86
|
|
|
79
87
|
export function promptFromJSON(
|
|
@@ -12,6 +12,14 @@ import {
|
|
|
12
12
|
ConnectorAuthenticationHeader,
|
|
13
13
|
ConnectorAuthenticationHeader$inboundSchema,
|
|
14
14
|
} from "./connectorauthenticationheader.js";
|
|
15
|
+
import {
|
|
16
|
+
ExtendedOAuthServerMetadata,
|
|
17
|
+
ExtendedOAuthServerMetadata$inboundSchema,
|
|
18
|
+
} from "./extendedoauthservermetadata.js";
|
|
19
|
+
import {
|
|
20
|
+
GlobalHeaderValue,
|
|
21
|
+
GlobalHeaderValue$inboundSchema,
|
|
22
|
+
} from "./globalheadervalue.js";
|
|
15
23
|
import {
|
|
16
24
|
OutboundAuthenticationType,
|
|
17
25
|
OutboundAuthenticationType$inboundSchema,
|
|
@@ -23,7 +31,9 @@ import {
|
|
|
23
31
|
export type PublicAuthenticationMethod = {
|
|
24
32
|
methodType: OutboundAuthenticationType;
|
|
25
33
|
headers?: Array<ConnectorAuthenticationHeader> | null | undefined;
|
|
34
|
+
globalHeaders?: { [k: string]: GlobalHeaderValue } | undefined;
|
|
26
35
|
hasDefaultCredentials: boolean;
|
|
36
|
+
oauth2ServerMetadata?: ExtendedOAuthServerMetadata | null | undefined;
|
|
27
37
|
};
|
|
28
38
|
|
|
29
39
|
/** @internal */
|
|
@@ -34,11 +44,17 @@ export const PublicAuthenticationMethod$inboundSchema: z.ZodType<
|
|
|
34
44
|
method_type: OutboundAuthenticationType$inboundSchema,
|
|
35
45
|
headers: z.nullable(z.array(ConnectorAuthenticationHeader$inboundSchema))
|
|
36
46
|
.optional(),
|
|
47
|
+
global_headers: z.record(z.string(), GlobalHeaderValue$inboundSchema)
|
|
48
|
+
.optional(),
|
|
37
49
|
has_default_credentials: z.boolean(),
|
|
50
|
+
oauth2_server_metadata: z.nullable(ExtendedOAuthServerMetadata$inboundSchema)
|
|
51
|
+
.optional(),
|
|
38
52
|
}).transform((v) => {
|
|
39
53
|
return remap$(v, {
|
|
40
54
|
"method_type": "methodType",
|
|
55
|
+
"global_headers": "globalHeaders",
|
|
41
56
|
"has_default_credentials": "hasDefaultCredentials",
|
|
57
|
+
"oauth2_server_metadata": "oauth2ServerMetadata",
|
|
42
58
|
});
|
|
43
59
|
});
|
|
44
60
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
8
|
import {
|
|
8
9
|
RegisterDeploymentRequestVespaField,
|
|
9
10
|
RegisterDeploymentRequestVespaField$Outbound,
|
|
@@ -14,6 +15,7 @@ export type RegisterDeploymentRequestVespaIndex = {
|
|
|
14
15
|
name: string;
|
|
15
16
|
fields: Array<RegisterDeploymentRequestVespaField>;
|
|
16
17
|
sd: string;
|
|
18
|
+
embeddingDimensions?: number | null | undefined;
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
/** @internal */
|
|
@@ -21,6 +23,7 @@ export type RegisterDeploymentRequestVespaIndex$Outbound = {
|
|
|
21
23
|
name: string;
|
|
22
24
|
fields: Array<RegisterDeploymentRequestVespaField$Outbound>;
|
|
23
25
|
sd: string;
|
|
26
|
+
embedding_dimensions?: number | null | undefined;
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
/** @internal */
|
|
@@ -31,6 +34,11 @@ export const RegisterDeploymentRequestVespaIndex$outboundSchema: z.ZodType<
|
|
|
31
34
|
name: z.string(),
|
|
32
35
|
fields: z.array(RegisterDeploymentRequestVespaField$outboundSchema),
|
|
33
36
|
sd: z.string(),
|
|
37
|
+
embeddingDimensions: z.nullable(z.int()).optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
embeddingDimensions: "embedding_dimensions",
|
|
41
|
+
});
|
|
34
42
|
});
|
|
35
43
|
|
|
36
44
|
export function registerDeploymentRequestVespaIndexToJSON(
|
|
@@ -16,6 +16,10 @@ import {
|
|
|
16
16
|
TempoTraceAttributeBoolValue,
|
|
17
17
|
TempoTraceAttributeBoolValue$inboundSchema,
|
|
18
18
|
} from "./tempotraceattributeboolvalue.js";
|
|
19
|
+
import {
|
|
20
|
+
TempoTraceAttributeDoubleValue,
|
|
21
|
+
TempoTraceAttributeDoubleValue$inboundSchema,
|
|
22
|
+
} from "./tempotraceattributedoublevalue.js";
|
|
19
23
|
import {
|
|
20
24
|
TempoTraceAttributeIntValue,
|
|
21
25
|
TempoTraceAttributeIntValue$inboundSchema,
|
|
@@ -31,6 +35,7 @@ import {
|
|
|
31
35
|
export type TempoTraceAttributeValue =
|
|
32
36
|
| TempoTraceAttributeStringValue
|
|
33
37
|
| TempoTraceAttributeIntValue
|
|
38
|
+
| TempoTraceAttributeDoubleValue
|
|
34
39
|
| TempoTraceAttributeBoolValue
|
|
35
40
|
| TempoTraceAttributeArrayValue;
|
|
36
41
|
|
|
@@ -45,6 +50,7 @@ export type TempoTraceAttribute = {
|
|
|
45
50
|
value:
|
|
46
51
|
| TempoTraceAttributeStringValue
|
|
47
52
|
| TempoTraceAttributeIntValue
|
|
53
|
+
| TempoTraceAttributeDoubleValue
|
|
48
54
|
| TempoTraceAttributeBoolValue
|
|
49
55
|
| TempoTraceAttributeArrayValue;
|
|
50
56
|
};
|
|
@@ -56,6 +62,7 @@ export const TempoTraceAttributeValue$inboundSchema: z.ZodType<
|
|
|
56
62
|
> = smartUnion([
|
|
57
63
|
TempoTraceAttributeStringValue$inboundSchema,
|
|
58
64
|
TempoTraceAttributeIntValue$inboundSchema,
|
|
65
|
+
TempoTraceAttributeDoubleValue$inboundSchema,
|
|
59
66
|
TempoTraceAttributeBoolValue$inboundSchema,
|
|
60
67
|
TempoTraceAttributeArrayValue$inboundSchema,
|
|
61
68
|
]);
|
|
@@ -79,6 +86,7 @@ export const TempoTraceAttribute$inboundSchema: z.ZodType<
|
|
|
79
86
|
value: smartUnion([
|
|
80
87
|
TempoTraceAttributeStringValue$inboundSchema,
|
|
81
88
|
TempoTraceAttributeIntValue$inboundSchema,
|
|
89
|
+
TempoTraceAttributeDoubleValue$inboundSchema,
|
|
82
90
|
TempoTraceAttributeBoolValue$inboundSchema,
|
|
83
91
|
TempoTraceAttributeArrayValue$inboundSchema,
|
|
84
92
|
]),
|
|
@@ -17,6 +17,10 @@ export type TempoTraceAttributeArrayElement = {
|
|
|
17
17
|
* An integer element in the array
|
|
18
18
|
*/
|
|
19
19
|
intValue?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* A floating point element in the array
|
|
22
|
+
*/
|
|
23
|
+
doubleValue?: number | null | undefined;
|
|
20
24
|
/**
|
|
21
25
|
* A boolean element in the array
|
|
22
26
|
*/
|
|
@@ -30,6 +34,7 @@ export const TempoTraceAttributeArrayElement$inboundSchema: z.ZodType<
|
|
|
30
34
|
> = z.object({
|
|
31
35
|
stringValue: z.nullable(z.string()).optional(),
|
|
32
36
|
intValue: z.nullable(z.string()).optional(),
|
|
37
|
+
doubleValue: z.nullable(z.number()).optional(),
|
|
33
38
|
boolValue: z.nullable(z.boolean()).optional(),
|
|
34
39
|
});
|
|
35
40
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e7edec9409e2
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type TempoTraceAttributeDoubleValue = {
|
|
12
|
+
/**
|
|
13
|
+
* The floating point value of the attribute
|
|
14
|
+
*/
|
|
15
|
+
doubleValue: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const TempoTraceAttributeDoubleValue$inboundSchema: z.ZodType<
|
|
20
|
+
TempoTraceAttributeDoubleValue,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
doubleValue: z.number(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function tempoTraceAttributeDoubleValueFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<TempoTraceAttributeDoubleValue, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => TempoTraceAttributeDoubleValue$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'TempoTraceAttributeDoubleValue' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -25,6 +25,7 @@ export type UsageInfoDollarDefs = {
|
|
|
25
25
|
requestCount?: number | null | undefined;
|
|
26
26
|
promptTokensDetails?: PromptTokensDetails | null | undefined;
|
|
27
27
|
completionTokensDetails?: CompletionTokensDetails | null | undefined;
|
|
28
|
+
serviceTier?: string | null | undefined;
|
|
28
29
|
promptTokenDetails?: PromptTokensDetails | null | undefined;
|
|
29
30
|
numCachedTokens?: number | null | undefined;
|
|
30
31
|
};
|
|
@@ -43,6 +44,7 @@ export const UsageInfoDollarDefs$inboundSchema: z.ZodType<
|
|
|
43
44
|
.optional(),
|
|
44
45
|
completion_tokens_details: z.nullable(CompletionTokensDetails$inboundSchema)
|
|
45
46
|
.optional(),
|
|
47
|
+
service_tier: z.nullable(z.string()).optional(),
|
|
46
48
|
prompt_token_details: z.nullable(PromptTokensDetails$inboundSchema)
|
|
47
49
|
.optional(),
|
|
48
50
|
num_cached_tokens: z.nullable(z.int()).optional(),
|
|
@@ -55,6 +57,7 @@ export const UsageInfoDollarDefs$inboundSchema: z.ZodType<
|
|
|
55
57
|
"request_count": "requestCount",
|
|
56
58
|
"prompt_tokens_details": "promptTokensDetails",
|
|
57
59
|
"completion_tokens_details": "completionTokensDetails",
|
|
60
|
+
"service_tier": "serviceTier",
|
|
58
61
|
"prompt_token_details": "promptTokenDetails",
|
|
59
62
|
"num_cached_tokens": "numCachedTokens",
|
|
60
63
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f685bfb80176
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type UserOrganization = {
|
|
12
|
+
/**
|
|
13
|
+
* The organization's unique identifier.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* The organization's display name.
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const UserOrganization$inboundSchema: z.ZodType<
|
|
24
|
+
UserOrganization,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
id: z.string(),
|
|
28
|
+
name: z.string(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function userOrganizationFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<UserOrganization, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => UserOrganization$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'UserOrganization' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7a0cb86aee63
|
|
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 UserWorkspace = {
|
|
13
|
+
/**
|
|
14
|
+
* The workspace's unique identifier.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* The workspace's display name.
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* The identifier of the organization this workspace belongs to.
|
|
23
|
+
*/
|
|
24
|
+
organizationId: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const UserWorkspace$inboundSchema: z.ZodType<UserWorkspace, unknown> = z
|
|
29
|
+
.object({
|
|
30
|
+
id: z.string(),
|
|
31
|
+
name: z.string(),
|
|
32
|
+
organization_id: z.string(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"organization_id": "organizationId",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function userWorkspaceFromJSON(
|
|
40
|
+
jsonString: string,
|
|
41
|
+
): SafeParseResult<UserWorkspace, SDKValidationError> {
|
|
42
|
+
return safeParse(
|
|
43
|
+
jsonString,
|
|
44
|
+
(x) => UserWorkspace$inboundSchema.parse(JSON.parse(x)),
|
|
45
|
+
`Failed to parse 'UserWorkspace' from JSON`,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0ef3837f40cb
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type Body = components.CreateRealtimeSessionRequest;
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type Body$Outbound = components.CreateRealtimeSessionRequest$Outbound;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const Body$outboundSchema: z.ZodType<Body$Outbound, Body> =
|
|
16
|
+
components.CreateRealtimeSessionRequest$outboundSchema;
|
|
17
|
+
|
|
18
|
+
export function bodyToJSON(body: Body): string {
|
|
19
|
+
return JSON.stringify(Body$outboundSchema.parse(body));
|
|
20
|
+
}
|
|
@@ -4,14 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
8
|
|
|
8
9
|
export type GetDeploymentV1WorkflowsDeploymentsNameGetRequest = {
|
|
9
10
|
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Scope serving status to this workflow
|
|
13
|
+
*/
|
|
14
|
+
workflowName?: string | null | undefined;
|
|
10
15
|
};
|
|
11
16
|
|
|
12
17
|
/** @internal */
|
|
13
18
|
export type GetDeploymentV1WorkflowsDeploymentsNameGetRequest$Outbound = {
|
|
14
19
|
name: string;
|
|
20
|
+
workflow_name?: string | null | undefined;
|
|
15
21
|
};
|
|
16
22
|
|
|
17
23
|
/** @internal */
|
|
@@ -21,6 +27,11 @@ export const GetDeploymentV1WorkflowsDeploymentsNameGetRequest$outboundSchema:
|
|
|
21
27
|
GetDeploymentV1WorkflowsDeploymentsNameGetRequest
|
|
22
28
|
> = z.object({
|
|
23
29
|
name: z.string(),
|
|
30
|
+
workflowName: z.nullable(z.string()).optional(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
workflowName: "workflow_name",
|
|
34
|
+
});
|
|
24
35
|
});
|
|
25
36
|
|
|
26
37
|
export function getDeploymentV1WorkflowsDeploymentsNameGetRequestToJSON(
|
|
@@ -49,6 +49,7 @@ export * from "./connectorlistworkspacecredentialsv1.js";
|
|
|
49
49
|
export * from "./connectorsharev1.js";
|
|
50
50
|
export * from "./connectorunsharev1.js";
|
|
51
51
|
export * from "./connectorupdatev1.js";
|
|
52
|
+
export * from "./createclientsessionv1clientsessionspost.js";
|
|
52
53
|
export * from "./createdatasetrecordv1observabilitydatasetsdatasetidrecordspost.js";
|
|
53
54
|
export * from "./deletecampaignv1observabilitycampaignscampaigniddelete.js";
|
|
54
55
|
export * from "./deletedatasetrecordv1observabilitydatasetrecordsdatasetrecordiddelete.js";
|
|
@@ -202,3 +203,5 @@ export * from "./updatevoicev1audiovoicesvoiceidpatch.js";
|
|
|
202
203
|
export * from "./updateworkflowexecutionv1workflowsexecutionsexecutionidupdatespost.js";
|
|
203
204
|
export * from "./updateworkflowv1workflowsworkflowidentifierput.js";
|
|
204
205
|
export * from "./usersapigetidentity.js";
|
|
206
|
+
export * from "./usersapilistorganizations.js";
|
|
207
|
+
export * from "./usersapilistworkspaces.js";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4a5dc076290b
|
|
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 UsersApiListOrganizationsSecurity = {
|
|
14
|
+
dashboardUserContextAuth: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type UsersApiListOrganizationsRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Number of organizations to skip before returning results.
|
|
20
|
+
*/
|
|
21
|
+
offset?: number | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum number of organizations to return.
|
|
24
|
+
*/
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type UsersApiListOrganizationsResponse = {
|
|
29
|
+
result: components.ListOrganizationsResponse;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type UsersApiListOrganizationsSecurity$Outbound = {
|
|
34
|
+
DashboardUserContextAuth: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const UsersApiListOrganizationsSecurity$outboundSchema: z.ZodType<
|
|
39
|
+
UsersApiListOrganizationsSecurity$Outbound,
|
|
40
|
+
UsersApiListOrganizationsSecurity
|
|
41
|
+
> = z.object({
|
|
42
|
+
dashboardUserContextAuth: z.string(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
dashboardUserContextAuth: "DashboardUserContextAuth",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function usersApiListOrganizationsSecurityToJSON(
|
|
50
|
+
usersApiListOrganizationsSecurity: UsersApiListOrganizationsSecurity,
|
|
51
|
+
): string {
|
|
52
|
+
return JSON.stringify(
|
|
53
|
+
UsersApiListOrganizationsSecurity$outboundSchema.parse(
|
|
54
|
+
usersApiListOrganizationsSecurity,
|
|
55
|
+
),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type UsersApiListOrganizationsRequest$Outbound = {
|
|
61
|
+
offset: number;
|
|
62
|
+
limit: number;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const UsersApiListOrganizationsRequest$outboundSchema: z.ZodType<
|
|
67
|
+
UsersApiListOrganizationsRequest$Outbound,
|
|
68
|
+
UsersApiListOrganizationsRequest
|
|
69
|
+
> = z.object({
|
|
70
|
+
offset: z.int().default(0),
|
|
71
|
+
limit: z.int().default(100),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function usersApiListOrganizationsRequestToJSON(
|
|
75
|
+
usersApiListOrganizationsRequest: UsersApiListOrganizationsRequest,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
UsersApiListOrganizationsRequest$outboundSchema.parse(
|
|
79
|
+
usersApiListOrganizationsRequest,
|
|
80
|
+
),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const UsersApiListOrganizationsResponse$inboundSchema: z.ZodType<
|
|
86
|
+
UsersApiListOrganizationsResponse,
|
|
87
|
+
unknown
|
|
88
|
+
> = z.object({
|
|
89
|
+
Result: components.ListOrganizationsResponse$inboundSchema,
|
|
90
|
+
}).transform((v) => {
|
|
91
|
+
return remap$(v, {
|
|
92
|
+
"Result": "result",
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export function usersApiListOrganizationsResponseFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<UsersApiListOrganizationsResponse, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => UsersApiListOrganizationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'UsersApiListOrganizationsResponse' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|