@mistralai/mistralai 2.6.2 → 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.
Files changed (162) hide show
  1. package/README.md +11 -2
  2. package/esm/funcs/betaUsersListOrganizations.d.ts +23 -0
  3. package/esm/funcs/betaUsersListOrganizations.d.ts.map +1 -0
  4. package/esm/funcs/betaUsersListOrganizations.js +128 -0
  5. package/esm/funcs/betaUsersListOrganizations.js.map +1 -0
  6. package/esm/funcs/betaUsersListWorkspaces.d.ts +21 -0
  7. package/esm/funcs/betaUsersListWorkspaces.d.ts.map +1 -0
  8. package/esm/funcs/betaUsersListWorkspaces.js +126 -0
  9. package/esm/funcs/betaUsersListWorkspaces.js.map +1 -0
  10. package/esm/funcs/realtimeSessionsCreate.d.ts +16 -0
  11. package/esm/funcs/realtimeSessionsCreate.d.ts.map +1 -0
  12. package/esm/funcs/realtimeSessionsCreate.js +82 -0
  13. package/esm/funcs/realtimeSessionsCreate.js.map +1 -0
  14. package/esm/funcs/workflowsDeploymentsGetDeployment.js +5 -1
  15. package/esm/funcs/workflowsDeploymentsGetDeployment.js.map +1 -1
  16. package/esm/lib/config.d.ts +2 -2
  17. package/esm/lib/config.js +2 -2
  18. package/esm/models/components/authenticationmethodcreateorupdaterequest.d.ts +10 -0
  19. package/esm/models/components/authenticationmethodcreateorupdaterequest.d.ts.map +1 -1
  20. package/esm/models/components/authenticationmethodcreateorupdaterequest.js +4 -0
  21. package/esm/models/components/authenticationmethodcreateorupdaterequest.js.map +1 -1
  22. package/esm/models/components/clientsecret.d.ts +11 -0
  23. package/esm/models/components/clientsecret.d.ts.map +1 -0
  24. package/esm/models/components/clientsecret.js +21 -0
  25. package/esm/models/components/clientsecret.js.map +1 -0
  26. package/esm/models/components/clientsessionpurpose.d.ts +15 -0
  27. package/esm/models/components/clientsessionpurpose.d.ts.map +1 -0
  28. package/esm/models/components/clientsessionpurpose.js +14 -0
  29. package/esm/models/components/clientsessionpurpose.js.map +1 -0
  30. package/esm/models/components/createconnectorrequest.d.ts +10 -0
  31. package/esm/models/components/createconnectorrequest.d.ts.map +1 -1
  32. package/esm/models/components/createconnectorrequest.js +4 -0
  33. package/esm/models/components/createconnectorrequest.js.map +1 -1
  34. package/esm/models/components/createingestionpipelineconfigurationrequest.d.ts +3 -0
  35. package/esm/models/components/createingestionpipelineconfigurationrequest.d.ts.map +1 -1
  36. package/esm/models/components/createingestionpipelineconfigurationrequest.js +3 -0
  37. package/esm/models/components/createingestionpipelineconfigurationrequest.js.map +1 -1
  38. package/esm/models/components/createrealtimesessionrequest.d.ts +17 -0
  39. package/esm/models/components/createrealtimesessionrequest.d.ts.map +1 -0
  40. package/esm/models/components/createrealtimesessionrequest.js +14 -0
  41. package/esm/models/components/createrealtimesessionrequest.js.map +1 -0
  42. package/esm/models/components/createrealtimesessionresponse.d.ts +18 -0
  43. package/esm/models/components/createrealtimesessionresponse.d.ts.map +1 -0
  44. package/esm/models/components/createrealtimesessionresponse.js +25 -0
  45. package/esm/models/components/createrealtimesessionresponse.js.map +1 -0
  46. package/esm/models/components/deploymentdetailresponse.d.ts +2 -0
  47. package/esm/models/components/deploymentdetailresponse.d.ts.map +1 -1
  48. package/esm/models/components/deploymentdetailresponse.js.map +1 -1
  49. package/esm/models/components/deploymentresponse.d.ts +2 -0
  50. package/esm/models/components/deploymentresponse.d.ts.map +1 -1
  51. package/esm/models/components/deploymentresponse.js.map +1 -1
  52. package/esm/models/components/extendedoauthservermetadata.d.ts +8 -0
  53. package/esm/models/components/extendedoauthservermetadata.d.ts.map +1 -1
  54. package/esm/models/components/extendedoauthservermetadata.js +65 -0
  55. package/esm/models/components/extendedoauthservermetadata.js.map +1 -1
  56. package/esm/models/components/globalheadervalue.d.ts +26 -0
  57. package/esm/models/components/globalheadervalue.d.ts.map +1 -0
  58. package/esm/models/components/globalheadervalue.js +32 -0
  59. package/esm/models/components/globalheadervalue.js.map +1 -0
  60. package/esm/models/components/index.d.ts +11 -0
  61. package/esm/models/components/index.d.ts.map +1 -1
  62. package/esm/models/components/index.js +11 -0
  63. package/esm/models/components/index.js.map +1 -1
  64. package/esm/models/components/ingestionpipelinetargetindexref.d.ts +14 -0
  65. package/esm/models/components/ingestionpipelinetargetindexref.d.ts.map +1 -0
  66. package/esm/models/components/ingestionpipelinetargetindexref.js +14 -0
  67. package/esm/models/components/ingestionpipelinetargetindexref.js.map +1 -0
  68. package/esm/models/components/listorganizationsresponse.d.ts +14 -0
  69. package/esm/models/components/listorganizationsresponse.d.ts.map +1 -0
  70. package/esm/models/components/listorganizationsresponse.js +15 -0
  71. package/esm/models/components/listorganizationsresponse.js.map +1 -0
  72. package/esm/models/components/listworkspacesresponse.d.ts +14 -0
  73. package/esm/models/components/listworkspacesresponse.d.ts.map +1 -0
  74. package/esm/models/components/listworkspacesresponse.js +15 -0
  75. package/esm/models/components/listworkspacesresponse.js.map +1 -0
  76. package/esm/models/components/oauthmetadatasource.d.ts +18 -0
  77. package/esm/models/components/oauthmetadatasource.d.ts.map +1 -0
  78. package/esm/models/components/oauthmetadatasource.js +17 -0
  79. package/esm/models/components/oauthmetadatasource.js.map +1 -0
  80. package/esm/models/components/publicauthenticationmethod.d.ts +6 -0
  81. package/esm/models/components/publicauthenticationmethod.d.ts.map +1 -1
  82. package/esm/models/components/publicauthenticationmethod.js +8 -0
  83. package/esm/models/components/publicauthenticationmethod.js.map +1 -1
  84. package/esm/models/components/userorganization.d.ts +17 -0
  85. package/esm/models/components/userorganization.d.ts.map +1 -0
  86. package/esm/models/components/userorganization.js +15 -0
  87. package/esm/models/components/userorganization.js.map +1 -0
  88. package/esm/models/components/userworkspace.d.ts +21 -0
  89. package/esm/models/components/userworkspace.d.ts.map +1 -0
  90. package/esm/models/components/userworkspace.js +22 -0
  91. package/esm/models/components/userworkspace.js.map +1 -0
  92. package/esm/models/operations/createclientsessionv1clientsessionspost.d.ts +9 -0
  93. package/esm/models/operations/createclientsessionv1clientsessionspost.d.ts.map +1 -0
  94. package/esm/models/operations/createclientsessionv1clientsessionspost.js +11 -0
  95. package/esm/models/operations/createclientsessionv1clientsessionspost.js.map +1 -0
  96. package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.d.ts +5 -0
  97. package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.d.ts.map +1 -1
  98. package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.js +6 -0
  99. package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.js.map +1 -1
  100. package/esm/models/operations/index.d.ts +3 -0
  101. package/esm/models/operations/index.d.ts.map +1 -1
  102. package/esm/models/operations/index.js +3 -0
  103. package/esm/models/operations/index.js.map +1 -1
  104. package/esm/models/operations/usersapilistorganizations.d.ts +39 -0
  105. package/esm/models/operations/usersapilistorganizations.d.ts.map +1 -0
  106. package/esm/models/operations/usersapilistorganizations.js +39 -0
  107. package/esm/models/operations/usersapilistorganizations.js.map +1 -0
  108. package/esm/models/operations/usersapilistworkspaces.d.ts +44 -0
  109. package/esm/models/operations/usersapilistworkspaces.d.ts.map +1 -0
  110. package/esm/models/operations/usersapilistworkspaces.js +44 -0
  111. package/esm/models/operations/usersapilistworkspaces.js.map +1 -0
  112. package/esm/sdk/realtime.d.ts +7 -0
  113. package/esm/sdk/realtime.d.ts.map +1 -0
  114. package/esm/sdk/realtime.js +13 -0
  115. package/esm/sdk/realtime.js.map +1 -0
  116. package/esm/sdk/sdk.d.ts +3 -0
  117. package/esm/sdk/sdk.d.ts.map +1 -1
  118. package/esm/sdk/sdk.js +5 -0
  119. package/esm/sdk/sdk.js.map +1 -1
  120. package/esm/sdk/sessions.d.ts +10 -0
  121. package/esm/sdk/sessions.d.ts.map +1 -0
  122. package/esm/sdk/sessions.js +16 -0
  123. package/esm/sdk/sessions.js.map +1 -0
  124. package/esm/sdk/users.d.ts +23 -0
  125. package/esm/sdk/users.d.ts.map +1 -1
  126. package/esm/sdk/users.js +25 -0
  127. package/esm/sdk/users.js.map +1 -1
  128. package/jsr.json +1 -1
  129. package/package.json +1 -1
  130. package/src/funcs/betaUsersListOrganizations.ts +257 -0
  131. package/src/funcs/betaUsersListWorkspaces.ts +257 -0
  132. package/src/funcs/realtimeSessionsCreate.ts +170 -0
  133. package/src/funcs/workflowsDeploymentsGetDeployment.ts +6 -1
  134. package/src/lib/config.ts +2 -2
  135. package/src/models/components/authenticationmethodcreateorupdaterequest.ts +13 -0
  136. package/src/models/components/clientsecret.ts +36 -0
  137. package/src/models/components/clientsessionpurpose.ts +23 -0
  138. package/src/models/components/createconnectorrequest.ts +13 -0
  139. package/src/models/components/createingestionpipelineconfigurationrequest.ts +14 -0
  140. package/src/models/components/createrealtimesessionrequest.ts +39 -0
  141. package/src/models/components/createrealtimesessionresponse.ts +51 -0
  142. package/src/models/components/deploymentdetailresponse.ts +2 -0
  143. package/src/models/components/deploymentresponse.ts +2 -0
  144. package/src/models/components/extendedoauthservermetadata.ts +95 -0
  145. package/src/models/components/globalheadervalue.ts +70 -0
  146. package/src/models/components/index.ts +11 -0
  147. package/src/models/components/ingestionpipelinetargetindexref.ts +36 -0
  148. package/src/models/components/listorganizationsresponse.ts +38 -0
  149. package/src/models/components/listworkspacesresponse.ts +35 -0
  150. package/src/models/components/oauthmetadatasource.ts +31 -0
  151. package/src/models/components/publicauthenticationmethod.ts +16 -0
  152. package/src/models/components/userorganization.ts +39 -0
  153. package/src/models/components/userworkspace.ts +47 -0
  154. package/src/models/operations/createclientsessionv1clientsessionspost.ts +20 -0
  155. package/src/models/operations/getdeploymentv1workflowsdeploymentsnameget.ts +11 -0
  156. package/src/models/operations/index.ts +3 -0
  157. package/src/models/operations/usersapilistorganizations.ts +104 -0
  158. package/src/models/operations/usersapilistworkspaces.ts +114 -0
  159. package/src/sdk/realtime.ts +14 -0
  160. package/src/sdk/sdk.ts +6 -0
  161. package/src/sdk/sessions.ts +26 -0
  162. package/src/sdk/users.ts +52 -0
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { MistralCore } from "../core.js";
7
- import { encodeSimple } from "../lib/encodings.js";
7
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
8
  import { matchStatusCode } from "../lib/http.js";
