@membranehq/sdk 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/bundle.d.ts +10513 -4612
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +22 -15
  5. package/dist/dts/accessors/integrations-accessors.d.ts +22 -15
  6. package/dist/dts/data-schema/index.d.ts +0 -1
  7. package/dist/dts/entity-repository.d.ts +7 -6
  8. package/dist/dts/http-requests.d.ts +2 -2
  9. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +435 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +225 -114
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  13. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  14. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  15. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  16. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +505 -135
  18. package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
  19. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +447 -12
  20. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  21. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1496 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +189 -103
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +602 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +608 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +465 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +75 -41
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2570 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +199 -93
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1436 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +590 -295
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +176 -58
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +77 -36
  34. package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
  35. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +31 -15
  36. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
  37. package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
  38. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
  39. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
  40. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
  41. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
  42. package/dist/dts/workspace-elements/base/connections/types.d.ts +21 -21
  43. package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
  44. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
  45. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
  46. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
  47. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
  48. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
  49. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
  50. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
  51. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
  52. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +24 -9
  54. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
  55. package/dist/dts/workspace-elements/base/flows/types.d.ts +20 -6
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +187 -104
  57. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
  58. package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
  59. package/dist/dts/workspace-elements/types.d.ts +25 -3
  60. package/dist/dts/workspaces/types.d.ts +5 -4
  61. package/dist/index.d.ts +20345 -9526
  62. package/dist/index.js +268 -115
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +20345 -9526
  65. package/dist/index.module.mjs +234 -107
  66. package/dist/index.module.mjs.map +1 -1
  67. package/package.json +3 -2
  68. package/dist/dts/data-schema/schemas.d.ts +0 -4
  69. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -1,10 +1,465 @@
