@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,12 +1,1496 @@
1
- import { BaseConnection } from '../base/connections';
2
- import { BaseCustomer } from '../base/customers';
3
- import { BaseDataSourceInstance } from '../base/data-source-instances';
4
- import { BaseDataSource } from '../base/data-sources';
5
- import { BaseIntegration } from '../base/integrations';
6
- export interface DataSourceInstance extends BaseDataSourceInstance {
7
- user?: BaseCustomer;
8
- dataSource?: BaseDataSource;
9
- connection?: BaseConnection;
10
- integration?: BaseIntegration;
11
- }
12
- export type DataSourceInstanceApiResponse = DataSourceInstance;
1
+ import { z } from 'zod';
2
+ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ key: z.ZodOptional<z.ZodString>;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
9
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
10
+ createdAt: z.ZodOptional<z.ZodString>;
11
+ updatedAt: z.ZodOptional<z.ZodString>;
12
+ archivedAt: z.ZodOptional<z.ZodString>;
13
+ } & {
14
+ userId: z.ZodString;
15
+ revision: z.ZodString;
16
+ dataSourceRevision: z.ZodOptional<z.ZodString>;
17
+ dataSourceId: z.ZodOptional<z.ZodString>;
18
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
19
+ udm: z.ZodOptional<z.ZodString>;
20
+ connectionId: z.ZodString;
21
+ integrationId: z.ZodString;
22
+ instanceKey: z.ZodOptional<z.ZodString>;
23
+ collectionKey: z.ZodOptional<z.ZodString>;
24
+ collectionParameters: z.ZodOptional<z.ZodAny>;
25
+ defaultCollectionKey: z.ZodOptional<z.ZodString>;
26
+ defaultCollectionParameters: z.ZodOptional<z.ZodAny>;
27
+ collectionSpec: z.ZodOptional<z.ZodObject<{
28
+ type: z.ZodLiteral<"collection">;
29
+ key: z.ZodOptional<z.ZodString>;
30
+ name: z.ZodString;
31
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
32
+ fieldsSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
33
+ list: z.ZodOptional<z.ZodObject<{
34
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ path: z.ZodUnknown;
36
+ method: z.ZodUnknown;
37
+ }, "strip", z.ZodTypeAny, {
38
+ method?: unknown;
39
+ path?: unknown;
40
+ }, {
41
+ method?: unknown;
42
+ path?: unknown;
43
+ }>, "many">>;
44
+ } & {
45
+ filterFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ apiRequests?: {
48
+ method?: unknown;
49
+ path?: unknown;
50
+ }[] | undefined;
51
+ filterFields?: string[] | undefined;
52
+ }, {
53
+ apiRequests?: {
54
+ method?: unknown;
55
+ path?: unknown;
56
+ }[] | undefined;
57
+ filterFields?: string[] | undefined;
58
+ }>>;
59
+ search: z.ZodOptional<z.ZodObject<{
60
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ path: z.ZodUnknown;
62
+ method: z.ZodUnknown;
63
+ }, "strip", z.ZodTypeAny, {
64
+ method?: unknown;
65
+ path?: unknown;
66
+ }, {
67
+ method?: unknown;
68
+ path?: unknown;
69
+ }>, "many">>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ apiRequests?: {
72
+ method?: unknown;
73
+ path?: unknown;
74
+ }[] | undefined;
75
+ }, {
76
+ apiRequests?: {
77
+ method?: unknown;
78
+ path?: unknown;
79
+ }[] | undefined;
80
+ }>>;
81
+ match: z.ZodOptional<z.ZodObject<{
82
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
83
+ path: z.ZodUnknown;
84
+ method: z.ZodUnknown;
85
+ }, "strip", z.ZodTypeAny, {
86
+ method?: unknown;
87
+ path?: unknown;
88
+ }, {
89
+ method?: unknown;
90
+ path?: unknown;
91
+ }>, "many">>;
92
+ } & {
93
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ fields?: string[] | undefined;
96
+ apiRequests?: {
97
+ method?: unknown;
98
+ path?: unknown;
99
+ }[] | undefined;
100
+ }, {
101
+ fields?: string[] | undefined;
102
+ apiRequests?: {
103
+ method?: unknown;
104
+ path?: unknown;
105
+ }[] | undefined;
106
+ }>>;
107
+ findById: z.ZodOptional<z.ZodObject<{
108
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
109
+ path: z.ZodUnknown;
110
+ method: z.ZodUnknown;
111
+ }, "strip", z.ZodTypeAny, {
112
+ method?: unknown;
113
+ path?: unknown;
114
+ }, {
115
+ method?: unknown;
116
+ path?: unknown;
117
+ }>, "many">>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ apiRequests?: {
120
+ method?: unknown;
121
+ path?: unknown;
122
+ }[] | undefined;
123
+ }, {
124
+ apiRequests?: {
125
+ method?: unknown;
126
+ path?: unknown;
127
+ }[] | undefined;
128
+ }>>;
129
+ create: z.ZodOptional<z.ZodObject<{
130
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
131
+ path: z.ZodUnknown;
132
+ method: z.ZodUnknown;
133
+ }, "strip", z.ZodTypeAny, {
134
+ method?: unknown;
135
+ path?: unknown;
136
+ }, {
137
+ method?: unknown;
138
+ path?: unknown;
139
+ }>, "many">>;
140
+ } & {
141
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
142
+ requiredFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
143
+ excludedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ fields?: string[] | undefined;
146
+ apiRequests?: {
147
+ method?: unknown;
148
+ path?: unknown;
149
+ }[] | undefined;
150
+ requiredFields?: string[] | undefined;
151
+ excludedFields?: string[] | undefined;
152
+ }, {
153
+ fields?: string[] | undefined;
154
+ apiRequests?: {
155
+ method?: unknown;
156
+ path?: unknown;
157
+ }[] | undefined;
158
+ requiredFields?: string[] | undefined;
159
+ excludedFields?: string[] | undefined;
160
+ }>>;
161
+ update: z.ZodOptional<z.ZodObject<{
162
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
163
+ path: z.ZodUnknown;
164
+ method: z.ZodUnknown;
165
+ }, "strip", z.ZodTypeAny, {
166
+ method?: unknown;
167
+ path?: unknown;
168
+ }, {
169
+ method?: unknown;
170
+ path?: unknown;
171
+ }>, "many">>;
172
+ } & {
173
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
174
+ excludedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ fields?: string[] | undefined;
177
+ apiRequests?: {
178
+ method?: unknown;
179
+ path?: unknown;
180
+ }[] | undefined;
181
+ excludedFields?: string[] | undefined;
182
+ }, {
183
+ fields?: string[] | undefined;
184
+ apiRequests?: {
185
+ method?: unknown;
186
+ path?: unknown;
187
+ }[] | undefined;
188
+ excludedFields?: string[] | undefined;
189
+ }>>;
190
+ delete: z.ZodOptional<z.ZodObject<{
191
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
+ path: z.ZodUnknown;
193
+ method: z.ZodUnknown;
194
+ }, "strip", z.ZodTypeAny, {
195
+ method?: unknown;
196
+ path?: unknown;
197
+ }, {
198
+ method?: unknown;
199
+ path?: unknown;
200
+ }>, "many">>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ apiRequests?: {
203
+ method?: unknown;
204
+ path?: unknown;
205
+ }[] | undefined;
206
+ }, {
207
+ apiRequests?: {
208
+ method?: unknown;
209
+ path?: unknown;
210
+ }[] | undefined;
211
+ }>>;
212
+ events: z.ZodOptional<z.ZodObject<{
213
+ created: z.ZodOptional<z.ZodObject<{
214
+ type: z.ZodEnum<["push", "pull"]>;
215
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
216
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ type: "push" | "pull";
219
+ isFullScan?: boolean | undefined;
220
+ isIdOnly?: boolean | undefined;
221
+ }, {
222
+ type: "push" | "pull";
223
+ isFullScan?: boolean | undefined;
224
+ isIdOnly?: boolean | undefined;
225
+ }>>;
226
+ updated: z.ZodOptional<z.ZodObject<{
227
+ type: z.ZodEnum<["push", "pull"]>;
228
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
229
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ type: "push" | "pull";
232
+ isFullScan?: boolean | undefined;
233
+ isIdOnly?: boolean | undefined;
234
+ }, {
235
+ type: "push" | "pull";
236
+ isFullScan?: boolean | undefined;
237
+ isIdOnly?: boolean | undefined;
238
+ }>>;
239
+ deleted: z.ZodOptional<z.ZodObject<{
240
+ type: z.ZodEnum<["push", "pull"]>;
241
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
242
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: "push" | "pull";
245
+ isFullScan?: boolean | undefined;
246
+ isIdOnly?: boolean | undefined;
247
+ }, {
248
+ type: "push" | "pull";
249
+ isFullScan?: boolean | undefined;
250
+ isIdOnly?: boolean | undefined;
251
+ }>>;
252
+ all: z.ZodOptional<z.ZodObject<{
253
+ type: z.ZodEnum<["push", "pull"]>;
254
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
255
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ type: "push" | "pull";
258
+ isFullScan?: boolean | undefined;
259
+ isIdOnly?: boolean | undefined;
260
+ }, {
261
+ type: "push" | "pull";
262
+ isFullScan?: boolean | undefined;
263
+ isIdOnly?: boolean | undefined;
264
+ }>>;
265
+ }, "strip", z.ZodObject<{
266
+ type: z.ZodEnum<["push", "pull"]>;
267
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
268
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ type: "push" | "pull";
271
+ isFullScan?: boolean | undefined;
272
+ isIdOnly?: boolean | undefined;
273
+ }, {
274
+ type: "push" | "pull";
275
+ isFullScan?: boolean | undefined;
276
+ isIdOnly?: boolean | undefined;
277
+ }>, z.objectOutputType<{
278
+ created: z.ZodOptional<z.ZodObject<{
279
+ type: z.ZodEnum<["push", "pull"]>;
280
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
281
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ type: "push" | "pull";
284
+ isFullScan?: boolean | undefined;
285
+ isIdOnly?: boolean | undefined;
286
+ }, {
287
+ type: "push" | "pull";
288
+ isFullScan?: boolean | undefined;
289
+ isIdOnly?: boolean | undefined;
290
+ }>>;
291
+ updated: z.ZodOptional<z.ZodObject<{
292
+ type: z.ZodEnum<["push", "pull"]>;
293
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
294
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ type: "push" | "pull";
297
+ isFullScan?: boolean | undefined;
298
+ isIdOnly?: boolean | undefined;
299
+ }, {
300
+ type: "push" | "pull";
301
+ isFullScan?: boolean | undefined;
302
+ isIdOnly?: boolean | undefined;
303
+ }>>;
304
+ deleted: z.ZodOptional<z.ZodObject<{
305
+ type: z.ZodEnum<["push", "pull"]>;
306
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
307
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type: "push" | "pull";
310
+ isFullScan?: boolean | undefined;
311
+ isIdOnly?: boolean | undefined;
312
+ }, {
313
+ type: "push" | "pull";
314
+ isFullScan?: boolean | undefined;
315
+ isIdOnly?: boolean | undefined;
316
+ }>>;
317
+ all: z.ZodOptional<z.ZodObject<{
318
+ type: z.ZodEnum<["push", "pull"]>;
319
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
320
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ type: "push" | "pull";
323
+ isFullScan?: boolean | undefined;
324
+ isIdOnly?: boolean | undefined;
325
+ }, {
326
+ type: "push" | "pull";
327
+ isFullScan?: boolean | undefined;
328
+ isIdOnly?: boolean | undefined;
329
+ }>>;
330
+ }, z.ZodObject<{
331
+ type: z.ZodEnum<["push", "pull"]>;
332
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
333
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ type: "push" | "pull";
336
+ isFullScan?: boolean | undefined;
337
+ isIdOnly?: boolean | undefined;
338
+ }, {
339
+ type: "push" | "pull";
340
+ isFullScan?: boolean | undefined;
341
+ isIdOnly?: boolean | undefined;
342
+ }>, "strip">, z.objectInputType<{
343
+ created: z.ZodOptional<z.ZodObject<{
344
+ type: z.ZodEnum<["push", "pull"]>;
345
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
346
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ type: "push" | "pull";
349
+ isFullScan?: boolean | undefined;
350
+ isIdOnly?: boolean | undefined;
351
+ }, {
352
+ type: "push" | "pull";
353
+ isFullScan?: boolean | undefined;
354
+ isIdOnly?: boolean | undefined;
355
+ }>>;
356
+ updated: z.ZodOptional<z.ZodObject<{
357
+ type: z.ZodEnum<["push", "pull"]>;
358
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
359
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ type: "push" | "pull";
362
+ isFullScan?: boolean | undefined;
363
+ isIdOnly?: boolean | undefined;
364
+ }, {
365
+ type: "push" | "pull";
366
+ isFullScan?: boolean | undefined;
367
+ isIdOnly?: boolean | undefined;
368
+ }>>;
369
+ deleted: z.ZodOptional<z.ZodObject<{
370
+ type: z.ZodEnum<["push", "pull"]>;
371
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
372
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ type: "push" | "pull";
375
+ isFullScan?: boolean | undefined;
376
+ isIdOnly?: boolean | undefined;
377
+ }, {
378
+ type: "push" | "pull";
379
+ isFullScan?: boolean | undefined;
380
+ isIdOnly?: boolean | undefined;
381
+ }>>;
382
+ all: z.ZodOptional<z.ZodObject<{
383
+ type: z.ZodEnum<["push", "pull"]>;
384
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
385
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ type: "push" | "pull";
388
+ isFullScan?: boolean | undefined;
389
+ isIdOnly?: boolean | undefined;
390
+ }, {
391
+ type: "push" | "pull";
392
+ isFullScan?: boolean | undefined;
393
+ isIdOnly?: boolean | undefined;
394
+ }>>;
395
+ }, z.ZodObject<{
396
+ type: z.ZodEnum<["push", "pull"]>;
397
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
398
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ type: "push" | "pull";
401
+ isFullScan?: boolean | undefined;
402
+ isIdOnly?: boolean | undefined;
403
+ }, {
404
+ type: "push" | "pull";
405
+ isFullScan?: boolean | undefined;
406
+ isIdOnly?: boolean | undefined;
407
+ }>, "strip">>>;
408
+ customFields: z.ZodOptional<z.ZodBoolean>;
409
+ udm: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
410
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
411
+ extract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
412
+ parse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ fields?: string[] | undefined;
415
+ extract?: Record<string, any> | undefined;
416
+ parse?: Record<string, any> | undefined;
417
+ }, {
418
+ fields?: string[] | undefined;
419
+ extract?: Record<string, any> | undefined;
420
+ parse?: Record<string, any> | undefined;
421
+ }>>>;
422
+ find: z.ZodOptional<z.ZodObject<{
423
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
424
+ path: z.ZodUnknown;
425
+ method: z.ZodUnknown;
426
+ }, "strip", z.ZodTypeAny, {
427
+ method?: unknown;
428
+ path?: unknown;
429
+ }, {
430
+ method?: unknown;
431
+ path?: unknown;
432
+ }>, "many">>;
433
+ } & {
434
+ queryFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ apiRequests?: {
437
+ method?: unknown;
438
+ path?: unknown;
439
+ }[] | undefined;
440
+ queryFields?: string[] | undefined;
441
+ }, {
442
+ apiRequests?: {
443
+ method?: unknown;
444
+ path?: unknown;
445
+ }[] | undefined;
446
+ queryFields?: string[] | undefined;
447
+ }>>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ type: "collection";
450
+ name: string;
451
+ key?: string | undefined;
452
+ match?: {
453
+ fields?: string[] | undefined;
454
+ apiRequests?: {
455
+ method?: unknown;
456
+ path?: unknown;
457
+ }[] | undefined;
458
+ } | undefined;
459
+ search?: {
460
+ apiRequests?: {
461
+ method?: unknown;
462
+ path?: unknown;
463
+ }[] | undefined;
464
+ } | undefined;
465
+ find?: {
466
+ apiRequests?: {
467
+ method?: unknown;
468
+ path?: unknown;
469
+ }[] | undefined;
470
+ queryFields?: string[] | undefined;
471
+ } | undefined;
472
+ delete?: {
473
+ apiRequests?: {
474
+ method?: unknown;
475
+ path?: unknown;
476
+ }[] | undefined;
477
+ } | undefined;
478
+ list?: {
479
+ apiRequests?: {
480
+ method?: unknown;
481
+ path?: unknown;
482
+ }[] | undefined;
483
+ filterFields?: string[] | undefined;
484
+ } | undefined;
485
+ create?: {
486
+ fields?: string[] | undefined;
487
+ apiRequests?: {
488
+ method?: unknown;
489
+ path?: unknown;
490
+ }[] | undefined;
491
+ requiredFields?: string[] | undefined;
492
+ excludedFields?: string[] | undefined;
493
+ } | undefined;
494
+ udm?: Record<string, {
495
+ fields?: string[] | undefined;
496
+ extract?: Record<string, any> | undefined;
497
+ parse?: Record<string, any> | undefined;
498
+ }> | undefined;
499
+ events?: z.objectOutputType<{
500
+ created: z.ZodOptional<z.ZodObject<{
501
+ type: z.ZodEnum<["push", "pull"]>;
502
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
503
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
504
+ }, "strip", z.ZodTypeAny, {
505
+ type: "push" | "pull";
506
+ isFullScan?: boolean | undefined;
507
+ isIdOnly?: boolean | undefined;
508
+ }, {
509
+ type: "push" | "pull";
510
+ isFullScan?: boolean | undefined;
511
+ isIdOnly?: boolean | undefined;
512
+ }>>;
513
+ updated: z.ZodOptional<z.ZodObject<{
514
+ type: z.ZodEnum<["push", "pull"]>;
515
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
516
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: "push" | "pull";
519
+ isFullScan?: boolean | undefined;
520
+ isIdOnly?: boolean | undefined;
521
+ }, {
522
+ type: "push" | "pull";
523
+ isFullScan?: boolean | undefined;
524
+ isIdOnly?: boolean | undefined;
525
+ }>>;
526
+ deleted: z.ZodOptional<z.ZodObject<{
527
+ type: z.ZodEnum<["push", "pull"]>;
528
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
529
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ type: "push" | "pull";
532
+ isFullScan?: boolean | undefined;
533
+ isIdOnly?: boolean | undefined;
534
+ }, {
535
+ type: "push" | "pull";
536
+ isFullScan?: boolean | undefined;
537
+ isIdOnly?: boolean | undefined;
538
+ }>>;
539
+ all: z.ZodOptional<z.ZodObject<{
540
+ type: z.ZodEnum<["push", "pull"]>;
541
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
542
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ type: "push" | "pull";
545
+ isFullScan?: boolean | undefined;
546
+ isIdOnly?: boolean | undefined;
547
+ }, {
548
+ type: "push" | "pull";
549
+ isFullScan?: boolean | undefined;
550
+ isIdOnly?: boolean | undefined;
551
+ }>>;
552
+ }, z.ZodObject<{
553
+ type: z.ZodEnum<["push", "pull"]>;
554
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
555
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
556
+ }, "strip", z.ZodTypeAny, {
557
+ type: "push" | "pull";
558
+ isFullScan?: boolean | undefined;
559
+ isIdOnly?: boolean | undefined;
560
+ }, {
561
+ type: "push" | "pull";
562
+ isFullScan?: boolean | undefined;
563
+ isIdOnly?: boolean | undefined;
564
+ }>, "strip"> | undefined;
565
+ parametersSchema?: import("../..").DataSchema | undefined;
566
+ fieldsSchema?: import("../..").DataSchema | undefined;
567
+ findById?: {
568
+ apiRequests?: {
569
+ method?: unknown;
570
+ path?: unknown;
571
+ }[] | undefined;
572
+ } | undefined;
573
+ update?: {
574
+ fields?: string[] | undefined;
575
+ apiRequests?: {
576
+ method?: unknown;
577
+ path?: unknown;
578
+ }[] | undefined;
579
+ excludedFields?: string[] | undefined;
580
+ } | undefined;
581
+ customFields?: boolean | undefined;
582
+ }, {
583
+ type: "collection";
584
+ name: string;
585
+ key?: string | undefined;
586
+ match?: {
587
+ fields?: string[] | undefined;
588
+ apiRequests?: {
589
+ method?: unknown;
590
+ path?: unknown;
591
+ }[] | undefined;
592
+ } | undefined;
593
+ search?: {
594
+ apiRequests?: {
595
+ method?: unknown;
596
+ path?: unknown;
597
+ }[] | undefined;
598
+ } | undefined;
599
+ find?: {
600
+ apiRequests?: {
601
+ method?: unknown;
602
+ path?: unknown;
603
+ }[] | undefined;
604
+ queryFields?: string[] | undefined;
605
+ } | undefined;
606
+ delete?: {
607
+ apiRequests?: {
608
+ method?: unknown;
609
+ path?: unknown;
610
+ }[] | undefined;
611
+ } | undefined;
612
+ list?: {
613
+ apiRequests?: {
614
+ method?: unknown;
615
+ path?: unknown;
616
+ }[] | undefined;
617
+ filterFields?: string[] | undefined;
618
+ } | undefined;
619
+ create?: {
620
+ fields?: string[] | undefined;
621
+ apiRequests?: {
622
+ method?: unknown;
623
+ path?: unknown;
624
+ }[] | undefined;
625
+ requiredFields?: string[] | undefined;
626
+ excludedFields?: string[] | undefined;
627
+ } | undefined;
628
+ udm?: Record<string, {
629
+ fields?: string[] | undefined;
630
+ extract?: Record<string, any> | undefined;
631
+ parse?: Record<string, any> | undefined;
632
+ }> | undefined;
633
+ events?: z.objectInputType<{
634
+ created: z.ZodOptional<z.ZodObject<{
635
+ type: z.ZodEnum<["push", "pull"]>;
636
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
637
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ type: "push" | "pull";
640
+ isFullScan?: boolean | undefined;
641
+ isIdOnly?: boolean | undefined;
642
+ }, {
643
+ type: "push" | "pull";
644
+ isFullScan?: boolean | undefined;
645
+ isIdOnly?: boolean | undefined;
646
+ }>>;
647
+ updated: z.ZodOptional<z.ZodObject<{
648
+ type: z.ZodEnum<["push", "pull"]>;
649
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
650
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ type: "push" | "pull";
653
+ isFullScan?: boolean | undefined;
654
+ isIdOnly?: boolean | undefined;
655
+ }, {
656
+ type: "push" | "pull";
657
+ isFullScan?: boolean | undefined;
658
+ isIdOnly?: boolean | undefined;
659
+ }>>;
660
+ deleted: z.ZodOptional<z.ZodObject<{
661
+ type: z.ZodEnum<["push", "pull"]>;
662
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
663
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ type: "push" | "pull";
666
+ isFullScan?: boolean | undefined;
667
+ isIdOnly?: boolean | undefined;
668
+ }, {
669
+ type: "push" | "pull";
670
+ isFullScan?: boolean | undefined;
671
+ isIdOnly?: boolean | undefined;
672
+ }>>;
673
+ all: z.ZodOptional<z.ZodObject<{
674
+ type: z.ZodEnum<["push", "pull"]>;
675
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
676
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ type: "push" | "pull";
679
+ isFullScan?: boolean | undefined;
680
+ isIdOnly?: boolean | undefined;
681
+ }, {
682
+ type: "push" | "pull";
683
+ isFullScan?: boolean | undefined;
684
+ isIdOnly?: boolean | undefined;
685
+ }>>;
686
+ }, z.ZodObject<{
687
+ type: z.ZodEnum<["push", "pull"]>;
688
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
689
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ type: "push" | "pull";
692
+ isFullScan?: boolean | undefined;
693
+ isIdOnly?: boolean | undefined;
694
+ }, {
695
+ type: "push" | "pull";
696
+ isFullScan?: boolean | undefined;
697
+ isIdOnly?: boolean | undefined;
698
+ }>, "strip"> | undefined;
699
+ parametersSchema?: import("../..").DataSchema | undefined;
700
+ fieldsSchema?: import("../..").DataSchema | undefined;
701
+ findById?: {
702
+ apiRequests?: {
703
+ method?: unknown;
704
+ path?: unknown;
705
+ }[] | undefined;
706
+ } | undefined;
707
+ update?: {
708
+ fields?: string[] | undefined;
709
+ apiRequests?: {
710
+ method?: unknown;
711
+ path?: unknown;
712
+ }[] | undefined;
713
+ excludedFields?: string[] | undefined;
714
+ } | undefined;
715
+ customFields?: boolean | undefined;
716
+ }>>;
717
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
718
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
719
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
720
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
721
+ path: z.ZodOptional<z.ZodString>;
722
+ defaultPath: z.ZodOptional<z.ZodString>;
723
+ } & {
724
+ user: z.ZodOptional<z.ZodObject<{
725
+ id: z.ZodString;
726
+ name: z.ZodString;
727
+ internalId: z.ZodString;
728
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
729
+ credentials: z.ZodOptional<z.ZodAny>;
730
+ lastActiveAt: z.ZodOptional<z.ZodString>;
731
+ isTest: z.ZodOptional<z.ZodBoolean>;
732
+ isBillable: z.ZodOptional<z.ZodBoolean>;
733
+ createdAt: z.ZodOptional<z.ZodString>;
734
+ archivedAt: z.ZodOptional<z.ZodString>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ id: string;
737
+ name: string;
738
+ internalId: string;
739
+ createdAt?: string | undefined;
740
+ archivedAt?: string | undefined;
741
+ credentials?: any;
742
+ fields?: Record<string, any> | undefined;
743
+ isTest?: boolean | undefined;
744
+ lastActiveAt?: string | undefined;
745
+ isBillable?: boolean | undefined;
746
+ }, {
747
+ id: string;
748
+ name: string;
749
+ internalId: string;
750
+ createdAt?: string | undefined;
751
+ archivedAt?: string | undefined;
752
+ credentials?: any;
753
+ fields?: Record<string, any> | undefined;
754
+ isTest?: boolean | undefined;
755
+ lastActiveAt?: string | undefined;
756
+ isBillable?: boolean | undefined;
757
+ }>>;
758
+ dataSource: z.ZodOptional<z.ZodObject<{
759
+ id: z.ZodString;
760
+ name: z.ZodString;
761
+ key: z.ZodOptional<z.ZodString>;
762
+ uuid: z.ZodOptional<z.ZodString>;
763
+ description: z.ZodOptional<z.ZodString>;
764
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
765
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
766
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
767
+ } & {
768
+ revision: z.ZodString;
769
+ publishedRevision: z.ZodOptional<z.ZodString>;
770
+ integrationId: z.ZodOptional<z.ZodString>;
771
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
772
+ universalDataSourceRevision: z.ZodOptional<z.ZodString>;
773
+ udm: z.ZodOptional<z.ZodString>;
774
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
775
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
776
+ collectionKey: z.ZodOptional<z.ZodString>;
777
+ collectionParameters: z.ZodOptional<z.ZodAny>;
778
+ archivedAt: z.ZodOptional<z.ZodString>;
779
+ createdAt: z.ZodOptional<z.ZodString>;
780
+ updatedAt: z.ZodOptional<z.ZodString>;
781
+ customized: z.ZodOptional<z.ZodBoolean>;
782
+ defaultPath: z.ZodOptional<z.ZodString>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ id: string;
785
+ name: string;
786
+ revision: string;
787
+ key?: string | undefined;
788
+ uuid?: string | undefined;
789
+ description?: string | undefined;
790
+ state?: import("..").WorkspaceElementState | undefined;
791
+ errors?: any[] | undefined;
792
+ isDeactivated?: boolean | undefined;
793
+ createdAt?: string | undefined;
794
+ updatedAt?: string | undefined;
795
+ archivedAt?: string | undefined;
796
+ integrationId?: string | undefined;
797
+ udm?: string | undefined;
798
+ publishedRevision?: string | undefined;
799
+ customized?: boolean | undefined;
800
+ universalDataSourceId?: string | undefined;
801
+ collectionKey?: string | undefined;
802
+ collectionParameters?: any;
803
+ pullUpdatesIntervalSeconds?: number | undefined;
804
+ fullSyncIntervalSeconds?: number | undefined;
805
+ defaultPath?: string | undefined;
806
+ universalDataSourceRevision?: string | undefined;
807
+ }, {
808
+ id: string;
809
+ name: string;
810
+ revision: string;
811
+ key?: string | undefined;
812
+ uuid?: string | undefined;
813
+ description?: string | undefined;
814
+ state?: import("..").WorkspaceElementState | undefined;
815
+ errors?: any[] | undefined;
816
+ isDeactivated?: boolean | undefined;
817
+ createdAt?: string | undefined;
818
+ updatedAt?: string | undefined;
819
+ archivedAt?: string | undefined;
820
+ integrationId?: string | undefined;
821
+ udm?: string | undefined;
822
+ publishedRevision?: string | undefined;
823
+ customized?: boolean | undefined;
824
+ universalDataSourceId?: string | undefined;
825
+ collectionKey?: string | undefined;
826
+ collectionParameters?: any;
827
+ pullUpdatesIntervalSeconds?: number | undefined;
828
+ fullSyncIntervalSeconds?: number | undefined;
829
+ defaultPath?: string | undefined;
830
+ universalDataSourceRevision?: string | undefined;
831
+ }>>;
832
+ connection: z.ZodOptional<z.ZodObject<{
833
+ id: z.ZodString;
834
+ } & {
835
+ name: z.ZodString;
836
+ userId: z.ZodString;
837
+ isTest: z.ZodOptional<z.ZodBoolean>;
838
+ disconnected: z.ZodOptional<z.ZodBoolean>;
839
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
840
+ error: any;
841
+ integrationId: z.ZodString;
842
+ authOptionKey: z.ZodOptional<z.ZodString>;
843
+ createdAt: z.ZodString;
844
+ updatedAt: z.ZodString;
845
+ lastActiveAt: z.ZodOptional<z.ZodString>;
846
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
847
+ archivedAt: z.ZodOptional<z.ZodString>;
848
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
849
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
850
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
851
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ id: string;
854
+ name: string;
855
+ createdAt: string;
856
+ updatedAt: string;
857
+ userId: string;
858
+ integrationId: string;
859
+ error?: any;
860
+ state?: import("..").WorkspaceElementState | undefined;
861
+ errors?: any[] | undefined;
862
+ isDeactivated?: boolean | undefined;
863
+ archivedAt?: string | undefined;
864
+ authOptionKey?: string | undefined;
865
+ isTest?: boolean | undefined;
866
+ disconnected?: boolean | undefined;
867
+ isDefunct?: boolean | undefined;
868
+ lastActiveAt?: string | undefined;
869
+ nextCredentialsRefreshAt?: string | undefined;
870
+ meta?: Record<string, any> | undefined;
871
+ }, {
872
+ id: string;
873
+ name: string;
874
+ createdAt: string;
875
+ updatedAt: string;
876
+ userId: string;
877
+ integrationId: string;
878
+ error?: any;
879
+ state?: import("..").WorkspaceElementState | undefined;
880
+ errors?: any[] | undefined;
881
+ isDeactivated?: boolean | undefined;
882
+ archivedAt?: string | undefined;
883
+ authOptionKey?: string | undefined;
884
+ isTest?: boolean | undefined;
885
+ disconnected?: boolean | undefined;
886
+ isDefunct?: boolean | undefined;
887
+ lastActiveAt?: string | undefined;
888
+ nextCredentialsRefreshAt?: string | undefined;
889
+ meta?: Record<string, any> | undefined;
890
+ }>>;
891
+ integration: z.ZodOptional<z.ZodObject<{
892
+ id: z.ZodString;
893
+ name: z.ZodString;
894
+ key: z.ZodOptional<z.ZodString>;
895
+ uuid: z.ZodOptional<z.ZodString>;
896
+ description: z.ZodOptional<z.ZodString>;
897
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
898
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
899
+ revision: z.ZodOptional<z.ZodString>;
900
+ createdAt: z.ZodOptional<z.ZodString>;
901
+ updatedAt: z.ZodOptional<z.ZodString>;
902
+ } & {
903
+ logoUri: z.ZodString;
904
+ connectorId: z.ZodOptional<z.ZodString>;
905
+ connectorVersion: z.ZodOptional<z.ZodString>;
906
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
907
+ parameters: z.ZodOptional<z.ZodAny>;
908
+ archivedAt: z.ZodOptional<z.ZodString>;
909
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
910
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
911
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
912
+ operationsCount: z.ZodOptional<z.ZodNumber>;
913
+ hasData: z.ZodOptional<z.ZodBoolean>;
914
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
915
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
916
+ eventsCount: z.ZodOptional<z.ZodNumber>;
917
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
918
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
919
+ isTest: z.ZodOptional<z.ZodBoolean>;
920
+ appUuid: z.ZodOptional<z.ZodString>;
921
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
922
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
923
+ }, "strip", z.ZodTypeAny, {
924
+ id: string;
925
+ name: string;
926
+ logoUri: string;
927
+ key?: string | undefined;
928
+ uuid?: string | undefined;
929
+ description?: string | undefined;
930
+ state?: import("..").WorkspaceElementState | undefined;
931
+ errors?: any[] | undefined;
932
+ revision?: string | undefined;
933
+ isDeactivated?: boolean | undefined;
934
+ createdAt?: string | undefined;
935
+ updatedAt?: string | undefined;
936
+ archivedAt?: string | undefined;
937
+ parameters?: any;
938
+ isTest?: boolean | undefined;
939
+ connectorId?: string | undefined;
940
+ connectorVersion?: string | undefined;
941
+ oAuthCallbackUri?: string | undefined;
942
+ hasMissingParameters?: boolean | undefined;
943
+ hasDocumentation?: boolean | undefined;
944
+ hasOperations?: boolean | undefined;
945
+ operationsCount?: number | undefined;
946
+ hasData?: boolean | undefined;
947
+ dataCollectionsCount?: number | undefined;
948
+ hasEvents?: boolean | undefined;
949
+ eventsCount?: number | undefined;
950
+ hasGlobalWebhooks?: boolean | undefined;
951
+ hasUdm?: boolean | undefined;
952
+ appUuid?: string | undefined;
953
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
954
+ }, {
955
+ id: string;
956
+ name: string;
957
+ logoUri: string;
958
+ key?: string | undefined;
959
+ uuid?: string | undefined;
960
+ description?: string | undefined;
961
+ state?: import("..").WorkspaceElementState | undefined;
962
+ errors?: any[] | undefined;
963
+ revision?: string | undefined;
964
+ isDeactivated?: boolean | undefined;
965
+ createdAt?: string | undefined;
966
+ updatedAt?: string | undefined;
967
+ archivedAt?: string | undefined;
968
+ parameters?: any;
969
+ isTest?: boolean | undefined;
970
+ connectorId?: string | undefined;
971
+ connectorVersion?: string | undefined;
972
+ oAuthCallbackUri?: string | undefined;
973
+ hasMissingParameters?: boolean | undefined;
974
+ hasDocumentation?: boolean | undefined;
975
+ hasOperations?: boolean | undefined;
976
+ operationsCount?: number | undefined;
977
+ hasData?: boolean | undefined;
978
+ dataCollectionsCount?: number | undefined;
979
+ hasEvents?: boolean | undefined;
980
+ eventsCount?: number | undefined;
981
+ hasGlobalWebhooks?: boolean | undefined;
982
+ hasUdm?: boolean | undefined;
983
+ appUuid?: string | undefined;
984
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
985
+ }>>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ id: string;
988
+ name: string;
989
+ revision: string;
990
+ userId: string;
991
+ connectionId: string;
992
+ integrationId: string;
993
+ key?: string | undefined;
994
+ connection?: {
995
+ id: string;
996
+ name: string;
997
+ createdAt: string;
998
+ updatedAt: string;
999
+ userId: string;
1000
+ integrationId: string;
1001
+ error?: any;
1002
+ state?: import("..").WorkspaceElementState | undefined;
1003
+ errors?: any[] | undefined;
1004
+ isDeactivated?: boolean | undefined;
1005
+ archivedAt?: string | undefined;
1006
+ authOptionKey?: string | undefined;
1007
+ isTest?: boolean | undefined;
1008
+ disconnected?: boolean | undefined;
1009
+ isDefunct?: boolean | undefined;
1010
+ lastActiveAt?: string | undefined;
1011
+ nextCredentialsRefreshAt?: string | undefined;
1012
+ meta?: Record<string, any> | undefined;
1013
+ } | undefined;
1014
+ path?: string | undefined;
1015
+ integration?: {
1016
+ id: string;
1017
+ name: string;
1018
+ logoUri: string;
1019
+ key?: string | undefined;
1020
+ uuid?: string | undefined;
1021
+ description?: string | undefined;
1022
+ state?: import("..").WorkspaceElementState | undefined;
1023
+ errors?: any[] | undefined;
1024
+ revision?: string | undefined;
1025
+ isDeactivated?: boolean | undefined;
1026
+ createdAt?: string | undefined;
1027
+ updatedAt?: string | undefined;
1028
+ archivedAt?: string | undefined;
1029
+ parameters?: any;
1030
+ isTest?: boolean | undefined;
1031
+ connectorId?: string | undefined;
1032
+ connectorVersion?: string | undefined;
1033
+ oAuthCallbackUri?: string | undefined;
1034
+ hasMissingParameters?: boolean | undefined;
1035
+ hasDocumentation?: boolean | undefined;
1036
+ hasOperations?: boolean | undefined;
1037
+ operationsCount?: number | undefined;
1038
+ hasData?: boolean | undefined;
1039
+ dataCollectionsCount?: number | undefined;
1040
+ hasEvents?: boolean | undefined;
1041
+ eventsCount?: number | undefined;
1042
+ hasGlobalWebhooks?: boolean | undefined;
1043
+ hasUdm?: boolean | undefined;
1044
+ appUuid?: string | undefined;
1045
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1046
+ } | undefined;
1047
+ uuid?: string | undefined;
1048
+ description?: string | undefined;
1049
+ state?: import("..").WorkspaceElementState | undefined;
1050
+ errors?: any[] | undefined;
1051
+ isDeactivated?: boolean | undefined;
1052
+ createdAt?: string | undefined;
1053
+ updatedAt?: string | undefined;
1054
+ archivedAt?: string | undefined;
1055
+ instanceKey?: string | undefined;
1056
+ udm?: string | undefined;
1057
+ collectionSpec?: {
1058
+ type: "collection";
1059
+ name: string;
1060
+ key?: string | undefined;
1061
+ match?: {
1062
+ fields?: string[] | undefined;
1063
+ apiRequests?: {
1064
+ method?: unknown;
1065
+ path?: unknown;
1066
+ }[] | undefined;
1067
+ } | undefined;
1068
+ search?: {
1069
+ apiRequests?: {
1070
+ method?: unknown;
1071
+ path?: unknown;
1072
+ }[] | undefined;
1073
+ } | undefined;
1074
+ find?: {
1075
+ apiRequests?: {
1076
+ method?: unknown;
1077
+ path?: unknown;
1078
+ }[] | undefined;
1079
+ queryFields?: string[] | undefined;
1080
+ } | undefined;
1081
+ delete?: {
1082
+ apiRequests?: {
1083
+ method?: unknown;
1084
+ path?: unknown;
1085
+ }[] | undefined;
1086
+ } | undefined;
1087
+ list?: {
1088
+ apiRequests?: {
1089
+ method?: unknown;
1090
+ path?: unknown;
1091
+ }[] | undefined;
1092
+ filterFields?: string[] | undefined;
1093
+ } | undefined;
1094
+ create?: {
1095
+ fields?: string[] | undefined;
1096
+ apiRequests?: {
1097
+ method?: unknown;
1098
+ path?: unknown;
1099
+ }[] | undefined;
1100
+ requiredFields?: string[] | undefined;
1101
+ excludedFields?: string[] | undefined;
1102
+ } | undefined;
1103
+ udm?: Record<string, {
1104
+ fields?: string[] | undefined;
1105
+ extract?: Record<string, any> | undefined;
1106
+ parse?: Record<string, any> | undefined;
1107
+ }> | undefined;
1108
+ events?: z.objectOutputType<{
1109
+ created: z.ZodOptional<z.ZodObject<{
1110
+ type: z.ZodEnum<["push", "pull"]>;
1111
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1112
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ type: "push" | "pull";
1115
+ isFullScan?: boolean | undefined;
1116
+ isIdOnly?: boolean | undefined;
1117
+ }, {
1118
+ type: "push" | "pull";
1119
+ isFullScan?: boolean | undefined;
1120
+ isIdOnly?: boolean | undefined;
1121
+ }>>;
1122
+ updated: z.ZodOptional<z.ZodObject<{
1123
+ type: z.ZodEnum<["push", "pull"]>;
1124
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1125
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ type: "push" | "pull";
1128
+ isFullScan?: boolean | undefined;
1129
+ isIdOnly?: boolean | undefined;
1130
+ }, {
1131
+ type: "push" | "pull";
1132
+ isFullScan?: boolean | undefined;
1133
+ isIdOnly?: boolean | undefined;
1134
+ }>>;
1135
+ deleted: z.ZodOptional<z.ZodObject<{
1136
+ type: z.ZodEnum<["push", "pull"]>;
1137
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1138
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ type: "push" | "pull";
1141
+ isFullScan?: boolean | undefined;
1142
+ isIdOnly?: boolean | undefined;
1143
+ }, {
1144
+ type: "push" | "pull";
1145
+ isFullScan?: boolean | undefined;
1146
+ isIdOnly?: boolean | undefined;
1147
+ }>>;
1148
+ all: z.ZodOptional<z.ZodObject<{
1149
+ type: z.ZodEnum<["push", "pull"]>;
1150
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1151
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ type: "push" | "pull";
1154
+ isFullScan?: boolean | undefined;
1155
+ isIdOnly?: boolean | undefined;
1156
+ }, {
1157
+ type: "push" | "pull";
1158
+ isFullScan?: boolean | undefined;
1159
+ isIdOnly?: boolean | undefined;
1160
+ }>>;
1161
+ }, z.ZodObject<{
1162
+ type: z.ZodEnum<["push", "pull"]>;
1163
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1164
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ type: "push" | "pull";
1167
+ isFullScan?: boolean | undefined;
1168
+ isIdOnly?: boolean | undefined;
1169
+ }, {
1170
+ type: "push" | "pull";
1171
+ isFullScan?: boolean | undefined;
1172
+ isIdOnly?: boolean | undefined;
1173
+ }>, "strip"> | undefined;
1174
+ parametersSchema?: import("../..").DataSchema | undefined;
1175
+ fieldsSchema?: import("../..").DataSchema | undefined;
1176
+ findById?: {
1177
+ apiRequests?: {
1178
+ method?: unknown;
1179
+ path?: unknown;
1180
+ }[] | undefined;
1181
+ } | undefined;
1182
+ update?: {
1183
+ fields?: string[] | undefined;
1184
+ apiRequests?: {
1185
+ method?: unknown;
1186
+ path?: unknown;
1187
+ }[] | undefined;
1188
+ excludedFields?: string[] | undefined;
1189
+ } | undefined;
1190
+ customFields?: boolean | undefined;
1191
+ } | undefined;
1192
+ user?: {
1193
+ id: string;
1194
+ name: string;
1195
+ internalId: string;
1196
+ createdAt?: string | undefined;
1197
+ archivedAt?: string | undefined;
1198
+ credentials?: any;
1199
+ fields?: Record<string, any> | undefined;
1200
+ isTest?: boolean | undefined;
1201
+ lastActiveAt?: string | undefined;
1202
+ isBillable?: boolean | undefined;
1203
+ } | undefined;
1204
+ dataSourceId?: string | undefined;
1205
+ isCustomized?: boolean | undefined;
1206
+ dataSourceRevision?: string | undefined;
1207
+ universalDataSourceId?: string | undefined;
1208
+ collectionKey?: string | undefined;
1209
+ collectionParameters?: any;
1210
+ defaultCollectionKey?: string | undefined;
1211
+ defaultCollectionParameters?: any;
1212
+ pullUpdatesIntervalSeconds?: number | undefined;
1213
+ fullSyncIntervalSeconds?: number | undefined;
1214
+ defaultPath?: string | undefined;
1215
+ dataSource?: {
1216
+ id: string;
1217
+ name: string;
1218
+ revision: string;
1219
+ key?: string | undefined;
1220
+ uuid?: string | undefined;
1221
+ description?: string | undefined;
1222
+ state?: import("..").WorkspaceElementState | undefined;
1223
+ errors?: any[] | undefined;
1224
+ isDeactivated?: boolean | undefined;
1225
+ createdAt?: string | undefined;
1226
+ updatedAt?: string | undefined;
1227
+ archivedAt?: string | undefined;
1228
+ integrationId?: string | undefined;
1229
+ udm?: string | undefined;
1230
+ publishedRevision?: string | undefined;
1231
+ customized?: boolean | undefined;
1232
+ universalDataSourceId?: string | undefined;
1233
+ collectionKey?: string | undefined;
1234
+ collectionParameters?: any;
1235
+ pullUpdatesIntervalSeconds?: number | undefined;
1236
+ fullSyncIntervalSeconds?: number | undefined;
1237
+ defaultPath?: string | undefined;
1238
+ universalDataSourceRevision?: string | undefined;
1239
+ } | undefined;
1240
+ }, {
1241
+ id: string;
1242
+ name: string;
1243
+ revision: string;
1244
+ userId: string;
1245
+ connectionId: string;
1246
+ integrationId: string;
1247
+ key?: string | undefined;
1248
+ connection?: {
1249
+ id: string;
1250
+ name: string;
1251
+ createdAt: string;
1252
+ updatedAt: string;
1253
+ userId: string;
1254
+ integrationId: string;
1255
+ error?: any;
1256
+ state?: import("..").WorkspaceElementState | undefined;
1257
+ errors?: any[] | undefined;
1258
+ isDeactivated?: boolean | undefined;
1259
+ archivedAt?: string | undefined;
1260
+ authOptionKey?: string | undefined;
1261
+ isTest?: boolean | undefined;
1262
+ disconnected?: boolean | undefined;
1263
+ isDefunct?: boolean | undefined;
1264
+ lastActiveAt?: string | undefined;
1265
+ nextCredentialsRefreshAt?: string | undefined;
1266
+ meta?: Record<string, any> | undefined;
1267
+ } | undefined;
1268
+ path?: string | undefined;
1269
+ integration?: {
1270
+ id: string;
1271
+ name: string;
1272
+ logoUri: string;
1273
+ key?: string | undefined;
1274
+ uuid?: string | undefined;
1275
+ description?: string | undefined;
1276
+ state?: import("..").WorkspaceElementState | undefined;
1277
+ errors?: any[] | undefined;
1278
+ revision?: string | undefined;
1279
+ isDeactivated?: boolean | undefined;
1280
+ createdAt?: string | undefined;
1281
+ updatedAt?: string | undefined;
1282
+ archivedAt?: string | undefined;
1283
+ parameters?: any;
1284
+ isTest?: boolean | undefined;
1285
+ connectorId?: string | undefined;
1286
+ connectorVersion?: string | undefined;
1287
+ oAuthCallbackUri?: string | undefined;
1288
+ hasMissingParameters?: boolean | undefined;
1289
+ hasDocumentation?: boolean | undefined;
1290
+ hasOperations?: boolean | undefined;
1291
+ operationsCount?: number | undefined;
1292
+ hasData?: boolean | undefined;
1293
+ dataCollectionsCount?: number | undefined;
1294
+ hasEvents?: boolean | undefined;
1295
+ eventsCount?: number | undefined;
1296
+ hasGlobalWebhooks?: boolean | undefined;
1297
+ hasUdm?: boolean | undefined;
1298
+ appUuid?: string | undefined;
1299
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1300
+ } | undefined;
1301
+ uuid?: string | undefined;
1302
+ description?: string | undefined;
1303
+ state?: import("..").WorkspaceElementState | undefined;
1304
+ errors?: any[] | undefined;
1305
+ isDeactivated?: boolean | undefined;
1306
+ createdAt?: string | undefined;
1307
+ updatedAt?: string | undefined;
1308
+ archivedAt?: string | undefined;
1309
+ instanceKey?: string | undefined;
1310
+ udm?: string | undefined;
1311
+ collectionSpec?: {
1312
+ type: "collection";
1313
+ name: string;
1314
+ key?: string | undefined;
1315
+ match?: {
1316
+ fields?: string[] | undefined;
1317
+ apiRequests?: {
1318
+ method?: unknown;
1319
+ path?: unknown;
1320
+ }[] | undefined;
1321
+ } | undefined;
1322
+ search?: {
1323
+ apiRequests?: {
1324
+ method?: unknown;
1325
+ path?: unknown;
1326
+ }[] | undefined;
1327
+ } | undefined;
1328
+ find?: {
1329
+ apiRequests?: {
1330
+ method?: unknown;
1331
+ path?: unknown;
1332
+ }[] | undefined;
1333
+ queryFields?: string[] | undefined;
1334
+ } | undefined;
1335
+ delete?: {
1336
+ apiRequests?: {
1337
+ method?: unknown;
1338
+ path?: unknown;
1339
+ }[] | undefined;
1340
+ } | undefined;
1341
+ list?: {
1342
+ apiRequests?: {
1343
+ method?: unknown;
1344
+ path?: unknown;
1345
+ }[] | undefined;
1346
+ filterFields?: string[] | undefined;
1347
+ } | undefined;
1348
+ create?: {
1349
+ fields?: string[] | undefined;
1350
+ apiRequests?: {
1351
+ method?: unknown;
1352
+ path?: unknown;
1353
+ }[] | undefined;
1354
+ requiredFields?: string[] | undefined;
1355
+ excludedFields?: string[] | undefined;
1356
+ } | undefined;
1357
+ udm?: Record<string, {
1358
+ fields?: string[] | undefined;
1359
+ extract?: Record<string, any> | undefined;
1360
+ parse?: Record<string, any> | undefined;
1361
+ }> | undefined;
1362
+ events?: z.objectInputType<{
1363
+ created: z.ZodOptional<z.ZodObject<{
1364
+ type: z.ZodEnum<["push", "pull"]>;
1365
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1366
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ type: "push" | "pull";
1369
+ isFullScan?: boolean | undefined;
1370
+ isIdOnly?: boolean | undefined;
1371
+ }, {
1372
+ type: "push" | "pull";
1373
+ isFullScan?: boolean | undefined;
1374
+ isIdOnly?: boolean | undefined;
1375
+ }>>;
1376
+ updated: z.ZodOptional<z.ZodObject<{
1377
+ type: z.ZodEnum<["push", "pull"]>;
1378
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1379
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1380
+ }, "strip", z.ZodTypeAny, {
1381
+ type: "push" | "pull";
1382
+ isFullScan?: boolean | undefined;
1383
+ isIdOnly?: boolean | undefined;
1384
+ }, {
1385
+ type: "push" | "pull";
1386
+ isFullScan?: boolean | undefined;
1387
+ isIdOnly?: boolean | undefined;
1388
+ }>>;
1389
+ deleted: z.ZodOptional<z.ZodObject<{
1390
+ type: z.ZodEnum<["push", "pull"]>;
1391
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1392
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1393
+ }, "strip", z.ZodTypeAny, {
1394
+ type: "push" | "pull";
1395
+ isFullScan?: boolean | undefined;
1396
+ isIdOnly?: boolean | undefined;
1397
+ }, {
1398
+ type: "push" | "pull";
1399
+ isFullScan?: boolean | undefined;
1400
+ isIdOnly?: boolean | undefined;
1401
+ }>>;
1402
+ all: z.ZodOptional<z.ZodObject<{
1403
+ type: z.ZodEnum<["push", "pull"]>;
1404
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1405
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ type: "push" | "pull";
1408
+ isFullScan?: boolean | undefined;
1409
+ isIdOnly?: boolean | undefined;
1410
+ }, {
1411
+ type: "push" | "pull";
1412
+ isFullScan?: boolean | undefined;
1413
+ isIdOnly?: boolean | undefined;
1414
+ }>>;
1415
+ }, z.ZodObject<{
1416
+ type: z.ZodEnum<["push", "pull"]>;
1417
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1418
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ type: "push" | "pull";
1421
+ isFullScan?: boolean | undefined;
1422
+ isIdOnly?: boolean | undefined;
1423
+ }, {
1424
+ type: "push" | "pull";
1425
+ isFullScan?: boolean | undefined;
1426
+ isIdOnly?: boolean | undefined;
1427
+ }>, "strip"> | undefined;
1428
+ parametersSchema?: import("../..").DataSchema | undefined;
1429
+ fieldsSchema?: import("../..").DataSchema | undefined;
1430
+ findById?: {
1431
+ apiRequests?: {
1432
+ method?: unknown;
1433
+ path?: unknown;
1434
+ }[] | undefined;
1435
+ } | undefined;
1436
+ update?: {
1437
+ fields?: string[] | undefined;
1438
+ apiRequests?: {
1439
+ method?: unknown;
1440
+ path?: unknown;
1441
+ }[] | undefined;
1442
+ excludedFields?: string[] | undefined;
1443
+ } | undefined;
1444
+ customFields?: boolean | undefined;
1445
+ } | undefined;
1446
+ user?: {
1447
+ id: string;
1448
+ name: string;
1449
+ internalId: string;
1450
+ createdAt?: string | undefined;
1451
+ archivedAt?: string | undefined;
1452
+ credentials?: any;
1453
+ fields?: Record<string, any> | undefined;
1454
+ isTest?: boolean | undefined;
1455
+ lastActiveAt?: string | undefined;
1456
+ isBillable?: boolean | undefined;
1457
+ } | undefined;
1458
+ dataSourceId?: string | undefined;
1459
+ isCustomized?: boolean | undefined;
1460
+ dataSourceRevision?: string | undefined;
1461
+ universalDataSourceId?: string | undefined;
1462
+ collectionKey?: string | undefined;
1463
+ collectionParameters?: any;
1464
+ defaultCollectionKey?: string | undefined;
1465
+ defaultCollectionParameters?: any;
1466
+ pullUpdatesIntervalSeconds?: number | undefined;
1467
+ fullSyncIntervalSeconds?: number | undefined;
1468
+ defaultPath?: string | undefined;
1469
+ dataSource?: {
1470
+ id: string;
1471
+ name: string;
1472
+ revision: string;
1473
+ key?: string | undefined;
1474
+ uuid?: string | undefined;
1475
+ description?: string | undefined;
1476
+ state?: import("..").WorkspaceElementState | undefined;
1477
+ errors?: any[] | undefined;
1478
+ isDeactivated?: boolean | undefined;
1479
+ createdAt?: string | undefined;
1480
+ updatedAt?: string | undefined;
1481
+ archivedAt?: string | undefined;
1482
+ integrationId?: string | undefined;
1483
+ udm?: string | undefined;
1484
+ publishedRevision?: string | undefined;
1485
+ customized?: boolean | undefined;
1486
+ universalDataSourceId?: string | undefined;
1487
+ collectionKey?: string | undefined;
1488
+ collectionParameters?: any;
1489
+ pullUpdatesIntervalSeconds?: number | undefined;
1490
+ fullSyncIntervalSeconds?: number | undefined;
1491
+ defaultPath?: string | undefined;
1492
+ universalDataSourceRevision?: string | undefined;
1493
+ } | undefined;
1494
+ }>;
1495
+ export type DataSourceInstanceApiResponse = z.infer<typeof DataSourceInstanceApiResponse>;
1496
+ export type DataSourceInstance = DataSourceInstanceApiResponse;