@mistralai/mistralai 2.6.1 → 2.6.2
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/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 +47 -0
- package/esm/models/components/authenticationmethodcreateorupdaterequest.d.ts.map +1 -0
- package/esm/models/components/authenticationmethodcreateorupdaterequest.js +46 -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/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 +5 -0
- package/esm/models/components/createconnectorrequest.d.ts.map +1 -1
- package/esm/models/components/createconnectorrequest.js +1 -0
- package/esm/models/components/createconnectorrequest.js.map +1 -1
- 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/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 +2 -0
- package/esm/models/components/extendedoauthservermetadata.d.ts.map +1 -1
- package/esm/models/components/extendedoauthservermetadata.js +2 -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/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 +7 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +7 -0
- package/esm/models/components/index.js.map +1 -1
- 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/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/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/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/examples/src/model_management.ts +59 -0
- package/jsr.json +1 -1
- package/package.json +1 -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 +125 -0
- package/src/models/components/chatcompletionrequest.ts +11 -0
- package/src/models/components/chatcompletionstreamrequest.ts +11 -0
- package/src/models/components/connectorauthenticationheader.ts +32 -2
- package/src/models/components/createconnectorrequest.ts +6 -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/deploymentworkerspecresponse.ts +9 -0
- package/src/models/components/extendedoauthservermetadata.ts +4 -0
- package/src/models/components/gitcommitauthor.ts +40 -0
- package/src/models/components/gitcommitmetadata.ts +46 -0
- package/src/models/components/inboundauthenticationtype.ts +19 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/components/oauth2metadatasecrets.ts +57 -0
- package/src/models/components/observabilityerrorcode.ts +1 -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/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/examples/src/async_jobs.ts +0 -51
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4a9367ab993e
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const InboundAuthenticationType = {
|
|
10
|
+
Webhook: "webhook",
|
|
11
|
+
} as const;
|
|
12
|
+
export type InboundAuthenticationType = ClosedEnum<
|
|
13
|
+
typeof InboundAuthenticationType
|
|
14
|
+
>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const InboundAuthenticationType$outboundSchema: z.ZodEnum<
|
|
18
|
+
typeof InboundAuthenticationType
|
|
19
|
+
> = z.enum(InboundAuthenticationType);
|
|
@@ -37,7 +37,9 @@ export * from "./audioformat.js";
|
|
|
37
37
|
export * from "./audiotranscriptionrequest.js";
|
|
38
38
|
export * from "./audiotranscriptionrequeststream.js";
|
|
39
39
|
export * from "./authdata.js";
|
|
40
|
+
export * from "./authdirection.js";
|
|
40
41
|
export * from "./authenticationconfiguration.js";
|
|
42
|
+
export * from "./authenticationmethodcreateorupdaterequest.js";
|
|
41
43
|
export * from "./authstatus.js";
|
|
42
44
|
export * from "./authurlresponse.js";
|
|
43
45
|
export * from "./basefielddefinition.js";
|
|
@@ -244,6 +246,8 @@ export * from "./gettrace.js";
|
|
|
244
246
|
export * from "./gettracefieldoptions.js";
|
|
245
247
|
export * from "./gettracefields.js";
|
|
246
248
|
export * from "./gettraces.js";
|
|
249
|
+
export * from "./gitcommitauthor.js";
|
|
250
|
+
export * from "./gitcommitmetadata.js";
|
|
247
251
|
export * from "./granularity.js";
|
|
248
252
|
export * from "./guardrailconfig.js";
|
|
249
253
|
export * from "./httpstatus.js";
|
|
@@ -257,6 +261,7 @@ export * from "./importdatasetfromdatasetrequest.js";
|
|
|
257
261
|
export * from "./importdatasetfromexplorerrequest.js";
|
|
258
262
|
export * from "./importdatasetfromfilerequest.js";
|
|
259
263
|
export * from "./importdatasetfromplaygroundrequest.js";
|
|
264
|
+
export * from "./inboundauthenticationtype.js";
|
|
260
265
|
export * from "./ingestionpipelineconfiguration.js";
|
|
261
266
|
export * from "./inputentries.js";
|
|
262
267
|
export * from "./inputs.js";
|
|
@@ -338,6 +343,7 @@ export * from "./moderationllmv2config.js";
|
|
|
338
343
|
export * from "./moderationobject.js";
|
|
339
344
|
export * from "./moderationresponse.js";
|
|
340
345
|
export * from "./networkencodedinput.js";
|
|
346
|
+
export * from "./oauth2metadatasecrets.js";
|
|
341
347
|
export * from "./oauth2token.js";
|
|
342
348
|
export * from "./oauth2tokenauth.js";
|
|
343
349
|
export * from "./observabilityerrorcode.js";
|
|
@@ -417,6 +423,7 @@ export * from "./registerdeploymentrequestvespafield.js";
|
|
|
417
423
|
export * from "./registerdeploymentrequestvespaindex.js";
|
|
418
424
|
export * from "./registersearchindexresponseindex.js";
|
|
419
425
|
export * from "./registrysharingscope.js";
|
|
426
|
+
export * from "./requestedservicetier.js";
|
|
420
427
|
export * from "./requestsource.js";
|
|
421
428
|
export * from "./resetinvocationbody.js";
|
|
422
429
|
export * from "./resourcelink.js";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9fac067e968f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* OAuth2 client credentials stored alongside a connector's authentication method.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
*
|
|
14
|
+
* Used by OAuth2 and Slack App auth types for token exchange and refresh flows.
|
|
15
|
+
* Contains the client credentials obtained during OAuth2 Dynamic Client Registration
|
|
16
|
+
* or provided at connector creation time.
|
|
17
|
+
*/
|
|
18
|
+
export type Oauth2MetadataSecrets = {
|
|
19
|
+
clientId?: string | null | undefined;
|
|
20
|
+
clientSecret?: string | null | undefined;
|
|
21
|
+
clientIdIssuedAt?: number | null | undefined;
|
|
22
|
+
clientSecretExpiresAt?: number | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type Oauth2MetadataSecrets$Outbound = {
|
|
27
|
+
client_id?: string | null | undefined;
|
|
28
|
+
client_secret?: string | null | undefined;
|
|
29
|
+
client_id_issued_at?: number | null | undefined;
|
|
30
|
+
client_secret_expires_at?: number | null | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const Oauth2MetadataSecrets$outboundSchema: z.ZodType<
|
|
35
|
+
Oauth2MetadataSecrets$Outbound,
|
|
36
|
+
Oauth2MetadataSecrets
|
|
37
|
+
> = z.object({
|
|
38
|
+
clientId: z.nullable(z.string()).optional(),
|
|
39
|
+
clientSecret: z.nullable(z.string()).optional(),
|
|
40
|
+
clientIdIssuedAt: z.nullable(z.int()).optional(),
|
|
41
|
+
clientSecretExpiresAt: z.nullable(z.int()).optional(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
clientId: "client_id",
|
|
45
|
+
clientSecret: "client_secret",
|
|
46
|
+
clientIdIssuedAt: "client_id_issued_at",
|
|
47
|
+
clientSecretExpiresAt: "client_secret_expires_at",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function oauth2MetadataSecretsToJSON(
|
|
52
|
+
oauth2MetadataSecrets: Oauth2MetadataSecrets,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
Oauth2MetadataSecrets$outboundSchema.parse(oauth2MetadataSecrets),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -55,6 +55,7 @@ export const ObservabilityErrorCode = {
|
|
|
55
55
|
TemplateSyntaxError: "TEMPLATE_SYNTAX_ERROR",
|
|
56
56
|
ProjectNameAlreadyExists: "PROJECT_NAME_ALREADY_EXISTS",
|
|
57
57
|
EvaluationNameAlreadyExists: "EVALUATION_NAME_ALREADY_EXISTS",
|
|
58
|
+
OptimizationTrialKeyAlreadyExists: "OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS",
|
|
58
59
|
TracesFilterQueryParseError: "TRACES_FILTER_QUERY_PARSE_ERROR",
|
|
59
60
|
TraceNotFound: "TRACE_NOT_FOUND",
|
|
60
61
|
SpanNotFound: "SPAN_NOT_FOUND",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2dea786aa53c
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const RequestedServiceTier = {
|
|
10
|
+
Auto: "auto",
|
|
11
|
+
StandardOnly: "standard_only",
|
|
12
|
+
} as const;
|
|
13
|
+
export type RequestedServiceTier = ClosedEnum<typeof RequestedServiceTier>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const RequestedServiceTier$outboundSchema: z.ZodEnum<
|
|
17
|
+
typeof RequestedServiceTier
|
|
18
|
+
> = z.enum(RequestedServiceTier);
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import * as z from "zod/v4";
|
|
7
7
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
AuthenticationMethodCreateOrUpdateRequest,
|
|
10
|
+
AuthenticationMethodCreateOrUpdateRequest$Outbound,
|
|
11
|
+
AuthenticationMethodCreateOrUpdateRequest$outboundSchema,
|
|
12
|
+
} from "./authenticationmethodcreateorupdaterequest.js";
|
|
13
13
|
|
|
14
14
|
export type UpdateConnectorRequest = {
|
|
15
15
|
/**
|
|
@@ -38,13 +38,12 @@ export type UpdateConnectorRequest = {
|
|
|
38
38
|
*/
|
|
39
39
|
server?: string | null | undefined;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* list of authentication methods to add to the connector or to update
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
authData?: AuthData | null | undefined;
|
|
43
|
+
authMethods?:
|
|
44
|
+
| Array<AuthenticationMethodCreateOrUpdateRequest>
|
|
45
|
+
| null
|
|
46
|
+
| undefined;
|
|
48
47
|
};
|
|
49
48
|
|
|
50
49
|
/** @internal */
|
|
@@ -56,8 +55,10 @@ export type UpdateConnectorRequest$Outbound = {
|
|
|
56
55
|
system_prompt?: string | null | undefined;
|
|
57
56
|
protocol: "mcp";
|
|
58
57
|
server?: string | null | undefined;
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
auth_methods?:
|
|
59
|
+
| Array<AuthenticationMethodCreateOrUpdateRequest$Outbound>
|
|
60
|
+
| null
|
|
61
|
+
| undefined;
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
/** @internal */
|
|
@@ -72,13 +73,14 @@ export const UpdateConnectorRequest$outboundSchema: z.ZodType<
|
|
|
72
73
|
systemPrompt: z.nullable(z.string()).optional(),
|
|
73
74
|
protocol: z.literal("mcp").default("mcp" as const),
|
|
74
75
|
server: z.nullable(z.string()).optional(),
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
authMethods: z.nullable(
|
|
77
|
+
z.array(AuthenticationMethodCreateOrUpdateRequest$outboundSchema),
|
|
78
|
+
).optional(),
|
|
77
79
|
}).transform((v) => {
|
|
78
80
|
return remap$(v, {
|
|
79
81
|
iconUrl: "icon_url",
|
|
80
82
|
systemPrompt: "system_prompt",
|
|
81
|
-
|
|
83
|
+
authMethods: "auth_methods",
|
|
82
84
|
});
|
|
83
85
|
});
|
|
84
86
|
|
|
@@ -14,6 +14,10 @@ export type UsageInfo = {
|
|
|
14
14
|
completionTokens?: number | undefined;
|
|
15
15
|
totalTokens?: number | undefined;
|
|
16
16
|
promptAudioSeconds?: number | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The service tier at which the request was processed: standard or priority.
|
|
19
|
+
*/
|
|
20
|
+
serviceTier?: string | null | undefined;
|
|
17
21
|
[additionalProperties: string]: unknown;
|
|
18
22
|
};
|
|
19
23
|
|
|
@@ -23,12 +27,14 @@ export const UsageInfo$inboundSchema: z.ZodType<UsageInfo, unknown> = z.object({
|
|
|
23
27
|
completion_tokens: z.int().default(0),
|
|
24
28
|
total_tokens: z.int().default(0),
|
|
25
29
|
prompt_audio_seconds: z.nullable(z.int()).optional(),
|
|
30
|
+
service_tier: z.nullable(z.string()).optional(),
|
|
26
31
|
}).catchall(z.any()).transform((v) => {
|
|
27
32
|
return remap$(v, {
|
|
28
33
|
"prompt_tokens": "promptTokens",
|
|
29
34
|
"completion_tokens": "completionTokens",
|
|
30
35
|
"total_tokens": "totalTokens",
|
|
31
36
|
"prompt_audio_seconds": "promptAudioSeconds",
|
|
37
|
+
"service_tier": "serviceTier",
|
|
32
38
|
});
|
|
33
39
|
});
|
|
34
40
|
/** @internal */
|
|
@@ -37,6 +43,7 @@ export type UsageInfo$Outbound = {
|
|
|
37
43
|
completion_tokens: number;
|
|
38
44
|
total_tokens: number;
|
|
39
45
|
prompt_audio_seconds?: number | null | undefined;
|
|
46
|
+
service_tier?: string | null | undefined;
|
|
40
47
|
[additionalProperties: string]: unknown;
|
|
41
48
|
};
|
|
42
49
|
|
|
@@ -49,6 +56,7 @@ export const UsageInfo$outboundSchema: z.ZodType<
|
|
|
49
56
|
completionTokens: z.int().default(0),
|
|
50
57
|
totalTokens: z.int().default(0),
|
|
51
58
|
promptAudioSeconds: z.nullable(z.int()).optional(),
|
|
59
|
+
serviceTier: z.nullable(z.string()).optional(),
|
|
52
60
|
}).catchall(z.any()).transform((v) => {
|
|
53
61
|
return {
|
|
54
62
|
...remap$(v, {
|
|
@@ -56,6 +64,7 @@ export const UsageInfo$outboundSchema: z.ZodType<
|
|
|
56
64
|
completionTokens: "completion_tokens",
|
|
57
65
|
totalTokens: "total_tokens",
|
|
58
66
|
promptAudioSeconds: "prompt_audio_seconds",
|
|
67
|
+
serviceTier: "service_tier",
|
|
59
68
|
}),
|
|
60
69
|
};
|
|
61
70
|
});
|
|
@@ -21,6 +21,10 @@ export type WorkflowExecutionCanceledAttributes = {
|
|
|
21
21
|
* Optional reason provided for the cancellation.
|
|
22
22
|
*/
|
|
23
23
|
reason?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
|
|
26
|
+
*/
|
|
27
|
+
attempt: number;
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
/** @internal */
|
|
@@ -30,6 +34,7 @@ export const WorkflowExecutionCanceledAttributes$inboundSchema: z.ZodType<
|
|
|
30
34
|
> = z.object({
|
|
31
35
|
task_id: z.string(),
|
|
32
36
|
reason: z.nullable(z.string()).optional(),
|
|
37
|
+
attempt: z.int().default(1),
|
|
33
38
|
}).transform((v) => {
|
|
34
39
|
return remap$(v, {
|
|
35
40
|
"task_id": "taskId",
|
|
@@ -37,6 +37,18 @@ export type WorkflowExecutionCanceledResponse = {
|
|
|
37
37
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
38
38
|
*/
|
|
39
39
|
parentWorkflowExecId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
42
|
+
*/
|
|
43
|
+
continuedRunId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
46
|
+
*/
|
|
47
|
+
firstExecutionRunId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
50
|
+
*/
|
|
51
|
+
scheduleId: string | null;
|
|
40
52
|
/**
|
|
41
53
|
* Execution ID of the workflow that emitted this event.
|
|
42
54
|
*/
|
|
@@ -68,6 +80,9 @@ export const WorkflowExecutionCanceledResponse$inboundSchema: z.ZodType<
|
|
|
68
80
|
event_timestamp: z.int(),
|
|
69
81
|
root_workflow_exec_id: z.string(),
|
|
70
82
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
83
|
+
continued_run_id: z.nullable(z.string()),
|
|
84
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
85
|
+
schedule_id: z.nullable(z.string()),
|
|
71
86
|
workflow_exec_id: z.string(),
|
|
72
87
|
workflow_run_id: z.string(),
|
|
73
88
|
workflow_name: z.string(),
|
|
@@ -81,6 +96,9 @@ export const WorkflowExecutionCanceledResponse$inboundSchema: z.ZodType<
|
|
|
81
96
|
"event_timestamp": "eventTimestamp",
|
|
82
97
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
83
98
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
99
|
+
"continued_run_id": "continuedRunId",
|
|
100
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
101
|
+
"schedule_id": "scheduleId",
|
|
84
102
|
"workflow_exec_id": "workflowExecId",
|
|
85
103
|
"workflow_run_id": "workflowRunId",
|
|
86
104
|
"workflow_name": "workflowName",
|
|
@@ -31,6 +31,10 @@ export type WorkflowExecutionCompletedAttributesResponse = {
|
|
|
31
31
|
* and encoding_options indicates the type of encryption applied.
|
|
32
32
|
*/
|
|
33
33
|
result: JSONPayloadResponse;
|
|
34
|
+
/**
|
|
35
|
+
* Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
|
|
36
|
+
*/
|
|
37
|
+
attempt: number;
|
|
34
38
|
};
|
|
35
39
|
|
|
36
40
|
/** @internal */
|
|
@@ -38,6 +42,7 @@ export const WorkflowExecutionCompletedAttributesResponse$inboundSchema:
|
|
|
38
42
|
z.ZodType<WorkflowExecutionCompletedAttributesResponse, unknown> = z.object({
|
|
39
43
|
task_id: z.string(),
|
|
40
44
|
result: JSONPayloadResponse$inboundSchema,
|
|
45
|
+
attempt: z.int().default(1),
|
|
41
46
|
}).transform((v) => {
|
|
42
47
|
return remap$(v, {
|
|
43
48
|
"task_id": "taskId",
|
|
@@ -37,6 +37,18 @@ export type WorkflowExecutionCompletedResponse = {
|
|
|
37
37
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
38
38
|
*/
|
|
39
39
|
parentWorkflowExecId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
42
|
+
*/
|
|
43
|
+
continuedRunId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
46
|
+
*/
|
|
47
|
+
firstExecutionRunId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
50
|
+
*/
|
|
51
|
+
scheduleId: string | null;
|
|
40
52
|
/**
|
|
41
53
|
* Execution ID of the workflow that emitted this event.
|
|
42
54
|
*/
|
|
@@ -68,6 +80,9 @@ export const WorkflowExecutionCompletedResponse$inboundSchema: z.ZodType<
|
|
|
68
80
|
event_timestamp: z.int(),
|
|
69
81
|
root_workflow_exec_id: z.string(),
|
|
70
82
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
83
|
+
continued_run_id: z.nullable(z.string()),
|
|
84
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
85
|
+
schedule_id: z.nullable(z.string()),
|
|
71
86
|
workflow_exec_id: z.string(),
|
|
72
87
|
workflow_run_id: z.string(),
|
|
73
88
|
workflow_name: z.string(),
|
|
@@ -81,6 +96,9 @@ export const WorkflowExecutionCompletedResponse$inboundSchema: z.ZodType<
|
|
|
81
96
|
"event_timestamp": "eventTimestamp",
|
|
82
97
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
83
98
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
99
|
+
"continued_run_id": "continuedRunId",
|
|
100
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
101
|
+
"schedule_id": "scheduleId",
|
|
84
102
|
"workflow_exec_id": "workflowExecId",
|
|
85
103
|
"workflow_run_id": "workflowRunId",
|
|
86
104
|
"workflow_name": "workflowName",
|
|
@@ -38,6 +38,18 @@ export type WorkflowExecutionContinuedAsNewResponse = {
|
|
|
38
38
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
39
39
|
*/
|
|
40
40
|
parentWorkflowExecId: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
43
|
+
*/
|
|
44
|
+
continuedRunId: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
47
|
+
*/
|
|
48
|
+
firstExecutionRunId: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
51
|
+
*/
|
|
52
|
+
scheduleId: string | null;
|
|
41
53
|
/**
|
|
42
54
|
* Execution ID of the workflow that emitted this event.
|
|
43
55
|
*/
|
|
@@ -69,6 +81,9 @@ export const WorkflowExecutionContinuedAsNewResponse$inboundSchema: z.ZodType<
|
|
|
69
81
|
event_timestamp: z.int(),
|
|
70
82
|
root_workflow_exec_id: z.string(),
|
|
71
83
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
84
|
+
continued_run_id: z.nullable(z.string()),
|
|
85
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
86
|
+
schedule_id: z.nullable(z.string()),
|
|
72
87
|
workflow_exec_id: z.string(),
|
|
73
88
|
workflow_run_id: z.string(),
|
|
74
89
|
workflow_name: z.string(),
|
|
@@ -82,6 +97,9 @@ export const WorkflowExecutionContinuedAsNewResponse$inboundSchema: z.ZodType<
|
|
|
82
97
|
"event_timestamp": "eventTimestamp",
|
|
83
98
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
84
99
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
100
|
+
"continued_run_id": "continuedRunId",
|
|
101
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
102
|
+
"schedule_id": "scheduleId",
|
|
85
103
|
"workflow_exec_id": "workflowExecId",
|
|
86
104
|
"workflow_run_id": "workflowRunId",
|
|
87
105
|
"workflow_name": "workflowName",
|
|
@@ -22,6 +22,10 @@ export type WorkflowExecutionFailedAttributes = {
|
|
|
22
22
|
* Represents an error or exception that occurred during execution.
|
|
23
23
|
*/
|
|
24
24
|
failure: Failure;
|
|
25
|
+
/**
|
|
26
|
+
* Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
|
|
27
|
+
*/
|
|
28
|
+
attempt: number;
|
|
25
29
|
};
|
|
26
30
|
|
|
27
31
|
/** @internal */
|
|
@@ -31,6 +35,7 @@ export const WorkflowExecutionFailedAttributes$inboundSchema: z.ZodType<
|
|
|
31
35
|
> = z.object({
|
|
32
36
|
task_id: z.string(),
|
|
33
37
|
failure: Failure$inboundSchema,
|
|
38
|
+
attempt: z.int().default(1),
|
|
34
39
|
}).transform((v) => {
|
|
35
40
|
return remap$(v, {
|
|
36
41
|
"task_id": "taskId",
|
|
@@ -37,6 +37,18 @@ export type WorkflowExecutionFailedResponse = {
|
|
|
37
37
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
38
38
|
*/
|
|
39
39
|
parentWorkflowExecId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
42
|
+
*/
|
|
43
|
+
continuedRunId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
46
|
+
*/
|
|
47
|
+
firstExecutionRunId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
50
|
+
*/
|
|
51
|
+
scheduleId: string | null;
|
|
40
52
|
/**
|
|
41
53
|
* Execution ID of the workflow that emitted this event.
|
|
42
54
|
*/
|
|
@@ -68,6 +80,9 @@ export const WorkflowExecutionFailedResponse$inboundSchema: z.ZodType<
|
|
|
68
80
|
event_timestamp: z.int(),
|
|
69
81
|
root_workflow_exec_id: z.string(),
|
|
70
82
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
83
|
+
continued_run_id: z.nullable(z.string()),
|
|
84
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
85
|
+
schedule_id: z.nullable(z.string()),
|
|
71
86
|
workflow_exec_id: z.string(),
|
|
72
87
|
workflow_run_id: z.string(),
|
|
73
88
|
workflow_name: z.string(),
|
|
@@ -81,6 +96,9 @@ export const WorkflowExecutionFailedResponse$inboundSchema: z.ZodType<
|
|
|
81
96
|
"event_timestamp": "eventTimestamp",
|
|
82
97
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
83
98
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
99
|
+
"continued_run_id": "continuedRunId",
|
|
100
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
101
|
+
"schedule_id": "scheduleId",
|
|
84
102
|
"workflow_exec_id": "workflowExecId",
|
|
85
103
|
"workflow_run_id": "workflowRunId",
|
|
86
104
|
"workflow_name": "workflowName",
|
|
@@ -39,6 +39,10 @@ export type WorkflowExecutionStartedAttributesResponse = {
|
|
|
39
39
|
* and encoding_options indicates the type of encryption applied.
|
|
40
40
|
*/
|
|
41
41
|
input: JSONPayloadResponse;
|
|
42
|
+
/**
|
|
43
|
+
* Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
|
|
44
|
+
*/
|
|
45
|
+
attempt: number;
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
/** @internal */
|
|
@@ -48,6 +52,7 @@ export const WorkflowExecutionStartedAttributesResponse$inboundSchema:
|
|
|
48
52
|
workflow_name: z.string(),
|
|
49
53
|
display_name: z.nullable(z.string()).optional(),
|
|
50
54
|
input: JSONPayloadResponse$inboundSchema,
|
|
55
|
+
attempt: z.int().default(1),
|
|
51
56
|
}).transform((v) => {
|
|
52
57
|
return remap$(v, {
|
|
53
58
|
"task_id": "taskId",
|
|
@@ -37,6 +37,18 @@ export type WorkflowExecutionStartedResponse = {
|
|
|
37
37
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
38
38
|
*/
|
|
39
39
|
parentWorkflowExecId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
42
|
+
*/
|
|
43
|
+
continuedRunId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
46
|
+
*/
|
|
47
|
+
firstExecutionRunId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
50
|
+
*/
|
|
51
|
+
scheduleId: string | null;
|
|
40
52
|
/**
|
|
41
53
|
* Execution ID of the workflow that emitted this event.
|
|
42
54
|
*/
|
|
@@ -68,6 +80,9 @@ export const WorkflowExecutionStartedResponse$inboundSchema: z.ZodType<
|
|
|
68
80
|
event_timestamp: z.int(),
|
|
69
81
|
root_workflow_exec_id: z.string(),
|
|
70
82
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
83
|
+
continued_run_id: z.nullable(z.string()),
|
|
84
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
85
|
+
schedule_id: z.nullable(z.string()),
|
|
71
86
|
workflow_exec_id: z.string(),
|
|
72
87
|
workflow_run_id: z.string(),
|
|
73
88
|
workflow_name: z.string(),
|
|
@@ -81,6 +96,9 @@ export const WorkflowExecutionStartedResponse$inboundSchema: z.ZodType<
|
|
|
81
96
|
"event_timestamp": "eventTimestamp",
|
|
82
97
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
83
98
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
99
|
+
"continued_run_id": "continuedRunId",
|
|
100
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
101
|
+
"schedule_id": "scheduleId",
|
|
84
102
|
"workflow_exec_id": "workflowExecId",
|
|
85
103
|
"workflow_run_id": "workflowRunId",
|
|
86
104
|
"workflow_name": "workflowName",
|
|
@@ -38,6 +38,18 @@ export type WorkflowTaskFailedResponse = {
|
|
|
38
38
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
39
39
|
*/
|
|
40
40
|
parentWorkflowExecId: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
43
|
+
*/
|
|
44
|
+
continuedRunId: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
47
|
+
*/
|
|
48
|
+
firstExecutionRunId: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
51
|
+
*/
|
|
52
|
+
scheduleId: string | null;
|
|
41
53
|
/**
|
|
42
54
|
* Execution ID of the workflow that emitted this event.
|
|
43
55
|
*/
|
|
@@ -69,6 +81,9 @@ export const WorkflowTaskFailedResponse$inboundSchema: z.ZodType<
|
|
|
69
81
|
event_timestamp: z.int(),
|
|
70
82
|
root_workflow_exec_id: z.string(),
|
|
71
83
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
84
|
+
continued_run_id: z.nullable(z.string()),
|
|
85
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
86
|
+
schedule_id: z.nullable(z.string()),
|
|
72
87
|
workflow_exec_id: z.string(),
|
|
73
88
|
workflow_run_id: z.string(),
|
|
74
89
|
workflow_name: z.string(),
|
|
@@ -80,6 +95,9 @@ export const WorkflowTaskFailedResponse$inboundSchema: z.ZodType<
|
|
|
80
95
|
"event_timestamp": "eventTimestamp",
|
|
81
96
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
82
97
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
98
|
+
"continued_run_id": "continuedRunId",
|
|
99
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
100
|
+
"schedule_id": "scheduleId",
|
|
83
101
|
"workflow_exec_id": "workflowExecId",
|
|
84
102
|
"workflow_run_id": "workflowRunId",
|
|
85
103
|
"workflow_name": "workflowName",
|
|
@@ -38,6 +38,18 @@ export type WorkflowTaskTimedOutResponse = {
|
|
|
38
38
|
* Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
|
|
39
39
|
*/
|
|
40
40
|
parentWorkflowExecId: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Run ID of the execution this run continued from. Non-null for continue-as-new runs.
|
|
43
|
+
*/
|
|
44
|
+
continuedRunId: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
|
|
47
|
+
*/
|
|
48
|
+
firstExecutionRunId: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Temporal schedule ID that triggered this execution, if any.
|
|
51
|
+
*/
|
|
52
|
+
scheduleId: string | null;
|
|
41
53
|
/**
|
|
42
54
|
* Execution ID of the workflow that emitted this event.
|
|
43
55
|
*/
|
|
@@ -69,6 +81,9 @@ export const WorkflowTaskTimedOutResponse$inboundSchema: z.ZodType<
|
|
|
69
81
|
event_timestamp: z.int(),
|
|
70
82
|
root_workflow_exec_id: z.string(),
|
|
71
83
|
parent_workflow_exec_id: z.nullable(z.string()),
|
|
84
|
+
continued_run_id: z.nullable(z.string()),
|
|
85
|
+
first_execution_run_id: z.nullable(z.string()),
|
|
86
|
+
schedule_id: z.nullable(z.string()),
|
|
72
87
|
workflow_exec_id: z.string(),
|
|
73
88
|
workflow_run_id: z.string(),
|
|
74
89
|
workflow_name: z.string(),
|
|
@@ -82,6 +97,9 @@ export const WorkflowTaskTimedOutResponse$inboundSchema: z.ZodType<
|
|
|
82
97
|
"event_timestamp": "eventTimestamp",
|
|
83
98
|
"root_workflow_exec_id": "rootWorkflowExecId",
|
|
84
99
|
"parent_workflow_exec_id": "parentWorkflowExecId",
|
|
100
|
+
"continued_run_id": "continuedRunId",
|
|
101
|
+
"first_execution_run_id": "firstExecutionRunId",
|
|
102
|
+
"schedule_id": "scheduleId",
|
|
85
103
|
"workflow_exec_id": "workflowExecId",
|
|
86
104
|
"workflow_run_id": "workflowRunId",
|
|
87
105
|
"workflow_name": "workflowName",
|
|
@@ -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);
|