@membranehq/sdk 0.7.1 → 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 (85) hide show
  1. package/dist/bundle.d.ts +5200 -4617
  2. package/dist/bundle.js +10 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +4 -3
  5. package/dist/dts/accessors/integrations-accessors.d.ts +4 -3
  6. package/dist/dts/accessors/scenarios-accessors.d.ts +4 -3
  7. package/dist/dts/config/config.test.d.ts +1 -0
  8. package/dist/dts/config/index.d.ts +42 -0
  9. package/dist/dts/entity-repository.d.ts +2 -2
  10. package/dist/dts/index.browser.d.ts +31 -0
  11. package/dist/dts/index.d.ts +2 -0
  12. package/dist/dts/index.node.d.ts +2 -0
  13. package/dist/dts/integration-elements/index.d.ts +0 -2
  14. package/dist/dts/{workspace-elements/base/scenarios/types.d.ts → scenario-templates/index.d.ts} +64 -169
  15. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +39 -34
  16. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +37 -37
  17. package/dist/dts/workspace-elements/api/actions-api.d.ts +64 -46
  18. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +13 -0
  19. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +3 -0
  20. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +17 -2
  21. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -0
  22. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -0
  23. package/dist/dts/workspace-elements/api/connections-api.d.ts +57 -34
  24. package/dist/dts/workspace-elements/api/customers-api.d.ts +3 -0
  25. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +29 -16
  26. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +3 -0
  27. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +51 -43
  28. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +474 -441
  29. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +27 -22
  30. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +27 -22
  31. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -16
  32. package/dist/dts/workspace-elements/api/external-events-api.d.ts +7 -0
  33. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +144 -124
  34. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +250 -118
  35. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +122 -98
  36. package/dist/dts/workspace-elements/api/flows-api.d.ts +965 -826
  37. package/dist/dts/workspace-elements/api/integrations-api.d.ts +12 -14
  38. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +434 -431
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +5 -5
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -2
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +18 -15
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +3 -0
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -0
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +3 -0
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -0
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +5 -8
  47. package/dist/dts/workspace-elements/base/customers/index.d.ts +3 -0
  48. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +5 -2
  49. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -0
  50. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +9 -6
  51. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
  52. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +2 -2
  54. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -2
  55. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +8 -5
  56. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
  57. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +26 -26
  58. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -12
  59. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +4 -4
  60. package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
  61. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
  62. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  63. package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -0
  64. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +163 -1
  65. package/dist/dts/workspace-elements/types.d.ts +118 -0
  66. package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
  67. package/dist/{index.d.ts → index.browser.d.mts} +17282 -16311
  68. package/dist/{index.module.d.mts → index.browser.d.ts} +17282 -16311
  69. package/dist/{index.js → index.browser.js} +228 -255
  70. package/dist/index.browser.js.map +1 -0
  71. package/dist/{index.module.mjs → index.browser.mjs} +218 -250
  72. package/dist/index.browser.mjs.map +1 -0
  73. package/dist/index.node.d.mts +28306 -0
  74. package/dist/index.node.d.ts +28306 -0
  75. package/dist/index.node.js +13329 -0
  76. package/dist/index.node.js.map +1 -0
  77. package/dist/index.node.mjs +12853 -0
  78. package/dist/index.node.mjs.map +1 -0
  79. package/package.json +38 -15
  80. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  81. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -102
  82. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -129
  83. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -241
  84. package/dist/index.js.map +0 -1
  85. package/dist/index.module.mjs.map +0 -1
