@membranehq/sdk 0.7.3 → 0.7.4

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 (32) hide show
  1. package/dist/bundle.d.ts +1180 -1049
  2. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +9 -20
  3. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +452 -453
  4. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +43 -69
  5. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +208 -110
  6. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -6
  7. package/dist/dts/workspace-elements/api/flows-api.d.ts +583 -497
  8. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +2 -2
  9. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
  10. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +1 -1
  11. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
  12. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +2 -2
  13. package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
  14. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
  15. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  16. package/dist/index.browser.d.mts +1749 -1375
  17. package/dist/index.browser.d.ts +1749 -1375
  18. package/dist/index.browser.js +128 -133
  19. package/dist/index.browser.js.map +1 -1
  20. package/dist/index.browser.mjs +123 -132
  21. package/dist/index.browser.mjs.map +1 -1
  22. package/dist/index.node.d.mts +1749 -1375
  23. package/dist/index.node.d.ts +1749 -1375
  24. package/dist/index.node.js +128 -133
  25. package/dist/index.node.js.map +1 -1
  26. package/dist/index.node.mjs +123 -132
  27. package/dist/index.node.mjs.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  30. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -109
  31. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -136
  32. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -248
@@ -4,301 +4,6 @@ import { DataSourceInstance } from './data-source-instances-api';
4
4
  import { FlowInstanceSelector } from './flows-api';
5
5
  import { ElementInstanceSelector, IntegrationSpecificElementSelector } from '../../accessors';
6
6
  import { PaginationResponse } from '../../entity-repository';