9
9
  import * as M from "../lib/matchers.js";
10
10
  import { compactMap } from "../lib/primitives.js";
@@ -100,6 +100,10 @@ async function $do(
100
100
  };
101
101
  const path = pathToFunc("/v1/workflows/deployments/{name}")(pathParams);
102
102
 
103
+ const query = encodeFormQuery({
104
+ "workflow_name": payload.workflow_name,
105
+ });
106
+
103
107
  const headers = new Headers(compactMap({
104
108
  Accept: "application/json",
105
109
  }));
@@ -129,6 +133,7 @@ async function $do(
129
133
  baseURL: options?.serverURL,
130
134
  path: path,
131
135
  headers: headers,
136
+ query: query,
132
137
  body: body,
133
138
  userAgent: client._options.userAgent,
134
139
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
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.2",
73
+ sdkVersion: "2.6.3",
74
74
  genVersion: "2.884.13",
75
75
  userAgent:
76
- "speakeasy-sdk/typescript 2.6.2 2.884.13 1.0.0 @mistralai/mistralai",
76
+ "speakeasy-sdk/typescript 2.6.3 2.884.13 1.0.0 @mistralai/mistralai",
77
77
  } as const;
@@ -20,6 +20,11 @@ import {
20
20
  ExtendedOAuthServerMetadata$Outbound,
21
21
  ExtendedOAuthServerMetadata$outboundSchema,
22
22
  } from "./extendedoauthservermetadata.js";
