@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,10 +1,559 @@
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
+ credentials: z.ZodOptional<z.ZodUnknown>;
124
+ parameters: z.ZodOptional<z.ZodUnknown>;
125
+ connectorParameters: z.ZodOptional<z.ZodUnknown>;
126
+ createdAt: z.ZodString;
127
+ updatedAt: z.ZodString;
128
+ lastActiveAt: z.ZodOptional<z.ZodString>;
129
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
130
+ archivedAt: z.ZodOptional<z.ZodString>;
131
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
132
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
133
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
134
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ id: string;
137
+ name: string;
138
+ createdAt: string;
139
+ updatedAt: string;
140
+ userId: string;
141
+ integrationId: string;
142
+ error?: any;
143
+ state?: import("..").WorkspaceElementState | undefined;
144
+ errors?: any[] | undefined;
145
+ isDeactivated?: boolean | undefined;
146
+ archivedAt?: string | undefined;
147
+ credentials?: unknown;
148
+ parameters?: unknown;
149
+ connectorParameters?: unknown;
150
+ isTest?: boolean | undefined;
151
+ disconnected?: boolean | undefined;
152
+ isDefunct?: boolean | undefined;
153
+ lastActiveAt?: string | undefined;
154
+ nextCredentialsRefreshAt?: string | undefined;
155
+ meta?: Record<string, any> | undefined;
156
+ }, {
157
+ id: string;
158
+ name: string;
159
+ createdAt: string;
160
+ updatedAt: string;
161
+ userId: string;
162
+ integrationId: string;
163
+ error?: any;
164
+ state?: import("..").WorkspaceElementState | undefined;
165
+ errors?: any[] | undefined;
166
+ isDeactivated?: boolean | undefined;
167
+ archivedAt?: string | undefined;
168
+ credentials?: unknown;
169
+ parameters?: unknown;
170
+ connectorParameters?: unknown;
171
+ isTest?: boolean | undefined;
172
+ disconnected?: boolean | undefined;
173
+ isDefunct?: boolean | undefined;
174
+ lastActiveAt?: string | undefined;
175
+ nextCredentialsRefreshAt?: string | undefined;
176
+ meta?: Record<string, any> | undefined;
177
+ }>>;
178
+ integration: z.ZodOptional<z.ZodObject<{
179
+ id: z.ZodString;
180
+ name: z.ZodString;
181
+ key: z.ZodOptional<z.ZodString>;
182
+ uuid: z.ZodOptional<z.ZodString>;
183
+ description: z.ZodOptional<z.ZodString>;
184
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
185
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
186
+ revision: z.ZodOptional<z.ZodString>;
187
+ createdAt: z.ZodOptional<z.ZodString>;
188
+ updatedAt: z.ZodOptional<z.ZodString>;
189
+ } & {
190
+ logoUri: z.ZodString;
191
+ connectorId: z.ZodOptional<z.ZodString>;
192
+ connectorVersion: z.ZodOptional<z.ZodString>;
193
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
194
+ key: z.ZodString;
195
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
196
+ title: z.ZodOptional<z.ZodString>;
197
+ description: z.ZodOptional<z.ZodString>;
198
+ ui: z.ZodOptional<z.ZodObject<{
199
+ schema: z.ZodOptional<z.ZodAny>;
200
+ helpUri: z.ZodOptional<z.ZodString>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ schema?: any;
203
+ helpUri?: string | undefined;
204
+ }, {
205
+ schema?: any;
206
+ helpUri?: string | undefined;
207
+ }>>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ key: string;
210
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
211
+ description?: string | undefined;
212
+ title?: string | undefined;
213
+ ui?: {
214
+ schema?: any;
215
+ helpUri?: string | undefined;
216
+ } | undefined;
217
+ }, {
218
+ key: string;
219
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
220
+ description?: string | undefined;
221
+ title?: string | undefined;
222
+ ui?: {
223
+ schema?: any;
224
+ helpUri?: string | undefined;
225
+ } | undefined;
226
+ }>, "many">>;
227
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
228
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
229
+ parameters: z.ZodOptional<z.ZodAny>;
230
+ baseUri: z.ZodString;
231
+ archivedAt: z.ZodOptional<z.ZodString>;
232
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
233
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
234
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
235
+ operationsCount: z.ZodOptional<z.ZodNumber>;
236
+ hasData: z.ZodOptional<z.ZodBoolean>;
237
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
238
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
239
+ eventsCount: z.ZodOptional<z.ZodNumber>;
240
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
241
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
242
+ isTest: z.ZodOptional<z.ZodBoolean>;
243
+ appUuid: z.ZodOptional<z.ZodString>;
244
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
245
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ id: string;
248
+ name: string;
249
+ baseUri: string;
250
+ logoUri: string;
251
+ key?: string | undefined;
252
+ uuid?: string | undefined;
253
+ description?: string | undefined;
254
+ state?: import("..").WorkspaceElementState | undefined;
255
+ errors?: any[] | undefined;
256
+ revision?: string | undefined;
257
+ isDeactivated?: boolean | undefined;
258
+ createdAt?: string | undefined;
259
+ updatedAt?: string | undefined;
260
+ archivedAt?: string | undefined;
261
+ parameters?: any;
262
+ parametersSchema?: import("../..").DataSchema | undefined;
263
+ isTest?: boolean | undefined;
264
+ connectorId?: string | undefined;
265
+ connectorVersion?: string | undefined;
266
+ authOptions?: {
267
+ key: string;
268
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
269
+ description?: string | undefined;
270
+ title?: string | undefined;
271
+ ui?: {
272
+ schema?: any;
273
+ helpUri?: string | undefined;
274
+ } | undefined;
275
+ }[] | 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
+ baseUri: string;
293
+ logoUri: string;
294
+ key?: string | undefined;
295
+ uuid?: string | undefined;
296
+ description?: string | undefined;
297
+ state?: import("..").WorkspaceElementState | undefined;
298
+ errors?: any[] | undefined;
299
+ revision?: string | undefined;
300
+ isDeactivated?: boolean | undefined;
301
+ createdAt?: string | undefined;
302
+ updatedAt?: string | undefined;
303
+ archivedAt?: string | undefined;
304
+ parameters?: any;
305
+ parametersSchema?: import("../..").DataSchema | undefined;
306
+ isTest?: boolean | undefined;
307
+ connectorId?: string | undefined;
308
+ connectorVersion?: string | undefined;
309
+ authOptions?: {
310
+ key: string;
311
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
312
+ description?: string | undefined;
313
+ title?: string | undefined;
314
+ ui?: {
315
+ schema?: any;
316
+ helpUri?: string | undefined;
317
+ } | undefined;
318
+ }[] | undefined;
319
+ oAuthCallbackUri?: string | undefined;
320
+ hasMissingParameters?: boolean | undefined;
321
+ hasDocumentation?: boolean | undefined;
322
+ hasOperations?: boolean | undefined;
323
+ operationsCount?: number | undefined;
324
+ hasData?: boolean | undefined;
325
+ dataCollectionsCount?: number | undefined;
326
+ hasEvents?: boolean | undefined;
327
+ eventsCount?: number | undefined;
328
+ hasGlobalWebhooks?: boolean | undefined;
329
+ hasUdm?: boolean | undefined;
330
+ appUuid?: string | undefined;
331
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
332
+ }>>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ id: string;
335
+ userId: string;
336
+ connectionId: string;
337
+ integrationId: string;
338
+ connection?: {
339
+ id: string;
340
+ name: string;
341
+ createdAt: string;
342
+ updatedAt: string;
343
+ userId: string;
344
+ integrationId: string;
345
+ error?: any;
346
+ state?: import("..").WorkspaceElementState | undefined;
347
+ errors?: any[] | undefined;
348
+ isDeactivated?: boolean | undefined;
349
+ archivedAt?: string | undefined;
350
+ credentials?: unknown;
351
+ parameters?: unknown;
352
+ connectorParameters?: unknown;
353
+ isTest?: boolean | undefined;
354
+ disconnected?: boolean | undefined;
355
+ isDefunct?: boolean | undefined;
356
+ lastActiveAt?: string | undefined;
357
+ nextCredentialsRefreshAt?: string | undefined;
358
+ meta?: Record<string, any> | undefined;
359
+ } | undefined;
360
+ status?: import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus | undefined;
361
+ error?: any;
362
+ integration?: {
363
+ id: string;
364
+ name: string;
365
+ baseUri: string;
366
+ logoUri: string;
367
+ key?: string | undefined;
368
+ uuid?: string | undefined;
369
+ description?: string | undefined;
370
+ state?: import("..").WorkspaceElementState | undefined;
371
+ errors?: any[] | undefined;
372
+ revision?: string | undefined;
373
+ isDeactivated?: boolean | undefined;
374
+ createdAt?: string | undefined;
375
+ updatedAt?: string | undefined;
376
+ archivedAt?: string | undefined;
377
+ parameters?: any;
378
+ parametersSchema?: import("../..").DataSchema | undefined;
379
+ isTest?: boolean | undefined;
380
+ connectorId?: string | undefined;
381
+ connectorVersion?: string | undefined;
382
+ authOptions?: {
383
+ key: string;
384
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
385
+ description?: string | undefined;
386
+ title?: string | undefined;
387
+ ui?: {
388
+ schema?: any;
389
+ helpUri?: string | undefined;
390
+ } | undefined;
391
+ }[] | undefined;
392
+ oAuthCallbackUri?: string | undefined;
393
+ hasMissingParameters?: boolean | undefined;
394
+ hasDocumentation?: boolean | undefined;
395
+ hasOperations?: boolean | undefined;
396
+ operationsCount?: number | undefined;
397
+ hasData?: boolean | undefined;
398
+ dataCollectionsCount?: number | undefined;
399
+ hasEvents?: boolean | undefined;
400
+ eventsCount?: number | undefined;
401
+ hasGlobalWebhooks?: boolean | undefined;
402
+ hasUdm?: boolean | undefined;
403
+ appUuid?: string | undefined;
404
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
405
+ } | undefined;
406
+ name?: string | undefined;
407
+ createdAt?: string | undefined;
408
+ archivedAt?: string | undefined;
409
+ nextRefreshTimestamp?: number | undefined;
410
+ user?: {
411
+ id: string;
412
+ name: string;
413
+ internalId: string;
414
+ createdAt?: string | undefined;
415
+ archivedAt?: string | undefined;
416
+ credentials?: any;
417
+ fields?: Record<string, any> | undefined;
418
+ isTest?: boolean | undefined;
419
+ lastActiveAt?: string | undefined;
420
+ isBillable?: boolean | undefined;
421
+ } | undefined;
422
+ config?: {
423
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
424
+ eventKey?: string | undefined;
425
+ eventParameters?: any;
426
+ dataSource?: {
427
+ key?: string | undefined;
428
+ path?: string | undefined;
429
+ udm?: any;
430
+ collectionKey?: any;
431
+ collectionParameters?: any;
432
+ pullUpdatesIntervalSeconds?: number | undefined;
433
+ fullSyncIntervalSeconds?: number | undefined;
434
+ } | undefined;
435
+ } | undefined;
436
+ pullUpdatesIntervalSeconds?: number | undefined;
437
+ fullSyncIntervalSeconds?: number | undefined;
438
+ isRealTime?: boolean | undefined;
439
+ requiresPull?: boolean | undefined;
440
+ requiresFullSync?: boolean | undefined;
441
+ stateData?: any;
442
+ nextPullEventsTimestamp?: number | undefined;
443
+ globalWebhookKey?: string | undefined;
444
+ globalWebhookEventSelector?: string | undefined;
445
+ }, {
446
+ id: string;
447
+ userId: string;
448
+ connectionId: string;
449
+ integrationId: string;
450
+ connection?: {
451
+ id: string;
452
+ name: string;
453
+ createdAt: string;
454
+ updatedAt: string;
455
+ userId: string;
456
+ integrationId: string;
457
+ error?: any;
458
+ state?: import("..").WorkspaceElementState | undefined;
459
+ errors?: any[] | undefined;
460
+ isDeactivated?: boolean | undefined;
461
+ archivedAt?: string | undefined;
462
+ credentials?: unknown;
463
+ parameters?: unknown;
464
+ connectorParameters?: unknown;
465
+ isTest?: boolean | undefined;
466
+ disconnected?: boolean | undefined;
467
+ isDefunct?: boolean | undefined;
468
+ lastActiveAt?: string | undefined;
469
+ nextCredentialsRefreshAt?: string | undefined;
470
+ meta?: Record<string, any> | undefined;
471
+ } | undefined;
472
+ status?: import("../base/external-event-subscriptions").ExternalEventSubscriptionStatus | undefined;
473
+ error?: any;
474
+ integration?: {
475
+ id: string;
476
+ name: string;
477
+ baseUri: string;
478
+ logoUri: string;
479
+ key?: string | undefined;
480
+ uuid?: string | undefined;
481
+ description?: string | undefined;
482
+ state?: import("..").WorkspaceElementState | undefined;
483
+ errors?: any[] | undefined;
484
+ revision?: string | undefined;
485
+ isDeactivated?: boolean | undefined;
486
+ createdAt?: string | undefined;
487
+ updatedAt?: string | undefined;
488
+ archivedAt?: string | undefined;
489
+ parameters?: any;
490
+ parametersSchema?: import("../..").DataSchema | undefined;
491
+ isTest?: boolean | undefined;
492
+ connectorId?: string | undefined;
493
+ connectorVersion?: string | undefined;
494
+ authOptions?: {
495
+ key: string;
496
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
497
+ description?: string | undefined;
498
+ title?: string | undefined;
499
+ ui?: {
500
+ schema?: any;
501
+ helpUri?: string | undefined;
502
+ } | undefined;
503
+ }[] | undefined;
504
+ oAuthCallbackUri?: string | undefined;
505
+ hasMissingParameters?: boolean | undefined;
506
+ hasDocumentation?: boolean | undefined;
507
+ hasOperations?: boolean | undefined;
508
+ operationsCount?: number | undefined;
509
+ hasData?: boolean | undefined;
510
+ dataCollectionsCount?: number | undefined;
511
+ hasEvents?: boolean | undefined;
512
+ eventsCount?: number | undefined;
513
+ hasGlobalWebhooks?: boolean | undefined;
514
+ hasUdm?: boolean | undefined;
515
+ appUuid?: string | undefined;
516
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
517
+ } | undefined;
518
+ name?: string | undefined;
519
+ createdAt?: string | undefined;
520
+ archivedAt?: string | undefined;
521
+ nextRefreshTimestamp?: number | undefined;
522
+ user?: {
523
+ id: string;
524
+ name: string;
525
+ internalId: string;
526
+ createdAt?: string | undefined;
527
+ archivedAt?: string | undefined;
528
+ credentials?: any;
529
+ fields?: Record<string, any> | undefined;
530
+ isTest?: boolean | undefined;
531
+ lastActiveAt?: string | undefined;
532
+ isBillable?: boolean | undefined;
533
+ } | undefined;
534
+ config?: {
535
+ type: import("../base/external-event-subscriptions").ExternalEventSubscriptionType;
536
+ eventKey?: string | undefined;
537
+ eventParameters?: any;
538
+ dataSource?: {
539
+ key?: string | undefined;
540
+ path?: string | undefined;
541
+ udm?: any;
542
+ collectionKey?: any;
543
+ collectionParameters?: any;
544
+ pullUpdatesIntervalSeconds?: number | undefined;
545
+ fullSyncIntervalSeconds?: number | undefined;
546
+ } | undefined;
547
+ } | undefined;
548
+ pullUpdatesIntervalSeconds?: number | undefined;
549
+ fullSyncIntervalSeconds?: number | undefined;
550
+ isRealTime?: boolean | undefined;
551
+ requiresPull?: boolean | undefined;
552
+ requiresFullSync?: boolean | undefined;
553
+ stateData?: any;
554
+ nextPullEventsTimestamp?: number | undefined;
555
+ globalWebhookKey?: string | undefined;
556
+ globalWebhookEventSelector?: string | undefined;
557
+ }>;
558
+ export type ExternalEventSubscriptionApiResponse = z.infer<typeof ExternalEventSubscriptionApiResponse>;
559
+ export type ExternalEventSubscription = ExternalEventSubscriptionApiResponse;