@membranehq/sdk 0.2.1 → 0.3.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.
Files changed (39) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -8
  3. package/dist/bundle.d.ts +724 -223
  4. package/dist/bundle.js +166 -47
  5. package/dist/bundle.js.map +1 -1
  6. package/dist/dts/api-client.d.ts +5 -5
  7. package/dist/dts/connections/accessors.d.ts +1 -10
  8. package/dist/dts/connections/types.d.ts +1 -3
  9. package/dist/dts/connectors/auth.d.ts +6 -3
  10. package/dist/dts/connectors/data-locations/base.d.ts +3 -3
  11. package/dist/dts/connectors/data-locations/collections/events/implementation-types/connector-event.d.ts +2 -2
  12. package/dist/dts/connectors/data-locations/collections/events/implementation-types/custom-pull.d.ts +2 -2
  13. package/dist/dts/connectors/data-locations/collections/events/implementation-types/pull-latest-records.d.ts +2 -2
  14. package/dist/dts/connectors/data-locations/collections/events/implementation-types/webhook.d.ts +2 -2
  15. package/dist/dts/connectors/data-locations/collections/index.d.ts +24 -24
  16. package/dist/dts/connectors/data-locations/collections/methods/base.d.ts +3 -3
  17. package/dist/dts/connectors/data-locations/index.d.ts +1 -2
  18. package/dist/dts/connectors/data-locations/methods.d.ts +2 -2
  19. package/dist/dts/connectors/data-locations/schemas.d.ts +1329 -0
  20. package/dist/dts/connectors/data-locations/utils.d.ts +2 -2
  21. package/dist/dts/connectors/types.d.ts +1 -12
  22. package/dist/dts/data-builder/formulas/dataSchemaRef.d.ts +2 -2
  23. package/dist/dts/data-schema/index.d.ts +1 -0
  24. package/dist/dts/data-schema/schemas.d.ts +4 -0
  25. package/dist/dts/errors/index.d.ts +3 -10
  26. package/dist/dts/flow-runs/flow-node-runs.d.ts +347 -15
  27. package/dist/dts/flows/schemas.d.ts +14 -14
  28. package/dist/dts/integrations/accessors.d.ts +3 -5
  29. package/dist/index.d.ts +1708 -354
  30. package/dist/index.js +191 -87
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.module.d.mts +1708 -354
  33. package/dist/index.module.mjs +166 -85
  34. package/dist/index.module.mjs.map +1 -1
  35. package/package.json +3 -3
  36. package/dist/dts/connectors/data-locations/directories/index.d.ts +0 -17
  37. package/dist/dts/connectors/data-locations/directories/methods/base.d.ts +0 -18
  38. package/dist/dts/connectors/data-locations/directories/methods/list.d.ts +0 -2
  39. package/dist/dts/connectors/data-locations/types.d.ts +0 -258
@@ -1,5 +1,5 @@
1
1
  import { DataSchema } from '../../data-schema';
2
- import { ConnectorDataLocation, DataCollectionSpec, DataLocationPointer } from '.';
2
+ import { ConnectorDataCollection, DataCollectionSpec, DataLocationPointer } from '.';
3
3
  export declare function getDataLocationMethodPath(locationKey: any, methodKey: any): string;
