@membranehq/sdk 0.4.0 → 0.5.1
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 +16299 -1303
- package/dist/bundle.js +3980 -3701
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +78 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +78 -1
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/client.d.ts +1 -0
- package/dist/dts/data-schema/index.d.ts +0 -1
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/entity-repository.d.ts +88 -20
- package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
- package/dist/dts/http-requests.d.ts +20 -6
- package/dist/dts/iframe.d.ts +12 -4
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/sse/index.d.ts +1 -0
- package/dist/dts/sse/workspace-elements.d.ts +9 -0
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
- package/dist/dts/workspace-elements/api/actions-api.d.ts +1010 -45
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
- package/dist/dts/workspace-elements/api/connections-api.d.ts +993 -42
- package/dist/dts/workspace-elements/api/customers-api.d.ts +92 -16
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +1113 -78
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +582 -6
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +885 -7
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
- package/dist/dts/workspace-elements/api/flows-api.d.ts +3202 -52
- package/dist/dts/workspace-elements/api/index.d.ts +1 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +339 -26
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +523 -35
- package/dist/dts/workspace-elements/api/screens-api.d.ts +35 -15
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +78 -15
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +37 -12
- package/dist/dts/workspace-elements/base/actions/types.d.ts +78 -18
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +59 -7
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +49 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +92 -9
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +84 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +82 -20
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
- package/dist/dts/workspace-elements/base/customers/index.d.ts +32 -6
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +93 -92
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +78 -11
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +43 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1048 -19
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +97 -22
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +197 -24
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +92 -16
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +105 -14
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +43 -43
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +170 -24
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +127 -19
- package/dist/dts/workspace-elements/base/flows/types.d.ts +234 -26
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +988 -25
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +740 -23
- package/dist/dts/workspace-elements/base/screens/types.d.ts +48 -6
- package/dist/dts/workspace-elements/types.d.ts +25 -3
- package/dist/dts/workspaces/types.d.ts +4 -3
- package/dist/index.d.ts +26481 -3080
- package/dist/index.js +1717 -535
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +26481 -3080
- package/dist/index.module.mjs +1550 -502
- package/dist/index.module.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/dts/data-schema/schemas.d.ts +0 -4
- package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
|
@@ -214,11 +214,6 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
214
214
|
status: FlowNodeRunStatus;
|
|
215
215
|
id: string;
|
|
216
216
|
errors: any[];
|
|
217
|
-
upstreamRuns: {
|
|
218
|
-
nodeKey: string;
|
|
219
|
-
runId: string;
|
|
220
|
-
outputId: string;
|
|
221
|
-
}[];
|
|
222
217
|
outputs: {
|
|
223
218
|
data: string;
|
|
224
219
|
id: string;
|
|
@@ -227,17 +222,17 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
227
222
|
runId: string;
|
|
228
223
|
}[];
|
|
229
224
|
}[];
|
|
225
|
+
upstreamRuns: {
|
|
226
|
+
nodeKey: string;
|
|
227
|
+
runId: string;
|
|
228
|
+
outputId: string;
|
|
229
|
+
}[];
|
|
230
230
|
input?: any;
|
|
231
231
|
}, {
|
|
232
232
|
logs: any[];
|
|
233
233
|
status: FlowNodeRunStatus;
|
|
234
234
|
id: string;
|
|
235
235
|
errors: any[];
|
|
236
|
-
upstreamRuns: {
|
|
237
|
-
nodeKey: string;
|
|
238
|
-
runId: string;
|
|
239
|
-
outputId: string;
|
|
240
|
-
}[];
|
|
241
236
|
outputs: {
|
|
242
237
|
data: string;
|
|
243
238
|
id: string;
|
|
@@ -246,6 +241,11 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
246
241
|
runId: string;
|
|
247
242
|
}[];
|
|
248
243
|
}[];
|
|
244
|
+
upstreamRuns: {
|
|
245
|
+
nodeKey: string;
|
|
246
|
+
runId: string;
|
|
247
|
+
outputId: string;
|
|
248
|
+
}[];
|
|
249
249
|
input?: any;
|
|
250
250
|
}>;
|
|
251
251
|
export interface FlowNodeRunRecord extends z.infer<typeof FlowNodeRunRecordSchema> {
|
|
@@ -338,11 +338,6 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
338
338
|
status: FlowNodeRunStatus;
|
|
339
339
|
id: string;
|
|
340
340
|
errors: any[];
|
|
341
|
-
upstreamRuns: {
|
|
342
|
-
nodeKey: string;
|
|
343
|
-
runId: string;
|
|
344
|
-
outputId: string;
|
|
345
|
-
}[];
|
|
346
341
|
outputs: {
|
|
347
342
|
id: string;
|
|
348
343
|
downstreamRuns: {
|
|
@@ -350,17 +345,17 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
350
345
|
runId: string;
|
|
351
346
|
}[];
|
|
352
347
|
}[];
|
|
348
|
+
upstreamRuns: {
|
|
349
|
+
nodeKey: string;
|
|
350
|
+
runId: string;
|
|
351
|
+
outputId: string;
|
|
352
|
+
}[];
|
|
353
353
|
input?: any;
|
|
354
354
|
}, {
|
|
355
355
|
logs: any[];
|
|
356
356
|
status: FlowNodeRunStatus;
|
|
357
357
|
id: string;
|
|
358
358
|
errors: any[];
|
|
359
|
-
upstreamRuns: {
|
|
360
|
-
nodeKey: string;
|
|
361
|
-
runId: string;
|
|
362
|
-
outputId: string;
|
|
363
|
-
}[];
|
|
364
359
|
outputs: {
|
|
365
360
|
id: string;
|
|
366
361
|
downstreamRuns: {
|
|
@@ -368,6 +363,11 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
368
363
|
runId: string;
|
|
369
364
|
}[];
|
|
370
365
|
}[];
|
|
366
|
+
upstreamRuns: {
|
|
367
|
+
nodeKey: string;
|
|
368
|
+
runId: string;
|
|
369
|
+
outputId: string;
|
|
370
|
+
}[];
|
|
371
371
|
input?: any;
|
|
372
372
|
}>;
|
|
373
373
|
export interface FlowNodeRunRecordWithoutOutputsData extends z.infer<typeof FlowNodeRunRecordWithoutOutputsDataSchema> {
|
|
@@ -1,31 +1,139 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FlowRunState, FlowRunLaunchedBy } from '../../api/flow-runs-api';
|
|
1
|
+
import { z } from 'zod';
|
|
3
2
|
export declare enum FlowRunNodeState {
|
|
4
3
|
RUNNING = "running",
|
|
5
4
|
COMPLETED = "completed",
|
|
6
5
|
STOPPED = "stopped",
|
|
7
6
|
FAILED = "failed"
|
|
8
7
|
}
|
|
9
|
-
export
|
|
8
|
+
export declare enum FlowRunState {
|
|
9
|
+
QUEUED = "queued",
|
|
10
|
+
RUNNING = "running",
|
|
11
|
+
COMPLETED = "completed",
|
|
12
|
+
STOPPED = "stopped",
|
|
13
|
+
FAILED = "failed"
|
|
14
|
+
}
|
|
15
|
+
export declare enum FlowRunLaunchedByTrigger {
|
|
16
|
+
ApiTrigger = "api-trigger",
|
|
17
|
+
ScheduleTrigger = "schedule-trigger",
|
|
18
|
+
AppEventTrigger = "app-event-trigger",
|
|
19
|
+
DataSourceTrigger = "data-source-trigger",
|
|
20
|
+
ExternalEvent = "external-event"
|
|
21
|
+
}
|
|
22
|
+
export declare const FlowRunLaunchedBy: z.ZodObject<{
|
|
23
|
+
type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
|
|
24
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
type: FlowRunLaunchedByTrigger;
|
|
27
|
+
ids?: string[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
type: FlowRunLaunchedByTrigger;
|
|
30
|
+
ids?: string[] | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export type FlowRunLaunchedBy = z.infer<typeof FlowRunLaunchedBy>;
|
|
33
|
+
export declare const FlowRunNode: z.ZodObject<{
|
|
34
|
+
state: z.ZodNativeEnum<typeof FlowRunNodeState>;
|
|
35
|
+
runs: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
erroredRuns: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
outputs: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
state: FlowRunNodeState;
|
|
40
|
+
runs?: number | undefined;
|
|
41
|
+
erroredRuns?: number | undefined;
|
|
42
|
+
outputs?: number | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
state: FlowRunNodeState;
|
|
45
|
+
runs?: number | undefined;
|
|
46
|
+
erroredRuns?: number | undefined;
|
|
47
|
+
outputs?: number | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export type FlowRunNode = z.infer<typeof FlowRunNode>;
|
|
50
|
+
export declare const BaseFlowRun: z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
name: z.ZodOptional<z.ZodString>;
|
|
53
|
+
flowInstanceId: z.ZodString;
|
|
54
|
+
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
startNodeKey: z.ZodString;
|
|
58
|
+
userId: z.ZodString;
|
|
59
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
60
|
+
state: z.ZodNativeEnum<typeof FlowRunState>;
|
|
61
|
+
startTime: z.ZodString;
|
|
62
|
+
endTime: z.ZodOptional<z.ZodString>;
|
|
63
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
64
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
65
|
+
state: z.ZodNativeEnum<typeof FlowRunNodeState>;
|
|
66
|
+
runs: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
erroredRuns: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
outputs: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
state: FlowRunNodeState;
|
|
71
|
+
runs?: number | undefined;
|
|
72
|
+
erroredRuns?: number | undefined;
|
|
73
|
+
outputs?: number | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
state: FlowRunNodeState;
|
|
76
|
+
runs?: number | undefined;
|
|
77
|
+
erroredRuns?: number | undefined;
|
|
78
|
+
outputs?: number | undefined;
|
|
79
|
+
}>>>;
|
|
80
|
+
launchedBy: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
|
|
82
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
type: FlowRunLaunchedByTrigger;
|
|
85
|
+
ids?: string[] | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
type: FlowRunLaunchedByTrigger;
|
|
88
|
+
ids?: string[] | undefined;
|
|
89
|
+
}>>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
91
|
id: string;
|
|
11
|
-
|
|
92
|
+
state: FlowRunState;
|
|
93
|
+
userId: string;
|
|
94
|
+
startTime: string;
|
|
12
95
|
flowInstanceId: string;
|
|
13
|
-
universalFlowId?: string;
|
|
14
|
-
connectionId?: string;
|
|
15
|
-
integrationId?: string;
|
|
16
96
|
startNodeKey: string;
|
|
17
|
-
|
|
97
|
+
name?: string | undefined;
|
|
98
|
+
errors?: any[] | undefined;
|
|
99
|
+
connectionId?: string | undefined;
|
|
100
|
+
integrationId?: string | undefined;
|
|
101
|
+
endTime?: string | undefined;
|
|
18
102
|
input?: any;
|
|
103
|
+
universalFlowId?: string | undefined;
|
|
104
|
+
nodes?: Record<string, {
|
|
105
|
+
state: FlowRunNodeState;
|
|
106
|
+
runs?: number | undefined;
|
|
107
|
+
erroredRuns?: number | undefined;
|
|
108
|
+
outputs?: number | undefined;
|
|
109
|
+
}> | undefined;
|
|
110
|
+
launchedBy?: {
|
|
111
|
+
type: FlowRunLaunchedByTrigger;
|
|
112
|
+
ids?: string[] | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
}, {
|
|
115
|
+
id: string;
|
|
19
116
|
state: FlowRunState;
|
|
117
|
+
userId: string;
|
|
20
118
|
startTime: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
119
|
+
flowInstanceId: string;
|
|
120
|
+
startNodeKey: string;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
errors?: any[] | undefined;
|
|
123
|
+
connectionId?: string | undefined;
|
|
124
|
+
integrationId?: string | undefined;
|
|
125
|
+
endTime?: string | undefined;
|
|
126
|
+
input?: any;
|
|
127
|
+
universalFlowId?: string | undefined;
|
|
128
|
+
nodes?: Record<string, {
|
|
129
|
+
state: FlowRunNodeState;
|
|
130
|
+
runs?: number | undefined;
|
|
131
|
+
erroredRuns?: number | undefined;
|
|
132
|
+
outputs?: number | undefined;
|
|
133
|
+
}> | undefined;
|
|
134
|
+
launchedBy?: {
|
|
135
|
+
type: FlowRunLaunchedByTrigger;
|
|
136
|
+
ids?: string[] | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
}>;
|
|
139
|
+
export type BaseFlowRun = z.infer<typeof BaseFlowRun>;
|
|
@@ -1,33 +1,241 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { DataSchema } from '../../../data-schema';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export declare const FlowNodeLink: z.ZodObject<{
|
|
4
|
+
key: z.ZodOptional<z.ZodString>;
|
|
5
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
key?: string | undefined;
|
|
9
|
+
filter?: any;
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
key?: string | undefined;
|
|
13
|
+
filter?: any;
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export type FlowNodeLink = z.infer<typeof FlowNodeLink>;
|
|
17
|
+
export declare const FlowNode: z.ZodObject<{
|
|
18
|
+
type: z.ZodOptional<z.ZodString>;
|
|
19
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
name: z.ZodOptional<z.ZodString>;
|
|
21
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
23
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
|
|
25
|
+
ui: z.ZodOptional<z.ZodAny>;
|
|
26
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
28
|
+
outputExample: z.ZodOptional<z.ZodAny>;
|
|
29
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
30
|
+
key: z.ZodOptional<z.ZodString>;
|
|
31
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
32
|
+
name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
key?: string | undefined;
|
|
35
|
+
filter?: any;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
key?: string | undefined;
|
|
39
|
+
filter?: any;
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
}>, "many">>;
|
|
42
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
concurrency?: number | undefined;
|
|
45
|
+
type?: string | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
ui?: any;
|
|
49
|
+
isCustomized?: boolean | undefined;
|
|
50
|
+
inputSchema?: any;
|
|
8
51
|
config?: any;
|
|
9
|
-
|
|
10
|
-
|
|
52
|
+
outputSchema?: any;
|
|
53
|
+
version?: number | undefined;
|
|
54
|
+
onError?: "stop" | "continue" | undefined;
|
|
55
|
+
outputExample?: any;
|
|
56
|
+
links?: {
|
|
57
|
+
key?: string | undefined;
|
|
58
|
+
filter?: any;
|
|
59
|
+
name?: string | undefined;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
concurrency?: number | undefined;
|
|
63
|
+
type?: string | undefined;
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
description?: string | undefined;
|
|
11
66
|
ui?: any;
|
|
67
|
+
isCustomized?: boolean | undefined;
|
|
12
68
|
inputSchema?: any;
|
|
69
|
+
config?: any;
|
|
13
70
|
outputSchema?: any;
|
|
71
|
+
version?: number | undefined;
|
|
72
|
+
onError?: "stop" | "continue" | undefined;
|
|
14
73
|
outputExample?: any;
|
|
15
|
-
links?:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
74
|
+
links?: {
|
|
75
|
+
key?: string | undefined;
|
|
76
|
+
filter?: any;
|
|
77
|
+
name?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export type FlowNode = z.infer<typeof FlowNode>;
|
|
81
|
+
export declare const BaseFlow: z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
key: z.ZodOptional<z.ZodString>;
|
|
85
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
86
|
+
description: z.ZodOptional<z.ZodString>;
|
|
87
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
88
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
89
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
91
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
92
|
+
} & {
|
|
93
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
95
|
+
universalFlowRevision: z.ZodOptional<z.ZodString>;
|
|
96
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
97
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
98
|
+
type: z.ZodOptional<z.ZodString>;
|
|
99
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
name: z.ZodOptional<z.ZodString>;
|
|
101
|
+
description: z.ZodOptional<z.ZodString>;
|
|
102
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
103
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
|
|
105
|
+
ui: z.ZodOptional<z.ZodAny>;
|
|
106
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
107
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
108
|
+
outputExample: z.ZodOptional<z.ZodAny>;
|
|
109
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
110
|
+
key: z.ZodOptional<z.ZodString>;
|
|
111
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
112
|
+
name: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
key?: string | undefined;
|
|
115
|
+
filter?: any;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
key?: string | undefined;
|
|
119
|
+
filter?: any;
|
|
120
|
+
name?: string | undefined;
|
|
121
|
+
}>, "many">>;
|
|
122
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
concurrency?: number | undefined;
|
|
125
|
+
type?: string | undefined;
|
|
126
|
+
name?: string | undefined;
|
|
127
|
+
description?: string | undefined;
|
|
128
|
+
ui?: any;
|
|
129
|
+
isCustomized?: boolean | undefined;
|
|
130
|
+
inputSchema?: any;
|
|
131
|
+
config?: any;
|
|
132
|
+
outputSchema?: any;
|
|
133
|
+
version?: number | undefined;
|
|
134
|
+
onError?: "stop" | "continue" | undefined;
|
|
135
|
+
outputExample?: any;
|
|
136
|
+
links?: {
|
|
137
|
+
key?: string | undefined;
|
|
138
|
+
filter?: any;
|
|
139
|
+
name?: string | undefined;
|
|
140
|
+
}[] | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
concurrency?: number | undefined;
|
|
143
|
+
type?: string | undefined;
|
|
144
|
+
name?: string | undefined;
|
|
145
|
+
description?: string | undefined;
|
|
146
|
+
ui?: any;
|
|
147
|
+
isCustomized?: boolean | undefined;
|
|
148
|
+
inputSchema?: any;
|
|
149
|
+
config?: any;
|
|
150
|
+
outputSchema?: any;
|
|
151
|
+
version?: number | undefined;
|
|
152
|
+
onError?: "stop" | "continue" | undefined;
|
|
153
|
+
outputExample?: any;
|
|
154
|
+
links?: {
|
|
155
|
+
key?: string | undefined;
|
|
156
|
+
filter?: any;
|
|
157
|
+
name?: string | undefined;
|
|
158
|
+
}[] | undefined;
|
|
159
|
+
}>>>;
|
|
160
|
+
autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
162
|
+
revision: z.ZodString;
|
|
163
|
+
customized: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
id: string;
|
|
166
|
+
name: string;
|
|
26
167
|
revision: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
168
|
+
key?: string | undefined;
|
|
169
|
+
uuid?: string | undefined;
|
|
170
|
+
description?: string | undefined;
|
|
171
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
172
|
+
errors?: any[] | undefined;
|
|
173
|
+
isDeactivated?: boolean | undefined;
|
|
174
|
+
createdAt?: string | undefined;
|
|
175
|
+
updatedAt?: string | undefined;
|
|
176
|
+
archivedAt?: string | undefined;
|
|
177
|
+
integrationId?: string | undefined;
|
|
178
|
+
parametersSchema?: DataSchema | undefined;
|
|
179
|
+
customized?: boolean | undefined;
|
|
180
|
+
universalFlowId?: string | undefined;
|
|
181
|
+
universalFlowRevision?: string | undefined;
|
|
182
|
+
nodes?: Record<string, {
|
|
183
|
+
concurrency?: number | undefined;
|
|
184
|
+
type?: string | undefined;
|
|
185
|
+
name?: string | undefined;
|
|
186
|
+
description?: string | undefined;
|
|
187
|
+
ui?: any;
|
|
188
|
+
isCustomized?: boolean | undefined;
|
|
189
|
+
inputSchema?: any;
|
|
190
|
+
config?: any;
|
|
191
|
+
outputSchema?: any;
|
|
192
|
+
version?: number | undefined;
|
|
193
|
+
onError?: "stop" | "continue" | undefined;
|
|
194
|
+
outputExample?: any;
|
|
195
|
+
links?: {
|
|
196
|
+
key?: string | undefined;
|
|
197
|
+
filter?: any;
|
|
198
|
+
name?: string | undefined;
|
|
199
|
+
}[] | undefined;
|
|
200
|
+
}> | undefined;
|
|
201
|
+
autoCreateInstances?: boolean | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
id: string;
|
|
204
|
+
name: string;
|
|
205
|
+
revision: string;
|
|
206
|
+
key?: string | undefined;
|
|
207
|
+
uuid?: string | undefined;
|
|
208
|
+
description?: string | undefined;
|
|
209
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
210
|
+
errors?: any[] | undefined;
|
|
211
|
+
isDeactivated?: boolean | undefined;
|
|
212
|
+
createdAt?: string | undefined;
|
|
213
|
+
updatedAt?: string | undefined;
|
|
214
|
+
archivedAt?: string | undefined;
|
|
215
|
+
integrationId?: string | undefined;
|
|
216
|
+
parametersSchema?: DataSchema | undefined;
|
|
217
|
+
customized?: boolean | undefined;
|
|
218
|
+
universalFlowId?: string | undefined;
|
|
219
|
+
universalFlowRevision?: string | undefined;
|
|
220
|
+
nodes?: Record<string, {
|
|
221
|
+
concurrency?: number | undefined;
|
|
222
|
+
type?: string | undefined;
|
|
223
|
+
name?: string | undefined;
|
|
224
|
+
description?: string | undefined;
|
|
225
|
+
ui?: any;
|
|
226
|
+
isCustomized?: boolean | undefined;
|
|
227
|
+
inputSchema?: any;
|
|
228
|
+
config?: any;
|
|
229
|
+
outputSchema?: any;
|
|
230
|
+
version?: number | undefined;
|
|
231
|
+
onError?: "stop" | "continue" | undefined;
|
|
232
|
+
outputExample?: any;
|
|
233
|
+
links?: {
|
|
234
|
+
key?: string | undefined;
|
|
235
|
+
filter?: any;
|
|
236
|
+
name?: string | undefined;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
}> | undefined;
|
|
239
|
+
autoCreateInstances?: boolean | undefined;
|
|
240
|
+
}>;
|
|
241
|
+
export type BaseFlow = z.infer<typeof BaseFlow>;
|