23
+ import {
24
+ GlobalHeaderValue,
25
+ GlobalHeaderValue$Outbound,
26
+ GlobalHeaderValue$outboundSchema,
27
+ } from "./globalheadervalue.js";
23
28
  import {
24
29
  InboundAuthenticationType,
25
30
  InboundAuthenticationType$outboundSchema,
@@ -49,6 +54,10 @@ export type AuthenticationMethodCreateOrUpdateRequest = {
49
54
  * Set of headers to connect to the connector
50
55
  */
51
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;
52
61
  /**
53
62
  * New OAuth2 client credentials (client_id and client_secret).
54
63
  */
@@ -80,6 +89,7 @@ export type AuthenticationMethodCreateOrUpdateRequest$Outbound = {
80
89
  method_type: string | string;
81
90
  auth_direction?: string | undefined;
82
91
  headers?: Array<ConnectorAuthenticationHeader$Outbound> | null | undefined;
92
+ global_headers?: { [k: string]: GlobalHeaderValue$Outbound } | undefined;
83
93
  oauth2_metadata_secrets?: Oauth2MetadataSecrets$Outbound | null | undefined;
84
94
  oauth2_server_metadata?:
85
95
  | ExtendedOAuthServerMetadata$Outbound
@@ -100,6 +110,8 @@ export const AuthenticationMethodCreateOrUpdateRequest$outboundSchema:
100
110
  authDirection: AuthDirection$outboundSchema.optional(),
101
111
  headers: z.nullable(z.array(ConnectorAuthenticationHeader$outboundSchema))
102
112
  .optional(),
113
+ globalHeaders: z.record(z.string(), GlobalHeaderValue$outboundSchema)
114
+ .optional(),
103
115
  oauth2MetadataSecrets: z.nullable(Oauth2MetadataSecrets$outboundSchema)
104
116
  .optional(),
105
117
  oauth2ServerMetadata: z.nullable(ExtendedOAuthServerMetadata$outboundSchema)
@@ -108,6 +120,7 @@ export const AuthenticationMethodCreateOrUpdateRequest$outboundSchema:
108
120
  return remap$(v, {
109
121
  methodType: "method_type",
110
122
  authDirection: "auth_direction",
123
+ globalHeaders: "global_headers",
111
124
  oauth2MetadataSecrets: "oauth2_metadata_secrets",
112
125
  oauth2ServerMetadata: "oauth2_server_metadata",
113
126
  });
@@ -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);
@@ -15,6 +15,11 @@ import {
15
15
  ExtendedOAuthServerMetadata$Outbound,
16
16
  ExtendedOAuthServerMetadata$outboundSchema,
17
17
  } from "./extendedoauthservermetadata.js";
18
+ import {
19
+ GlobalHeaderValue,
20
+ GlobalHeaderValue$Outbound,
21
+ GlobalHeaderValue$outboundSchema,
22
+ } from "./globalheadervalue.js";
18
23
  import {
19
24
  PublicResourceVisibility,
20
25
  PublicResourceVisibility$outboundSchema,
@@ -67,6 +72,10 @@ export type CreateConnectorRequest = {
67
72
  * Optional organization-level headers to be sent with the request to the mcp server.
68
73
  */
69
74
  headers?: { [k: string]: any } | null | undefined;
75
+ /**
76
+ * Optional connector-wide headers, keyed by header name, set at creation and applied to every credential. Secret values are encrypted at rest and never returned in clear.
77
+ */
78
+ globalHeaders?: { [k: string]: GlobalHeaderValue } | undefined;
70
79
  /**
71
80
  * Optional additional authentication data for the connector.
72
81
  */
@@ -95,6 +104,7 @@ export type CreateConnectorRequest$Outbound = {
95
104
  visibility?: string | undefined;
96
105
  server: string;
97
106
  headers?: { [k: string]: any } | null | undefined;
107
+ global_headers?: { [k: string]: GlobalHeaderValue$Outbound } | undefined;
98
108
  auth_data?: AuthData$Outbound | null | undefined;
99
109
  oauth2_server_metadata?:
100
110
  | ExtendedOAuthServerMetadata$Outbound
@@ -117,6 +127,8 @@ export const CreateConnectorRequest$outboundSchema: z.ZodType<
117
127
  visibility: PublicResourceVisibility$outboundSchema.optional(),
118
128
  server: z.string(),
119
129
  headers: z.nullable(z.record(z.string(), z.any())).optional(),
130
+ globalHeaders: z.record(z.string(), GlobalHeaderValue$outboundSchema)
131
+ .optional(),
120
132
  authData: z.nullable(AuthData$outboundSchema).optional(),
121
133
  oauth2ServerMetadata: z.nullable(ExtendedOAuthServerMetadata$outboundSchema)
122
134
  .optional(),
@@ -125,6 +137,7 @@ export const CreateConnectorRequest$outboundSchema: z.ZodType<
125
137
  }).transform((v) => {
126
138
  return remap$(v, {
127
139
  iconUrl: "icon_url",
140
+ globalHeaders: "global_headers",
128
141
  authData: "auth_data",
129
142
  oauth2ServerMetadata: "oauth2_server_metadata",
130
143
  oauth2ServerMetadataUrl: "oauth2_server_metadata_url",
@@ -5,16 +5,26 @@
5
5
 
6
6
  import * as z from "zod/v4";
7
7
  import { remap as remap$ } from "../../lib/primitives.js";
8
+ import {
9
+ IngestionPipelineTargetIndexRef,
10
+ IngestionPipelineTargetIndexRef$Outbound,
11
+ IngestionPipelineTargetIndexRef$outboundSchema,
12
+ } from "./ingestionpipelinetargetindexref.js";
8
13
 
9
14
  export type CreateIngestionPipelineConfigurationRequest = {
10
15
  name: string;
11
16
  pipelineComposition?: { [k: string]: string } | null | undefined;
17
+ targetIndexes?: Array<IngestionPipelineTargetIndexRef> | null | undefined;
12
18
  };
13
19
 
14
20
  /** @internal */
15
21
  export type CreateIngestionPipelineConfigurationRequest$Outbound = {
16
22
  name: string;
17
23
  pipeline_composition?: { [k: string]: string } | null | undefined;
24
+ target_indexes?:
25
+ | Array<IngestionPipelineTargetIndexRef$Outbound>
26
+ | null
27
+ | undefined;
18
28
  };
19
29
 
20
30
  /** @internal */
@@ -26,9 +36,13 @@ export const CreateIngestionPipelineConfigurationRequest$outboundSchema:
26
36
  name: z.string(),
27
37
  pipelineComposition: z.nullable(z.record(z.string(), z.string()))
28
38
  .optional(),
39
+ targetIndexes: z.nullable(
40
+ z.array(IngestionPipelineTargetIndexRef$outboundSchema),
41
+ ).optional(),
29
42
  }).transform((v) => {
30
43
  return remap$(v, {
31
44
  pipelineComposition: "pipeline_composition",
45
+ targetIndexes: "target_indexes",
32
46
  });
33
47
  });
34
48
 
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 36695fe8032a
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+
8
+ /**
9
+ * Payload used to create realtime client sessions.
10
+ */
11
+ export type CreateRealtimeSessionRequest = {
12
+ purpose: "realtime";
13
+ model: string;
14
+ };
15
+
16
+ /** @internal */
17
+ export type CreateRealtimeSessionRequest$Outbound = {
18
+ purpose: "realtime";
19
+ model: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const CreateRealtimeSessionRequest$outboundSchema: z.ZodType<
24
+ CreateRealtimeSessionRequest$Outbound,
25
+ CreateRealtimeSessionRequest
26
+ > = z.object({
27
+ purpose: z.literal("realtime"),
28
+ model: z.string(),
29
+ });
30
+
31
+ export function createRealtimeSessionRequestToJSON(
32
+ createRealtimeSessionRequest: CreateRealtimeSessionRequest,
33
+ ): string {
34
+ return JSON.stringify(
35
+ CreateRealtimeSessionRequest$outboundSchema.parse(
36
+ createRealtimeSessionRequest,
37
+ ),
38
+ );
39
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 54b042ff1e68
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
+ import { ClientSecret, ClientSecret$inboundSchema } from "./clientsecret.js";
12
+ import {
13
+ ClientSessionPurpose,
14
+ ClientSessionPurpose$inboundSchema,
15
+ } from "./clientsessionpurpose.js";
16
+
17
+ export type CreateRealtimeSessionResponse = {
18
+ object: "client.session";
19
+ /**
20
+ * Supported purposes for client sessions.
21
+ */
22
+ purpose: ClientSessionPurpose;
23
+ expiresAt: Date;
24
+ clientSecret: ClientSecret;
25
+ };
26
+
27
+ /** @internal */
28
+ export const CreateRealtimeSessionResponse$inboundSchema: z.ZodType<
29
+ CreateRealtimeSessionResponse,
30
+ unknown
31
+ > = z.object({
32
+ object: z.literal("client.session").default("client.session"),
33
+ purpose: ClientSessionPurpose$inboundSchema,
34
+ expires_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
35
+ client_secret: ClientSecret$inboundSchema,
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "expires_at": "expiresAt",
39
+ "client_secret": "clientSecret",
40
+ });
41
+ });
42
+
43
+ export function createRealtimeSessionResponseFromJSON(
44
+ jsonString: string,
45
+ ): SafeParseResult<CreateRealtimeSessionResponse, SDKValidationError> {
46
+ return safeParse(
47
+ jsonString,
48
+ (x) => CreateRealtimeSessionResponse$inboundSchema.parse(JSON.parse(x)),
49
+ `Failed to parse 'CreateRealtimeSessionResponse' from JSON`,
50
+ );
51
+ }
@@ -49,6 +49,8 @@ export type DeploymentDetailResponse = {
49
49
  updatedAt: Date;
50
50
  /**
51
51
  * Where the deployment is running
52
+ *
53
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
52
54
  */
53
55
  location?: DeploymentLocation | null | undefined;
54
56
  /**
@@ -45,6 +45,8 @@ export type DeploymentResponse = {
45
45
  updatedAt: Date;
46
46
  /**
47
47
  * Where the deployment is running
48
+ *
49
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
48
50
  */
49
51
  location?: DeploymentLocation | null | undefined;
50
52
  /**
@@ -5,6 +5,14 @@
5
5
 
6
6
  import * as z from "zod/v4";
7
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
+ import {
12
+ OAuthMetadataSource,
13
+ OAuthMetadataSource$inboundSchema,
14
+ OAuthMetadataSource$outboundSchema,
15
+ } from "./oauthmetadatasource.js";
8
16
 
9
17
  /**
10
18
  * Custom superset of RFC 8414 OAuth 2.0 Authorization Server Metadata.
@@ -43,10 +51,85 @@ export type ExtendedOAuthServerMetadata = {
43
51
  | undefined;
44
52
  codeChallengeMethodsSupported?: Array<string> | null | undefined;
45
53
  clientIdMetadataDocumentSupported?: boolean | null | undefined;
54
+ xSource?: OAuthMetadataSource | null | undefined;
46
55
  xResourceUrl?: string | null | undefined;
47
56
  xScope?: string | null | undefined;
48
57
  };
49
58
 
59
+ /** @internal */
60
+ export const ExtendedOAuthServerMetadata$inboundSchema: z.ZodType<
61
+ ExtendedOAuthServerMetadata,
62
+ unknown
63
+ > = z.object({
64
+ issuer: z.string(),
65
+ authorization_endpoint: z.string(),
66
+ token_endpoint: z.string(),
67
+ registration_endpoint: z.nullable(z.string()).optional(),
68
+ scopes_supported: z.nullable(z.array(z.string())).optional(),
69
+ response_types_supported: z.array(z.string()).optional(),
70
+ response_modes_supported: z.nullable(z.array(z.string())).optional(),
71
+ grant_types_supported: z.nullable(z.array(z.string())).optional(),
72
+ token_endpoint_auth_methods_supported: z.nullable(z.array(z.string()))
73
+ .optional(),
74
+ token_endpoint_auth_signing_alg_values_supported: z.nullable(
75
+ z.array(z.string()),
76
+ ).optional(),
77
+ service_documentation: z.nullable(z.string()).optional(),
78
+ ui_locales_supported: z.nullable(z.array(z.string())).optional(),
79
+ op_policy_uri: z.nullable(z.string()).optional(),
80
+ op_tos_uri: z.nullable(z.string()).optional(),
81
+ revocation_endpoint: z.nullable(z.string()).optional(),
82
+ revocation_endpoint_auth_methods_supported: z.nullable(z.array(z.string()))
83
+ .optional(),
84
+ revocation_endpoint_auth_signing_alg_values_supported: z.nullable(
85
+ z.array(z.string()),
86
+ ).optional(),
87
+ introspection_endpoint: z.nullable(z.string()).optional(),
88
+ introspection_endpoint_auth_methods_supported: z.nullable(z.array(z.string()))
89
+ .optional(),
90
+ introspection_endpoint_auth_signing_alg_values_supported: z.nullable(
91
+ z.array(z.string()),
92
+ ).optional(),
93
+ code_challenge_methods_supported: z.nullable(z.array(z.string())).optional(),
94
+ client_id_metadata_document_supported: z.nullable(z.boolean()).optional(),
95
+ x_source: z.nullable(OAuthMetadataSource$inboundSchema).optional(),
96
+ x_resource_url: z.nullable(z.string()).optional(),
97
+ x_scope: z.nullable(z.string()).optional(),
98
+ }).transform((v) => {
99
+ return remap$(v, {
100
+ "authorization_endpoint": "authorizationEndpoint",
101
+ "token_endpoint": "tokenEndpoint",
102
+ "registration_endpoint": "registrationEndpoint",
103
+ "scopes_supported": "scopesSupported",
104
+ "response_types_supported": "responseTypesSupported",
105
+ "response_modes_supported": "responseModesSupported",
106
+ "grant_types_supported": "grantTypesSupported",
107
+ "token_endpoint_auth_methods_supported":
108
+ "tokenEndpointAuthMethodsSupported",
109
+ "token_endpoint_auth_signing_alg_values_supported":
110
+ "tokenEndpointAuthSigningAlgValuesSupported",
111
+ "service_documentation": "serviceDocumentation",
112
+ "ui_locales_supported": "uiLocalesSupported",
113
+ "op_policy_uri": "opPolicyUri",
114
+ "op_tos_uri": "opTosUri",
115
+ "revocation_endpoint": "revocationEndpoint",
116
+ "revocation_endpoint_auth_methods_supported":
117
+ "revocationEndpointAuthMethodsSupported",
118
+ "revocation_endpoint_auth_signing_alg_values_supported":
119
+ "revocationEndpointAuthSigningAlgValuesSupported",
120
+ "introspection_endpoint": "introspectionEndpoint",
121
+ "introspection_endpoint_auth_methods_supported":
122
+ "introspectionEndpointAuthMethodsSupported",
123
+ "introspection_endpoint_auth_signing_alg_values_supported":
124
+ "introspectionEndpointAuthSigningAlgValuesSupported",
125
+ "code_challenge_methods_supported": "codeChallengeMethodsSupported",
126
+ "client_id_metadata_document_supported":
127
+ "clientIdMetadataDocumentSupported",
128
+ "x_source": "xSource",
129
+ "x_resource_url": "xResourceUrl",
130
+ "x_scope": "xScope",
131
+ });
132
+ });
50
133
  /** @internal */
51
134
  export type ExtendedOAuthServerMetadata$Outbound = {
52
135
  issuer: string;
@@ -83,6 +166,7 @@ export type ExtendedOAuthServerMetadata$Outbound = {
83
166
  | undefined;
84
167
  code_challenge_methods_supported?: Array<string> | null | undefined;
85
168
  client_id_metadata_document_supported?: boolean | null | undefined;
169
+ x_source?: string | null | undefined;
86
170
  x_resource_url?: string | null | undefined;
87
171
  x_scope?: string | null | undefined;
88
172
  };
@@ -121,6 +205,7 @@ export const ExtendedOAuthServerMetadata$outboundSchema: z.ZodType<
121
205
  ).optional(),
122
206
  codeChallengeMethodsSupported: z.nullable(z.array(z.string())).optional(),
123
207
  clientIdMetadataDocumentSupported: z.nullable(z.boolean()).optional(),
208
+ xSource: z.nullable(OAuthMetadataSource$outboundSchema).optional(),
124
209
  xResourceUrl: z.nullable(z.string()).optional(),
125
210
  xScope: z.nullable(z.string()).optional(),
126
211
  }).transform((v) => {
@@ -151,6 +236,7 @@ export const ExtendedOAuthServerMetadata$outboundSchema: z.ZodType<
151
236
  "introspection_endpoint_auth_signing_alg_values_supported",
152
237
  codeChallengeMethodsSupported: "code_challenge_methods_supported",
153
238
  clientIdMetadataDocumentSupported: "client_id_metadata_document_supported",
239
+ xSource: "x_source",
154
240
  xResourceUrl: "x_resource_url",
155
241
  xScope: "x_scope",
156
242
  });
@@ -165,3 +251,12 @@ export function extendedOAuthServerMetadataToJSON(
165
251
  ),
166
252
  );
167
253
  }
254
+ export function extendedOAuthServerMetadataFromJSON(
255
+ jsonString: string,
256
+ ): SafeParseResult<ExtendedOAuthServerMetadata, SDKValidationError> {
257
+ return safeParse(
258
+ jsonString,
259
+ (x) => ExtendedOAuthServerMetadata$inboundSchema.parse(JSON.parse(x)),
260
+ `Failed to parse 'ExtendedOAuthServerMetadata' from JSON`,
261
+ );
262
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 710f48b40205
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
+ /**
13
+ * Value of a connector-wide header. ``value`` is plaintext in memory so create
14
+ *
15
+ * @remarks
16
+ * round-trips and encryption-at-rest keep the real value; secrets are redacted only
17
+ * on JSON serialization (API responses).
18
+ */
19
+ export type GlobalHeaderValue = {
20
+ isSecret?: boolean | undefined;
21
+ value: string;
22
+ };
23
+
24
+ /** @internal */
25
+ export const GlobalHeaderValue$inboundSchema: z.ZodType<
26
+ GlobalHeaderValue,
27
+ unknown
28
+ > = z.object({
29
+ is_secret: z.boolean().default(true),
30
+ value: z.string(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "is_secret": "isSecret",
34
+ });
35
+ });
36
+ /** @internal */
37
+ export type GlobalHeaderValue$Outbound = {
38
+ is_secret: boolean;
39
+ value: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const GlobalHeaderValue$outboundSchema: z.ZodType<
44
+ GlobalHeaderValue$Outbound,
45
+ GlobalHeaderValue
46
+ > = z.object({
47
+ isSecret: z.boolean().default(true),
48
+ value: z.string(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ isSecret: "is_secret",
52
+ });
53
+ });
54
+
55
+ export function globalHeaderValueToJSON(
56
+ globalHeaderValue: GlobalHeaderValue,
57
+ ): string {
58
+ return JSON.stringify(
59
+ GlobalHeaderValue$outboundSchema.parse(globalHeaderValue),
60
+ );
61
+ }
62
+ export function globalHeaderValueFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<GlobalHeaderValue, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => GlobalHeaderValue$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'GlobalHeaderValue' from JSON`,
69
+ );
70
+ }
@@ -70,6 +70,8 @@ export * from "./classificationtargetresult.js";
70
70
  export * from "./classifierfinetunedmodel.js";
71
71
  export * from "./classifiertargetresult.js";
72
72
  export * from "./clientcapabilities.js";
73
+ export * from "./clientsecret.js";
74
+ export * from "./clientsessionpurpose.js";
73
75
  export * from "./clienttaskscapability.js";
74
76
  export * from "./clienttasksrequestscapability.js";
75
77
  export * from "./codeinterpretertool.js";
@@ -121,6 +123,8 @@ export * from "./createjudgerequest.js";
121
123
  export * from "./createlibraryrequest.js";
122
124
  export * from "./createpromptrequest.js";
123
125
  export * from "./createpromptversionresponse.js";
126
+ export * from "./createrealtimesessionrequest.js";
127
+ export * from "./createrealtimesessionresponse.js";
124
128
  export * from "./createskillrequest.js";
125
129
  export * from "./createskillversionresponse.js";
126
130
  export * from "./credentialscreateorupdate.js";
@@ -248,6 +252,7 @@ export * from "./gettracefields.js";
248
252
  export * from "./gettraces.js";
249
253
  export * from "./gitcommitauthor.js";
250
254
  export * from "./gitcommitmetadata.js";
255
+ export * from "./globalheadervalue.js";
251
256
  export * from "./granularity.js";
252
257
  export * from "./guardrailconfig.js";
253
258
  export * from "./httpstatus.js";
@@ -263,6 +268,7 @@ export * from "./importdatasetfromfilerequest.js";
263
268
  export * from "./importdatasetfromplaygroundrequest.js";
264
269
  export * from "./inboundauthenticationtype.js";
265
270
  export * from "./ingestionpipelineconfiguration.js";
271
+ export * from "./ingestionpipelinetargetindexref.js";
266
272
  export * from "./inputentries.js";
267
273
  export * from "./inputs.js";
268
274
  export * from "./instructrequest.js";
@@ -296,6 +302,7 @@ export * from "./listdocumentsresponse.js";
296
302
  export * from "./listfilesresponse.js";
297
303
  export * from "./listjudgesresponse.js";
298
304
  export * from "./listlibrariesresponse.js";
305
+ export * from "./listorganizationsresponse.js";
299
306
  export * from "./listpromptsresponse.js";
300
307
  export * from "./listpromptversionsresponse.js";
301
308
  export * from "./listsharingresponse.js";
@@ -304,6 +311,7 @@ export * from "./listskillversionsresponse.js";
304
311
  export * from "./listsortdirection.js";
305
312
  export * from "./listsortfield.js";
306
313
  export * from "./listworkfloweventresponse.js";
314
+ export * from "./listworkspacesresponse.js";
307
315
  export * from "./locationtype.js";
308
316
  export * from "./logicalexpression.js";
309
317
  export * from "./logsrequest.js";
@@ -346,6 +354,7 @@ export * from "./networkencodedinput.js";
346
354
  export * from "./oauth2metadatasecrets.js";
347
355
  export * from "./oauth2token.js";
348
356
  export * from "./oauth2tokenauth.js";
357
+ export * from "./oauthmetadatasource.js";
349
358
  export * from "./observabilityerrorcode.js";
350
359
  export * from "./observabilityerrordetail.js";
351
360
  export * from "./ocrasidetextblock.js";
@@ -568,6 +577,8 @@ export * from "./useridentityapikey.js";
568
577
  export * from "./useridentityorganization.js";
569
578
  export * from "./useridentityworkspace.js";
570
579
  export * from "./usermessage.js";
580
+ export * from "./userorganization.js";
581
+ export * from "./userworkspace.js";
571
582
  export * from "./validationerror.js";
572
583
  export * from "./voicecreaterequest.js";
573
584
  export * from "./voicelistresponse.js";
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2f5c19bbf71c
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+
8
+ export type IngestionPipelineTargetIndexRef = {
9
+ type?: "vespa" | undefined;
10
+ name: string;
11
+ };
12
+
13
+ /** @internal */
14
+ export type IngestionPipelineTargetIndexRef$Outbound = {
15
+ type: "vespa";
16
+ name: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const IngestionPipelineTargetIndexRef$outboundSchema: z.ZodType<
21
+ IngestionPipelineTargetIndexRef$Outbound,
22
+ IngestionPipelineTargetIndexRef
23
+ > = z.object({
24
+ type: z.literal("vespa").default("vespa" as const),
25
+ name: z.string(),
26
+ });
27
+
28
+ export function ingestionPipelineTargetIndexRefToJSON(
29
+ ingestionPipelineTargetIndexRef: IngestionPipelineTargetIndexRef,
30
+ ): string {
31
+ return JSON.stringify(
32
+ IngestionPipelineTargetIndexRef$outboundSchema.parse(
33
+ ingestionPipelineTargetIndexRef,
34
+ ),
35
+ );
36
+ }