4
4
  export declare function dataLocationParametersMatch({ locationParameters, targetParameters, }: {
5
5
  locationParameters: Record<string, any>;
@@ -11,7 +11,7 @@ export declare function makeDataLocationPath(pointer: DataLocationPointer): stri
11
11
  export declare function makeDataLocationPath(pointer: DataLocationPointer | undefined): string | undefined;
12
12
  export declare function makeDataLocationOperationPath(collectionPath: string, operation: string): string;
13
13
  export declare function isSameDataLocation(location1: DataLocationPointer, location2: DataLocationPointer): boolean;
14
- export declare function isDataLocationMethodSupported(location: ConnectorDataLocation, methodKey: string): boolean;
14
+ export declare function isDataLocationMethodSupported(location: ConnectorDataCollection, methodKey: string): boolean;
15
15
  export declare function getDataCollectionCreateFields(spec: DataCollectionSpec): DataSchema | undefined;
16
16
  export declare function getDataCollectionUpdateFields(spec: DataCollectionSpec): DataSchema | undefined;
17
17
  export declare function getWritableFieldsSchema(spec: DataCollectionSpec): DataSchema | undefined;
@@ -1,7 +1,5 @@
1
1
  import { DataSchema } from '../data-schema';
2
- import { UDM } from '../udm';
3
2
  import { ConnectorAuth } from './auth';
4
- import { DataLocation, DataLocationSpec } from './data-locations';
5
3
  import { ConnectorMethodImplementation } from './methods';
6
4
  import { ConnectorOperationHandler } from './operations';
7
5
  import { ConnectorUdmSpec } from './udm';
@@ -35,15 +33,6 @@ export interface ConnectorUiSpec {
35
33
  helpUri?: string;
36
34
  test?: boolean;
37
35
  }
38
- export type ConnectorDataUdmSpec = {
39
- rootLocation: DataLocation;
40
- };
41
- export type ConnectorDataSpec = {
42
- rootLocation?: DataLocation;
43
- locations?: DataLocationSpec[];
44
- udm?: Partial<Record<UDM, ConnectorDataUdmSpec>>;
45
- root?: DataLocation;
46
- } & Partial<Record<UDM, DataLocation>>;
47
36
  export type ConnectorApiType = 'openapi' | 'graphql';
48
37
  export interface ConnectorSpec {
49
38
  key?: string;
@@ -57,7 +46,6 @@ export interface ConnectorSpec {
57
46
  ui?: ConnectorUiSpec;
58
47
  auth?: ConnectorAuth;
59
48
  parametersSchema?: DataSchema;
60
- data?: ConnectorDataSpec;
61
49
  udms?: string[];
62
50
  udm?: Record<string, ConnectorUdmSpec>;
63
51
  operations?: ConnectorOperationHandler[];
@@ -66,6 +54,7 @@ export interface ConnectorSpec {
66
54
  appUuid?: string;
67
55
  knowledgeBaseUuid?: string;
68
56
  workspaceId?: string;
57
+ data?: any;
69
58
  }
70
59
  export type MinimalConnector = {
71
60
  id: string;
@@ -13,8 +13,8 @@ export declare class DataSchemaRef extends DataBuilderFormulaBase<DataSchemaRefA
13
13
  value: any;
14
14
  constructor(value: any);
15
15
  getValue(): undefined;
16
- resolveValue(params: ResolveFormulaParams): Promise<import("../..").DataSchema | undefined>;
17
- resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<import("../..").DataSchema | undefined>;
16
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
17
+ resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<any>;
18
18
  resolveInternalDataSchema(args: DataSchemaRegArgsInternalDataSchema, params: ResolveFormulaParams): Promise<import("../..").DataSchema | undefined>;
19
19
  getSchema(): {
20
20
  type: string;
@@ -1,5 +1,6 @@
1
1
  export * from './create';
2
2
  export * from './data-field';
3
3
  export * from './merge';
4
+ export * from './schemas';
4
5
  export * from './types';
5
6
  export * from './utils';
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ declare const DataSchemaSchema: any;
3
+ export { DataSchemaSchema };
4
+ export type DataSchemaType = z.infer<typeof DataSchemaSchema>;
@@ -1,5 +1,5 @@
1
+ import { z } from 'zod';
1
2
  import { WorkspaceElementReference } from '../workspace-elements';
2
- import { ErrorDoc } from './error-doc-enum';
3
3
  export * from './error-doc-enum';
4
4
  export declare enum ErrorType {
5
5
  BAD_REQUEST = "bad_request",
@@ -30,15 +30,8 @@ export declare enum ConnectionErrorKey {
30
30
  export declare enum ConcurrencyErrorKey {
31
31
  LOCK_TIMEOUT = "lock_timeout"
32
32
  }
33
- interface ErrorDataFields {
34
- type?: ErrorType;
35
- key?: string;
36
- message: string;
37
- data?: any;
38
- doc?: ErrorDoc;
39
- stack?: any;
40
- causedByError?: ErrorData;
41
- logs?: any[];
33
+ export declare const ErrorDataSchema: any;
34
+ interface ErrorDataFields extends z.infer<typeof ErrorDataSchema> {
42
35
  }
43
36
  type ErrorConstructorArg = string | ErrorDataFields | Error;
44
37
  export declare function isIntegrationAppError(error: any): any;
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import { ErrorData } from '../errors';
2
3
  export declare enum FlowNodeRunStatus {
3
4
  COMPLETED = "completed",
@@ -9,34 +10,365 @@ export interface FlowNodeHandlerRunResponse {
9
10
  output?: any;
10
11
  errors?: ErrorData[];
11
12
  }
12
- export interface UpstreamFlowNodeRun {
13
+ export declare const UpstreamFlowNodeRunSchema: z.ZodObject<{
14
+ nodeKey: z.ZodString;
15
+ runId: z.ZodString;
16
+ outputId: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
13
18
  nodeKey: string;
14
19
  runId: string;
15
20
  outputId: string;
21
+ }, {
22
+ nodeKey: string;
23
+ runId: string;
24
+ outputId: string;
25
+ }>;
26
+ export interface UpstreamFlowNodeRun extends z.infer<typeof UpstreamFlowNodeRunSchema> {
16
27
  }
17
- export interface DownstreamFlowNodeRun {
28
+ export declare const DownstreamFlowNodeRunSchema: z.ZodObject<{
29
+ runId: z.ZodString;
30
+ nodeKey: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ nodeKey: string;
18
33
  runId: string;
34
+ }, {
19
35
  nodeKey: string;
36
+ runId: string;
37
+ }>;
38
+ export interface DownstreamFlowNodeRun extends z.infer<typeof DownstreamFlowNodeRunSchema> {
20
39
  }
21
- export interface FlowNodeRunParameters {
40
+ export declare const FlowNodeRunParametersSchema: z.ZodObject<{
41
+ id: z.ZodString;
42
+ upstreamRuns: z.ZodArray<z.ZodObject<{
43
+ nodeKey: z.ZodString;
44
+ runId: z.ZodString;
45
+ outputId: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ nodeKey: string;
48
+ runId: string;
49
+ outputId: string;
50
+ }, {
51
+ nodeKey: string;
52
+ runId: string;
53
+ outputId: string;
54
+ }>, "many">;
55
+ input: z.ZodAny;
56
+ }, "strip", z.ZodTypeAny, {
57
+ id: string;
58
+ upstreamRuns: {
59
+ nodeKey: string;
60
+ runId: string;
61
+ outputId: string;
62
+ }[];
63
+ input?: any;
64
+ }, {
22
65
  id: string;
23
- upstreamRuns: UpstreamFlowNodeRun[];
24
- input: any;
66
+ upstreamRuns: {
67
+ nodeKey: string;
68
+ runId: string;
69
+ outputId: string;
70
+ }[];
71
+ input?: any;
72
+ }>;
73
+ export interface FlowNodeRunParameters extends z.infer<typeof FlowNodeRunParametersSchema> {
25
74
  }
26
- export interface FlowNodeRunOutput {
75
+ export declare const FlowNodeRunOutputSchema: z.ZodObject<{
76
+ id: z.ZodString;
77
+ data: z.ZodString;
78
+ downstreamRuns: z.ZodArray<z.ZodObject<{
79
+ runId: z.ZodString;
80
+ nodeKey: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ nodeKey: string;
83
+ runId: string;
84
+ }, {
85
+ nodeKey: string;
86
+ runId: string;
87
+ }>, "many">;
88
+ }, "strip", z.ZodTypeAny, {
89
+ data: string;
27
90
  id: string;
91
+ downstreamRuns: {
92
+ nodeKey: string;
93
+ runId: string;
94
+ }[];
95
+ }, {
28
96
  data: string;
29
- downstreamRuns: DownstreamFlowNodeRun[];
97
+ id: string;
98
+ downstreamRuns: {
99
+ nodeKey: string;
100
+ runId: string;
101
+ }[];
102
+ }>;
103
+ export interface FlowNodeRunOutput extends z.infer<typeof FlowNodeRunOutputSchema> {
30
104
  }
31
- export interface FlowNodeRunResult {
105
+ export declare const FlowNodeRunResultSchema: z.ZodObject<{
106
+ status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
107
+ logs: z.ZodArray<z.ZodAny, "many">;
108
+ outputs: z.ZodArray<z.ZodObject<{
109
+ id: z.ZodString;
110
+ data: z.ZodString;
111
+ downstreamRuns: z.ZodArray<z.ZodObject<{
112
+ runId: z.ZodString;
113
+ nodeKey: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ nodeKey: string;
116
+ runId: string;
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<any, "many">;
137
+ }, "strip", z.ZodTypeAny, {
138
+ logs: any[];
32
139
  status: FlowNodeRunStatus;
140
+ outputs: {
141
+ data: string;
142
+ id: string;
143
+ downstreamRuns: {
144
+ nodeKey: string;
145
+ runId: string;
146
+ }[];
147
+ }[];
148
+ errors: any[];
149
+ }, {
33
150
  logs: any[];
34
- outputs: FlowNodeRunOutput[];
35
- errors: ErrorData[];
151
+ status: FlowNodeRunStatus;
152
+ outputs: {
153
+ data: string;
154
+ id: string;
155
+ downstreamRuns: {
156
+ nodeKey: string;
157
+ runId: string;
158
+ }[];
159
+ }[];
160
+ errors: any[];
161
+ }>;
162
+ export interface FlowNodeRunResult extends z.infer<typeof FlowNodeRunResultSchema> {
36
163
  }
37
- export interface FlowNodeRunRecord extends FlowNodeRunParameters, FlowNodeRunResult {
164
+ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
165
+ id: z.ZodString;
166
+ upstreamRuns: z.ZodArray<z.ZodObject<{
167
+ nodeKey: z.ZodString;
168
+ runId: z.ZodString;
169
+ outputId: z.ZodString;
170
+ }, "strip", z.ZodTypeAny, {
171
+ nodeKey: string;
172
+ runId: string;
173
+ outputId: string;
174
+ }, {
175
+ nodeKey: string;
176
+ runId: string;
177
+ outputId: string;
178
+ }>, "many">;
179
+ input: z.ZodAny;
180
+ } & {
181
+ status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
182
+ logs: z.ZodArray<z.ZodAny, "many">;
183
+ outputs: z.ZodArray<z.ZodObject<{
184
+ id: z.ZodString;
185
+ data: z.ZodString;
186
+ downstreamRuns: z.ZodArray<z.ZodObject<{
187
+ runId: z.ZodString;
188
+ nodeKey: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ nodeKey: string;
191
+ runId: string;
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<any, "many">;
212
+ }, "strip", z.ZodTypeAny, {
213
+ logs: any[];
214
+ status: FlowNodeRunStatus;
215
+ id: string;
216
+ upstreamRuns: {
217
+ nodeKey: string;
218
+ runId: string;
219
+ outputId: string;
220
+ }[];
221
+ outputs: {
222
+ data: string;
223
+ id: string;
224
+ downstreamRuns: {
225
+ nodeKey: string;
226
+ runId: string;
227
+ }[];
228
+ }[];
229
+ errors: any[];
230
+ input?: any;
231
+ }, {
232
+ logs: any[];
233
+ status: FlowNodeRunStatus;
234
+ id: string;
235
+ upstreamRuns: {
236
+ nodeKey: string;
237
+ runId: string;
238
+ outputId: string;
239
+ }[];
240
+ outputs: {
241
+ data: string;
242
+ id: string;
243
+ downstreamRuns: {
244
+ nodeKey: string;
245
+ runId: string;
246
+ }[];
247
+ }[];
248
+ errors: any[];
249
+ input?: any;
250
+ }>;
251
+ export interface FlowNodeRunRecord extends z.infer<typeof FlowNodeRunRecordSchema> {
252
+ }
253
+ export declare const FlowNodeRunOutputWithoutDownstreamRunsSchema: z.ZodObject<{
254
+ id: z.ZodString;
255
+ data: z.ZodString;
256
+ }, "strip", z.ZodTypeAny, {
257
+ data: string;
258
+ id: string;
259
+ }, {
260
+ data: string;
261
+ id: string;
262
+ }>;
263
+ export interface FlowNodeRunOutputWithoutDownstreamRuns extends z.infer<typeof FlowNodeRunOutputWithoutDownstreamRunsSchema> {
264
+ }
265
+ export declare const FlowNodeRunOutputMetadataSchema: z.ZodObject<{
266
+ id: z.ZodString;
267
+ downstreamRuns: z.ZodArray<z.ZodObject<{
268
+ runId: z.ZodString;
269
+ nodeKey: z.ZodString;
270
+ }, "strip", z.ZodTypeAny, {
271
+ nodeKey: string;
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
+ }>;
290
+ export interface FlowNodeRunOutputMetadata extends z.infer<typeof FlowNodeRunOutputMetadataSchema> {
291
+ }
292
+ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
293
+ id: z.ZodString;
294
+ upstreamRuns: z.ZodArray<z.ZodObject<{
295
+ nodeKey: z.ZodString;
296
+ runId: z.ZodString;
297
+ outputId: z.ZodString;
298
+ }, "strip", z.ZodTypeAny, {
299
+ nodeKey: string;
300
+ runId: string;
301
+ outputId: string;
302
+ }, {
303
+ nodeKey: string;
304
+ runId: string;
305
+ outputId: string;
306
+ }>, "many">;
307
+ input: z.ZodAny;
308
+ status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
309
+ logs: z.ZodArray<z.ZodAny, "many">;
310
+ outputs: z.ZodArray<z.ZodObject<{
311
+ id: z.ZodString;
312
+ downstreamRuns: z.ZodArray<z.ZodObject<{
313
+ runId: z.ZodString;
314
+ nodeKey: z.ZodString;
315
+ }, "strip", z.ZodTypeAny, {
316
+ nodeKey: string;
317
+ runId: string;
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<any, "many">;
336
+ }, "strip", z.ZodTypeAny, {
337
+ logs: any[];
338
+ status: FlowNodeRunStatus;
339
+ id: string;
340
+ upstreamRuns: {
341
+ nodeKey: string;
342
+ runId: string;
343
+ outputId: string;
344
+ }[];
345
+ outputs: {
346
+ id: string;
347
+ downstreamRuns: {
348
+ nodeKey: string;
349
+ runId: string;
350
+ }[];
351
+ }[];
352
+ errors: any[];
353
+ input?: any;
354
+ }, {
355
+ logs: any[];
356
+ status: FlowNodeRunStatus;
357
+ id: string;
358
+ upstreamRuns: {
359
+ nodeKey: string;
360
+ runId: string;
361
+ outputId: string;
362
+ }[];
363
+ outputs: {
364
+ id: string;
365
+ downstreamRuns: {
366
+ nodeKey: string;
367
+ runId: string;
368
+ }[];
369
+ }[];
370
+ errors: any[];
371
+ input?: any;
372
+ }>;
373
+ export interface FlowNodeRunRecordWithoutOutputsData extends z.infer<typeof FlowNodeRunRecordWithoutOutputsDataSchema> {
38
374
  }
39
- export type FlowNodeRunRecordWithoutOutputsData = FlowNodeRunRecord & {
40
- outputs: Omit<FlowNodeRunOutput, 'data'>[];
41
- };
42
- export type FlowNodeRunOutputWithoutDownstreamRuns = Omit<FlowNodeRunOutput, 'downstreamRuns'>;
@@ -21,12 +21,12 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
21
21
  name: z.ZodOptional<z.ZodString>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  key?: string | undefined;
24
- name?: string | undefined;
25
24
  filter?: any;
25
+ name?: string | undefined;
26
26
  }, {
27
27
  key?: string | undefined;
28
- name?: string | undefined;
29
28
  filter?: any;
29
+ name?: string | undefined;
30
30
  }>, "many">>;
31
31
  isCustomized: z.ZodOptional<z.ZodBoolean>;
32
32
  }, "strip", z.ZodTypeAny, {
@@ -39,8 +39,8 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
39
39
  ui?: any;
40
40
  links?: {
41
41
  key?: string | undefined;
42
- name?: string | undefined;
43
42
  filter?: any;
43
+ name?: string | undefined;
44
44
  }[] | undefined;
45
45
  isCustomized?: boolean | undefined;
46
46
  }, {
@@ -53,8 +53,8 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
53
53
  ui?: any;
54
54
  links?: {
55
55
  key?: string | undefined;
56
- name?: string | undefined;
57
56
  filter?: any;
57
+ name?: string | undefined;
58
58
  }[] | undefined;
59
59
  isCustomized?: boolean | undefined;
60
60
  }>>>;
@@ -73,8 +73,8 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
73
73
  name?: string | undefined;
74
74
  userId?: string | undefined;
75
75
  integrationId?: string | undefined;
76
- connectionId?: string | undefined;
77
76
  parameters?: any;
77
+ connectionId?: string | undefined;
78
78
  flowId?: string | undefined;
79
79
  instanceKey?: string | undefined;
80
80
  nodes?: Record<string, {
@@ -87,8 +87,8 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
87
87
  ui?: any;
88
88
  links?: {
89
89
  key?: string | undefined;
90
- name?: string | undefined;
91
90
  filter?: any;
91
+ name?: string | undefined;
92
92
  }[] | undefined;
93
93
  isCustomized?: boolean | undefined;
94
94
  }> | undefined;
@@ -101,8 +101,8 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
101
101
  name?: string | undefined;
102
102
  userId?: string | undefined;
103
103
  integrationId?: string | undefined;
104
- connectionId?: string | undefined;
105
104
  parameters?: any;
105
+ connectionId?: string | undefined;
106
106
  flowId?: string | undefined;
107
107
  instanceKey?: string | undefined;
108
108
  nodes?: Record<string, {
@@ -115,8 +115,8 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
115
115
  ui?: any;
116
116
  links?: {
117
117
  key?: string | undefined;
118
- name?: string | undefined;
119
118
  filter?: any;
119
+ name?: string | undefined;
120
120
  }[] | undefined;
121
121
  isCustomized?: boolean | undefined;
122
122
  }> | undefined;
@@ -142,12 +142,12 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
142
142
  name: z.ZodOptional<z.ZodString>;
143
143
  }, "strip", z.ZodTypeAny, {
144
144
  key?: string | undefined;
145
- name?: string | undefined;
146
145
  filter?: any;
146
+ name?: string | undefined;
147
147
  }, {
148
148
  key?: string | undefined;
149
- name?: string | undefined;
150
149
  filter?: any;
150
+ name?: string | undefined;
151
151
  }>, "many">>;
152
152
  concurrency: z.ZodOptional<z.ZodNumber>;
153
153
  isCustomized: z.ZodOptional<z.ZodBoolean>;
@@ -160,8 +160,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
160
160
  onError?: "stop" | "continue" | undefined;
161
161
  links?: {
162
162
  key?: string | undefined;
163
- name?: string | undefined;
164
163
  filter?: any;
164
+ name?: string | undefined;
165
165
  }[] | undefined;
166
166
  isCustomized?: boolean | undefined;
167
167
  }, {
@@ -173,8 +173,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
173
173
  onError?: "stop" | "continue" | undefined;
174
174
  links?: {
175
175
  key?: string | undefined;
176
- name?: string | undefined;
177
176
  filter?: any;
177
+ name?: string | undefined;
178
178
  }[] | undefined;
179
179
  isCustomized?: boolean | undefined;
180
180
  }>>>;
@@ -201,8 +201,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
201
201
  onError?: "stop" | "continue" | undefined;
202
202
  links?: {
203
203
  key?: string | undefined;
204
- name?: string | undefined;
205
204
  filter?: any;
205
+ name?: string | undefined;
206
206
  }[] | undefined;
207
207
  isCustomized?: boolean | undefined;
208
208
  }> | undefined;
@@ -224,8 +224,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
224
224
  onError?: "stop" | "continue" | undefined;
225
225
  links?: {
226
226
  key?: string | undefined;
227
- name?: string | undefined;
228
227
  filter?: any;
228
+ name?: string | undefined;
229
229
  }[] | undefined;
230
230
  isCustomized?: boolean | undefined;
231
231
  }> | undefined;
@@ -2,7 +2,7 @@ import { ElementAccessor, ElementListAccessor } from '../accessors';
2
2
  import { IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor } from '../actions';
3
3
  import { IntegrationAppApiClient } from '../api-client';
4
4
  import { Connection, ConnectionSpec } from '../connections';
5
- import { DataLocationListItem, DataLocationSpec, OperationListItem, OperationSpec } from '../connectors';
5
+ import { DataCollectionListItem, DataCollectionSpec, OperationListItem, OperationSpec } from '../connectors';
6
6
  import { IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor } from '../data-sources';
7
7
  import { IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor } from '../field-mappings';
8
8
  import { IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor } from '../flows';
@@ -51,9 +51,7 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
51
51
  disconnect(): Promise<void>;
52
52
  getOperations(): Promise<OperationListItem[]>;
53
53
  getOperation(key: string): Promise<OperationSpec>;
54
- getDataCollections(): Promise<DataLocationListItem[]>;
55
- getDataCollection(key: string): Promise<DataLocationSpec>;
56
- getDataLocations(): Promise<DataLocationListItem[]>;
57
- getDataLocation(key: string): Promise<DataLocationSpec>;
54
+ getDataCollections(): Promise<DataCollectionListItem[]>;
55
+ getDataCollection(key: string): Promise<DataCollectionSpec>;
58
56
  }
59
57
  export {};