@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.
Files changed (82) hide show
  1. package/dist/bundle.d.ts +16299 -1303
  2. package/dist/bundle.js +3980 -3701
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +78 -1
  5. package/dist/dts/accessors/integrations-accessors.d.ts +78 -1
  6. package/dist/dts/api-client.d.ts +1 -0
  7. package/dist/dts/client.d.ts +1 -0
  8. package/dist/dts/data-schema/index.d.ts +0 -1
  9. package/dist/dts/data-schema/types.d.ts +4 -3
  10. package/dist/dts/entity-repository.d.ts +88 -20
  11. package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
  12. package/dist/dts/http-requests.d.ts +20 -6
  13. package/dist/dts/iframe.d.ts +12 -4
  14. package/dist/dts/index.d.ts +2 -1
  15. package/dist/dts/sse/index.d.ts +1 -0
  16. package/dist/dts/sse/workspace-elements.d.ts +9 -0
  17. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  18. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
  19. package/dist/dts/workspace-elements/api/actions-api.d.ts +1010 -45
  20. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  21. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  22. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  23. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  24. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  25. package/dist/dts/workspace-elements/api/connections-api.d.ts +993 -42
  26. package/dist/dts/workspace-elements/api/customers-api.d.ts +92 -16
  27. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
  28. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  29. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
  30. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +1113 -78
  31. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
  32. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
  33. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
  34. package/dist/dts/workspace-elements/api/external-events-api.d.ts +582 -6
  35. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
  36. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +885 -7
  37. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
  38. package/dist/dts/workspace-elements/api/flows-api.d.ts +3202 -52
  39. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  40. package/dist/dts/workspace-elements/api/integrations-api.d.ts +339 -26
  41. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +523 -35
  42. package/dist/dts/workspace-elements/api/screens-api.d.ts +35 -15
  43. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +78 -15
  44. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +37 -12
  45. package/dist/dts/workspace-elements/base/actions/types.d.ts +78 -18
  46. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +59 -7
  47. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +49 -7
  48. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +92 -9
  49. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +84 -7
  50. package/dist/dts/workspace-elements/base/connections/types.d.ts +82 -20
  51. package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
  52. package/dist/dts/workspace-elements/base/customers/index.d.ts +32 -6
  53. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +93 -92
  54. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +78 -11
  55. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +43 -4
  56. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1048 -19
  57. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +97 -22
  58. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
  59. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
  60. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +197 -24
  61. package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
  62. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +92 -16
  63. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +105 -14
  64. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +43 -43
  65. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +170 -24
  66. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
  67. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +127 -19
  68. package/dist/dts/workspace-elements/base/flows/types.d.ts +234 -26
  69. package/dist/dts/workspace-elements/base/integrations/types.d.ts +988 -25
  70. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +740 -23
  71. package/dist/dts/workspace-elements/base/screens/types.d.ts +48 -6
  72. package/dist/dts/workspace-elements/types.d.ts +25 -3
  73. package/dist/dts/workspaces/types.d.ts +4 -3
  74. package/dist/index.d.ts +26481 -3080
  75. package/dist/index.js +1717 -535
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.module.d.mts +26481 -3080
  78. package/dist/index.module.mjs +1550 -502
  79. package/dist/index.module.mjs.map +1 -1
  80. package/package.json +3 -2
  81. package/dist/dts/data-schema/schemas.d.ts +0 -4
  82. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -1,50 +1,1655 @@
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 FlowRunLaunchedBy {
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
+ credentials: z.ZodOptional<z.ZodUnknown>;
217
+ parameters: z.ZodOptional<z.ZodUnknown>;
218
+ connectorParameters: z.ZodOptional<z.ZodUnknown>;
219
+ createdAt: z.ZodString;
220
+ updatedAt: z.ZodString;
221
+ lastActiveAt: z.ZodOptional<z.ZodString>;
222
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
223
+ archivedAt: z.ZodOptional<z.ZodString>;
224
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
225
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
226
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
227
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ id: string;
230
+ name: string;
231
+ createdAt: string;
232
+ updatedAt: string;
233
+ userId: string;
234
+ integrationId: string;
235
+ error?: any;
236
+ state?: import("..").WorkspaceElementState | undefined;
237
+ errors?: any[] | undefined;
238
+ isDeactivated?: boolean | undefined;
239
+ archivedAt?: string | undefined;
240
+ credentials?: unknown;
241
+ parameters?: unknown;
242
+ connectorParameters?: unknown;
243
+ isTest?: boolean | undefined;
244
+ disconnected?: boolean | undefined;
245
+ isDefunct?: boolean | undefined;
246
+ lastActiveAt?: string | undefined;
247
+ nextCredentialsRefreshAt?: string | undefined;
248
+ meta?: Record<string, any> | undefined;
249
+ }, {
250
+ id: string;
251
+ name: string;
252
+ createdAt: string;
253
+ updatedAt: string;
254
+ userId: string;
255
+ integrationId: string;
256
+ error?: any;
257
+ state?: import("..").WorkspaceElementState | undefined;
258
+ errors?: any[] | undefined;
259
+ isDeactivated?: boolean | undefined;
260
+ archivedAt?: string | undefined;
261
+ credentials?: unknown;
262
+ parameters?: unknown;
263
+ connectorParameters?: unknown;
264
+ isTest?: boolean | undefined;
265
+ disconnected?: boolean | undefined;
266
+ isDefunct?: boolean | undefined;
267
+ lastActiveAt?: string | undefined;
268
+ nextCredentialsRefreshAt?: string | undefined;
269
+ meta?: Record<string, any> | undefined;
270
+ }>>;
271
+ integration: z.ZodOptional<z.ZodObject<{
272
+ id: z.ZodString;
273
+ name: z.ZodString;
274
+ key: z.ZodOptional<z.ZodString>;
275
+ uuid: z.ZodOptional<z.ZodString>;
276
+ description: z.ZodOptional<z.ZodString>;
277
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
278
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
279
+ revision: z.ZodOptional<z.ZodString>;
280
+ createdAt: z.ZodOptional<z.ZodString>;
281
+ updatedAt: z.ZodOptional<z.ZodString>;
282
+ } & {
283
+ logoUri: z.ZodString;
284
+ connectorId: z.ZodOptional<z.ZodString>;
285
+ connectorVersion: z.ZodOptional<z.ZodString>;
286
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
287
+ key: z.ZodString;
288
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
289
+ title: z.ZodOptional<z.ZodString>;
290
+ description: z.ZodOptional<z.ZodString>;
291
+ ui: z.ZodOptional<z.ZodObject<{
292
+ schema: z.ZodOptional<z.ZodAny>;
293
+ helpUri: z.ZodOptional<z.ZodString>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ schema?: any;
296
+ helpUri?: string | undefined;
297
+ }, {
298
+ schema?: any;
299
+ helpUri?: string | undefined;
300
+ }>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ key: string;
303
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
304
+ description?: string | undefined;
305
+ title?: string | undefined;
306
+ ui?: {
307
+ schema?: any;
308
+ helpUri?: string | undefined;
309
+ } | undefined;
310
+ }, {
311
+ key: string;
312
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
313
+ description?: string | undefined;
314
+ title?: string | undefined;
315
+ ui?: {
316
+ schema?: any;
317
+ helpUri?: string | undefined;
318
+ } | undefined;
319
+ }>, "many">>;
320
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
321
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
322
+ parameters: z.ZodOptional<z.ZodAny>;
323
+ baseUri: z.ZodString;
324
+ archivedAt: z.ZodOptional<z.ZodString>;
325
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
326
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
327
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
328
+ operationsCount: z.ZodOptional<z.ZodNumber>;
329
+ hasData: z.ZodOptional<z.ZodBoolean>;
330
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
331
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
332
+ eventsCount: z.ZodOptional<z.ZodNumber>;
333
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
334
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
335
+ isTest: z.ZodOptional<z.ZodBoolean>;
336
+ appUuid: z.ZodOptional<z.ZodString>;
337
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
338
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ id: string;
341
+ name: string;
342
+ baseUri: string;
343
+ logoUri: string;
344
+ key?: string | undefined;
345
+ uuid?: string | undefined;
346
+ description?: string | undefined;
347
+ state?: import("..").WorkspaceElementState | undefined;
348
+ errors?: any[] | undefined;
349
+ revision?: string | undefined;
350
+ isDeactivated?: boolean | undefined;
351
+ createdAt?: string | undefined;
352
+ updatedAt?: string | undefined;
353
+ archivedAt?: string | undefined;
354
+ parameters?: any;
355
+ parametersSchema?: import("../..").DataSchema | undefined;
356
+ isTest?: boolean | undefined;
357
+ connectorId?: string | undefined;
358
+ connectorVersion?: string | undefined;
359
+ authOptions?: {
360
+ key: string;
361
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
362
+ description?: string | undefined;
363
+ title?: string | undefined;
364
+ ui?: {
365
+ schema?: any;
366
+ helpUri?: string | undefined;
367
+ } | undefined;
368
+ }[] | undefined;
369
+ oAuthCallbackUri?: string | undefined;
370
+ hasMissingParameters?: boolean | undefined;
371
+ hasDocumentation?: boolean | undefined;
372
+ hasOperations?: boolean | undefined;
373
+ operationsCount?: number | undefined;
374
+ hasData?: boolean | undefined;
375
+ dataCollectionsCount?: number | undefined;
376
+ hasEvents?: boolean | undefined;
377
+ eventsCount?: number | undefined;
378
+ hasGlobalWebhooks?: boolean | undefined;
379
+ hasUdm?: boolean | undefined;
380
+ appUuid?: string | undefined;
381
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
382
+ }, {
383
+ id: string;
384
+ name: string;
385
+ baseUri: string;
386
+ logoUri: string;
387
+ key?: string | undefined;
388
+ uuid?: string | undefined;
389
+ description?: string | undefined;
390
+ state?: import("..").WorkspaceElementState | undefined;
391
+ errors?: any[] | undefined;
392
+ revision?: string | undefined;
393
+ isDeactivated?: boolean | undefined;
394
+ createdAt?: string | undefined;
395
+ updatedAt?: string | undefined;
396
+ archivedAt?: string | undefined;
397
+ parameters?: any;
398
+ parametersSchema?: import("../..").DataSchema | undefined;
399
+ isTest?: boolean | undefined;
400
+ connectorId?: string | undefined;
401
+ connectorVersion?: string | undefined;
402
+ authOptions?: {
403
+ key: string;
404
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
405
+ description?: string | undefined;
406
+ title?: string | undefined;
407
+ ui?: {
408
+ schema?: any;
409
+ helpUri?: string | undefined;
410
+ } | undefined;
411
+ }[] | undefined;
412
+ oAuthCallbackUri?: string | undefined;
413
+ hasMissingParameters?: boolean | undefined;
414
+ hasDocumentation?: boolean | undefined;
415
+ hasOperations?: boolean | undefined;
416
+ operationsCount?: number | undefined;
417
+ hasData?: boolean | undefined;
418
+ dataCollectionsCount?: number | undefined;
419
+ hasEvents?: boolean | undefined;
420
+ eventsCount?: number | undefined;
421
+ hasGlobalWebhooks?: boolean | undefined;
422
+ hasUdm?: boolean | undefined;
423
+ appUuid?: string | undefined;
424
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
425
+ }>>;
426
+ user: z.ZodOptional<z.ZodObject<{
427
+ id: z.ZodString;
428
+ name: z.ZodString;
429
+ internalId: z.ZodString;
430
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
431
+ credentials: z.ZodOptional<z.ZodAny>;
432
+ lastActiveAt: z.ZodOptional<z.ZodString>;
433
+ isTest: z.ZodOptional<z.ZodBoolean>;
434
+ isBillable: z.ZodOptional<z.ZodBoolean>;
435
+ createdAt: z.ZodOptional<z.ZodString>;
436
+ archivedAt: z.ZodOptional<z.ZodString>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ id: string;
439
+ name: string;
440
+ internalId: string;
441
+ createdAt?: string | undefined;
442
+ archivedAt?: string | undefined;
443
+ credentials?: any;
444
+ fields?: Record<string, any> | undefined;
445
+ isTest?: boolean | undefined;
446
+ lastActiveAt?: string | undefined;
447
+ isBillable?: boolean | undefined;
448
+ }, {
449
+ id: string;
450
+ name: string;
451
+ internalId: string;
452
+ createdAt?: string | undefined;
453
+ archivedAt?: string | undefined;
454
+ credentials?: any;
455
+ fields?: Record<string, any> | undefined;
456
+ isTest?: boolean | undefined;
457
+ lastActiveAt?: string | undefined;
458
+ isBillable?: boolean | undefined;
459
+ }>>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ id: string;
462
+ state: FlowRunState;
463
+ userId: string;
464
+ startTime: string;
465
+ flowInstanceId: string;
466
+ startNodeKey: string;
467
+ connection?: {
468
+ id: string;
469
+ name: string;
470
+ createdAt: string;
471
+ updatedAt: string;
472
+ userId: string;
473
+ integrationId: string;
474
+ error?: any;
475
+ state?: import("..").WorkspaceElementState | undefined;
476
+ errors?: any[] | undefined;
477
+ isDeactivated?: boolean | undefined;
478
+ archivedAt?: string | undefined;
479
+ credentials?: unknown;
480
+ parameters?: unknown;
481
+ connectorParameters?: unknown;
482
+ isTest?: boolean | undefined;
483
+ disconnected?: boolean | undefined;
484
+ isDefunct?: boolean | undefined;
485
+ lastActiveAt?: string | undefined;
486
+ nextCredentialsRefreshAt?: string | undefined;
487
+ meta?: Record<string, any> | undefined;
488
+ } | undefined;
489
+ integration?: {
490
+ id: string;
491
+ name: string;
492
+ baseUri: string;
493
+ logoUri: string;
494
+ key?: string | undefined;
495
+ uuid?: string | undefined;
496
+ description?: string | undefined;
497
+ state?: import("..").WorkspaceElementState | undefined;
498
+ errors?: any[] | undefined;
499
+ revision?: string | undefined;
500
+ isDeactivated?: boolean | undefined;
501
+ createdAt?: string | undefined;
502
+ updatedAt?: string | undefined;
503
+ archivedAt?: string | undefined;
504
+ parameters?: any;
505
+ parametersSchema?: import("../..").DataSchema | undefined;
506
+ isTest?: boolean | undefined;
507
+ connectorId?: string | undefined;
508
+ connectorVersion?: string | undefined;
509
+ authOptions?: {
510
+ key: string;
511
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
512
+ description?: string | undefined;
513
+ title?: string | undefined;
514
+ ui?: {
515
+ schema?: any;
516
+ helpUri?: string | undefined;
517
+ } | undefined;
518
+ }[] | undefined;
519
+ oAuthCallbackUri?: string | undefined;
520
+ hasMissingParameters?: boolean | undefined;
521
+ hasDocumentation?: boolean | undefined;
522
+ hasOperations?: boolean | undefined;
523
+ operationsCount?: number | undefined;
524
+ hasData?: boolean | undefined;
525
+ dataCollectionsCount?: number | undefined;
526
+ hasEvents?: boolean | undefined;
527
+ eventsCount?: number | undefined;
528
+ hasGlobalWebhooks?: boolean | undefined;
529
+ hasUdm?: boolean | undefined;
530
+ appUuid?: string | undefined;
531
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
532
+ } | undefined;
533
+ name?: string | undefined;
534
+ errors?: any[] | undefined;
535
+ connectionId?: string | undefined;
536
+ integrationId?: string | undefined;
537
+ endTime?: string | undefined;
538
+ user?: {
539
+ id: string;
540
+ name: string;
541
+ internalId: string;
542
+ createdAt?: string | undefined;
543
+ archivedAt?: string | undefined;
544
+ credentials?: any;
545
+ fields?: Record<string, any> | undefined;
546
+ isTest?: boolean | undefined;
547
+ lastActiveAt?: string | undefined;
548
+ isBillable?: boolean | undefined;
549
+ } | undefined;
550
+ input?: any;
551
+ universalFlowId?: string | undefined;
552
+ nodes?: Record<string, {
553
+ state: import("../base/flow-runs").FlowRunNodeState;
554
+ runs?: number | undefined;
555
+ erroredRuns?: number | undefined;
556
+ outputs?: number | undefined;
557
+ }> | undefined;
558
+ launchedBy?: {
559
+ type: FlowRunLaunchedByTrigger;
560
+ ids?: string[] | undefined;
561
+ } | undefined;
562
+ flowInstance?: {
563
+ id: string;
564
+ name: string;
565
+ createdAt: string;
566
+ updatedAt: string;
567
+ userId: string;
568
+ integrationId: string;
569
+ enabled: boolean;
570
+ key?: string | undefined;
571
+ uuid?: string | undefined;
572
+ description?: string | undefined;
573
+ state?: import("..").WorkspaceElementState | undefined;
574
+ errors?: any[] | undefined;
575
+ revision?: string | undefined;
576
+ isDeactivated?: boolean | undefined;
577
+ archivedAt?: string | undefined;
578
+ instanceKey?: string | undefined;
579
+ connectionId?: string | undefined;
580
+ parameters?: any;
581
+ parametersSchema?: import("../..").DataSchema | undefined;
582
+ customized?: {
583
+ name?: boolean | undefined;
584
+ nodes?: boolean | undefined;
585
+ } | undefined;
586
+ dependencies?: any[] | undefined;
587
+ universalFlowId?: string | undefined;
588
+ nodes?: Record<string, any> | undefined;
589
+ flowId?: string | undefined;
590
+ outdated?: boolean | undefined;
591
+ } | undefined;
592
+ }, {
593
+ id: string;
594
+ state: FlowRunState;
595
+ userId: string;
596
+ startTime: string;
597
+ flowInstanceId: string;
598
+ startNodeKey: string;
599
+ connection?: {
600
+ id: string;
601
+ name: string;
602
+ createdAt: string;
603
+ updatedAt: string;
604
+ userId: string;
605
+ integrationId: string;
606
+ error?: any;
607
+ state?: import("..").WorkspaceElementState | undefined;
608
+ errors?: any[] | undefined;
609
+ isDeactivated?: boolean | undefined;
610
+ archivedAt?: string | undefined;
611
+ credentials?: unknown;
612
+ parameters?: unknown;
613
+ connectorParameters?: unknown;
614
+ isTest?: boolean | undefined;
615
+ disconnected?: boolean | undefined;
616
+ isDefunct?: boolean | undefined;
617
+ lastActiveAt?: string | undefined;
618
+ nextCredentialsRefreshAt?: string | undefined;
619
+ meta?: Record<string, any> | undefined;
620
+ } | undefined;
621
+ integration?: {
622
+ id: string;
623
+ name: string;
624
+ baseUri: string;
625
+ logoUri: string;
626
+ key?: string | undefined;
627
+ uuid?: string | undefined;
628
+ description?: string | undefined;
629
+ state?: import("..").WorkspaceElementState | undefined;
630
+ errors?: any[] | undefined;
631
+ revision?: string | undefined;
632
+ isDeactivated?: boolean | undefined;
633
+ createdAt?: string | undefined;
634
+ updatedAt?: string | undefined;
635
+ archivedAt?: string | undefined;
636
+ parameters?: any;
637
+ parametersSchema?: import("../..").DataSchema | undefined;
638
+ isTest?: boolean | undefined;
639
+ connectorId?: string | undefined;
640
+ connectorVersion?: string | undefined;
641
+ authOptions?: {
642
+ key: string;
643
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
644
+ description?: string | undefined;
645
+ title?: string | undefined;
646
+ ui?: {
647
+ schema?: any;
648
+ helpUri?: string | undefined;
649
+ } | undefined;
650
+ }[] | undefined;
651
+ oAuthCallbackUri?: string | undefined;
652
+ hasMissingParameters?: boolean | undefined;
653
+ hasDocumentation?: boolean | undefined;
654
+ hasOperations?: boolean | undefined;
655
+ operationsCount?: number | undefined;
656
+ hasData?: boolean | undefined;
657
+ dataCollectionsCount?: number | undefined;
658
+ hasEvents?: boolean | undefined;
659
+ eventsCount?: number | undefined;
660
+ hasGlobalWebhooks?: boolean | undefined;
661
+ hasUdm?: boolean | undefined;
662
+ appUuid?: string | undefined;
663
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
664
+ } | undefined;
665
+ name?: string | undefined;
666
+ errors?: any[] | undefined;
667
+ connectionId?: string | undefined;
668
+ integrationId?: string | undefined;
669
+ endTime?: string | undefined;
670
+ user?: {
671
+ id: string;
672
+ name: string;
673
+ internalId: string;
674
+ createdAt?: string | undefined;
675
+ archivedAt?: string | undefined;
676
+ credentials?: any;
677
+ fields?: Record<string, any> | undefined;
678
+ isTest?: boolean | undefined;
679
+ lastActiveAt?: string | undefined;
680
+ isBillable?: boolean | undefined;
681
+ } | undefined;
682
+ input?: any;
683
+ universalFlowId?: string | undefined;
684
+ nodes?: Record<string, {
685
+ state: import("../base/flow-runs").FlowRunNodeState;
686
+ runs?: number | undefined;
687
+ erroredRuns?: number | undefined;
688
+ outputs?: number | undefined;
689
+ }> | undefined;
690
+ launchedBy?: {
691
+ type: FlowRunLaunchedByTrigger;
692
+ ids?: string[] | undefined;
693
+ } | undefined;
694
+ flowInstance?: {
695
+ id: string;
696
+ name: string;
697
+ createdAt: string;
698
+ updatedAt: string;
699
+ userId: string;
700
+ integrationId: string;
701
+ enabled: boolean;
702
+ key?: string | undefined;
703
+ uuid?: string | undefined;
704
+ description?: string | undefined;
705
+ state?: import("..").WorkspaceElementState | undefined;
706
+ errors?: any[] | undefined;
707
+ revision?: string | undefined;
708
+ isDeactivated?: boolean | undefined;
709
+ archivedAt?: string | undefined;
710
+ instanceKey?: string | undefined;
711
+ connectionId?: string | undefined;
712
+ parameters?: any;
713
+ parametersSchema?: import("../..").DataSchema | undefined;
714
+ customized?: {
715
+ name?: boolean | undefined;
716
+ nodes?: boolean | undefined;
717
+ } | undefined;
718
+ dependencies?: any[] | undefined;
719
+ universalFlowId?: string | undefined;
720
+ nodes?: Record<string, any> | undefined;
721
+ flowId?: string | undefined;
722
+ outdated?: boolean | undefined;
723
+ } | undefined;
724
+ }>;
725
+ export type FlowRunApiResponse = z.infer<typeof FlowRunApiResponse>;
726
+ export declare const FindFlowRunsResponse: z.ZodObject<{
727
+ items: z.ZodArray<z.ZodObject<{
728
+ id: z.ZodString;
729
+ name: z.ZodOptional<z.ZodString>;
730
+ flowInstanceId: z.ZodString;
731
+ universalFlowId: z.ZodOptional<z.ZodString>;
732
+ connectionId: z.ZodOptional<z.ZodString>;
733
+ integrationId: z.ZodOptional<z.ZodString>;
734
+ startNodeKey: z.ZodString;
735
+ userId: z.ZodString;
736
+ input: z.ZodOptional<z.ZodAny>;
737
+ state: z.ZodNativeEnum<typeof FlowRunState>;
738
+ startTime: z.ZodString;
739
+ endTime: z.ZodOptional<z.ZodString>;
740
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
741
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
742
+ state: z.ZodNativeEnum<typeof import("../base/flow-runs").FlowRunNodeState>;
743
+ runs: z.ZodOptional<z.ZodNumber>;
744
+ erroredRuns: z.ZodOptional<z.ZodNumber>;
745
+ outputs: z.ZodOptional<z.ZodNumber>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ state: import("../base/flow-runs").FlowRunNodeState;
748
+ runs?: number | undefined;
749
+ erroredRuns?: number | undefined;
750
+ outputs?: number | undefined;
751
+ }, {
752
+ state: import("../base/flow-runs").FlowRunNodeState;
753
+ runs?: number | undefined;
754
+ erroredRuns?: number | undefined;
755
+ outputs?: number | undefined;
756
+ }>>>;
757
+ launchedBy: z.ZodOptional<z.ZodObject<{
758
+ type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
759
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ type: FlowRunLaunchedByTrigger;
762
+ ids?: string[] | undefined;
763
+ }, {
764
+ type: FlowRunLaunchedByTrigger;
765
+ ids?: string[] | undefined;
766
+ }>>;
767
+ } & {
768
+ flowInstance: z.ZodOptional<z.ZodObject<{
769
+ id: z.ZodString;
770
+ name: z.ZodString;
771
+ key: z.ZodOptional<z.ZodString>;
772
+ uuid: z.ZodOptional<z.ZodString>;
773
+ description: z.ZodOptional<z.ZodString>;
774
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
775
+ revision: z.ZodOptional<z.ZodString>;
776
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
777
+ archivedAt: z.ZodOptional<z.ZodString>;
778
+ } & {
779
+ userId: z.ZodString;
780
+ connectionId: z.ZodOptional<z.ZodString>;
781
+ flowId: z.ZodOptional<z.ZodString>;
782
+ universalFlowId: z.ZodOptional<z.ZodString>;
783
+ integrationId: z.ZodString;
784
+ instanceKey: z.ZodOptional<z.ZodString>;
785
+ parameters: z.ZodOptional<z.ZodAny>;
786
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
787
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
788
+ enabled: z.ZodBoolean;
789
+ createdAt: z.ZodString;
790
+ updatedAt: z.ZodString;
791
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
792
+ outdated: z.ZodOptional<z.ZodBoolean>;
793
+ customized: z.ZodOptional<z.ZodObject<{
794
+ name: z.ZodOptional<z.ZodBoolean>;
795
+ nodes: z.ZodOptional<z.ZodBoolean>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ name?: boolean | undefined;
798
+ nodes?: boolean | undefined;
799
+ }, {
800
+ name?: boolean | undefined;
801
+ nodes?: boolean | undefined;
802
+ }>>;
803
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ id: string;
806
+ name: string;
807
+ createdAt: string;
808
+ updatedAt: string;
809
+ userId: string;
810
+ integrationId: string;
811
+ enabled: boolean;
812
+ key?: string | undefined;
813
+ uuid?: string | undefined;
814
+ description?: string | undefined;
815
+ state?: import("..").WorkspaceElementState | undefined;
816
+ errors?: any[] | undefined;
817
+ revision?: string | undefined;
818
+ isDeactivated?: boolean | undefined;
819
+ archivedAt?: string | undefined;
820
+ instanceKey?: string | undefined;
821
+ connectionId?: string | undefined;
822
+ parameters?: any;
823
+ parametersSchema?: import("../..").DataSchema | undefined;
824
+ customized?: {
825
+ name?: boolean | undefined;
826
+ nodes?: boolean | undefined;
827
+ } | undefined;
828
+ dependencies?: any[] | undefined;
829
+ universalFlowId?: string | undefined;
830
+ nodes?: Record<string, any> | undefined;
831
+ flowId?: string | undefined;
832
+ outdated?: boolean | undefined;
833
+ }, {
834
+ id: string;
835
+ name: string;
836
+ createdAt: string;
837
+ updatedAt: string;
838
+ userId: string;
839
+ integrationId: string;
840
+ enabled: boolean;
841
+ key?: string | undefined;
842
+ uuid?: string | undefined;
843
+ description?: string | undefined;
844
+ state?: import("..").WorkspaceElementState | undefined;
845
+ errors?: any[] | undefined;
846
+ revision?: string | undefined;
847
+ isDeactivated?: boolean | undefined;
848
+ archivedAt?: string | undefined;
849
+ instanceKey?: string | undefined;
850
+ connectionId?: string | undefined;
851
+ parameters?: any;
852
+ parametersSchema?: import("../..").DataSchema | undefined;
853
+ customized?: {
854
+ name?: boolean | undefined;
855
+ nodes?: boolean | undefined;
856
+ } | undefined;
857
+ dependencies?: any[] | undefined;
858
+ universalFlowId?: string | undefined;
859
+ nodes?: Record<string, any> | undefined;
860
+ flowId?: string | undefined;
861
+ outdated?: boolean | undefined;
862
+ }>>;
863
+ connection: z.ZodOptional<z.ZodObject<{
864
+ id: z.ZodString;
865
+ } & {
866
+ name: z.ZodString;
867
+ userId: z.ZodString;
868
+ isTest: z.ZodOptional<z.ZodBoolean>;
869
+ disconnected: z.ZodOptional<z.ZodBoolean>;
870
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
871
+ error: any;
872
+ integrationId: z.ZodString;
873
+ credentials: z.ZodOptional<z.ZodUnknown>;
874
+ parameters: z.ZodOptional<z.ZodUnknown>;
875
+ connectorParameters: z.ZodOptional<z.ZodUnknown>;
876
+ createdAt: z.ZodString;
877
+ updatedAt: z.ZodString;
878
+ lastActiveAt: z.ZodOptional<z.ZodString>;
879
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
880
+ archivedAt: z.ZodOptional<z.ZodString>;
881
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
882
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
883
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
884
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
885
+ }, "strip", z.ZodTypeAny, {
886
+ id: string;
887
+ name: string;
888
+ createdAt: string;
889
+ updatedAt: string;
890
+ userId: string;
891
+ integrationId: string;
892
+ error?: any;
893
+ state?: import("..").WorkspaceElementState | undefined;
894
+ errors?: any[] | undefined;
895
+ isDeactivated?: boolean | undefined;
896
+ archivedAt?: string | undefined;
897
+ credentials?: unknown;
898
+ parameters?: unknown;
899
+ connectorParameters?: unknown;
900
+ isTest?: boolean | undefined;
901
+ disconnected?: boolean | undefined;
902
+ isDefunct?: boolean | undefined;
903
+ lastActiveAt?: string | undefined;
904
+ nextCredentialsRefreshAt?: string | undefined;
905
+ meta?: Record<string, any> | undefined;
906
+ }, {
907
+ id: string;
908
+ name: string;
909
+ createdAt: string;
910
+ updatedAt: string;
911
+ userId: string;
912
+ integrationId: string;
913
+ error?: any;
914
+ state?: import("..").WorkspaceElementState | undefined;
915
+ errors?: any[] | undefined;
916
+ isDeactivated?: boolean | undefined;
917
+ archivedAt?: string | undefined;
918
+ credentials?: unknown;
919
+ parameters?: unknown;
920
+ connectorParameters?: unknown;
921
+ isTest?: boolean | undefined;
922
+ disconnected?: boolean | undefined;
923
+ isDefunct?: boolean | undefined;
924
+ lastActiveAt?: string | undefined;
925
+ nextCredentialsRefreshAt?: string | undefined;
926
+ meta?: Record<string, any> | undefined;
927
+ }>>;
928
+ integration: z.ZodOptional<z.ZodObject<{
929
+ id: z.ZodString;
930
+ name: z.ZodString;
931
+ key: z.ZodOptional<z.ZodString>;
932
+ uuid: z.ZodOptional<z.ZodString>;
933
+ description: z.ZodOptional<z.ZodString>;
934
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
935
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
936
+ revision: z.ZodOptional<z.ZodString>;
937
+ createdAt: z.ZodOptional<z.ZodString>;
938
+ updatedAt: z.ZodOptional<z.ZodString>;
939
+ } & {
940
+ logoUri: z.ZodString;
941
+ connectorId: z.ZodOptional<z.ZodString>;
942
+ connectorVersion: z.ZodOptional<z.ZodString>;
943
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
944
+ key: z.ZodString;
945
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
946
+ title: z.ZodOptional<z.ZodString>;
947
+ description: z.ZodOptional<z.ZodString>;
948
+ ui: z.ZodOptional<z.ZodObject<{
949
+ schema: z.ZodOptional<z.ZodAny>;
950
+ helpUri: z.ZodOptional<z.ZodString>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ schema?: any;
953
+ helpUri?: string | undefined;
954
+ }, {
955
+ schema?: any;
956
+ helpUri?: string | undefined;
957
+ }>>;
958
+ }, "strip", z.ZodTypeAny, {
959
+ key: string;
960
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
961
+ description?: string | undefined;
962
+ title?: string | undefined;
963
+ ui?: {
964
+ schema?: any;
965
+ helpUri?: string | undefined;
966
+ } | undefined;
967
+ }, {
968
+ key: string;
969
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
970
+ description?: string | undefined;
971
+ title?: string | undefined;
972
+ ui?: {
973
+ schema?: any;
974
+ helpUri?: string | undefined;
975
+ } | undefined;
976
+ }>, "many">>;
977
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
978
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
979
+ parameters: z.ZodOptional<z.ZodAny>;
980
+ baseUri: z.ZodString;
981
+ archivedAt: z.ZodOptional<z.ZodString>;
982
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
983
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
984
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
985
+ operationsCount: z.ZodOptional<z.ZodNumber>;
986
+ hasData: z.ZodOptional<z.ZodBoolean>;
987
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
988
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
989
+ eventsCount: z.ZodOptional<z.ZodNumber>;
990
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
991
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
992
+ isTest: z.ZodOptional<z.ZodBoolean>;
993
+ appUuid: z.ZodOptional<z.ZodString>;
994
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
995
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
996
+ }, "strip", z.ZodTypeAny, {
997
+ id: string;
998
+ name: string;
999
+ baseUri: string;
1000
+ logoUri: string;
1001
+ key?: string | undefined;
1002
+ uuid?: string | undefined;
1003
+ description?: string | undefined;
1004
+ state?: import("..").WorkspaceElementState | undefined;
1005
+ errors?: any[] | undefined;
1006
+ revision?: string | undefined;
1007
+ isDeactivated?: boolean | undefined;
1008
+ createdAt?: string | undefined;
1009
+ updatedAt?: string | undefined;
1010
+ archivedAt?: string | undefined;
1011
+ parameters?: any;
1012
+ parametersSchema?: import("../..").DataSchema | undefined;
1013
+ isTest?: boolean | undefined;
1014
+ connectorId?: string | undefined;
1015
+ connectorVersion?: string | undefined;
1016
+ authOptions?: {
1017
+ key: string;
1018
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1019
+ description?: string | undefined;
1020
+ title?: string | undefined;
1021
+ ui?: {
1022
+ schema?: any;
1023
+ helpUri?: string | undefined;
1024
+ } | undefined;
1025
+ }[] | undefined;
1026
+ oAuthCallbackUri?: string | undefined;
1027
+ hasMissingParameters?: boolean | undefined;
1028
+ hasDocumentation?: boolean | undefined;
1029
+ hasOperations?: boolean | undefined;
1030
+ operationsCount?: number | undefined;
1031
+ hasData?: boolean | undefined;
1032
+ dataCollectionsCount?: number | undefined;
1033
+ hasEvents?: boolean | undefined;
1034
+ eventsCount?: number | undefined;
1035
+ hasGlobalWebhooks?: boolean | undefined;
1036
+ hasUdm?: boolean | undefined;
1037
+ appUuid?: string | undefined;
1038
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1039
+ }, {
1040
+ id: string;
1041
+ name: string;
1042
+ baseUri: string;
1043
+ logoUri: string;
1044
+ key?: string | undefined;
1045
+ uuid?: string | undefined;
1046
+ description?: string | undefined;
1047
+ state?: import("..").WorkspaceElementState | undefined;
1048
+ errors?: any[] | undefined;
1049
+ revision?: string | undefined;
1050
+ isDeactivated?: boolean | undefined;
1051
+ createdAt?: string | undefined;
1052
+ updatedAt?: string | undefined;
1053
+ archivedAt?: string | undefined;
1054
+ parameters?: any;
1055
+ parametersSchema?: import("../..").DataSchema | undefined;
1056
+ isTest?: boolean | undefined;
1057
+ connectorId?: string | undefined;
1058
+ connectorVersion?: string | undefined;
1059
+ authOptions?: {
1060
+ key: string;
1061
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1062
+ description?: string | undefined;
1063
+ title?: string | undefined;
1064
+ ui?: {
1065
+ schema?: any;
1066
+ helpUri?: string | undefined;
1067
+ } | undefined;
1068
+ }[] | undefined;
1069
+ oAuthCallbackUri?: string | undefined;
1070
+ hasMissingParameters?: boolean | undefined;
1071
+ hasDocumentation?: boolean | undefined;
1072
+ hasOperations?: boolean | undefined;
1073
+ operationsCount?: number | undefined;
1074
+ hasData?: boolean | undefined;
1075
+ dataCollectionsCount?: number | undefined;
1076
+ hasEvents?: boolean | undefined;
1077
+ eventsCount?: number | undefined;
1078
+ hasGlobalWebhooks?: boolean | undefined;
1079
+ hasUdm?: boolean | undefined;
1080
+ appUuid?: string | undefined;
1081
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1082
+ }>>;
1083
+ user: z.ZodOptional<z.ZodObject<{
1084
+ id: z.ZodString;
1085
+ name: z.ZodString;
1086
+ internalId: z.ZodString;
1087
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1088
+ credentials: z.ZodOptional<z.ZodAny>;
1089
+ lastActiveAt: z.ZodOptional<z.ZodString>;
1090
+ isTest: z.ZodOptional<z.ZodBoolean>;
1091
+ isBillable: z.ZodOptional<z.ZodBoolean>;
1092
+ createdAt: z.ZodOptional<z.ZodString>;
1093
+ archivedAt: z.ZodOptional<z.ZodString>;
1094
+ }, "strip", z.ZodTypeAny, {
1095
+ id: string;
1096
+ name: string;
1097
+ internalId: string;
1098
+ createdAt?: string | undefined;
1099
+ archivedAt?: string | undefined;
1100
+ credentials?: any;
1101
+ fields?: Record<string, any> | undefined;
1102
+ isTest?: boolean | undefined;
1103
+ lastActiveAt?: string | undefined;
1104
+ isBillable?: boolean | undefined;
1105
+ }, {
1106
+ id: string;
1107
+ name: string;
1108
+ internalId: string;
1109
+ createdAt?: string | undefined;
1110
+ archivedAt?: string | undefined;
1111
+ credentials?: any;
1112
+ fields?: Record<string, any> | undefined;
1113
+ isTest?: boolean | undefined;
1114
+ lastActiveAt?: string | undefined;
1115
+ isBillable?: boolean | undefined;
1116
+ }>>;
1117
+ }, "strip", z.ZodTypeAny, {
1118
+ id: string;
1119
+ state: FlowRunState;
1120
+ userId: string;
1121
+ startTime: string;
1122
+ flowInstanceId: string;
1123
+ startNodeKey: string;
1124
+ connection?: {
1125
+ id: string;
1126
+ name: string;
1127
+ createdAt: string;
1128
+ updatedAt: string;
1129
+ userId: string;
1130
+ integrationId: string;
1131
+ error?: any;
1132
+ state?: import("..").WorkspaceElementState | undefined;
1133
+ errors?: any[] | undefined;
1134
+ isDeactivated?: boolean | undefined;
1135
+ archivedAt?: string | undefined;
1136
+ credentials?: unknown;
1137
+ parameters?: unknown;
1138
+ connectorParameters?: unknown;
1139
+ isTest?: boolean | undefined;
1140
+ disconnected?: boolean | undefined;
1141
+ isDefunct?: boolean | undefined;
1142
+ lastActiveAt?: string | undefined;
1143
+ nextCredentialsRefreshAt?: string | undefined;
1144
+ meta?: Record<string, any> | undefined;
1145
+ } | undefined;
1146
+ integration?: {
1147
+ id: string;
1148
+ name: string;
1149
+ baseUri: string;
1150
+ logoUri: string;
1151
+ key?: string | undefined;
1152
+ uuid?: string | undefined;
1153
+ description?: string | undefined;
1154
+ state?: import("..").WorkspaceElementState | undefined;
1155
+ errors?: any[] | undefined;
1156
+ revision?: string | undefined;
1157
+ isDeactivated?: boolean | undefined;
1158
+ createdAt?: string | undefined;
1159
+ updatedAt?: string | undefined;
1160
+ archivedAt?: string | undefined;
1161
+ parameters?: any;
1162
+ parametersSchema?: import("../..").DataSchema | undefined;
1163
+ isTest?: boolean | undefined;
1164
+ connectorId?: string | undefined;
1165
+ connectorVersion?: string | undefined;
1166
+ authOptions?: {
1167
+ key: string;
1168
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1169
+ description?: string | undefined;
1170
+ title?: string | undefined;
1171
+ ui?: {
1172
+ schema?: any;
1173
+ helpUri?: string | undefined;
1174
+ } | undefined;
1175
+ }[] | undefined;
1176
+ oAuthCallbackUri?: string | undefined;
1177
+ hasMissingParameters?: boolean | undefined;
1178
+ hasDocumentation?: boolean | undefined;
1179
+ hasOperations?: boolean | undefined;
1180
+ operationsCount?: number | undefined;
1181
+ hasData?: boolean | undefined;
1182
+ dataCollectionsCount?: number | undefined;
1183
+ hasEvents?: boolean | undefined;
1184
+ eventsCount?: number | undefined;
1185
+ hasGlobalWebhooks?: boolean | undefined;
1186
+ hasUdm?: boolean | undefined;
1187
+ appUuid?: string | undefined;
1188
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1189
+ } | undefined;
1190
+ name?: string | undefined;
1191
+ errors?: any[] | undefined;
1192
+ connectionId?: string | undefined;
1193
+ integrationId?: string | undefined;
1194
+ endTime?: string | undefined;
1195
+ user?: {
1196
+ id: string;
1197
+ name: string;
1198
+ internalId: string;
1199
+ createdAt?: string | undefined;
1200
+ archivedAt?: string | undefined;
1201
+ credentials?: any;
1202
+ fields?: Record<string, any> | undefined;
1203
+ isTest?: boolean | undefined;
1204
+ lastActiveAt?: string | undefined;
1205
+ isBillable?: boolean | undefined;
1206
+ } | undefined;
1207
+ input?: any;
1208
+ universalFlowId?: string | undefined;
1209
+ nodes?: Record<string, {
1210
+ state: import("../base/flow-runs").FlowRunNodeState;
1211
+ runs?: number | undefined;
1212
+ erroredRuns?: number | undefined;
1213
+ outputs?: number | undefined;
1214
+ }> | undefined;
1215
+ launchedBy?: {
1216
+ type: FlowRunLaunchedByTrigger;
1217
+ ids?: string[] | undefined;
1218
+ } | undefined;
1219
+ flowInstance?: {
1220
+ id: string;
1221
+ name: string;
1222
+ createdAt: string;
1223
+ updatedAt: string;
1224
+ userId: string;
1225
+ integrationId: string;
1226
+ enabled: boolean;
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
+ archivedAt?: string | undefined;
1235
+ instanceKey?: string | undefined;
1236
+ connectionId?: string | undefined;
1237
+ parameters?: any;
1238
+ parametersSchema?: import("../..").DataSchema | undefined;
1239
+ customized?: {
1240
+ name?: boolean | undefined;
1241
+ nodes?: boolean | undefined;
1242
+ } | undefined;
1243
+ dependencies?: any[] | undefined;
1244
+ universalFlowId?: string | undefined;
1245
+ nodes?: Record<string, any> | undefined;
1246
+ flowId?: string | undefined;
1247
+ outdated?: boolean | undefined;
1248
+ } | undefined;
1249
+ }, {
1250
+ id: string;
1251
+ state: FlowRunState;
1252
+ userId: string;
1253
+ startTime: string;
1254
+ flowInstanceId: string;
1255
+ startNodeKey: string;
1256
+ connection?: {
1257
+ id: string;
1258
+ name: string;
1259
+ createdAt: string;
1260
+ updatedAt: string;
1261
+ userId: string;
1262
+ integrationId: string;
1263
+ error?: any;
1264
+ state?: import("..").WorkspaceElementState | undefined;
1265
+ errors?: any[] | undefined;
1266
+ isDeactivated?: boolean | undefined;
1267
+ archivedAt?: string | undefined;
1268
+ credentials?: unknown;
1269
+ parameters?: unknown;
1270
+ connectorParameters?: unknown;
1271
+ isTest?: boolean | undefined;
1272
+ disconnected?: boolean | undefined;
1273
+ isDefunct?: boolean | undefined;
1274
+ lastActiveAt?: string | undefined;
1275
+ nextCredentialsRefreshAt?: string | undefined;
1276
+ meta?: Record<string, any> | undefined;
1277
+ } | undefined;
1278
+ integration?: {
1279
+ id: string;
1280
+ name: string;
1281
+ baseUri: string;
1282
+ logoUri: string;
1283
+ key?: string | undefined;
1284
+ uuid?: string | undefined;
1285
+ description?: string | undefined;
1286
+ state?: import("..").WorkspaceElementState | undefined;
1287
+ errors?: any[] | undefined;
1288
+ revision?: string | undefined;
1289
+ isDeactivated?: boolean | undefined;
1290
+ createdAt?: string | undefined;
1291
+ updatedAt?: string | undefined;
1292
+ archivedAt?: string | undefined;
1293
+ parameters?: any;
1294
+ parametersSchema?: import("../..").DataSchema | undefined;
1295
+ isTest?: boolean | undefined;
1296
+ connectorId?: string | undefined;
1297
+ connectorVersion?: string | undefined;
1298
+ authOptions?: {
1299
+ key: string;
1300
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1301
+ description?: string | undefined;
1302
+ title?: string | undefined;
1303
+ ui?: {
1304
+ schema?: any;
1305
+ helpUri?: string | undefined;
1306
+ } | undefined;
1307
+ }[] | undefined;
1308
+ oAuthCallbackUri?: string | undefined;
1309
+ hasMissingParameters?: boolean | undefined;
1310
+ hasDocumentation?: boolean | undefined;
1311
+ hasOperations?: boolean | undefined;
1312
+ operationsCount?: number | undefined;
1313
+ hasData?: boolean | undefined;
1314
+ dataCollectionsCount?: number | undefined;
1315
+ hasEvents?: boolean | undefined;
1316
+ eventsCount?: number | undefined;
1317
+ hasGlobalWebhooks?: boolean | undefined;
1318
+ hasUdm?: boolean | undefined;
1319
+ appUuid?: string | undefined;
1320
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1321
+ } | undefined;
1322
+ name?: string | undefined;
1323
+ errors?: any[] | undefined;
1324
+ connectionId?: string | undefined;
1325
+ integrationId?: string | undefined;
1326
+ endTime?: string | undefined;
1327
+ user?: {
1328
+ id: string;
1329
+ name: string;
1330
+ internalId: string;
1331
+ createdAt?: string | undefined;
1332
+ archivedAt?: string | undefined;
1333
+ credentials?: any;
1334
+ fields?: Record<string, any> | undefined;
1335
+ isTest?: boolean | undefined;
1336
+ lastActiveAt?: string | undefined;
1337
+ isBillable?: boolean | undefined;
1338
+ } | undefined;
1339
+ input?: any;
1340
+ universalFlowId?: string | undefined;
1341
+ nodes?: Record<string, {
1342
+ state: import("../base/flow-runs").FlowRunNodeState;
1343
+ runs?: number | undefined;
1344
+ erroredRuns?: number | undefined;
1345
+ outputs?: number | undefined;
1346
+ }> | undefined;
1347
+ launchedBy?: {
1348
+ type: FlowRunLaunchedByTrigger;
1349
+ ids?: string[] | undefined;
1350
+ } | undefined;
1351
+ flowInstance?: {
1352
+ id: string;
1353
+ name: string;
1354
+ createdAt: string;
1355
+ updatedAt: string;
1356
+ userId: string;
1357
+ integrationId: string;
1358
+ enabled: boolean;
1359
+ key?: string | undefined;
1360
+ uuid?: string | undefined;
1361
+ description?: string | undefined;
1362
+ state?: import("..").WorkspaceElementState | undefined;
1363
+ errors?: any[] | undefined;
1364
+ revision?: string | undefined;
1365
+ isDeactivated?: boolean | undefined;
1366
+ archivedAt?: string | undefined;
1367
+ instanceKey?: string | undefined;
1368
+ connectionId?: string | undefined;
1369
+ parameters?: any;
1370
+ parametersSchema?: import("../..").DataSchema | undefined;
1371
+ customized?: {
1372
+ name?: boolean | undefined;
1373
+ nodes?: boolean | undefined;
1374
+ } | undefined;
1375
+ dependencies?: any[] | undefined;
1376
+ universalFlowId?: string | undefined;
1377
+ nodes?: Record<string, any> | undefined;
1378
+ flowId?: string | undefined;
1379
+ outdated?: boolean | undefined;
1380
+ } | undefined;
1381
+ }>, "many">;
1382
+ cursor: z.ZodOptional<z.ZodString>;
1383
+ }, "strip", z.ZodTypeAny, {
1384
+ items: {
1385
+ id: string;
1386
+ state: FlowRunState;
1387
+ userId: string;
1388
+ startTime: string;
1389
+ flowInstanceId: string;
1390
+ startNodeKey: string;
1391
+ connection?: {
1392
+ id: string;
1393
+ name: string;
1394
+ createdAt: string;
1395
+ updatedAt: string;
1396
+ userId: string;
1397
+ integrationId: string;
1398
+ error?: any;
1399
+ state?: import("..").WorkspaceElementState | undefined;
1400
+ errors?: any[] | undefined;
1401
+ isDeactivated?: boolean | undefined;
1402
+ archivedAt?: string | undefined;
1403
+ credentials?: unknown;
1404
+ parameters?: unknown;
1405
+ connectorParameters?: unknown;
1406
+ isTest?: boolean | undefined;
1407
+ disconnected?: boolean | undefined;
1408
+ isDefunct?: boolean | undefined;
1409
+ lastActiveAt?: string | undefined;
1410
+ nextCredentialsRefreshAt?: string | undefined;
1411
+ meta?: Record<string, any> | undefined;
1412
+ } | undefined;
1413
+ integration?: {
1414
+ id: string;
1415
+ name: string;
1416
+ baseUri: string;
1417
+ logoUri: string;
1418
+ key?: string | undefined;
1419
+ uuid?: string | undefined;
1420
+ description?: string | undefined;
1421
+ state?: import("..").WorkspaceElementState | undefined;
1422
+ errors?: any[] | undefined;
1423
+ revision?: string | undefined;
1424
+ isDeactivated?: boolean | undefined;
1425
+ createdAt?: string | undefined;
1426
+ updatedAt?: string | undefined;
1427
+ archivedAt?: string | undefined;
1428
+ parameters?: any;
1429
+ parametersSchema?: import("../..").DataSchema | undefined;
1430
+ isTest?: boolean | undefined;
1431
+ connectorId?: string | undefined;
1432
+ connectorVersion?: string | undefined;
1433
+ authOptions?: {
1434
+ key: string;
1435
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1436
+ description?: string | undefined;
1437
+ title?: string | undefined;
1438
+ ui?: {
1439
+ schema?: any;
1440
+ helpUri?: string | undefined;
1441
+ } | undefined;
1442
+ }[] | undefined;
1443
+ oAuthCallbackUri?: string | undefined;
1444
+ hasMissingParameters?: boolean | undefined;
1445
+ hasDocumentation?: boolean | undefined;
1446
+ hasOperations?: boolean | undefined;
1447
+ operationsCount?: number | undefined;
1448
+ hasData?: boolean | undefined;
1449
+ dataCollectionsCount?: number | undefined;
1450
+ hasEvents?: boolean | undefined;
1451
+ eventsCount?: number | undefined;
1452
+ hasGlobalWebhooks?: boolean | undefined;
1453
+ hasUdm?: boolean | undefined;
1454
+ appUuid?: string | undefined;
1455
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1456
+ } | undefined;
1457
+ name?: string | undefined;
1458
+ errors?: any[] | undefined;
1459
+ connectionId?: string | undefined;
1460
+ integrationId?: string | undefined;
1461
+ endTime?: string | undefined;
1462
+ user?: {
1463
+ id: string;
1464
+ name: string;
1465
+ internalId: string;
1466
+ createdAt?: string | undefined;
1467
+ archivedAt?: string | undefined;
1468
+ credentials?: any;
1469
+ fields?: Record<string, any> | undefined;
1470
+ isTest?: boolean | undefined;
1471
+ lastActiveAt?: string | undefined;
1472
+ isBillable?: boolean | undefined;
1473
+ } | undefined;
1474
+ input?: any;
1475
+ universalFlowId?: string | undefined;
1476
+ nodes?: Record<string, {
1477
+ state: import("../base/flow-runs").FlowRunNodeState;
1478
+ runs?: number | undefined;
1479
+ erroredRuns?: number | undefined;
1480
+ outputs?: number | undefined;
1481
+ }> | undefined;
1482
+ launchedBy?: {
1483
+ type: FlowRunLaunchedByTrigger;
1484
+ ids?: string[] | undefined;
1485
+ } | undefined;
1486
+ flowInstance?: {
1487
+ id: string;
1488
+ name: string;
1489
+ createdAt: string;
1490
+ updatedAt: string;
1491
+ userId: string;
1492
+ integrationId: string;
1493
+ enabled: boolean;
1494
+ key?: string | undefined;
1495
+ uuid?: string | undefined;
1496
+ description?: string | undefined;
1497
+ state?: import("..").WorkspaceElementState | undefined;
1498
+ errors?: any[] | undefined;
1499
+ revision?: string | undefined;
1500
+ isDeactivated?: boolean | undefined;
1501
+ archivedAt?: string | undefined;
1502
+ instanceKey?: string | undefined;
1503
+ connectionId?: string | undefined;
1504
+ parameters?: any;
1505
+ parametersSchema?: import("../..").DataSchema | undefined;
1506
+ customized?: {
1507
+ name?: boolean | undefined;
1508
+ nodes?: boolean | undefined;
1509
+ } | undefined;
1510
+ dependencies?: any[] | undefined;
1511
+ universalFlowId?: string | undefined;
1512
+ nodes?: Record<string, any> | undefined;
1513
+ flowId?: string | undefined;
1514
+ outdated?: boolean | undefined;
1515
+ } | undefined;
1516
+ }[];
1517
+ cursor?: string | undefined;
1518
+ }, {
1519
+ items: {
1520
+ id: string;
1521
+ state: FlowRunState;
1522
+ userId: string;
1523
+ startTime: string;
1524
+ flowInstanceId: string;
1525
+ startNodeKey: string;
1526
+ connection?: {
1527
+ id: string;
1528
+ name: string;
1529
+ createdAt: string;
1530
+ updatedAt: string;
1531
+ userId: string;
1532
+ integrationId: string;
1533
+ error?: any;
1534
+ state?: import("..").WorkspaceElementState | undefined;
1535
+ errors?: any[] | undefined;
1536
+ isDeactivated?: boolean | undefined;
1537
+ archivedAt?: string | undefined;
1538
+ credentials?: unknown;
1539
+ parameters?: unknown;
1540
+ connectorParameters?: unknown;
1541
+ isTest?: boolean | undefined;
1542
+ disconnected?: boolean | undefined;
1543
+ isDefunct?: boolean | undefined;
1544
+ lastActiveAt?: string | undefined;
1545
+ nextCredentialsRefreshAt?: string | undefined;
1546
+ meta?: Record<string, any> | undefined;
1547
+ } | undefined;
1548
+ integration?: {
1549
+ id: string;
1550
+ name: string;
1551
+ baseUri: string;
1552
+ logoUri: string;
1553
+ key?: string | undefined;
1554
+ uuid?: string | undefined;
1555
+ description?: string | undefined;
1556
+ state?: import("..").WorkspaceElementState | undefined;
1557
+ errors?: any[] | undefined;
1558
+ revision?: string | undefined;
1559
+ isDeactivated?: boolean | undefined;
1560
+ createdAt?: string | undefined;
1561
+ updatedAt?: string | undefined;
1562
+ archivedAt?: string | undefined;
1563
+ parameters?: any;
1564
+ parametersSchema?: import("../..").DataSchema | undefined;
1565
+ isTest?: boolean | undefined;
1566
+ connectorId?: string | undefined;
1567
+ connectorVersion?: string | undefined;
1568
+ authOptions?: {
1569
+ key: string;
1570
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1571
+ description?: string | undefined;
1572
+ title?: string | undefined;
1573
+ ui?: {
1574
+ schema?: any;
1575
+ helpUri?: string | undefined;
1576
+ } | undefined;
1577
+ }[] | undefined;
1578
+ oAuthCallbackUri?: string | undefined;
1579
+ hasMissingParameters?: boolean | undefined;
1580
+ hasDocumentation?: boolean | undefined;
1581
+ hasOperations?: boolean | undefined;
1582
+ operationsCount?: number | undefined;
1583
+ hasData?: boolean | undefined;
1584
+ dataCollectionsCount?: number | undefined;
1585
+ hasEvents?: boolean | undefined;
1586
+ eventsCount?: number | undefined;
1587
+ hasGlobalWebhooks?: boolean | undefined;
1588
+ hasUdm?: boolean | undefined;
1589
+ appUuid?: string | undefined;
1590
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1591
+ } | undefined;
1592
+ name?: string | undefined;
1593
+ errors?: any[] | undefined;
1594
+ connectionId?: string | undefined;
1595
+ integrationId?: string | undefined;
1596
+ endTime?: string | undefined;
1597
+ user?: {
1598
+ id: string;
1599
+ name: string;
1600
+ internalId: string;
1601
+ createdAt?: string | undefined;
1602
+ archivedAt?: string | undefined;
1603
+ credentials?: any;
1604
+ fields?: Record<string, any> | undefined;
1605
+ isTest?: boolean | undefined;
1606
+ lastActiveAt?: string | undefined;
1607
+ isBillable?: boolean | undefined;
1608
+ } | undefined;
1609
+ input?: any;
1610
+ universalFlowId?: string | undefined;
1611
+ nodes?: Record<string, {
1612
+ state: import("../base/flow-runs").FlowRunNodeState;
1613
+ runs?: number | undefined;
1614
+ erroredRuns?: number | undefined;
1615
+ outputs?: number | undefined;
1616
+ }> | undefined;
1617
+ launchedBy?: {
1618
+ type: FlowRunLaunchedByTrigger;
1619
+ ids?: string[] | undefined;
1620
+ } | undefined;
1621
+ flowInstance?: {
1622
+ id: string;
1623
+ name: string;
1624
+ createdAt: string;
1625
+ updatedAt: string;
1626
+ userId: string;
1627
+ integrationId: string;
1628
+ enabled: boolean;
1629
+ key?: string | undefined;
1630
+ uuid?: string | undefined;
1631
+ description?: string | undefined;
1632
+ state?: import("..").WorkspaceElementState | undefined;
1633
+ errors?: any[] | undefined;
1634
+ revision?: string | undefined;
1635
+ isDeactivated?: boolean | undefined;
1636
+ archivedAt?: string | undefined;
1637
+ instanceKey?: string | undefined;
1638
+ connectionId?: string | undefined;
1639
+ parameters?: any;
1640
+ parametersSchema?: import("../..").DataSchema | undefined;
1641
+ customized?: {
1642
+ name?: boolean | undefined;
1643
+ nodes?: boolean | undefined;
1644
+ } | undefined;
1645
+ dependencies?: any[] | undefined;
1646
+ universalFlowId?: string | undefined;
1647
+ nodes?: Record<string, any> | undefined;
1648
+ flowId?: string | undefined;
1649
+ outdated?: boolean | undefined;
1650
+ } | undefined;
1651
+ }[];
1652
+ cursor?: string | undefined;
1653
+ }>;
1654
+ export type FindFlowRunsResponse = z.infer<typeof FindFlowRunsResponse>;
1655
+ export type FlowRun = FlowRunApiResponse;