@zapier/zapier-sdk 0.70.3 → 0.70.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/CHANGELOG.md +20 -0
- package/README.md +115 -80
- package/dist/experimental.cjs +110 -35
- package/dist/experimental.d.mts +158 -2
- package/dist/experimental.d.ts +156 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.mjs +110 -35
- package/dist/{index-rIzBEINC.d.mts → index-BNaiNmM-.d.mts} +71 -2
- package/dist/{index-rIzBEINC.d.ts → index-BNaiNmM-.d.ts} +71 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts +1 -1
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +31 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +42 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.js +20 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +35 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts +13 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.js +10 -0
- package/dist/plugins/codeSubstrate/listDurableRuns/schemas.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +22 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts +26 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.js +10 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +32 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +11 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +22 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts +14 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.js +11 -44
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts +6 -0
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/runDurable/index.js +3 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts +12 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/runDurable/schemas.js +33 -0
- package/dist/plugins/codeSubstrate/shared-schemas.d.ts +37 -0
- package/dist/plugins/codeSubstrate/shared-schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/shared-schemas.js +69 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +11 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts +2 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.js +7 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/enableWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/enableWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -107,10 +107,10 @@ export type GetDurableRunOptions = z.infer<typeof GetDurableRunOptionsSchema>;
|
|
|
107
107
|
export declare const GetDurableRunResponseSchema: z.ZodObject<{
|
|
108
108
|
id: z.ZodString;
|
|
109
109
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
110
|
+
failed: "failed";
|
|
110
111
|
initialized: "initialized";
|
|
111
112
|
started: "started";
|
|
112
113
|
finished: "finished";
|
|
113
|
-
failed: "failed";
|
|
114
114
|
cancelled: "cancelled";
|
|
115
115
|
}>, z.ZodString]>;
|
|
116
116
|
input: z.ZodUnknown;
|
|
@@ -8,10 +8,10 @@ export declare const GetTriggerRunResponseSchema: z.ZodObject<{
|
|
|
8
8
|
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
9
9
|
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
10
10
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
11
|
+
failed: "failed";
|
|
11
12
|
initialized: "initialized";
|
|
12
13
|
started: "started";
|
|
13
14
|
finished: "finished";
|
|
14
|
-
failed: "failed";
|
|
15
15
|
cancelled: "cancelled";
|
|
16
16
|
}>, z.ZodString]>;
|
|
17
17
|
input: z.ZodUnknown;
|
|
@@ -31,7 +31,16 @@ export declare const getWorkflowPlugin: (sdk: {
|
|
|
31
31
|
description: string | null;
|
|
32
32
|
trigger_url: string;
|
|
33
33
|
enabled: boolean;
|
|
34
|
+
is_private: boolean;
|
|
35
|
+
created_by_user_id: string | null;
|
|
34
36
|
current_version_id: string | null;
|
|
37
|
+
triggers: {
|
|
38
|
+
selected_api: string;
|
|
39
|
+
action: string;
|
|
40
|
+
status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
|
|
41
|
+
authentication_id?: string | null | undefined;
|
|
42
|
+
params?: Record<string, unknown> | undefined;
|
|
43
|
+
}[];
|
|
35
44
|
created_at: string;
|
|
36
45
|
updated_at: string;
|
|
37
46
|
}>;
|
|
@@ -55,6 +64,15 @@ export declare const getWorkflowPlugin: (sdk: {
|
|
|
55
64
|
description: string | null;
|
|
56
65
|
trigger_url: string;
|
|
57
66
|
enabled: boolean;
|
|
67
|
+
is_private: boolean;
|
|
68
|
+
created_by_user_id: string | null;
|
|
69
|
+
triggers: {
|
|
70
|
+
selected_api: string;
|
|
71
|
+
action: string;
|
|
72
|
+
status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
|
|
73
|
+
authentication_id?: string | null | undefined;
|
|
74
|
+
params?: Record<string, unknown> | undefined;
|
|
75
|
+
}[];
|
|
58
76
|
created_at: string;
|
|
59
77
|
updated_at: string;
|
|
60
78
|
current_version?: {
|
|
@@ -65,6 +83,19 @@ export declare const getWorkflowPlugin: (sdk: {
|
|
|
65
83
|
dependencies: Record<string, string> | null;
|
|
66
84
|
created_by_user_id: string;
|
|
67
85
|
created_at: string;
|
|
86
|
+
trigger: {
|
|
87
|
+
selected_api: string;
|
|
88
|
+
action: string;
|
|
89
|
+
authentication_id?: string | null | undefined;
|
|
90
|
+
params?: Record<string, unknown> | undefined;
|
|
91
|
+
} | null;
|
|
92
|
+
connections: Record<string, {
|
|
93
|
+
connection_id: string | number;
|
|
94
|
+
}> | null;
|
|
95
|
+
app_versions: Record<string, {
|
|
96
|
+
implementation_name: string;
|
|
97
|
+
version?: string | undefined;
|
|
98
|
+
}> | null;
|
|
68
99
|
} | undefined;
|
|
69
100
|
};
|
|
70
101
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B7B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -7,6 +7,19 @@ export declare const WorkflowVersionSchema: z.ZodObject<{
|
|
|
7
7
|
dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8
8
|
created_by_user_id: z.ZodString;
|
|
9
9
|
created_at: z.ZodString;
|
|
10
|
+
trigger: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
selected_api: z.ZodString;
|
|
12
|
+
action: z.ZodString;
|
|
13
|
+
authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
connections: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
17
|
+
connection_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
app_versions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
20
|
+
implementation_name: z.ZodString;
|
|
21
|
+
version: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
10
23
|
}, z.core.$strip>;
|
|
11
24
|
export type WorkflowVersion = z.infer<typeof WorkflowVersionSchema>;
|
|
12
25
|
export declare const GetWorkflowOptionsSchema: z.ZodObject<{
|
|
@@ -19,6 +32,8 @@ export declare const GetWorkflowResponseSchema: z.ZodObject<{
|
|
|
19
32
|
description: z.ZodNullable<z.ZodString>;
|
|
20
33
|
trigger_url: z.ZodString;
|
|
21
34
|
enabled: z.ZodBoolean;
|
|
35
|
+
is_private: z.ZodBoolean;
|
|
36
|
+
created_by_user_id: z.ZodNullable<z.ZodString>;
|
|
22
37
|
current_version: z.ZodOptional<z.ZodObject<{
|
|
23
38
|
id: z.ZodString;
|
|
24
39
|
workflow_id: z.ZodString;
|
|
@@ -27,6 +42,33 @@ export declare const GetWorkflowResponseSchema: z.ZodObject<{
|
|
|
27
42
|
dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
43
|
created_by_user_id: z.ZodString;
|
|
29
44
|
created_at: z.ZodString;
|
|
45
|
+
trigger: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
selected_api: z.ZodString;
|
|
47
|
+
action: z.ZodString;
|
|
48
|
+
authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
connections: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
52
|
+
connection_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
app_versions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
55
|
+
implementation_name: z.ZodString;
|
|
56
|
+
version: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
60
|
+
selected_api: z.ZodString;
|
|
61
|
+
action: z.ZodString;
|
|
62
|
+
authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
64
|
+
status: z.ZodEnum<{
|
|
65
|
+
pending: "pending";
|
|
66
|
+
active: "active";
|
|
67
|
+
unclaimed: "unclaimed";
|
|
68
|
+
releasing: "releasing";
|
|
69
|
+
released: "released";
|
|
70
|
+
failed: "failed";
|
|
71
|
+
}>;
|
|
30
72
|
}, z.core.$strip>>;
|
|
31
73
|
created_at: z.ZodString;
|
|
32
74
|
updated_at: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAgChC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;iBAMlC,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoCpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { AppVersionBindingSchema, ConnectionBindingSchema, WorkflowTriggerSchema, WorkflowVersionTriggerConfigSchema, } from "../shared-schemas";
|
|
2
3
|
export const WorkflowVersionSchema = z.object({
|
|
3
4
|
id: z.string().describe("Workflow version ID (UUID)"),
|
|
4
5
|
workflow_id: z.string().describe("Parent workflow ID"),
|
|
@@ -18,6 +19,15 @@ export const WorkflowVersionSchema = z.object({
|
|
|
18
19
|
.string()
|
|
19
20
|
.describe("ID of the user who published this version"),
|
|
20
21
|
created_at: z.string().describe("When the version was published (ISO-8601)"),
|
|
22
|
+
trigger: WorkflowVersionTriggerConfigSchema.nullable().describe("Trigger configuration persisted on this version, or null for webhook-only workflows."),
|
|
23
|
+
connections: z
|
|
24
|
+
.record(z.string(), ConnectionBindingSchema)
|
|
25
|
+
.nullable()
|
|
26
|
+
.describe("Connection aliases bound on this version (or null)."),
|
|
27
|
+
app_versions: z
|
|
28
|
+
.record(z.string(), AppVersionBindingSchema)
|
|
29
|
+
.nullable()
|
|
30
|
+
.describe("App-version pins bound on this version (or null)."),
|
|
21
31
|
});
|
|
22
32
|
export const GetWorkflowOptionsSchema = z
|
|
23
33
|
.object({
|
|
@@ -37,7 +47,17 @@ export const GetWorkflowResponseSchema = z.object({
|
|
|
37
47
|
enabled: z
|
|
38
48
|
.boolean()
|
|
39
49
|
.describe("Whether the workflow currently accepts triggers"),
|
|
50
|
+
is_private: z
|
|
51
|
+
.boolean()
|
|
52
|
+
.describe("Whether the workflow is private to the creating user. False means account-visible."),
|
|
53
|
+
created_by_user_id: z
|
|
54
|
+
.string()
|
|
55
|
+
.nullable()
|
|
56
|
+
.describe("User ID of the workflow creator (null in legacy data)"),
|
|
40
57
|
current_version: WorkflowVersionSchema.optional().describe("The currently published version, if any. Absent for workflows with no version published yet."),
|
|
58
|
+
triggers: z
|
|
59
|
+
.array(WorkflowTriggerSchema)
|
|
60
|
+
.describe("Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."),
|
|
41
61
|
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
42
62
|
updated_at: z
|
|
43
63
|
.string()
|
|
@@ -31,7 +31,16 @@ export declare const getWorkflowRunPlugin: (sdk: {
|
|
|
31
31
|
description: string | null;
|
|
32
32
|
trigger_url: string;
|
|
33
33
|
enabled: boolean;
|
|
34
|
+
is_private: boolean;
|
|
35
|
+
created_by_user_id: string | null;
|
|
34
36
|
current_version_id: string | null;
|
|
37
|
+
triggers: {
|
|
38
|
+
selected_api: string;
|
|
39
|
+
action: string;
|
|
40
|
+
status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
|
|
41
|
+
authentication_id?: string | null | undefined;
|
|
42
|
+
params?: Record<string, unknown> | undefined;
|
|
43
|
+
}[];
|
|
35
44
|
created_at: string;
|
|
36
45
|
updated_at: string;
|
|
37
46
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowRun/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowRun/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -10,10 +10,10 @@ export declare const GetWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
10
10
|
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
11
11
|
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
12
12
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
13
|
+
failed: "failed";
|
|
13
14
|
initialized: "initialized";
|
|
14
15
|
started: "started";
|
|
15
16
|
finished: "finished";
|
|
16
|
-
failed: "failed";
|
|
17
17
|
cancelled: "cancelled";
|
|
18
18
|
}>, z.ZodString]>;
|
|
19
19
|
input: z.ZodUnknown;
|
|
@@ -31,7 +31,16 @@ export declare const getWorkflowVersionPlugin: (sdk: {
|
|
|
31
31
|
description: string | null;
|
|
32
32
|
trigger_url: string;
|
|
33
33
|
enabled: boolean;
|
|
34
|
+
is_private: boolean;
|
|
35
|
+
created_by_user_id: string | null;
|
|
34
36
|
current_version_id: string | null;
|
|
37
|
+
triggers: {
|
|
38
|
+
selected_api: string;
|
|
39
|
+
action: string;
|
|
40
|
+
status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
|
|
41
|
+
authentication_id?: string | null | undefined;
|
|
42
|
+
params?: Record<string, unknown> | undefined;
|
|
43
|
+
}[];
|
|
35
44
|
created_at: string;
|
|
36
45
|
updated_at: string;
|
|
37
46
|
}>;
|
|
@@ -58,6 +67,19 @@ export declare const getWorkflowVersionPlugin: (sdk: {
|
|
|
58
67
|
dependencies: Record<string, string> | null;
|
|
59
68
|
created_by_user_id: string;
|
|
60
69
|
created_at: string;
|
|
70
|
+
trigger: {
|
|
71
|
+
selected_api: string;
|
|
72
|
+
action: string;
|
|
73
|
+
authentication_id?: string | null | undefined;
|
|
74
|
+
params?: Record<string, unknown> | undefined;
|
|
75
|
+
} | null;
|
|
76
|
+
connections: Record<string, {
|
|
77
|
+
connection_id: string | number;
|
|
78
|
+
}> | null;
|
|
79
|
+
app_versions: Record<string, {
|
|
80
|
+
implementation_name: string;
|
|
81
|
+
version?: string | undefined;
|
|
82
|
+
}> | null;
|
|
61
83
|
}>;
|
|
62
84
|
} & {
|
|
63
85
|
context: {
|
|
@@ -82,6 +104,19 @@ export declare const getWorkflowVersionPlugin: (sdk: {
|
|
|
82
104
|
dependencies: Record<string, string> | null;
|
|
83
105
|
created_by_user_id: string;
|
|
84
106
|
created_at: string;
|
|
107
|
+
trigger: {
|
|
108
|
+
selected_api: string;
|
|
109
|
+
action: string;
|
|
110
|
+
authentication_id?: string | null | undefined;
|
|
111
|
+
params?: Record<string, unknown> | undefined;
|
|
112
|
+
} | null;
|
|
113
|
+
connections: Record<string, {
|
|
114
|
+
connection_id: string | number;
|
|
115
|
+
}> | null;
|
|
116
|
+
app_versions: Record<string, {
|
|
117
|
+
implementation_name: string;
|
|
118
|
+
version?: string | undefined;
|
|
119
|
+
}> | null;
|
|
85
120
|
};
|
|
86
121
|
}>;
|
|
87
122
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowVersion/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowVersion/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BpC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,wBAAwB,CAChC,CAAC"}
|
|
@@ -12,6 +12,19 @@ export declare const GetWorkflowVersionResponseSchema: z.ZodObject<{
|
|
|
12
12
|
dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
13
|
created_by_user_id: z.ZodString;
|
|
14
14
|
created_at: z.ZodString;
|
|
15
|
+
trigger: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
selected_api: z.ZodString;
|
|
17
|
+
action: z.ZodString;
|
|
18
|
+
authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
connections: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
22
|
+
connection_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
app_versions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
25
|
+
implementation_name: z.ZodString;
|
|
26
|
+
version: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>>>;
|
|
15
28
|
}, z.core.$strip>;
|
|
16
29
|
export type GetWorkflowVersionResponse = z.infer<typeof GetWorkflowVersionResponseSchema>;
|
|
17
30
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowVersion/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowVersion/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,+BAA+B;;;iBAKgC,CAAC;AAE7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;iBA8B3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { AppVersionBindingSchema, ConnectionBindingSchema, WorkflowVersionTriggerConfigSchema, } from "../shared-schemas";
|
|
2
3
|
export const GetWorkflowVersionOptionsSchema = z
|
|
3
4
|
.object({
|
|
4
5
|
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
@@ -22,4 +23,13 @@ export const GetWorkflowVersionResponseSchema = z.object({
|
|
|
22
23
|
.string()
|
|
23
24
|
.describe("ID of the user who published this version"),
|
|
24
25
|
created_at: z.string().describe("When the version was published (ISO-8601)"),
|
|
26
|
+
trigger: WorkflowVersionTriggerConfigSchema.nullable().describe("Trigger configuration persisted on this version, or null for webhook-only workflows."),
|
|
27
|
+
connections: z
|
|
28
|
+
.record(z.string(), ConnectionBindingSchema)
|
|
29
|
+
.nullable()
|
|
30
|
+
.describe("Connection aliases bound on this version (or null)."),
|
|
31
|
+
app_versions: z
|
|
32
|
+
.record(z.string(), AppVersionBindingSchema)
|
|
33
|
+
.nullable()
|
|
34
|
+
.describe("App-version pins bound on this version (or null)."),
|
|
25
35
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const RunStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
+
failed: "failed";
|
|
3
4
|
initialized: "initialized";
|
|
4
5
|
started: "started";
|
|
5
6
|
finished: "finished";
|
|
6
|
-
failed: "failed";
|
|
7
7
|
cancelled: "cancelled";
|
|
8
8
|
}>, z.ZodString]>;
|
|
9
9
|
export type RunStatus = z.infer<typeof RunStatusSchema>;
|
|
@@ -15,10 +15,10 @@ export type RunError = z.infer<typeof RunErrorSchema>;
|
|
|
15
15
|
export declare const RunItemSchema: z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
17
17
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
18
|
+
failed: "failed";
|
|
18
19
|
initialized: "initialized";
|
|
19
20
|
started: "started";
|
|
20
21
|
finished: "finished";
|
|
21
|
-
failed: "failed";
|
|
22
22
|
cancelled: "cancelled";
|
|
23
23
|
}>, z.ZodString]>;
|
|
24
24
|
input: z.ZodUnknown;
|
|
@@ -43,10 +43,10 @@ export declare const ListDurableRunsApiResponseSchema: z.ZodObject<{
|
|
|
43
43
|
results: z.ZodArray<z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
46
|
+
failed: "failed";
|
|
46
47
|
initialized: "initialized";
|
|
47
48
|
started: "started";
|
|
48
49
|
finished: "finished";
|
|
49
|
-
failed: "failed";
|
|
50
50
|
cancelled: "cancelled";
|
|
51
51
|
}>, z.ZodString]>;
|
|
52
52
|
input: z.ZodUnknown;
|
|
@@ -31,7 +31,16 @@ export declare const listWorkflowRunsPlugin: (sdk: {
|
|
|
31
31
|
description: string | null;
|
|
32
32
|
trigger_url: string;
|
|
33
33
|
enabled: boolean;
|
|
34
|
+
is_private: boolean;
|
|
35
|
+
created_by_user_id: string | null;
|
|
34
36
|
current_version_id: string | null;
|
|
37
|
+
triggers: {
|
|
38
|
+
selected_api: string;
|
|
39
|
+
action: string;
|
|
40
|
+
status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
|
|
41
|
+
authentication_id?: string | null | undefined;
|
|
42
|
+
params?: Record<string, unknown> | undefined;
|
|
43
|
+
}[];
|
|
35
44
|
created_at: string;
|
|
36
45
|
updated_at: string;
|
|
37
46
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowRuns/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowRuns/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,sBAAsB,CAC9B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const WorkflowRunStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
+
failed: "failed";
|
|
3
4
|
initialized: "initialized";
|
|
4
5
|
started: "started";
|
|
5
6
|
finished: "finished";
|
|
6
|
-
failed: "failed";
|
|
7
7
|
cancelled: "cancelled";
|
|
8
8
|
}>, z.ZodString]>;
|
|
9
9
|
export type WorkflowRunStatus = z.infer<typeof WorkflowRunStatusSchema>;
|
|
@@ -13,10 +13,10 @@ export declare const WorkflowRunListItemSchema: z.ZodObject<{
|
|
|
13
13
|
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
14
14
|
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
15
15
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
16
|
+
failed: "failed";
|
|
16
17
|
initialized: "initialized";
|
|
17
18
|
started: "started";
|
|
18
19
|
finished: "finished";
|
|
19
|
-
failed: "failed";
|
|
20
20
|
cancelled: "cancelled";
|
|
21
21
|
}>, z.ZodString]>;
|
|
22
22
|
input: z.ZodUnknown;
|
|
@@ -40,10 +40,10 @@ export declare const ListWorkflowRunsApiResponseSchema: z.ZodObject<{
|
|
|
40
40
|
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
41
41
|
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
42
42
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
43
|
+
failed: "failed";
|
|
43
44
|
initialized: "initialized";
|
|
44
45
|
started: "started";
|
|
45
46
|
finished: "finished";
|
|
46
|
-
failed: "failed";
|
|
47
47
|
cancelled: "cancelled";
|
|
48
48
|
}>, z.ZodString]>;
|
|
49
49
|
input: z.ZodUnknown;
|
|
@@ -31,7 +31,16 @@ export declare const listWorkflowVersionsPlugin: (sdk: {
|
|
|
31
31
|
description: string | null;
|
|
32
32
|
trigger_url: string;
|
|
33
33
|
enabled: boolean;
|
|
34
|
+
is_private: boolean;
|
|
35
|
+
created_by_user_id: string | null;
|
|
34
36
|
current_version_id: string | null;
|
|
37
|
+
triggers: {
|
|
38
|
+
selected_api: string;
|
|
39
|
+
action: string;
|
|
40
|
+
status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
|
|
41
|
+
authentication_id?: string | null | undefined;
|
|
42
|
+
params?: Record<string, unknown> | undefined;
|
|
43
|
+
}[];
|
|
35
44
|
created_at: string;
|
|
36
45
|
updated_at: string;
|
|
37
46
|
}>;
|
|
@@ -62,6 +71,19 @@ export declare const listWorkflowVersionsPlugin: (sdk: {
|
|
|
62
71
|
dependencies: Record<string, string> | null;
|
|
63
72
|
created_by_user_id: string;
|
|
64
73
|
created_at: string;
|
|
74
|
+
trigger: {
|
|
75
|
+
selected_api: string;
|
|
76
|
+
action: string;
|
|
77
|
+
authentication_id?: string | null | undefined;
|
|
78
|
+
params?: Record<string, unknown> | undefined;
|
|
79
|
+
} | null;
|
|
80
|
+
connections: Record<string, {
|
|
81
|
+
connection_id: string | number;
|
|
82
|
+
}> | null;
|
|
83
|
+
app_versions: Record<string, {
|
|
84
|
+
implementation_name: string;
|
|
85
|
+
version?: string | undefined;
|
|
86
|
+
}> | null;
|
|
65
87
|
}>;
|
|
66
88
|
} & {
|
|
67
89
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowVersions/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowVersions/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCtC,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,UAAU,CACzD,OAAO,0BAA0B,CAClC,CAAC"}
|
|
@@ -6,6 +6,19 @@ export declare const WorkflowVersionListItemSchema: z.ZodObject<{
|
|
|
6
6
|
dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7
7
|
created_by_user_id: z.ZodString;
|
|
8
8
|
created_at: z.ZodString;
|
|
9
|
+
trigger: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
selected_api: z.ZodString;
|
|
11
|
+
action: z.ZodString;
|
|
12
|
+
authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
connections: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
16
|
+
connection_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
app_versions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
19
|
+
implementation_name: z.ZodString;
|
|
20
|
+
version: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
9
22
|
}, z.core.$strip>;
|
|
10
23
|
export type WorkflowVersionListItem = z.infer<typeof WorkflowVersionListItemSchema>;
|
|
11
24
|
export declare const ListWorkflowVersionsOptionsSchema: z.ZodObject<{
|
|
@@ -23,6 +36,19 @@ export declare const ListWorkflowVersionsApiResponseSchema: z.ZodObject<{
|
|
|
23
36
|
dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24
37
|
created_by_user_id: z.ZodString;
|
|
25
38
|
created_at: z.ZodString;
|
|
39
|
+
trigger: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
selected_api: z.ZodString;
|
|
41
|
+
action: z.ZodString;
|
|
42
|
+
authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
connections: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
46
|
+
connection_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
app_versions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
49
|
+
implementation_name: z.ZodString;
|
|
50
|
+
version: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
26
52
|
}, z.core.$strip>>;
|
|
27
53
|
meta: z.ZodObject<{
|
|
28
54
|
limit: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowVersions/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowVersions/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;iBA2BxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;iBAkBqB,CAAC;AAEpE,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { AppVersionBindingSchema, ConnectionBindingSchema, WorkflowVersionTriggerConfigSchema, } from "../shared-schemas";
|
|
2
3
|
export const WorkflowVersionListItemSchema = z.object({
|
|
3
4
|
id: z.string().describe("Workflow version ID (UUID)"),
|
|
4
5
|
workflow_id: z.string().describe("Parent workflow ID (UUID)"),
|
|
@@ -13,6 +14,15 @@ export const WorkflowVersionListItemSchema = z.object({
|
|
|
13
14
|
.string()
|
|
14
15
|
.describe("ID of the user who published this version"),
|
|
15
16
|
created_at: z.string().describe("When the version was published (ISO-8601)"),
|
|
17
|
+
trigger: WorkflowVersionTriggerConfigSchema.nullable().describe("Trigger configuration persisted on this version, or null for webhook-only workflows."),
|
|
18
|
+
connections: z
|
|
19
|
+
.record(z.string(), ConnectionBindingSchema)
|
|
20
|
+
.nullable()
|
|
21
|
+
.describe("Connection aliases bound on this version (or null)."),
|
|
22
|
+
app_versions: z
|
|
23
|
+
.record(z.string(), AppVersionBindingSchema)
|
|
24
|
+
.nullable()
|
|
25
|
+
.describe("App-version pins bound on this version (or null)."),
|
|
16
26
|
});
|
|
17
27
|
export const ListWorkflowVersionsOptionsSchema = z
|
|
18
28
|
.object({
|
|
@@ -35,7 +35,16 @@ export declare const listWorkflowsPlugin: (sdk: {
|
|
|
35
35
|
description: string | null;
|
|
36
36
|
trigger_url: string;
|
|
37
37
|
enabled: boolean;
|
|
38
|
+
is_private: boolean;
|
|
39
|
+
created_by_user_id: string | null;
|
|
38
40
|
current_version_id: string | null;
|
|
41
|
+
triggers: {
|
|
42
|
+
selected_api: string;
|
|
43
|
+
action: string;
|
|
44
|
+
status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
|
|
45
|
+
authentication_id?: string | null | undefined;
|
|
46
|
+
params?: Record<string, unknown> | undefined;
|
|
47
|
+
}[];
|
|
39
48
|
created_at: string;
|
|
40
49
|
updated_at: string;
|
|
41
50
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B/B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,mBAAmB,CAC3B,CAAC"}
|
|
@@ -5,7 +5,23 @@ export declare const WorkflowItemSchema: z.ZodObject<{
|
|
|
5
5
|
description: z.ZodNullable<z.ZodString>;
|
|
6
6
|
trigger_url: z.ZodString;
|
|
7
7
|
enabled: z.ZodBoolean;
|
|
8
|
+
is_private: z.ZodBoolean;
|
|
9
|
+
created_by_user_id: z.ZodNullable<z.ZodString>;
|
|
8
10
|
current_version_id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
12
|
+
selected_api: z.ZodString;
|
|
13
|
+
action: z.ZodString;
|
|
14
|
+
authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
status: z.ZodEnum<{
|
|
17
|
+
pending: "pending";
|
|
18
|
+
active: "active";
|
|
19
|
+
unclaimed: "unclaimed";
|
|
20
|
+
releasing: "releasing";
|
|
21
|
+
released: "released";
|
|
22
|
+
failed: "failed";
|
|
23
|
+
}>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
9
25
|
created_at: z.ZodString;
|
|
10
26
|
updated_at: z.ZodString;
|
|
11
27
|
}, z.core.$strip>;
|
|
@@ -30,7 +46,23 @@ export declare const ListWorkflowsApiResponseSchema: z.ZodObject<{
|
|
|
30
46
|
description: z.ZodNullable<z.ZodString>;
|
|
31
47
|
trigger_url: z.ZodString;
|
|
32
48
|
enabled: z.ZodBoolean;
|
|
49
|
+
is_private: z.ZodBoolean;
|
|
50
|
+
created_by_user_id: z.ZodNullable<z.ZodString>;
|
|
33
51
|
current_version_id: z.ZodNullable<z.ZodString>;
|
|
52
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
53
|
+
selected_api: z.ZodString;
|
|
54
|
+
action: z.ZodString;
|
|
55
|
+
authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
57
|
+
status: z.ZodEnum<{
|
|
58
|
+
pending: "pending";
|
|
59
|
+
active: "active";
|
|
60
|
+
unclaimed: "unclaimed";
|
|
61
|
+
releasing: "releasing";
|
|
62
|
+
released: "released";
|
|
63
|
+
failed: "failed";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
34
66
|
created_at: z.ZodString;
|
|
35
67
|
updated_at: z.ZodString;
|
|
36
68
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;iBAuC7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;iBAuBuC,CAAC;AAE/E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC"}
|