@membranehq/sdk 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/bundle.d.ts +8370 -1268
  2. package/dist/bundle.js +2216 -2085
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +57 -1
  5. package/dist/dts/accessors/integrations-accessors.d.ts +57 -1
  6. package/dist/dts/api-client.d.ts +1 -0
  7. package/dist/dts/client.d.ts +1 -0
  8. package/dist/dts/data-schema/types.d.ts +4 -3
  9. package/dist/dts/entity-repository.d.ts +87 -20
  10. package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
  11. package/dist/dts/http-requests.d.ts +20 -6
  12. package/dist/dts/iframe.d.ts +12 -4
  13. package/dist/dts/index.d.ts +2 -1
  14. package/dist/dts/sse/index.d.ts +1 -0
  15. package/dist/dts/sse/workspace-elements.d.ts +9 -0
  16. package/dist/dts/workspace-elements/api/actions-api.d.ts +702 -40
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +702 -41
  18. package/dist/dts/workspace-elements/api/customers-api.d.ts +56 -13
  19. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +834 -77
  20. package/dist/dts/workspace-elements/api/external-events-api.d.ts +440 -6
  21. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +586 -6
  22. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1 -1
  23. package/dist/dts/workspace-elements/api/flows-api.d.ts +2417 -50
  24. package/dist/dts/workspace-elements/api/integrations-api.d.ts +253 -24
  25. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +397 -34
  26. package/dist/dts/workspace-elements/api/screens-api.d.ts +2 -2
  27. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +61 -14
  28. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +30 -7
  29. package/dist/dts/workspace-elements/base/actions/types.d.ts +60 -17
  30. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +42 -7
  31. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +35 -7
  32. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +78 -9
  33. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +70 -7
  34. package/dist/dts/workspace-elements/base/connections/types.d.ts +76 -20
  35. package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
  36. package/dist/dts/workspace-elements/base/customers/index.d.ts +26 -6
  37. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +75 -74
  38. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +61 -11
  39. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +26 -4
  40. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1030 -19
  41. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +89 -22
  42. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
  43. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
  44. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +199 -23
  45. package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
  46. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +74 -16
  47. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +91 -14
  48. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +39 -39
  49. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +155 -24
  50. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
  51. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +114 -19
  52. package/dist/dts/workspace-elements/base/flows/types.d.ts +220 -26
  53. package/dist/dts/workspace-elements/base/integrations/types.d.ts +497 -24
  54. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +723 -23
  55. package/dist/dts/workspace-elements/base/screens/types.d.ts +40 -6
  56. package/dist/index.d.ts +12141 -2138
  57. package/dist/index.js +1555 -522
  58. package/dist/index.js.map +1 -1
  59. package/dist/index.module.d.mts +12141 -2138
  60. package/dist/index.module.mjs +1414 -490
  61. package/dist/index.module.mjs.map +1 -1
  62. package/package.json +1 -1
@@ -1,66 +1,728 @@
1
+ import { z } from 'zod';
1
2
  import { ConnectionSelector } from './connections-api';
2
3
  import { ElementInstanceSelector, IntegrationSpecificElementSelector } from '../../accessors';
3
- import { PaginationQuery } from '../../entity-repository';
4
4
  import { OpenConfigurationOptions } from '../../iframe';
5
- import { BaseAction } from '../base/actions';
6
5
  import { ActionType } from '../base/actions/action-types';