@@ -4,421 +4,129 @@ 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
- limit?: number | undefined;
31
- cursor?: string | undefined;
32
- integrationId?: string | undefined;
33
- universalDataSourceId?: string | undefined;
34
- }, {
35
- limit?: number | undefined;
36
- cursor?: string | undefined;
37
- integrationId?: 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;
7
+ export declare const DataSourceApiResponse: z.ZodObject<{
8
+ id: z.ZodString;
9
+ key: z.ZodOptional<z.ZodString>;
10
+ uuid: z.ZodOptional<z.ZodString>;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
44
13
  integrationId: z.ZodOptional<z.ZodString>;
14
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
45
15
  udm: z.ZodOptional<z.ZodString>;
46
16
  pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
47
17
  fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
48
- rootPath: z.ZodOptional<z.ZodString>;
49
- defaultPath: z.ZodOptional<z.ZodString>;
50
18
  collectionKey: z.ZodOptional<z.ZodString>;
51
19
  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
20
  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
21
  } & {
122
- limit: z.ZodOptional<z.ZodNumber>;
123
- cursor: z.ZodOptional<z.ZodString>;
124
- }, "strip", z.ZodTypeAny, {
125
- limit?: number | undefined;
126
- cursor?: string | undefined;
127
- userId?: string | undefined;
128
- connectionId?: string | undefined;
129
- integrationId?: string | undefined;
130
- integrationKey?: string | undefined;
131
- dataSourceId?: string | undefined;
132
- universalDataSourceId?: string | undefined;
133
- }, {
134
- limit?: number | undefined;
135
- cursor?: string | undefined;
136
- userId?: string | undefined;
137
- connectionId?: string | undefined;
138
- integrationId?: 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>;
22
+ name: z.ZodString;
23
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
24
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
25
+ revision: z.ZodOptional<z.ZodString>;
26
+ createdAt: z.ZodOptional<z.ZodString>;
27
+ updatedAt: z.ZodOptional<z.ZodString>;
28
+ archivedAt: z.ZodOptional<z.ZodString>;
29
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
30
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
31
+ universalDataSourceRevision: z.ZodOptional<z.ZodString>;
32
+ } & {
33
+ integration: z.ZodOptional<z.ZodObject<{
34
+ id: z.ZodString;
35
+ key: z.ZodOptional<z.ZodString>;
36
+ uuid: z.ZodOptional<z.ZodString>;
37
+ description: z.ZodOptional<z.ZodString>;
38
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
39
+ name: z.ZodString;
40
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
41
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
42
+ revision: z.ZodOptional<z.ZodString>;
43
+ createdAt: z.ZodOptional<z.ZodString>;
44
+ updatedAt: z.ZodOptional<z.ZodString>;
45
+ } & {
46
+ logoUri: z.ZodString;
47
+ connectorId: z.ZodOptional<z.ZodString>;
48
+ connectorVersion: z.ZodOptional<z.ZodString>;
49
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
50
+ parameters: z.ZodOptional<z.ZodAny>;
51
+ archivedAt: z.ZodOptional<z.ZodString>;
52
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
53
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
54
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
55
+ operationsCount: z.ZodOptional<z.ZodNumber>;
56
+ hasData: z.ZodOptional<z.ZodBoolean>;
57
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
58
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
59
+ eventsCount: z.ZodOptional<z.ZodNumber>;
60
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
61
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
62
+ isTest: z.ZodOptional<z.ZodBoolean>;
63
+ appUuid: z.ZodOptional<z.ZodString>;
64
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
65
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
169
66
  }, "strip", z.ZodTypeAny, {
170
- created?: boolean | undefined;
171
- updated?: boolean | undefined;
172
- deleted?: boolean | undefined;
67
+ id: string;
68
+ name: string;
69
+ logoUri: string;
70
+ key?: string | undefined;
71
+ uuid?: string | undefined;
72
+ description?: string | undefined;
73
+ meta?: Record<string, any> | undefined;
74
+ state?: import("..").WorkspaceElementState | undefined;
75
+ errors?: import("../..").ErrorDataSchema[] | undefined;
76
+ revision?: string | undefined;
77
+ createdAt?: string | undefined;
78
+ updatedAt?: string | undefined;
79
+ archivedAt?: string | undefined;
80
+ isDeactivated?: boolean | undefined;
81
+ parameters?: any;
82
+ connectorId?: string | undefined;
83
+ connectorVersion?: string | undefined;
84
+ oAuthCallbackUri?: string | undefined;
85
+ hasMissingParameters?: boolean | undefined;
86
+ hasDocumentation?: boolean | undefined;
87
+ hasOperations?: boolean | undefined;
88
+ operationsCount?: number | undefined;
89
+ hasData?: boolean | undefined;
90
+ dataCollectionsCount?: number | undefined;
91
+ hasEvents?: boolean | undefined;
92
+ eventsCount?: number | undefined;
93
+ hasGlobalWebhooks?: boolean | undefined;
94
+ hasUdm?: boolean | undefined;
95
+ isTest?: boolean | undefined;
96
+ appUuid?: string | undefined;
97
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
173
98
  }, {
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
- limit?: number | undefined;
241
- cursor?: string | undefined;
242
- userId?: string | undefined;
243
- connectionId?: string | undefined;
244
- integrationId?: string | undefined;
245
- dataSourceId?: string | undefined;
246
- dataSourceInstanceId?: string | undefined;
247
- startedAfter?: string | undefined;
248
- }, {
249
- limit?: number | undefined;
250
- cursor?: string | undefined;
251
- userId?: string | undefined;
252
- connectionId?: string | undefined;
253
- integrationId?: 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
- limit?: number | undefined;
286
- cursor?: string | undefined;
287
- userId?: string | undefined;
288
- connectionId?: string | undefined;
289
- integrationId?: string | undefined;
290
- dataSourceId?: string | undefined;
291
- dataSourceInstanceId?: string | undefined;
292
- }, {
293
- limit?: number | undefined;
294
- cursor?: string | undefined;
295
- userId?: string | undefined;
296
- connectionId?: string | undefined;
297
- integrationId?: string | undefined;
298
- dataSourceId?: string | undefined;
299
- dataSourceInstanceId?: string | undefined;
300
- }>;
301
- export type FindDataSourceInstanceSyncsQuery = z.infer<typeof FindDataSourceInstanceSyncsQuery>;
302
- export declare const DataSourceApiResponse: z.ZodObject<{
303
- id: z.ZodString;
304
- key: z.ZodOptional<z.ZodString>;
305
- uuid: z.ZodOptional<z.ZodString>;
306
- description: z.ZodOptional<z.ZodString>;
307
- name: z.ZodString;
308
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
309
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
310
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
311
- } & {
312
- revision: z.ZodString;
313
- publishedRevision: z.ZodOptional<z.ZodString>;
314
- integrationId: z.ZodOptional<z.ZodString>;
315
- universalDataSourceId: z.ZodOptional<z.ZodString>;
316
- universalDataSourceRevision: z.ZodOptional<z.ZodString>;
317
- udm: z.ZodOptional<z.ZodString>;
318
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
319
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
320
- collectionKey: z.ZodOptional<z.ZodString>;
321
- collectionParameters: z.ZodOptional<z.ZodAny>;
322
- archivedAt: z.ZodOptional<z.ZodString>;
323
- createdAt: z.ZodOptional<z.ZodString>;
324
- updatedAt: z.ZodOptional<z.ZodString>;
325
- customized: z.ZodOptional<z.ZodBoolean>;
326
- defaultPath: z.ZodOptional<z.ZodString>;
327
- } & {
328
- integration: z.ZodOptional<z.ZodObject<{
329
- id: z.ZodString;
330
- key: z.ZodOptional<z.ZodString>;
331
- uuid: z.ZodOptional<z.ZodString>;
332
- description: z.ZodOptional<z.ZodString>;
333
- name: z.ZodString;
334
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
335
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
336
- revision: z.ZodOptional<z.ZodString>;
337
- createdAt: z.ZodOptional<z.ZodString>;
338
- updatedAt: z.ZodOptional<z.ZodString>;
339
- } & {
340
- logoUri: z.ZodString;
341
- connectorId: z.ZodOptional<z.ZodString>;
342
- connectorVersion: z.ZodOptional<z.ZodString>;
343
- oAuthCallbackUri: z.ZodOptional<z.ZodString>;
344
- parameters: z.ZodOptional<z.ZodAny>;
345
- archivedAt: z.ZodOptional<z.ZodString>;
346
- hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
347
- hasDocumentation: z.ZodOptional<z.ZodBoolean>;
348
- hasOperations: z.ZodOptional<z.ZodBoolean>;
349
- operationsCount: z.ZodOptional<z.ZodNumber>;
350
- hasData: z.ZodOptional<z.ZodBoolean>;
351
- dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
352
- hasEvents: z.ZodOptional<z.ZodBoolean>;
353
- eventsCount: z.ZodOptional<z.ZodNumber>;
354
- hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
355
- hasUdm: z.ZodOptional<z.ZodBoolean>;
356
- isTest: z.ZodOptional<z.ZodBoolean>;
357
- appUuid: z.ZodOptional<z.ZodString>;
358
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
359
- authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
360
- }, "strip", z.ZodTypeAny, {
361
- id: string;
362
- name: string;
363
- logoUri: string;
364
- key?: string | undefined;
365
- uuid?: string | undefined;
366
- description?: string | undefined;
367
- state?: import("..").WorkspaceElementState | undefined;
368
- errors?: import("../..").ErrorDataSchema[] | undefined;
369
- revision?: string | undefined;
370
- createdAt?: string | undefined;
371
- updatedAt?: string | undefined;
372
- archivedAt?: string | undefined;
373
- isDeactivated?: boolean | undefined;
374
- parameters?: any;
375
- connectorId?: string | undefined;
376
- connectorVersion?: string | undefined;
377
- oAuthCallbackUri?: string | undefined;
378
- hasMissingParameters?: boolean | undefined;
379
- hasDocumentation?: boolean | undefined;
380
- hasOperations?: boolean | undefined;
381
- operationsCount?: number | undefined;
382
- hasData?: boolean | undefined;
383
- dataCollectionsCount?: number | undefined;
384
- hasEvents?: boolean | undefined;
385
- eventsCount?: number | undefined;
386
- hasGlobalWebhooks?: boolean | undefined;
387
- hasUdm?: boolean | undefined;
388
- isTest?: boolean | undefined;
389
- appUuid?: string | undefined;
390
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
391
- }, {
392
- id: string;
393
- name: string;
394
- logoUri: string;
395
- key?: string | undefined;
396
- uuid?: string | undefined;
397
- description?: string | undefined;
398
- state?: import("..").WorkspaceElementState | undefined;
399
- errors?: import("../..").ErrorDataSchema[] | undefined;
400
- revision?: string | undefined;
401
- createdAt?: string | undefined;
402
- updatedAt?: string | undefined;
403
- archivedAt?: string | undefined;
404
- isDeactivated?: boolean | undefined;
405
- parameters?: any;
406
- connectorId?: string | undefined;
407
- connectorVersion?: string | undefined;
408
- oAuthCallbackUri?: string | undefined;
409
- hasMissingParameters?: boolean | undefined;
410
- hasDocumentation?: boolean | undefined;
411
- hasOperations?: boolean | undefined;
412
- operationsCount?: number | undefined;
413
- hasData?: boolean | undefined;
414
- dataCollectionsCount?: number | undefined;
415
- hasEvents?: boolean | undefined;
416
- eventsCount?: number | undefined;
417
- hasGlobalWebhooks?: boolean | undefined;
418
- hasUdm?: boolean | undefined;
419
- isTest?: boolean | undefined;
420
- appUuid?: string | undefined;
421
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
99
+ id: string;
100
+ name: string;
101
+ logoUri: string;
102
+ key?: string | undefined;
103
+ uuid?: string | undefined;
104
+ description?: string | undefined;
105
+ meta?: Record<string, any> | undefined;
106
+ state?: import("..").WorkspaceElementState | undefined;
107
+ errors?: import("../..").ErrorDataSchema[] | undefined;
108
+ revision?: string | undefined;
109
+ createdAt?: string | undefined;
110
+ updatedAt?: string | undefined;
111
+ archivedAt?: string | undefined;
112
+ isDeactivated?: boolean | undefined;
113
+ parameters?: any;
114
+ connectorId?: string | undefined;
115
+ connectorVersion?: string | undefined;
116
+ oAuthCallbackUri?: string | undefined;
117
+ hasMissingParameters?: boolean | undefined;
118
+ hasDocumentation?: boolean | undefined;
119
+ hasOperations?: boolean | undefined;
120
+ operationsCount?: number | undefined;
121
+ hasData?: boolean | undefined;
122
+ dataCollectionsCount?: number | undefined;
123
+ hasEvents?: boolean | undefined;
124
+ eventsCount?: number | undefined;
125
+ hasGlobalWebhooks?: boolean | undefined;
126
+ hasUdm?: boolean | undefined;
127
+ isTest?: boolean | undefined;
128
+ appUuid?: string | undefined;
129
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
422
130
  }>>;
423
131
  appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
424
132
  element: z.ZodObject<{
@@ -426,42 +134,42 @@ export declare const DataSourceApiResponse: z.ZodObject<{
426
134
  key: z.ZodOptional<z.ZodString>;
427
135
  uuid: z.ZodOptional<z.ZodString>;
428
136
  description: z.ZodOptional<z.ZodString>;
429
- name: z.ZodString;
430
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
431
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
432
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
433
- } & {
434
- revision: z.ZodString;
435
- publishedRevision: z.ZodOptional<z.ZodString>;
137
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
436
138
  integrationId: z.ZodOptional<z.ZodString>;
437
139
  universalDataSourceId: z.ZodOptional<z.ZodString>;
438
- universalDataSourceRevision: z.ZodOptional<z.ZodString>;
439
140
  udm: z.ZodOptional<z.ZodString>;
440
141
  pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
441
142
  fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
442
143
  collectionKey: z.ZodOptional<z.ZodString>;
443
144
  collectionParameters: z.ZodOptional<z.ZodAny>;
444
- archivedAt: z.ZodOptional<z.ZodString>;
145
+ defaultPath: z.ZodOptional<z.ZodString>;
146
+ } & {
147
+ name: z.ZodString;
148
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
149
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
150
+ revision: z.ZodOptional<z.ZodString>;
445
151
  createdAt: z.ZodOptional<z.ZodString>;
446
152
  updatedAt: z.ZodOptional<z.ZodString>;
447
- customized: z.ZodOptional<z.ZodBoolean>;
448
- defaultPath: z.ZodOptional<z.ZodString>;
449
- }, "strip", z.ZodTypeAny, {
153
+ archivedAt: z.ZodOptional<z.ZodString>;
154
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
155
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
156
+ universalDataSourceRevision: z.ZodOptional<z.ZodString>;
157
+ }, "strip", z.ZodTypeAny, {
450
158
  id: string;
451
159
  name: string;
452
- revision: string;
453
160
  key?: string | undefined;
454
161
  uuid?: string | undefined;
455
162
  description?: string | undefined;
163
+ meta?: Record<string, any> | undefined;
456
164
  state?: import("..").WorkspaceElementState | undefined;
457
165
  errors?: import("../..").ErrorDataSchema[] | undefined;
166
+ revision?: string | undefined;
458
167
  createdAt?: string | undefined;
459
168
  updatedAt?: string | undefined;
460
169
  archivedAt?: string | undefined;
461
170
  isDeactivated?: boolean | undefined;
462
171
  integrationId?: string | undefined;
463
- publishedRevision?: string | undefined;
464
- customized?: boolean | undefined;
172
+ isCustomized?: boolean | undefined;
465
173
  udm?: string | undefined;
466
174
  universalDataSourceId?: string | undefined;
467
175
  collectionKey?: string | undefined;
@@ -473,19 +181,19 @@ export declare const DataSourceApiResponse: z.ZodObject<{
473
181
  }, {
474
182
  id: string;
475
183
  name: string;
476
- revision: string;
477
184
  key?: string | undefined;
478
185
  uuid?: string | undefined;
479
186
  description?: string | undefined;
187
+ meta?: Record<string, any> | undefined;
480
188
  state?: import("..").WorkspaceElementState | undefined;
481
189
  errors?: import("../..").ErrorDataSchema[] | undefined;
190
+ revision?: string | undefined;
482
191
  createdAt?: string | undefined;
483
192
  updatedAt?: string | undefined;
484
193
  archivedAt?: string | undefined;
485
194
  isDeactivated?: boolean | undefined;
486
195
  integrationId?: string | undefined;
487
- publishedRevision?: string | undefined;
488
- customized?: boolean | undefined;
196
+ isCustomized?: boolean | undefined;
489
197
  udm?: string | undefined;
490
198
  universalDataSourceId?: string | undefined;
491
199
  collectionKey?: string | undefined;
@@ -500,6 +208,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
500
208
  key: z.ZodOptional<z.ZodString>;
501
209
  uuid: z.ZodOptional<z.ZodString>;
502
210
  description: z.ZodOptional<z.ZodString>;
211
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
503
212
  name: z.ZodString;
504
213
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
505
214
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -534,6 +243,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
534
243
  key?: string | undefined;
535
244
  uuid?: string | undefined;
536
245
  description?: string | undefined;
246
+ meta?: Record<string, any> | undefined;
537
247
  state?: import("..").WorkspaceElementState | undefined;
538
248
  errors?: import("../..").ErrorDataSchema[] | undefined;
539
249
  revision?: string | undefined;
@@ -565,6 +275,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
565
275
  key?: string | undefined;
566
276
  uuid?: string | undefined;
567
277
  description?: string | undefined;
278
+ meta?: Record<string, any> | undefined;
568
279
  state?: import("..").WorkspaceElementState | undefined;
569
280
  errors?: import("../..").ErrorDataSchema[] | undefined;
570
281
  revision?: string | undefined;
@@ -598,6 +309,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
598
309
  key?: string | undefined;
599
310
  uuid?: string | undefined;
600
311
  description?: string | undefined;
312
+ meta?: Record<string, any> | undefined;
601
313
  state?: import("..").WorkspaceElementState | undefined;
602
314
  errors?: import("../..").ErrorDataSchema[] | undefined;
603
315
  revision?: string | undefined;
@@ -626,19 +338,19 @@ export declare const DataSourceApiResponse: z.ZodObject<{
626
338
  element: {
627
339
  id: string;
628
340
  name: string;
629
- revision: string;
630
341
  key?: string | undefined;
631
342
  uuid?: string | undefined;
632
343
  description?: string | undefined;
344
+ meta?: Record<string, any> | undefined;
633
345
  state?: import("..").WorkspaceElementState | undefined;
634
346
  errors?: import("../..").ErrorDataSchema[] | undefined;
347
+ revision?: string | undefined;
635
348
  createdAt?: string | undefined;
636
349
  updatedAt?: string | undefined;
637
350
  archivedAt?: string | undefined;
638
351
  isDeactivated?: boolean | undefined;
639
352
  integrationId?: string | undefined;
640
- publishedRevision?: string | undefined;
641
- customized?: boolean | undefined;
353
+ isCustomized?: boolean | undefined;
642
354
  udm?: string | undefined;
643
355
  universalDataSourceId?: string | undefined;
644
356
  collectionKey?: string | undefined;
@@ -656,6 +368,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
656
368
  key?: string | undefined;
657
369
  uuid?: string | undefined;
658
370
  description?: string | undefined;
371
+ meta?: Record<string, any> | undefined;
659
372
  state?: import("..").WorkspaceElementState | undefined;
660
373
  errors?: import("../..").ErrorDataSchema[] | undefined;
661
374
  revision?: string | undefined;
@@ -684,19 +397,19 @@ export declare const DataSourceApiResponse: z.ZodObject<{
684
397
  element: {
685
398
  id: string;
686
399
  name: string;
687
- revision: string;
688
400
  key?: string | undefined;
689
401
  uuid?: string | undefined;
690
402
  description?: string | undefined;
403
+ meta?: Record<string, any> | undefined;
691
404
  state?: import("..").WorkspaceElementState | undefined;
692
405
  errors?: import("../..").ErrorDataSchema[] | undefined;
406
+ revision?: string | undefined;
693
407
  createdAt?: string | undefined;
694
408
  updatedAt?: string | undefined;
695
409
  archivedAt?: string | undefined;
696
410
  isDeactivated?: boolean | undefined;
697
411
  integrationId?: string | undefined;
698
- publishedRevision?: string | undefined;
699
- customized?: boolean | undefined;
412
+ isCustomized?: boolean | undefined;
700
413
  udm?: string | undefined;
701
414
  universalDataSourceId?: string | undefined;
702
415
  collectionKey?: string | undefined;
@@ -710,7 +423,6 @@ export declare const DataSourceApiResponse: z.ZodObject<{
710
423
  }, "strip", z.ZodTypeAny, {
711
424
  id: string;
712
425
  name: string;
713
- revision: string;
714
426
  key?: string | undefined;
715
427
  integration?: {
716
428
  id: string;
@@ -719,6 +431,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
719
431
  key?: string | undefined;
720
432
  uuid?: string | undefined;
721
433
  description?: string | undefined;
434
+ meta?: Record<string, any> | undefined;
722
435
  state?: import("..").WorkspaceElementState | undefined;
723
436
  errors?: import("../..").ErrorDataSchema[] | undefined;
724
437
  revision?: string | undefined;
@@ -746,15 +459,16 @@ export declare const DataSourceApiResponse: z.ZodObject<{
746
459
  } | undefined;
747
460
  uuid?: string | undefined;
748
461
  description?: string | undefined;
462
+ meta?: Record<string, any> | undefined;
749
463
  state?: import("..").WorkspaceElementState | undefined;
750
464
  errors?: import("../..").ErrorDataSchema[] | undefined;
465
+ revision?: string | undefined;
751
466
  createdAt?: string | undefined;
752
467
  updatedAt?: string | undefined;
753
468
  archivedAt?: string | undefined;
754
469
  isDeactivated?: boolean | undefined;
755
470
  integrationId?: string | undefined;
756
- publishedRevision?: string | undefined;
757
- customized?: boolean | undefined;
471
+ isCustomized?: boolean | undefined;
758
472
  udm?: string | undefined;
759
473
  appliedToIntegrations?: {
760
474
  integration: {
@@ -764,6 +478,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
764
478
  key?: string | undefined;
765
479
  uuid?: string | undefined;
766
480
  description?: string | undefined;
481
+ meta?: Record<string, any> | undefined;
767
482
  state?: import("..").WorkspaceElementState | undefined;
768
483
  errors?: import("../..").ErrorDataSchema[] | undefined;
769
484
  revision?: string | undefined;
@@ -792,19 +507,19 @@ export declare const DataSourceApiResponse: z.ZodObject<{
792
507
  element: {
793
508
  id: string;
794
509
  name: string;
795
- revision: string;
796
510
  key?: string | undefined;
797
511
  uuid?: string | undefined;
798
512
  description?: string | undefined;
513
+ meta?: Record<string, any> | undefined;
799
514
  state?: import("..").WorkspaceElementState | undefined;
800
515
  errors?: import("../..").ErrorDataSchema[] | undefined;
516
+ revision?: string | undefined;
801
517
  createdAt?: string | undefined;
802
518
  updatedAt?: string | undefined;
803
519
  archivedAt?: string | undefined;
804
520
  isDeactivated?: boolean | undefined;
805
521
  integrationId?: string | undefined;
806
- publishedRevision?: string | undefined;
807
- customized?: boolean | undefined;
522
+ isCustomized?: boolean | undefined;
808
523
  udm?: string | undefined;
809
524
  universalDataSourceId?: string | undefined;
810
525
  collectionKey?: string | undefined;
@@ -825,7 +540,6 @@ export declare const DataSourceApiResponse: z.ZodObject<{
825
540
  }, {
826
541
  id: string;
827
542
  name: string;
828
- revision: string;
829
543
  key?: string | undefined;
830
544
  integration?: {
831
545
  id: string;
@@ -834,6 +548,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
834
548
  key?: string | undefined;
835
549
  uuid?: string | undefined;
836
550
  description?: string | undefined;
551
+ meta?: Record<string, any> | undefined;
837
552
  state?: import("..").WorkspaceElementState | undefined;
838
553
  errors?: import("../..").ErrorDataSchema[] | undefined;
839
554
  revision?: string | undefined;
@@ -861,15 +576,16 @@ export declare const DataSourceApiResponse: z.ZodObject<{
861
576
  } | undefined;
862
577
  uuid?: string | undefined;
863
578
  description?: string | undefined;
579
+ meta?: Record<string, any> | undefined;
864
580
  state?: import("..").WorkspaceElementState | undefined;
865
581
  errors?: import("../..").ErrorDataSchema[] | undefined;
582
+ revision?: string | undefined;
866
583
  createdAt?: string | undefined;
867
584
  updatedAt?: string | undefined;
868
585
  archivedAt?: string | undefined;
869
586
  isDeactivated?: boolean | undefined;
870
587
  integrationId?: string | undefined;
871
- publishedRevision?: string | undefined;
872
- customized?: boolean | undefined;
588
+ isCustomized?: boolean | undefined;
873
589
  udm?: string | undefined;
874
590
  appliedToIntegrations?: {
875
591
  integration: {
@@ -879,6 +595,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
879
595
  key?: string | undefined;
880
596
  uuid?: string | undefined;
881
597
  description?: string | undefined;
598
+ meta?: Record<string, any> | undefined;
882
599
  state?: import("..").WorkspaceElementState | undefined;
883
600
  errors?: import("../..").ErrorDataSchema[] | undefined;
884
601
  revision?: string | undefined;
@@ -907,19 +624,19 @@ export declare const DataSourceApiResponse: z.ZodObject<{
907
624
  element: {
908
625
  id: string;
909
626
  name: string;
910
- revision: string;
911
627
  key?: string | undefined;
912
628
  uuid?: string | undefined;
913
629
  description?: string | undefined;
630
+ meta?: Record<string, any> | undefined;
914
631
  state?: import("..").WorkspaceElementState | undefined;
915
632
  errors?: import("../..").ErrorDataSchema[] | undefined;
633
+ revision?: string | undefined;
916
634
  createdAt?: string | undefined;
917
635
  updatedAt?: string | undefined;
918
636
  archivedAt?: string | undefined;
919
637
  isDeactivated?: boolean | undefined;
920
638
  integrationId?: string | undefined;
921
- publishedRevision?: string | undefined;
922
- customized?: boolean | undefined;
639
+ isCustomized?: boolean | undefined;
923
640
  udm?: string | undefined;
924
641
  universalDataSourceId?: string | undefined;
925
642
  collectionKey?: string | undefined;
@@ -940,3 +657,319 @@ export declare const DataSourceApiResponse: z.ZodObject<{
940
657
  }>;
941
658
  export type DataSourceApiResponse = z.infer<typeof DataSourceApiResponse>;
942
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;
861
+ } | undefined;
862
+ }, {
863
+ path?: string | undefined;
864
+ collectionKey?: string | undefined;
865
+ collectionParameters?: any;
866
+ pullUpdatesIntervalSeconds?: number | undefined;
867
+ fullSyncIntervalSeconds?: number | undefined;
868
+ subscribedTo?: {
869
+ created?: boolean | undefined;
870
+ updated?: boolean | undefined;
871
+ deleted?: boolean | undefined;
872
+ } | undefined;
873
+ }>;
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'>;