@membranehq/sdk 0.4.0 → 0.5.1

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