@membranehq/sdk 0.5.0 → 0.5.2

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 (69) hide show
  1. package/dist/bundle.d.ts +10513 -4612
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +22 -15
  5. package/dist/dts/accessors/integrations-accessors.d.ts +22 -15
  6. package/dist/dts/data-schema/index.d.ts +0 -1
  7. package/dist/dts/entity-repository.d.ts +7 -6
  8. package/dist/dts/http-requests.d.ts +2 -2
  9. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +435 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +225 -114
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  13. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  14. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  15. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  16. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +505 -135
  18. package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
  19. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +447 -12
  20. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  21. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1496 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +189 -103
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +602 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +608 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +465 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +75 -41
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2570 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +199 -93
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1436 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +590 -295
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +176 -58
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +77 -36
  34. package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
  35. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +31 -15
  36. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
  37. package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
  38. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
  39. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
  40. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
  41. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
  42. package/dist/dts/workspace-elements/base/connections/types.d.ts +21 -21
  43. package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
  44. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
  45. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
  46. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
  47. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
  48. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
  49. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
  50. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
  51. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
  52. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +24 -9
  54. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
  55. package/dist/dts/workspace-elements/base/flows/types.d.ts +20 -6
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +187 -104
  57. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
  58. package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
  59. package/dist/dts/workspace-elements/types.d.ts +25 -3
  60. package/dist/dts/workspaces/types.d.ts +5 -4
  61. package/dist/index.d.ts +20345 -9526
  62. package/dist/index.js +268 -115
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +20345 -9526
  65. package/dist/index.module.mjs +234 -107
  66. package/dist/index.module.mjs.map +1 -1
  67. package/package.json +3 -2
  68. package/dist/dts/data-schema/schemas.d.ts +0 -4
  69. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -1,50 +1,1439 @@
