@membranehq/sdk 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/bundle.d.ts +16299 -1303
  2. package/dist/bundle.js +3980 -3701
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +78 -1
  5. package/dist/dts/accessors/integrations-accessors.d.ts +78 -1
  6. package/dist/dts/api-client.d.ts +1 -0
  7. package/dist/dts/client.d.ts +1 -0
  8. package/dist/dts/data-schema/index.d.ts +0 -1
  9. package/dist/dts/data-schema/types.d.ts +4 -3
  10. package/dist/dts/entity-repository.d.ts +88 -20
  11. package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
  12. package/dist/dts/http-requests.d.ts +20 -6
  13. package/dist/dts/iframe.d.ts +12 -4
  14. package/dist/dts/index.d.ts +2 -1
  15. package/dist/dts/sse/index.d.ts +1 -0
  16. package/dist/dts/sse/workspace-elements.d.ts +9 -0
  17. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  18. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
  19. package/dist/dts/workspace-elements/api/actions-api.d.ts +1010 -45
  20. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  21. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  22. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  23. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  24. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  25. package/dist/dts/workspace-elements/api/connections-api.d.ts +993 -42
  26. package/dist/dts/workspace-elements/api/customers-api.d.ts +92 -16
  27. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
  28. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  29. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
  30. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +1113 -78
  31. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
  32. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
  33. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
  34. package/dist/dts/workspace-elements/api/external-events-api.d.ts +582 -6
  35. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
  36. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +885 -7
  37. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
  38. package/dist/dts/workspace-elements/api/flows-api.d.ts +3202 -52
  39. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  40. package/dist/dts/workspace-elements/api/integrations-api.d.ts +339 -26
  41. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +523 -35
  42. package/dist/dts/workspace-elements/api/screens-api.d.ts +35 -15
  43. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +78 -15
  44. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +37 -12
  45. package/dist/dts/workspace-elements/base/actions/types.d.ts +78 -18
  46. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +59 -7
  47. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +49 -7
  48. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +92 -9
  49. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +84 -7
  50. package/dist/dts/workspace-elements/base/connections/types.d.ts +82 -20
  51. package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
  52. package/dist/dts/workspace-elements/base/customers/index.d.ts +32 -6
  53. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +93 -92
  54. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +78 -11
  55. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +43 -4
  56. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1048 -19
  57. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +97 -22
  58. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
  59. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
  60. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +197 -24
  61. package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
  62. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +92 -16
  63. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +105 -14
  64. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +43 -43
  65. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +170 -24
  66. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
  67. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +127 -19
  68. package/dist/dts/workspace-elements/base/flows/types.d.ts +234 -26
  69. package/dist/dts/workspace-elements/base/integrations/types.d.ts +988 -25
  70. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +740 -23
  71. package/dist/dts/workspace-elements/base/screens/types.d.ts +48 -6
  72. package/dist/dts/workspace-elements/types.d.ts +25 -3
  73. package/dist/dts/workspaces/types.d.ts +4 -3
  74. package/dist/index.d.ts +26481 -3080
  75. package/dist/index.js +1717 -535
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.module.d.mts +26481 -3080
  78. package/dist/index.module.mjs +1550 -502
  79. package/dist/index.module.mjs.map +1 -1
  80. package/package.json +3 -2
  81. package/dist/dts/data-schema/schemas.d.ts +0 -4
  82. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -1,27 +1,103 @@
1
- import { PaginationQuery, SearchQuery } from '../../entity-repository';
2
- import { BaseCustomer } from '../base/customers';
3
- export type CreateCustomerRequest = {
4
- name?: string;
1
+ import { z } from 'zod';
2
+ export declare const CreateCustomerRequest: z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodString>;
4
+ internalId: z.ZodString;
5
+ fields: z.ZodOptional<z.ZodAny>;
6
+ credentials: z.ZodOptional<z.ZodAny>;
7
+ }, "strip", z.ZodTypeAny, {
5
8
  internalId: string;
9
+ name?: string | undefined;
10
+ credentials?: any;
11
+ fields?: any;
12
+ }, {
13
+ internalId: string;
14
+ name?: string | undefined;
15
+ credentials?: any;
6
16
  fields?: any;
17
+ }>;
18
+ export type CreateCustomerRequest = z.infer<typeof CreateCustomerRequest>;
19
+ export declare const UpdateCustomerRequest: z.ZodObject<{
20
+ name: z.ZodOptional<z.ZodString>;
21
+ internalId: z.ZodOptional<z.ZodString>;
22
+ fields: z.ZodOptional<z.ZodAny>;
23
+ credentials: z.ZodOptional<z.ZodAny>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ name?: string | undefined;
7
26
  credentials?: any;
8
- };
9
- export type UpdateCustomerRequest = {
10
- name?: string;
11
- internalId?: string;
12
27
  fields?: any;
28
+ internalId?: string | undefined;
29
+ }, {
30
+ name?: string | undefined;
13
31
  credentials?: any;
14
- };
15
- export type FindCustomersQuery = PaginationQuery & SearchQuery & {
16
- isTest?: boolean;
17
- };
18
- export type CustomerSelector = {
32
+ fields?: any;
33
+ internalId?: string | undefined;
34
+ }>;
35
+ export type UpdateCustomerRequest = z.infer<typeof UpdateCustomerRequest>;
36
+ export declare const FindCustomersQuery: z.ZodObject<{
37
+ isTest: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
38
+ } & {
39
+ limit: z.ZodOptional<z.ZodNumber>;
40
+ cursor: z.ZodOptional<z.ZodString>;
41
+ } & {
42
+ search: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ search?: string | undefined;
45
+ limit?: number | undefined;
46
+ cursor?: string | undefined;
47
+ isTest?: boolean | undefined;
48
+ }, {
49
+ search?: string | undefined;
50
+ limit?: number | undefined;
51
+ cursor?: string | undefined;
52
+ isTest?: unknown;
53
+ }>;
54
+ export type FindCustomersQuery = z.infer<typeof FindCustomersQuery>;
55
+ export declare const CustomerSelector: z.ZodObject<{
56
+ id: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ id: string;
59
+ }, {
19
60
  id: string;
20
- };
61
+ }>;
62
+ export type CustomerSelector = z.infer<typeof CustomerSelector>;
21
63
  export type CreateUserRequest = CreateCustomerRequest;
22
64
  export type UpdateUserRequest = UpdateCustomerRequest;
23
65
  export type FindUsersQuery = FindCustomersQuery;
24
66
  export type UserSelector = CustomerSelector;
25
- export type Customer = BaseCustomer;
26
- 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;
27
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;