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