1
- import { BaseConnection } from '../base/connections';
2
- import { BaseCustomer } from '../base/customers';
3
- import { BaseExternalEventSubscription } from '../base/external-event-subscriptions';
4
- import { BaseIntegration } from '../base/integrations';
5
- export interface ExternalEventSubscription extends BaseExternalEventSubscription {
6
- user?: BaseCustomer;
7
- connection?: BaseConnection;
8
- integration?: BaseIntegration;
9
- }
10
- export type ExternalEventSubscriptionApiResponse = ExternalEventSubscription;
1
+ import { z } from 'zod';
2
+ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodOptional<z.ZodString>;
5
+ userId: z.ZodString;
6
+ connectionId: z.ZodString;
7
+ integrationId: z.ZodString;
8
+ config: z.ZodOptional<z.ZodObject<{
9
+ type: z.ZodNativeEnum<typeof import("../base/external-event-subscriptions").ExternalEventSubscriptionType>;
10
+ dataSource: z.ZodOptional<z.ZodObject<{
11
+ key: z.ZodOptional<z.ZodString>;
12
+ collectionKey: z.ZodOptional<z.ZodAny>;
13
+ collectionParameters: z.ZodOptional<z.ZodAny>;
14
+ udm: z.ZodOptional<z.ZodAny>;
15
+ path: z.ZodOptional<z.ZodString>;
16
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
17
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ key?: string | undefined;
20
+ path?: string | undefined;
21
+ udm?: any;
22
+ collectionKey?: any;
23
+ collectionParameters?: any;
24
+ pullUpdatesIntervalSeconds?: number | undefined;
25
+ fullSyncIntervalSeconds?: number | undefined;
26
+ }, {
27
+ key?: string | undefined;
28
+ path?: string | undefined;
29
+ udm?: any;
30
+ collectionKey?: any;
31
+ collectionParameters?: any;
32
+ pullUpdatesIntervalSeconds?: number | undefined;
33
+ fullSyncIntervalSeconds?: number | undefined;
34
+ }>>;
35
+ eventKey: z.ZodOptional<z.ZodString>;
36
+ eventParameters: z.ZodOptional<z.ZodAny>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
39
+ eventKey?: string | undefined;
40
+ eventParameters?: any;
41
+ dataSource?: {
42
+ key?: string | undefined;
43
+ path?: string | undefined;
44
+ udm?: any;
45
+ collectionKey?: any;
46
+ collectionParameters?: any;
47
+ pullUpdatesIntervalSeconds?: number | undefined;
48
+ fullSyncIntervalSeconds?: number | undefined;
49
+ } | undefined;
50
+ }, {
51
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
52
+ eventKey?: string | undefined;
53
+ eventParameters?: any;
54
+ dataSource?: {
55
+ key?: string | undefined;
56
+ path?: string | undefined;
57
+ udm?: any;
58
+ collectionKey?: any;
59
+ collectionParameters?: any;
60
+ pullUpdatesIntervalSeconds?: number | undefined;
61
+ fullSyncIntervalSeconds?: number | undefined;
62
+ } | undefined;
63
+ }>>;
64
+ status: z.ZodOptional<z.ZodNativeEnum<typeof import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus>>;
65
+ error: any;
66
+ isRealTime: z.ZodOptional<z.ZodBoolean>;
67
+ requiresPull: z.ZodOptional<z.ZodBoolean>;
68
+ requiresFullSync: z.ZodOptional<z.ZodBoolean>;
69
+ createdAt: z.ZodOptional<z.ZodString>;
70
+ archivedAt: z.ZodOptional<z.ZodString>;
71
+ stateData: z.ZodOptional<z.ZodAny>;
72
+ nextPullEventsTimestamp: z.ZodOptional<z.ZodNumber>;
73
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
74
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
75
+ nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
76
+ globalWebhookKey: z.ZodOptional<z.ZodString>;
77
+ globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
78
+ } & {
79
+ user: z.ZodOptional<z.ZodObject<{
80
+ id: z.ZodString;
81
+ name: z.ZodString;
82
+ internalId: z.ZodString;
83
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
84
+ credentials: z.ZodOptional<z.ZodAny>;
85
+ lastActiveAt: z.ZodOptional<z.ZodString>;
86
+ isTest: z.ZodOptional<z.ZodBoolean>;
87
+ isBillable: z.ZodOptional<z.ZodBoolean>;
88
+ createdAt: z.ZodOptional<z.ZodString>;
89
+ archivedAt: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ id: string;
92
+ name: string;
93
+ internalId: string;
94
+ createdAt?: string | undefined;
95
+ archivedAt?: string | undefined;
96
+ credentials?: any;
97
+ fields?: Record<string, any> | undefined;
98
+ isTest?: boolean | undefined;
99
+ lastActiveAt?: string | undefined;
100
+ isBillable?: boolean | undefined;
101
+ }, {
102
+ id: string;
103
+ name: string;
104
+ internalId: string;
105
+ createdAt?: string | undefined;
106
+ archivedAt?: string | undefined;
107
+ credentials?: any;
108
+ fields?: Record<string, any> | undefined;
109
+ isTest?: boolean | undefined;
110
+ lastActiveAt?: string | undefined;
111
+ isBillable?: boolean | undefined;
112
+ }>>;
113
+ connection: z.ZodOptional<z.ZodObject<{
114
+ id: z.ZodString;
115
+ } & {
116
+ name: z.ZodString;
117
+ userId: z.ZodString;
118
+ isTest: z.ZodOptional<z.ZodBoolean>;
119
+ disconnected: z.ZodOptional<z.ZodBoolean>;
120
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
121
+ error: any;
122
+ integrationId: z.ZodString;
123
+ authOptionKey: z.ZodOptional<z.ZodString>;
124
+ createdAt: z.ZodString;
125
+ updatedAt: z.ZodString;
126
+ lastActiveAt: z.ZodOptional<z.ZodString>;
127
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
128
+ archivedAt: z.ZodOptional<z.ZodString>;
129
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
130
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
131
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
132
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ id: string;
135
+ name: string;
136
+ createdAt: string;
137
+ updatedAt: string;
138
+ userId: string;
139
+ integrationId: string;
140
+ error?: any;
141
+ state?: import("..").WorkspaceElementState | undefined;
142
+ errors?: any[] | undefined;
143
+ isDeactivated?: boolean | undefined;
144
+ archivedAt?: string | undefined;
145
+ authOptionKey?: string | undefined;
146
+ isTest?: boolean | undefined;
147
+ disconnected?: boolean | undefined;
148
+ isDefunct?: boolean | undefined;
149
+ lastActiveAt?: string | undefined;
150
+ nextCredentialsRefreshAt?: string | undefined;
151
+ meta?: Record<string, any> | undefined;
152
+ }, {
153
+ id: string;
154
+ name: string;
155
+ createdAt: string;
156
+ updatedAt: string;
157
+ userId: string;
158
+ integrationId: string;
159
+ error?: any;
160
+ state?: import("..").WorkspaceElementState | undefined;
161
+ errors?: any[] | undefined;
162
+ isDeactivated?: boolean | undefined;
163
+ archivedAt?: string | undefined;
164
+ authOptionKey?: string | undefined;
165
+ isTest?: boolean | undefined;
166
+ disconnected?: boolean | undefined;
167
+ isDefunct?: boolean | undefined;
168
+ lastActiveAt?: string | undefined;
169
+ nextCredentialsRefreshAt?: string | undefined;
170
+ meta?: Record<string, any> | undefined;
171
+ }>>;
172
+ integration: z.ZodOptional<z.ZodObject<{
173
+ id: z.ZodString;
174
+ name: z.ZodString;
175
+ key: z.ZodOptional<z.ZodString>;
176
+ uuid: z.ZodOptional<z.ZodString>;
177
+ description: z.ZodOptional<z.ZodString>;
178
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
179
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
180
+ revision: z.ZodOptional<z.ZodString>;
181
+ createdAt: z.ZodOptional<z.ZodString>;
182
+ updatedAt: z.ZodOptional<z.ZodString>;
183
+ } & {
184
+ logoUri: z.ZodString;
185
+ connectorId: z.ZodOptional<z.ZodString>;
186
+ connectorVersion: z.ZodOptional<z.ZodString>;
187
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
188
+ parameters: z.ZodOptional<z.ZodAny>;
189
+ archivedAt: z.ZodOptional<z.ZodString>;
190
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
191
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
192
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
193
+ operationsCount: z.ZodOptional<z.ZodNumber>;
194
+ hasData: z.ZodOptional<z.ZodBoolean>;
195
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
196
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
197
+ eventsCount: z.ZodOptional<z.ZodNumber>;
198
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
199
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
200
+ isTest: z.ZodOptional<z.ZodBoolean>;
201
+ appUuid: z.ZodOptional<z.ZodString>;
202
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
203
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ id: string;
206
+ name: string;
207
+ logoUri: string;
208
+ key?: string | undefined;
209
+ uuid?: string | undefined;
210
+ description?: string | undefined;
211
+ state?: import("..").WorkspaceElementState | undefined;
212
+ errors?: any[] | undefined;
213
+ revision?: string | undefined;
214
+ isDeactivated?: boolean | undefined;
215
+ createdAt?: string | undefined;
216
+ updatedAt?: string | undefined;
217
+ archivedAt?: string | undefined;
218
+ parameters?: any;
219
+ isTest?: boolean | undefined;
220
+ connectorId?: string | undefined;
221
+ connectorVersion?: string | undefined;
222
+ oAuthCallbackUri?: string | undefined;
223
+ hasMissingParameters?: boolean | undefined;
224
+ hasDocumentation?: boolean | undefined;
225
+ hasOperations?: boolean | undefined;
226
+ operationsCount?: number | undefined;
227
+ hasData?: boolean | undefined;
228
+ dataCollectionsCount?: number | undefined;
229
+ hasEvents?: boolean | undefined;
230
+ eventsCount?: number | undefined;
231
+ hasGlobalWebhooks?: boolean | undefined;
232
+ hasUdm?: boolean | undefined;
233
+ appUuid?: string | undefined;
234
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
235
+ }, {
236
+ id: string;
237
+ name: string;
238
+ logoUri: string;
239
+ key?: string | undefined;
240
+ uuid?: string | undefined;
241
+ description?: string | undefined;
242
+ state?: import("..").WorkspaceElementState | undefined;
243
+ errors?: any[] | undefined;
244
+ revision?: string | undefined;
245
+ isDeactivated?: boolean | undefined;
246
+ createdAt?: string | undefined;
247
+ updatedAt?: string | undefined;
248
+ archivedAt?: string | undefined;
249
+ parameters?: any;
250
+ isTest?: boolean | undefined;
251
+ connectorId?: string | undefined;
252
+ connectorVersion?: string | undefined;
253
+ oAuthCallbackUri?: string | undefined;
254
+ hasMissingParameters?: boolean | undefined;
255
+ hasDocumentation?: boolean | undefined;
256
+ hasOperations?: boolean | undefined;
257
+ operationsCount?: number | undefined;
258
+ hasData?: boolean | undefined;
259
+ dataCollectionsCount?: number | undefined;
260
+ hasEvents?: boolean | undefined;
261
+ eventsCount?: number | undefined;
262
+ hasGlobalWebhooks?: boolean | undefined;
263
+ hasUdm?: boolean | undefined;
264
+ appUuid?: string | undefined;
265
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
266
+ }>>;
267
+ }, "strip", z.ZodTypeAny, {
268
+ id: string;
269
+ userId: string;
270
+ connectionId: string;
271
+ integrationId: string;
272
+ connection?: {
273
+ id: string;
274
+ name: string;
275
+ createdAt: string;
276
+ updatedAt: string;
277
+ userId: string;
278
+ integrationId: string;
279
+ error?: any;
280
+ state?: import("..").WorkspaceElementState | undefined;
281
+ errors?: any[] | undefined;
282
+ isDeactivated?: boolean | undefined;
283
+ archivedAt?: string | undefined;
284
+ authOptionKey?: string | undefined;
285
+ isTest?: boolean | undefined;
286
+ disconnected?: boolean | undefined;
287
+ isDefunct?: boolean | undefined;
288
+ lastActiveAt?: string | undefined;
289
+ nextCredentialsRefreshAt?: string | undefined;
290
+ meta?: Record<string, any> | undefined;
291
+ } | undefined;
292
+ status?: import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus | undefined;
293
+ error?: any;
294
+ integration?: {
295
+ id: string;
296
+ name: string;
297
+ logoUri: string;
298
+ key?: string | undefined;
299
+ uuid?: string | undefined;
300
+ description?: string | undefined;
301
+ state?: import("..").WorkspaceElementState | undefined;
302
+ errors?: any[] | undefined;
303
+ revision?: string | undefined;
304
+ isDeactivated?: boolean | undefined;
305
+ createdAt?: string | undefined;
306
+ updatedAt?: string | undefined;
307
+ archivedAt?: string | undefined;
308
+ parameters?: any;
309
+ isTest?: boolean | undefined;
310
+ connectorId?: string | undefined;
311
+ connectorVersion?: string | undefined;
312
+ oAuthCallbackUri?: string | undefined;
313
+ hasMissingParameters?: boolean | undefined;
314
+ hasDocumentation?: boolean | undefined;
315
+ hasOperations?: boolean | undefined;
316
+ operationsCount?: number | undefined;
317
+ hasData?: boolean | undefined;
318
+ dataCollectionsCount?: number | undefined;
319
+ hasEvents?: boolean | undefined;
320
+ eventsCount?: number | undefined;
321
+ hasGlobalWebhooks?: boolean | undefined;
322
+ hasUdm?: boolean | undefined;
323
+ appUuid?: string | undefined;
324
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
325
+ } | undefined;
326
+ name?: string | undefined;
327
+ createdAt?: string | undefined;
328
+ archivedAt?: string | undefined;
329
+ nextRefreshTimestamp?: number | undefined;
330
+ user?: {
331
+ id: string;
332
+ name: string;
333
+ internalId: string;
334
+ createdAt?: string | undefined;
335
+ archivedAt?: string | undefined;
336
+ credentials?: any;
337
+ fields?: Record<string, any> | undefined;
338
+ isTest?: boolean | undefined;
339
+ lastActiveAt?: string | undefined;
340
+ isBillable?: boolean | undefined;
341
+ } | undefined;
342
+ config?: {
343
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
344
+ eventKey?: string | undefined;
345
+ eventParameters?: any;
346
+ dataSource?: {
347
+ key?: string | undefined;
348
+ path?: string | undefined;
349
+ udm?: any;
350
+ collectionKey?: any;
351
+ collectionParameters?: any;
352
+ pullUpdatesIntervalSeconds?: number | undefined;
353
+ fullSyncIntervalSeconds?: number | undefined;
354
+ } | undefined;
355
+ } | undefined;
356
+ pullUpdatesIntervalSeconds?: number | undefined;
357
+ fullSyncIntervalSeconds?: number | undefined;
358
+ isRealTime?: boolean | undefined;
359
+ requiresPull?: boolean | undefined;
360
+ requiresFullSync?: boolean | undefined;
361
+ stateData?: any;
362
+ nextPullEventsTimestamp?: number | undefined;
363
+ globalWebhookKey?: string | undefined;
364
+ globalWebhookEventSelector?: string | undefined;
365
+ }, {
366
+ id: string;
367
+ userId: string;
368
+ connectionId: string;
369
+ integrationId: string;
370
+ connection?: {
371
+ id: string;
372
+ name: string;
373
+ createdAt: string;
374
+ updatedAt: string;
375
+ userId: string;
376
+ integrationId: string;
377
+ error?: any;
378
+ state?: import("..").WorkspaceElementState | undefined;
379
+ errors?: any[] | undefined;
380
+ isDeactivated?: boolean | undefined;
381
+ archivedAt?: string | undefined;
382
+ authOptionKey?: string | undefined;
383
+ isTest?: boolean | undefined;
384
+ disconnected?: boolean | undefined;
385
+ isDefunct?: boolean | undefined;
386
+ lastActiveAt?: string | undefined;
387
+ nextCredentialsRefreshAt?: string | undefined;
388
+ meta?: Record<string, any> | undefined;
389
+ } | undefined;
390
+ status?: import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus | undefined;
391
+ error?: any;
392
+ integration?: {
393
+ id: string;
394
+ name: string;
395
+ logoUri: string;
396
+ key?: string | undefined;
397
+ uuid?: string | undefined;
398
+ description?: string | undefined;
399
+ state?: import("..").WorkspaceElementState | undefined;
400
+ errors?: any[] | undefined;
401
+ revision?: string | undefined;
402
+ isDeactivated?: boolean | undefined;
403
+ createdAt?: string | undefined;
404
+ updatedAt?: string | undefined;
405
+ archivedAt?: string | undefined;
406
+ parameters?: any;
407
+ isTest?: boolean | undefined;
408
+ connectorId?: string | undefined;
409
+ connectorVersion?: string | undefined;
410
+ oAuthCallbackUri?: string | undefined;
411
+ hasMissingParameters?: boolean | undefined;
412
+ hasDocumentation?: boolean | undefined;
413
+ hasOperations?: boolean | undefined;
414
+ operationsCount?: number | undefined;
415
+ hasData?: boolean | undefined;
416
+ dataCollectionsCount?: number | undefined;
417
+ hasEvents?: boolean | undefined;
418
+ eventsCount?: number | undefined;
419
+ hasGlobalWebhooks?: boolean | undefined;
420
+ hasUdm?: boolean | undefined;
421
+ appUuid?: string | undefined;
422
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
423
+ } | undefined;
424
+ name?: string | undefined;
425
+ createdAt?: string | undefined;
426
+ archivedAt?: string | undefined;
427
+ nextRefreshTimestamp?: number | undefined;
428
+ user?: {
429
+ id: string;
430
+ name: string;
431
+ internalId: string;
432
+ createdAt?: string | undefined;
433
+ archivedAt?: string | undefined;
434
+ credentials?: any;
435
+ fields?: Record<string, any> | undefined;
436
+ isTest?: boolean | undefined;
437
+ lastActiveAt?: string | undefined;
438
+ isBillable?: boolean | undefined;
439
+ } | undefined;
440
+ config?: {
441
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
442
+ eventKey?: string | undefined;
443
+ eventParameters?: any;
444
+ dataSource?: {
445
+ key?: string | undefined;
446
+ path?: string | undefined;
447
+ udm?: any;
448
+ collectionKey?: any;
449
+ collectionParameters?: any;
450
+ pullUpdatesIntervalSeconds?: number | undefined;
451
+ fullSyncIntervalSeconds?: number | undefined;
452
+ } | undefined;
453
+ } | undefined;
454
+ pullUpdatesIntervalSeconds?: number | undefined;
455
+ fullSyncIntervalSeconds?: number | undefined;
456
+ isRealTime?: boolean | undefined;
457
+ requiresPull?: boolean | undefined;
458
+ requiresFullSync?: boolean | undefined;
459
+ stateData?: any;
460
+ nextPullEventsTimestamp?: number | undefined;
461
+ globalWebhookKey?: string | undefined;
462
+ globalWebhookEventSelector?: string | undefined;
463
+ }>;
464
+ export type ExternalEventSubscriptionApiResponse = z.infer<typeof ExternalEventSubscriptionApiResponse>;
465
+ export type ExternalEventSubscription = ExternalEventSubscriptionApiResponse;