@membranehq/sdk 0.7.1 → 0.7.4

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 (85) hide show
  1. package/dist/bundle.d.ts +5200 -4617
  2. package/dist/bundle.js +10 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +4 -3
  5. package/dist/dts/accessors/integrations-accessors.d.ts +4 -3
  6. package/dist/dts/accessors/scenarios-accessors.d.ts +4 -3
  7. package/dist/dts/config/config.test.d.ts +1 -0
  8. package/dist/dts/config/index.d.ts +42 -0
  9. package/dist/dts/entity-repository.d.ts +2 -2
  10. package/dist/dts/index.browser.d.ts +31 -0
  11. package/dist/dts/index.d.ts +2 -0
  12. package/dist/dts/index.node.d.ts +2 -0
  13. package/dist/dts/integration-elements/index.d.ts +0 -2
  14. package/dist/dts/{workspace-elements/base/scenarios/types.d.ts → scenario-templates/index.d.ts} +64 -169
  15. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +39 -34
  16. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +37 -37
  17. package/dist/dts/workspace-elements/api/actions-api.d.ts +64 -46
  18. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +13 -0
  19. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +3 -0
  20. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +17 -2
  21. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -0
  22. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -0
  23. package/dist/dts/workspace-elements/api/connections-api.d.ts +57 -34
  24. package/dist/dts/workspace-elements/api/customers-api.d.ts +3 -0
  25. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +29 -16
  26. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +3 -0
  27. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +51 -43
  28. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +474 -441
  29. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +27 -22
  30. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +27 -22
  31. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -16
  32. package/dist/dts/workspace-elements/api/external-events-api.d.ts +7 -0
  33. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +144 -124
  34. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +250 -118
  35. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +122 -98
  36. package/dist/dts/workspace-elements/api/flows-api.d.ts +965 -826
  37. package/dist/dts/workspace-elements/api/integrations-api.d.ts +12 -14
  38. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +434 -431
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +5 -5
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -2
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +18 -15
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +3 -0
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -0
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +3 -0
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -0
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +5 -8
  47. package/dist/dts/workspace-elements/base/customers/index.d.ts +3 -0
  48. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +5 -2
  49. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -0
  50. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +9 -6
  51. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
  52. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +2 -2
  54. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -2
  55. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +8 -5
  56. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
  57. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +26 -26
  58. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -12
  59. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +4 -4
  60. package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
  61. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
  62. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  63. package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -0
  64. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +163 -1
  65. package/dist/dts/workspace-elements/types.d.ts +118 -0
  66. package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
  67. package/dist/{index.d.ts → index.browser.d.mts} +17282 -16311
  68. package/dist/{index.module.d.mts → index.browser.d.ts} +17282 -16311
  69. package/dist/{index.js → index.browser.js} +228 -255
  70. package/dist/index.browser.js.map +1 -0
  71. package/dist/{index.module.mjs → index.browser.mjs} +218 -250
  72. package/dist/index.browser.mjs.map +1 -0
  73. package/dist/index.node.d.mts +28306 -0
  74. package/dist/index.node.d.ts +28306 -0
  75. package/dist/index.node.js +13329 -0
  76. package/dist/index.node.js.map +1 -0
  77. package/dist/index.node.mjs +12853 -0
  78. package/dist/index.node.mjs.map +1 -0
  79. package/package.json +38 -15
  80. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  81. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -102
  82. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -129
  83. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -241
  84. package/dist/index.js.map +0 -1
  85. package/dist/index.module.mjs.map +0 -1
@@ -1,229 +1,606 @@
1
1
  import { z } from 'zod';
2
2
  import { ConnectionSelector } from './connections-api';
3
3
  import { ElementInstanceSelector, IntegrationSpecificElementSelector } from '../../accessors/base-accessors';
4
- import { DataSchema } from '../../data-schema';
5
- export declare const ListFlowsForIntegrationQuery: z.ZodObject<{
6
- universalFlowId: z.ZodOptional<z.ZodString>;
7
- } & {
8
- search: z.ZodOptional<z.ZodString>;
9
- } & {
10
- limit: z.ZodOptional<z.ZodNumber>;
11
- cursor: z.ZodOptional<z.ZodString>;
12
- } & {
13
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
14
- }, "strip", z.ZodTypeAny, {
15
- search?: string | undefined;
16
- includeArchived?: boolean | undefined;
17
- limit?: number | undefined;
18
- cursor?: string | undefined;
19
- universalFlowId?: string | undefined;
20
- }, {
21
- search?: string | undefined;
22
- includeArchived?: unknown;
23
- limit?: number | undefined;
24
- cursor?: string | undefined;
25
- universalFlowId?: string | undefined;
26
- }>;
27
- export type ListFlowsForIntegrationQuery = z.infer<typeof ListFlowsForIntegrationQuery>;
28
- export declare const FindFlowsQuery: z.ZodObject<{
29
- universalFlowId: z.ZodOptional<z.ZodString>;
30
- } & {
31
- search: z.ZodOptional<z.ZodString>;
32
- } & {
33
- limit: z.ZodOptional<z.ZodNumber>;
34
- cursor: z.ZodOptional<z.ZodString>;
35
- } & {
36
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
37
- } & {
38
- integrationId: z.ZodOptional<z.ZodString>;
39
- }, "strip", z.ZodTypeAny, {
40
- search?: string | undefined;
41
- includeArchived?: boolean | undefined;
42
- limit?: number | undefined;
43
- cursor?: string | undefined;
44
- integrationId?: string | undefined;
45
- universalFlowId?: string | undefined;
46
- }, {
47
- search?: string | undefined;
48
- includeArchived?: unknown;
49
- limit?: number | undefined;
50
- cursor?: string | undefined;
51
- integrationId?: string | undefined;
52
- universalFlowId?: string | undefined;
53
- }>;
54
- export type FindFlowsQuery = z.infer<typeof FindFlowsQuery>;
55
- export declare const CreateFlowNodeRequest: z.ZodObject<{
56
- type: z.ZodString;
57
- config: z.ZodOptional<z.ZodAny>;
58
- ui: z.ZodOptional<z.ZodAny>;
59
- links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
60
- key?: string | undefined;
61
- filter?: any;
62
- name?: string | undefined;
63
- }, z.ZodTypeDef, {
64
- key?: string | undefined;
65
- filter?: any;
66
- name?: string | undefined;
67
- }>>, "many">>;
68
- }, "strip", z.ZodTypeAny, {
69
- type: string;
70
- config?: any;
71
- ui?: any;
72
- links?: {
73
- key?: string | undefined;
74
- filter?: any;
75
- name?: string | undefined;
76
- }[] | undefined;
77
- }, {
78
- type: string;
79
- config?: any;
80
- ui?: any;
81
- links?: {
82
- key?: string | undefined;
83
- filter?: any;
84
- name?: string | undefined;
85
- }[] | undefined;
86
- }>;
87
- export type CreateFlowNodeRequest = z.infer<typeof CreateFlowNodeRequest>;
88
- export declare const CreateFlowRequest: z.ZodObject<{
89
- key: z.ZodString;
90
- name: z.ZodString;
4
+ export declare const FlowApiResponse: z.ZodObject<{
5
+ id: z.ZodString;
6
+ key: z.ZodOptional<z.ZodString>;
7
+ uuid: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
91
10
  integrationId: z.ZodOptional<z.ZodString>;
11
+ universalFlowId: z.ZodOptional<z.ZodString>;
12
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
92
13
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
93
- type: z.ZodString;
14
+ type: z.ZodOptional<z.ZodString>;
15
+ version: z.ZodOptional<z.ZodNumber>;
16
+ name: z.ZodOptional<z.ZodString>;
17
+ description: z.ZodOptional<z.ZodString>;
94
18
  config: z.ZodOptional<z.ZodAny>;
19
+ concurrency: z.ZodOptional<z.ZodNumber>;
20
+ onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
95
21
  ui: z.ZodOptional<z.ZodAny>;
96
- links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
22
+ inputSchema: z.ZodOptional<z.ZodAny>;
23
+ outputSchema: z.ZodOptional<z.ZodAny>;
24
+ outputExample: z.ZodOptional<z.ZodAny>;
25
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
+ key: z.ZodOptional<z.ZodString>;
27
+ filter: z.ZodOptional<z.ZodAny>;
28
+ name: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
97
30
  key?: string | undefined;
98
31
  filter?: any;
99
32
  name?: string | undefined;
100
- }, z.ZodTypeDef, {
33
+ }, {
101
34
  key?: string | undefined;
102
35
  filter?: any;
103
36
  name?: string | undefined;
104
- }>>, "many">>;
37
+ }>, "many">>;
38
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
105
39
  }, "strip", z.ZodTypeAny, {
106
- type: string;
40
+ concurrency?: number | undefined;
41
+ type?: string | undefined;
42
+ name?: string | undefined;
43
+ description?: string | undefined;
44
+ isCustomized?: boolean | undefined;
45
+ inputSchema?: any;
107
46
  config?: any;
47
+ outputSchema?: any;
48
+ version?: number | undefined;
49
+ onError?: "stop" | "continue" | undefined;
108
50
  ui?: any;
51
+ outputExample?: any;
109
52
  links?: {
110
53
  key?: string | undefined;
111
54
  filter?: any;
112
55
  name?: string | undefined;
113
56
  }[] | undefined;
114
57
  }, {
115
- type: string;
58
+ concurrency?: number | undefined;
59
+ type?: string | undefined;
60
+ name?: string | undefined;
61
+ description?: string | undefined;
62
+ isCustomized?: boolean | undefined;
63
+ inputSchema?: any;
116
64
  config?: any;
65
+ outputSchema?: any;
66
+ version?: number | undefined;
67
+ onError?: "stop" | "continue" | undefined;
117
68
  ui?: any;
69
+ outputExample?: any;
118
70
  links?: {
119
71
  key?: string | undefined;
120
72
  filter?: any;
121
73
  name?: string | undefined;
122
74
  }[] | undefined;
123
75
  }>>>;
124
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
125
76
  autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
