@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,19 +1,608 @@
1
- import { CommonListElementsQuery } from '../../entity-repository';
2
- import { BaseConnection } from '../base/connections';
3
- import { BaseCustomer } from '../base/customers';
4
- import { ExternalEventPullStatus, BaseExternalEventPull } from '../base/external-event-pulls';
5
- import { BaseExternalEventSubscription } from '../base/external-event-subscriptions';
6
- import { BaseIntegration } from '../base/integrations';
7
- export interface ListExternalEventPullsQuery extends CommonListElementsQuery {
8
- connectionId?: string;
9
- integrationId?: string;
10
- externalEventSubscriptionId?: string;
11
- status?: ExternalEventPullStatus;
12
- }
13
- export interface ExternalEventPull extends BaseExternalEventPull {
14
- user?: BaseCustomer;
15
- externalEventSubscription?: BaseExternalEventSubscription;
16
- integration?: BaseIntegration;
17
- connection?: BaseConnection;
18
- }
19
- export type ExternalEventPullApiResponse = ExternalEventPull;
1
+ import { z } from 'zod';
2
+ import { ExternalEventPullStatus } from '../base/external-event-pulls';
3
+ export declare const ListExternalEventPullsQuery: z.ZodObject<{
4
+ search: z.ZodOptional<z.ZodString>;
5
+ } & {
6
+ limit: z.ZodOptional<z.ZodNumber>;
7
+ cursor: z.ZodOptional<z.ZodString>;
8
+ } & {
9
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
10
+ } & {
11
+ connectionId: z.ZodOptional<z.ZodString>;
12
+ integrationId: z.ZodOptional<z.ZodString>;
13
+ externalEventSubscriptionId: z.ZodOptional<z.ZodString>;
14
+ status: z.ZodOptional<z.ZodNativeEnum<typeof ExternalEventPullStatus>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ search?: string | undefined;
17
+ status?: ExternalEventPullStatus | undefined;
18
+ includeArchived?: boolean | undefined;
19
+ limit?: number | undefined;
20
+ cursor?: string | undefined;
21
+ connectionId?: string | undefined;
22
+ integrationId?: string | undefined;
23
+ externalEventSubscriptionId?: string | undefined;
24
+ }, {
25
+ search?: string | undefined;
26
+ status?: ExternalEventPullStatus | undefined;
27
+ includeArchived?: unknown;
28
+ limit?: number | undefined;
29
+ cursor?: string | undefined;
30
+ connectionId?: string | undefined;
31
+ integrationId?: string | undefined;
32
+ externalEventSubscriptionId?: string | undefined;
33
+ }>;
34
+ export type ListExternalEventPullsQuery = z.infer<typeof ListExternalEventPullsQuery>;
35
+ export declare const ExternalEventPullApiResponse: z.ZodObject<{
36
+ id: z.ZodString;
37
+ name: z.ZodOptional<z.ZodString>;
38
+ userId: z.ZodString;
39
+ externalEventSubscriptionId: z.ZodString;
40
+ integrationId: z.ZodString;
41
+ connectionId: z.ZodString;
42
+ startDatetime: z.ZodString;
43
+ endDatetime: z.ZodString;
44
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
45
+ status: z.ZodNativeEnum<typeof ExternalEventPullStatus>;
46
+ collectedEventIds: z.ZodArray<z.ZodString, "many">;
47
+ error: any;
48
+ } & {
49
+ user: z.ZodOptional<z.ZodObject<{
50
+ id: z.ZodString;
51
+ name: z.ZodString;
52
+ internalId: z.ZodString;
53
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
54
+ credentials: z.ZodOptional<z.ZodAny>;
55
+ lastActiveAt: z.ZodOptional<z.ZodString>;
56
+ isTest: z.ZodOptional<z.ZodBoolean>;
57
+ isBillable: z.ZodOptional<z.ZodBoolean>;
58
+ createdAt: z.ZodOptional<z.ZodString>;
59
+ archivedAt: z.ZodOptional<z.ZodString>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ id: string;
62
+ name: string;
63
+ internalId: string;
64
+ createdAt?: string | undefined;
65
+ archivedAt?: string | undefined;
66
+ credentials?: any;
67
+ fields?: Record<string, any> | undefined;
68
+ isTest?: boolean | undefined;
69
+ lastActiveAt?: string | undefined;
70
+ isBillable?: boolean | undefined;
71
+ }, {
72
+ id: string;
73
+ name: string;
74
+ internalId: string;
75
+ createdAt?: string | undefined;
76
+ archivedAt?: string | undefined;
77
+ credentials?: any;
78
+ fields?: Record<string, any> | undefined;
79
+ isTest?: boolean | undefined;
80
+ lastActiveAt?: string | undefined;
81
+ isBillable?: boolean | undefined;
82
+ }>>;
83
+ externalEventSubscription: z.ZodOptional<z.ZodObject<{
84
+ id: z.ZodString;
85
+ name: z.ZodOptional<z.ZodString>;
86
+ userId: z.ZodString;
87
+ connectionId: z.ZodString;
88
+ integrationId: z.ZodString;
89
+ config: z.ZodOptional<z.ZodObject<{
90
+ type: z.ZodNativeEnum<typeof import("../base/external-event-subscriptions").ExternalEventSubscriptionType>;
91
+ dataSource: z.ZodOptional<z.ZodObject<{
92
+ key: z.ZodOptional<z.ZodString>;
93
+ collectionKey: z.ZodOptional<z.ZodAny>;
94
+ collectionParameters: z.ZodOptional<z.ZodAny>;
95
+ udm: z.ZodOptional<z.ZodAny>;
96
+ path: z.ZodOptional<z.ZodString>;
97
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
98
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ key?: string | undefined;
101
+ path?: string | undefined;
102
+ udm?: any;
103
+ collectionKey?: any;
104
+ collectionParameters?: any;
105
+ pullUpdatesIntervalSeconds?: number | undefined;
106
+ fullSyncIntervalSeconds?: number | undefined;
107
+ }, {
108
+ key?: string | undefined;
109
+ path?: string | undefined;
110
+ udm?: any;
111
+ collectionKey?: any;
112
+ collectionParameters?: any;
113
+ pullUpdatesIntervalSeconds?: number | undefined;
114
+ fullSyncIntervalSeconds?: number | undefined;
115
+ }>>;
116
+ eventKey: z.ZodOptional<z.ZodString>;
117
+ eventParameters: z.ZodOptional<z.ZodAny>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
120
+ eventKey?: string | undefined;
121
+ eventParameters?: any;
122
+ dataSource?: {
123
+ key?: string | undefined;
124
+ path?: string | undefined;
125
+ udm?: any;
126
+ collectionKey?: any;
127
+ collectionParameters?: any;
128
+ pullUpdatesIntervalSeconds?: number | undefined;
129
+ fullSyncIntervalSeconds?: number | undefined;
130
+ } | undefined;
131
+ }, {
132
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
133
+ eventKey?: string | undefined;
134
+ eventParameters?: any;
135
+ dataSource?: {
136
+ key?: string | undefined;
137
+ path?: string | undefined;
138
+ udm?: any;
139
+ collectionKey?: any;
140
+ collectionParameters?: any;
141
+ pullUpdatesIntervalSeconds?: number | undefined;
142
+ fullSyncIntervalSeconds?: number | undefined;
143
+ } | undefined;
144
+ }>>;
145
+ status: z.ZodOptional<z.ZodNativeEnum<typeof import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus>>;
146
+ error: any;
147
+ isRealTime: z.ZodOptional<z.ZodBoolean>;
148
+ requiresPull: z.ZodOptional<z.ZodBoolean>;
149
+ requiresFullSync: z.ZodOptional<z.ZodBoolean>;
150
+ createdAt: z.ZodOptional<z.ZodString>;
151
+ archivedAt: z.ZodOptional<z.ZodString>;
152
+ stateData: z.ZodOptional<z.ZodAny>;
153
+ nextPullEventsTimestamp: z.ZodOptional<z.ZodNumber>;
154
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
155
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
156
+ nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
157
+ globalWebhookKey: z.ZodOptional<z.ZodString>;
158
+ globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ id: string;
161
+ userId: string;
162
+ connectionId: string;
163
+ integrationId: string;
164
+ status?: import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus | undefined;
165
+ error?: any;
166
+ name?: string | undefined;
167
+ createdAt?: string | undefined;
168
+ archivedAt?: string | undefined;
169
+ nextRefreshTimestamp?: number | undefined;
170
+ config?: {
171
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
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
+ } | undefined;
184
+ pullUpdatesIntervalSeconds?: number | undefined;
185
+ fullSyncIntervalSeconds?: number | undefined;
186
+ isRealTime?: boolean | undefined;
187
+ requiresPull?: boolean | undefined;
188
+ requiresFullSync?: boolean | undefined;
189
+ stateData?: any;
190
+ nextPullEventsTimestamp?: number | undefined;
191
+ globalWebhookKey?: string | undefined;
192
+ globalWebhookEventSelector?: string | undefined;
193
+ }, {
194
+ id: string;
195
+ userId: string;
196
+ connectionId: string;
197
+ integrationId: string;
198
+ status?: import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus | undefined;
199
+ error?: any;
200
+ name?: string | undefined;
201
+ createdAt?: string | undefined;
202
+ archivedAt?: string | undefined;
203
+ nextRefreshTimestamp?: number | undefined;
204
+ config?: {
205
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
206
+ eventKey?: string | undefined;
207
+ eventParameters?: any;
208
+ dataSource?: {
209
+ key?: string | undefined;
210
+ path?: string | undefined;
211
+ udm?: any;
212
+ collectionKey?: any;
213
+ collectionParameters?: any;
214
+ pullUpdatesIntervalSeconds?: number | undefined;
215
+ fullSyncIntervalSeconds?: number | undefined;
216
+ } | undefined;
217
+ } | undefined;
218
+ pullUpdatesIntervalSeconds?: number | undefined;
219
+ fullSyncIntervalSeconds?: number | undefined;
220
+ isRealTime?: boolean | undefined;
221
+ requiresPull?: boolean | undefined;
222
+ requiresFullSync?: boolean | undefined;
223
+ stateData?: any;
224
+ nextPullEventsTimestamp?: number | undefined;
225
+ globalWebhookKey?: string | undefined;
226
+ globalWebhookEventSelector?: string | undefined;
227
+ }>>;
228
+ integration: z.ZodOptional<z.ZodObject<{
229
+ id: z.ZodString;
230
+ name: z.ZodString;
231
+ key: z.ZodOptional<z.ZodString>;
232
+ uuid: z.ZodOptional<z.ZodString>;
233
+ description: z.ZodOptional<z.ZodString>;
234
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
235
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
236
+ revision: z.ZodOptional<z.ZodString>;
237
+ createdAt: z.ZodOptional<z.ZodString>;
238
+ updatedAt: z.ZodOptional<z.ZodString>;
239
+ } & {
240
+ logoUri: z.ZodString;
241
+ connectorId: z.ZodOptional<z.ZodString>;
242
+ connectorVersion: z.ZodOptional<z.ZodString>;
243
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
244
+ parameters: z.ZodOptional<z.ZodAny>;
245
+ archivedAt: z.ZodOptional<z.ZodString>;
246
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
247
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
248
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
249
+ operationsCount: z.ZodOptional<z.ZodNumber>;
250
+ hasData: z.ZodOptional<z.ZodBoolean>;
251
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
252
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
253
+ eventsCount: z.ZodOptional<z.ZodNumber>;
254
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
255
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
256
+ isTest: z.ZodOptional<z.ZodBoolean>;
257
+ appUuid: z.ZodOptional<z.ZodString>;
258
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
259
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ id: string;
262
+ name: string;
263
+ logoUri: string;
264
+ key?: string | undefined;
265
+ uuid?: string | undefined;
266
+ description?: string | undefined;
267
+ state?: import("..").WorkspaceElementState | undefined;
268
+ errors?: any[] | undefined;
269
+ revision?: string | undefined;
270
+ isDeactivated?: boolean | undefined;
271
+ createdAt?: string | undefined;
272
+ updatedAt?: string | undefined;
273
+ archivedAt?: string | undefined;
274
+ parameters?: any;
275
+ isTest?: boolean | undefined;
276
+ connectorId?: string | undefined;
277
+ connectorVersion?: string | undefined;
278
+ oAuthCallbackUri?: string | undefined;
279
+ hasMissingParameters?: boolean | undefined;
280
+ hasDocumentation?: boolean | undefined;
281
+ hasOperations?: boolean | undefined;
282
+ operationsCount?: number | undefined;
283
+ hasData?: boolean | undefined;
284
+ dataCollectionsCount?: number | undefined;
285
+ hasEvents?: boolean | undefined;
286
+ eventsCount?: number | undefined;
287
+ hasGlobalWebhooks?: boolean | undefined;
288
+ hasUdm?: boolean | undefined;
289
+ appUuid?: string | undefined;
290
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
291
+ }, {
292
+ id: string;
293
+ name: string;
294
+ logoUri: string;
295
+ key?: string | undefined;
296
+ uuid?: string | undefined;
297
+ description?: string | undefined;
298
+ state?: import("..").WorkspaceElementState | undefined;
299
+ errors?: any[] | undefined;
300
+ revision?: string | undefined;
301
+ isDeactivated?: boolean | undefined;
302
+ createdAt?: string | undefined;
303
+ updatedAt?: string | undefined;
304
+ archivedAt?: string | undefined;
305
+ parameters?: any;
306
+ isTest?: boolean | undefined;
307
+ connectorId?: string | undefined;
308
+ connectorVersion?: string | undefined;
309
+ oAuthCallbackUri?: string | undefined;
310
+ hasMissingParameters?: boolean | undefined;
311
+ hasDocumentation?: boolean | undefined;
312
+ hasOperations?: boolean | undefined;
313
+ operationsCount?: number | undefined;
314
+ hasData?: boolean | undefined;
315
+ dataCollectionsCount?: number | undefined;
316
+ hasEvents?: boolean | undefined;
317
+ eventsCount?: number | undefined;
318
+ hasGlobalWebhooks?: boolean | undefined;
319
+ hasUdm?: boolean | undefined;
320
+ appUuid?: string | undefined;
321
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
322
+ }>>;
323
+ connection: z.ZodOptional<z.ZodObject<{
324
+ id: z.ZodString;
325
+ } & {
326
+ name: z.ZodString;
327
+ userId: z.ZodString;
328
+ isTest: z.ZodOptional<z.ZodBoolean>;
329
+ disconnected: z.ZodOptional<z.ZodBoolean>;
330
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
331
+ error: any;
332
+ integrationId: z.ZodString;
333
+ authOptionKey: z.ZodOptional<z.ZodString>;
334
+ createdAt: z.ZodString;
335
+ updatedAt: z.ZodString;
336
+ lastActiveAt: z.ZodOptional<z.ZodString>;
337
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
338
+ archivedAt: z.ZodOptional<z.ZodString>;
339
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
340
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
341
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
342
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ id: string;
345
+ name: string;
346
+ createdAt: string;
347
+ updatedAt: string;
348
+ userId: string;
349
+ integrationId: string;
350
+ error?: any;
351
+ state?: import("..").WorkspaceElementState | undefined;
352
+ errors?: any[] | undefined;
353
+ isDeactivated?: boolean | undefined;
354
+ archivedAt?: string | undefined;
355
+ authOptionKey?: string | undefined;
356
+ isTest?: boolean | undefined;
357
+ disconnected?: boolean | undefined;
358
+ isDefunct?: boolean | undefined;
359
+ lastActiveAt?: string | undefined;
360
+ nextCredentialsRefreshAt?: string | undefined;
361
+ meta?: Record<string, any> | undefined;
362
+ }, {
363
+ id: string;
364
+ name: string;
365
+ createdAt: string;
366
+ updatedAt: string;
367
+ userId: string;
368
+ integrationId: string;
369
+ error?: any;
370
+ state?: import("..").WorkspaceElementState | undefined;
371
+ errors?: any[] | undefined;
372
+ isDeactivated?: boolean | undefined;
373
+ archivedAt?: string | undefined;
374
+ authOptionKey?: string | undefined;
375
+ isTest?: boolean | undefined;
376
+ disconnected?: boolean | undefined;
377
+ isDefunct?: boolean | undefined;
378
+ lastActiveAt?: string | undefined;
379
+ nextCredentialsRefreshAt?: string | undefined;
380
+ meta?: Record<string, any> | undefined;
381
+ }>>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ status: ExternalEventPullStatus;
384
+ id: string;
385
+ userId: string;
386
+ connectionId: string;
387
+ integrationId: string;
388
+ startDatetime: string;
389
+ endDatetime: string;
390
+ externalEventSubscriptionId: string;
391
+ collectedEventIds: string[];
392
+ connection?: {
393
+ id: string;
394
+ name: string;
395
+ createdAt: string;
396
+ updatedAt: string;
397
+ userId: string;
398
+ integrationId: string;
399
+ error?: any;
400
+ state?: import("..").WorkspaceElementState | undefined;
401
+ errors?: any[] | undefined;
402
+ isDeactivated?: boolean | undefined;
403
+ archivedAt?: string | undefined;
404
+ authOptionKey?: string | undefined;
405
+ isTest?: boolean | undefined;
406
+ disconnected?: boolean | undefined;
407
+ isDefunct?: boolean | undefined;
408
+ lastActiveAt?: string | undefined;
409
+ nextCredentialsRefreshAt?: string | undefined;
410
+ meta?: Record<string, any> | undefined;
411
+ } | undefined;
412
+ error?: any;
413
+ integration?: {
414
+ id: string;
415
+ name: string;
416
+ logoUri: string;
417
+ key?: string | undefined;
418
+ uuid?: string | undefined;
419
+ description?: string | undefined;
420
+ state?: import("..").WorkspaceElementState | undefined;
421
+ errors?: any[] | undefined;
422
+ revision?: string | undefined;
423
+ isDeactivated?: boolean | undefined;
424
+ createdAt?: string | undefined;
425
+ updatedAt?: string | undefined;
426
+ archivedAt?: string | undefined;
427
+ parameters?: any;
428
+ isTest?: boolean | undefined;
429
+ connectorId?: string | undefined;
430
+ connectorVersion?: string | undefined;
431
+ oAuthCallbackUri?: string | undefined;
432
+ hasMissingParameters?: boolean | undefined;
433
+ hasDocumentation?: boolean | undefined;
434
+ hasOperations?: boolean | undefined;
435
+ operationsCount?: number | undefined;
436
+ hasData?: boolean | undefined;
437
+ dataCollectionsCount?: number | undefined;
438
+ hasEvents?: boolean | undefined;
439
+ eventsCount?: number | undefined;
440
+ hasGlobalWebhooks?: boolean | undefined;
441
+ hasUdm?: boolean | undefined;
442
+ appUuid?: string | undefined;
443
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
444
+ } | undefined;
445
+ name?: string | undefined;
446
+ isFullScan?: boolean | undefined;
447
+ user?: {
448
+ id: string;
449
+ name: string;
450
+ internalId: string;
451
+ createdAt?: string | undefined;
452
+ archivedAt?: string | undefined;
453
+ credentials?: any;
454
+ fields?: Record<string, any> | undefined;
455
+ isTest?: boolean | undefined;
456
+ lastActiveAt?: string | undefined;
457
+ isBillable?: boolean | undefined;
458
+ } | undefined;
459
+ externalEventSubscription?: {
460
+ id: string;
461
+ userId: string;
462
+ connectionId: string;
463
+ integrationId: string;
464
+ status?: import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus | undefined;
465
+ error?: any;
466
+ name?: string | undefined;
467
+ createdAt?: string | undefined;
468
+ archivedAt?: string | undefined;
469
+ nextRefreshTimestamp?: number | undefined;
470
+ config?: {
471
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
472
+ eventKey?: string | undefined;
473
+ eventParameters?: any;
474
+ dataSource?: {
475
+ key?: string | undefined;
476
+ path?: string | undefined;
477
+ udm?: any;
478
+ collectionKey?: any;
479
+ collectionParameters?: any;
480
+ pullUpdatesIntervalSeconds?: number | undefined;
481
+ fullSyncIntervalSeconds?: number | undefined;
482
+ } | undefined;
483
+ } | undefined;
484
+ pullUpdatesIntervalSeconds?: number | undefined;
485
+ fullSyncIntervalSeconds?: number | undefined;
486
+ isRealTime?: boolean | undefined;
487
+ requiresPull?: boolean | undefined;
488
+ requiresFullSync?: boolean | undefined;
489
+ stateData?: any;
490
+ nextPullEventsTimestamp?: number | undefined;
491
+ globalWebhookKey?: string | undefined;
492
+ globalWebhookEventSelector?: string | undefined;
493
+ } | undefined;
494
+ }, {
495
+ status: ExternalEventPullStatus;
496
+ id: string;
497
+ userId: string;
498
+ connectionId: string;
499
+ integrationId: string;
500
+ startDatetime: string;
501
+ endDatetime: string;
502
+ externalEventSubscriptionId: string;
503
+ collectedEventIds: string[];
504
+ connection?: {
505
+ id: string;
506
+ name: string;
507
+ createdAt: string;
508
+ updatedAt: string;
509
+ userId: string;
510
+ integrationId: string;
511
+ error?: any;
512
+ state?: import("..").WorkspaceElementState | undefined;
513
+ errors?: any[] | undefined;
514
+ isDeactivated?: boolean | undefined;
515
+ archivedAt?: string | undefined;
516
+ authOptionKey?: string | undefined;
517
+ isTest?: boolean | undefined;
518
+ disconnected?: boolean | undefined;
519
+ isDefunct?: boolean | undefined;
520
+ lastActiveAt?: string | undefined;
521
+ nextCredentialsRefreshAt?: string | undefined;
522
+ meta?: Record<string, any> | undefined;
523
+ } | undefined;
524
+ error?: any;
525
+ integration?: {
526
+ id: string;
527
+ name: string;
528
+ logoUri: string;
529
+ key?: string | undefined;
530
+ uuid?: string | undefined;
531
+ description?: string | undefined;
532
+ state?: import("..").WorkspaceElementState | undefined;
533
+ errors?: any[] | undefined;
534
+ revision?: string | undefined;
535
+ isDeactivated?: boolean | undefined;
536
+ createdAt?: string | undefined;
537
+ updatedAt?: string | undefined;
538
+ archivedAt?: string | undefined;
539
+ parameters?: any;
540
+ isTest?: boolean | undefined;
541
+ connectorId?: string | undefined;
542
+ connectorVersion?: string | undefined;
543
+ oAuthCallbackUri?: string | undefined;
544
+ hasMissingParameters?: boolean | undefined;
545
+ hasDocumentation?: boolean | undefined;
546
+ hasOperations?: boolean | undefined;
547
+ operationsCount?: number | undefined;
548
+ hasData?: boolean | undefined;
549
+ dataCollectionsCount?: number | undefined;
550
+ hasEvents?: boolean | undefined;
551
+ eventsCount?: number | undefined;
552
+ hasGlobalWebhooks?: boolean | undefined;
553
+ hasUdm?: boolean | undefined;
554
+ appUuid?: string | undefined;
555
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
556
+ } | undefined;
557
+ name?: string | undefined;
558
+ isFullScan?: boolean | undefined;
559
+ user?: {
560
+ id: string;
561
+ name: string;
562
+ internalId: string;
563
+ createdAt?: string | undefined;
564
+ archivedAt?: string | undefined;
565
+ credentials?: any;
566
+ fields?: Record<string, any> | undefined;
567
+ isTest?: boolean | undefined;
568
+ lastActiveAt?: string | undefined;
569
+ isBillable?: boolean | undefined;
570
+ } | undefined;
571
+ externalEventSubscription?: {
572
+ id: string;
573
+ userId: string;
574
+ connectionId: string;
575
+ integrationId: string;
576
+ status?: import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus | undefined;
577
+ error?: any;
578
+ name?: string | undefined;
579
+ createdAt?: string | undefined;
580
+ archivedAt?: string | undefined;
581
+ nextRefreshTimestamp?: number | undefined;
582
+ config?: {
583
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
584
+ eventKey?: string | undefined;
585
+ eventParameters?: any;
586
+ dataSource?: {
587
+ key?: string | undefined;
588
+ path?: string | undefined;
589
+ udm?: any;
590
+ collectionKey?: any;
591
+ collectionParameters?: any;
592
+ pullUpdatesIntervalSeconds?: number | undefined;
593
+ fullSyncIntervalSeconds?: number | undefined;
594
+ } | undefined;
595
+ } | undefined;
596
+ pullUpdatesIntervalSeconds?: number | undefined;
597
+ fullSyncIntervalSeconds?: number | undefined;
598
+ isRealTime?: boolean | undefined;
599
+ requiresPull?: boolean | undefined;
600
+ requiresFullSync?: boolean | undefined;
601
+ stateData?: any;
602
+ nextPullEventsTimestamp?: number | undefined;
603
+ globalWebhookKey?: string | undefined;
604
+ globalWebhookEventSelector?: string | undefined;
605
+ } | undefined;
606
+ }>;
607
+ export type ExternalEventPullApiResponse = z.infer<typeof ExternalEventPullApiResponse>;
608
+ export type ExternalEventPull = ExternalEventPullApiResponse;