@membranehq/sdk 0.7.4 → 0.8.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/dist/bundle.d.ts +2066 -13953
- package/dist/bundle.js +3912 -4250
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/actions-accessors.d.ts +0 -1
- package/dist/dts/accessors/connections-accessors.d.ts +28 -28
- package/dist/dts/accessors/data-sources-accessors.d.ts +0 -1
- package/dist/dts/accessors/field-mappings-accessors.d.ts +0 -1
- package/dist/dts/accessors/flows-accessors.d.ts +0 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +28 -28
- package/dist/dts/config/index.d.ts +1 -11
- package/dist/dts/date-time/business-day.d.ts +2 -0
- package/dist/dts/date-time/business-day.test.d.ts +1 -0
- package/dist/dts/date-time/index.d.ts +1 -0
- package/dist/dts/entity-repository.d.ts +13 -64
- package/dist/dts/http-requests.d.ts +2 -14
- package/dist/dts/iframe.d.ts +4 -12
- package/dist/dts/scenario-templates/index.d.ts +60 -484
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +17 -248
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +23 -339
- package/dist/dts/workspace-elements/api/actions-api.d.ts +52 -639
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +8 -169
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -51
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +15 -325
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -248
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +28 -90
- package/dist/dts/workspace-elements/api/connections-api.d.ts +56 -892
- package/dist/dts/workspace-elements/api/customers-api.d.ts +8 -68
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +21 -369
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +17 -45
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +79 -1341
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +52 -767
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +29 -502
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +29 -506
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -381
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -425
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +109 -2321
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +47 -702
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
- package/dist/dts/workspace-elements/api/flows-api.d.ts +149 -1836
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +45 -287
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +30 -450
- package/dist/dts/workspace-elements/api/screens-api.d.ts +11 -31
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +6 -60
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +3 -28
- package/dist/dts/workspace-elements/base/actions/index.d.ts +10 -82
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +4 -47
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -36
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +6 -75
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +6 -69
- package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -56
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +1 -11
- package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -25
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +141 -1471
- package/dist/dts/workspace-elements/base/data-collections/types.d.ts +1 -29
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +6 -61
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -32
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +60 -973
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +8 -104
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -26
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -30
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +9 -161
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +7 -121
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +9 -76
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +13 -133
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +16 -194
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -132
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +29 -284
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +13 -93
- package/dist/dts/workspace-elements/base/flows/index.d.ts +20 -240
- package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +7 -56
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +23 -539
- package/dist/dts/workspace-elements/base/scenarios/index.d.ts +11 -119
- package/dist/dts/workspace-elements/base/screens/types.d.ts +6 -31
- package/dist/dts/workspace-elements/types.d.ts +15 -153
- package/dist/dts/workspace-elements-catalog/index.d.ts +2 -0
- package/dist/index.browser.d.mts +5929 -24802
- package/dist/index.browser.d.ts +5929 -24802
- package/dist/index.browser.js +351 -335
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +349 -333
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +5959 -24842
- package/dist/index.node.d.ts +5959 -24842
- package/dist/index.node.js +351 -335
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +349 -333
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -9,11 +9,10 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
10
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
11
11
|
name: z.ZodString;
|
|
12
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.
|
|
12
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
|
|
13
13
|
revision: z.ZodOptional<z.ZodString>;
|
|
14
14
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
15
15
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
} & {
|
|
17
16
|
userId: z.ZodString;
|
|
18
17
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
19
18
|
flowId: z.ZodOptional<z.ZodString>;
|
|
@@ -21,82 +20,18 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
21
20
|
integrationId: z.ZodString;
|
|
22
21
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
23
22
|
parameters: z.ZodOptional<z.ZodAny>;
|
|
24
|
-
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.
|
|
23
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
25
24
|
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
26
25
|
enabled: z.ZodBoolean;
|
|
27
26
|
createdAt: z.ZodString;
|
|
28
27
|
updatedAt: z.ZodString;
|
|
29
|
-
state: z.ZodOptional<z.
|
|
28
|
+
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
30
29
|
customized: z.ZodOptional<z.ZodObject<{
|
|
31
30
|
name: z.ZodOptional<z.ZodBoolean>;
|
|
32
31
|
nodes: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, {
|
|
37
|
-
name?: boolean | undefined;
|
|
38
|
-
nodes?: boolean | undefined;
|
|
39
|
-
}>>;
|
|
40
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
|
-
integrationId: string;
|
|
47
|
-
userId: string;
|
|
48
|
-
enabled: boolean;
|
|
49
|
-
key?: string | undefined;
|
|
50
|
-
uuid?: string | undefined;
|
|
51
|
-
description?: string | undefined;
|
|
52
|
-
meta?: Record<string, any> | undefined;
|
|
53
|
-
state?: WorkspaceElementState | undefined;
|
|
54
|
-
errors?: ErrorDataSchema[] | undefined;
|
|
55
|
-
revision?: string | undefined;
|
|
56
|
-
archivedAt?: string | undefined;
|
|
57
|
-
isDeactivated?: boolean | undefined;
|
|
58
|
-
instanceKey?: string | undefined;
|
|
59
|
-
connectionId?: string | undefined;
|
|
60
|
-
parameters?: any;
|
|
61
|
-
parametersSchema?: DataSchema | undefined;
|
|
62
|
-
dependencies?: any[] | undefined;
|
|
63
|
-
universalFlowId?: string | undefined;
|
|
64
|
-
nodes?: Record<string, any> | undefined;
|
|
65
|
-
flowId?: string | undefined;
|
|
66
|
-
customized?: {
|
|
67
|
-
name?: boolean | undefined;
|
|
68
|
-
nodes?: boolean | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
id: string;
|
|
72
|
-
name: string;
|
|
73
|
-
createdAt: string;
|
|
74
|
-
updatedAt: string;
|
|
75
|
-
integrationId: string;
|
|
76
|
-
userId: string;
|
|
77
|
-
enabled: boolean;
|
|
78
|
-
key?: string | undefined;
|
|
79
|
-
uuid?: string | undefined;
|
|
80
|
-
description?: string | undefined;
|
|
81
|
-
meta?: Record<string, any> | undefined;
|
|
82
|
-
state?: WorkspaceElementState | undefined;
|
|
83
|
-
errors?: ErrorDataSchema[] | undefined;
|
|
84
|
-
revision?: string | undefined;
|
|
85
|
-
archivedAt?: string | undefined;
|
|
86
|
-
isDeactivated?: boolean | undefined;
|
|
87
|
-
instanceKey?: string | undefined;
|
|
88
|
-
connectionId?: string | undefined;
|
|
89
|
-
parameters?: any;
|
|
90
|
-
parametersSchema?: DataSchema | undefined;
|
|
91
|
-
dependencies?: any[] | undefined;
|
|
92
|
-
universalFlowId?: string | undefined;
|
|
93
|
-
nodes?: Record<string, any> | undefined;
|
|
94
|
-
flowId?: string | undefined;
|
|
95
|
-
customized?: {
|
|
96
|
-
name?: boolean | undefined;
|
|
97
|
-
nodes?: boolean | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
}>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
100
35
|
export type BaseFlowInstance = z.infer<typeof BaseFlowInstance>;
|
|
101
36
|
export declare enum FlowInstanceNodeState {
|
|
102
37
|
SETUP_FAILED = "SETUP_FAILED",
|
|
@@ -109,7 +44,10 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
109
44
|
description: z.ZodOptional<z.ZodString>;
|
|
110
45
|
config: z.ZodOptional<z.ZodAny>;
|
|
111
46
|
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
onError: z.ZodOptional<z.ZodEnum<
|
|
47
|
+
onError: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
continue: "continue";
|
|
49
|
+
stop: "stop";
|
|
50
|
+
}>>;
|
|
113
51
|
ui: z.ZodOptional<z.ZodAny>;
|
|
114
52
|
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
115
53
|
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
@@ -118,67 +56,12 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
118
56
|
key: z.ZodOptional<z.ZodString>;
|
|
119
57
|
filter: z.ZodOptional<z.ZodAny>;
|
|
120
58
|
name: z.ZodOptional<z.ZodString>;
|
|
121
|
-
},
|
|
122
|
-
key?: string | undefined;
|
|
123
|
-
filter?: any;
|
|
124
|
-
name?: string | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
key?: string | undefined;
|
|
127
|
-
filter?: any;
|
|
128
|
-
name?: string | undefined;
|
|
129
|
-
}>, "many">>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
130
60
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
61
|
+
state: z.ZodOptional<z.ZodEnum<typeof FlowInstanceNodeState>>;
|
|
62
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
|
|
134
63
|
userConfig: z.ZodOptional<z.ZodAny>;
|
|
135
64
|
testInput: z.ZodOptional<z.ZodAny>;
|
|
136
|
-
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
137
|
-
},
|
|
138
|
-
concurrency?: number | undefined;
|
|
139
|
-
type?: string | undefined;
|
|
140
|
-
name?: string | undefined;
|
|
141
|
-
description?: string | undefined;
|
|
142
|
-
state?: FlowInstanceNodeState | undefined;
|
|
143
|
-
errors?: ErrorDataSchema[] | undefined;
|
|
144
|
-
isCustomized?: boolean | undefined;
|
|
145
|
-
inputSchema?: any;
|
|
146
|
-
config?: any;
|
|
147
|
-
outputSchema?: any;
|
|
148
|
-
dependencies?: any[] | undefined;
|
|
149
|
-
version?: number | undefined;
|
|
150
|
-
onError?: "stop" | "continue" | undefined;
|
|
151
|
-
ui?: any;
|
|
152
|
-
outputExample?: any;
|
|
153
|
-
links?: {
|
|
154
|
-
key?: string | undefined;
|
|
155
|
-
filter?: any;
|
|
156
|
-
name?: string | undefined;
|
|
157
|
-
}[] | undefined;
|
|
158
|
-
userConfig?: any;
|
|
159
|
-
testInput?: any;
|
|
160
|
-
}, {
|
|
161
|
-
concurrency?: number | undefined;
|
|
162
|
-
type?: string | undefined;
|
|
163
|
-
name?: string | undefined;
|
|
164
|
-
description?: string | undefined;
|
|
165
|
-
state?: FlowInstanceNodeState | undefined;
|
|
166
|
-
errors?: ErrorDataSchema[] | undefined;
|
|
167
|
-
isCustomized?: boolean | undefined;
|
|
168
|
-
inputSchema?: any;
|
|
169
|
-
config?: any;
|
|
170
|
-
outputSchema?: any;
|
|
171
|
-
dependencies?: any[] | undefined;
|
|
172
|
-
version?: number | undefined;
|
|
173
|
-
onError?: "stop" | "continue" | undefined;
|
|
174
|
-
ui?: any;
|
|
175
|
-
outputExample?: any;
|
|
176
|
-
links?: {
|
|
177
|
-
key?: string | undefined;
|
|
178
|
-
filter?: any;
|
|
179
|
-
name?: string | undefined;
|
|
180
|
-
}[] | undefined;
|
|
181
|
-
userConfig?: any;
|
|
182
|
-
testInput?: any;
|
|
183
|
-
}>;
|
|
65
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
184
67
|
export type FlowInstanceNode = z.infer<typeof FlowInstanceNode>;
|
|
@@ -14,27 +14,13 @@ export declare const UpstreamFlowNodeRunSchema: z.ZodObject<{
|
|
|
14
14
|
nodeKey: z.ZodString;
|
|
15
15
|
runId: z.ZodString;
|
|
16
16
|
outputId: z.ZodString;
|
|
17
|
-
},
|
|
18
|
-
nodeKey: string;
|
|
19
|
-
runId: string;
|
|
20
|
-
outputId: string;
|
|
21
|
-
}, {
|
|
22
|
-
nodeKey: string;
|
|
23
|
-
runId: string;
|
|
24
|
-
outputId: string;
|
|
25
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
26
18
|
export interface UpstreamFlowNodeRun extends z.infer<typeof UpstreamFlowNodeRunSchema> {
|
|
27
19
|
}
|
|
28
20
|
export declare const DownstreamFlowNodeRunSchema: z.ZodObject<{
|
|
29
21
|
runId: z.ZodString;
|
|
30
22
|
nodeKey: z.ZodString;
|
|
31
|
-
},
|
|
32
|
-
nodeKey: string;
|
|
33
|
-
runId: string;
|
|
34
|
-
}, {
|
|
35
|
-
nodeKey: string;
|
|
36
|
-
runId: string;
|
|
37
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
38
24
|
export interface DownstreamFlowNodeRun extends z.infer<typeof DownstreamFlowNodeRunSchema> {
|
|
39
25
|
}
|
|
40
26
|
export declare const FlowNodeRunParametersSchema: z.ZodObject<{
|
|
@@ -43,33 +29,9 @@ export declare const FlowNodeRunParametersSchema: z.ZodObject<{
|
|
|
43
29
|
nodeKey: z.ZodString;
|
|
44
30
|
runId: z.ZodString;
|
|
45
31
|
outputId: z.ZodString;
|
|
46
|
-
},
|
|
47
|
-
nodeKey: string;
|
|
48
|
-
runId: string;
|
|
49
|
-
outputId: string;
|
|
50
|
-
}, {
|
|
51
|
-
nodeKey: string;
|
|
52
|
-
runId: string;
|
|
53
|
-
outputId: string;
|
|
54
|
-
}>, "many">;
|
|
32
|
+
}, z.core.$strip>>;
|
|
55
33
|
input: z.ZodAny;
|
|
56
|
-
},
|
|
57
|
-
id: string;
|
|
58
|
-
upstreamRuns: {
|
|
59
|
-
nodeKey: string;
|
|
60
|
-
runId: string;
|
|
61
|
-
outputId: string;
|
|
62
|
-
}[];
|
|
63
|
-
input?: any;
|
|
64
|
-
}, {
|
|
65
|
-
id: string;
|
|
66
|
-
upstreamRuns: {
|
|
67
|
-
nodeKey: string;
|
|
68
|
-
runId: string;
|
|
69
|
-
outputId: string;
|
|
70
|
-
}[];
|
|
71
|
-
input?: any;
|
|
72
|
-
}>;
|
|
34
|
+
}, z.core.$strip>;
|
|
73
35
|
export interface FlowNodeRunParameters extends z.infer<typeof FlowNodeRunParametersSchema> {
|
|
74
36
|
}
|
|
75
37
|
export declare const FlowNodeRunOutputSchema: z.ZodObject<{
|
|
@@ -78,87 +40,23 @@ export declare const FlowNodeRunOutputSchema: z.ZodObject<{
|
|
|
78
40
|
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
79
41
|
runId: z.ZodString;
|
|
80
42
|
nodeKey: z.ZodString;
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
runId: string;
|
|
84
|
-
}, {
|
|
85
|
-
nodeKey: string;
|
|
86
|
-
runId: string;
|
|
87
|
-
}>, "many">;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
data: string;
|
|
90
|
-
id: string;
|
|
91
|
-
downstreamRuns: {
|
|
92
|
-
nodeKey: string;
|
|
93
|
-
runId: string;
|
|
94
|
-
}[];
|
|
95
|
-
}, {
|
|
96
|
-
data: string;
|
|
97
|
-
id: string;
|
|
98
|
-
downstreamRuns: {
|
|
99
|
-
nodeKey: string;
|
|
100
|
-
runId: string;
|
|
101
|
-
}[];
|
|
102
|
-
}>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
103
45
|
export interface FlowNodeRunOutput extends z.infer<typeof FlowNodeRunOutputSchema> {
|
|
104
46
|
}
|
|
105
47
|
export declare const FlowNodeRunResultSchema: z.ZodObject<{
|
|
106
|
-
status: z.
|
|
107
|
-
logs: z.ZodArray<z.ZodAny
|
|
48
|
+
status: z.ZodEnum<typeof FlowNodeRunStatus>;
|
|
49
|
+
logs: z.ZodArray<z.ZodAny>;
|
|
108
50
|
outputs: z.ZodArray<z.ZodObject<{
|
|
109
51
|
id: z.ZodString;
|
|
110
52
|
data: z.ZodString;
|
|
111
53
|
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
112
54
|
runId: z.ZodString;
|
|
113
55
|
nodeKey: z.ZodString;
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
nodeKey: string;
|
|
119
|
-
runId: string;
|
|
120
|
-
}>, "many">;
|
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
data: string;
|
|
123
|
-
id: string;
|
|
124
|
-
downstreamRuns: {
|
|
125
|
-
nodeKey: string;
|
|
126
|
-
runId: string;
|
|
127
|
-
}[];
|
|
128
|
-
}, {
|
|
129
|
-
data: string;
|
|
130
|
-
id: string;
|
|
131
|
-
downstreamRuns: {
|
|
132
|
-
nodeKey: string;
|
|
133
|
-
runId: string;
|
|
134
|
-
}[];
|
|
135
|
-
}>, "many">;
|
|
136
|
-
errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
status: FlowNodeRunStatus;
|
|
139
|
-
logs: any[];
|
|
140
|
-
errors: ErrorDataSchema[];
|
|
141
|
-
outputs: {
|
|
142
|
-
data: string;
|
|
143
|
-
id: string;
|
|
144
|
-
downstreamRuns: {
|
|
145
|
-
nodeKey: string;
|
|
146
|
-
runId: string;
|
|
147
|
-
}[];
|
|
148
|
-
}[];
|
|
149
|
-
}, {
|
|
150
|
-
status: FlowNodeRunStatus;
|
|
151
|
-
logs: any[];
|
|
152
|
-
errors: ErrorDataSchema[];
|
|
153
|
-
outputs: {
|
|
154
|
-
data: string;
|
|
155
|
-
id: string;
|
|
156
|
-
downstreamRuns: {
|
|
157
|
-
nodeKey: string;
|
|
158
|
-
runId: string;
|
|
159
|
-
}[];
|
|
160
|
-
}[];
|
|
161
|
-
}>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
errors: z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
162
60
|
export interface FlowNodeRunResult extends z.infer<typeof FlowNodeRunResultSchema> {
|
|
163
61
|
}
|
|
164
62
|
export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
@@ -167,99 +65,26 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
167
65
|
nodeKey: z.ZodString;
|
|
168
66
|
runId: z.ZodString;
|
|
169
67
|
outputId: z.ZodString;
|
|
170
|
-
},
|
|
171
|
-
nodeKey: string;
|
|
172
|
-
runId: string;
|
|
173
|
-
outputId: string;
|
|
174
|
-
}, {
|
|
175
|
-
nodeKey: string;
|
|
176
|
-
runId: string;
|
|
177
|
-
outputId: string;
|
|
178
|
-
}>, "many">;
|
|
68
|
+
}, z.core.$strip>>;
|
|
179
69
|
input: z.ZodAny;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
logs: z.ZodArray<z.ZodAny, "many">;
|
|
70
|
+
status: z.ZodEnum<typeof FlowNodeRunStatus>;
|
|
71
|
+
logs: z.ZodArray<z.ZodAny>;
|
|
183
72
|
outputs: z.ZodArray<z.ZodObject<{
|
|
184
73
|
id: z.ZodString;
|
|
185
74
|
data: z.ZodString;
|
|
186
75
|
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
187
76
|
runId: z.ZodString;
|
|
188
77
|
nodeKey: z.ZodString;
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
nodeKey: string;
|
|
194
|
-
runId: string;
|
|
195
|
-
}>, "many">;
|
|
196
|
-
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
data: string;
|
|
198
|
-
id: string;
|
|
199
|
-
downstreamRuns: {
|
|
200
|
-
nodeKey: string;
|
|
201
|
-
runId: string;
|
|
202
|
-
}[];
|
|
203
|
-
}, {
|
|
204
|
-
data: string;
|
|
205
|
-
id: string;
|
|
206
|
-
downstreamRuns: {
|
|
207
|
-
nodeKey: string;
|
|
208
|
-
runId: string;
|
|
209
|
-
}[];
|
|
210
|
-
}>, "many">;
|
|
211
|
-
errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
|
|
212
|
-
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
status: FlowNodeRunStatus;
|
|
214
|
-
logs: any[];
|
|
215
|
-
id: string;
|
|
216
|
-
errors: ErrorDataSchema[];
|
|
217
|
-
outputs: {
|
|
218
|
-
data: string;
|
|
219
|
-
id: string;
|
|
220
|
-
downstreamRuns: {
|
|
221
|
-
nodeKey: string;
|
|
222
|
-
runId: string;
|
|
223
|
-
}[];
|
|
224
|
-
}[];
|
|
225
|
-
upstreamRuns: {
|
|
226
|
-
nodeKey: string;
|
|
227
|
-
runId: string;
|
|
228
|
-
outputId: string;
|
|
229
|
-
}[];
|
|
230
|
-
input?: any;
|
|
231
|
-
}, {
|
|
232
|
-
status: FlowNodeRunStatus;
|
|
233
|
-
logs: any[];
|
|
234
|
-
id: string;
|
|
235
|
-
errors: ErrorDataSchema[];
|
|
236
|
-
outputs: {
|
|
237
|
-
data: string;
|
|
238
|
-
id: string;
|
|
239
|
-
downstreamRuns: {
|
|
240
|
-
nodeKey: string;
|
|
241
|
-
runId: string;
|
|
242
|
-
}[];
|
|
243
|
-
}[];
|
|
244
|
-
upstreamRuns: {
|
|
245
|
-
nodeKey: string;
|
|
246
|
-
runId: string;
|
|
247
|
-
outputId: string;
|
|
248
|
-
}[];
|
|
249
|
-
input?: any;
|
|
250
|
-
}>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
errors: z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
251
82
|
export interface FlowNodeRunRecord extends z.infer<typeof FlowNodeRunRecordSchema> {
|
|
252
83
|
}
|
|
253
84
|
export declare const FlowNodeRunOutputWithoutDownstreamRunsSchema: z.ZodObject<{
|
|
254
85
|
id: z.ZodString;
|
|
255
86
|
data: z.ZodString;
|
|
256
|
-
},
|
|
257
|
-
data: string;
|
|
258
|
-
id: string;
|
|
259
|
-
}, {
|
|
260
|
-
data: string;
|
|
261
|
-
id: string;
|
|
262
|
-
}>;
|
|
87
|
+
}, z.core.$strip>;
|
|
263
88
|
export interface FlowNodeRunOutputWithoutDownstreamRuns extends z.infer<typeof FlowNodeRunOutputWithoutDownstreamRunsSchema> {
|
|
264
89
|
}
|
|
265
90
|
export declare const FlowNodeRunOutputMetadataSchema: z.ZodObject<{
|
|
@@ -267,26 +92,8 @@ export declare const FlowNodeRunOutputMetadataSchema: z.ZodObject<{
|
|
|
267
92
|
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
268
93
|
runId: z.ZodString;
|
|
269
94
|
nodeKey: z.ZodString;
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
runId: string;
|
|
273
|
-
}, {
|
|
274
|
-
nodeKey: string;
|
|
275
|
-
runId: string;
|
|
276
|
-
}>, "many">;
|
|
277
|
-
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
id: string;
|
|
279
|
-
downstreamRuns: {
|
|
280
|
-
nodeKey: string;
|
|
281
|
-
runId: string;
|
|
282
|
-
}[];
|
|
283
|
-
}, {
|
|
284
|
-
id: string;
|
|
285
|
-
downstreamRuns: {
|
|
286
|
-
nodeKey: string;
|
|
287
|
-
runId: string;
|
|
288
|
-
}[];
|
|
289
|
-
}>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
290
97
|
export interface FlowNodeRunOutputMetadata extends z.infer<typeof FlowNodeRunOutputMetadataSchema> {
|
|
291
98
|
}
|
|
292
99
|
export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
@@ -295,80 +102,18 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
295
102
|
nodeKey: z.ZodString;
|
|
296
103
|
runId: z.ZodString;
|
|
297
104
|
outputId: z.ZodString;
|
|
298
|
-
},
|
|
299
|
-
nodeKey: string;
|
|
300
|
-
runId: string;
|
|
301
|
-
outputId: string;
|
|
302
|
-
}, {
|
|
303
|
-
nodeKey: string;
|
|
304
|
-
runId: string;
|
|
305
|
-
outputId: string;
|
|
306
|
-
}>, "many">;
|
|
105
|
+
}, z.core.$strip>>;
|
|
307
106
|
input: z.ZodAny;
|
|
308
|
-
status: z.
|
|
309
|
-
logs: z.ZodArray<z.ZodAny
|
|
107
|
+
status: z.ZodEnum<typeof FlowNodeRunStatus>;
|
|
108
|
+
logs: z.ZodArray<z.ZodAny>;
|
|
310
109
|
outputs: z.ZodArray<z.ZodObject<{
|
|
311
110
|
id: z.ZodString;
|
|
312
111
|
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
313
112
|
runId: z.ZodString;
|
|
314
113
|
nodeKey: z.ZodString;
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
nodeKey: string;
|
|
320
|
-
runId: string;
|
|
321
|
-
}>, "many">;
|
|
322
|
-
}, "strip", z.ZodTypeAny, {
|
|
323
|
-
id: string;
|
|
324
|
-
downstreamRuns: {
|
|
325
|
-
nodeKey: string;
|
|
326
|
-
runId: string;
|
|
327
|
-
}[];
|
|
328
|
-
}, {
|
|
329
|
-
id: string;
|
|
330
|
-
downstreamRuns: {
|
|
331
|
-
nodeKey: string;
|
|
332
|
-
runId: string;
|
|
333
|
-
}[];
|
|
334
|
-
}>, "many">;
|
|
335
|
-
errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
|
|
336
|
-
}, "strip", z.ZodTypeAny, {
|
|
337
|
-
status: FlowNodeRunStatus;
|
|
338
|
-
logs: any[];
|
|
339
|
-
id: string;
|
|
340
|
-
errors: ErrorDataSchema[];
|
|
341
|
-
outputs: {
|
|
342
|
-
id: string;
|
|
343
|
-
downstreamRuns: {
|
|
344
|
-
nodeKey: string;
|
|
345
|
-
runId: string;
|
|
346
|
-
}[];
|
|
347
|
-
}[];
|
|
348
|
-
upstreamRuns: {
|
|
349
|
-
nodeKey: string;
|
|
350
|
-
runId: string;
|
|
351
|
-
outputId: string;
|
|
352
|
-
}[];
|
|
353
|
-
input?: any;
|
|
354
|
-
}, {
|
|
355
|
-
status: FlowNodeRunStatus;
|
|
356
|
-
logs: any[];
|
|
357
|
-
id: string;
|
|
358
|
-
errors: ErrorDataSchema[];
|
|
359
|
-
outputs: {
|
|
360
|
-
id: string;
|
|
361
|
-
downstreamRuns: {
|
|
362
|
-
nodeKey: string;
|
|
363
|
-
runId: string;
|
|
364
|
-
}[];
|
|
365
|
-
}[];
|
|
366
|
-
upstreamRuns: {
|
|
367
|
-
nodeKey: string;
|
|
368
|
-
runId: string;
|
|
369
|
-
outputId: string;
|
|
370
|
-
}[];
|
|
371
|
-
input?: any;
|
|
372
|
-
}>;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
errors: z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
117
|
+
}, z.core.$strip>;
|
|
373
118
|
export interface FlowNodeRunRecordWithoutOutputsData extends z.infer<typeof FlowNodeRunRecordWithoutOutputsDataSchema> {
|
|
374
119
|
}
|
|
@@ -21,32 +21,16 @@ export declare enum FlowRunLaunchedByTrigger {
|
|
|
21
21
|
ExternalEvent = "external-event"
|
|
22
22
|
}
|
|
23
23
|
export declare const FlowRunLaunchedBy: z.ZodObject<{
|
|
24
|
-
type: z.
|
|
25
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodString
|
|
26
|
-
},
|
|
27
|
-
type: FlowRunLaunchedByTrigger;
|
|
28
|
-
ids?: string[] | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
type: FlowRunLaunchedByTrigger;
|
|
31
|
-
ids?: string[] | undefined;
|
|
32
|
-
}>;
|
|
24
|
+
type: z.ZodEnum<typeof FlowRunLaunchedByTrigger>;
|
|
25
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
33
27
|
export type FlowRunLaunchedBy = z.infer<typeof FlowRunLaunchedBy>;
|
|
34
28
|
export declare const FlowRunNode: z.ZodObject<{
|
|
35
|
-
state: z.
|
|
29
|
+
state: z.ZodEnum<typeof FlowRunNodeState>;
|
|
36
30
|
runs: z.ZodOptional<z.ZodNumber>;
|
|
37
31
|
erroredRuns: z.ZodOptional<z.ZodNumber>;
|
|
38
32
|
outputs: z.ZodOptional<z.ZodNumber>;
|
|
39
|
-
},
|
|
40
|
-
state: FlowRunNodeState;
|
|
41
|
-
runs?: number | undefined;
|
|
42
|
-
erroredRuns?: number | undefined;
|
|
43
|
-
outputs?: number | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
state: FlowRunNodeState;
|
|
46
|
-
runs?: number | undefined;
|
|
47
|
-
erroredRuns?: number | undefined;
|
|
48
|
-
outputs?: number | undefined;
|
|
49
|
-
}>;
|
|
33
|
+
}, z.core.$strip>;
|
|
50
34
|
export type FlowRunNode = z.infer<typeof FlowRunNode>;
|
|
51
35
|
export declare const BaseFlowRun: z.ZodObject<{
|
|
52
36
|
id: z.ZodString;
|
|
@@ -58,83 +42,19 @@ export declare const BaseFlowRun: z.ZodObject<{
|
|
|
58
42
|
startNodeKey: z.ZodString;
|
|
59
43
|
userId: z.ZodString;
|
|
60
44
|
input: z.ZodOptional<z.ZodAny>;
|
|
61
|
-
state: z.
|
|
45
|
+
state: z.ZodEnum<typeof FlowRunState>;
|
|
62
46
|
startTime: z.ZodString;
|
|
63
47
|
endTime: z.ZodOptional<z.ZodString>;
|
|
64
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.
|
|
48
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
|
|
65
49
|
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
66
|
-
state: z.
|
|
50
|
+
state: z.ZodEnum<typeof FlowRunNodeState>;
|
|
67
51
|
runs: z.ZodOptional<z.ZodNumber>;
|
|
68
52
|
erroredRuns: z.ZodOptional<z.ZodNumber>;
|
|
69
53
|
outputs: z.ZodOptional<z.ZodNumber>;
|
|
70
|
-
},
|
|
71
|
-
state: FlowRunNodeState;
|
|
72
|
-
runs?: number | undefined;
|
|
73
|
-
erroredRuns?: number | undefined;
|
|
74
|
-
outputs?: number | undefined;
|
|
75
|
-
}, {
|
|
76
|
-
state: FlowRunNodeState;
|
|
77
|
-
runs?: number | undefined;
|
|
78
|
-
erroredRuns?: number | undefined;
|
|
79
|
-
outputs?: number | undefined;
|
|
80
|
-
}>>>;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
81
55
|
launchedBy: z.ZodOptional<z.ZodObject<{
|
|
82
|
-
type: z.
|
|
83
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodString
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
ids?: string[] | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
type: FlowRunLaunchedByTrigger;
|
|
89
|
-
ids?: string[] | undefined;
|
|
90
|
-
}>>;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
id: string;
|
|
93
|
-
state: FlowRunState;
|
|
94
|
-
userId: string;
|
|
95
|
-
startTime: string;
|
|
96
|
-
flowInstanceId: string;
|
|
97
|
-
startNodeKey: string;
|
|
98
|
-
name?: string | undefined;
|
|
99
|
-
errors?: ErrorDataSchema[] | undefined;
|
|
100
|
-
integrationId?: string | undefined;
|
|
101
|
-
connectionId?: string | undefined;
|
|
102
|
-
endTime?: string | undefined;
|
|
103
|
-
input?: any;
|
|
104
|
-
universalFlowId?: string | undefined;
|
|
105
|
-
nodes?: Record<string, {
|
|
106
|
-
state: FlowRunNodeState;
|
|
107
|
-
runs?: number | undefined;
|
|
108
|
-
erroredRuns?: number | undefined;
|
|
109
|
-
outputs?: number | undefined;
|
|
110
|
-
}> | undefined;
|
|
111
|
-
launchedBy?: {
|
|
112
|
-
type: FlowRunLaunchedByTrigger;
|
|
113
|
-
ids?: string[] | undefined;
|
|
114
|
-
} | undefined;
|
|
115
|
-
}, {
|
|
116
|
-
id: string;
|
|
117
|
-
state: FlowRunState;
|
|
118
|
-
userId: string;
|
|
119
|
-
startTime: string;
|
|
120
|
-
flowInstanceId: string;
|
|
121
|
-
startNodeKey: string;
|
|
122
|
-
name?: string | undefined;
|
|
123
|
-
errors?: ErrorDataSchema[] | undefined;
|
|
124
|
-
integrationId?: string | undefined;
|
|
125
|
-
connectionId?: string | undefined;
|
|
126
|
-
endTime?: string | undefined;
|
|
127
|
-
input?: any;
|
|
128
|
-
universalFlowId?: string | undefined;
|
|
129
|
-
nodes?: Record<string, {
|
|
130
|
-
state: FlowRunNodeState;
|
|
131
|
-
runs?: number | undefined;
|
|
132
|
-
erroredRuns?: number | undefined;
|
|
133
|
-
outputs?: number | undefined;
|
|
134
|
-
}> | undefined;
|
|
135
|
-
launchedBy?: {
|
|
136
|
-
type: FlowRunLaunchedByTrigger;
|
|
137
|
-
ids?: string[] | undefined;
|
|
138
|
-
} | undefined;
|
|
139
|
-
}>;
|
|
56
|
+
type: z.ZodEnum<typeof FlowRunLaunchedByTrigger>;
|
|
57
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
140
60
|
export type BaseFlowRun = z.infer<typeof BaseFlowRun>;
|