@membranehq/sdk 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/bundle.d.ts +13011 -5117
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +31 -10
  5. package/dist/dts/accessors/integrations-accessors.d.ts +31 -10
  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 +529 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +393 -90
  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 +387 -97
  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 +541 -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 +1590 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +357 -79
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +169 -27
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +367 -69
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +1040 -257
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +121 -37
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +151 -26
  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 +28 -12
  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 +18 -12
  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 +6 -6
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +26 -11
  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 +26 -12
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +557 -67
  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 +4 -3
  61. package/dist/index.d.ts +21959 -8561
  62. package/dist/index.js +258 -109
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +21959 -8561
  65. package/dist/index.module.mjs +225 -101
  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,5 +1,4 @@
1
1
  import { z } from 'zod';
2
- import { BaseCustomer } from '../base/customers';
3
2
  export declare const CreateCustomerRequest: z.ZodObject<{
4
3
  name: z.ZodOptional<z.ZodString>;
5
4
  internalId: z.ZodString;
@@ -35,7 +34,7 @@ export declare const UpdateCustomerRequest: z.ZodObject<{
35
34
  }>;
36
35
  export type UpdateCustomerRequest = z.infer<typeof UpdateCustomerRequest>;
37
36
  export declare const FindCustomersQuery: z.ZodObject<{
38
- isTest: z.ZodOptional<z.ZodBoolean>;
37
+ isTest: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
39
38
  } & {
40
39
  limit: z.ZodOptional<z.ZodNumber>;
41
40
  cursor: z.ZodOptional<z.ZodString>;
@@ -50,7 +49,7 @@ export declare const FindCustomersQuery: z.ZodObject<{
50
49
  search?: string | undefined;
51
50
  limit?: number | undefined;
52
51
  cursor?: string | undefined;
53
- isTest?: boolean | undefined;
52
+ isTest?: unknown;
54
53
  }>;
55
54
  export type FindCustomersQuery = z.infer<typeof FindCustomersQuery>;
56
55
  export declare const CustomerSelector: z.ZodObject<{
@@ -65,6 +64,40 @@ export type CreateUserRequest = CreateCustomerRequest;
65
64
  export type UpdateUserRequest = UpdateCustomerRequest;
66
65
  export type FindUsersQuery = FindCustomersQuery;
67
66
  export type UserSelector = CustomerSelector;
68
- export type Customer = BaseCustomer;
69
- export type CustomerApiResponse = Customer;
67
+ export declare const CustomerApiResponse: z.ZodObject<{
68
+ id: z.ZodString;
69
+ name: z.ZodString;
70
+ internalId: z.ZodString;
71
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
72
+ credentials: z.ZodOptional<z.ZodAny>;
73
+ lastActiveAt: z.ZodOptional<z.ZodString>;
74
+ isTest: z.ZodOptional<z.ZodBoolean>;
75
+ isBillable: z.ZodOptional<z.ZodBoolean>;
76
+ createdAt: z.ZodOptional<z.ZodString>;
77
+ archivedAt: z.ZodOptional<z.ZodString>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ id: string;
80
+ name: string;
81
+ internalId: string;
82
+ createdAt?: string | undefined;
83
+ archivedAt?: string | undefined;
84
+ credentials?: any;
85
+ fields?: Record<string, any> | undefined;
86
+ isTest?: boolean | undefined;
87
+ lastActiveAt?: string | undefined;
88
+ isBillable?: boolean | undefined;
89
+ }, {
90
+ id: string;
91
+ name: string;
92
+ internalId: string;
93
+ createdAt?: string | undefined;
94
+ archivedAt?: string | undefined;
95
+ credentials?: any;
96
+ fields?: Record<string, any> | undefined;
97
+ isTest?: boolean | undefined;
98
+ lastActiveAt?: string | undefined;
99
+ isBillable?: boolean | undefined;
100
+ }>;
101
+ export type CustomerApiResponse = typeof CustomerApiResponse._type;
102
+ export type Customer = CustomerApiResponse;
70
103
  export type User = Customer;
@@ -1,11 +1,9 @@
1
+ import { z } from 'zod';
1
2
  import { ConnectionSelector } from './connections-api';
2
3
  import { ElementInstanceSelector } from '../../accessors';
3
4
  import { PaginationQuery, PaginationResponse } from '../../entity-repository';
4
- import { BaseConnection } from '../base/connections';
5
- import { BaseCustomer } from '../base/customers';
6
- import { DataLink, BaseDataLinkTableInstance } from '../base/data-link-table-instances';
7
- import { DataLinkDirection, BaseDataLinkTable } from '../base/data-link-tables';
8
- import { BaseIntegration } from '../base/integrations';
5
+ import { DataLink } from '../base/data-link-table-instances';
6
+ import { DataLinkDirection } from '../base/data-link-tables';
9
7
  export interface FindDataLinkTableInstancesQuery extends PaginationQuery {
10
8
  connectionId?: string;
11
9
  integrationId?: string;
@@ -54,10 +52,541 @@ export interface DataLinkInTableSelector {
54
52
  export interface DataLinkSelector extends DataLinkInTableSelector {
55
53
  dataLinkTableInstanceId: string;
56
54
  }
57
- export interface DataLinkTableInstance extends BaseDataLinkTableInstance {
58
- dataLinkTable?: BaseDataLinkTable;
59
- connection?: BaseConnection;
60
- integration?: BaseIntegration;
61
- user?: BaseCustomer;
62
- }
63
- export type DataLinkTableInstanceApiResponse = DataLinkTableInstance;
55
+ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
56
+ id: z.ZodString;
57
+ name: z.ZodString;
58
+ key: z.ZodOptional<z.ZodString>;
59
+ uuid: z.ZodOptional<z.ZodString>;
60
+ description: z.ZodOptional<z.ZodString>;
61
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
62
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
63
+ revision: z.ZodOptional<z.ZodString>;
64
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
65
+ createdAt: z.ZodOptional<z.ZodString>;
66
+ updatedAt: z.ZodOptional<z.ZodString>;
67
+ } & {
68
+ dataLinkTableId: z.ZodOptional<z.ZodString>;
69
+ connectionId: z.ZodOptional<z.ZodString>;
70
+ integrationId: z.ZodString;
71
+ instanceKey: z.ZodOptional<z.ZodString>;
72
+ userId: z.ZodString;
73
+ archivedAt: z.ZodOptional<z.ZodString>;
74
+ } & {
75
+ dataLinkTable: z.ZodOptional<z.ZodObject<{
76
+ id: z.ZodString;
77
+ name: z.ZodString;
78
+ key: z.ZodOptional<z.ZodString>;
79
+ uuid: z.ZodOptional<z.ZodString>;
80
+ description: z.ZodOptional<z.ZodString>;
81
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
82
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
83
+ revision: z.ZodOptional<z.ZodString>;
84
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
85
+ createdAt: z.ZodOptional<z.ZodString>;
86
+ updatedAt: z.ZodOptional<z.ZodString>;
87
+ } & {
88
+ archivedAt: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ id: string;
91
+ name: string;
92
+ key?: string | undefined;
93
+ uuid?: string | undefined;
94
+ description?: string | undefined;
95
+ state?: import("..").WorkspaceElementState | undefined;
96
+ errors?: any[] | undefined;
97
+ revision?: string | undefined;
98
+ isDeactivated?: boolean | undefined;
99
+ createdAt?: string | undefined;
100
+ updatedAt?: string | undefined;
101
+ archivedAt?: string | undefined;
102
+ }, {
103
+ id: string;
104
+ name: string;
105
+ key?: string | undefined;
106
+ uuid?: string | undefined;
107
+ description?: string | undefined;
108
+ state?: import("..").WorkspaceElementState | undefined;
109
+ errors?: any[] | undefined;
110
+ revision?: string | undefined;
111
+ isDeactivated?: boolean | undefined;
112
+ createdAt?: string | undefined;
113
+ updatedAt?: string | undefined;
114
+ archivedAt?: string | undefined;
115
+ }>>;
116
+ connection: z.ZodOptional<z.ZodObject<{
117
+ id: z.ZodString;
118
+ } & {
119
+ name: z.ZodString;
120
+ userId: z.ZodString;
121
+ isTest: z.ZodOptional<z.ZodBoolean>;
122
+ disconnected: z.ZodOptional<z.ZodBoolean>;
123
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
124
+ error: any;
125
+ integrationId: z.ZodString;
126
+ credentials: z.ZodOptional<z.ZodUnknown>;
127
+ parameters: z.ZodOptional<z.ZodUnknown>;
128
+ connectorParameters: z.ZodOptional<z.ZodUnknown>;
129
+ createdAt: z.ZodString;
130
+ updatedAt: z.ZodString;
131
+ lastActiveAt: z.ZodOptional<z.ZodString>;
132
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
133
+ archivedAt: z.ZodOptional<z.ZodString>;
134
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
135
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
136
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
137
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ id: string;
140
+ name: string;
141
+ createdAt: string;
142
+ updatedAt: string;
143
+ userId: string;
144
+ integrationId: string;
145
+ error?: any;
146
+ state?: import("..").WorkspaceElementState | undefined;
147
+ errors?: any[] | undefined;
148
+ isDeactivated?: boolean | undefined;
149
+ archivedAt?: string | undefined;
150
+ credentials?: unknown;
151
+ parameters?: unknown;
152
+ connectorParameters?: unknown;
153
+ isTest?: boolean | undefined;
154
+ disconnected?: boolean | undefined;
155
+ isDefunct?: boolean | undefined;
156
+ lastActiveAt?: string | undefined;
157
+ nextCredentialsRefreshAt?: string | undefined;
158
+ meta?: Record<string, any> | undefined;
159
+ }, {
160
+ id: string;
161
+ name: string;
162
+ createdAt: string;
163
+ updatedAt: string;
164
+ userId: string;
165
+ integrationId: string;
166
+ error?: any;
167
+ state?: import("..").WorkspaceElementState | undefined;
168
+ errors?: any[] | undefined;
169
+ isDeactivated?: boolean | undefined;
170
+ archivedAt?: string | undefined;
171
+ credentials?: unknown;
172
+ parameters?: unknown;
173
+ connectorParameters?: unknown;
174
+ isTest?: boolean | undefined;
175
+ disconnected?: boolean | undefined;
176
+ isDefunct?: boolean | undefined;
177
+ lastActiveAt?: string | undefined;
178
+ nextCredentialsRefreshAt?: string | undefined;
179
+ meta?: Record<string, any> | undefined;
180
+ }>>;
181
+ integration: z.ZodOptional<z.ZodObject<{
182
+ id: z.ZodString;
183
+ name: z.ZodString;
184
+ key: z.ZodOptional<z.ZodString>;
185
+ uuid: z.ZodOptional<z.ZodString>;
186
+ description: z.ZodOptional<z.ZodString>;
187
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
188
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
189
+ revision: z.ZodOptional<z.ZodString>;
190
+ createdAt: z.ZodOptional<z.ZodString>;
191
+ updatedAt: z.ZodOptional<z.ZodString>;
192
+ } & {
193
+ logoUri: z.ZodString;
194
+ connectorId: z.ZodOptional<z.ZodString>;
195
+ connectorVersion: z.ZodOptional<z.ZodString>;
196
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
197
+ key: z.ZodString;
198
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
199
+ title: z.ZodOptional<z.ZodString>;
200
+ description: z.ZodOptional<z.ZodString>;
201
+ ui: z.ZodOptional<z.ZodObject<{
202
+ schema: z.ZodOptional<z.ZodAny>;
203
+ helpUri: z.ZodOptional<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ schema?: any;
206
+ helpUri?: string | undefined;
207
+ }, {
208
+ schema?: any;
209
+ helpUri?: string | undefined;
210
+ }>>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ key: string;
213
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
214
+ description?: string | undefined;
215
+ title?: string | undefined;
216
+ ui?: {
217
+ schema?: any;
218
+ helpUri?: string | undefined;
219
+ } | undefined;
220
+ }, {
221
+ key: string;
222
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
223
+ description?: string | undefined;
224
+ title?: string | undefined;
225
+ ui?: {
226
+ schema?: any;
227
+ helpUri?: string | undefined;
228
+ } | undefined;
229
+ }>, "many">>;
230
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
231
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
232
+ parameters: z.ZodOptional<z.ZodAny>;
233
+ baseUri: z.ZodString;
234
+ archivedAt: z.ZodOptional<z.ZodString>;
235
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
236
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
237
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
238
+ operationsCount: z.ZodOptional<z.ZodNumber>;
239
+ hasData: z.ZodOptional<z.ZodBoolean>;
240
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
241
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
242
+ eventsCount: z.ZodOptional<z.ZodNumber>;
243
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
244
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
245
+ isTest: z.ZodOptional<z.ZodBoolean>;
246
+ appUuid: z.ZodOptional<z.ZodString>;
247
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
248
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ id: string;
251
+ name: string;
252
+ baseUri: string;
253
+ logoUri: string;
254
+ key?: string | undefined;
255
+ uuid?: string | undefined;
256
+ description?: string | undefined;
257
+ state?: import("..").WorkspaceElementState | undefined;
258
+ errors?: any[] | undefined;
259
+ revision?: string | undefined;
260
+ isDeactivated?: boolean | undefined;
261
+ createdAt?: string | undefined;
262
+ updatedAt?: string | undefined;
263
+ archivedAt?: string | undefined;
264
+ parameters?: any;
265
+ parametersSchema?: import("../..").DataSchema | undefined;
266
+ isTest?: boolean | undefined;
267
+ connectorId?: string | undefined;
268
+ connectorVersion?: string | undefined;
269
+ authOptions?: {
270
+ key: string;
271
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
272
+ description?: string | undefined;
273
+ title?: string | undefined;
274
+ ui?: {
275
+ schema?: any;
276
+ helpUri?: string | undefined;
277
+ } | undefined;
278
+ }[] | undefined;
279
+ oAuthCallbackUri?: string | undefined;
280
+ hasMissingParameters?: boolean | undefined;
281
+ hasDocumentation?: boolean | undefined;
282
+ hasOperations?: boolean | undefined;
283
+ operationsCount?: number | undefined;
284
+ hasData?: boolean | undefined;
285
+ dataCollectionsCount?: number | undefined;
286
+ hasEvents?: boolean | undefined;
287
+ eventsCount?: number | undefined;
288
+ hasGlobalWebhooks?: boolean | undefined;
289
+ hasUdm?: boolean | undefined;
290
+ appUuid?: string | undefined;
291
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
292
+ }, {
293
+ id: string;
294
+ name: string;
295
+ baseUri: string;
296
+ logoUri: string;
297
+ key?: string | undefined;
298
+ uuid?: string | undefined;
299
+ description?: string | undefined;
300
+ state?: import("..").WorkspaceElementState | undefined;
301
+ errors?: any[] | undefined;
302
+ revision?: string | undefined;
303
+ isDeactivated?: boolean | undefined;
304
+ createdAt?: string | undefined;
305
+ updatedAt?: string | undefined;
306
+ archivedAt?: string | undefined;
307
+ parameters?: any;
308
+ parametersSchema?: import("../..").DataSchema | undefined;
309
+ isTest?: boolean | undefined;
310
+ connectorId?: string | undefined;
311
+ connectorVersion?: string | undefined;
312
+ authOptions?: {
313
+ key: string;
314
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
315
+ description?: string | undefined;
316
+ title?: string | undefined;
317
+ ui?: {
318
+ schema?: any;
319
+ helpUri?: string | undefined;
320
+ } | undefined;
321
+ }[] | undefined;
322
+ oAuthCallbackUri?: string | undefined;
323
+ hasMissingParameters?: boolean | undefined;
324
+ hasDocumentation?: boolean | undefined;
325
+ hasOperations?: boolean | undefined;
326
+ operationsCount?: number | undefined;
327
+ hasData?: boolean | undefined;
328
+ dataCollectionsCount?: number | undefined;
329
+ hasEvents?: boolean | undefined;
330
+ eventsCount?: number | undefined;
331
+ hasGlobalWebhooks?: boolean | undefined;
332
+ hasUdm?: boolean | undefined;
333
+ appUuid?: string | undefined;
334
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
335
+ }>>;
336
+ user: z.ZodOptional<z.ZodObject<{
337
+ id: z.ZodString;
338
+ name: z.ZodString;
339
+ internalId: z.ZodString;
340
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
341
+ credentials: z.ZodOptional<z.ZodAny>;
342
+ lastActiveAt: z.ZodOptional<z.ZodString>;
343
+ isTest: z.ZodOptional<z.ZodBoolean>;
344
+ isBillable: z.ZodOptional<z.ZodBoolean>;
345
+ createdAt: z.ZodOptional<z.ZodString>;
346
+ archivedAt: z.ZodOptional<z.ZodString>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ id: string;
349
+ name: string;
350
+ internalId: string;
351
+ createdAt?: string | undefined;
352
+ archivedAt?: string | undefined;
353
+ credentials?: any;
354
+ fields?: Record<string, any> | undefined;
355
+ isTest?: boolean | undefined;
356
+ lastActiveAt?: string | undefined;
357
+ isBillable?: boolean | undefined;
358
+ }, {
359
+ id: string;
360
+ name: string;
361
+ internalId: string;
362
+ createdAt?: string | undefined;
363
+ archivedAt?: string | undefined;
364
+ credentials?: any;
365
+ fields?: Record<string, any> | undefined;
366
+ isTest?: boolean | undefined;
367
+ lastActiveAt?: string | undefined;
368
+ isBillable?: boolean | undefined;
369
+ }>>;
370
+ }, "strip", z.ZodTypeAny, {
371
+ id: string;
372
+ name: string;
373
+ userId: string;
374
+ integrationId: string;
375
+ key?: string | undefined;
376
+ connection?: {
377
+ id: string;
378
+ name: string;
379
+ createdAt: string;
380
+ updatedAt: string;
381
+ userId: string;
382
+ integrationId: string;
383
+ error?: any;
384
+ state?: import("..").WorkspaceElementState | undefined;
385
+ errors?: any[] | undefined;
386
+ isDeactivated?: boolean | undefined;
387
+ archivedAt?: string | undefined;
388
+ credentials?: unknown;
389
+ parameters?: unknown;
390
+ connectorParameters?: unknown;
391
+ isTest?: boolean | undefined;
392
+ disconnected?: boolean | undefined;
393
+ isDefunct?: boolean | undefined;
394
+ lastActiveAt?: string | undefined;
395
+ nextCredentialsRefreshAt?: string | undefined;
396
+ meta?: Record<string, any> | undefined;
397
+ } | undefined;
398
+ integration?: {
399
+ id: string;
400
+ name: string;
401
+ baseUri: string;
402
+ logoUri: string;
403
+ key?: string | undefined;
404
+ uuid?: string | undefined;
405
+ description?: string | undefined;
406
+ state?: import("..").WorkspaceElementState | undefined;
407
+ errors?: any[] | undefined;
408
+ revision?: string | undefined;
409
+ isDeactivated?: boolean | undefined;
410
+ createdAt?: string | undefined;
411
+ updatedAt?: string | undefined;
412
+ archivedAt?: string | undefined;
413
+ parameters?: any;
414
+ parametersSchema?: import("../..").DataSchema | undefined;
415
+ isTest?: boolean | undefined;
416
+ connectorId?: string | undefined;
417
+ connectorVersion?: string | undefined;
418
+ authOptions?: {
419
+ key: string;
420
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
421
+ description?: string | undefined;
422
+ title?: string | undefined;
423
+ ui?: {
424
+ schema?: any;
425
+ helpUri?: string | undefined;
426
+ } | undefined;
427
+ }[] | undefined;
428
+ oAuthCallbackUri?: string | undefined;
429
+ hasMissingParameters?: boolean | undefined;
430
+ hasDocumentation?: boolean | undefined;
431
+ hasOperations?: boolean | undefined;
432
+ operationsCount?: number | undefined;
433
+ hasData?: boolean | undefined;
434
+ dataCollectionsCount?: number | undefined;
435
+ hasEvents?: boolean | undefined;
436
+ eventsCount?: number | undefined;
437
+ hasGlobalWebhooks?: boolean | undefined;
438
+ hasUdm?: boolean | undefined;
439
+ appUuid?: string | undefined;
440
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
441
+ } | undefined;
442
+ uuid?: string | undefined;
443
+ description?: string | undefined;
444
+ state?: import("..").WorkspaceElementState | undefined;
445
+ errors?: any[] | undefined;
446
+ revision?: string | undefined;
447
+ isDeactivated?: boolean | undefined;
448
+ createdAt?: string | undefined;
449
+ updatedAt?: string | undefined;
450
+ archivedAt?: string | undefined;
451
+ instanceKey?: string | undefined;
452
+ connectionId?: string | undefined;
453
+ user?: {
454
+ id: string;
455
+ name: string;
456
+ internalId: string;
457
+ createdAt?: string | undefined;
458
+ archivedAt?: string | undefined;
459
+ credentials?: any;
460
+ fields?: Record<string, any> | undefined;
461
+ isTest?: boolean | undefined;
462
+ lastActiveAt?: string | undefined;
463
+ isBillable?: boolean | undefined;
464
+ } | undefined;
465
+ dataLinkTableId?: string | undefined;
466
+ dataLinkTable?: {
467
+ id: string;
468
+ name: string;
469
+ key?: string | undefined;
470
+ uuid?: string | undefined;
471
+ description?: string | undefined;
472
+ state?: import("..").WorkspaceElementState | undefined;
473
+ errors?: any[] | undefined;
474
+ revision?: string | undefined;
475
+ isDeactivated?: boolean | undefined;
476
+ createdAt?: string | undefined;
477
+ updatedAt?: string | undefined;
478
+ archivedAt?: string | undefined;
479
+ } | undefined;
480
+ }, {
481
+ id: string;
482
+ name: string;
483
+ userId: string;
484
+ integrationId: string;
485
+ key?: string | undefined;
486
+ connection?: {
487
+ id: string;
488
+ name: string;
489
+ createdAt: string;
490
+ updatedAt: string;
491
+ userId: string;
492
+ integrationId: string;
493
+ error?: any;
494
+ state?: import("..").WorkspaceElementState | undefined;
495
+ errors?: any[] | undefined;
496
+ isDeactivated?: boolean | undefined;
497
+ archivedAt?: string | undefined;
498
+ credentials?: unknown;
499
+ parameters?: unknown;
500
+ connectorParameters?: unknown;
501
+ isTest?: boolean | undefined;
502
+ disconnected?: boolean | undefined;
503
+ isDefunct?: boolean | undefined;
504
+ lastActiveAt?: string | undefined;
505
+ nextCredentialsRefreshAt?: string | undefined;
506
+ meta?: Record<string, any> | undefined;
507
+ } | undefined;
508
+ integration?: {
509
+ id: string;
510
+ name: string;
511
+ baseUri: string;
512
+ logoUri: string;
513
+ key?: string | undefined;
514
+ uuid?: string | undefined;
515
+ description?: string | undefined;
516
+ state?: import("..").WorkspaceElementState | undefined;
517
+ errors?: any[] | undefined;
518
+ revision?: string | undefined;
519
+ isDeactivated?: boolean | undefined;
520
+ createdAt?: string | undefined;
521
+ updatedAt?: string | undefined;
522
+ archivedAt?: string | undefined;
523
+ parameters?: any;
524
+ parametersSchema?: import("../..").DataSchema | undefined;
525
+ isTest?: boolean | undefined;
526
+ connectorId?: string | undefined;
527
+ connectorVersion?: string | undefined;
528
+ authOptions?: {
529
+ key: string;
530
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
531
+ description?: string | undefined;
532
+ title?: string | undefined;
533
+ ui?: {
534
+ schema?: any;
535
+ helpUri?: string | undefined;
536
+ } | undefined;
537
+ }[] | undefined;
538
+ oAuthCallbackUri?: string | undefined;
539
+ hasMissingParameters?: boolean | undefined;
540
+ hasDocumentation?: boolean | undefined;
541
+ hasOperations?: boolean | undefined;
542
+ operationsCount?: number | undefined;
543
+ hasData?: boolean | undefined;
544
+ dataCollectionsCount?: number | undefined;
545
+ hasEvents?: boolean | undefined;
546
+ eventsCount?: number | undefined;
547
+ hasGlobalWebhooks?: boolean | undefined;
548
+ hasUdm?: boolean | undefined;
549
+ appUuid?: string | undefined;
550
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
551
+ } | undefined;
552
+ uuid?: string | undefined;
553
+ description?: string | undefined;
554
+ state?: import("..").WorkspaceElementState | undefined;
555
+ errors?: any[] | undefined;
556
+ revision?: string | undefined;
557
+ isDeactivated?: boolean | undefined;
558
+ createdAt?: string | undefined;
559
+ updatedAt?: string | undefined;
560
+ archivedAt?: string | undefined;
561
+ instanceKey?: string | undefined;
562
+ connectionId?: string | undefined;
563
+ user?: {
564
+ id: string;
565
+ name: string;
566
+ internalId: string;
567
+ createdAt?: string | undefined;
568
+ archivedAt?: string | undefined;
569
+ credentials?: any;
570
+ fields?: Record<string, any> | undefined;
571
+ isTest?: boolean | undefined;
572
+ lastActiveAt?: string | undefined;
573
+ isBillable?: boolean | undefined;
574
+ } | undefined;
575
+ dataLinkTableId?: string | undefined;
576
+ dataLinkTable?: {
577
+ id: string;
578
+ name: string;
579
+ key?: string | undefined;
580
+ uuid?: string | undefined;
581
+ description?: string | undefined;
582
+ state?: import("..").WorkspaceElementState | undefined;
583
+ errors?: any[] | undefined;
584
+ revision?: string | undefined;
585
+ isDeactivated?: boolean | undefined;
586
+ createdAt?: string | undefined;
587
+ updatedAt?: string | undefined;
588
+ archivedAt?: string | undefined;
589
+ } | undefined;
590
+ }>;
591
+ export type DataLinkTableInstanceApiResponse = z.infer<typeof DataLinkTableInstanceApiResponse>;
592
+ export type DataLinkTableInstance = DataLinkTableInstanceApiResponse;
@@ -4,5 +4,46 @@ export interface FindDataLinkTablesQuery extends PaginationQuery {
4
4
  }
5
5
  export type CreateDataLinkTableRequest = Omit<BaseDataLinkTable, 'id' | 'userId'>;
6
6
  export type UpdateDataLinkTableRequest = CreateDataLinkTableRequest;
7
- export type DataLinkTable = BaseDataLinkTable;
8
- export type DataLinkTableApiResponse = DataLinkTable;
7
+ export declare const DataLinkTableApiResponse: import("zod").ZodObject<{
8
+ id: import("zod").ZodString;
9
+ name: import("zod").ZodString;
10
+ key: import("zod").ZodOptional<import("zod").ZodString>;
11
+ uuid: import("zod").ZodOptional<import("zod").ZodString>;
12
+ description: import("zod").ZodOptional<import("zod").ZodString>;
13
+ state: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
14
+ errors: import("zod").ZodOptional<import("zod").ZodArray<any, "many">>;
15
+ revision: import("zod").ZodOptional<import("zod").ZodString>;
16
+ isDeactivated: import("zod").ZodOptional<import("zod").ZodBoolean>;
17
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
18
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
19
+ } & {
20
+ archivedAt: import("zod").ZodOptional<import("zod").ZodString>;
21
+ }, "strip", import("zod").ZodTypeAny, {
22
+ id: string;
23
+ name: string;
24
+ key?: string | undefined;
25
+ uuid?: string | undefined;
26
+ description?: string | undefined;
27
+ state?: import("..").WorkspaceElementState | undefined;
28
+ errors?: any[] | undefined;
29
+ revision?: string | undefined;
30
+ isDeactivated?: boolean | undefined;
31
+ createdAt?: string | undefined;
32
+ updatedAt?: string | undefined;
33
+ archivedAt?: string | undefined;
34
+ }, {
35
+ id: string;
36
+ name: string;
37
+ key?: string | undefined;
38
+ uuid?: string | undefined;
39
+ description?: string | undefined;
40
+ state?: import("..").WorkspaceElementState | undefined;
41
+ errors?: any[] | undefined;
42
+ revision?: string | undefined;
43
+ isDeactivated?: boolean | undefined;
44
+ createdAt?: string | undefined;
45
+ updatedAt?: string | undefined;
46
+ archivedAt?: string | undefined;
47
+ }>;
48
+ export type DataLinkTableApiResponse = typeof DataLinkTableApiResponse._type;
49
+ export type DataLinkTable = DataLinkTableApiResponse;