126
- }, "strip", z.ZodTypeAny, {
127
- key: string;
128
- name: string;
129
- integrationId?: string | undefined;
130
- parametersSchema?: DataSchema | undefined;
131
- nodes?: Record<string, {
132
- type: string;
133
- config?: any;
134
- ui?: any;
135
- links?: {
136
- key?: string | undefined;
137
- filter?: any;
138
- name?: string | undefined;
139
- }[] | undefined;
140
- }> | undefined;
141
- autoCreateInstances?: boolean | undefined;
142
- }, {
143
- key: string;
144
- name: string;
145
- integrationId?: string | undefined;
146
- parametersSchema?: DataSchema | undefined;
147
- nodes?: Record<string, {
148
- type: string;
149
- config?: any;
150
- ui?: any;
151
- links?: {
152
- key?: string | undefined;
153
- filter?: any;
154
- name?: string | undefined;
155
- }[] | undefined;
156
- }> | undefined;
157
- autoCreateInstances?: boolean | undefined;
158
- }>;
159
- export type CreateFlowRequest = z.infer<typeof CreateFlowRequest>;
160
- export declare const UpdateFlowRequest: z.ZodObject<{
161
- key: z.ZodString;
77
+ } & {
162
78
  name: z.ZodString;
163
- integrationId: z.ZodOptional<z.ZodString>;
164
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
165
- type: z.ZodString;
166
- config: z.ZodOptional<z.ZodAny>;
167
- ui: z.ZodOptional<z.ZodAny>;
168
- links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
169
- key?: string | undefined;
170
- filter?: any;
171
- name?: string | undefined;
172
- }, z.ZodTypeDef, {
173
- key?: string | undefined;
174
- filter?: any;
175
- name?: string | undefined;
176
- }>>, "many">>;
79
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
80
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
81
+ revision: z.ZodOptional<z.ZodString>;
82
+ createdAt: z.ZodOptional<z.ZodString>;
83
+ updatedAt: z.ZodOptional<z.ZodString>;
84
+ archivedAt: z.ZodOptional<z.ZodString>;
85
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
86
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
87
+ universalFlowRevision: z.ZodOptional<z.ZodString>;
88
+ } & {
89
+ integration: z.ZodOptional<z.ZodObject<{
90
+ id: z.ZodString;
91
+ key: z.ZodOptional<z.ZodString>;
92
+ uuid: z.ZodOptional<z.ZodString>;
93
+ description: z.ZodOptional<z.ZodString>;
94
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
95
+ name: z.ZodString;
96
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
97
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
98
+ revision: z.ZodOptional<z.ZodString>;
99
+ createdAt: z.ZodOptional<z.ZodString>;
100
+ updatedAt: z.ZodOptional<z.ZodString>;
101
+ } & {
102
+ logoUri: z.ZodString;
103
+ connectorId: z.ZodOptional<z.ZodString>;
104
+ connectorVersion: z.ZodOptional<z.ZodString>;
105
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
106
+ parameters: z.ZodOptional<z.ZodAny>;
107
+ archivedAt: z.ZodOptional<z.ZodString>;
108
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
109
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
110
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
111
+ operationsCount: z.ZodOptional<z.ZodNumber>;
112
+ hasData: z.ZodOptional<z.ZodBoolean>;
113
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
114
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
115
+ eventsCount: z.ZodOptional<z.ZodNumber>;
116
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
117
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
118
+ isTest: z.ZodOptional<z.ZodBoolean>;
119
+ appUuid: z.ZodOptional<z.ZodString>;
120
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
121
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
177
122
  }, "strip", z.ZodTypeAny, {
178
- type: string;
179
- config?: any;
180
- ui?: any;
181
- links?: {
182
- key?: string | undefined;
183
- filter?: any;
184
- name?: string | undefined;
185
- }[] | undefined;
123
+ id: string;
124
+ name: string;
125
+ logoUri: string;
126
+ key?: string | undefined;
127
+ uuid?: string | undefined;
128
+ description?: string | undefined;
129
+ meta?: Record<string, any> | undefined;
130
+ state?: import("..").WorkspaceElementState | undefined;
131
+ errors?: import("../..").ErrorDataSchema[] | undefined;
132
+ revision?: string | undefined;
133
+ createdAt?: string | undefined;
134
+ updatedAt?: string | undefined;
135
+ archivedAt?: string | undefined;
136
+ isDeactivated?: boolean | undefined;
137
+ parameters?: any;
138
+ connectorId?: string | undefined;
139
+ connectorVersion?: string | undefined;
140
+ oAuthCallbackUri?: string | undefined;
141
+ hasMissingParameters?: boolean | undefined;
142
+ hasDocumentation?: boolean | undefined;
143
+ hasOperations?: boolean | undefined;
144
+ operationsCount?: number | undefined;
145
+ hasData?: boolean | undefined;
146
+ dataCollectionsCount?: number | undefined;
147
+ hasEvents?: boolean | undefined;
148
+ eventsCount?: number | undefined;
149
+ hasGlobalWebhooks?: boolean | undefined;
150
+ hasUdm?: boolean | undefined;
151
+ isTest?: boolean | undefined;
152
+ appUuid?: string | undefined;
153
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
186
154
  }, {
187
- type: string;
188
- config?: any;
189
- ui?: any;
190
- links?: {
191
- key?: string | undefined;
192
- filter?: any;
193
- name?: string | undefined;
194
- }[] | undefined;
195
- }>>>;
196
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
197
- autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
198
- } & {
199
- archivedAt: z.ZodOptional<z.ZodString>;
155
+ id: string;
156
+ name: string;
157
+ logoUri: string;
158
+ key?: string | undefined;
159
+ uuid?: string | undefined;
160
+ description?: string | undefined;
161
+ meta?: Record<string, any> | undefined;
162
+ state?: import("..").WorkspaceElementState | undefined;
163
+ errors?: import("../..").ErrorDataSchema[] | undefined;
164
+ revision?: string | undefined;
165
+ createdAt?: string | undefined;
166
+ updatedAt?: string | undefined;
167
+ archivedAt?: string | undefined;
168
+ isDeactivated?: boolean | undefined;
169
+ parameters?: any;
170
+ connectorId?: string | undefined;
171
+ connectorVersion?: string | undefined;
172
+ oAuthCallbackUri?: string | undefined;
173
+ hasMissingParameters?: boolean | undefined;
174
+ hasDocumentation?: boolean | undefined;
175
+ hasOperations?: boolean | undefined;
176
+ operationsCount?: number | undefined;
177
+ hasData?: boolean | undefined;
178
+ dataCollectionsCount?: number | undefined;
179
+ hasEvents?: boolean | undefined;
180
+ eventsCount?: number | undefined;
181
+ hasGlobalWebhooks?: boolean | undefined;
182
+ hasUdm?: boolean | undefined;
183
+ isTest?: boolean | undefined;
184
+ appUuid?: string | undefined;
185
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
186
+ }>>;
187
+ appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ element: z.ZodObject<{
189
+ id: z.ZodString;
190
+ integrationId: z.ZodOptional<z.ZodString>;
191
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
192
+ universalFlowId: z.ZodOptional<z.ZodString>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ id: string;
195
+ integrationId?: string | undefined;
196
+ isCustomized?: boolean | undefined;
197
+ universalFlowId?: string | undefined;
198
+ }, {
199
+ id: string;
200
+ integrationId?: string | undefined;
201
+ isCustomized?: boolean | undefined;
202
+ universalFlowId?: string | undefined;
203
+ }>;
204
+ integration: z.ZodObject<{
205
+ id: z.ZodString;
206
+ key: z.ZodOptional<z.ZodString>;
207
+ uuid: z.ZodOptional<z.ZodString>;
208
+ description: z.ZodOptional<z.ZodString>;
209
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
210
+ name: z.ZodString;
211
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
212
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
213
+ revision: z.ZodOptional<z.ZodString>;
214
+ createdAt: z.ZodOptional<z.ZodString>;
215
+ updatedAt: z.ZodOptional<z.ZodString>;
216
+ } & {
217
+ logoUri: z.ZodString;
218
+ connectorId: z.ZodOptional<z.ZodString>;
219
+ connectorVersion: z.ZodOptional<z.ZodString>;
220
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
221
+ parameters: z.ZodOptional<z.ZodAny>;
222
+ archivedAt: z.ZodOptional<z.ZodString>;
223
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
224
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
225
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
226
+ operationsCount: z.ZodOptional<z.ZodNumber>;
227
+ hasData: z.ZodOptional<z.ZodBoolean>;
228
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
229
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
230
+ eventsCount: z.ZodOptional<z.ZodNumber>;
231
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
232
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
233
+ isTest: z.ZodOptional<z.ZodBoolean>;
234
+ appUuid: z.ZodOptional<z.ZodString>;
235
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
236
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ id: string;
239
+ name: string;
240
+ logoUri: string;
241
+ key?: string | undefined;
242
+ uuid?: string | undefined;
243
+ description?: string | undefined;
244
+ meta?: Record<string, any> | undefined;
245
+ state?: import("..").WorkspaceElementState | undefined;
246
+ errors?: import("../..").ErrorDataSchema[] | undefined;
247
+ revision?: string | undefined;
248
+ createdAt?: string | undefined;
249
+ updatedAt?: string | undefined;
250
+ archivedAt?: string | undefined;
251
+ isDeactivated?: boolean | undefined;
252
+ parameters?: any;
253
+ connectorId?: string | undefined;
254
+ connectorVersion?: string | undefined;
255
+ oAuthCallbackUri?: string | undefined;
256
+ hasMissingParameters?: boolean | undefined;
257
+ hasDocumentation?: boolean | undefined;
258
+ hasOperations?: boolean | undefined;
259
+ operationsCount?: number | undefined;
260
+ hasData?: boolean | undefined;
261
+ dataCollectionsCount?: number | undefined;
262
+ hasEvents?: boolean | undefined;
263
+ eventsCount?: number | undefined;
264
+ hasGlobalWebhooks?: boolean | undefined;
265
+ hasUdm?: boolean | undefined;
266
+ isTest?: boolean | undefined;
267
+ appUuid?: string | undefined;
268
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
269
+ }, {
270
+ id: string;
271
+ name: string;
272
+ logoUri: string;
273
+ key?: string | undefined;
274
+ uuid?: string | undefined;
275
+ description?: string | undefined;
276
+ meta?: Record<string, any> | undefined;
277
+ state?: import("..").WorkspaceElementState | undefined;
278
+ errors?: import("../..").ErrorDataSchema[] | undefined;
279
+ revision?: string | undefined;
280
+ createdAt?: string | undefined;
281
+ updatedAt?: string | undefined;
282
+ archivedAt?: string | undefined;
283
+ isDeactivated?: boolean | undefined;
284
+ parameters?: any;
285
+ connectorId?: string | undefined;
286
+ connectorVersion?: string | undefined;
287
+ oAuthCallbackUri?: string | undefined;
288
+ hasMissingParameters?: boolean | undefined;
289
+ hasDocumentation?: boolean | undefined;
290
+ hasOperations?: boolean | undefined;
291
+ operationsCount?: number | undefined;
292
+ hasData?: boolean | undefined;
293
+ dataCollectionsCount?: number | undefined;
294
+ hasEvents?: boolean | undefined;
295
+ eventsCount?: number | undefined;
296
+ hasGlobalWebhooks?: boolean | undefined;
297
+ hasUdm?: boolean | undefined;
298
+ isTest?: boolean | undefined;
299
+ appUuid?: string | undefined;
300
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
301
+ }>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ integration: {
304
+ id: string;
305
+ name: string;
306
+ logoUri: string;
307
+ key?: string | undefined;
308
+ uuid?: string | undefined;
309
+ description?: string | undefined;
310
+ meta?: Record<string, any> | undefined;
311
+ state?: import("..").WorkspaceElementState | undefined;
312
+ errors?: import("../..").ErrorDataSchema[] | undefined;
313
+ revision?: string | undefined;
314
+ createdAt?: string | undefined;
315
+ updatedAt?: string | undefined;
316
+ archivedAt?: string | undefined;
317
+ isDeactivated?: boolean | undefined;
318
+ parameters?: any;
319
+ connectorId?: string | undefined;
320
+ connectorVersion?: string | undefined;
321
+ oAuthCallbackUri?: string | undefined;
322
+ hasMissingParameters?: boolean | undefined;
323
+ hasDocumentation?: boolean | undefined;
324
+ hasOperations?: boolean | undefined;
325
+ operationsCount?: number | undefined;
326
+ hasData?: boolean | undefined;
327
+ dataCollectionsCount?: number | undefined;
328
+ hasEvents?: boolean | undefined;
329
+ eventsCount?: number | undefined;
330
+ hasGlobalWebhooks?: boolean | undefined;
331
+ hasUdm?: boolean | undefined;
332
+ isTest?: boolean | undefined;
333
+ appUuid?: string | undefined;
334
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
335
+ };
336
+ element: {
337
+ id: string;
338
+ integrationId?: string | undefined;
339
+ isCustomized?: boolean | undefined;
340
+ universalFlowId?: string | undefined;
341
+ };
342
+ }, {
343
+ integration: {
344
+ id: string;
345
+ name: string;
346
+ logoUri: string;
347
+ key?: string | undefined;
348
+ uuid?: string | undefined;
349
+ description?: string | undefined;
350
+ meta?: Record<string, any> | undefined;
351
+ state?: import("..").WorkspaceElementState | undefined;
352
+ errors?: import("../..").ErrorDataSchema[] | undefined;
353
+ revision?: string | undefined;
354
+ createdAt?: string | undefined;
355
+ updatedAt?: string | undefined;
356
+ archivedAt?: string | undefined;
357
+ isDeactivated?: boolean | undefined;
358
+ parameters?: any;
359
+ connectorId?: string | undefined;
360
+ connectorVersion?: string | undefined;
361
+ oAuthCallbackUri?: string | undefined;
362
+ hasMissingParameters?: boolean | undefined;
363
+ hasDocumentation?: boolean | undefined;
364
+ hasOperations?: boolean | undefined;
365
+ operationsCount?: number | undefined;
366
+ hasData?: boolean | undefined;
367
+ dataCollectionsCount?: number | undefined;
368
+ hasEvents?: boolean | undefined;
369
+ eventsCount?: number | undefined;
370
+ hasGlobalWebhooks?: boolean | undefined;
371
+ hasUdm?: boolean | undefined;
372
+ isTest?: boolean | undefined;
373
+ appUuid?: string | undefined;
374
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
375
+ };
376
+ element: {
377
+ id: string;
378
+ integrationId?: string | undefined;
379
+ isCustomized?: boolean | undefined;
380
+ universalFlowId?: string | undefined;
381
+ };
382
+ }>, "many">>;
383
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
200
384
  }, "strip", z.ZodTypeAny, {
201
- key: string;
385
+ id: string;
386
+ name: string;
387
+ key?: string | undefined;
388
+ integration?: {
389
+ id: string;
390
+ name: string;
391
+ logoUri: string;
392
+ key?: string | undefined;
393
+ uuid?: string | undefined;
394
+ description?: string | undefined;
395
+ meta?: Record<string, any> | undefined;
396
+ state?: import("..").WorkspaceElementState | undefined;
397
+ errors?: import("../..").ErrorDataSchema[] | undefined;
398
+ revision?: string | undefined;
399
+ createdAt?: string | undefined;
400
+ updatedAt?: string | undefined;
401
+ archivedAt?: string | undefined;
402
+ isDeactivated?: boolean | undefined;
403
+ parameters?: any;
404
+ connectorId?: string | undefined;
405
+ connectorVersion?: string | undefined;
406
+ oAuthCallbackUri?: string | undefined;
407
+ hasMissingParameters?: boolean | undefined;
408
+ hasDocumentation?: boolean | undefined;
409
+ hasOperations?: boolean | undefined;
410
+ operationsCount?: number | undefined;
411
+ hasData?: boolean | undefined;
412
+ dataCollectionsCount?: number | undefined;
413
+ hasEvents?: boolean | undefined;
414
+ eventsCount?: number | undefined;
415
+ hasGlobalWebhooks?: boolean | undefined;
416
+ hasUdm?: boolean | undefined;
417
+ isTest?: boolean | undefined;
418
+ appUuid?: string | undefined;
419
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
420
+ } | undefined;
421
+ uuid?: string | undefined;
422
+ description?: string | undefined;
423
+ meta?: Record<string, any> | undefined;
424
+ state?: import("..").WorkspaceElementState | undefined;
425
+ errors?: import("../..").ErrorDataSchema[] | undefined;
426
+ revision?: string | undefined;
427
+ createdAt?: string | undefined;
428
+ updatedAt?: string | undefined;
429
+ archivedAt?: string | undefined;
430
+ isDeactivated?: boolean | undefined;
431
+ integrationId?: string | undefined;
432
+ isCustomized?: boolean | undefined;
433
+ parametersSchema?: import("../..").DataSchema | undefined;
434
+ appliedToIntegrations?: {
435
+ integration: {
436
+ id: string;
437
+ name: string;
438
+ logoUri: string;
439
+ key?: string | undefined;
440
+ uuid?: string | undefined;
441
+ description?: string | undefined;
442
+ meta?: Record<string, any> | undefined;
443
+ state?: import("..").WorkspaceElementState | undefined;
444
+ errors?: import("../..").ErrorDataSchema[] | undefined;
445
+ revision?: string | undefined;
446
+ createdAt?: string | undefined;
447
+ updatedAt?: string | undefined;
448
+ archivedAt?: string | undefined;
449
+ isDeactivated?: boolean | undefined;
450
+ parameters?: any;
451
+ connectorId?: string | undefined;
452
+ connectorVersion?: string | undefined;
453
+ oAuthCallbackUri?: string | undefined;
454
+ hasMissingParameters?: boolean | undefined;
455
+ hasDocumentation?: boolean | undefined;
456
+ hasOperations?: boolean | undefined;
457
+ operationsCount?: number | undefined;
458
+ hasData?: boolean | undefined;
459
+ dataCollectionsCount?: number | undefined;
460
+ hasEvents?: boolean | undefined;
461
+ eventsCount?: number | undefined;
462
+ hasGlobalWebhooks?: boolean | undefined;
463
+ hasUdm?: boolean | undefined;
464
+ isTest?: boolean | undefined;
465
+ appUuid?: string | undefined;
466
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
467
+ };
468
+ element: {
469
+ id: string;
470
+ integrationId?: string | undefined;
471
+ isCustomized?: boolean | undefined;
472
+ universalFlowId?: string | undefined;
473
+ };
474
+ }[] | undefined;
475
+ dependencies?: any[] | undefined;
476
+ universalFlowId?: string | undefined;
477
+ nodes?: Record<string, {
478
+ concurrency?: number | undefined;
479
+ type?: string | undefined;
480
+ name?: string | undefined;
481
+ description?: string | undefined;
482
+ isCustomized?: boolean | undefined;
483
+ inputSchema?: any;
484
+ config?: any;
485
+ outputSchema?: any;
486
+ version?: number | undefined;
487
+ onError?: "stop" | "continue" | undefined;
488
+ ui?: any;
489
+ outputExample?: any;
490
+ links?: {
491
+ key?: string | undefined;
492
+ filter?: any;
493
+ name?: string | undefined;
494
+ }[] | undefined;
495
+ }> | undefined;
496
+ autoCreateInstances?: boolean | undefined;
497
+ universalFlowRevision?: string | undefined;
498
+ }, {
499
+ id: string;
202
500
  name: string;
501
+ key?: string | undefined;
502
+ integration?: {
503
+ id: string;
504
+ name: string;
505
+ logoUri: string;
506
+ key?: string | undefined;
507
+ uuid?: string | undefined;
508
+ description?: string | undefined;
509
+ meta?: Record<string, any> | undefined;
510
+ state?: import("..").WorkspaceElementState | undefined;
511
+ errors?: import("../..").ErrorDataSchema[] | undefined;
512
+ revision?: string | undefined;
513
+ createdAt?: string | undefined;
514
+ updatedAt?: string | undefined;
515
+ archivedAt?: string | undefined;
516
+ isDeactivated?: boolean | undefined;
517
+ parameters?: any;
518
+ connectorId?: string | undefined;
519
+ connectorVersion?: string | undefined;
520
+ oAuthCallbackUri?: string | undefined;
521
+ hasMissingParameters?: boolean | undefined;
522
+ hasDocumentation?: boolean | undefined;
523
+ hasOperations?: boolean | undefined;
524
+ operationsCount?: number | undefined;
525
+ hasData?: boolean | undefined;
526
+ dataCollectionsCount?: number | undefined;
527
+ hasEvents?: boolean | undefined;
528
+ eventsCount?: number | undefined;
529
+ hasGlobalWebhooks?: boolean | undefined;
530
+ hasUdm?: boolean | undefined;
531
+ isTest?: boolean | undefined;
532
+ appUuid?: string | undefined;
533
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
534
+ } | undefined;
535
+ uuid?: string | undefined;
536
+ description?: string | undefined;
537
+ meta?: Record<string, any> | undefined;
538
+ state?: import("..").WorkspaceElementState | undefined;
539
+ errors?: import("../..").ErrorDataSchema[] | undefined;
540
+ revision?: string | undefined;
541
+ createdAt?: string | undefined;
542
+ updatedAt?: string | undefined;
203
543
  archivedAt?: string | undefined;
544
+ isDeactivated?: boolean | undefined;
204
545
  integrationId?: string | undefined;
205
- parametersSchema?: DataSchema | undefined;
206
- nodes?: Record<string, {
207
- type: string;
208
- config?: any;
209
- ui?: any;
210
- links?: {
546
+ isCustomized?: boolean | undefined;
547
+ parametersSchema?: import("../..").DataSchema | undefined;
548
+ appliedToIntegrations?: {
549
+ integration: {
550
+ id: string;
551
+ name: string;
552
+ logoUri: string;
211
553
  key?: string | undefined;
212
- filter?: any;
213
- name?: string | undefined;
214
- }[] | undefined;
215
- }> | undefined;
216
- autoCreateInstances?: boolean | undefined;
217
- }, {
218
- key: string;
219
- name: string;
220
- archivedAt?: string | undefined;
221
- integrationId?: string | undefined;
222
- parametersSchema?: DataSchema | undefined;
554
+ uuid?: string | undefined;
555
+ description?: string | undefined;
556
+ meta?: Record<string, any> | undefined;
557
+ state?: import("..").WorkspaceElementState | undefined;
558
+ errors?: import("../..").ErrorDataSchema[] | undefined;
559
+ revision?: string | undefined;
560
+ createdAt?: string | undefined;
561
+ updatedAt?: string | undefined;
562
+ archivedAt?: string | undefined;
563
+ isDeactivated?: boolean | undefined;
564
+ parameters?: any;
565
+ connectorId?: string | undefined;
566
+ connectorVersion?: string | undefined;
567
+ oAuthCallbackUri?: string | undefined;
568
+ hasMissingParameters?: boolean | undefined;
569
+ hasDocumentation?: boolean | undefined;
570
+ hasOperations?: boolean | undefined;
571
+ operationsCount?: number | undefined;
572
+ hasData?: boolean | undefined;
573
+ dataCollectionsCount?: number | undefined;
574
+ hasEvents?: boolean | undefined;
575
+ eventsCount?: number | undefined;
576
+ hasGlobalWebhooks?: boolean | undefined;
577
+ hasUdm?: boolean | undefined;
578
+ isTest?: boolean | undefined;
579
+ appUuid?: string | undefined;
580
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
581
+ };
582
+ element: {
583
+ id: string;
584
+ integrationId?: string | undefined;
585
+ isCustomized?: boolean | undefined;
586
+ universalFlowId?: string | undefined;
587
+ };
588
+ }[] | undefined;
589
+ dependencies?: any[] | undefined;
590
+ universalFlowId?: string | undefined;
223
591
  nodes?: Record<string, {
224
- type: string;
592
+ concurrency?: number | undefined;
593
+ type?: string | undefined;
594
+ name?: string | undefined;
595
+ description?: string | undefined;
596
+ isCustomized?: boolean | undefined;
597
+ inputSchema?: any;
225
598
  config?: any;
599
+ outputSchema?: any;
600
+ version?: number | undefined;
601
+ onError?: "stop" | "continue" | undefined;
226
602
  ui?: any;
603
+ outputExample?: any;
227
604
  links?: {
228
605
  key?: string | undefined;
229
606
  filter?: any;
@@ -231,146 +608,47 @@ export declare const UpdateFlowRequest: z.ZodObject<{
231
608
  }[] | undefined;
232
609
  }> | undefined;
233
610
  autoCreateInstances?: boolean | undefined;
611
+ universalFlowRevision?: string | undefined;
234
612
  }>;
235
- export type UpdateFlowRequest = z.infer<typeof UpdateFlowRequest>;
236
- export interface FlowSelector extends IntegrationSpecificElementSelector {
237
- autoCreate?: boolean;
238
- }
239
- export declare const ListFlowInstancesForConnectionQuery: z.ZodObject<{
240
- flowId: z.ZodOptional<z.ZodString>;
241
- flowKey: z.ZodOptional<z.ZodString>;
242
- enabled: z.ZodOptional<z.ZodBoolean>;
243
- } & {
244
- search: z.ZodOptional<z.ZodString>;
245
- } & {
246
- limit: z.ZodOptional<z.ZodNumber>;
247
- cursor: z.ZodOptional<z.ZodString>;
248
- } & {
249
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
250
- } & {
251
- userId: z.ZodOptional<z.ZodString>;
252
- instanceKey: z.ZodOptional<z.ZodString>;
253
- }, "strip", z.ZodTypeAny, {
254
- search?: string | undefined;
255
- includeArchived?: boolean | undefined;
256
- limit?: number | undefined;
257
- cursor?: string | undefined;
258
- userId?: string | undefined;
259
- instanceKey?: string | undefined;
260
- flowId?: string | undefined;
261
- enabled?: boolean | undefined;
262
- flowKey?: string | undefined;
263
- }, {
264
- search?: string | undefined;
265
- includeArchived?: unknown;
266
- limit?: number | undefined;
267
- cursor?: string | undefined;
268
- userId?: string | undefined;
269
- instanceKey?: string | undefined;
270
- flowId?: string | undefined;
271
- enabled?: boolean | undefined;
272
- flowKey?: string | undefined;
273
- }>;
274
- export type ListFlowInstancesForConnectionQuery = z.infer<typeof ListFlowInstancesForConnectionQuery>;
275
- export declare const FindFlowInstancesQuery: z.ZodObject<{
276
- flowId: z.ZodOptional<z.ZodString>;
277
- flowKey: z.ZodOptional<z.ZodString>;
278
- enabled: z.ZodOptional<z.ZodBoolean>;
279
- } & {
280
- search: z.ZodOptional<z.ZodString>;
281
- } & {
613
+ export type FlowApiResponse = z.infer<typeof FlowApiResponse>;
614
+ export type Flow = FlowApiResponse;
615
+ export declare const FindFlowsQuery: z.ZodObject<{
282
616
  limit: z.ZodOptional<z.ZodNumber>;
283
617
  cursor: z.ZodOptional<z.ZodString>;
284
618
  } & {
285
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
286
- } & {
287
- userId: z.ZodOptional<z.ZodString>;
288
- instanceKey: z.ZodOptional<z.ZodString>;
289
- } & {
290
- connectionId: z.ZodOptional<z.ZodString>;
291
619
  integrationId: z.ZodOptional<z.ZodString>;
292
620
  integrationKey: z.ZodOptional<z.ZodString>;
621
+ universalFlowId: z.ZodOptional<z.ZodString>;
622
+ search: z.ZodOptional<z.ZodString>;
623
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
293
624
  }, "strip", z.ZodTypeAny, {
294
625
  search?: string | undefined;
626
+ integrationId?: string | undefined;
295
627
  includeArchived?: boolean | undefined;
296
628
  limit?: number | undefined;
297
629
  cursor?: string | undefined;
298
- userId?: string | undefined;
299
- instanceKey?: string | undefined;
300
- connectionId?: string | undefined;
301
- integrationId?: string | undefined;
302
630
  integrationKey?: string | undefined;
303
- flowId?: string | undefined;
304
- enabled?: boolean | undefined;
305
- flowKey?: string | undefined;
631
+ universalFlowId?: string | undefined;
306
632
  }, {
307
633
  search?: string | undefined;
634
+ integrationId?: string | undefined;
308
635
  includeArchived?: unknown;
309
636
  limit?: number | undefined;
310
637
  cursor?: string | undefined;
311
- userId?: string | undefined;
312
- instanceKey?: string | undefined;
313
- connectionId?: string | undefined;
314
- integrationId?: string | undefined;
315
638
  integrationKey?: string | undefined;
316
- flowId?: string | undefined;
317
- enabled?: boolean | undefined;
318
- flowKey?: string | undefined;
319
- }>;
320
- export type FindFlowInstancesQuery = z.infer<typeof FindFlowInstancesQuery>;
321
- export interface FlowInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
322
- flowId?: string;
323
- flowKey?: string;
324
- instanceKey?: string;
325
- autoUpdate?: boolean;
326
- }
327
- export declare const ResetFlowInstanceOptions: z.ZodObject<{
328
- name: z.ZodOptional<z.ZodBoolean>;
329
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
330
- allNodes: z.ZodOptional<z.ZodBoolean>;
331
- }, "strip", z.ZodTypeAny, {
332
- name?: boolean | undefined;
333
- nodes?: Record<string, boolean> | undefined;
334
- allNodes?: boolean | undefined;
335
- }, {
336
- name?: boolean | undefined;
337
- nodes?: Record<string, boolean> | undefined;
338
- allNodes?: boolean | undefined;
339
- }>;
340
- export type ResetFlowInstanceOptions = z.infer<typeof ResetFlowInstanceOptions>;
341
- export declare const RunFlowOptions: z.ZodObject<{
342
- nodeKey: z.ZodOptional<z.ZodString>;
343
- input: z.ZodOptional<z.ZodAny>;
344
- returnImmediately: z.ZodOptional<z.ZodBoolean>;
345
- onUpdate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
346
- }, "strip", z.ZodTypeAny, {
347
- input?: any;
348
- nodeKey?: string | undefined;
349
- returnImmediately?: boolean | undefined;
350
- onUpdate?: ((...args: unknown[]) => unknown) | undefined;
351
- }, {
352
- input?: any;
353
- nodeKey?: string | undefined;
354
- returnImmediately?: boolean | undefined;
355
- onUpdate?: ((...args: unknown[]) => unknown) | undefined;
639
+ universalFlowId?: string | undefined;
356
640
  }>;
357
- export type RunFlowOptions = z.infer<typeof RunFlowOptions>;
358
- export declare const FlowApiResponse: z.ZodObject<{
359
- id: z.ZodString;
641
+ export type FindFlowsQuery = z.infer<typeof FindFlowsQuery>;
642
+ export declare const CreateFlowRequest: z.ZodObject<{
360
643
  key: z.ZodOptional<z.ZodString>;
644
+ name: z.ZodOptional<z.ZodString>;
361
645
  uuid: z.ZodOptional<z.ZodString>;
362
646
  description: z.ZodOptional<z.ZodString>;
363
- name: z.ZodString;
364
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
365
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
366
- createdAt: z.ZodOptional<z.ZodString>;
367
- updatedAt: z.ZodOptional<z.ZodString>;
368
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
647
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
369
648
  } & {
370
649
  integrationId: z.ZodOptional<z.ZodString>;
371
650
  universalFlowId: z.ZodOptional<z.ZodString>;
372
- universalFlowRevision: z.ZodOptional<z.ZodString>;
373
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
651
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
374
652
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
375
653
  type: z.ZodOptional<z.ZodString>;
376
654
  version: z.ZodOptional<z.ZodNumber>;
@@ -402,9 +680,56 @@ export declare const FlowApiResponse: z.ZodObject<{
402
680
  type?: string | undefined;
403
681
  name?: string | undefined;
404
682
  description?: string | undefined;
683
+ isCustomized?: boolean | undefined;
684
+ inputSchema?: any;
685
+ config?: any;
686
+ outputSchema?: any;
687
+ version?: number | undefined;
688
+ onError?: "stop" | "continue" | undefined;
689
+ ui?: any;
690
+ outputExample?: any;
691
+ links?: {
692
+ key?: string | undefined;
693
+ filter?: any;
694
+ name?: string | undefined;
695
+ }[] | undefined;
696
+ }, {
697
+ concurrency?: number | undefined;
698
+ type?: string | undefined;
699
+ name?: string | undefined;
700
+ description?: string | undefined;
701
+ isCustomized?: boolean | undefined;
702
+ inputSchema?: any;
703
+ config?: any;
704
+ outputSchema?: any;
705
+ version?: number | undefined;
706
+ onError?: "stop" | "continue" | undefined;
707
+ ui?: any;
708
+ outputExample?: any;
709
+ links?: {
710
+ key?: string | undefined;
711
+ filter?: any;
712
+ name?: string | undefined;
713
+ }[] | undefined;
714
+ }>>>;
715
+ autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ key?: string | undefined;
718
+ name?: string | undefined;
719
+ uuid?: string | undefined;
720
+ description?: string | undefined;
721
+ meta?: Record<string, any> | undefined;
722
+ integrationId?: string | undefined;
723
+ parametersSchema?: import("../..").DataSchema | undefined;
724
+ universalFlowId?: string | undefined;
725
+ nodes?: Record<string, {
726
+ concurrency?: number | undefined;
727
+ type?: string | undefined;
728
+ name?: string | undefined;
729
+ description?: string | undefined;
730
+ isCustomized?: boolean | undefined;
405
731
  inputSchema?: any;
406
732
  config?: any;
407
- isCustomized?: boolean | undefined;
408
733
  outputSchema?: any;
409
734
  version?: number | undefined;
410
735
  onError?: "stop" | "continue" | undefined;
@@ -415,14 +740,25 @@ export declare const FlowApiResponse: z.ZodObject<{
415
740
  filter?: any;
416
741
  name?: string | undefined;
417
742
  }[] | undefined;
418
- }, {
743
+ }> | undefined;
744
+ autoCreateInstances?: boolean | undefined;
745
+ }, {
746
+ key?: string | undefined;
747
+ name?: string | undefined;
748
+ uuid?: string | undefined;
749
+ description?: string | undefined;
750
+ meta?: Record<string, any> | undefined;
751
+ integrationId?: string | undefined;
752
+ parametersSchema?: import("../..").DataSchema | undefined;
753
+ universalFlowId?: string | undefined;
754
+ nodes?: Record<string, {
419
755
  concurrency?: number | undefined;
420
756
  type?: string | undefined;
421
757
  name?: string | undefined;
422
758
  description?: string | undefined;
759
+ isCustomized?: boolean | undefined;
423
760
  inputSchema?: any;
424
761
  config?: any;
425
- isCustomized?: boolean | undefined;
426
762
  outputSchema?: any;
427
763
  version?: number | undefined;
428
764
  onError?: "stop" | "continue" | undefined;
@@ -433,398 +769,100 @@ export declare const FlowApiResponse: z.ZodObject<{
433
769
  filter?: any;
434
770
  name?: string | undefined;
435
771
  }[] | undefined;
436
- }>>>;
437
- autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
438
- archivedAt: z.ZodOptional<z.ZodString>;
439
- revision: z.ZodString;
440
- customized: z.ZodOptional<z.ZodBoolean>;
441
- } & {
442
- integration: z.ZodOptional<z.ZodObject<{
443
- id: z.ZodString;
444
- key: z.ZodOptional<z.ZodString>;
445
- uuid: z.ZodOptional<z.ZodString>;
772
+ }> | undefined;
773
+ autoCreateInstances?: boolean | undefined;
774
+ }>;
775
+ export type CreateFlowRequest = z.infer<typeof CreateFlowRequest>;
776
+ export declare const UpdateFlowRequest: z.ZodObject<{
777
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
778
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
779
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
780
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
781
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
782
+ integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
783
+ universalFlowId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
784
+ parametersSchema: z.ZodOptional<z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>>;
785
+ nodes: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
786
+ type: z.ZodOptional<z.ZodString>;
787
+ version: z.ZodOptional<z.ZodNumber>;
788
+ name: z.ZodOptional<z.ZodString>;
446
789
  description: z.ZodOptional<z.ZodString>;
447
- name: z.ZodString;
448
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
449
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
450
- revision: z.ZodOptional<z.ZodString>;
451
- createdAt: z.ZodOptional<z.ZodString>;
452
- updatedAt: z.ZodOptional<z.ZodString>;
453
- } & {
454
- logoUri: z.ZodString;
455
- connectorId: z.ZodOptional<z.ZodString>;
456
- connectorVersion: z.ZodOptional<z.ZodString>;
457
- oAuthCallbackUri: z.ZodOptional<z.ZodString>;
458
- parameters: z.ZodOptional<z.ZodAny>;
459
- archivedAt: z.ZodOptional<z.ZodString>;
460
- hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
461
- hasDocumentation: z.ZodOptional<z.ZodBoolean>;
462
- hasOperations: z.ZodOptional<z.ZodBoolean>;
463
- operationsCount: z.ZodOptional<z.ZodNumber>;
464
- hasData: z.ZodOptional<z.ZodBoolean>;
465
- dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
466
- hasEvents: z.ZodOptional<z.ZodBoolean>;
467
- eventsCount: z.ZodOptional<z.ZodNumber>;
468
- hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
469
- hasUdm: z.ZodOptional<z.ZodBoolean>;
470
- isTest: z.ZodOptional<z.ZodBoolean>;
471
- appUuid: z.ZodOptional<z.ZodString>;
472
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
473
- authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
474
- }, "strip", z.ZodTypeAny, {
475
- id: string;
476
- name: string;
477
- logoUri: string;
478
- key?: string | undefined;
479
- uuid?: string | undefined;
480
- description?: string | undefined;
481
- state?: import("..").WorkspaceElementState | undefined;
482
- errors?: import("../..").ErrorDataSchema[] | undefined;
483
- revision?: string | undefined;
484
- createdAt?: string | undefined;
485
- updatedAt?: string | undefined;
486
- archivedAt?: string | undefined;
487
- isDeactivated?: boolean | undefined;
488
- parameters?: any;
489
- connectorId?: string | undefined;
490
- connectorVersion?: string | undefined;
491
- oAuthCallbackUri?: string | undefined;
492
- hasMissingParameters?: boolean | undefined;
493
- hasDocumentation?: boolean | undefined;
494
- hasOperations?: boolean | undefined;
495
- operationsCount?: number | undefined;
496
- hasData?: boolean | undefined;
497
- dataCollectionsCount?: number | undefined;
498
- hasEvents?: boolean | undefined;
499
- eventsCount?: number | undefined;
500
- hasGlobalWebhooks?: boolean | undefined;
501
- hasUdm?: boolean | undefined;
502
- isTest?: boolean | undefined;
503
- appUuid?: string | undefined;
504
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
505
- }, {
506
- id: string;
507
- name: string;
508
- logoUri: string;
509
- key?: string | undefined;
510
- uuid?: string | undefined;
511
- description?: string | undefined;
512
- state?: import("..").WorkspaceElementState | undefined;
513
- errors?: import("../..").ErrorDataSchema[] | undefined;
514
- revision?: string | undefined;
515
- createdAt?: string | undefined;
516
- updatedAt?: string | undefined;
517
- archivedAt?: string | undefined;
518
- isDeactivated?: boolean | undefined;
519
- parameters?: any;
520
- connectorId?: string | undefined;
521
- connectorVersion?: string | undefined;
522
- oAuthCallbackUri?: string | undefined;
523
- hasMissingParameters?: boolean | undefined;
524
- hasDocumentation?: boolean | undefined;
525
- hasOperations?: boolean | undefined;
526
- operationsCount?: number | undefined;
527
- hasData?: boolean | undefined;
528
- dataCollectionsCount?: number | undefined;
529
- hasEvents?: boolean | undefined;
530
- eventsCount?: number | undefined;
531
- hasGlobalWebhooks?: boolean | undefined;
532
- hasUdm?: boolean | undefined;
533
- isTest?: boolean | undefined;
534
- appUuid?: string | undefined;
535
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
536
- }>>;
537
- appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
538
- element: z.ZodObject<{
539
- id: z.ZodString;
540
- integrationId: z.ZodOptional<z.ZodString>;
541
- customized: z.ZodOptional<z.ZodBoolean>;
542
- universalFlowId: z.ZodOptional<z.ZodString>;
543
- }, "strip", z.ZodTypeAny, {
544
- id: string;
545
- integrationId?: string | undefined;
546
- customized?: boolean | undefined;
547
- universalFlowId?: string | undefined;
548
- }, {
549
- id: string;
550
- integrationId?: string | undefined;
551
- customized?: boolean | undefined;
552
- universalFlowId?: string | undefined;
553
- }>;
554
- integration: z.ZodObject<{
555
- id: z.ZodString;
790
+ config: z.ZodOptional<z.ZodAny>;
791
+ concurrency: z.ZodOptional<z.ZodNumber>;
792
+ onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
793
+ ui: z.ZodOptional<z.ZodAny>;
794
+ inputSchema: z.ZodOptional<z.ZodAny>;
795
+ outputSchema: z.ZodOptional<z.ZodAny>;
796
+ outputExample: z.ZodOptional<z.ZodAny>;
797
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
556
798
  key: z.ZodOptional<z.ZodString>;
557
- uuid: z.ZodOptional<z.ZodString>;
558
- description: z.ZodOptional<z.ZodString>;
559
- name: z.ZodString;
560
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
561
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
562
- revision: z.ZodOptional<z.ZodString>;
563
- createdAt: z.ZodOptional<z.ZodString>;
564
- updatedAt: z.ZodOptional<z.ZodString>;
565
- } & {
566
- logoUri: z.ZodString;
567
- connectorId: z.ZodOptional<z.ZodString>;
568
- connectorVersion: z.ZodOptional<z.ZodString>;
569
- oAuthCallbackUri: z.ZodOptional<z.ZodString>;
570
- parameters: z.ZodOptional<z.ZodAny>;
571
- archivedAt: z.ZodOptional<z.ZodString>;
572
- hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
573
- hasDocumentation: z.ZodOptional<z.ZodBoolean>;
574
- hasOperations: z.ZodOptional<z.ZodBoolean>;
575
- operationsCount: z.ZodOptional<z.ZodNumber>;
576
- hasData: z.ZodOptional<z.ZodBoolean>;
577
- dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
578
- hasEvents: z.ZodOptional<z.ZodBoolean>;
579
- eventsCount: z.ZodOptional<z.ZodNumber>;
580
- hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
581
- hasUdm: z.ZodOptional<z.ZodBoolean>;
582
- isTest: z.ZodOptional<z.ZodBoolean>;
583
- appUuid: z.ZodOptional<z.ZodString>;
584
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
585
- authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
799
+ filter: z.ZodOptional<z.ZodAny>;
800
+ name: z.ZodOptional<z.ZodString>;
586
801
  }, "strip", z.ZodTypeAny, {
587
- id: string;
588
- name: string;
589
- logoUri: string;
590
802
  key?: string | undefined;
591
- uuid?: string | undefined;
592
- description?: string | undefined;
593
- state?: import("..").WorkspaceElementState | undefined;
594
- errors?: import("../..").ErrorDataSchema[] | undefined;
595
- revision?: string | undefined;
596
- createdAt?: string | undefined;
597
- updatedAt?: string | undefined;
598
- archivedAt?: string | undefined;
599
- isDeactivated?: boolean | undefined;
600
- parameters?: any;
601
- connectorId?: string | undefined;
602
- connectorVersion?: string | undefined;
603
- oAuthCallbackUri?: string | undefined;
604
- hasMissingParameters?: boolean | undefined;
605
- hasDocumentation?: boolean | undefined;
606
- hasOperations?: boolean | undefined;
607
- operationsCount?: number | undefined;
608
- hasData?: boolean | undefined;
609
- dataCollectionsCount?: number | undefined;
610
- hasEvents?: boolean | undefined;
611
- eventsCount?: number | undefined;
612
- hasGlobalWebhooks?: boolean | undefined;
613
- hasUdm?: boolean | undefined;
614
- isTest?: boolean | undefined;
615
- appUuid?: string | undefined;
616
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
803
+ filter?: any;
804
+ name?: string | undefined;
617
805
  }, {
618
- id: string;
619
- name: string;
620
- logoUri: string;
621
806
  key?: string | undefined;
622
- uuid?: string | undefined;
623
- description?: string | undefined;
624
- state?: import("..").WorkspaceElementState | undefined;
625
- errors?: import("../..").ErrorDataSchema[] | undefined;
626
- revision?: string | undefined;
627
- createdAt?: string | undefined;
628
- updatedAt?: string | undefined;
629
- archivedAt?: string | undefined;
630
- isDeactivated?: boolean | undefined;
631
- parameters?: any;
632
- connectorId?: string | undefined;
633
- connectorVersion?: string | undefined;
634
- oAuthCallbackUri?: string | undefined;
635
- hasMissingParameters?: boolean | undefined;
636
- hasDocumentation?: boolean | undefined;
637
- hasOperations?: boolean | undefined;
638
- operationsCount?: number | undefined;
639
- hasData?: boolean | undefined;
640
- dataCollectionsCount?: number | undefined;
641
- hasEvents?: boolean | undefined;
642
- eventsCount?: number | undefined;
643
- hasGlobalWebhooks?: boolean | undefined;
644
- hasUdm?: boolean | undefined;
645
- isTest?: boolean | undefined;
646
- appUuid?: string | undefined;
647
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
648
- }>;
807
+ filter?: any;
808
+ name?: string | undefined;
809
+ }>, "many">>;
810
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
649
811
  }, "strip", z.ZodTypeAny, {
650
- integration: {
651
- id: string;
652
- name: string;
653
- logoUri: string;
812
+ concurrency?: number | undefined;
813
+ type?: string | undefined;
814
+ name?: string | undefined;
815
+ description?: string | undefined;
816
+ isCustomized?: boolean | undefined;
817
+ inputSchema?: any;
818
+ config?: any;
819
+ outputSchema?: any;
820
+ version?: number | undefined;
821
+ onError?: "stop" | "continue" | undefined;
822
+ ui?: any;
823
+ outputExample?: any;
824
+ links?: {
654
825
  key?: string | undefined;
655
- uuid?: string | undefined;
656
- description?: string | undefined;
657
- state?: import("..").WorkspaceElementState | undefined;
658
- errors?: import("../..").ErrorDataSchema[] | undefined;
659
- revision?: string | undefined;
660
- createdAt?: string | undefined;
661
- updatedAt?: string | undefined;
662
- archivedAt?: string | undefined;
663
- isDeactivated?: boolean | undefined;
664
- parameters?: any;
665
- connectorId?: string | undefined;
666
- connectorVersion?: string | undefined;
667
- oAuthCallbackUri?: string | undefined;
668
- hasMissingParameters?: boolean | undefined;
669
- hasDocumentation?: boolean | undefined;
670
- hasOperations?: boolean | undefined;
671
- operationsCount?: number | undefined;
672
- hasData?: boolean | undefined;
673
- dataCollectionsCount?: number | undefined;
674
- hasEvents?: boolean | undefined;
675
- eventsCount?: number | undefined;
676
- hasGlobalWebhooks?: boolean | undefined;
677
- hasUdm?: boolean | undefined;
678
- isTest?: boolean | undefined;
679
- appUuid?: string | undefined;
680
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
681
- };
682
- element: {
683
- id: string;
684
- integrationId?: string | undefined;
685
- customized?: boolean | undefined;
686
- universalFlowId?: string | undefined;
687
- };
826
+ filter?: any;
827
+ name?: string | undefined;
828
+ }[] | undefined;
688
829
  }, {
689
- integration: {
690
- id: string;
691
- name: string;
692
- logoUri: string;
830
+ concurrency?: number | undefined;
831
+ type?: string | undefined;
832
+ name?: string | undefined;
833
+ description?: string | undefined;
834
+ isCustomized?: boolean | undefined;
835
+ inputSchema?: any;
836
+ config?: any;
837
+ outputSchema?: any;
838
+ version?: number | undefined;
839
+ onError?: "stop" | "continue" | undefined;
840
+ ui?: any;
841
+ outputExample?: any;
842
+ links?: {
693
843
  key?: string | undefined;
694
- uuid?: string | undefined;
695
- description?: string | undefined;
696
- state?: import("..").WorkspaceElementState | undefined;
697
- errors?: import("../..").ErrorDataSchema[] | undefined;
698
- revision?: string | undefined;
699
- createdAt?: string | undefined;
700
- updatedAt?: string | undefined;
701
- archivedAt?: string | undefined;
702
- isDeactivated?: boolean | undefined;
703
- parameters?: any;
704
- connectorId?: string | undefined;
705
- connectorVersion?: string | undefined;
706
- oAuthCallbackUri?: string | undefined;
707
- hasMissingParameters?: boolean | undefined;
708
- hasDocumentation?: boolean | undefined;
709
- hasOperations?: boolean | undefined;
710
- operationsCount?: number | undefined;
711
- hasData?: boolean | undefined;
712
- dataCollectionsCount?: number | undefined;
713
- hasEvents?: boolean | undefined;
714
- eventsCount?: number | undefined;
715
- hasGlobalWebhooks?: boolean | undefined;
716
- hasUdm?: boolean | undefined;
717
- isTest?: boolean | undefined;
718
- appUuid?: string | undefined;
719
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
720
- };
721
- element: {
722
- id: string;
723
- integrationId?: string | undefined;
724
- customized?: boolean | undefined;
725
- universalFlowId?: string | undefined;
726
- };
727
- }>, "many">>;
728
- dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
844
+ filter?: any;
845
+ name?: string | undefined;
846
+ }[] | undefined;
847
+ }>>>>;
848
+ autoCreateInstances: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
729
849
  }, "strip", z.ZodTypeAny, {
730
- id: string;
731
- name: string;
732
- revision: string;
733
850
  key?: string | undefined;
734
- integration?: {
735
- id: string;
736
- name: string;
737
- logoUri: string;
738
- key?: string | undefined;
739
- uuid?: string | undefined;
740
- description?: string | undefined;
741
- state?: import("..").WorkspaceElementState | undefined;
742
- errors?: import("../..").ErrorDataSchema[] | undefined;
743
- revision?: string | undefined;
744
- createdAt?: string | undefined;
745
- updatedAt?: string | undefined;
746
- archivedAt?: string | undefined;
747
- isDeactivated?: boolean | undefined;
748
- parameters?: any;
749
- connectorId?: string | undefined;
750
- connectorVersion?: string | undefined;
751
- oAuthCallbackUri?: string | undefined;
752
- hasMissingParameters?: boolean | undefined;
753
- hasDocumentation?: boolean | undefined;
754
- hasOperations?: boolean | undefined;
755
- operationsCount?: number | undefined;
756
- hasData?: boolean | undefined;
757
- dataCollectionsCount?: number | undefined;
758
- hasEvents?: boolean | undefined;
759
- eventsCount?: number | undefined;
760
- hasGlobalWebhooks?: boolean | undefined;
761
- hasUdm?: boolean | undefined;
762
- isTest?: boolean | undefined;
763
- appUuid?: string | undefined;
764
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
765
- } | undefined;
851
+ name?: string | undefined;
766
852
  uuid?: string | undefined;
767
853
  description?: string | undefined;
768
- state?: import("..").WorkspaceElementState | undefined;
769
- errors?: import("../..").ErrorDataSchema[] | undefined;
770
- createdAt?: string | undefined;
771
- updatedAt?: string | undefined;
772
- archivedAt?: string | undefined;
773
- isDeactivated?: boolean | undefined;
854
+ meta?: Record<string, any> | undefined;
774
855
  integrationId?: string | undefined;
775
- customized?: boolean | undefined;
776
- parametersSchema?: DataSchema | undefined;
777
- appliedToIntegrations?: {
778
- integration: {
779
- id: string;
780
- name: string;
781
- logoUri: string;
782
- key?: string | undefined;
783
- uuid?: string | undefined;
784
- description?: string | undefined;
785
- state?: import("..").WorkspaceElementState | undefined;
786
- errors?: import("../..").ErrorDataSchema[] | undefined;
787
- revision?: string | undefined;
788
- createdAt?: string | undefined;
789
- updatedAt?: string | undefined;
790
- archivedAt?: string | undefined;
791
- isDeactivated?: boolean | undefined;
792
- parameters?: any;
793
- connectorId?: string | undefined;
794
- connectorVersion?: string | undefined;
795
- oAuthCallbackUri?: string | undefined;
796
- hasMissingParameters?: boolean | undefined;
797
- hasDocumentation?: boolean | undefined;
798
- hasOperations?: boolean | undefined;
799
- operationsCount?: number | undefined;
800
- hasData?: boolean | undefined;
801
- dataCollectionsCount?: number | undefined;
802
- hasEvents?: boolean | undefined;
803
- eventsCount?: number | undefined;
804
- hasGlobalWebhooks?: boolean | undefined;
805
- hasUdm?: boolean | undefined;
806
- isTest?: boolean | undefined;
807
- appUuid?: string | undefined;
808
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
809
- };
810
- element: {
811
- id: string;
812
- integrationId?: string | undefined;
813
- customized?: boolean | undefined;
814
- universalFlowId?: string | undefined;
815
- };
816
- }[] | undefined;
817
- dependencies?: any[] | undefined;
856
+ parametersSchema?: import("../..").DataSchema | undefined;
818
857
  universalFlowId?: string | undefined;
819
- universalFlowRevision?: string | undefined;
820
858
  nodes?: Record<string, {
821
859
  concurrency?: number | undefined;
822
860
  type?: string | undefined;
823
861
  name?: string | undefined;
824
862
  description?: string | undefined;
863
+ isCustomized?: boolean | undefined;
825
864
  inputSchema?: any;
826
865
  config?: any;
827
- isCustomized?: boolean | undefined;
828
866
  outputSchema?: any;
829
867
  version?: number | undefined;
830
868
  onError?: "stop" | "continue" | undefined;
@@ -838,104 +876,22 @@ export declare const FlowApiResponse: z.ZodObject<{
838
876
  }> | undefined;
839
877
  autoCreateInstances?: boolean | undefined;
840
878
  }, {
841
- id: string;
842
- name: string;
843
- revision: string;
844
879
  key?: string | undefined;
845
- integration?: {
846
- id: string;
847
- name: string;
848
- logoUri: string;
849
- key?: string | undefined;
850
- uuid?: string | undefined;
851
- description?: string | undefined;
852
- state?: import("..").WorkspaceElementState | undefined;
853
- errors?: import("../..").ErrorDataSchema[] | undefined;
854
- revision?: string | undefined;
855
- createdAt?: string | undefined;
856
- updatedAt?: string | undefined;
857
- archivedAt?: string | undefined;
858
- isDeactivated?: boolean | undefined;
859
- parameters?: any;
860
- connectorId?: string | undefined;
861
- connectorVersion?: string | undefined;
862
- oAuthCallbackUri?: string | undefined;
863
- hasMissingParameters?: boolean | undefined;
864
- hasDocumentation?: boolean | undefined;
865
- hasOperations?: boolean | undefined;
866
- operationsCount?: number | undefined;
867
- hasData?: boolean | undefined;
868
- dataCollectionsCount?: number | undefined;
869
- hasEvents?: boolean | undefined;
870
- eventsCount?: number | undefined;
871
- hasGlobalWebhooks?: boolean | undefined;
872
- hasUdm?: boolean | undefined;
873
- isTest?: boolean | undefined;
874
- appUuid?: string | undefined;
875
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
876
- } | undefined;
880
+ name?: string | undefined;
877
881
  uuid?: string | undefined;
878
882
  description?: string | undefined;
879
- state?: import("..").WorkspaceElementState | undefined;
880
- errors?: import("../..").ErrorDataSchema[] | undefined;
881
- createdAt?: string | undefined;
882
- updatedAt?: string | undefined;
883
- archivedAt?: string | undefined;
884
- isDeactivated?: boolean | undefined;
883
+ meta?: Record<string, any> | undefined;
885
884
  integrationId?: string | undefined;
886
- customized?: boolean | undefined;
887
- parametersSchema?: DataSchema | undefined;
888
- appliedToIntegrations?: {
889
- integration: {
890
- id: string;
891
- name: string;
892
- logoUri: string;
893
- key?: string | undefined;
894
- uuid?: string | undefined;
895
- description?: string | undefined;
896
- state?: import("..").WorkspaceElementState | undefined;
897
- errors?: import("../..").ErrorDataSchema[] | undefined;
898
- revision?: string | undefined;
899
- createdAt?: string | undefined;
900
- updatedAt?: string | undefined;
901
- archivedAt?: string | undefined;
902
- isDeactivated?: boolean | undefined;
903
- parameters?: any;
904
- connectorId?: string | undefined;
905
- connectorVersion?: string | undefined;
906
- oAuthCallbackUri?: string | undefined;
907
- hasMissingParameters?: boolean | undefined;
908
- hasDocumentation?: boolean | undefined;
909
- hasOperations?: boolean | undefined;
910
- operationsCount?: number | undefined;
911
- hasData?: boolean | undefined;
912
- dataCollectionsCount?: number | undefined;
913
- hasEvents?: boolean | undefined;
914
- eventsCount?: number | undefined;
915
- hasGlobalWebhooks?: boolean | undefined;
916
- hasUdm?: boolean | undefined;
917
- isTest?: boolean | undefined;
918
- appUuid?: string | undefined;
919
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
920
- };
921
- element: {
922
- id: string;
923
- integrationId?: string | undefined;
924
- customized?: boolean | undefined;
925
- universalFlowId?: string | undefined;
926
- };
927
- }[] | undefined;
928
- dependencies?: any[] | undefined;
885
+ parametersSchema?: import("../..").DataSchema | undefined;
929
886
  universalFlowId?: string | undefined;
930
- universalFlowRevision?: string | undefined;
931
887
  nodes?: Record<string, {
932
888
  concurrency?: number | undefined;
933
889
  type?: string | undefined;
934
890
  name?: string | undefined;
935
891
  description?: string | undefined;
892
+ isCustomized?: boolean | undefined;
936
893
  inputSchema?: any;
937
894
  config?: any;
938
- isCustomized?: boolean | undefined;
939
895
  outputSchema?: any;
940
896
  version?: number | undefined;
941
897
  onError?: "stop" | "continue" | undefined;
@@ -949,13 +905,135 @@ export declare const FlowApiResponse: z.ZodObject<{
949
905
  }> | undefined;
950
906
  autoCreateInstances?: boolean | undefined;
951
907
  }>;
952
- export type FlowApiResponse = z.infer<typeof FlowApiResponse>;
953
- export type Flow = FlowApiResponse;
908
+ export type UpdateFlowRequest = z.infer<typeof UpdateFlowRequest>;
909
+ export interface FlowSelector extends IntegrationSpecificElementSelector {
910
+ autoCreate?: boolean;
911
+ }
912
+ export declare const ListFlowInstancesForConnectionQuery: z.ZodObject<{
913
+ flowId: z.ZodOptional<z.ZodString>;
914
+ flowKey: z.ZodOptional<z.ZodString>;
915
+ enabled: z.ZodOptional<z.ZodBoolean>;
916
+ } & {
917
+ search: z.ZodOptional<z.ZodString>;
918
+ } & {
919
+ limit: z.ZodOptional<z.ZodNumber>;
920
+ cursor: z.ZodOptional<z.ZodString>;
921
+ } & {
922
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
923
+ } & {
924
+ userId: z.ZodOptional<z.ZodString>;
925
+ instanceKey: z.ZodOptional<z.ZodString>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ search?: string | undefined;
928
+ includeArchived?: boolean | undefined;
929
+ limit?: number | undefined;
930
+ cursor?: string | undefined;
931
+ userId?: string | undefined;
932
+ instanceKey?: string | undefined;
933
+ flowId?: string | undefined;
934
+ enabled?: boolean | undefined;
935
+ flowKey?: string | undefined;
936
+ }, {
937
+ search?: string | undefined;
938
+ includeArchived?: unknown;
939
+ limit?: number | undefined;
940
+ cursor?: string | undefined;
941
+ userId?: string | undefined;
942
+ instanceKey?: string | undefined;
943
+ flowId?: string | undefined;
944
+ enabled?: boolean | undefined;
945
+ flowKey?: string | undefined;
946
+ }>;
947
+ export type ListFlowInstancesForConnectionQuery = z.infer<typeof ListFlowInstancesForConnectionQuery>;
948
+ export declare const FindFlowInstancesQuery: z.ZodObject<{
949
+ flowId: z.ZodOptional<z.ZodString>;
950
+ flowKey: z.ZodOptional<z.ZodString>;
951
+ enabled: z.ZodOptional<z.ZodBoolean>;
952
+ } & {
953
+ search: z.ZodOptional<z.ZodString>;
954
+ } & {
955
+ limit: z.ZodOptional<z.ZodNumber>;
956
+ cursor: z.ZodOptional<z.ZodString>;
957
+ } & {
958
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
959
+ } & {
960
+ userId: z.ZodOptional<z.ZodString>;
961
+ instanceKey: z.ZodOptional<z.ZodString>;
962
+ } & {
963
+ connectionId: z.ZodOptional<z.ZodString>;
964
+ integrationId: z.ZodOptional<z.ZodString>;
965
+ integrationKey: z.ZodOptional<z.ZodString>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ search?: string | undefined;
968
+ integrationId?: string | undefined;
969
+ includeArchived?: boolean | undefined;
970
+ limit?: number | undefined;
971
+ cursor?: string | undefined;
972
+ userId?: string | undefined;
973
+ instanceKey?: string | undefined;
974
+ connectionId?: string | undefined;
975
+ integrationKey?: string | undefined;
976
+ flowId?: string | undefined;
977
+ enabled?: boolean | undefined;
978
+ flowKey?: string | undefined;
979
+ }, {
980
+ search?: string | undefined;
981
+ integrationId?: string | undefined;
982
+ includeArchived?: unknown;
983
+ limit?: number | undefined;
984
+ cursor?: string | undefined;
985
+ userId?: string | undefined;
986
+ instanceKey?: string | undefined;
987
+ connectionId?: string | undefined;
988
+ integrationKey?: string | undefined;
989
+ flowId?: string | undefined;
990
+ enabled?: boolean | undefined;
991
+ flowKey?: string | undefined;
992
+ }>;
993
+ export type FindFlowInstancesQuery = z.infer<typeof FindFlowInstancesQuery>;
994
+ export interface FlowInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
995
+ flowId?: string;
996
+ flowKey?: string;
997
+ instanceKey?: string;
998
+ autoUpdate?: boolean;
999
+ }
1000
+ export declare const ResetFlowInstanceOptions: z.ZodObject<{
1001
+ name: z.ZodOptional<z.ZodBoolean>;
1002
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1003
+ allNodes: z.ZodOptional<z.ZodBoolean>;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ name?: boolean | undefined;
1006
+ nodes?: Record<string, boolean> | undefined;
1007
+ allNodes?: boolean | undefined;
1008
+ }, {
1009
+ name?: boolean | undefined;
1010
+ nodes?: Record<string, boolean> | undefined;
1011
+ allNodes?: boolean | undefined;
1012
+ }>;
1013
+ export type ResetFlowInstanceOptions = z.infer<typeof ResetFlowInstanceOptions>;
1014
+ export declare const RunFlowOptions: z.ZodObject<{
1015
+ nodeKey: z.ZodOptional<z.ZodString>;
1016
+ input: z.ZodOptional<z.ZodAny>;
1017
+ returnImmediately: z.ZodOptional<z.ZodBoolean>;
1018
+ onUpdate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ input?: any;
1021
+ nodeKey?: string | undefined;
1022
+ returnImmediately?: boolean | undefined;
1023
+ onUpdate?: ((...args: unknown[]) => unknown) | undefined;
1024
+ }, {
1025
+ input?: any;
1026
+ nodeKey?: string | undefined;
1027
+ returnImmediately?: boolean | undefined;
1028
+ onUpdate?: ((...args: unknown[]) => unknown) | undefined;
1029
+ }>;
1030
+ export type RunFlowOptions = z.infer<typeof RunFlowOptions>;
954
1031
  export declare const FlowInstanceApiResponse: z.ZodObject<{
955
1032
  id: z.ZodString;
956
1033
  key: z.ZodOptional<z.ZodString>;
957
1034
  uuid: z.ZodOptional<z.ZodString>;
958
1035
  description: z.ZodOptional<z.ZodString>;
1036
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
959
1037
  name: z.ZodString;
960
1038
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
961
1039
  revision: z.ZodOptional<z.ZodString>;
@@ -969,7 +1047,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
969
1047
  integrationId: z.ZodString;
970
1048
  instanceKey: z.ZodOptional<z.ZodString>;
971
1049
  parameters: z.ZodOptional<z.ZodAny>;
972
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
1050
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
973
1051
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
974
1052
  enabled: z.ZodBoolean;
975
1053
  createdAt: z.ZodString;
@@ -991,6 +1069,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
991
1069
  id: string;
992
1070
  name: string;
993
1071
  internalId: string;
1072
+ meta?: Record<string, any> | undefined;
994
1073
  createdAt?: string | undefined;
995
1074
  archivedAt?: string | undefined;
996
1075
  credentials?: any;
@@ -1002,6 +1081,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1002
1081
  id: string;
1003
1082
  name: string;
1004
1083
  internalId: string;
1084
+ meta?: Record<string, any> | undefined;
1005
1085
  createdAt?: string | undefined;
1006
1086
  archivedAt?: string | undefined;
1007
1087
  credentials?: any;
@@ -1015,16 +1095,15 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1015
1095
  name: string;
1016
1096
  createdAt: string;
1017
1097
  updatedAt: string;
1018
- userId: string;
1019
1098
  integrationId: string;
1099
+ userId: string;
1020
1100
  error?: import("../..").ErrorDataSchema | undefined;
1101
+ meta?: Record<string, any> | undefined;
1021
1102
  state?: import("..").WorkspaceElementState | undefined;
1022
- errors?: import("../..").ErrorDataSchema[] | undefined;
1023
1103
  archivedAt?: string | undefined;
1024
1104
  isDeactivated?: boolean | undefined;
1025
1105
  authOptionKey?: string | undefined;
1026
1106
  isTest?: boolean | undefined;
1027
- meta?: Record<string, any> | undefined;
1028
1107
  disconnected?: boolean | undefined;
1029
1108
  isDefunct?: boolean | undefined;
1030
1109
  lastActiveAt?: string | undefined;
@@ -1034,16 +1113,15 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1034
1113
  name: string;
1035
1114
  createdAt: string;
1036
1115
  updatedAt: string;
1037
- userId: string;
1038
1116
  integrationId: string;
1117
+ userId: string;
1039
1118
  error?: import("../..").ErrorDataSchema | undefined;
1119
+ meta?: Record<string, any> | undefined;
1040
1120
  state?: import("..").WorkspaceElementState | undefined;
1041
- errors?: import("../..").ErrorDataSchema[] | undefined;
1042
1121
  archivedAt?: string | undefined;
1043
1122
  isDeactivated?: boolean | undefined;
1044
1123
  authOptionKey?: string | undefined;
1045
1124
  isTest?: boolean | undefined;
1046
- meta?: Record<string, any> | undefined;
1047
1125
  disconnected?: boolean | undefined;
1048
1126
  isDefunct?: boolean | undefined;
1049
1127
  lastActiveAt?: string | undefined;
@@ -1054,17 +1132,10 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1054
1132
  key: z.ZodOptional<z.ZodString>;
1055
1133
  uuid: z.ZodOptional<z.ZodString>;
1056
1134
  description: z.ZodOptional<z.ZodString>;
1057
- name: z.ZodString;
1058
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
1059
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
1060
- createdAt: z.ZodOptional<z.ZodString>;
1061
- updatedAt: z.ZodOptional<z.ZodString>;
1062
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
1063
- } & {
1135
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1064
1136
  integrationId: z.ZodOptional<z.ZodString>;
1065
1137
  universalFlowId: z.ZodOptional<z.ZodString>;
1066
- universalFlowRevision: z.ZodOptional<z.ZodString>;
1067
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
1138
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
1068
1139
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1069
1140
  type: z.ZodOptional<z.ZodString>;
1070
1141
  version: z.ZodOptional<z.ZodNumber>;
@@ -1096,9 +1167,9 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1096
1167
  type?: string | undefined;
1097
1168
  name?: string | undefined;
1098
1169
  description?: string | undefined;
1170
+ isCustomized?: boolean | undefined;
1099
1171
  inputSchema?: any;
1100
1172
  config?: any;
1101
- isCustomized?: boolean | undefined;
1102
1173
  outputSchema?: any;
1103
1174
  version?: number | undefined;
1104
1175
  onError?: "stop" | "continue" | undefined;
@@ -1114,9 +1185,9 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1114
1185
  type?: string | undefined;
1115
1186
  name?: string | undefined;
1116
1187
  description?: string | undefined;
1188
+ isCustomized?: boolean | undefined;
1117
1189
  inputSchema?: any;
1118
1190
  config?: any;
1119
- isCustomized?: boolean | undefined;
1120
1191
  outputSchema?: any;
1121
1192
  version?: number | undefined;
1122
1193
  onError?: "stop" | "continue" | undefined;
@@ -1129,15 +1200,24 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1129
1200
  }[] | undefined;
1130
1201
  }>>>;