7
- import { BaseIntegration, AppliedToIntegrations } from '../base/integrations';
8
- export interface ListActionsForIntegrationQuery extends PaginationQuery {
9
- parentId?: string | 'null';
10
- }
11
- export interface FindActionsQuery extends ListActionsForIntegrationQuery {
12
- integrationId?: string | 'null';
13
- }
14
- export type CreateActionRequest = {
6
+ export declare const ListActionsForIntegrationQuery: z.ZodObject<{
7
+ parentId: z.ZodOptional<z.ZodString>;
8
+ } & {
9
+ limit: z.ZodOptional<z.ZodNumber>;
10
+ cursor: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ limit?: number | undefined;
13
+ cursor?: string | undefined;
14
+ parentId?: string | undefined;
15
+ }, {
16
+ limit?: number | undefined;
17
+ cursor?: string | undefined;
18
+ parentId?: string | undefined;
19
+ }>;
20
+ export type ListActionsForIntegrationQuery = z.infer<typeof ListActionsForIntegrationQuery>;
21
+ export declare const FindActionsQuery: z.ZodObject<{
22
+ parentId: z.ZodOptional<z.ZodString>;
23
+ } & {
24
+ limit: z.ZodOptional<z.ZodNumber>;
25
+ cursor: z.ZodOptional<z.ZodString>;
26
+ } & {
27
+ integrationId: z.ZodOptional<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ limit?: number | undefined;
30
+ cursor?: string | undefined;
31
+ integrationId?: string | undefined;
32
+ parentId?: string | undefined;
33
+ }, {
34
+ limit?: number | undefined;
35
+ cursor?: string | undefined;
36
+ integrationId?: string | undefined;
37
+ parentId?: string | undefined;
38
+ }>;
39
+ export type FindActionsQuery = z.infer<typeof FindActionsQuery>;
40
+ export declare const CreateActionRequest: z.ZodObject<{
41
+ key: z.ZodString;
42
+ name: z.ZodString;
43
+ type: z.ZodOptional<z.ZodNativeEnum<typeof ActionType>>;
44
+ inputSchema: z.ZodOptional<z.ZodAny>;
45
+ config: z.ZodOptional<z.ZodAny>;
46
+ integrationId: z.ZodOptional<z.ZodString>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ key: string;
49
+ name: string;
50
+ type?: ActionType | undefined;
51
+ integrationId?: string | undefined;
52
+ inputSchema?: any;
53
+ config?: any;
54
+ }, {
15
55
  key: string;
16
56
  name: string;
17
- type?: ActionType;
57
+ type?: ActionType | undefined;
58
+ integrationId?: string | undefined;
18
59
  inputSchema?: any;
19
60
  config?: any;
20
- integrationId?: string;
21
- };
22
- export type UpdateActionRequest = {
23
- key?: string;
24
- type?: ActionType;
25
- name?: string;
61
+ }>;
62
+ export type CreateActionRequest = z.infer<typeof CreateActionRequest>;
63
+ export declare const UpdateActionRequest: z.ZodObject<{
64
+ key: z.ZodOptional<z.ZodString>;
65
+ type: z.ZodOptional<z.ZodNativeEnum<typeof ActionType>>;
66
+ name: z.ZodOptional<z.ZodString>;
67
+ inputSchema: z.ZodOptional<z.ZodAny>;
68
+ config: z.ZodOptional<z.ZodAny>;
69
+ archivedAt: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ key?: string | undefined;
72
+ type?: ActionType | undefined;
73
+ name?: string | undefined;
74
+ archivedAt?: string | undefined;
26
75
  inputSchema?: any;
27
76
  config?: any;
28
- archivedAt?: string;
29
- };
77
+ }, {
78
+ key?: string | undefined;
79
+ type?: ActionType | undefined;
80
+ name?: string | undefined;
81
+ archivedAt?: string | undefined;
82
+ inputSchema?: any;
83
+ config?: any;
84
+ }>;
85
+ export type UpdateActionRequest = z.infer<typeof UpdateActionRequest>;
30
86
  export interface ActionSelector extends IntegrationSpecificElementSelector {
31
87
  }
32
88
  export interface ActionInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
33
89
  }