1
- import { PaginationQuery, PaginationResponse } from '../../entity-repository';
2
- import { BaseConnection } from '../base/connections';
3
- import { BaseCustomer } from '../base/customers';
4
- import { BaseFlowInstance } from '../base/flow-instances';
5
- import { BaseFlowRun } from '../base/flow-runs';
6
- import { BaseIntegration } from '../base/integrations';
7
- export declare enum FlowRunState {
8
- QUEUED = "queued",
9
- RUNNING = "running",
10
- COMPLETED = "completed",
11
- STOPPED = "stopped",
12
- FAILED = "failed"
13
- }
14
- export declare enum FlowRunLaunchedByTrigger {
15
- ApiTrigger = "api-trigger",
16
- ScheduleTrigger = "schedule-trigger",
17
- AppEventTrigger = "app-event-trigger",
18
- DataSourceTrigger = "data-source-trigger",
19
- ExternalEvent = "external-event"
20
- }
21
- export interface CreateFlowRunRequest {
1
+ import { z } from 'zod';
2
+ import { FlowRunLaunchedByTrigger, FlowRunState } from '../base/flow-runs';
3
+ export declare const CreateFlowRunRequest: z.ZodObject<{
4
+ flowInstanceId: z.ZodString;
5
+ nodeKey: z.ZodOptional<z.ZodString>;
6
+ input: z.ZodOptional<z.ZodAny>;
7
+ }, "strip", z.ZodTypeAny, {
22
8
  flowInstanceId: string;
23
- nodeKey?: string;
24
9
  input?: any;
25
- }
26
- export interface FindFlowRunsQuery extends PaginationQuery {
27
- id?: string;
28
- flowInstanceId?: string;
29
- startNodeKey?: string;
30
- flowId?: string;
31
- universalFlowId?: string;
32
- userId?: string;
33
- state?: FlowRunState;
34
- integrationId?: string;
35
- connectionId?: string;
36
- startedAfter?: string;
37
- }
38
- export interface FlowRunLaunchedByApi {
10
+ nodeKey?: string | undefined;
11
+ }, {
12
+ flowInstanceId: string;
13
+ input?: any;
14
+ nodeKey?: string | undefined;
15
+ }>;
16
+ export type CreateFlowRunRequest = z.infer<typeof CreateFlowRunRequest>;
17
+ export declare const FindFlowRunsQuery: z.ZodObject<{
18
+ limit: z.ZodOptional<z.ZodNumber>;
19
+ cursor: z.ZodOptional<z.ZodString>;
20
+ } & {
21
+ id: z.ZodOptional<z.ZodString>;
22
+ flowInstanceId: z.ZodOptional<z.ZodString>;
23
+ startNodeKey: z.ZodOptional<z.ZodString>;
24
+ flowId: z.ZodOptional<z.ZodString>;
25
+ universalFlowId: z.ZodOptional<z.ZodString>;
26
+ userId: z.ZodOptional<z.ZodString>;
27
+ state: z.ZodOptional<z.ZodNativeEnum<typeof FlowRunState>>;
28
+ integrationId: z.ZodOptional<z.ZodString>;
29
+ connectionId: z.ZodOptional<z.ZodString>;
30
+ startedAfter: z.ZodOptional<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ id?: string | undefined;
33
+ state?: FlowRunState | undefined;
34
+ limit?: number | undefined;
35
+ cursor?: string | undefined;
36
+ userId?: string | undefined;
37
+ connectionId?: string | undefined;
38
+ integrationId?: string | undefined;
39
+ universalFlowId?: string | undefined;
40
+ flowId?: string | undefined;
41
+ startedAfter?: string | undefined;
42
+ flowInstanceId?: string | undefined;
43
+ startNodeKey?: string | undefined;
44
+ }, {
45
+ id?: string | undefined;
46
+ state?: FlowRunState | undefined;
47
+ limit?: number | undefined;
48
+ cursor?: string | undefined;
49
+ userId?: string | undefined;
50
+ connectionId?: string | undefined;
51
+ integrationId?: string | undefined;
52
+ universalFlowId?: string | undefined;
53
+ flowId?: string | undefined;
54
+ startedAfter?: string | undefined;
55
+ flowInstanceId?: string | undefined;
56
+ startNodeKey?: string | undefined;
57
+ }>;
58
+ export type FindFlowRunsQuery = z.infer<typeof FindFlowRunsQuery>;
59
+ export declare const FlowRunLaunchedByApi: z.ZodObject<{
60
+ type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
61
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
+ }, "strip", z.ZodTypeAny, {
39
63
  type: FlowRunLaunchedByTrigger;
40
- ids?: string[];
41
- }
42
- export interface FindFlowRunsResponse extends PaginationResponse<FlowRun> {
43
- }
44
- export interface FlowRun extends BaseFlowRun {
45
- flowInstance?: BaseFlowInstance;
46
- connection?: BaseConnection;
47
- integration?: BaseIntegration;
48
- user?: BaseCustomer;
49
- }
50
- export type FlowRunApiResponse = FlowRun;
64
+ ids?: string[] | undefined;
65
+ }, {
66
+ type: FlowRunLaunchedByTrigger;
67
+ ids?: string[] | undefined;
68
+ }>;
69
+ export type FlowRunLaunchedByApi = z.infer<typeof FlowRunLaunchedByApi>;
70
+ export declare const FlowRunApiResponse: z.ZodObject<{
71
+ id: z.ZodString;
72
+ name: z.ZodOptional<z.ZodString>;
73
+ flowInstanceId: z.ZodString;
74
+ universalFlowId: z.ZodOptional<z.ZodString>;
75
+ connectionId: z.ZodOptional<z.ZodString>;
76
+ integrationId: z.ZodOptional<z.ZodString>;
77
+ startNodeKey: z.ZodString;
78
+ userId: z.ZodString;
79
+ input: z.ZodOptional<z.ZodAny>;
80
+ state: z.ZodNativeEnum<typeof FlowRunState>;
81
+ startTime: z.ZodString;
82
+ endTime: z.ZodOptional<z.ZodString>;
83
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
84
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
85
+ state: z.ZodNativeEnum<typeof import("../base/flow-runs").FlowRunNodeState>;
86
+ runs: z.ZodOptional<z.ZodNumber>;
87
+ erroredRuns: z.ZodOptional<z.ZodNumber>;
88
+ outputs: z.ZodOptional<z.ZodNumber>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ state: import("../base/flow-runs").FlowRunNodeState;
91
+ runs?: number | undefined;
92
+ erroredRuns?: number | undefined;
93
+ outputs?: number | undefined;
94
+ }, {
95
+ state: import("../base/flow-runs").FlowRunNodeState;
96
+ runs?: number | undefined;
97
+ erroredRuns?: number | undefined;
98
+ outputs?: number | undefined;
99
+ }>>>;
100
+ launchedBy: z.ZodOptional<z.ZodObject<{
101
+ type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
102
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ type: FlowRunLaunchedByTrigger;
105
+ ids?: string[] | undefined;
106
+ }, {
107
+ type: FlowRunLaunchedByTrigger;
108
+ ids?: string[] | undefined;
109
+ }>>;
110
+ } & {
111
+ flowInstance: z.ZodOptional<z.ZodObject<{
112
+ id: z.ZodString;
113
+ name: z.ZodString;
114
+ key: z.ZodOptional<z.ZodString>;
115
+ uuid: z.ZodOptional<z.ZodString>;
116
+ description: z.ZodOptional<z.ZodString>;
117
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
118
+ revision: z.ZodOptional<z.ZodString>;
119
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
120
+ archivedAt: z.ZodOptional<z.ZodString>;
121
+ } & {
122
+ userId: z.ZodString;
123
+ connectionId: z.ZodOptional<z.ZodString>;
124
+ flowId: z.ZodOptional<z.ZodString>;
125
+ universalFlowId: z.ZodOptional<z.ZodString>;
126
+ integrationId: z.ZodString;
127
+ instanceKey: z.ZodOptional<z.ZodString>;
128
+ parameters: z.ZodOptional<z.ZodAny>;
129
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
130
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
131
+ enabled: z.ZodBoolean;
132
+ createdAt: z.ZodString;
133
+ updatedAt: z.ZodString;
134
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
135
+ outdated: z.ZodOptional<z.ZodBoolean>;
136
+ customized: z.ZodOptional<z.ZodObject<{
137
+ name: z.ZodOptional<z.ZodBoolean>;
138
+ nodes: z.ZodOptional<z.ZodBoolean>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ name?: boolean | undefined;
141
+ nodes?: boolean | undefined;
142
+ }, {
143
+ name?: boolean | undefined;
144
+ nodes?: boolean | undefined;
145
+ }>>;
146
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ id: string;
149
+ name: string;
150
+ createdAt: string;
151
+ updatedAt: string;
152
+ userId: string;
153
+ integrationId: string;
154
+ enabled: boolean;
155
+ key?: string | undefined;
156
+ uuid?: string | undefined;
157
+ description?: string | undefined;
158
+ state?: import("..").WorkspaceElementState | undefined;
159
+ errors?: any[] | undefined;
160
+ revision?: string | undefined;
161
+ isDeactivated?: boolean | undefined;
162
+ archivedAt?: string | undefined;
163
+ instanceKey?: string | undefined;
164
+ connectionId?: string | undefined;
165
+ parameters?: any;
166
+ parametersSchema?: import("../..").DataSchema | undefined;
167
+ customized?: {
168
+ name?: boolean | undefined;
169
+ nodes?: boolean | undefined;
170
+ } | undefined;
171
+ dependencies?: any[] | undefined;
172
+ universalFlowId?: string | undefined;
173
+ nodes?: Record<string, any> | undefined;
174
+ flowId?: string | undefined;
175
+ outdated?: boolean | undefined;
176
+ }, {
177
+ id: string;
178
+ name: string;
179
+ createdAt: string;
180
+ updatedAt: string;
181
+ userId: string;
182
+ integrationId: string;
183
+ enabled: boolean;
184
+ key?: string | undefined;
185
+ uuid?: string | undefined;
186
+ description?: string | undefined;
187
+ state?: import("..").WorkspaceElementState | undefined;
188
+ errors?: any[] | undefined;
189
+ revision?: string | undefined;
190
+ isDeactivated?: boolean | undefined;
191
+ archivedAt?: string | undefined;
192
+ instanceKey?: string | undefined;
193
+ connectionId?: string | undefined;
194
+ parameters?: any;
195
+ parametersSchema?: import("../..").DataSchema | undefined;
196
+ customized?: {
197
+ name?: boolean | undefined;
198
+ nodes?: boolean | undefined;
199
+ } | undefined;
200
+ dependencies?: any[] | undefined;
201
+ universalFlowId?: string | undefined;
202
+ nodes?: Record<string, any> | undefined;
203
+ flowId?: string | undefined;
204
+ outdated?: boolean | undefined;
205
+ }>>;
206
+ connection: z.ZodOptional<z.ZodObject<{
207
+ id: z.ZodString;
208
+ } & {
209
+ name: z.ZodString;
210
+ userId: z.ZodString;
211
+ isTest: z.ZodOptional<z.ZodBoolean>;
212
+ disconnected: z.ZodOptional<z.ZodBoolean>;
213
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
214
+ error: any;
215
+ integrationId: z.ZodString;
216
+ authOptionKey: z.ZodOptional<z.ZodString>;
217
+ createdAt: z.ZodString;
218
+ updatedAt: z.ZodString;
219
+ lastActiveAt: z.ZodOptional<z.ZodString>;
220
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
221
+ archivedAt: z.ZodOptional<z.ZodString>;
222
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
223
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
224
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
225
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ id: string;
228
+ name: string;
229
+ createdAt: string;
230
+ updatedAt: string;
231
+ userId: string;
232
+ integrationId: string;
233
+ error?: any;
234
+ state?: import("..").WorkspaceElementState | undefined;
235
+ errors?: any[] | undefined;
236
+ isDeactivated?: boolean | undefined;
237
+ archivedAt?: string | undefined;
238
+ authOptionKey?: string | undefined;
239
+ isTest?: boolean | undefined;
240
+ disconnected?: boolean | undefined;
241
+ isDefunct?: boolean | undefined;
242
+ lastActiveAt?: string | undefined;
243
+ nextCredentialsRefreshAt?: string | undefined;
244
+ meta?: Record<string, any> | undefined;
245
+ }, {
246
+ id: string;
247
+ name: string;
248
+ createdAt: string;
249
+ updatedAt: string;
250
+ userId: string;
251
+ integrationId: string;
252
+ error?: any;
253
+ state?: import("..").WorkspaceElementState | undefined;
254
+ errors?: any[] | undefined;
255
+ isDeactivated?: boolean | undefined;
256
+ archivedAt?: string | undefined;
257
+ authOptionKey?: string | undefined;
258
+ isTest?: boolean | undefined;
259
+ disconnected?: boolean | undefined;
260
+ isDefunct?: boolean | undefined;
261
+ lastActiveAt?: string | undefined;
262
+ nextCredentialsRefreshAt?: string | undefined;
263
+ meta?: Record<string, any> | undefined;
264
+ }>>;
265
+ integration: z.ZodOptional<z.ZodObject<{
266
+ id: z.ZodString;
267
+ name: z.ZodString;
268
+ key: z.ZodOptional<z.ZodString>;
269
+ uuid: z.ZodOptional<z.ZodString>;
270
+ description: z.ZodOptional<z.ZodString>;
271
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
272
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
273
+ revision: z.ZodOptional<z.ZodString>;
274
+ createdAt: z.ZodOptional<z.ZodString>;
275
+ updatedAt: z.ZodOptional<z.ZodString>;
276
+ } & {
277
+ logoUri: z.ZodString;
278
+ connectorId: z.ZodOptional<z.ZodString>;
279
+ connectorVersion: z.ZodOptional<z.ZodString>;
280
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
281
+ parameters: z.ZodOptional<z.ZodAny>;
282
+ archivedAt: z.ZodOptional<z.ZodString>;
283
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
284
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
285
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
286
+ operationsCount: z.ZodOptional<z.ZodNumber>;
287
+ hasData: z.ZodOptional<z.ZodBoolean>;
288
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
289
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
290
+ eventsCount: z.ZodOptional<z.ZodNumber>;
291
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
292
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
293
+ isTest: z.ZodOptional<z.ZodBoolean>;
294
+ appUuid: z.ZodOptional<z.ZodString>;
295
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
296
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ id: string;
299
+ name: string;
300
+ logoUri: string;
301
+ key?: string | undefined;
302
+ uuid?: string | undefined;
303
+ description?: string | undefined;
304
+ state?: import("..").WorkspaceElementState | undefined;
305
+ errors?: any[] | undefined;
306
+ revision?: string | undefined;
307
+ isDeactivated?: boolean | undefined;
308
+ createdAt?: string | undefined;
309
+ updatedAt?: string | undefined;
310
+ archivedAt?: string | undefined;
311
+ parameters?: any;
312
+ isTest?: boolean | undefined;
313
+ connectorId?: string | undefined;
314
+ connectorVersion?: string | undefined;
315
+ oAuthCallbackUri?: string | undefined;
316
+ hasMissingParameters?: boolean | undefined;
317
+ hasDocumentation?: boolean | undefined;
318
+ hasOperations?: boolean | undefined;
319
+ operationsCount?: number | undefined;
320
+ hasData?: boolean | undefined;
321
+ dataCollectionsCount?: number | undefined;
322
+ hasEvents?: boolean | undefined;
323
+ eventsCount?: number | undefined;
324
+ hasGlobalWebhooks?: boolean | undefined;
325
+ hasUdm?: boolean | undefined;
326
+ appUuid?: string | undefined;
327
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
328
+ }, {
329
+ id: string;
330
+ name: string;
331
+ logoUri: string;
332
+ key?: string | undefined;
333
+ uuid?: string | undefined;
334
+ description?: string | undefined;
335
+ state?: import("..").WorkspaceElementState | undefined;
336
+ errors?: any[] | undefined;
337
+ revision?: string | undefined;
338
+ isDeactivated?: boolean | undefined;
339
+ createdAt?: string | undefined;
340
+ updatedAt?: string | undefined;
341
+ archivedAt?: string | undefined;
342
+ parameters?: any;
343
+ isTest?: boolean | undefined;
344
+ connectorId?: string | undefined;
345
+ connectorVersion?: string | undefined;
346
+ oAuthCallbackUri?: string | undefined;
347
+ hasMissingParameters?: boolean | undefined;
348
+ hasDocumentation?: boolean | undefined;
349
+ hasOperations?: boolean | undefined;
350
+ operationsCount?: number | undefined;
351
+ hasData?: boolean | undefined;
352
+ dataCollectionsCount?: number | undefined;
353
+ hasEvents?: boolean | undefined;
354
+ eventsCount?: number | undefined;
355
+ hasGlobalWebhooks?: boolean | undefined;
356
+ hasUdm?: boolean | undefined;
357
+ appUuid?: string | undefined;
358
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
359
+ }>>;
360
+ user: z.ZodOptional<z.ZodObject<{
361
+ id: z.ZodString;
362
+ name: z.ZodString;
363
+ internalId: z.ZodString;
364
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
365
+ credentials: z.ZodOptional<z.ZodAny>;
366
+ lastActiveAt: z.ZodOptional<z.ZodString>;
367
+ isTest: z.ZodOptional<z.ZodBoolean>;
368
+ isBillable: z.ZodOptional<z.ZodBoolean>;
369
+ createdAt: z.ZodOptional<z.ZodString>;
370
+ archivedAt: z.ZodOptional<z.ZodString>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ id: string;
373
+ name: string;
374
+ internalId: string;
375
+ createdAt?: string | undefined;
376
+ archivedAt?: string | undefined;
377
+ credentials?: any;
378
+ fields?: Record<string, any> | undefined;
379
+ isTest?: boolean | undefined;
380
+ lastActiveAt?: string | undefined;
381
+ isBillable?: boolean | undefined;
382
+ }, {
383
+ id: string;
384
+ name: string;
385
+ internalId: string;
386
+ createdAt?: string | undefined;
387
+ archivedAt?: string | undefined;
388
+ credentials?: any;
389
+ fields?: Record<string, any> | undefined;
390
+ isTest?: boolean | undefined;
391
+ lastActiveAt?: string | undefined;
392
+ isBillable?: boolean | undefined;
393
+ }>>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ id: string;
396
+ state: FlowRunState;
397
+ userId: string;
398
+ startTime: string;
399
+ flowInstanceId: string;
400
+ startNodeKey: string;
401
+ connection?: {
402
+ id: string;
403
+ name: string;
404
+ createdAt: string;
405
+ updatedAt: string;
406
+ userId: string;
407
+ integrationId: string;
408
+ error?: any;
409
+ state?: import("..").WorkspaceElementState | undefined;
410
+ errors?: any[] | undefined;
411
+ isDeactivated?: boolean | undefined;
412
+ archivedAt?: string | undefined;
413
+ authOptionKey?: string | undefined;
414
+ isTest?: boolean | undefined;
415
+ disconnected?: boolean | undefined;
416
+ isDefunct?: boolean | undefined;
417
+ lastActiveAt?: string | undefined;
418
+ nextCredentialsRefreshAt?: string | undefined;
419
+ meta?: Record<string, any> | undefined;
420
+ } | undefined;
421
+ integration?: {
422
+ id: string;
423
+ name: string;
424
+ logoUri: string;
425
+ key?: string | undefined;
426
+ uuid?: string | undefined;
427
+ description?: string | undefined;
428
+ state?: import("..").WorkspaceElementState | undefined;
429
+ errors?: any[] | undefined;
430
+ revision?: string | undefined;
431
+ isDeactivated?: boolean | undefined;
432
+ createdAt?: string | undefined;
433
+ updatedAt?: string | undefined;
434
+ archivedAt?: string | undefined;
435
+ parameters?: any;
436
+ isTest?: boolean | undefined;
437
+ connectorId?: string | undefined;
438
+ connectorVersion?: string | undefined;
439
+ oAuthCallbackUri?: string | undefined;
440
+ hasMissingParameters?: boolean | undefined;
441
+ hasDocumentation?: boolean | undefined;
442
+ hasOperations?: boolean | undefined;
443
+ operationsCount?: number | undefined;
444
+ hasData?: boolean | undefined;
445
+ dataCollectionsCount?: number | undefined;
446
+ hasEvents?: boolean | undefined;
447
+ eventsCount?: number | undefined;
448
+ hasGlobalWebhooks?: boolean | undefined;
449
+ hasUdm?: boolean | undefined;
450
+ appUuid?: string | undefined;
451
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
452
+ } | undefined;
453
+ name?: string | undefined;
454
+ errors?: any[] | undefined;
455
+ connectionId?: string | undefined;
456
+ integrationId?: string | undefined;
457
+ endTime?: string | undefined;
458
+ user?: {
459
+ id: string;
460
+ name: string;
461
+ internalId: string;
462
+ createdAt?: string | undefined;
463
+ archivedAt?: string | undefined;
464
+ credentials?: any;
465
+ fields?: Record<string, any> | undefined;
466
+ isTest?: boolean | undefined;
467
+ lastActiveAt?: string | undefined;
468
+ isBillable?: boolean | undefined;
469
+ } | undefined;
470
+ input?: any;
471
+ universalFlowId?: string | undefined;
472
+ nodes?: Record<string, {
473
+ state: import("../base/flow-runs").FlowRunNodeState;
474
+ runs?: number | undefined;
475
+ erroredRuns?: number | undefined;
476
+ outputs?: number | undefined;
477
+ }> | undefined;
478
+ launchedBy?: {
479
+ type: FlowRunLaunchedByTrigger;
480
+ ids?: string[] | undefined;
481
+ } | undefined;
482
+ flowInstance?: {
483
+ id: string;
484
+ name: string;
485
+ createdAt: string;
486
+ updatedAt: string;
487
+ userId: string;
488
+ integrationId: string;
489
+ enabled: boolean;
490
+ key?: string | undefined;
491
+ uuid?: string | undefined;
492
+ description?: string | undefined;
493
+ state?: import("..").WorkspaceElementState | undefined;
494
+ errors?: any[] | undefined;
495
+ revision?: string | undefined;
496
+ isDeactivated?: boolean | undefined;
497
+ archivedAt?: string | undefined;
498
+ instanceKey?: string | undefined;
499
+ connectionId?: string | undefined;
500
+ parameters?: any;
501
+ parametersSchema?: import("../..").DataSchema | undefined;
502
+ customized?: {
503
+ name?: boolean | undefined;
504
+ nodes?: boolean | undefined;
505
+ } | undefined;
506
+ dependencies?: any[] | undefined;
507
+ universalFlowId?: string | undefined;
508
+ nodes?: Record<string, any> | undefined;
509
+ flowId?: string | undefined;
510
+ outdated?: boolean | undefined;
511
+ } | undefined;
512
+ }, {
513
+ id: string;
514
+ state: FlowRunState;
515
+ userId: string;
516
+ startTime: string;
517
+ flowInstanceId: string;
518
+ startNodeKey: string;
519
+ connection?: {
520
+ id: string;
521
+ name: string;
522
+ createdAt: string;
523
+ updatedAt: string;
524
+ userId: string;
525
+ integrationId: string;
526
+ error?: any;
527
+ state?: import("..").WorkspaceElementState | undefined;
528
+ errors?: any[] | undefined;
529
+ isDeactivated?: boolean | undefined;
530
+ archivedAt?: string | undefined;
531
+ authOptionKey?: string | undefined;
532
+ isTest?: boolean | undefined;
533
+ disconnected?: boolean | undefined;
534
+ isDefunct?: boolean | undefined;
535
+ lastActiveAt?: string | undefined;
536
+ nextCredentialsRefreshAt?: string | undefined;
537
+ meta?: Record<string, any> | undefined;
538
+ } | undefined;
539
+ integration?: {
540
+ id: string;
541
+ name: string;
542
+ logoUri: string;
543
+ key?: string | undefined;
544
+ uuid?: string | undefined;
545
+ description?: string | undefined;
546
+ state?: import("..").WorkspaceElementState | undefined;
547
+ errors?: any[] | undefined;
548
+ revision?: string | undefined;
549
+ isDeactivated?: boolean | undefined;
550
+ createdAt?: string | undefined;
551
+ updatedAt?: string | undefined;
552
+ archivedAt?: string | undefined;
553
+ parameters?: any;
554
+ isTest?: boolean | undefined;
555
+ connectorId?: string | undefined;
556
+ connectorVersion?: string | undefined;
557
+ oAuthCallbackUri?: string | undefined;
558
+ hasMissingParameters?: boolean | undefined;
559
+ hasDocumentation?: boolean | undefined;
560
+ hasOperations?: boolean | undefined;
561
+ operationsCount?: number | undefined;
562
+ hasData?: boolean | undefined;
563
+ dataCollectionsCount?: number | undefined;
564
+ hasEvents?: boolean | undefined;
565
+ eventsCount?: number | undefined;
566
+ hasGlobalWebhooks?: boolean | undefined;
567
+ hasUdm?: boolean | undefined;
568
+ appUuid?: string | undefined;
569
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
570
+ } | undefined;
571
+ name?: string | undefined;
572
+ errors?: any[] | undefined;
573
+ connectionId?: string | undefined;
574
+ integrationId?: string | undefined;
575
+ endTime?: string | undefined;
576
+ user?: {
577
+ id: string;
578
+ name: string;
579
+ internalId: string;
580
+ createdAt?: string | undefined;
581
+ archivedAt?: string | undefined;
582
+ credentials?: any;
583
+ fields?: Record<string, any> | undefined;
584
+ isTest?: boolean | undefined;
585
+ lastActiveAt?: string | undefined;
586
+ isBillable?: boolean | undefined;
587
+ } | undefined;
588
+ input?: any;
589
+ universalFlowId?: string | undefined;
590
+ nodes?: Record<string, {
591
+ state: import("../base/flow-runs").FlowRunNodeState;
592
+ runs?: number | undefined;
593
+ erroredRuns?: number | undefined;
594
+ outputs?: number | undefined;
595
+ }> | undefined;
596
+ launchedBy?: {
597
+ type: FlowRunLaunchedByTrigger;
598
+ ids?: string[] | undefined;
599
+ } | undefined;
600
+ flowInstance?: {
601
+ id: string;
602
+ name: string;
603
+ createdAt: string;
604
+ updatedAt: string;
605
+ userId: string;
606
+ integrationId: string;
607
+ enabled: boolean;
608
+ key?: string | undefined;
609
+ uuid?: string | undefined;
610
+ description?: string | undefined;
611
+ state?: import("..").WorkspaceElementState | undefined;
612
+ errors?: any[] | undefined;
613
+ revision?: string | undefined;
614
+ isDeactivated?: boolean | undefined;
615
+ archivedAt?: string | undefined;
616
+ instanceKey?: string | undefined;
617
+ connectionId?: string | undefined;
618
+ parameters?: any;
619
+ parametersSchema?: import("../..").DataSchema | undefined;
620
+ customized?: {
621
+ name?: boolean | undefined;
622
+ nodes?: boolean | undefined;
623
+ } | undefined;
624
+ dependencies?: any[] | undefined;
625
+ universalFlowId?: string | undefined;
626
+ nodes?: Record<string, any> | undefined;
627
+ flowId?: string | undefined;
628
+ outdated?: boolean | undefined;
629
+ } | undefined;
630
+ }>;
631
+ export type FlowRunApiResponse = z.infer<typeof FlowRunApiResponse>;
632
+ export declare const FindFlowRunsResponse: z.ZodObject<{
633
+ items: z.ZodArray<z.ZodObject<{
634
+ id: z.ZodString;
635
+ name: z.ZodOptional<z.ZodString>;
636
+ flowInstanceId: z.ZodString;
637
+ universalFlowId: z.ZodOptional<z.ZodString>;
638
+ connectionId: z.ZodOptional<z.ZodString>;
639
+ integrationId: z.ZodOptional<z.ZodString>;
640
+ startNodeKey: z.ZodString;
641
+ userId: z.ZodString;
642
+ input: z.ZodOptional<z.ZodAny>;
643
+ state: z.ZodNativeEnum<typeof FlowRunState>;
644
+ startTime: z.ZodString;
645
+ endTime: z.ZodOptional<z.ZodString>;
646
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
647
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
648
+ state: z.ZodNativeEnum<typeof import("../base/flow-runs").FlowRunNodeState>;
649
+ runs: z.ZodOptional<z.ZodNumber>;
650
+ erroredRuns: z.ZodOptional<z.ZodNumber>;
651
+ outputs: z.ZodOptional<z.ZodNumber>;
652
+ }, "strip", z.ZodTypeAny, {
653
+ state: import("../base/flow-runs").FlowRunNodeState;
654
+ runs?: number | undefined;
655
+ erroredRuns?: number | undefined;
656
+ outputs?: number | undefined;
657
+ }, {
658
+ state: import("../base/flow-runs").FlowRunNodeState;
659
+ runs?: number | undefined;
660
+ erroredRuns?: number | undefined;
661
+ outputs?: number | undefined;
662
+ }>>>;
663
+ launchedBy: z.ZodOptional<z.ZodObject<{
664
+ type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
665
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type: FlowRunLaunchedByTrigger;
668
+ ids?: string[] | undefined;
669
+ }, {
670
+ type: FlowRunLaunchedByTrigger;
671
+ ids?: string[] | undefined;
672
+ }>>;
673
+ } & {
674
+ flowInstance: z.ZodOptional<z.ZodObject<{
675
+ id: z.ZodString;
676
+ name: z.ZodString;
677
+ key: z.ZodOptional<z.ZodString>;
678
+ uuid: z.ZodOptional<z.ZodString>;
679
+ description: z.ZodOptional<z.ZodString>;
680
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
681
+ revision: z.ZodOptional<z.ZodString>;
682
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
683
+ archivedAt: z.ZodOptional<z.ZodString>;
684
+ } & {
685
+ userId: z.ZodString;
686
+ connectionId: z.ZodOptional<z.ZodString>;
687
+ flowId: z.ZodOptional<z.ZodString>;
688
+ universalFlowId: z.ZodOptional<z.ZodString>;
689
+ integrationId: z.ZodString;
690
+ instanceKey: z.ZodOptional<z.ZodString>;
691
+ parameters: z.ZodOptional<z.ZodAny>;
692
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
693
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
694
+ enabled: z.ZodBoolean;
695
+ createdAt: z.ZodString;
696
+ updatedAt: z.ZodString;
697
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
698
+ outdated: z.ZodOptional<z.ZodBoolean>;
699
+ customized: z.ZodOptional<z.ZodObject<{
700
+ name: z.ZodOptional<z.ZodBoolean>;
701
+ nodes: z.ZodOptional<z.ZodBoolean>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ name?: boolean | undefined;
704
+ nodes?: boolean | undefined;
705
+ }, {
706
+ name?: boolean | undefined;
707
+ nodes?: boolean | undefined;
708
+ }>>;
709
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
710
+ }, "strip", z.ZodTypeAny, {
711
+ id: string;
712
+ name: string;
713
+ createdAt: string;
714
+ updatedAt: string;
715
+ userId: string;
716
+ integrationId: string;
717
+ enabled: boolean;
718
+ key?: string | undefined;
719
+ uuid?: string | undefined;
720
+ description?: string | undefined;
721
+ state?: import("..").WorkspaceElementState | undefined;
722
+ errors?: any[] | undefined;
723
+ revision?: string | undefined;
724
+ isDeactivated?: boolean | undefined;
725
+ archivedAt?: string | undefined;
726
+ instanceKey?: string | undefined;
727
+ connectionId?: string | undefined;
728
+ parameters?: any;
729
+ parametersSchema?: import("../..").DataSchema | undefined;
730
+ customized?: {
731
+ name?: boolean | undefined;
732
+ nodes?: boolean | undefined;
733
+ } | undefined;
734
+ dependencies?: any[] | undefined;
735
+ universalFlowId?: string | undefined;
736
+ nodes?: Record<string, any> | undefined;
737
+ flowId?: string | undefined;
738
+ outdated?: boolean | undefined;
739
+ }, {
740
+ id: string;
741
+ name: string;
742
+ createdAt: string;
743
+ updatedAt: string;
744
+ userId: string;
745
+ integrationId: string;
746
+ enabled: boolean;
747
+ key?: string | undefined;
748
+ uuid?: string | undefined;
749
+ description?: string | undefined;
750
+ state?: import("..").WorkspaceElementState | undefined;
751
+ errors?: any[] | undefined;
752
+ revision?: string | undefined;
753
+ isDeactivated?: boolean | undefined;
754
+ archivedAt?: string | undefined;
755
+ instanceKey?: string | undefined;
756
+ connectionId?: string | undefined;
757
+ parameters?: any;
758
+ parametersSchema?: import("../..").DataSchema | undefined;
759
+ customized?: {
760
+ name?: boolean | undefined;
761
+ nodes?: boolean | undefined;
762
+ } | undefined;
763
+ dependencies?: any[] | undefined;
764
+ universalFlowId?: string | undefined;
765
+ nodes?: Record<string, any> | undefined;
766
+ flowId?: string | undefined;
767
+ outdated?: boolean | undefined;
768
+ }>>;
769
+ connection: z.ZodOptional<z.ZodObject<{
770
+ id: z.ZodString;
771
+ } & {
772
+ name: z.ZodString;
773
+ userId: z.ZodString;
774
+ isTest: z.ZodOptional<z.ZodBoolean>;
775
+ disconnected: z.ZodOptional<z.ZodBoolean>;
776
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
777
+ error: any;
778
+ integrationId: z.ZodString;
779
+ authOptionKey: z.ZodOptional<z.ZodString>;
780
+ createdAt: z.ZodString;
781
+ updatedAt: z.ZodString;
782
+ lastActiveAt: z.ZodOptional<z.ZodString>;
783
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
784
+ archivedAt: z.ZodOptional<z.ZodString>;
785
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
786
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
787
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
788
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ id: string;
791
+ name: string;
792
+ createdAt: string;
793
+ updatedAt: string;
794
+ userId: string;
795
+ integrationId: string;
796
+ error?: any;
797
+ state?: import("..").WorkspaceElementState | undefined;
798
+ errors?: any[] | undefined;
799
+ isDeactivated?: boolean | undefined;
800
+ archivedAt?: string | undefined;
801
+ authOptionKey?: string | undefined;
802
+ isTest?: boolean | undefined;
803
+ disconnected?: boolean | undefined;
804
+ isDefunct?: boolean | undefined;
805
+ lastActiveAt?: string | undefined;
806
+ nextCredentialsRefreshAt?: string | undefined;
807
+ meta?: Record<string, any> | undefined;
808
+ }, {
809
+ id: string;
810
+ name: string;
811
+ createdAt: string;
812
+ updatedAt: string;
813
+ userId: string;
814
+ integrationId: string;
815
+ error?: any;
816
+ state?: import("..").WorkspaceElementState | undefined;
817
+ errors?: any[] | undefined;
818
+ isDeactivated?: boolean | undefined;
819
+ archivedAt?: string | undefined;
820
+ authOptionKey?: string | undefined;
821
+ isTest?: boolean | undefined;
822
+ disconnected?: boolean | undefined;
823
+ isDefunct?: boolean | undefined;
824
+ lastActiveAt?: string | undefined;
825
+ nextCredentialsRefreshAt?: string | undefined;
826
+ meta?: Record<string, any> | undefined;
827
+ }>>;
828
+ integration: z.ZodOptional<z.ZodObject<{
829
+ id: z.ZodString;
830
+ name: z.ZodString;
831
+ key: z.ZodOptional<z.ZodString>;
832
+ uuid: z.ZodOptional<z.ZodString>;
833
+ description: z.ZodOptional<z.ZodString>;
834
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
835
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
836
+ revision: z.ZodOptional<z.ZodString>;
837
+ createdAt: z.ZodOptional<z.ZodString>;
838
+ updatedAt: z.ZodOptional<z.ZodString>;
839
+ } & {
840
+ logoUri: z.ZodString;
841
+ connectorId: z.ZodOptional<z.ZodString>;
842
+ connectorVersion: z.ZodOptional<z.ZodString>;
843
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
844
+ parameters: z.ZodOptional<z.ZodAny>;
845
+ archivedAt: z.ZodOptional<z.ZodString>;
846
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
847
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
848
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
849
+ operationsCount: z.ZodOptional<z.ZodNumber>;
850
+ hasData: z.ZodOptional<z.ZodBoolean>;
851
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
852
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
853
+ eventsCount: z.ZodOptional<z.ZodNumber>;
854
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
855
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
856
+ isTest: z.ZodOptional<z.ZodBoolean>;
857
+ appUuid: z.ZodOptional<z.ZodString>;
858
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
859
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ id: string;
862
+ name: string;
863
+ logoUri: string;
864
+ key?: string | undefined;
865
+ uuid?: string | undefined;
866
+ description?: string | undefined;
867
+ state?: import("..").WorkspaceElementState | undefined;
868
+ errors?: any[] | undefined;
869
+ revision?: string | undefined;
870
+ isDeactivated?: boolean | undefined;
871
+ createdAt?: string | undefined;
872
+ updatedAt?: string | undefined;
873
+ archivedAt?: string | undefined;
874
+ parameters?: any;
875
+ isTest?: boolean | undefined;
876
+ connectorId?: string | undefined;
877
+ connectorVersion?: string | undefined;
878
+ oAuthCallbackUri?: string | undefined;
879
+ hasMissingParameters?: boolean | undefined;
880
+ hasDocumentation?: boolean | undefined;
881
+ hasOperations?: boolean | undefined;
882
+ operationsCount?: number | undefined;
883
+ hasData?: boolean | undefined;
884
+ dataCollectionsCount?: number | undefined;
885
+ hasEvents?: boolean | undefined;
886
+ eventsCount?: number | undefined;
887
+ hasGlobalWebhooks?: boolean | undefined;
888
+ hasUdm?: boolean | undefined;
889
+ appUuid?: string | undefined;
890
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
891
+ }, {
892
+ id: string;
893
+ name: string;
894
+ logoUri: string;
895
+ key?: string | undefined;
896
+ uuid?: string | undefined;
897
+ description?: string | undefined;
898
+ state?: import("..").WorkspaceElementState | undefined;
899
+ errors?: any[] | undefined;
900
+ revision?: string | undefined;
901
+ isDeactivated?: boolean | undefined;
902
+ createdAt?: string | undefined;
903
+ updatedAt?: string | undefined;
904
+ archivedAt?: string | undefined;
905
+ parameters?: any;
906
+ isTest?: boolean | undefined;
907
+ connectorId?: string | undefined;
908
+ connectorVersion?: string | undefined;
909
+ oAuthCallbackUri?: string | undefined;
910
+ hasMissingParameters?: boolean | undefined;
911
+ hasDocumentation?: boolean | undefined;
912
+ hasOperations?: boolean | undefined;
913
+ operationsCount?: number | undefined;
914
+ hasData?: boolean | undefined;
915
+ dataCollectionsCount?: number | undefined;
916
+ hasEvents?: boolean | undefined;
917
+ eventsCount?: number | undefined;
918
+ hasGlobalWebhooks?: boolean | undefined;
919
+ hasUdm?: boolean | undefined;
920
+ appUuid?: string | undefined;
921
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
922
+ }>>;
923
+ user: z.ZodOptional<z.ZodObject<{
924
+ id: z.ZodString;
925
+ name: z.ZodString;
926
+ internalId: z.ZodString;
927
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
928
+ credentials: z.ZodOptional<z.ZodAny>;
929
+ lastActiveAt: z.ZodOptional<z.ZodString>;
930
+ isTest: z.ZodOptional<z.ZodBoolean>;
931
+ isBillable: z.ZodOptional<z.ZodBoolean>;
932
+ createdAt: z.ZodOptional<z.ZodString>;
933
+ archivedAt: z.ZodOptional<z.ZodString>;
934
+ }, "strip", z.ZodTypeAny, {
935
+ id: string;
936
+ name: string;
937
+ internalId: string;
938
+ createdAt?: string | undefined;
939
+ archivedAt?: string | undefined;
940
+ credentials?: any;
941
+ fields?: Record<string, any> | undefined;
942
+ isTest?: boolean | undefined;
943
+ lastActiveAt?: string | undefined;
944
+ isBillable?: boolean | undefined;
945
+ }, {
946
+ id: string;
947
+ name: string;
948
+ internalId: string;
949
+ createdAt?: string | undefined;
950
+ archivedAt?: string | undefined;
951
+ credentials?: any;
952
+ fields?: Record<string, any> | undefined;
953
+ isTest?: boolean | undefined;
954
+ lastActiveAt?: string | undefined;
955
+ isBillable?: boolean | undefined;
956
+ }>>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ id: string;
959
+ state: FlowRunState;
960
+ userId: string;
961
+ startTime: string;
962
+ flowInstanceId: string;
963
+ startNodeKey: string;
964
+ connection?: {
965
+ id: string;
966
+ name: string;
967
+ createdAt: string;
968
+ updatedAt: string;
969
+ userId: string;
970
+ integrationId: string;
971
+ error?: any;
972
+ state?: import("..").WorkspaceElementState | undefined;
973
+ errors?: any[] | undefined;
974
+ isDeactivated?: boolean | undefined;
975
+ archivedAt?: string | undefined;
976
+ authOptionKey?: string | undefined;
977
+ isTest?: boolean | undefined;
978
+ disconnected?: boolean | undefined;
979
+ isDefunct?: boolean | undefined;
980
+ lastActiveAt?: string | undefined;
981
+ nextCredentialsRefreshAt?: string | undefined;
982
+ meta?: Record<string, any> | undefined;
983
+ } | undefined;
984
+ integration?: {
985
+ id: string;
986
+ name: string;
987
+ logoUri: string;
988
+ key?: string | undefined;
989
+ uuid?: string | undefined;
990
+ description?: string | undefined;
991
+ state?: import("..").WorkspaceElementState | undefined;
992
+ errors?: any[] | undefined;
993
+ revision?: string | undefined;
994
+ isDeactivated?: boolean | undefined;
995
+ createdAt?: string | undefined;
996
+ updatedAt?: string | undefined;
997
+ archivedAt?: string | undefined;
998
+ parameters?: any;
999
+ isTest?: boolean | undefined;
1000
+ connectorId?: string | undefined;
1001
+ connectorVersion?: string | undefined;
1002
+ oAuthCallbackUri?: string | undefined;
1003
+ hasMissingParameters?: boolean | undefined;
1004
+ hasDocumentation?: boolean | undefined;
1005
+ hasOperations?: boolean | undefined;
1006
+ operationsCount?: number | undefined;
1007
+ hasData?: boolean | undefined;
1008
+ dataCollectionsCount?: number | undefined;
1009
+ hasEvents?: boolean | undefined;
1010
+ eventsCount?: number | undefined;
1011
+ hasGlobalWebhooks?: boolean | undefined;
1012
+ hasUdm?: boolean | undefined;
1013
+ appUuid?: string | undefined;
1014
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1015
+ } | undefined;
1016
+ name?: string | undefined;
1017
+ errors?: any[] | undefined;
1018
+ connectionId?: string | undefined;
1019
+ integrationId?: string | undefined;
1020
+ endTime?: string | undefined;
1021
+ user?: {
1022
+ id: string;
1023
+ name: string;
1024
+ internalId: string;
1025
+ createdAt?: string | undefined;
1026
+ archivedAt?: string | undefined;
1027
+ credentials?: any;
1028
+ fields?: Record<string, any> | undefined;
1029
+ isTest?: boolean | undefined;
1030
+ lastActiveAt?: string | undefined;
1031
+ isBillable?: boolean | undefined;
1032
+ } | undefined;
1033
+ input?: any;
1034
+ universalFlowId?: string | undefined;
1035
+ nodes?: Record<string, {
1036
+ state: import("../base/flow-runs").FlowRunNodeState;
1037
+ runs?: number | undefined;
1038
+ erroredRuns?: number | undefined;
1039
+ outputs?: number | undefined;
1040
+ }> | undefined;
1041
+ launchedBy?: {
1042
+ type: FlowRunLaunchedByTrigger;
1043
+ ids?: string[] | undefined;
1044
+ } | undefined;
1045
+ flowInstance?: {
1046
+ id: string;
1047
+ name: string;
1048
+ createdAt: string;
1049
+ updatedAt: string;
1050
+ userId: string;
1051
+ integrationId: string;
1052
+ enabled: boolean;
1053
+ key?: string | undefined;
1054
+ uuid?: string | undefined;
1055
+ description?: string | undefined;
1056
+ state?: import("..").WorkspaceElementState | undefined;
1057
+ errors?: any[] | undefined;
1058
+ revision?: string | undefined;
1059
+ isDeactivated?: boolean | undefined;
1060
+ archivedAt?: string | undefined;
1061
+ instanceKey?: string | undefined;
1062
+ connectionId?: string | undefined;
1063
+ parameters?: any;
1064
+ parametersSchema?: import("../..").DataSchema | undefined;
1065
+ customized?: {
1066
+ name?: boolean | undefined;
1067
+ nodes?: boolean | undefined;
1068
+ } | undefined;
1069
+ dependencies?: any[] | undefined;
1070
+ universalFlowId?: string | undefined;
1071
+ nodes?: Record<string, any> | undefined;
1072
+ flowId?: string | undefined;
1073
+ outdated?: boolean | undefined;
1074
+ } | undefined;
1075
+ }, {
1076
+ id: string;
1077
+ state: FlowRunState;
1078
+ userId: string;
1079
+ startTime: string;
1080
+ flowInstanceId: string;
1081
+ startNodeKey: string;
1082
+ connection?: {
1083
+ id: string;
1084
+ name: string;
1085
+ createdAt: string;
1086
+ updatedAt: string;
1087
+ userId: string;
1088
+ integrationId: string;
1089
+ error?: any;
1090
+ state?: import("..").WorkspaceElementState | undefined;
1091
+ errors?: any[] | undefined;
1092
+ isDeactivated?: boolean | undefined;
1093
+ archivedAt?: string | undefined;
1094
+ authOptionKey?: string | undefined;
1095
+ isTest?: boolean | undefined;
1096
+ disconnected?: boolean | undefined;
1097
+ isDefunct?: boolean | undefined;
1098
+ lastActiveAt?: string | undefined;
1099
+ nextCredentialsRefreshAt?: string | undefined;
1100
+ meta?: Record<string, any> | undefined;
1101
+ } | undefined;
1102
+ integration?: {
1103
+ id: string;
1104
+ name: string;
1105
+ logoUri: string;
1106
+ key?: string | undefined;
1107
+ uuid?: string | undefined;
1108
+ description?: string | undefined;
1109
+ state?: import("..").WorkspaceElementState | undefined;
1110
+ errors?: any[] | undefined;
1111
+ revision?: string | undefined;
1112
+ isDeactivated?: boolean | undefined;
1113
+ createdAt?: string | undefined;
1114
+ updatedAt?: string | undefined;
1115
+ archivedAt?: string | undefined;
1116
+ parameters?: any;
1117
+ isTest?: boolean | undefined;
1118
+ connectorId?: string | undefined;
1119
+ connectorVersion?: string | undefined;
1120
+ oAuthCallbackUri?: string | undefined;
1121
+ hasMissingParameters?: boolean | undefined;
1122
+ hasDocumentation?: boolean | undefined;
1123
+ hasOperations?: boolean | undefined;
1124
+ operationsCount?: number | undefined;
1125
+ hasData?: boolean | undefined;
1126
+ dataCollectionsCount?: number | undefined;
1127
+ hasEvents?: boolean | undefined;
1128
+ eventsCount?: number | undefined;
1129
+ hasGlobalWebhooks?: boolean | undefined;
1130
+ hasUdm?: boolean | undefined;
1131
+ appUuid?: string | undefined;
1132
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1133
+ } | undefined;
1134
+ name?: string | undefined;
1135
+ errors?: any[] | undefined;
1136
+ connectionId?: string | undefined;
1137
+ integrationId?: string | undefined;
1138
+ endTime?: string | undefined;
1139
+ user?: {
1140
+ id: string;
1141
+ name: string;
1142
+ internalId: string;
1143
+ createdAt?: string | undefined;
1144
+ archivedAt?: string | undefined;
1145
+ credentials?: any;
1146
+ fields?: Record<string, any> | undefined;
1147
+ isTest?: boolean | undefined;
1148
+ lastActiveAt?: string | undefined;
1149
+ isBillable?: boolean | undefined;
1150
+ } | undefined;
1151
+ input?: any;
1152
+ universalFlowId?: string | undefined;
1153
+ nodes?: Record<string, {
1154
+ state: import("../base/flow-runs").FlowRunNodeState;
1155
+ runs?: number | undefined;
1156
+ erroredRuns?: number | undefined;
1157
+ outputs?: number | undefined;
1158
+ }> | undefined;
1159
+ launchedBy?: {
1160
+ type: FlowRunLaunchedByTrigger;
1161
+ ids?: string[] | undefined;
1162
+ } | undefined;
1163
+ flowInstance?: {
1164
+ id: string;
1165
+ name: string;
1166
+ createdAt: string;
1167
+ updatedAt: string;
1168
+ userId: string;
1169
+ integrationId: string;
1170
+ enabled: boolean;
1171
+ key?: string | undefined;
1172
+ uuid?: string | undefined;
1173
+ description?: string | undefined;
1174
+ state?: import("..").WorkspaceElementState | undefined;
1175
+ errors?: any[] | undefined;
1176
+ revision?: string | undefined;
1177
+ isDeactivated?: boolean | undefined;
1178
+ archivedAt?: string | undefined;
1179
+ instanceKey?: string | undefined;
1180
+ connectionId?: string | undefined;
1181
+ parameters?: any;
1182
+ parametersSchema?: import("../..").DataSchema | undefined;
1183
+ customized?: {
1184
+ name?: boolean | undefined;
1185
+ nodes?: boolean | undefined;
1186
+ } | undefined;
1187
+ dependencies?: any[] | undefined;
1188
+ universalFlowId?: string | undefined;
1189
+ nodes?: Record<string, any> | undefined;
1190
+ flowId?: string | undefined;
1191
+ outdated?: boolean | undefined;
1192
+ } | undefined;
1193
+ }>, "many">;
1194
+ cursor: z.ZodOptional<z.ZodString>;
1195
+ }, "strip", z.ZodTypeAny, {
1196
+ items: {
1197
+ id: string;
1198
+ state: FlowRunState;
1199
+ userId: string;
1200
+ startTime: string;
1201
+ flowInstanceId: string;
1202
+ startNodeKey: string;
1203
+ connection?: {
1204
+ id: string;
1205
+ name: string;
1206
+ createdAt: string;
1207
+ updatedAt: string;
1208
+ userId: string;
1209
+ integrationId: string;
1210
+ error?: any;
1211
+ state?: import("..").WorkspaceElementState | undefined;
1212
+ errors?: any[] | undefined;
1213
+ isDeactivated?: boolean | undefined;
1214
+ archivedAt?: string | undefined;
1215
+ authOptionKey?: string | undefined;
1216
+ isTest?: boolean | undefined;
1217
+ disconnected?: boolean | undefined;
1218
+ isDefunct?: boolean | undefined;
1219
+ lastActiveAt?: string | undefined;
1220
+ nextCredentialsRefreshAt?: string | undefined;
1221
+ meta?: Record<string, any> | undefined;
1222
+ } | undefined;
1223
+ integration?: {
1224
+ id: string;
1225
+ name: string;
1226
+ logoUri: string;
1227
+ key?: string | undefined;
1228
+ uuid?: string | undefined;
1229
+ description?: string | undefined;
1230
+ state?: import("..").WorkspaceElementState | undefined;
1231
+ errors?: any[] | undefined;
1232
+ revision?: string | undefined;
1233
+ isDeactivated?: boolean | undefined;
1234
+ createdAt?: string | undefined;
1235
+ updatedAt?: string | undefined;
1236
+ archivedAt?: string | undefined;
1237
+ parameters?: any;
1238
+ isTest?: boolean | undefined;
1239
+ connectorId?: string | undefined;
1240
+ connectorVersion?: string | undefined;
1241
+ oAuthCallbackUri?: string | undefined;
1242
+ hasMissingParameters?: boolean | undefined;
1243
+ hasDocumentation?: boolean | undefined;
1244
+ hasOperations?: boolean | undefined;
1245
+ operationsCount?: number | undefined;
1246
+ hasData?: boolean | undefined;
1247
+ dataCollectionsCount?: number | undefined;
1248
+ hasEvents?: boolean | undefined;
1249
+ eventsCount?: number | undefined;
1250
+ hasGlobalWebhooks?: boolean | undefined;
1251
+ hasUdm?: boolean | undefined;
1252
+ appUuid?: string | undefined;
1253
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1254
+ } | undefined;
1255
+ name?: string | undefined;
1256
+ errors?: any[] | undefined;
1257
+ connectionId?: string | undefined;
1258
+ integrationId?: string | undefined;
1259
+ endTime?: string | undefined;
1260
+ user?: {
1261
+ id: string;
1262
+ name: string;
1263
+ internalId: string;
1264
+ createdAt?: string | undefined;
1265
+ archivedAt?: string | undefined;
1266
+ credentials?: any;
1267
+ fields?: Record<string, any> | undefined;
1268
+ isTest?: boolean | undefined;
1269
+ lastActiveAt?: string | undefined;
1270
+ isBillable?: boolean | undefined;
1271
+ } | undefined;
1272
+ input?: any;
1273
+ universalFlowId?: string | undefined;
1274
+ nodes?: Record<string, {
1275
+ state: import("../base/flow-runs").FlowRunNodeState;
1276
+ runs?: number | undefined;
1277
+ erroredRuns?: number | undefined;
1278
+ outputs?: number | undefined;
1279
+ }> | undefined;
1280
+ launchedBy?: {
1281
+ type: FlowRunLaunchedByTrigger;
1282
+ ids?: string[] | undefined;
1283
+ } | undefined;
1284
+ flowInstance?: {
1285
+ id: string;
1286
+ name: string;
1287
+ createdAt: string;
1288
+ updatedAt: string;
1289
+ userId: string;
1290
+ integrationId: string;
1291
+ enabled: boolean;
1292
+ key?: string | undefined;
1293
+ uuid?: string | undefined;
1294
+ description?: string | undefined;
1295
+ state?: import("..").WorkspaceElementState | undefined;
1296
+ errors?: any[] | undefined;
1297
+ revision?: string | undefined;
1298
+ isDeactivated?: boolean | undefined;
1299
+ archivedAt?: string | undefined;
1300
+ instanceKey?: string | undefined;
1301
+ connectionId?: string | undefined;
1302
+ parameters?: any;
1303
+ parametersSchema?: import("../..").DataSchema | undefined;
1304
+ customized?: {
1305
+ name?: boolean | undefined;
1306
+ nodes?: boolean | undefined;
1307
+ } | undefined;
1308
+ dependencies?: any[] | undefined;
1309
+ universalFlowId?: string | undefined;
1310
+ nodes?: Record<string, any> | undefined;
1311
+ flowId?: string | undefined;
1312
+ outdated?: boolean | undefined;
1313
+ } | undefined;
1314
+ }[];
1315
+ cursor?: string | undefined;
1316
+ }, {
1317
+ items: {
1318
+ id: string;
1319
+ state: FlowRunState;
1320
+ userId: string;
1321
+ startTime: string;
1322
+ flowInstanceId: string;
1323
+ startNodeKey: string;
1324
+ connection?: {
1325
+ id: string;
1326
+ name: string;
1327
+ createdAt: string;
1328
+ updatedAt: string;
1329
+ userId: string;
1330
+ integrationId: string;
1331
+ error?: any;
1332
+ state?: import("..").WorkspaceElementState | undefined;
1333
+ errors?: any[] | undefined;
1334
+ isDeactivated?: boolean | undefined;
1335
+ archivedAt?: string | undefined;
1336
+ authOptionKey?: string | undefined;
1337
+ isTest?: boolean | undefined;
1338
+ disconnected?: boolean | undefined;
1339
+ isDefunct?: boolean | undefined;
1340
+ lastActiveAt?: string | undefined;
1341
+ nextCredentialsRefreshAt?: string | undefined;
1342
+ meta?: Record<string, any> | undefined;
1343
+ } | undefined;
1344
+ integration?: {
1345
+ id: string;
1346
+ name: string;
1347
+ logoUri: string;
1348
+ key?: string | undefined;
1349
+ uuid?: string | undefined;
1350
+ description?: string | undefined;
1351
+ state?: import("..").WorkspaceElementState | undefined;
1352
+ errors?: any[] | undefined;
1353
+ revision?: string | undefined;
1354
+ isDeactivated?: boolean | undefined;
1355
+ createdAt?: string | undefined;
1356
+ updatedAt?: string | undefined;
1357
+ archivedAt?: string | undefined;
1358
+ parameters?: any;
1359
+ isTest?: boolean | undefined;
1360
+ connectorId?: string | undefined;
1361
+ connectorVersion?: string | undefined;
1362
+ oAuthCallbackUri?: string | undefined;
1363
+ hasMissingParameters?: boolean | undefined;
1364
+ hasDocumentation?: boolean | undefined;
1365
+ hasOperations?: boolean | undefined;
1366
+ operationsCount?: number | undefined;
1367
+ hasData?: boolean | undefined;
1368
+ dataCollectionsCount?: number | undefined;
1369
+ hasEvents?: boolean | undefined;
1370
+ eventsCount?: number | undefined;
1371
+ hasGlobalWebhooks?: boolean | undefined;
1372
+ hasUdm?: boolean | undefined;
1373
+ appUuid?: string | undefined;
1374
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1375
+ } | undefined;
1376
+ name?: string | undefined;
1377
+ errors?: any[] | undefined;
1378
+ connectionId?: string | undefined;
1379
+ integrationId?: string | undefined;
1380
+ endTime?: string | undefined;
1381
+ user?: {
1382
+ id: string;
1383
+ name: string;
1384
+ internalId: string;
1385
+ createdAt?: string | undefined;
1386
+ archivedAt?: string | undefined;
1387
+ credentials?: any;
1388
+ fields?: Record<string, any> | undefined;
1389
+ isTest?: boolean | undefined;
1390
+ lastActiveAt?: string | undefined;
1391
+ isBillable?: boolean | undefined;
1392
+ } | undefined;
1393
+ input?: any;
1394
+ universalFlowId?: string | undefined;
1395
+ nodes?: Record<string, {
1396
+ state: import("../base/flow-runs").FlowRunNodeState;
1397
+ runs?: number | undefined;
1398
+ erroredRuns?: number | undefined;
1399
+ outputs?: number | undefined;
1400
+ }> | undefined;
1401
+ launchedBy?: {
1402
+ type: FlowRunLaunchedByTrigger;
1403
+ ids?: string[] | undefined;
1404
+ } | undefined;
1405
+ flowInstance?: {
1406
+ id: string;
1407
+ name: string;
1408
+ createdAt: string;
1409
+ updatedAt: string;
1410
+ userId: string;
1411
+ integrationId: string;
1412
+ enabled: boolean;
1413
+ key?: string | undefined;
1414
+ uuid?: string | undefined;
1415
+ description?: string | undefined;
1416
+ state?: import("..").WorkspaceElementState | undefined;
1417
+ errors?: any[] | undefined;
1418
+ revision?: string | undefined;
1419
+ isDeactivated?: boolean | undefined;
1420
+ archivedAt?: string | undefined;
1421
+ instanceKey?: string | undefined;
1422
+ connectionId?: string | undefined;
1423
+ parameters?: any;
1424
+ parametersSchema?: import("../..").DataSchema | undefined;
1425
+ customized?: {
1426
+ name?: boolean | undefined;
1427
+ nodes?: boolean | undefined;
1428
+ } | undefined;
1429
+ dependencies?: any[] | undefined;
1430
+ universalFlowId?: string | undefined;
1431
+ nodes?: Record<string, any> | undefined;
1432
+ flowId?: string | undefined;
1433
+ outdated?: boolean | undefined;
1434
+ } | undefined;
1435
+ }[];
1436
+ cursor?: string | undefined;
1437
+ }>;
1438
+ export type FindFlowRunsResponse = z.infer<typeof FindFlowRunsResponse>;
1439
+ export type FlowRun = FlowRunApiResponse;