1131
1202
  autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
1203
+ } & {
1204
+ name: z.ZodString;
1205
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
1206
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
1207
+ revision: z.ZodOptional<z.ZodString>;
1208
+ createdAt: z.ZodOptional<z.ZodString>;
1209
+ updatedAt: z.ZodOptional<z.ZodString>;
1132
1210
  archivedAt: z.ZodOptional<z.ZodString>;
1133
- revision: z.ZodString;
1134
- customized: z.ZodOptional<z.ZodBoolean>;
1211
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
1212
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
1213
+ universalFlowRevision: z.ZodOptional<z.ZodString>;
1135
1214
  } & {
1136
1215
  integration: z.ZodOptional<z.ZodObject<{
1137
1216
  id: z.ZodString;
1138
1217
  key: z.ZodOptional<z.ZodString>;
1139
1218
  uuid: z.ZodOptional<z.ZodString>;
1140
1219
  description: z.ZodOptional<z.ZodString>;
1220
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1141
1221
  name: z.ZodString;
1142
1222
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
1143
1223
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -1172,6 +1252,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1172
1252
  key?: string | undefined;
1173
1253
  uuid?: string | undefined;
1174
1254
  description?: string | undefined;
1255
+ meta?: Record<string, any> | undefined;
1175
1256
  state?: import("..").WorkspaceElementState | undefined;
1176
1257
  errors?: import("../..").ErrorDataSchema[] | undefined;
1177
1258
  revision?: string | undefined;
@@ -1203,6 +1284,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1203
1284
  key?: string | undefined;
1204
1285
  uuid?: string | undefined;
1205
1286
  description?: string | undefined;
1287
+ meta?: Record<string, any> | undefined;
1206
1288
  state?: import("..").WorkspaceElementState | undefined;
1207
1289
  errors?: import("../..").ErrorDataSchema[] | undefined;
1208
1290
  revision?: string | undefined;
@@ -1232,17 +1314,17 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1232
1314
  element: z.ZodObject<{
1233
1315
  id: z.ZodString;
1234
1316
  integrationId: z.ZodOptional<z.ZodString>;
1235
- customized: z.ZodOptional<z.ZodBoolean>;
1317
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
1236
1318
  universalFlowId: z.ZodOptional<z.ZodString>;
1237
1319
  }, "strip", z.ZodTypeAny, {
1238
1320
  id: string;
1239
1321
  integrationId?: string | undefined;
1240
- customized?: boolean | undefined;
1322
+ isCustomized?: boolean | undefined;
1241
1323
  universalFlowId?: string | undefined;
1242
1324
  }, {
1243
1325
  id: string;
1244
1326
  integrationId?: string | undefined;
1245
- customized?: boolean | undefined;
1327
+ isCustomized?: boolean | undefined;
1246
1328
  universalFlowId?: string | undefined;
1247
1329
  }>;
1248
1330
  integration: z.ZodObject<{
@@ -1250,6 +1332,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1250
1332
  key: z.ZodOptional<z.ZodString>;
1251
1333
  uuid: z.ZodOptional<z.ZodString>;
1252
1334
  description: z.ZodOptional<z.ZodString>;
1335
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1253
1336
  name: z.ZodString;
1254
1337
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
1255
1338
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -1284,6 +1367,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1284
1367
  key?: string | undefined;
1285
1368
  uuid?: string | undefined;
1286
1369
  description?: string | undefined;
1370
+ meta?: Record<string, any> | undefined;
1287
1371
  state?: import("..").WorkspaceElementState | undefined;
1288
1372
  errors?: import("../..").ErrorDataSchema[] | undefined;
1289
1373
  revision?: string | undefined;
@@ -1315,6 +1399,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1315
1399
  key?: string | undefined;
1316
1400
  uuid?: string | undefined;
1317
1401
  description?: string | undefined;
1402
+ meta?: Record<string, any> | undefined;
1318
1403
  state?: import("..").WorkspaceElementState | undefined;
1319
1404
  errors?: import("../..").ErrorDataSchema[] | undefined;
1320
1405
  revision?: string | undefined;
@@ -1348,6 +1433,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1348
1433
  key?: string | undefined;
1349
1434
  uuid?: string | undefined;
1350
1435
  description?: string | undefined;
1436
+ meta?: Record<string, any> | undefined;
1351
1437
  state?: import("..").WorkspaceElementState | undefined;
1352
1438
  errors?: import("../..").ErrorDataSchema[] | undefined;
1353
1439
  revision?: string | undefined;
@@ -1376,7 +1462,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1376
1462
  element: {
1377
1463
  id: string;
1378
1464
  integrationId?: string | undefined;
1379
- customized?: boolean | undefined;
1465
+ isCustomized?: boolean | undefined;
1380
1466
  universalFlowId?: string | undefined;
1381
1467
  };
1382
1468
  }, {
@@ -1387,6 +1473,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1387
1473
  key?: string | undefined;
1388
1474
  uuid?: string | undefined;
1389
1475
  description?: string | undefined;
1476
+ meta?: Record<string, any> | undefined;
1390
1477
  state?: import("..").WorkspaceElementState | undefined;
1391
1478
  errors?: import("../..").ErrorDataSchema[] | undefined;
1392
1479
  revision?: string | undefined;
@@ -1415,7 +1502,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1415
1502
  element: {
1416
1503
  id: string;
1417
1504
  integrationId?: string | undefined;
1418
- customized?: boolean | undefined;
1505
+ isCustomized?: boolean | undefined;
1419
1506
  universalFlowId?: string | undefined;
1420
1507
  };
1421
1508
  }>, "many">>;
@@ -1423,7 +1510,6 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1423
1510
  }, "strip", z.ZodTypeAny, {
1424
1511
  id: string;
1425
1512
  name: string;
1426
- revision: string;
1427
1513
  key?: string | undefined;
1428
1514
  integration?: {
1429
1515
  id: string;
@@ -1432,6 +1518,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1432
1518
  key?: string | undefined;
1433
1519
  uuid?: string | undefined;
1434
1520
  description?: string | undefined;
1521
+ meta?: Record<string, any> | undefined;
1435
1522
  state?: import("..").WorkspaceElementState | undefined;
1436
1523
  errors?: import("../..").ErrorDataSchema[] | undefined;
1437
1524
  revision?: string | undefined;
@@ -1459,15 +1546,17 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1459
1546
  } | undefined;
1460
1547
  uuid?: string | undefined;
1461
1548
  description?: string | undefined;
1549
+ meta?: Record<string, any> | undefined;
1462
1550
  state?: import("..").WorkspaceElementState | undefined;
1463
1551
  errors?: import("../..").ErrorDataSchema[] | undefined;
1552
+ revision?: string | undefined;
1464
1553
  createdAt?: string | undefined;
1465
1554
  updatedAt?: string | undefined;
1466
1555
  archivedAt?: string | undefined;
1467
1556
  isDeactivated?: boolean | undefined;
1468
1557
  integrationId?: string | undefined;
1469
- customized?: boolean | undefined;
1470
- parametersSchema?: DataSchema | undefined;
1558
+ isCustomized?: boolean | undefined;
1559
+ parametersSchema?: import("../..").DataSchema | undefined;
1471
1560
  appliedToIntegrations?: {
1472
1561
  integration: {
1473
1562
  id: string;
@@ -1476,6 +1565,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1476
1565
  key?: string | undefined;
1477
1566
  uuid?: string | undefined;
1478
1567
  description?: string | undefined;
1568
+ meta?: Record<string, any> | undefined;
1479
1569
  state?: import("..").WorkspaceElementState | undefined;
1480
1570
  errors?: import("../..").ErrorDataSchema[] | undefined;
1481
1571
  revision?: string | undefined;
@@ -1504,21 +1594,20 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1504
1594
  element: {
1505
1595
  id: string;
1506
1596
  integrationId?: string | undefined;
1507
- customized?: boolean | undefined;
1597
+ isCustomized?: boolean | undefined;
1508
1598
  universalFlowId?: string | undefined;
1509
1599
  };
1510
1600
  }[] | undefined;
1511
1601
  dependencies?: any[] | undefined;
1512
1602
  universalFlowId?: string | undefined;
1513
- universalFlowRevision?: string | undefined;
1514
1603
  nodes?: Record<string, {
1515
1604
  concurrency?: number | undefined;
1516
1605
  type?: string | undefined;
1517
1606
  name?: string | undefined;
1518
1607
  description?: string | undefined;
1608
+ isCustomized?: boolean | undefined;
1519
1609
  inputSchema?: any;
1520
1610
  config?: any;
1521
- isCustomized?: boolean | undefined;
1522
1611
  outputSchema?: any;
1523
1612
  version?: number | undefined;
1524
1613
  onError?: "stop" | "continue" | undefined;
@@ -1531,10 +1620,10 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1531
1620
  }[] | undefined;
1532
1621
  }> | undefined;
1533
1622
  autoCreateInstances?: boolean | undefined;
1623
+ universalFlowRevision?: string | undefined;
1534
1624
  }, {
1535
1625
  id: string;
1536
1626
  name: string;
1537
- revision: string;
1538
1627
  key?: string | undefined;
1539
1628
  integration?: {
1540
1629
  id: string;
@@ -1543,6 +1632,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1543
1632
  key?: string | undefined;
1544
1633
  uuid?: string | undefined;
1545
1634
  description?: string | undefined;
1635
+ meta?: Record<string, any> | undefined;
1546
1636
  state?: import("..").WorkspaceElementState | undefined;
1547
1637
  errors?: import("../..").ErrorDataSchema[] | undefined;
1548
1638
  revision?: string | undefined;
@@ -1570,15 +1660,17 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1570
1660
  } | undefined;
1571
1661
  uuid?: string | undefined;
1572
1662
  description?: string | undefined;
1663
+ meta?: Record<string, any> | undefined;
1573
1664
  state?: import("..").WorkspaceElementState | undefined;
1574
1665
  errors?: import("../..").ErrorDataSchema[] | undefined;
1666
+ revision?: string | undefined;
1575
1667
  createdAt?: string | undefined;
1576
1668
  updatedAt?: string | undefined;
1577
1669
  archivedAt?: string | undefined;
1578
1670
  isDeactivated?: boolean | undefined;
1579
1671
  integrationId?: string | undefined;
1580
- customized?: boolean | undefined;
1581
- parametersSchema?: DataSchema | undefined;
1672
+ isCustomized?: boolean | undefined;
1673
+ parametersSchema?: import("../..").DataSchema | undefined;
1582
1674
  appliedToIntegrations?: {
1583
1675
  integration: {
1584
1676
  id: string;
@@ -1587,6 +1679,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1587
1679
  key?: string | undefined;
1588
1680
  uuid?: string | undefined;
1589
1681
  description?: string | undefined;
1682
+ meta?: Record<string, any> | undefined;
1590
1683
  state?: import("..").WorkspaceElementState | undefined;
1591
1684
  errors?: import("../..").ErrorDataSchema[] | undefined;
1592
1685
  revision?: string | undefined;
@@ -1615,21 +1708,20 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1615
1708
  element: {
1616
1709
  id: string;
1617
1710
  integrationId?: string | undefined;
1618
- customized?: boolean | undefined;
1711
+ isCustomized?: boolean | undefined;
1619
1712
  universalFlowId?: string | undefined;
1620
1713
  };
1621
1714
  }[] | undefined;
1622
1715
  dependencies?: any[] | undefined;
1623
1716
  universalFlowId?: string | undefined;
1624
- universalFlowRevision?: string | undefined;
1625
1717
  nodes?: Record<string, {
1626
1718
  concurrency?: number | undefined;
1627
1719
  type?: string | undefined;
1628
1720
  name?: string | undefined;
1629
1721
  description?: string | undefined;
1722
+ isCustomized?: boolean | undefined;
1630
1723
  inputSchema?: any;
1631
1724
  config?: any;
1632
- isCustomized?: boolean | undefined;
1633
1725
  outputSchema?: any;
1634
1726
  version?: number | undefined;
1635
1727
  onError?: "stop" | "continue" | undefined;
@@ -1642,6 +1734,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1642
1734
  }[] | undefined;
1643
1735
  }> | undefined;
1644
1736
  autoCreateInstances?: boolean | undefined;
1737
+ universalFlowRevision?: string | undefined;
1645
1738
  }>>>;
1646
1739
  integration: z.ZodOptional<z.ZodLazy<z.ZodType<{
1647
1740
  id: string;
@@ -1650,6 +1743,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1650
1743
  key?: string | undefined;
1651
1744
  uuid?: string | undefined;
1652
1745
  description?: string | undefined;
1746
+ meta?: Record<string, any> | undefined;
1653
1747
  state?: import("..").WorkspaceElementState | undefined;
1654
1748
  errors?: import("../..").ErrorDataSchema[] | undefined;
1655
1749
  revision?: string | undefined;
@@ -1681,6 +1775,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1681
1775
  key?: string | undefined;
1682
1776
  uuid?: string | undefined;
1683
1777
  description?: string | undefined;
1778
+ meta?: Record<string, any> | undefined;
1684
1779
  state?: import("..").WorkspaceElementState | undefined;
1685
1780
  errors?: import("../..").ErrorDataSchema[] | undefined;
1686
1781
  revision?: string | undefined;
@@ -1711,8 +1806,8 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1711
1806
  name: string;
1712
1807
  createdAt: string;
1713
1808
  updatedAt: string;
1714
- userId: string;
1715
1809
  integrationId: string;
1810
+ userId: string;
1716
1811
  enabled: boolean;
1717
1812
  key?: string | undefined;
1718
1813
  connection?: {
@@ -1720,16 +1815,15 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1720
1815
  name: string;
1721
1816
  createdAt: string;
1722
1817
  updatedAt: string;
1723
- userId: string;
1724
1818
  integrationId: string;
1819
+ userId: string;
1725
1820
  error?: import("../..").ErrorDataSchema | undefined;
1821
+ meta?: Record<string, any> | undefined;
1726
1822
  state?: import("..").WorkspaceElementState | undefined;
1727
- errors?: import("../..").ErrorDataSchema[] | undefined;
1728
1823
  archivedAt?: string | undefined;
1729
1824
  isDeactivated?: boolean | undefined;
1730
1825
  authOptionKey?: string | undefined;
1731
1826
  isTest?: boolean | undefined;
1732
- meta?: Record<string, any> | undefined;
1733
1827
  disconnected?: boolean | undefined;
1734
1828
  isDefunct?: boolean | undefined;
1735
1829
  lastActiveAt?: string | undefined;
@@ -1742,6 +1836,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1742
1836
  key?: string | undefined;
1743
1837
  uuid?: string | undefined;
1744
1838
  description?: string | undefined;
1839
+ meta?: Record<string, any> | undefined;
1745
1840
  state?: import("..").WorkspaceElementState | undefined;
1746
1841
  errors?: import("../..").ErrorDataSchema[] | undefined;
1747
1842
  revision?: string | undefined;
@@ -1770,7 +1865,6 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1770
1865
  flow?: {
1771
1866
  id: string;
1772
1867
  name: string;
1773
- revision: string;
1774
1868
  key?: string | undefined;
1775
1869
  integration?: {
1776
1870
  id: string;
@@ -1779,6 +1873,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1779
1873
  key?: string | undefined;
1780
1874
  uuid?: string | undefined;
1781
1875
  description?: string | undefined;
1876
+ meta?: Record<string, any> | undefined;
1782
1877
  state?: import("..").WorkspaceElementState | undefined;
1783
1878
  errors?: import("../..").ErrorDataSchema[] | undefined;
1784
1879
  revision?: string | undefined;
@@ -1806,15 +1901,17 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1806
1901
  } | undefined;
1807
1902
  uuid?: string | undefined;
1808
1903
  description?: string | undefined;
1904
+ meta?: Record<string, any> | undefined;
1809
1905
  state?: import("..").WorkspaceElementState | undefined;
1810
1906
  errors?: import("../..").ErrorDataSchema[] | undefined;
1907
+ revision?: string | undefined;
1811
1908
  createdAt?: string | undefined;
1812
1909
  updatedAt?: string | undefined;
1813
1910
  archivedAt?: string | undefined;
1814
1911
  isDeactivated?: boolean | undefined;
1815
1912
  integrationId?: string | undefined;
1816
- customized?: boolean | undefined;
1817
- parametersSchema?: DataSchema | undefined;
1913
+ isCustomized?: boolean | undefined;
1914
+ parametersSchema?: import("../..").DataSchema | undefined;
1818
1915
  appliedToIntegrations?: {
1819
1916
  integration: {
1820
1917
  id: string;
@@ -1823,6 +1920,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1823
1920
  key?: string | undefined;
1824
1921
  uuid?: string | undefined;
1825
1922
  description?: string | undefined;
1923
+ meta?: Record<string, any> | undefined;
1826
1924
  state?: import("..").WorkspaceElementState | undefined;
1827
1925
  errors?: import("../..").ErrorDataSchema[] | undefined;
1828
1926
  revision?: string | undefined;
@@ -1851,21 +1949,20 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1851
1949
  element: {
1852
1950
  id: string;
1853
1951
  integrationId?: string | undefined;
1854
- customized?: boolean | undefined;
1952
+ isCustomized?: boolean | undefined;
1855
1953
  universalFlowId?: string | undefined;
1856
1954
  };
1857
1955
  }[] | undefined;
1858
1956
  dependencies?: any[] | undefined;
1859
1957
  universalFlowId?: string | undefined;
1860
- universalFlowRevision?: string | undefined;
1861
1958
  nodes?: Record<string, {
1862
1959
  concurrency?: number | undefined;
1863
1960
  type?: string | undefined;
1864
1961
  name?: string | undefined;
1865
1962
  description?: string | undefined;
1963
+ isCustomized?: boolean | undefined;
1866
1964
  inputSchema?: any;
1867
1965
  config?: any;
1868
- isCustomized?: boolean | undefined;
1869
1966
  outputSchema?: any;
1870
1967
  version?: number | undefined;
1871
1968
  onError?: "stop" | "continue" | undefined;
@@ -1878,9 +1975,11 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1878
1975
  }[] | undefined;
1879
1976
  }> | undefined;
1880
1977
  autoCreateInstances?: boolean | undefined;
1978
+ universalFlowRevision?: string | undefined;
1881
1979
  } | undefined;
1882
1980
  uuid?: string | undefined;
1883
1981
  description?: string | undefined;
1982
+ meta?: Record<string, any> | undefined;
1884
1983
  state?: import("..").WorkspaceElementState | undefined;
1885
1984
  errors?: import("../..").ErrorDataSchema[] | undefined;
1886
1985
  revision?: string | undefined;
@@ -1889,15 +1988,12 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1889
1988
  instanceKey?: string | undefined;
1890
1989
  connectionId?: string | undefined;
1891
1990
  parameters?: any;
1892
- customized?: {
1893
- name?: boolean | undefined;
1894
- nodes?: boolean | undefined;
1895
- } | undefined;
1896
- parametersSchema?: DataSchema | undefined;
1991
+ parametersSchema?: import("../..").DataSchema | undefined;
1897
1992
  user?: {
1898
1993
  id: string;
1899
1994
  name: string;
1900
1995
  internalId: string;
1996
+ meta?: Record<string, any> | undefined;
1901
1997
  createdAt?: string | undefined;
1902
1998
  archivedAt?: string | undefined;
1903
1999
  credentials?: any;
@@ -1910,13 +2006,17 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1910
2006
  universalFlowId?: string | undefined;
1911
2007
  nodes?: Record<string, any> | undefined;
1912
2008
  flowId?: string | undefined;
2009
+ customized?: {
2010
+ name?: boolean | undefined;
2011
+ nodes?: boolean | undefined;
2012
+ } | undefined;
1913
2013
  }, {
1914
2014
  id: string;
1915
2015
  name: string;
1916
2016
  createdAt: string;
1917
2017
  updatedAt: string;
1918
- userId: string;
1919
2018
  integrationId: string;
2019
+ userId: string;
1920
2020
  enabled: boolean;
1921
2021
  key?: string | undefined;
1922
2022
  connection?: {
@@ -1924,16 +2024,15 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1924
2024
  name: string;
1925
2025
  createdAt: string;
1926
2026
  updatedAt: string;
1927
- userId: string;
1928
2027
  integrationId: string;
2028
+ userId: string;
1929
2029
  error?: import("../..").ErrorDataSchema | undefined;
2030
+ meta?: Record<string, any> | undefined;
1930
2031
  state?: import("..").WorkspaceElementState | undefined;
1931
- errors?: import("../..").ErrorDataSchema[] | undefined;
1932
2032
  archivedAt?: string | undefined;
1933
2033
  isDeactivated?: boolean | undefined;
1934
2034
  authOptionKey?: string | undefined;
1935
2035
  isTest?: boolean | undefined;
1936
- meta?: Record<string, any> | undefined;
1937
2036
  disconnected?: boolean | undefined;
1938
2037
  isDefunct?: boolean | undefined;
1939
2038
  lastActiveAt?: string | undefined;
@@ -1946,6 +2045,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1946
2045
  key?: string | undefined;
1947
2046
  uuid?: string | undefined;
1948
2047
  description?: string | undefined;
2048
+ meta?: Record<string, any> | undefined;
1949
2049
  state?: import("..").WorkspaceElementState | undefined;
1950
2050
  errors?: import("../..").ErrorDataSchema[] | undefined;
1951
2051
  revision?: string | undefined;
@@ -1974,7 +2074,6 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1974
2074
  flow?: {
1975
2075
  id: string;
1976
2076
  name: string;
1977
- revision: string;
1978
2077
  key?: string | undefined;
1979
2078
  integration?: {
1980
2079
  id: string;
@@ -1983,6 +2082,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1983
2082
  key?: string | undefined;
1984
2083
  uuid?: string | undefined;
1985
2084
  description?: string | undefined;
2085
+ meta?: Record<string, any> | undefined;
1986
2086
  state?: import("..").WorkspaceElementState | undefined;
1987
2087
  errors?: import("../..").ErrorDataSchema[] | undefined;
1988
2088
  revision?: string | undefined;
@@ -2010,15 +2110,17 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2010
2110
  } | undefined;
2011
2111
  uuid?: string | undefined;
2012
2112
  description?: string | undefined;
2113
+ meta?: Record<string, any> | undefined;
2013
2114
  state?: import("..").WorkspaceElementState | undefined;
2014
2115
  errors?: import("../..").ErrorDataSchema[] | undefined;
2116
+ revision?: string | undefined;
2015
2117
  createdAt?: string | undefined;
2016
2118
  updatedAt?: string | undefined;
2017
2119
  archivedAt?: string | undefined;
2018
2120
  isDeactivated?: boolean | undefined;
2019
2121
  integrationId?: string | undefined;
2020
- customized?: boolean | undefined;
2021
- parametersSchema?: DataSchema | undefined;
2122
+ isCustomized?: boolean | undefined;
2123
+ parametersSchema?: import("../..").DataSchema | undefined;
2022
2124
  appliedToIntegrations?: {
2023
2125
  integration: {
2024
2126
  id: string;
@@ -2027,6 +2129,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2027
2129
  key?: string | undefined;
2028
2130
  uuid?: string | undefined;
2029
2131
  description?: string | undefined;
2132
+ meta?: Record<string, any> | undefined;
2030
2133
  state?: import("..").WorkspaceElementState | undefined;
2031
2134
  errors?: import("../..").ErrorDataSchema[] | undefined;
2032
2135
  revision?: string | undefined;
@@ -2055,21 +2158,20 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2055
2158
  element: {
2056
2159
  id: string;
2057
2160
  integrationId?: string | undefined;
2058
- customized?: boolean | undefined;
2161
+ isCustomized?: boolean | undefined;
2059
2162
  universalFlowId?: string | undefined;
2060
2163
  };
2061
2164
  }[] | undefined;
2062
2165
  dependencies?: any[] | undefined;
2063
2166
  universalFlowId?: string | undefined;
2064
- universalFlowRevision?: string | undefined;
2065
2167
  nodes?: Record<string, {
2066
2168
  concurrency?: number | undefined;
2067
2169
  type?: string | undefined;
2068
2170
  name?: string | undefined;
2069
2171
  description?: string | undefined;
2172
+ isCustomized?: boolean | undefined;
2070
2173
  inputSchema?: any;
2071
2174
  config?: any;
2072
- isCustomized?: boolean | undefined;
2073
2175
  outputSchema?: any;
2074
2176
  version?: number | undefined;
2075
2177
  onError?: "stop" | "continue" | undefined;
@@ -2082,9 +2184,11 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2082
2184
  }[] | undefined;
2083
2185
  }> | undefined;
2084
2186
  autoCreateInstances?: boolean | undefined;
2187
+ universalFlowRevision?: string | undefined;
2085
2188
  } | undefined;
2086
2189
  uuid?: string | undefined;
2087
2190
  description?: string | undefined;
2191
+ meta?: Record<string, any> | undefined;
2088
2192
  state?: import("..").WorkspaceElementState | undefined;
2089
2193
  errors?: import("../..").ErrorDataSchema[] | undefined;
2090
2194
  revision?: string | undefined;
@@ -2093,15 +2197,12 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2093
2197
  instanceKey?: string | undefined;
2094
2198
  connectionId?: string | undefined;
2095
2199
  parameters?: any;
2096
- customized?: {
2097
- name?: boolean | undefined;
2098
- nodes?: boolean | undefined;
2099
- } | undefined;
2100
- parametersSchema?: DataSchema | undefined;
2200
+ parametersSchema?: import("../..").DataSchema | undefined;
2101
2201
  user?: {
2102
2202
  id: string;
2103
2203
  name: string;
2104
2204
  internalId: string;
2205
+ meta?: Record<string, any> | undefined;
2105
2206
  createdAt?: string | undefined;
2106
2207
  archivedAt?: string | undefined;
2107
2208
  credentials?: any;
@@ -2114,6 +2215,44 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2114
2215
  universalFlowId?: string | undefined;
2115
2216
  nodes?: Record<string, any> | undefined;
2116
2217
  flowId?: string | undefined;
2218
+ customized?: {
2219
+ name?: boolean | undefined;
2220
+ nodes?: boolean | undefined;
2221
+ } | undefined;
2117
2222
  }>;
2118
2223
  export type FlowInstanceApiResponse = z.infer<typeof FlowInstanceApiResponse>;
2119
2224
  export type FlowInstance = FlowInstanceApiResponse;
2225
+ export type ListFlowsForIntegrationQuery = Omit<FindFlowsQuery, 'integrationId' | 'integrationKey'>;
2226
+ export declare const CreateFlowNodeRequest: z.ZodObject<{
2227
+ type: z.ZodString;
2228
+ config: z.ZodOptional<z.ZodAny>;
2229
+ ui: z.ZodOptional<z.ZodAny>;
2230
+ links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
2231
+ key?: string | undefined;
2232
+ filter?: any;
2233
+ name?: string | undefined;
2234
+ }, z.ZodTypeDef, {
2235
+ key?: string | undefined;
2236
+ filter?: any;
2237
+ name?: string | undefined;
2238
+ }>>, "many">>;
2239
+ }, "strip", z.ZodTypeAny, {
2240
+ type: string;
2241
+ config?: any;
2242
+ ui?: any;
2243
+ links?: {
2244
+ key?: string | undefined;
2245
+ filter?: any;
2246
+ name?: string | undefined;
2247
+ }[] | undefined;
2248
+ }, {
2249
+ type: string;
2250
+ config?: any;
2251
+ ui?: any;
2252
+ links?: {
2253
+ key?: string | undefined;
2254
+ filter?: any;
2255
+ name?: string | undefined;
2256
+ }[] | undefined;
2257
+ }>;
2258
+ export type CreateFlowNodeRequest = z.infer<typeof CreateFlowNodeRequest>;