34
- export type ListActionInstancesForConnectionQuery = PaginationQuery & {
35
- parentId?: string;
36
- universalParentId?: string;
37
- };
38
- export interface FindActionInstancesQuery extends ListActionInstancesForConnectionQuery {
39
- integrationKey?: string;
40
- integrationId?: string;
41
- userId?: string;
42
- connectionId?: string;
43
- }
44
- export interface CreateActionInstanceRequest {
90
+ export declare const ListActionInstancesForConnectionQuery: z.ZodObject<{
91
+ parentId: z.ZodOptional<z.ZodString>;
92
+ universalParentId: z.ZodOptional<z.ZodString>;
93
+ } & {
94
+ limit: z.ZodOptional<z.ZodNumber>;
95
+ cursor: z.ZodOptional<z.ZodString>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ limit?: number | undefined;
98
+ cursor?: string | undefined;
99
+ parentId?: string | undefined;
100
+ universalParentId?: string | undefined;
101
+ }, {
102
+ limit?: number | undefined;
103
+ cursor?: string | undefined;
104
+ parentId?: string | undefined;
105
+ universalParentId?: string | undefined;
106
+ }>;
107
+ export type ListActionInstancesForConnectionQuery = z.infer<typeof ListActionInstancesForConnectionQuery>;
108
+ export declare const FindActionInstancesQuery: z.ZodObject<{
109
+ parentId: z.ZodOptional<z.ZodString>;
110
+ universalParentId: z.ZodOptional<z.ZodString>;
111
+ } & {
112
+ limit: z.ZodOptional<z.ZodNumber>;
113
+ cursor: z.ZodOptional<z.ZodString>;
114
+ } & {
115
+ integrationKey: z.ZodOptional<z.ZodString>;
116
+ integrationId: z.ZodOptional<z.ZodString>;
117
+ userId: z.ZodOptional<z.ZodString>;
118
+ connectionId: z.ZodOptional<z.ZodString>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ limit?: number | undefined;
121
+ cursor?: string | undefined;
122
+ userId?: string | undefined;
123
+ connectionId?: string | undefined;
124
+ integrationId?: string | undefined;
125
+ integrationKey?: string | undefined;
126
+ parentId?: string | undefined;
127
+ universalParentId?: string | undefined;
128
+ }, {
129
+ limit?: number | undefined;
130
+ cursor?: string | undefined;
131
+ userId?: string | undefined;
132
+ connectionId?: string | undefined;
133
+ integrationId?: string | undefined;
134
+ integrationKey?: string | undefined;
135
+ parentId?: string | undefined;
136
+ universalParentId?: string | undefined;
137
+ }>;
138
+ export type FindActionInstancesQuery = z.infer<typeof FindActionInstancesQuery>;
139
+ export declare const CreateActionInstanceRequest: z.ZodObject<{
140
+ parentId: z.ZodString;
141
+ connectionId: z.ZodString;
142
+ config: z.ZodOptional<z.ZodAny>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ connectionId: string;
45
145
  parentId: string;
146
+ config?: any;
147
+ }, {
46
148
  connectionId: string;
149
+ parentId: string;
47
150
  config?: any;
48
- }
49
- export interface UpdateActionInstanceRequest {
151
+ }>;
152
+ export type CreateActionInstanceRequest = z.infer<typeof CreateActionInstanceRequest>;
153
+ export declare const UpdateActionInstanceRequest: z.ZodObject<{
154
+ config: z.ZodOptional<z.ZodAny>;
155
+ }, "strip", z.ZodTypeAny, {
50
156
  config?: any;
51
- }
157
+ }, {
158
+ config?: any;
159
+ }>;
160
+ export type UpdateActionInstanceRequest = z.infer<typeof UpdateActionInstanceRequest>;
52
161
  export interface OpenActionConfigurationOptions extends OpenConfigurationOptions {
53
162
  }
54
- export interface ActionRunResponse {
163
+ export declare const ActionRunResponse: z.ZodObject<{
164
+ output: z.ZodOptional<z.ZodAny>;
165
+ logs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ logs?: any[] | undefined;
55
168
  output?: any;
56
- logs?: any[];
57
- }
169
+ }, {
170
+ logs?: any[] | undefined;
171
+ output?: any;
172
+ }>;
173
+ export type ActionRunResponse = z.infer<typeof ActionRunResponse>;
58
174
  export declare enum ActionRunLogStatus {
59
175
  SUCCESS = "success",
60
176
  ERROR = "error"
61
177
  }
