@zapier/zapier-sdk 0.70.3 → 0.71.0
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 +35 -0
- package/README.md +248 -95
- package/dist/api/approval-review-stream.d.ts +25 -0
- package/dist/api/approval-review-stream.d.ts.map +1 -0
- package/dist/api/approval-review-stream.js +104 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +215 -27
- package/dist/api/types.d.ts +13 -3
- package/dist/api/types.d.ts.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +6 -0
- package/dist/experimental.cjs +702 -67
- package/dist/experimental.d.mts +242 -2
- package/dist/experimental.d.ts +240 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +10 -0
- package/dist/experimental.mjs +702 -68
- package/dist/{index-rIzBEINC.d.mts → index-B43uST61.d.mts} +248 -10
- package/dist/{index-rIzBEINC.d.ts → index-B43uST61.d.ts} +248 -10
- package/dist/index.cjs +592 -32
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +592 -33
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +2 -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 +5 -5
- 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/dist/plugins/createConnection/index.d.ts +189 -0
- package/dist/plugins/createConnection/index.d.ts.map +1 -0
- package/dist/plugins/createConnection/index.js +71 -0
- package/dist/plugins/createConnection/schemas.d.ts +21 -0
- package/dist/plugins/createConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/createConnection/schemas.js +38 -0
- package/dist/plugins/getConnectionStartUrl/index.d.ts +206 -0
- package/dist/plugins/getConnectionStartUrl/index.d.ts.map +1 -0
- package/dist/plugins/getConnectionStartUrl/index.js +39 -0
- package/dist/plugins/getConnectionStartUrl/schemas.d.ts +15 -0
- package/dist/plugins/getConnectionStartUrl/schemas.d.ts.map +1 -0
- package/dist/plugins/getConnectionStartUrl/schemas.js +23 -0
- package/dist/plugins/waitForNewConnection/index.d.ts +209 -0
- package/dist/plugins/waitForNewConnection/index.d.ts.map +1 -0
- package/dist/plugins/waitForNewConnection/index.js +75 -0
- package/dist/plugins/waitForNewConnection/schemas.d.ts +17 -0
- package/dist/plugins/waitForNewConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/waitForNewConnection/schemas.js +39 -0
- package/dist/sdk.d.ts +126 -0
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +8 -0
- package/dist/types/errors.d.ts +13 -4
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +2 -0
- package/dist/types/sdk.d.ts +1 -0
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/sdk.js +5 -1
- package/dist/utils/open-url.d.ts.map +1 -1
- package/dist/utils/open-url.js +7 -0
- package/dist/utils/should-open-browser.d.ts +24 -0
- package/dist/utils/should-open-browser.d.ts.map +1 -0
- package/dist/utils/should-open-browser.js +55 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAUtD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D,eAAO,MAAM,SAAS;aACH;QAAE,OAAO,EAAE,cAAc,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAUtD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D,eAAO,MAAM,SAAS;aACH;QAAE,OAAO,EAAE,cAAc,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;CAiD7C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { resolveCredentials } from "../../credentials";
|
|
|
4
4
|
import { ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, } from "../../constants";
|
|
5
5
|
export const apiPlugin = definePlugin((sdk) => {
|
|
6
6
|
// Extract all options - everything passed to the plugin
|
|
7
|
-
const { fetch: customFetch = globalThis.fetch, baseUrl = ZAPIER_BASE_URL, credentials, token, onEvent, debug = false, maxNetworkRetries = ZAPIER_MAX_NETWORK_RETRIES, maxNetworkRetryDelayMs = ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, maxConcurrentRequests = ZAPIER_MAX_CONCURRENT_REQUESTS, approvalTimeoutMs, maxApprovalRetries, approvalMode, callerPackage, } = sdk.context.options;
|
|
7
|
+
const { fetch: customFetch = globalThis.fetch, baseUrl = ZAPIER_BASE_URL, credentials, token, onEvent, debug = false, maxNetworkRetries = ZAPIER_MAX_NETWORK_RETRIES, maxNetworkRetryDelayMs = ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, maxConcurrentRequests = ZAPIER_MAX_CONCURRENT_REQUESTS, approvalTimeoutMs, maxApprovalRetries, approvalMode, openAutoModeApprovalsInBrowser, callerPackage, } = sdk.context.options;
|
|
8
8
|
// Create the API client - it will handle token resolution internally
|
|
9
9
|
const api = createZapierApi({
|
|
10
10
|
baseUrl,
|
|
@@ -19,6 +19,7 @@ export const apiPlugin = definePlugin((sdk) => {
|
|
|
19
19
|
approvalTimeoutMs,
|
|
20
20
|
maxApprovalRetries,
|
|
21
21
|
approvalMode,
|
|
22
|
+
openAutoModeApprovalsInBrowser,
|
|
22
23
|
callerPackage,
|
|
23
24
|
});
|
|
24
25
|
return {
|
|
@@ -31,7 +31,16 @@ export declare const deleteWorkflowPlugin: (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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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/deleteWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/deleteWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -31,7 +31,16 @@ export declare const disableWorkflowPlugin: (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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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/disableWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/disableWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BjC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,qBAAqB,CAC7B,CAAC"}
|
|
@@ -31,7 +31,16 @@ export declare const enableWorkflowPlugin: (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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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/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"}
|
|
@@ -6,8 +6,8 @@ export declare const OperationTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
6
6
|
}>, z.ZodString]>;
|
|
7
7
|
export type OperationType = z.infer<typeof OperationTypeSchema>;
|
|
8
8
|
export declare const OperationStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
9
|
-
pending: "pending";
|
|
10
9
|
failed: "failed";
|
|
10
|
+
pending: "pending";
|
|
11
11
|
exhausted: "exhausted";
|
|
12
12
|
completed: "completed";
|
|
13
13
|
}>, z.ZodString]>;
|
|
@@ -22,8 +22,8 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
22
22
|
callback: "callback";
|
|
23
23
|
}>, z.ZodString]>;
|
|
24
24
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
25
|
-
pending: "pending";
|
|
26
25
|
failed: "failed";
|
|
26
|
+
pending: "pending";
|
|
27
27
|
exhausted: "exhausted";
|
|
28
28
|
completed: "completed";
|
|
29
29
|
}>, z.ZodString]>;
|
|
@@ -80,8 +80,8 @@ export declare const ExecutionSummarySchema: z.ZodObject<{
|
|
|
80
80
|
callback: "callback";
|
|
81
81
|
}>, z.ZodString]>;
|
|
82
82
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
83
|
-
pending: "pending";
|
|
84
83
|
failed: "failed";
|
|
84
|
+
pending: "pending";
|
|
85
85
|
exhausted: "exhausted";
|
|
86
86
|
completed: "completed";
|
|
87
87
|
}>, z.ZodString]>;
|
|
@@ -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;
|
|
@@ -151,8 +151,8 @@ export declare const GetDurableRunResponseSchema: z.ZodObject<{
|
|
|
151
151
|
callback: "callback";
|
|
152
152
|
}>, z.ZodString]>;
|
|
153
153
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
154
|
-
pending: "pending";
|
|
155
154
|
failed: "failed";
|
|
155
|
+
pending: "pending";
|
|
156
156
|
exhausted: "exhausted";
|
|
157
157
|
completed: "completed";
|
|
158
158
|
}>, z.ZodString]>;
|
|
@@ -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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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
|
+
failed: "failed";
|
|
66
|
+
pending: "pending";
|
|
67
|
+
active: "active";
|
|
68
|
+
unclaimed: "unclaimed";
|
|
69
|
+
releasing: "releasing";
|
|
70
|
+
released: "released";
|
|
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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
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"}
|