7
- export declare const ListDataSourcesForIntegrationQuery: z.ZodObject<{
8
- universalDataSourceId: z.ZodOptional<z.ZodString>;
9
- } & {
10
- limit: z.ZodOptional<z.ZodNumber>;
11
- cursor: z.ZodOptional<z.ZodString>;
12
- }, "strip", z.ZodTypeAny, {
13
- limit?: number | undefined;
14
- cursor?: string | undefined;
15
- universalDataSourceId?: string | undefined;
16
- }, {
17
- limit?: number | undefined;
18
- cursor?: string | undefined;
19
- universalDataSourceId?: string | undefined;
20
- }>;
21
- export type ListDataSourcesForIntegrationQuery = z.infer<typeof ListDataSourcesForIntegrationQuery>;
22
- export declare const FindDataSourcesQuery: z.ZodObject<{
23
- universalDataSourceId: z.ZodOptional<z.ZodString>;
24
- } & {
25
- limit: z.ZodOptional<z.ZodNumber>;
26
- cursor: z.ZodOptional<z.ZodString>;
27
- } & {
28
- integrationId: z.ZodOptional<z.ZodString>;
29
- }, "strip", z.ZodTypeAny, {
30
- integrationId?: string | undefined;
31
- limit?: number | undefined;
32
- cursor?: string | undefined;
33
- universalDataSourceId?: string | undefined;
34
- }, {
35
- integrationId?: string | undefined;
36
- limit?: number | undefined;
37
- cursor?: string | undefined;
38
- universalDataSourceId?: string | undefined;
39
- }>;
40
- export type FindDataSourcesQuery = z.infer<typeof FindDataSourcesQuery>;
41
- export declare const CreateDataSourceRequest: z.ZodObject<{
42
- key: z.ZodString;
43
- name: z.ZodString;
44
- integrationId: z.ZodOptional<z.ZodString>;
45
- udm: z.ZodOptional<z.ZodString>;
46
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
47
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
48
- rootPath: z.ZodOptional<z.ZodString>;
49
- defaultPath: z.ZodOptional<z.ZodString>;
50
- collectionKey: z.ZodOptional<z.ZodString>;
51
- collectionParameters: z.ZodOptional<z.ZodAny>;
52
- }, "strip", z.ZodTypeAny, {
53
- key: string;
54
- name: string;
55
- integrationId?: string | undefined;
56
- udm?: string | undefined;
57
- collectionKey?: string | undefined;
58
- collectionParameters?: any;
59
- pullUpdatesIntervalSeconds?: number | undefined;
60
- fullSyncIntervalSeconds?: number | undefined;
61
- defaultPath?: string | undefined;
62
- rootPath?: string | undefined;
63
- }, {
64
- key: string;
65
- name: string;
66
- integrationId?: string | undefined;
67
- udm?: string | undefined;
68
- collectionKey?: string | undefined;
69
- collectionParameters?: any;
70
- pullUpdatesIntervalSeconds?: number | undefined;
71
- fullSyncIntervalSeconds?: number | undefined;
72
- defaultPath?: string | undefined;
73
- rootPath?: string | undefined;
74
- }>;
75
- export type CreateDataSourceRequest = z.infer<typeof CreateDataSourceRequest>;
76
- export declare const UpdateDataSourceRequest: z.ZodObject<{
77
- key: z.ZodOptional<z.ZodString>;
78
- name: z.ZodOptional<z.ZodString>;
79
- archivedAt: z.ZodOptional<z.ZodString>;
80
- udm: z.ZodOptional<z.ZodString>;
81
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
82
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
83
- rootPath: z.ZodOptional<z.ZodString>;
84
- defaultPath: z.ZodOptional<z.ZodString>;
85
- }, "strip", z.ZodTypeAny, {
86
- key?: string | undefined;
87
- name?: string | undefined;
88
- archivedAt?: string | undefined;
89
- udm?: string | undefined;
90
- pullUpdatesIntervalSeconds?: number | undefined;
91
- fullSyncIntervalSeconds?: number | undefined;
92
- defaultPath?: string | undefined;
93
- rootPath?: string | undefined;
94
- }, {
95
- key?: string | undefined;
96
- name?: string | undefined;
97
- archivedAt?: string | undefined;
98
- udm?: string | undefined;
99
- pullUpdatesIntervalSeconds?: number | undefined;
100
- fullSyncIntervalSeconds?: number | undefined;
101
- defaultPath?: string | undefined;
102
- rootPath?: string | undefined;
103
- }>;
104
- export type UpdateDataSourceRequest = z.infer<typeof UpdateDataSourceRequest>;
105
- export interface DataSourceSelector extends IntegrationSpecificElementSelector {
106
- }
107
- export interface DataSourceInstanceSelector extends ConnectionSelector, FlowInstanceSelector, ElementInstanceSelector {
108
- dataSourceKey?: string;
109
- dataSourceId?: string;
110
- instanceKey?: string;
111
- nodeKey?: string;
112
- udm?: string;
113
- }
114
- export declare const FindDataSourceInstancesQuery: z.ZodObject<{
115
- userId: z.ZodOptional<z.ZodString>;
116
- dataSourceId: z.ZodOptional<z.ZodString>;
117
- universalDataSourceId: z.ZodOptional<z.ZodString>;
118
- connectionId: z.ZodOptional<z.ZodString>;
119
- integrationKey: z.ZodOptional<z.ZodString>;
120
- integrationId: z.ZodOptional<z.ZodString>;
121
- } & {
122
- limit: z.ZodOptional<z.ZodNumber>;
123
- cursor: z.ZodOptional<z.ZodString>;
124
- }, "strip", z.ZodTypeAny, {
125
- integrationId?: string | undefined;
126
- limit?: number | undefined;
127
- cursor?: string | undefined;
128
- userId?: string | undefined;
129
- connectionId?: string | undefined;
130
- integrationKey?: string | undefined;
131
- dataSourceId?: string | undefined;
132
- universalDataSourceId?: string | undefined;
133
- }, {
134
- integrationId?: string | undefined;
135
- limit?: number | undefined;
136
- cursor?: string | undefined;
137
- userId?: string | undefined;
138
- connectionId?: string | undefined;
139
- integrationKey?: string | undefined;
140
- dataSourceId?: string | undefined;
141
- universalDataSourceId?: string | undefined;
142
- }>;
143
- export type FindDataSourceInstancesQuery = z.infer<typeof FindDataSourceInstancesQuery>;
144
- export type FindDataSourceInstancesResponse = PaginationResponse<DataSourceInstance>;
145
- export declare const CreateDataSourceInstanceRequest: z.ZodObject<{
146
- dataSourceId: z.ZodString;
147
- connectionId: z.ZodString;
148
- path: z.ZodOptional<z.ZodString>;
149
- }, "strip", z.ZodTypeAny, {
150
- connectionId: string;
151
- dataSourceId: string;
152
- path?: string | undefined;
153
- }, {
154
- connectionId: string;
155
- dataSourceId: string;
156
- path?: string | undefined;
157
- }>;
158
- export type CreateDataSourceInstanceRequest = z.infer<typeof CreateDataSourceInstanceRequest>;
159
- export declare const UpdateDataSourceInstanceRequest: z.ZodObject<{
160
- path: z.ZodOptional<z.ZodString>;
161
- collectionKey: z.ZodOptional<z.ZodString>;
162
- collectionParameters: z.ZodOptional<z.ZodAny>;
163
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
164
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
165
- subscribedTo: z.ZodOptional<z.ZodObject<{
166
- created: z.ZodOptional<z.ZodBoolean>;
167
- updated: z.ZodOptional<z.ZodBoolean>;
168
- deleted: z.ZodOptional<z.ZodBoolean>;
169
- }, "strip", z.ZodTypeAny, {
170
- created?: boolean | undefined;
171
- updated?: boolean | undefined;
172
- deleted?: boolean | undefined;
173
- }, {
174
- created?: boolean | undefined;
175
- updated?: boolean | undefined;
176
- deleted?: boolean | undefined;
177
- }>>;
178
- }, "strip", z.ZodTypeAny, {
179
- path?: string | undefined;
180
- collectionKey?: string | undefined;
181
- collectionParameters?: any;
182
- pullUpdatesIntervalSeconds?: number | undefined;
183
- fullSyncIntervalSeconds?: number | undefined;
184
- subscribedTo?: {
185
- created?: boolean | undefined;
186
- updated?: boolean | undefined;
187
- deleted?: boolean | undefined;
188
- } | undefined;
189
- }, {
190
- path?: string | undefined;
191
- collectionKey?: string | undefined;
192
- collectionParameters?: any;
193
- pullUpdatesIntervalSeconds?: number | undefined;
194
- fullSyncIntervalSeconds?: number | undefined;
195
- subscribedTo?: {
196
- created?: boolean | undefined;
197
- updated?: boolean | undefined;
198
- deleted?: boolean | undefined;
199
- } | undefined;
200
- }>;
201
- export type UpdateDataSourceInstanceRequest = z.infer<typeof UpdateDataSourceInstanceRequest>;
202
- export declare const FindDataSourceEventsQuery: z.ZodObject<{
203
- userId: z.ZodOptional<z.ZodString>;
204
- udm: z.ZodOptional<z.ZodString>;
205
- dataSourceInstanceId: z.ZodOptional<z.ZodString>;
206
- startDatetime: z.ZodOptional<z.ZodString>;
207
- endDatetime: z.ZodOptional<z.ZodString>;
208
- } & {
209
- limit: z.ZodOptional<z.ZodNumber>;
210
- cursor: z.ZodOptional<z.ZodString>;
211
- }, "strip", z.ZodTypeAny, {
212
- limit?: number | undefined;
213
- cursor?: string | undefined;
214
- userId?: string | undefined;
215
- udm?: string | undefined;
216
- dataSourceInstanceId?: string | undefined;
217
- startDatetime?: string | undefined;
218
- endDatetime?: string | undefined;
219
- }, {
220
- limit?: number | undefined;
221
- cursor?: string | undefined;
222
- userId?: string | undefined;
223
- udm?: string | undefined;
224
- dataSourceInstanceId?: string | undefined;
225
- startDatetime?: string | undefined;
226
- endDatetime?: string | undefined;
227
- }>;
228
- export type FindDataSourceEventsQuery = z.infer<typeof FindDataSourceEventsQuery>;
229
- export declare const FindDataSourceSyncsQuery: z.ZodObject<{
230
- userId: z.ZodOptional<z.ZodString>;
231
- dataSourceId: z.ZodOptional<z.ZodString>;
232
- dataSourceInstanceId: z.ZodOptional<z.ZodString>;
233
- integrationId: z.ZodOptional<z.ZodString>;
234
- connectionId: z.ZodOptional<z.ZodString>;
235
- startedAfter: z.ZodOptional<z.ZodString>;
236
- } & {
237
- limit: z.ZodOptional<z.ZodNumber>;
238
- cursor: z.ZodOptional<z.ZodString>;
239
- }, "strip", z.ZodTypeAny, {
240
- integrationId?: string | undefined;
241
- limit?: number | undefined;
242
- cursor?: string | undefined;
243
- userId?: string | undefined;
244
- connectionId?: string | undefined;
245
- dataSourceId?: string | undefined;
246
- dataSourceInstanceId?: string | undefined;
247
- startedAfter?: string | undefined;
248
- }, {
249
- integrationId?: string | undefined;
250
- limit?: number | undefined;
251
- cursor?: string | undefined;
252
- userId?: string | undefined;
253
- connectionId?: string | undefined;
254
- dataSourceId?: string | undefined;
255
- dataSourceInstanceId?: string | undefined;
256
- startedAfter?: string | undefined;
257
- }>;
258
- export type FindDataSourceSyncsQuery = z.infer<typeof FindDataSourceSyncsQuery>;
259
- export declare const ListDataSourceInstancesForConnectionQuery: z.ZodObject<{
260
- dataSourceId: z.ZodOptional<z.ZodString>;
261
- } & {
262
- limit: z.ZodOptional<z.ZodNumber>;
263
- cursor: z.ZodOptional<z.ZodString>;
264
- }, "strip", z.ZodTypeAny, {
265
- limit?: number | undefined;
266
- cursor?: string | undefined;
267
- dataSourceId?: string | undefined;
268
- }, {
269
- limit?: number | undefined;
270
- cursor?: string | undefined;
271
- dataSourceId?: string | undefined;
272
- }>;
273
- export type ListDataSourceInstancesForConnectionQuery = z.infer<typeof ListDataSourceInstancesForConnectionQuery>;
274
- export declare const FindDataSourceInstanceSyncsQuery: z.ZodObject<{
275
- dataSourceId: z.ZodOptional<z.ZodString>;
276
- } & {
277
- limit: z.ZodOptional<z.ZodNumber>;
278
- cursor: z.ZodOptional<z.ZodString>;
279
- } & {
280
- userId: z.ZodOptional<z.ZodString>;
281
- connectionId: z.ZodOptional<z.ZodString>;
282
- integrationId: z.ZodOptional<z.ZodString>;
283
- dataSourceInstanceId: z.ZodOptional<z.ZodString>;
284
- }, "strip", z.ZodTypeAny, {
285
- integrationId?: string | undefined;
286
- limit?: number | undefined;
287
- cursor?: string | undefined;
288
- userId?: string | undefined;
289
- connectionId?: string | undefined;
290
- dataSourceId?: string | undefined;
291
- dataSourceInstanceId?: string | undefined;
292
- }, {
293
- integrationId?: string | undefined;
294
- limit?: number | undefined;
295
- cursor?: string | undefined;
296
- userId?: string | undefined;
297
- connectionId?: string | undefined;
298
- dataSourceId?: string | undefined;
299
- dataSourceInstanceId?: string | undefined;
300
- }>;
301
- export type FindDataSourceInstanceSyncsQuery = z.infer<typeof FindDataSourceInstanceSyncsQuery>;
302
7
  export declare const DataSourceApiResponse: z.ZodObject<{
303
8
  id: z.ZodString;
304
9
  key: z.ZodOptional<z.ZodString>;
@@ -306,7 +11,13 @@ export declare const DataSourceApiResponse: z.ZodObject<{
306
11
  description: z.ZodOptional<z.ZodString>;
307
12
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
308
13
  integrationId: z.ZodOptional<z.ZodString>;
309
- parentId: z.ZodOptional<z.ZodString>;
14
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
15
+ udm: z.ZodOptional<z.ZodString>;
16
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
17
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
18
+ collectionKey: z.ZodOptional<z.ZodString>;
19
+ collectionParameters: z.ZodOptional<z.ZodAny>;
20
+ defaultPath: z.ZodOptional<z.ZodString>;
310
21
  } & {
311
22
  name: z.ZodString;
312
23
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
@@ -317,16 +28,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
317
28
  archivedAt: z.ZodOptional<z.ZodString>;
318
29
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
319
30
  isCustomized: z.ZodOptional<z.ZodBoolean>;
320
- } & {
321
- publishedRevision: z.ZodOptional<z.ZodString>;
322
- universalDataSourceId: z.ZodOptional<z.ZodString>;
323
31
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
324
- udm: z.ZodOptional<z.ZodString>;
325
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
326
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
327
- collectionKey: z.ZodOptional<z.ZodString>;
328
- collectionParameters: z.ZodOptional<z.ZodAny>;
329
- defaultPath: z.ZodOptional<z.ZodString>;
330
32
  } & {
331
33
  integration: z.ZodOptional<z.ZodObject<{
332
34
  id: z.ZodString;
@@ -434,7 +136,13 @@ export declare const DataSourceApiResponse: z.ZodObject<{
434
136
  description: z.ZodOptional<z.ZodString>;
435
137
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
436
138
  integrationId: z.ZodOptional<z.ZodString>;
437
- parentId: z.ZodOptional<z.ZodString>;
139
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
140
+ udm: z.ZodOptional<z.ZodString>;
141
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
142
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
143
+ collectionKey: z.ZodOptional<z.ZodString>;
144
+ collectionParameters: z.ZodOptional<z.ZodAny>;
145
+ defaultPath: z.ZodOptional<z.ZodString>;
438
146
  } & {
439
147
  name: z.ZodString;
440
148
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
@@ -445,16 +153,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
445
153
  archivedAt: z.ZodOptional<z.ZodString>;
446
154
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
447
155
  isCustomized: z.ZodOptional<z.ZodBoolean>;
448
- } & {
449
- publishedRevision: z.ZodOptional<z.ZodString>;
450
- universalDataSourceId: z.ZodOptional<z.ZodString>;
451
156
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
452
- udm: z.ZodOptional<z.ZodString>;
453
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
454
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
455
- collectionKey: z.ZodOptional<z.ZodString>;
456
- collectionParameters: z.ZodOptional<z.ZodAny>;
457
- defaultPath: z.ZodOptional<z.ZodString>;
458
157
  }, "strip", z.ZodTypeAny, {
459
158
  id: string;
460
159
  name: string;
@@ -470,9 +169,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
470
169
  archivedAt?: string | undefined;
471
170
  isDeactivated?: boolean | undefined;
472
171
  integrationId?: string | undefined;
473
- parentId?: string | undefined;
474
172
  isCustomized?: boolean | undefined;
475
- publishedRevision?: string | undefined;
476
173
  udm?: string | undefined;
477
174
  universalDataSourceId?: string | undefined;
478
175
  collectionKey?: string | undefined;
@@ -496,9 +193,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
496
193
  archivedAt?: string | undefined;
497
194
  isDeactivated?: boolean | undefined;
498
195
  integrationId?: string | undefined;
499
- parentId?: string | undefined;
500
196
  isCustomized?: boolean | undefined;
501
- publishedRevision?: string | undefined;
502
197
  udm?: string | undefined;
503
198
  universalDataSourceId?: string | undefined;
504
199
  collectionKey?: string | undefined;
@@ -573,7 +268,41 @@ export declare const DataSourceApiResponse: z.ZodObject<{
573
268
  isTest?: boolean | undefined;
574
269
  appUuid?: string | undefined;
575
270
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
576
- }, {
271
+ }, {
272
+ id: string;
273
+ name: string;
274
+ logoUri: string;
275
+ key?: string | undefined;
276
+ uuid?: string | undefined;
277
+ description?: string | undefined;
278
+ meta?: Record<string, any> | undefined;
279
+ state?: import("..").WorkspaceElementState | undefined;
280
+ errors?: import("../..").ErrorDataSchema[] | undefined;
281
+ revision?: string | undefined;
282
+ createdAt?: string | undefined;
283
+ updatedAt?: string | undefined;
284
+ archivedAt?: string | undefined;
285
+ isDeactivated?: boolean | undefined;
286
+ parameters?: any;
287
+ connectorId?: string | undefined;
288
+ connectorVersion?: string | undefined;
289
+ oAuthCallbackUri?: string | undefined;
290
+ hasMissingParameters?: boolean | undefined;
291
+ hasDocumentation?: boolean | undefined;
292
+ hasOperations?: boolean | undefined;
293
+ operationsCount?: number | undefined;
294
+ hasData?: boolean | undefined;
295
+ dataCollectionsCount?: number | undefined;
296
+ hasEvents?: boolean | undefined;
297
+ eventsCount?: number | undefined;
298
+ hasGlobalWebhooks?: boolean | undefined;
299
+ hasUdm?: boolean | undefined;
300
+ isTest?: boolean | undefined;
301
+ appUuid?: string | undefined;
302
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
303
+ }>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ integration: {
577
306
  id: string;
578
307
  name: string;
579
308
  logoUri: string;
@@ -605,8 +334,33 @@ export declare const DataSourceApiResponse: z.ZodObject<{
605
334
  isTest?: boolean | undefined;
606
335
  appUuid?: string | undefined;
607
336
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
608
- }>;
609
- }, "strip", z.ZodTypeAny, {
337
+ };
338
+ element: {
339
+ id: string;
340
+ name: string;
341
+ key?: string | undefined;
342
+ uuid?: string | undefined;
343
+ description?: string | undefined;
344
+ meta?: Record<string, any> | undefined;
345
+ state?: import("..").WorkspaceElementState | undefined;
346
+ errors?: import("../..").ErrorDataSchema[] | undefined;
347
+ revision?: string | undefined;
348
+ createdAt?: string | undefined;
349
+ updatedAt?: string | undefined;
350
+ archivedAt?: string | undefined;
351
+ isDeactivated?: boolean | undefined;
352
+ integrationId?: string | undefined;
353
+ isCustomized?: boolean | undefined;
354
+ udm?: string | undefined;
355
+ universalDataSourceId?: string | undefined;
356
+ collectionKey?: string | undefined;
357
+ collectionParameters?: any;
358
+ pullUpdatesIntervalSeconds?: number | undefined;
359
+ fullSyncIntervalSeconds?: number | undefined;
360
+ defaultPath?: string | undefined;
361
+ universalDataSourceRevision?: string | undefined;
362
+ };
363
+ }, {
610
364
  integration: {
611
365
  id: string;
612
366
  name: string;
@@ -655,9 +409,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
655
409
  archivedAt?: string | undefined;
656
410
  isDeactivated?: boolean | undefined;
657
411
  integrationId?: string | undefined;
658
- parentId?: string | undefined;
659
412
  isCustomized?: boolean | undefined;
660
- publishedRevision?: string | undefined;
661
413
  udm?: string | undefined;
662
414
  universalDataSourceId?: string | undefined;
663
415
  collectionKey?: string | undefined;
@@ -667,7 +419,58 @@ export declare const DataSourceApiResponse: z.ZodObject<{
667
419
  defaultPath?: string | undefined;
668
420
  universalDataSourceRevision?: string | undefined;
669
421
  };
670
- }, {
422
+ }>, "many">>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ id: string;
425
+ name: string;
426
+ key?: string | undefined;
427
+ integration?: {
428
+ id: string;
429
+ name: string;
430
+ logoUri: string;
431
+ key?: string | undefined;
432
+ uuid?: string | undefined;
433
+ description?: string | undefined;
434
+ meta?: Record<string, any> | undefined;
435
+ state?: import("..").WorkspaceElementState | undefined;
436
+ errors?: import("../..").ErrorDataSchema[] | undefined;
437
+ revision?: string | undefined;
438
+ createdAt?: string | undefined;
439
+ updatedAt?: string | undefined;
440
+ archivedAt?: string | undefined;
441
+ isDeactivated?: boolean | undefined;
442
+ parameters?: any;
443
+ connectorId?: string | undefined;
444
+ connectorVersion?: string | undefined;
445
+ oAuthCallbackUri?: string | undefined;
446
+ hasMissingParameters?: boolean | undefined;
447
+ hasDocumentation?: boolean | undefined;
448
+ hasOperations?: boolean | undefined;
449
+ operationsCount?: number | undefined;
450
+ hasData?: boolean | undefined;
451
+ dataCollectionsCount?: number | undefined;
452
+ hasEvents?: boolean | undefined;
453
+ eventsCount?: number | undefined;
454
+ hasGlobalWebhooks?: boolean | undefined;
455
+ hasUdm?: boolean | undefined;
456
+ isTest?: boolean | undefined;
457
+ appUuid?: string | undefined;
458
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
459
+ } | undefined;
460
+ uuid?: string | undefined;
461
+ description?: string | undefined;
462
+ meta?: Record<string, any> | undefined;
463
+ state?: import("..").WorkspaceElementState | undefined;
464
+ errors?: import("../..").ErrorDataSchema[] | undefined;
465
+ revision?: string | undefined;
466
+ createdAt?: string | undefined;
467
+ updatedAt?: string | undefined;
468
+ archivedAt?: string | undefined;
469
+ isDeactivated?: boolean | undefined;
470
+ integrationId?: string | undefined;
471
+ isCustomized?: boolean | undefined;
472
+ udm?: string | undefined;
473
+ appliedToIntegrations?: {
671
474
  integration: {
672
475
  id: string;
673
476
  name: string;
@@ -716,9 +519,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
716
519
  archivedAt?: string | undefined;
717
520
  isDeactivated?: boolean | undefined;
718
521
  integrationId?: string | undefined;
719
- parentId?: string | undefined;
720
522
  isCustomized?: boolean | undefined;
721
- publishedRevision?: string | undefined;
722
523
  udm?: string | undefined;
723
524
  universalDataSourceId?: string | undefined;
724
525
  collectionKey?: string | undefined;
@@ -728,8 +529,15 @@ export declare const DataSourceApiResponse: z.ZodObject<{
728
529
  defaultPath?: string | undefined;
729
530
  universalDataSourceRevision?: string | undefined;
730
531
  };
731
- }>, "many">>;
732
- }, "strip", z.ZodTypeAny, {
532
+ }[] | undefined;
533
+ universalDataSourceId?: string | undefined;
534
+ collectionKey?: string | undefined;
535
+ collectionParameters?: any;
536
+ pullUpdatesIntervalSeconds?: number | undefined;
537
+ fullSyncIntervalSeconds?: number | undefined;
538
+ defaultPath?: string | undefined;
539
+ universalDataSourceRevision?: string | undefined;
540
+ }, {
733
541
  id: string;
734
542
  name: string;
735
543
  key?: string | undefined;
@@ -777,9 +585,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
777
585
  archivedAt?: string | undefined;
778
586
  isDeactivated?: boolean | undefined;
779
587
  integrationId?: string | undefined;
780
- parentId?: string | undefined;
781
588
  isCustomized?: boolean | undefined;
782
- publishedRevision?: string | undefined;
783
589
  udm?: string | undefined;
784
590
  appliedToIntegrations?: {
785
591
  integration: {
@@ -830,9 +636,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
830
636
  archivedAt?: string | undefined;
831
637
  isDeactivated?: boolean | undefined;
832
638
  integrationId?: string | undefined;
833
- parentId?: string | undefined;
834
639
  isCustomized?: boolean | undefined;
835
- publishedRevision?: string | undefined;
836
640
  udm?: string | undefined;
837
641
  universalDataSourceId?: string | undefined;
838
642
  collectionKey?: string | undefined;
@@ -848,129 +652,324 @@ export declare const DataSourceApiResponse: z.ZodObject<{
848
652
  collectionParameters?: any;
849
653
  pullUpdatesIntervalSeconds?: number | undefined;
850
654
  fullSyncIntervalSeconds?: number | undefined;
851
- defaultPath?: string | undefined;
852
- universalDataSourceRevision?: string | undefined;
853
- }, {
854
- id: string;
855
- name: string;
856
- key?: string | undefined;
857
- integration?: {
858
- id: string;
859
- name: string;
860
- logoUri: string;
861
- key?: string | undefined;
862
- uuid?: string | undefined;
863
- description?: string | undefined;
864
- meta?: Record<string, any> | undefined;
865
- state?: import("..").WorkspaceElementState | undefined;
866
- errors?: import("../..").ErrorDataSchema[] | undefined;
867
- revision?: string | undefined;
868
- createdAt?: string | undefined;
869
- updatedAt?: string | undefined;
870
- archivedAt?: string | undefined;
871
- isDeactivated?: boolean | undefined;
872
- parameters?: any;
873
- connectorId?: string | undefined;
874
- connectorVersion?: string | undefined;
875
- oAuthCallbackUri?: string | undefined;
876
- hasMissingParameters?: boolean | undefined;
877
- hasDocumentation?: boolean | undefined;
878
- hasOperations?: boolean | undefined;
879
- operationsCount?: number | undefined;
880
- hasData?: boolean | undefined;
881
- dataCollectionsCount?: number | undefined;
882
- hasEvents?: boolean | undefined;
883
- eventsCount?: number | undefined;
884
- hasGlobalWebhooks?: boolean | undefined;
885
- hasUdm?: boolean | undefined;
886
- isTest?: boolean | undefined;
887
- appUuid?: string | undefined;
888
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
655
+ defaultPath?: string | undefined;
656
+ universalDataSourceRevision?: string | undefined;
657
+ }>;
658
+ export type DataSourceApiResponse = z.infer<typeof DataSourceApiResponse>;
659
+ export type DataSource = DataSourceApiResponse;
660
+ export declare const FindDataSourcesQuery: z.ZodObject<{
661
+ limit: z.ZodOptional<z.ZodNumber>;
662
+ cursor: z.ZodOptional<z.ZodString>;
663
+ } & {
664
+ integrationId: z.ZodOptional<z.ZodString>;
665
+ integrationKey: z.ZodOptional<z.ZodString>;
666
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
667
+ search: z.ZodOptional<z.ZodString>;
668
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ search?: string | undefined;
671
+ integrationId?: string | undefined;
672
+ includeArchived?: boolean | undefined;
673
+ limit?: number | undefined;
674
+ cursor?: string | undefined;
675
+ integrationKey?: string | undefined;
676
+ universalDataSourceId?: string | undefined;
677
+ }, {
678
+ search?: string | undefined;
679
+ integrationId?: string | undefined;
680
+ includeArchived?: unknown;
681
+ limit?: number | undefined;
682
+ cursor?: string | undefined;
683
+ integrationKey?: string | undefined;
684
+ universalDataSourceId?: string | undefined;
685
+ }>;
686
+ export type FindDataSourcesQuery = z.infer<typeof FindDataSourcesQuery>;
687
+ export declare const CreateDataSourceRequest: z.ZodObject<Omit<{
688
+ key: z.ZodOptional<z.ZodString>;
689
+ name: z.ZodOptional<z.ZodString>;
690
+ uuid: z.ZodOptional<z.ZodString>;
691
+ description: z.ZodOptional<z.ZodString>;
692
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
693
+ } & {
694
+ integrationId: z.ZodOptional<z.ZodString>;
695
+ parentId: z.ZodOptional<z.ZodString>;
696
+ }, "parentId"> & {
697
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
698
+ udm: z.ZodOptional<z.ZodString>;
699
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
700
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
701
+ collectionKey: z.ZodOptional<z.ZodString>;
702
+ collectionParameters: z.ZodOptional<z.ZodAny>;
703
+ defaultPath: z.ZodOptional<z.ZodString>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ key?: string | undefined;
706
+ name?: string | undefined;
707
+ uuid?: string | undefined;
708
+ description?: string | undefined;
709
+ meta?: Record<string, any> | undefined;
710
+ integrationId?: string | undefined;
711
+ udm?: string | undefined;
712
+ universalDataSourceId?: string | undefined;
713
+ collectionKey?: string | undefined;
714
+ collectionParameters?: any;
715
+ pullUpdatesIntervalSeconds?: number | undefined;
716
+ fullSyncIntervalSeconds?: number | undefined;
717
+ defaultPath?: string | undefined;
718
+ }, {
719
+ key?: string | undefined;
720
+ name?: string | undefined;
721
+ uuid?: string | undefined;
722
+ description?: string | undefined;
723
+ meta?: Record<string, any> | undefined;
724
+ integrationId?: string | undefined;
725
+ udm?: string | undefined;
726
+ universalDataSourceId?: string | undefined;
727
+ collectionKey?: string | undefined;
728
+ collectionParameters?: any;
729
+ pullUpdatesIntervalSeconds?: number | undefined;
730
+ fullSyncIntervalSeconds?: number | undefined;
731
+ defaultPath?: string | undefined;
732
+ }>;
733
+ export type CreateDataSourceRequest = z.infer<typeof CreateDataSourceRequest>;
734
+ export declare const UpdateDataSourceRequest: z.ZodObject<{
735
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
736
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
737
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
738
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
739
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
740
+ integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
741
+ universalDataSourceId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
742
+ udm: z.ZodOptional<z.ZodOptional<z.ZodString>>;
743
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
744
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
745
+ collectionKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
746
+ collectionParameters: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
747
+ defaultPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
748
+ }, "strip", z.ZodTypeAny, {
749
+ key?: string | undefined;
750
+ name?: string | undefined;
751
+ uuid?: string | undefined;
752
+ description?: string | undefined;
753
+ meta?: Record<string, any> | undefined;
754
+ integrationId?: string | undefined;
755
+ udm?: string | undefined;
756
+ universalDataSourceId?: string | undefined;
757
+ collectionKey?: string | undefined;
758
+ collectionParameters?: any;
759
+ pullUpdatesIntervalSeconds?: number | undefined;
760
+ fullSyncIntervalSeconds?: number | undefined;
761
+ defaultPath?: string | undefined;
762
+ }, {
763
+ key?: string | undefined;
764
+ name?: string | undefined;
765
+ uuid?: string | undefined;
766
+ description?: string | undefined;
767
+ meta?: Record<string, any> | undefined;
768
+ integrationId?: string | undefined;
769
+ udm?: string | undefined;
770
+ universalDataSourceId?: string | undefined;
771
+ collectionKey?: string | undefined;
772
+ collectionParameters?: any;
773
+ pullUpdatesIntervalSeconds?: number | undefined;
774
+ fullSyncIntervalSeconds?: number | undefined;
775
+ defaultPath?: string | undefined;
776
+ }>;
777
+ export type UpdateDataSourceRequest = z.infer<typeof UpdateDataSourceRequest>;
778
+ export interface DataSourceSelector extends IntegrationSpecificElementSelector {
779
+ }
780
+ export interface DataSourceInstanceSelector extends ConnectionSelector, FlowInstanceSelector, ElementInstanceSelector {
781
+ dataSourceKey?: string;
782
+ dataSourceId?: string;
783
+ instanceKey?: string;
784
+ nodeKey?: string;
785
+ udm?: string;
786
+ }
787
+ export declare const FindDataSourceInstancesQuery: z.ZodObject<{
788
+ userId: z.ZodOptional<z.ZodString>;
789
+ dataSourceId: z.ZodOptional<z.ZodString>;
790
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
791
+ connectionId: z.ZodOptional<z.ZodString>;
792
+ integrationKey: z.ZodOptional<z.ZodString>;
793
+ integrationId: z.ZodOptional<z.ZodString>;
794
+ } & {
795
+ limit: z.ZodOptional<z.ZodNumber>;
796
+ cursor: z.ZodOptional<z.ZodString>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ integrationId?: string | undefined;
799
+ limit?: number | undefined;
800
+ cursor?: string | undefined;
801
+ userId?: string | undefined;
802
+ connectionId?: string | undefined;
803
+ integrationKey?: string | undefined;
804
+ dataSourceId?: string | undefined;
805
+ universalDataSourceId?: string | undefined;
806
+ }, {
807
+ integrationId?: string | undefined;
808
+ limit?: number | undefined;
809
+ cursor?: string | undefined;
810
+ userId?: string | undefined;
811
+ connectionId?: string | undefined;
812
+ integrationKey?: string | undefined;
813
+ dataSourceId?: string | undefined;
814
+ universalDataSourceId?: string | undefined;
815
+ }>;
816
+ export type FindDataSourceInstancesQuery = z.infer<typeof FindDataSourceInstancesQuery>;
817
+ export type FindDataSourceInstancesResponse = PaginationResponse<DataSourceInstance>;
818
+ export declare const CreateDataSourceInstanceRequest: z.ZodObject<{
819
+ dataSourceId: z.ZodString;
820
+ connectionId: z.ZodString;
821
+ path: z.ZodOptional<z.ZodString>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ connectionId: string;
824
+ dataSourceId: string;
825
+ path?: string | undefined;
826
+ }, {
827
+ connectionId: string;
828
+ dataSourceId: string;
829
+ path?: string | undefined;
830
+ }>;
831
+ export type CreateDataSourceInstanceRequest = z.infer<typeof CreateDataSourceInstanceRequest>;
832
+ export declare const UpdateDataSourceInstanceRequest: z.ZodObject<{
833
+ path: z.ZodOptional<z.ZodString>;
834
+ collectionKey: z.ZodOptional<z.ZodString>;
835
+ collectionParameters: z.ZodOptional<z.ZodAny>;
836
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
837
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
838
+ subscribedTo: z.ZodOptional<z.ZodObject<{
839
+ created: z.ZodOptional<z.ZodBoolean>;
840
+ updated: z.ZodOptional<z.ZodBoolean>;
841
+ deleted: z.ZodOptional<z.ZodBoolean>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ created?: boolean | undefined;
844
+ updated?: boolean | undefined;
845
+ deleted?: boolean | undefined;
846
+ }, {
847
+ created?: boolean | undefined;
848
+ updated?: boolean | undefined;
849
+ deleted?: boolean | undefined;
850
+ }>>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ path?: string | undefined;
853
+ collectionKey?: string | undefined;
854
+ collectionParameters?: any;
855
+ pullUpdatesIntervalSeconds?: number | undefined;
856
+ fullSyncIntervalSeconds?: number | undefined;
857
+ subscribedTo?: {
858
+ created?: boolean | undefined;
859
+ updated?: boolean | undefined;
860
+ deleted?: boolean | undefined;
889
861
  } | undefined;
890
- uuid?: string | undefined;
891
- description?: string | undefined;
892
- meta?: Record<string, any> | undefined;
893
- state?: import("..").WorkspaceElementState | undefined;
894
- errors?: import("../..").ErrorDataSchema[] | undefined;
895
- revision?: string | undefined;
896
- createdAt?: string | undefined;
897
- updatedAt?: string | undefined;
898
- archivedAt?: string | undefined;
899
- isDeactivated?: boolean | undefined;
900
- integrationId?: string | undefined;
901
- parentId?: string | undefined;
902
- isCustomized?: boolean | undefined;
903
- publishedRevision?: string | undefined;
904
- udm?: string | undefined;
905
- appliedToIntegrations?: {
906
- integration: {
907
- id: string;
908
- name: string;
909
- logoUri: string;
910
- key?: string | undefined;
911
- uuid?: string | undefined;
912
- description?: string | undefined;
913
- meta?: Record<string, any> | undefined;
914
- state?: import("..").WorkspaceElementState | undefined;
915
- errors?: import("../..").ErrorDataSchema[] | undefined;
916
- revision?: string | undefined;
917
- createdAt?: string | undefined;
918
- updatedAt?: string | undefined;
919
- archivedAt?: string | undefined;
920
- isDeactivated?: boolean | undefined;
921
- parameters?: any;
922
- connectorId?: string | undefined;
923
- connectorVersion?: string | undefined;
924
- oAuthCallbackUri?: string | undefined;
925
- hasMissingParameters?: boolean | undefined;
926
- hasDocumentation?: boolean | undefined;
927
- hasOperations?: boolean | undefined;
928
- operationsCount?: number | undefined;
929
- hasData?: boolean | undefined;
930
- dataCollectionsCount?: number | undefined;
931
- hasEvents?: boolean | undefined;
932
- eventsCount?: number | undefined;
933
- hasGlobalWebhooks?: boolean | undefined;
934
- hasUdm?: boolean | undefined;
935
- isTest?: boolean | undefined;
936
- appUuid?: string | undefined;
937
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
938
- };
939
- element: {
940
- id: string;
941
- name: string;
942
- key?: string | undefined;
943
- uuid?: string | undefined;
944
- description?: string | undefined;
945
- meta?: Record<string, any> | undefined;
946
- state?: import("..").WorkspaceElementState | undefined;
947
- errors?: import("../..").ErrorDataSchema[] | undefined;
948
- revision?: string | undefined;
949
- createdAt?: string | undefined;
950
- updatedAt?: string | undefined;
951
- archivedAt?: string | undefined;
952
- isDeactivated?: boolean | undefined;
953
- integrationId?: string | undefined;
954
- parentId?: string | undefined;
955
- isCustomized?: boolean | undefined;
956
- publishedRevision?: string | undefined;
957
- udm?: string | undefined;
958
- universalDataSourceId?: string | undefined;
959
- collectionKey?: string | undefined;
960
- collectionParameters?: any;
961
- pullUpdatesIntervalSeconds?: number | undefined;
962
- fullSyncIntervalSeconds?: number | undefined;
963
- defaultPath?: string | undefined;
964
- universalDataSourceRevision?: string | undefined;
965
- };
966
- }[] | undefined;
967
- universalDataSourceId?: string | undefined;
862
+ }, {
863
+ path?: string | undefined;
968
864
  collectionKey?: string | undefined;
969
865
  collectionParameters?: any;
970
866
  pullUpdatesIntervalSeconds?: number | undefined;
971
867
  fullSyncIntervalSeconds?: number | undefined;
972
- defaultPath?: string | undefined;
973
- universalDataSourceRevision?: string | undefined;
868
+ subscribedTo?: {
869
+ created?: boolean | undefined;
870
+ updated?: boolean | undefined;
871
+ deleted?: boolean | undefined;
872
+ } | undefined;
974
873
  }>;
975
- export type DataSourceApiResponse = z.infer<typeof DataSourceApiResponse>;
976
- export type DataSource = DataSourceApiResponse;
874
+ export type UpdateDataSourceInstanceRequest = z.infer<typeof UpdateDataSourceInstanceRequest>;
875
+ export declare const FindDataSourceEventsQuery: z.ZodObject<{
876
+ userId: z.ZodOptional<z.ZodString>;
877
+ udm: z.ZodOptional<z.ZodString>;
878
+ dataSourceInstanceId: z.ZodOptional<z.ZodString>;
879
+ startDatetime: z.ZodOptional<z.ZodString>;
880
+ endDatetime: z.ZodOptional<z.ZodString>;
881
+ } & {
882
+ limit: z.ZodOptional<z.ZodNumber>;
883
+ cursor: z.ZodOptional<z.ZodString>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ limit?: number | undefined;
886
+ cursor?: string | undefined;
887
+ userId?: string | undefined;
888
+ udm?: string | undefined;
889
+ dataSourceInstanceId?: string | undefined;
890
+ startDatetime?: string | undefined;
891
+ endDatetime?: string | undefined;
892
+ }, {
893
+ limit?: number | undefined;
894
+ cursor?: string | undefined;
895
+ userId?: string | undefined;
896
+ udm?: string | undefined;
897
+ dataSourceInstanceId?: string | undefined;
898
+ startDatetime?: string | undefined;
899
+ endDatetime?: string | undefined;
900
+ }>;
901
+ export type FindDataSourceEventsQuery = z.infer<typeof FindDataSourceEventsQuery>;
902
+ export declare const FindDataSourceSyncsQuery: z.ZodObject<{
903
+ userId: z.ZodOptional<z.ZodString>;
904
+ dataSourceId: z.ZodOptional<z.ZodString>;
905
+ dataSourceInstanceId: z.ZodOptional<z.ZodString>;
906
+ integrationId: z.ZodOptional<z.ZodString>;
907
+ connectionId: z.ZodOptional<z.ZodString>;
908
+ startedAfter: z.ZodOptional<z.ZodString>;
909
+ } & {
910
+ limit: z.ZodOptional<z.ZodNumber>;
911
+ cursor: z.ZodOptional<z.ZodString>;
912
+ }, "strip", z.ZodTypeAny, {
913
+ integrationId?: string | undefined;
914
+ limit?: number | undefined;
915
+ cursor?: string | undefined;
916
+ userId?: string | undefined;
917
+ connectionId?: string | undefined;
918
+ dataSourceId?: string | undefined;
919
+ dataSourceInstanceId?: string | undefined;
920
+ startedAfter?: string | undefined;
921
+ }, {
922
+ integrationId?: string | undefined;
923
+ limit?: number | undefined;
924
+ cursor?: string | undefined;
925
+ userId?: string | undefined;
926
+ connectionId?: string | undefined;
927
+ dataSourceId?: string | undefined;
928
+ dataSourceInstanceId?: string | undefined;
929
+ startedAfter?: string | undefined;
930
+ }>;
931
+ export type FindDataSourceSyncsQuery = z.infer<typeof FindDataSourceSyncsQuery>;
932
+ export declare const ListDataSourceInstancesForConnectionQuery: z.ZodObject<{
933
+ dataSourceId: z.ZodOptional<z.ZodString>;
934
+ } & {
935
+ limit: z.ZodOptional<z.ZodNumber>;
936
+ cursor: z.ZodOptional<z.ZodString>;
937
+ }, "strip", z.ZodTypeAny, {
938
+ limit?: number | undefined;
939
+ cursor?: string | undefined;
940
+ dataSourceId?: string | undefined;
941
+ }, {
942
+ limit?: number | undefined;
943
+ cursor?: string | undefined;
944
+ dataSourceId?: string | undefined;
945
+ }>;
946
+ export type ListDataSourceInstancesForConnectionQuery = z.infer<typeof ListDataSourceInstancesForConnectionQuery>;
947
+ export declare const FindDataSourceInstanceSyncsQuery: z.ZodObject<{
948
+ dataSourceId: z.ZodOptional<z.ZodString>;
949
+ } & {
950
+ limit: z.ZodOptional<z.ZodNumber>;
951
+ cursor: z.ZodOptional<z.ZodString>;
952
+ } & {
953
+ userId: z.ZodOptional<z.ZodString>;
954
+ connectionId: z.ZodOptional<z.ZodString>;
955
+ integrationId: z.ZodOptional<z.ZodString>;
956
+ dataSourceInstanceId: z.ZodOptional<z.ZodString>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ integrationId?: string | undefined;
959
+ limit?: number | undefined;
960
+ cursor?: string | undefined;
961
+ userId?: string | undefined;
962
+ connectionId?: string | undefined;
963
+ dataSourceId?: string | undefined;
964
+ dataSourceInstanceId?: string | undefined;
965
+ }, {
966
+ integrationId?: string | undefined;
967
+ limit?: number | undefined;
968
+ cursor?: string | undefined;
969
+ userId?: string | undefined;
970
+ connectionId?: string | undefined;
971
+ dataSourceId?: string | undefined;
972
+ dataSourceInstanceId?: string | undefined;
973
+ }>;
974
+ export type FindDataSourceInstanceSyncsQuery = z.infer<typeof FindDataSourceInstanceSyncsQuery>;
975
+ export type ListDataSourcesForIntegrationQuery = Omit<FindDataSourcesQuery, 'integrationId' | 'integrationKey'>;