62
- export interface Action extends BaseAction {
63
- integration?: BaseIntegration;
64
- appliedToIntegrations?: AppliedToIntegrations<Action>;
65
- }
178
+ export declare const Action: z.ZodObject<{
179
+ id: z.ZodString;
180
+ key: z.ZodString;
181
+ name: z.ZodString;
182
+ revision: z.ZodString;
183
+ integrationId: z.ZodOptional<z.ZodString>;
184
+ parentId: z.ZodOptional<z.ZodString>;
185
+ parentRevision: z.ZodOptional<z.ZodString>;
186
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
187
+ createdAt: z.ZodOptional<z.ZodString>;
188
+ updatedAt: z.ZodOptional<z.ZodString>;
189
+ archivedAt: z.ZodOptional<z.ZodString>;
190
+ type: z.ZodNativeEnum<typeof ActionType>;
191
+ inputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
192
+ config: z.ZodOptional<z.ZodAny>;
193
+ outputMapping: z.ZodOptional<z.ZodAny>;
194
+ customOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
195
+ defaultOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
196
+ transformedOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
197
+ outputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
198
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
199
+ } & {
200
+ integration: z.ZodOptional<z.ZodObject<{
201
+ id: z.ZodString;
202
+ name: z.ZodString;
203
+ } & {
204
+ key: z.ZodString;
205
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
206
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
207
+ } & {
208
+ logoUri: z.ZodString;
209
+ connectorId: z.ZodOptional<z.ZodString>;
210
+ connectorVersion: z.ZodOptional<z.ZodString>;
211
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
212
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
213
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
214
+ parameters: z.ZodOptional<z.ZodAny>;
215
+ baseUri: z.ZodString;
216
+ archivedAt: z.ZodOptional<z.ZodString>;
217
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
218
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
219
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
220
+ hasData: z.ZodOptional<z.ZodBoolean>;
221
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
222
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
223
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
224
+ isTest: z.ZodOptional<z.ZodBoolean>;
225
+ appUuid: z.ZodOptional<z.ZodString>;
226
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
227
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ key: string;
230
+ id: string;
231
+ name: string;
232
+ baseUri: string;
233
+ logoUri: string;
234
+ state?: import("..").WorkspaceElementState | undefined;
235
+ errors?: any[] | undefined;
236
+ parameters?: any;
237
+ parametersSchema?: import("../..").DataSchema | undefined;
238
+ archivedAt?: string | undefined;
239
+ isTest?: boolean | undefined;
240
+ connectorId?: string | undefined;
241
+ connectorVersion?: string | undefined;
242
+ authOptions?: any[] | undefined;
243
+ oAuthCallbackUri?: string | undefined;
244
+ hasMissingParameters?: boolean | undefined;
245
+ hasDocumentation?: boolean | undefined;
246
+ hasOperations?: boolean | undefined;
247
+ hasData?: boolean | undefined;
248
+ hasEvents?: boolean | undefined;
249
+ hasGlobalWebhooks?: boolean | undefined;
250
+ hasUdm?: boolean | undefined;
251
+ appUuid?: string | undefined;
252
+ isDeactivated?: boolean | undefined;
253
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
254
+ }, {
255
+ key: string;
256
+ id: string;
257
+ name: string;
258
+ baseUri: string;
259
+ logoUri: string;
260
+ state?: import("..").WorkspaceElementState | undefined;
261
+ errors?: any[] | undefined;
262
+ parameters?: any;
263
+ parametersSchema?: import("../..").DataSchema | undefined;
264
+ archivedAt?: string | undefined;
265
+ isTest?: boolean | undefined;
266
+ connectorId?: string | undefined;
267
+ connectorVersion?: string | undefined;
268
+ authOptions?: any[] | undefined;
269
+ oAuthCallbackUri?: string | undefined;
270
+ hasMissingParameters?: boolean | undefined;
271
+ hasDocumentation?: boolean | undefined;
272
+ hasOperations?: boolean | undefined;
273
+ hasData?: boolean | undefined;
274
+ hasEvents?: boolean | undefined;
275
+ hasGlobalWebhooks?: boolean | undefined;
276
+ hasUdm?: boolean | undefined;
277
+ appUuid?: string | undefined;
278
+ isDeactivated?: boolean | undefined;
279
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
280
+ }>>;
281
+ appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
282
+ element: z.ZodObject<{
283
+ id: z.ZodString;
284
+ key: z.ZodString;
285
+ name: z.ZodString;
286
+ revision: z.ZodString;
287
+ integrationId: z.ZodOptional<z.ZodString>;
288
+ parentId: z.ZodOptional<z.ZodString>;
289
+ parentRevision: z.ZodOptional<z.ZodString>;
290
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
291
+ createdAt: z.ZodOptional<z.ZodString>;
292
+ updatedAt: z.ZodOptional<z.ZodString>;
293
+ archivedAt: z.ZodOptional<z.ZodString>;
294
+ type: z.ZodNativeEnum<typeof ActionType>;
295
+ inputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
296
+ config: z.ZodOptional<z.ZodAny>;
297
+ outputMapping: z.ZodOptional<z.ZodAny>;
298
+ customOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
299
+ defaultOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
300
+ transformedOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
301
+ outputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
302
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ key: string;
305
+ type: ActionType;
306
+ id: string;
307
+ name: string;
308
+ revision: string;
309
+ integrationId?: string | undefined;
310
+ createdAt?: string | undefined;
311
+ updatedAt?: string | undefined;
312
+ archivedAt?: string | undefined;
313
+ parentId?: string | undefined;
314
+ parentRevision?: string | undefined;
315
+ isCustomized?: boolean | undefined;
316
+ inputSchema?: import("../..").DataSchema | undefined;
317
+ config?: any;
318
+ outputMapping?: any;
319
+ customOutputSchema?: import("../..").DataSchema | undefined;
320
+ defaultOutputSchema?: import("../..").DataSchema | undefined;
321
+ transformedOutputSchema?: import("../..").DataSchema | undefined;
322
+ outputSchema?: import("../..").DataSchema | undefined;
323
+ dependencies?: any[] | undefined;
324
+ }, {
325
+ key: string;
326
+ type: ActionType;
327
+ id: string;
328
+ name: string;
329
+ revision: string;
330
+ integrationId?: string | undefined;
331
+ createdAt?: string | undefined;
332
+ updatedAt?: string | undefined;
333
+ archivedAt?: string | undefined;
334
+ parentId?: string | undefined;
335
+ parentRevision?: string | undefined;
336
+ isCustomized?: boolean | undefined;
337
+ inputSchema?: import("../..").DataSchema | undefined;
338
+ config?: any;
339
+ outputMapping?: any;
340
+ customOutputSchema?: import("../..").DataSchema | undefined;
341
+ defaultOutputSchema?: import("../..").DataSchema | undefined;
342
+ transformedOutputSchema?: import("../..").DataSchema | undefined;
343
+ outputSchema?: import("../..").DataSchema | undefined;
344
+ dependencies?: any[] | undefined;
345
+ }>;
346
+ integration: z.ZodObject<{
347
+ id: z.ZodString;
348
+ name: z.ZodString;
349
+ } & {
350
+ key: z.ZodString;
351
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
352
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
353
+ } & {
354
+ logoUri: z.ZodString;
355
+ connectorId: z.ZodOptional<z.ZodString>;
356
+ connectorVersion: z.ZodOptional<z.ZodString>;
357
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
358
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
359
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
360
+ parameters: z.ZodOptional<z.ZodAny>;
361
+ baseUri: z.ZodString;
362
+ archivedAt: z.ZodOptional<z.ZodString>;
363
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
364
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
365
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
366
+ hasData: z.ZodOptional<z.ZodBoolean>;
367
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
368
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
369
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
370
+ isTest: z.ZodOptional<z.ZodBoolean>;
371
+ appUuid: z.ZodOptional<z.ZodString>;
372
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
373
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ key: string;
376
+ id: string;
377
+ name: string;
378
+ baseUri: string;
379
+ logoUri: string;
380
+ state?: import("..").WorkspaceElementState | undefined;
381
+ errors?: any[] | undefined;
382
+ parameters?: any;
383
+ parametersSchema?: import("../..").DataSchema | undefined;
384
+ archivedAt?: string | undefined;
385
+ isTest?: boolean | undefined;
386
+ connectorId?: string | undefined;
387
+ connectorVersion?: string | undefined;
388
+ authOptions?: any[] | undefined;
389
+ oAuthCallbackUri?: string | undefined;
390
+ hasMissingParameters?: boolean | undefined;
391
+ hasDocumentation?: boolean | undefined;
392
+ hasOperations?: boolean | undefined;
393
+ hasData?: boolean | undefined;
394
+ hasEvents?: boolean | undefined;
395
+ hasGlobalWebhooks?: boolean | undefined;
396
+ hasUdm?: boolean | undefined;
397
+ appUuid?: string | undefined;
398
+ isDeactivated?: boolean | undefined;
399
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
400
+ }, {
401
+ key: string;
402
+ id: string;
403
+ name: string;
404
+ baseUri: string;
405
+ logoUri: string;
406
+ state?: import("..").WorkspaceElementState | undefined;
407
+ errors?: any[] | undefined;
408
+ parameters?: any;
409
+ parametersSchema?: import("../..").DataSchema | undefined;
410
+ archivedAt?: string | undefined;
411
+ isTest?: boolean | undefined;
412
+ connectorId?: string | undefined;
413
+ connectorVersion?: string | undefined;
414
+ authOptions?: any[] | undefined;
415
+ oAuthCallbackUri?: string | undefined;
416
+ hasMissingParameters?: boolean | undefined;
417
+ hasDocumentation?: boolean | undefined;
418
+ hasOperations?: boolean | undefined;
419
+ hasData?: boolean | undefined;
420
+ hasEvents?: boolean | undefined;
421
+ hasGlobalWebhooks?: boolean | undefined;
422
+ hasUdm?: boolean | undefined;
423
+ appUuid?: string | undefined;
424
+ isDeactivated?: boolean | undefined;
425
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
426
+ }>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ integration: {
429
+ key: string;
430
+ id: string;
431
+ name: string;
432
+ baseUri: string;
433
+ logoUri: string;
434
+ state?: import("..").WorkspaceElementState | undefined;
435
+ errors?: any[] | undefined;
436
+ parameters?: any;
437
+ parametersSchema?: import("../..").DataSchema | undefined;
438
+ archivedAt?: string | undefined;
439
+ isTest?: boolean | undefined;
440
+ connectorId?: string | undefined;
441
+ connectorVersion?: string | undefined;
442
+ authOptions?: any[] | undefined;
443
+ oAuthCallbackUri?: string | undefined;
444
+ hasMissingParameters?: boolean | undefined;
445
+ hasDocumentation?: boolean | undefined;
446
+ hasOperations?: boolean | undefined;
447
+ hasData?: boolean | undefined;
448
+ hasEvents?: boolean | undefined;
449
+ hasGlobalWebhooks?: boolean | undefined;
450
+ hasUdm?: boolean | undefined;
451
+ appUuid?: string | undefined;
452
+ isDeactivated?: boolean | undefined;
453
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
454
+ };
455
+ element: {
456
+ key: string;
457
+ type: ActionType;
458
+ id: string;
459
+ name: string;
460
+ revision: string;
461
+ integrationId?: string | undefined;
462
+ createdAt?: string | undefined;
463
+ updatedAt?: string | undefined;
464
+ archivedAt?: string | undefined;
465
+ parentId?: string | undefined;
466
+ parentRevision?: string | undefined;
467
+ isCustomized?: boolean | undefined;
468
+ inputSchema?: import("../..").DataSchema | undefined;
469
+ config?: any;
470
+ outputMapping?: any;
471
+ customOutputSchema?: import("../..").DataSchema | undefined;
472
+ defaultOutputSchema?: import("../..").DataSchema | undefined;
473
+ transformedOutputSchema?: import("../..").DataSchema | undefined;
474
+ outputSchema?: import("../..").DataSchema | undefined;
475
+ dependencies?: any[] | undefined;
476
+ };
477
+ }, {
478
+ integration: {
479
+ key: string;
480
+ id: string;
481
+ name: string;
482
+ baseUri: string;
483
+ logoUri: string;
484
+ state?: import("..").WorkspaceElementState | undefined;
485
+ errors?: any[] | undefined;
486
+ parameters?: any;
487
+ parametersSchema?: import("../..").DataSchema | undefined;
488
+ archivedAt?: string | undefined;
489
+ isTest?: boolean | undefined;
490
+ connectorId?: string | undefined;
491
+ connectorVersion?: string | undefined;
492
+ authOptions?: any[] | undefined;
493
+ oAuthCallbackUri?: string | undefined;
494
+ hasMissingParameters?: boolean | undefined;
495
+ hasDocumentation?: boolean | undefined;
496
+ hasOperations?: boolean | undefined;
497
+ hasData?: boolean | undefined;
498
+ hasEvents?: boolean | undefined;
499
+ hasGlobalWebhooks?: boolean | undefined;
500
+ hasUdm?: boolean | undefined;
501
+ appUuid?: string | undefined;
502
+ isDeactivated?: boolean | undefined;
503
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
504
+ };
505
+ element: {
506
+ key: string;
507
+ type: ActionType;
508
+ id: string;
509
+ name: string;
510
+ revision: string;
511
+ integrationId?: string | undefined;
512
+ createdAt?: string | undefined;
513
+ updatedAt?: string | undefined;
514
+ archivedAt?: string | undefined;
515
+ parentId?: string | undefined;
516
+ parentRevision?: string | undefined;
517
+ isCustomized?: boolean | undefined;
518
+ inputSchema?: import("../..").DataSchema | undefined;
519
+ config?: any;
520
+ outputMapping?: any;
521
+ customOutputSchema?: import("../..").DataSchema | undefined;
522
+ defaultOutputSchema?: import("../..").DataSchema | undefined;
523
+ transformedOutputSchema?: import("../..").DataSchema | undefined;
524
+ outputSchema?: import("../..").DataSchema | undefined;
525
+ dependencies?: any[] | undefined;
526
+ };
527
+ }>, "many">>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ key: string;
530
+ type: ActionType;
531
+ id: string;
532
+ name: string;
533
+ revision: string;
534
+ integration?: {
535
+ key: string;
536
+ id: string;
537
+ name: string;
538
+ baseUri: string;
539
+ logoUri: string;
540
+ state?: import("..").WorkspaceElementState | undefined;
541
+ errors?: any[] | undefined;
542
+ parameters?: any;
543
+ parametersSchema?: import("../..").DataSchema | undefined;
544
+ archivedAt?: string | undefined;
545
+ isTest?: boolean | undefined;
546
+ connectorId?: string | undefined;
547
+ connectorVersion?: string | undefined;
548
+ authOptions?: any[] | undefined;
549
+ oAuthCallbackUri?: string | undefined;
550
+ hasMissingParameters?: boolean | undefined;
551
+ hasDocumentation?: boolean | undefined;
552
+ hasOperations?: boolean | undefined;
553
+ hasData?: boolean | undefined;
554
+ hasEvents?: boolean | undefined;
555
+ hasGlobalWebhooks?: boolean | undefined;
556
+ hasUdm?: boolean | undefined;
557
+ appUuid?: string | undefined;
558
+ isDeactivated?: boolean | undefined;
559
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
560
+ } | undefined;
561
+ integrationId?: string | undefined;
562
+ createdAt?: string | undefined;
563
+ updatedAt?: string | undefined;
564
+ archivedAt?: string | undefined;
565
+ parentId?: string | undefined;
566
+ parentRevision?: string | undefined;
567
+ isCustomized?: boolean | undefined;
568
+ inputSchema?: import("../..").DataSchema | undefined;
569
+ config?: any;
570
+ outputMapping?: any;
571
+ customOutputSchema?: import("../..").DataSchema | undefined;
572
+ defaultOutputSchema?: import("../..").DataSchema | undefined;
573
+ transformedOutputSchema?: import("../..").DataSchema | undefined;
574
+ outputSchema?: import("../..").DataSchema | undefined;
575
+ dependencies?: any[] | undefined;
576
+ appliedToIntegrations?: {
577
+ integration: {
578
+ key: string;
579
+ id: string;
580
+ name: string;
581
+ baseUri: string;
582
+ logoUri: string;
583
+ state?: import("..").WorkspaceElementState | undefined;
584
+ errors?: any[] | undefined;
585
+ parameters?: any;
586
+ parametersSchema?: import("../..").DataSchema | undefined;
587
+ archivedAt?: string | undefined;
588
+ isTest?: boolean | undefined;
589
+ connectorId?: string | undefined;
590
+ connectorVersion?: string | undefined;
591
+ authOptions?: any[] | undefined;
592
+ oAuthCallbackUri?: string | undefined;
593
+ hasMissingParameters?: boolean | undefined;
594
+ hasDocumentation?: boolean | undefined;
595
+ hasOperations?: boolean | undefined;
596
+ hasData?: boolean | undefined;
597
+ hasEvents?: boolean | undefined;
598
+ hasGlobalWebhooks?: boolean | undefined;
599
+ hasUdm?: boolean | undefined;
600
+ appUuid?: string | undefined;
601
+ isDeactivated?: boolean | undefined;
602
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
603
+ };
604
+ element: {
605
+ key: string;
606
+ type: ActionType;
607
+ id: string;
608
+ name: string;
609
+ revision: string;
610
+ integrationId?: string | undefined;
611
+ createdAt?: string | undefined;
612
+ updatedAt?: string | undefined;
613
+ archivedAt?: string | undefined;
614
+ parentId?: string | undefined;
615
+ parentRevision?: string | undefined;
616
+ isCustomized?: boolean | undefined;
617
+ inputSchema?: import("../..").DataSchema | undefined;
618
+ config?: any;
619
+ outputMapping?: any;
620
+ customOutputSchema?: import("../..").DataSchema | undefined;
621
+ defaultOutputSchema?: import("../..").DataSchema | undefined;
622
+ transformedOutputSchema?: import("../..").DataSchema | undefined;
623
+ outputSchema?: import("../..").DataSchema | undefined;
624
+ dependencies?: any[] | undefined;
625
+ };
626
+ }[] | undefined;
627
+ }, {
628
+ key: string;
629
+ type: ActionType;
630
+ id: string;
631
+ name: string;
632
+ revision: string;
633
+ integration?: {
634
+ key: string;
635
+ id: string;
636
+ name: string;
637
+ baseUri: string;
638
+ logoUri: string;
639
+ state?: import("..").WorkspaceElementState | undefined;
640
+ errors?: any[] | undefined;
641
+ parameters?: any;
642
+ parametersSchema?: import("../..").DataSchema | undefined;
643
+ archivedAt?: string | undefined;
644
+ isTest?: boolean | undefined;
645
+ connectorId?: string | undefined;
646
+ connectorVersion?: string | undefined;
647
+ authOptions?: any[] | undefined;
648
+ oAuthCallbackUri?: string | undefined;
649
+ hasMissingParameters?: boolean | undefined;
650
+ hasDocumentation?: boolean | undefined;
651
+ hasOperations?: boolean | undefined;
652
+ hasData?: boolean | undefined;
653
+ hasEvents?: boolean | undefined;
654
+ hasGlobalWebhooks?: boolean | undefined;
655
+ hasUdm?: boolean | undefined;
656
+ appUuid?: string | undefined;
657
+ isDeactivated?: boolean | undefined;
658
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
659
+ } | undefined;
660
+ integrationId?: string | undefined;
661
+ createdAt?: string | undefined;
662
+ updatedAt?: string | undefined;
663
+ archivedAt?: string | undefined;
664
+ parentId?: string | undefined;
665
+ parentRevision?: string | undefined;
666
+ isCustomized?: boolean | undefined;
667
+ inputSchema?: import("../..").DataSchema | undefined;
668
+ config?: any;
669
+ outputMapping?: any;
670
+ customOutputSchema?: import("../..").DataSchema | undefined;
671
+ defaultOutputSchema?: import("../..").DataSchema | undefined;
672
+ transformedOutputSchema?: import("../..").DataSchema | undefined;
673
+ outputSchema?: import("../..").DataSchema | undefined;
674
+ dependencies?: any[] | undefined;
675
+ appliedToIntegrations?: {
676
+ integration: {
677
+ key: string;
678
+ id: string;
679
+ name: string;
680
+ baseUri: string;
681
+ logoUri: string;
682
+ state?: import("..").WorkspaceElementState | undefined;
683
+ errors?: any[] | undefined;
684
+ parameters?: any;
685
+ parametersSchema?: import("../..").DataSchema | undefined;
686
+ archivedAt?: string | undefined;
687
+ isTest?: boolean | undefined;
688
+ connectorId?: string | undefined;
689
+ connectorVersion?: string | undefined;
690
+ authOptions?: any[] | undefined;
691
+ oAuthCallbackUri?: string | undefined;
692
+ hasMissingParameters?: boolean | undefined;
693
+ hasDocumentation?: boolean | undefined;
694
+ hasOperations?: boolean | undefined;
695
+ hasData?: boolean | undefined;
696
+ hasEvents?: boolean | undefined;
697
+ hasGlobalWebhooks?: boolean | undefined;
698
+ hasUdm?: boolean | undefined;
699
+ appUuid?: string | undefined;
700
+ isDeactivated?: boolean | undefined;
701
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
702
+ };
703
+ element: {
704
+ key: string;
705
+ type: ActionType;
706
+ id: string;
707
+ name: string;
708
+ revision: string;
709
+ integrationId?: string | undefined;
710
+ createdAt?: string | undefined;
711
+ updatedAt?: string | undefined;
712
+ archivedAt?: string | undefined;
713
+ parentId?: string | undefined;
714
+ parentRevision?: string | undefined;
715
+ isCustomized?: boolean | undefined;
716
+ inputSchema?: import("../..").DataSchema | undefined;
717
+ config?: any;
718
+ outputMapping?: any;
719
+ customOutputSchema?: import("../..").DataSchema | undefined;
720
+ defaultOutputSchema?: import("../..").DataSchema | undefined;
721
+ transformedOutputSchema?: import("../..").DataSchema | undefined;
722
+ outputSchema?: import("../..").DataSchema | undefined;
723
+ dependencies?: any[] | undefined;
724
+ };
725
+ }[] | undefined;
726
+ }>;
727
+ export type Action = z.infer<typeof Action>;
66
728
  export type ActionApiResponse = Action;