@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,8 +1,8 @@
1
+ import { z } from 'zod';
1
2
  import { IntegrationSpecificElementSelector } from '../../accessors';
2
3
  import { DataSchema } from '../../data-schema';
3
4
  import { CommonListElementsQuery } from '../../entity-repository';
4
- import { FieldMappingDirection, BaseFieldMapping } from '../base/field-mappings';
5
- import { BaseIntegration, AppliedToIntegrations } from '../base/integrations';
5
+ import { FieldMappingDirection } from '../base/field-mappings';
6
6
  export interface ListFieldMappingsForIntegrationQuery extends CommonListElementsQuery {
7
7
  universalFieldMappingId?: string | 'null';
8
8
  }
@@ -32,8 +32,886 @@ export interface CreateFieldMappingRequest extends UpdateFieldMappingRequest {
32
32
  }
33
33
  export interface FieldMappingSelector extends IntegrationSpecificElementSelector {
34
34
  }
35
- export interface FieldMapping extends BaseFieldMapping {
36
- integration?: BaseIntegration;
37
- appliedToIntegrations?: AppliedToIntegrations<FieldMapping>;
38
- }
39
- export type FieldMappingApiResponse = FieldMapping;
35
+ export declare const FieldMappingApiResponse: z.ZodObject<{
36
+ id: z.ZodString;
37
+ name: z.ZodString;
38
+ key: z.ZodOptional<z.ZodString>;
39
+ uuid: z.ZodOptional<z.ZodString>;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
42
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
43
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
44
+ createdAt: z.ZodOptional<z.ZodString>;
45
+ updatedAt: z.ZodOptional<z.ZodString>;
46
+ } & {
47
+ revision: z.ZodString;
48
+ publishedRevision: z.ZodOptional<z.ZodString>;
49
+ universalFieldMappingId: z.ZodOptional<z.ZodString>;
50
+ universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
51
+ integrationId: z.ZodOptional<z.ZodString>;
52
+ dataSourceId: z.ZodString;
53
+ dataSourceKey: z.ZodString;
54
+ appSchema: z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>;
55
+ direction: z.ZodNativeEnum<typeof FieldMappingDirection>;
56
+ defaultImportValue: z.ZodOptional<z.ZodAny>;
57
+ defaultExportValue: z.ZodOptional<z.ZodAny>;
58
+ importValue: z.ZodOptional<z.ZodAny>;
59
+ exportValue: z.ZodOptional<z.ZodAny>;
60
+ frozenImportFields: z.ZodOptional<z.ZodAny>;
61
+ frozenExportFields: z.ZodOptional<z.ZodAny>;
62
+ frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
63
+ archivedAt: z.ZodOptional<z.ZodString>;
64
+ customized: z.ZodOptional<z.ZodBoolean>;
65
+ } & {
66
+ integration: z.ZodOptional<z.ZodObject<{
67
+ id: z.ZodString;
68
+ name: z.ZodString;
69
+ key: z.ZodOptional<z.ZodString>;
70
+ uuid: z.ZodOptional<z.ZodString>;
71
+ description: z.ZodOptional<z.ZodString>;
72
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
73
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
74
+ revision: z.ZodOptional<z.ZodString>;
75
+ createdAt: z.ZodOptional<z.ZodString>;
76
+ updatedAt: z.ZodOptional<z.ZodString>;
77
+ } & {
78
+ logoUri: z.ZodString;
79
+ connectorId: z.ZodOptional<z.ZodString>;
80
+ connectorVersion: z.ZodOptional<z.ZodString>;
81
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ key: z.ZodString;
83
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
84
+ title: z.ZodOptional<z.ZodString>;
85
+ description: z.ZodOptional<z.ZodString>;
86
+ ui: z.ZodOptional<z.ZodObject<{
87
+ schema: z.ZodOptional<z.ZodAny>;
88
+ helpUri: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ schema?: any;
91
+ helpUri?: string | undefined;
92
+ }, {
93
+ schema?: any;
94
+ helpUri?: string | undefined;
95
+ }>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ key: string;
98
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
99
+ description?: string | undefined;
100
+ title?: string | undefined;
101
+ ui?: {
102
+ schema?: any;
103
+ helpUri?: string | undefined;
104
+ } | undefined;
105
+ }, {
106
+ key: string;
107
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
108
+ description?: string | undefined;
109
+ title?: string | undefined;
110
+ ui?: {
111
+ schema?: any;
112
+ helpUri?: string | undefined;
113
+ } | undefined;
114
+ }>, "many">>;
115
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
116
+ parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
117
+ parameters: z.ZodOptional<z.ZodAny>;
118
+ baseUri: z.ZodString;
119
+ archivedAt: z.ZodOptional<z.ZodString>;
120
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
121
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
122
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
123
+ operationsCount: z.ZodOptional<z.ZodNumber>;
124
+ hasData: z.ZodOptional<z.ZodBoolean>;
125
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
126
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
127
+ eventsCount: z.ZodOptional<z.ZodNumber>;
128
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
129
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
130
+ isTest: z.ZodOptional<z.ZodBoolean>;
131
+ appUuid: z.ZodOptional<z.ZodString>;
132
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
133
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ id: string;
136
+ name: string;
137
+ baseUri: string;
138
+ logoUri: string;
139
+ key?: string | undefined;
140
+ uuid?: string | undefined;
141
+ description?: string | undefined;
142
+ state?: import("..").WorkspaceElementState | undefined;
143
+ errors?: any[] | undefined;
144
+ revision?: string | undefined;
145
+ isDeactivated?: boolean | undefined;
146
+ createdAt?: string | undefined;
147
+ updatedAt?: string | undefined;
148
+ archivedAt?: string | undefined;
149
+ parameters?: any;
150
+ parametersSchema?: DataSchema | undefined;
151
+ isTest?: boolean | undefined;
152
+ connectorId?: string | undefined;
153
+ connectorVersion?: string | undefined;
154
+ authOptions?: {
155
+ key: string;
156
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
157
+ description?: string | undefined;
158
+ title?: string | undefined;
159
+ ui?: {
160
+ schema?: any;
161
+ helpUri?: string | undefined;
162
+ } | undefined;
163
+ }[] | undefined;
164
+ oAuthCallbackUri?: string | undefined;
165
+ hasMissingParameters?: boolean | undefined;
166
+ hasDocumentation?: boolean | undefined;
167
+ hasOperations?: boolean | undefined;
168
+ operationsCount?: number | undefined;
169
+ hasData?: boolean | undefined;
170
+ dataCollectionsCount?: number | undefined;
171
+ hasEvents?: boolean | undefined;
172
+ eventsCount?: number | undefined;
173
+ hasGlobalWebhooks?: boolean | undefined;
174
+ hasUdm?: boolean | undefined;
175
+ appUuid?: string | undefined;
176
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
177
+ }, {
178
+ id: string;
179
+ name: string;
180
+ baseUri: string;
181
+ logoUri: string;
182
+ key?: string | undefined;
183
+ uuid?: string | undefined;
184
+ description?: string | undefined;
185
+ state?: import("..").WorkspaceElementState | undefined;
186
+ errors?: any[] | undefined;
187
+ revision?: string | undefined;
188
+ isDeactivated?: boolean | undefined;
189
+ createdAt?: string | undefined;
190
+ updatedAt?: string | undefined;
191
+ archivedAt?: string | undefined;
192
+ parameters?: any;
193
+ parametersSchema?: DataSchema | undefined;
194
+ isTest?: boolean | undefined;
195
+ connectorId?: string | undefined;
196
+ connectorVersion?: string | undefined;
197
+ authOptions?: {
198
+ key: string;
199
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
200
+ description?: string | undefined;
201
+ title?: string | undefined;
202
+ ui?: {
203
+ schema?: any;
204
+ helpUri?: string | undefined;
205
+ } | undefined;
206
+ }[] | undefined;
207
+ oAuthCallbackUri?: string | undefined;
208
+ hasMissingParameters?: boolean | undefined;
209
+ hasDocumentation?: boolean | undefined;
210
+ hasOperations?: boolean | undefined;
211
+ operationsCount?: number | undefined;
212
+ hasData?: boolean | undefined;
213
+ dataCollectionsCount?: number | undefined;
214
+ hasEvents?: boolean | undefined;
215
+ eventsCount?: number | undefined;
216
+ hasGlobalWebhooks?: boolean | undefined;
217
+ hasUdm?: boolean | undefined;
218
+ appUuid?: string | undefined;
219
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
220
+ }>>;
221
+ appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
222
+ element: z.ZodObject<{
223
+ id: z.ZodString;
224
+ name: z.ZodString;
225
+ key: z.ZodOptional<z.ZodString>;
226
+ uuid: z.ZodOptional<z.ZodString>;
227
+ description: z.ZodOptional<z.ZodString>;
228
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
229
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
230
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
231
+ createdAt: z.ZodOptional<z.ZodString>;
232
+ updatedAt: z.ZodOptional<z.ZodString>;
233
+ } & {
234
+ revision: z.ZodString;
235
+ publishedRevision: z.ZodOptional<z.ZodString>;
236
+ universalFieldMappingId: z.ZodOptional<z.ZodString>;
237
+ universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
238
+ integrationId: z.ZodOptional<z.ZodString>;
239
+ dataSourceId: z.ZodString;
240
+ dataSourceKey: z.ZodString;
241
+ appSchema: z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>;
242
+ direction: z.ZodNativeEnum<typeof FieldMappingDirection>;
243
+ defaultImportValue: z.ZodOptional<z.ZodAny>;
244
+ defaultExportValue: z.ZodOptional<z.ZodAny>;
245
+ importValue: z.ZodOptional<z.ZodAny>;
246
+ exportValue: z.ZodOptional<z.ZodAny>;
247
+ frozenImportFields: z.ZodOptional<z.ZodAny>;
248
+ frozenExportFields: z.ZodOptional<z.ZodAny>;
249
+ frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
250
+ archivedAt: z.ZodOptional<z.ZodString>;
251
+ customized: z.ZodOptional<z.ZodBoolean>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ id: string;
254
+ name: string;
255
+ revision: string;
256
+ dataSourceId: string;
257
+ dataSourceKey: string;
258
+ appSchema: DataSchema;
259
+ direction: FieldMappingDirection;
260
+ key?: string | undefined;
261
+ uuid?: string | undefined;
262
+ description?: string | undefined;
263
+ state?: import("..").WorkspaceElementState | undefined;
264
+ errors?: any[] | undefined;
265
+ isDeactivated?: boolean | undefined;
266
+ createdAt?: string | undefined;
267
+ updatedAt?: string | undefined;
268
+ archivedAt?: string | undefined;
269
+ integrationId?: string | undefined;
270
+ publishedRevision?: string | undefined;
271
+ universalFieldMappingId?: string | undefined;
272
+ universalFieldMappingRevision?: string | undefined;
273
+ defaultImportValue?: any;
274
+ defaultExportValue?: any;
275
+ importValue?: any;
276
+ exportValue?: any;
277
+ frozenImportFields?: any;
278
+ frozenExportFields?: any;
279
+ frozenUnifiedExportFields?: any;
280
+ customized?: boolean | undefined;
281
+ }, {
282
+ id: string;
283
+ name: string;
284
+ revision: string;
285
+ dataSourceId: string;
286
+ dataSourceKey: string;
287
+ appSchema: DataSchema;
288
+ direction: FieldMappingDirection;
289
+ key?: string | undefined;
290
+ uuid?: string | undefined;
291
+ description?: string | undefined;
292
+ state?: import("..").WorkspaceElementState | undefined;
293
+ errors?: any[] | undefined;
294
+ isDeactivated?: boolean | undefined;
295
+ createdAt?: string | undefined;
296
+ updatedAt?: string | undefined;
297
+ archivedAt?: string | undefined;
298
+ integrationId?: string | undefined;
299
+ publishedRevision?: string | undefined;
300
+ universalFieldMappingId?: string | undefined;
301
+ universalFieldMappingRevision?: string | undefined;
302
+ defaultImportValue?: any;
303
+ defaultExportValue?: any;
304
+ importValue?: any;
305
+ exportValue?: any;
306
+ frozenImportFields?: any;
307
+ frozenExportFields?: any;
308
+ frozenUnifiedExportFields?: any;
309
+ customized?: boolean | undefined;
310
+ }>;
311
+ integration: z.ZodObject<{
312
+ id: z.ZodString;
313
+ name: z.ZodString;
314
+ key: z.ZodOptional<z.ZodString>;
315
+ uuid: z.ZodOptional<z.ZodString>;
316
+ description: z.ZodOptional<z.ZodString>;
317
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
318
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
319
+ revision: z.ZodOptional<z.ZodString>;
320
+ createdAt: z.ZodOptional<z.ZodString>;
321
+ updatedAt: z.ZodOptional<z.ZodString>;
322
+ } & {
323
+ logoUri: z.ZodString;
324
+ connectorId: z.ZodOptional<z.ZodString>;
325
+ connectorVersion: z.ZodOptional<z.ZodString>;
326
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
+ key: z.ZodString;
328
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
329
+ title: z.ZodOptional<z.ZodString>;
330
+ description: z.ZodOptional<z.ZodString>;
331
+ ui: z.ZodOptional<z.ZodObject<{
332
+ schema: z.ZodOptional<z.ZodAny>;
333
+ helpUri: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ schema?: any;
336
+ helpUri?: string | undefined;
337
+ }, {
338
+ schema?: any;
339
+ helpUri?: string | undefined;
340
+ }>>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ key: string;
343
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
344
+ description?: string | undefined;
345
+ title?: string | undefined;
346
+ ui?: {
347
+ schema?: any;
348
+ helpUri?: string | undefined;
349
+ } | undefined;
350
+ }, {
351
+ key: string;
352
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
353
+ description?: string | undefined;
354
+ title?: string | undefined;
355
+ ui?: {
356
+ schema?: any;
357
+ helpUri?: string | undefined;
358
+ } | undefined;
359
+ }>, "many">>;
360
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
361
+ parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
362
+ parameters: z.ZodOptional<z.ZodAny>;
363
+ baseUri: z.ZodString;
364
+ archivedAt: z.ZodOptional<z.ZodString>;
365
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
366
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
367
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
368
+ operationsCount: z.ZodOptional<z.ZodNumber>;
369
+ hasData: z.ZodOptional<z.ZodBoolean>;
370
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
371
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
372
+ eventsCount: z.ZodOptional<z.ZodNumber>;
373
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
374
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
375
+ isTest: z.ZodOptional<z.ZodBoolean>;
376
+ appUuid: z.ZodOptional<z.ZodString>;
377
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
378
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ id: string;
381
+ name: string;
382
+ baseUri: string;
383
+ logoUri: string;
384
+ key?: string | undefined;
385
+ uuid?: string | undefined;
386
+ description?: string | undefined;
387
+ state?: import("..").WorkspaceElementState | undefined;
388
+ errors?: any[] | undefined;
389
+ revision?: string | undefined;
390
+ isDeactivated?: boolean | undefined;
391
+ createdAt?: string | undefined;
392
+ updatedAt?: string | undefined;
393
+ archivedAt?: string | undefined;
394
+ parameters?: any;
395
+ parametersSchema?: DataSchema | undefined;
396
+ isTest?: boolean | undefined;
397
+ connectorId?: string | undefined;
398
+ connectorVersion?: string | undefined;
399
+ authOptions?: {
400
+ key: string;
401
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
402
+ description?: string | undefined;
403
+ title?: string | undefined;
404
+ ui?: {
405
+ schema?: any;
406
+ helpUri?: string | undefined;
407
+ } | undefined;
408
+ }[] | undefined;
409
+ oAuthCallbackUri?: string | undefined;
410
+ hasMissingParameters?: boolean | undefined;
411
+ hasDocumentation?: boolean | undefined;
412
+ hasOperations?: boolean | undefined;
413
+ operationsCount?: number | undefined;
414
+ hasData?: boolean | undefined;
415
+ dataCollectionsCount?: number | undefined;
416
+ hasEvents?: boolean | undefined;
417
+ eventsCount?: number | undefined;
418
+ hasGlobalWebhooks?: boolean | undefined;
419
+ hasUdm?: boolean | undefined;
420
+ appUuid?: string | undefined;
421
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
422
+ }, {
423
+ id: string;
424
+ name: string;
425
+ baseUri: string;
426
+ logoUri: string;
427
+ key?: string | undefined;
428
+ uuid?: string | undefined;
429
+ description?: string | undefined;
430
+ state?: import("..").WorkspaceElementState | undefined;
431
+ errors?: any[] | undefined;
432
+ revision?: string | undefined;
433
+ isDeactivated?: boolean | undefined;
434
+ createdAt?: string | undefined;
435
+ updatedAt?: string | undefined;
436
+ archivedAt?: string | undefined;
437
+ parameters?: any;
438
+ parametersSchema?: DataSchema | undefined;
439
+ isTest?: boolean | undefined;
440
+ connectorId?: string | undefined;
441
+ connectorVersion?: string | undefined;
442
+ authOptions?: {
443
+ key: string;
444
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
445
+ description?: string | undefined;
446
+ title?: string | undefined;
447
+ ui?: {
448
+ schema?: any;
449
+ helpUri?: string | undefined;
450
+ } | undefined;
451
+ }[] | undefined;
452
+ oAuthCallbackUri?: string | undefined;
453
+ hasMissingParameters?: boolean | undefined;
454
+ hasDocumentation?: boolean | undefined;
455
+ hasOperations?: boolean | undefined;
456
+ operationsCount?: number | undefined;
457
+ hasData?: boolean | undefined;
458
+ dataCollectionsCount?: number | undefined;
459
+ hasEvents?: boolean | undefined;
460
+ eventsCount?: number | undefined;
461
+ hasGlobalWebhooks?: boolean | undefined;
462
+ hasUdm?: boolean | undefined;
463
+ appUuid?: string | undefined;
464
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
465
+ }>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ integration: {
468
+ id: string;
469
+ name: string;
470
+ baseUri: string;
471
+ logoUri: string;
472
+ key?: string | undefined;
473
+ uuid?: string | undefined;
474
+ description?: string | undefined;
475
+ state?: import("..").WorkspaceElementState | undefined;
476
+ errors?: any[] | undefined;
477
+ revision?: string | undefined;
478
+ isDeactivated?: boolean | undefined;
479
+ createdAt?: string | undefined;
480
+ updatedAt?: string | undefined;
481
+ archivedAt?: string | undefined;
482
+ parameters?: any;
483
+ parametersSchema?: DataSchema | undefined;
484
+ isTest?: boolean | undefined;
485
+ connectorId?: string | undefined;
486
+ connectorVersion?: string | undefined;
487
+ authOptions?: {
488
+ key: string;
489
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
490
+ description?: string | undefined;
491
+ title?: string | undefined;
492
+ ui?: {
493
+ schema?: any;
494
+ helpUri?: string | undefined;
495
+ } | undefined;
496
+ }[] | undefined;
497
+ oAuthCallbackUri?: string | undefined;
498
+ hasMissingParameters?: boolean | undefined;
499
+ hasDocumentation?: boolean | undefined;
500
+ hasOperations?: boolean | undefined;
501
+ operationsCount?: number | undefined;
502
+ hasData?: boolean | undefined;
503
+ dataCollectionsCount?: number | undefined;
504
+ hasEvents?: boolean | undefined;
505
+ eventsCount?: number | undefined;
506
+ hasGlobalWebhooks?: boolean | undefined;
507
+ hasUdm?: boolean | undefined;
508
+ appUuid?: string | undefined;
509
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
510
+ };
511
+ element: {
512
+ id: string;
513
+ name: string;
514
+ revision: string;
515
+ dataSourceId: string;
516
+ dataSourceKey: string;
517
+ appSchema: DataSchema;
518
+ direction: FieldMappingDirection;
519
+ key?: string | undefined;
520
+ uuid?: string | undefined;
521
+ description?: string | undefined;
522
+ state?: import("..").WorkspaceElementState | undefined;
523
+ errors?: any[] | undefined;
524
+ isDeactivated?: boolean | undefined;
525
+ createdAt?: string | undefined;
526
+ updatedAt?: string | undefined;
527
+ archivedAt?: string | undefined;
528
+ integrationId?: string | undefined;
529
+ publishedRevision?: string | undefined;
530
+ universalFieldMappingId?: string | undefined;
531
+ universalFieldMappingRevision?: string | undefined;
532
+ defaultImportValue?: any;
533
+ defaultExportValue?: any;
534
+ importValue?: any;
535
+ exportValue?: any;
536
+ frozenImportFields?: any;
537
+ frozenExportFields?: any;
538
+ frozenUnifiedExportFields?: any;
539
+ customized?: boolean | undefined;
540
+ };
541
+ }, {
542
+ integration: {
543
+ id: string;
544
+ name: string;
545
+ baseUri: string;
546
+ logoUri: string;
547
+ key?: string | undefined;
548
+ uuid?: string | undefined;
549
+ description?: string | undefined;
550
+ state?: import("..").WorkspaceElementState | undefined;
551
+ errors?: any[] | undefined;
552
+ revision?: string | undefined;
553
+ isDeactivated?: boolean | undefined;
554
+ createdAt?: string | undefined;
555
+ updatedAt?: string | undefined;
556
+ archivedAt?: string | undefined;
557
+ parameters?: any;
558
+ parametersSchema?: DataSchema | undefined;
559
+ isTest?: boolean | undefined;
560
+ connectorId?: string | undefined;
561
+ connectorVersion?: string | undefined;
562
+ authOptions?: {
563
+ key: string;
564
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
565
+ description?: string | undefined;
566
+ title?: string | undefined;
567
+ ui?: {
568
+ schema?: any;
569
+ helpUri?: string | undefined;
570
+ } | undefined;
571
+ }[] | undefined;
572
+ oAuthCallbackUri?: string | undefined;
573
+ hasMissingParameters?: boolean | undefined;
574
+ hasDocumentation?: boolean | undefined;
575
+ hasOperations?: boolean | undefined;
576
+ operationsCount?: number | undefined;
577
+ hasData?: boolean | undefined;
578
+ dataCollectionsCount?: number | undefined;
579
+ hasEvents?: boolean | undefined;
580
+ eventsCount?: number | undefined;
581
+ hasGlobalWebhooks?: boolean | undefined;
582
+ hasUdm?: boolean | undefined;
583
+ appUuid?: string | undefined;
584
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
585
+ };
586
+ element: {
587
+ id: string;
588
+ name: string;
589
+ revision: string;
590
+ dataSourceId: string;
591
+ dataSourceKey: string;
592
+ appSchema: DataSchema;
593
+ direction: FieldMappingDirection;
594
+ key?: string | undefined;
595
+ uuid?: string | undefined;
596
+ description?: string | undefined;
597
+ state?: import("..").WorkspaceElementState | undefined;
598
+ errors?: any[] | undefined;
599
+ isDeactivated?: boolean | undefined;
600
+ createdAt?: string | undefined;
601
+ updatedAt?: string | undefined;
602
+ archivedAt?: string | undefined;
603
+ integrationId?: string | undefined;
604
+ publishedRevision?: string | undefined;
605
+ universalFieldMappingId?: string | undefined;
606
+ universalFieldMappingRevision?: string | undefined;
607
+ defaultImportValue?: any;
608
+ defaultExportValue?: any;
609
+ importValue?: any;
610
+ exportValue?: any;
611
+ frozenImportFields?: any;
612
+ frozenExportFields?: any;
613
+ frozenUnifiedExportFields?: any;
614
+ customized?: boolean | undefined;
615
+ };
616
+ }>, "many">>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ id: string;
619
+ name: string;
620
+ revision: string;
621
+ dataSourceId: string;
622
+ dataSourceKey: string;
623
+ appSchema: DataSchema;
624
+ direction: FieldMappingDirection;
625
+ key?: string | undefined;
626
+ integration?: {
627
+ id: string;
628
+ name: string;
629
+ baseUri: string;
630
+ logoUri: string;
631
+ key?: string | undefined;
632
+ uuid?: string | undefined;
633
+ description?: string | undefined;
634
+ state?: import("..").WorkspaceElementState | undefined;
635
+ errors?: any[] | undefined;
636
+ revision?: string | undefined;
637
+ isDeactivated?: boolean | undefined;
638
+ createdAt?: string | undefined;
639
+ updatedAt?: string | undefined;
640
+ archivedAt?: string | undefined;
641
+ parameters?: any;
642
+ parametersSchema?: DataSchema | undefined;
643
+ isTest?: boolean | undefined;
644
+ connectorId?: string | undefined;
645
+ connectorVersion?: string | undefined;
646
+ authOptions?: {
647
+ key: string;
648
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
649
+ description?: string | undefined;
650
+ title?: string | undefined;
651
+ ui?: {
652
+ schema?: any;
653
+ helpUri?: string | undefined;
654
+ } | undefined;
655
+ }[] | undefined;
656
+ oAuthCallbackUri?: string | undefined;
657
+ hasMissingParameters?: boolean | undefined;
658
+ hasDocumentation?: boolean | undefined;
659
+ hasOperations?: boolean | undefined;
660
+ operationsCount?: number | undefined;
661
+ hasData?: boolean | undefined;
662
+ dataCollectionsCount?: number | undefined;
663
+ hasEvents?: boolean | undefined;
664
+ eventsCount?: number | undefined;
665
+ hasGlobalWebhooks?: boolean | undefined;
666
+ hasUdm?: boolean | undefined;
667
+ appUuid?: string | undefined;
668
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
669
+ } | undefined;
670
+ uuid?: string | undefined;
671
+ description?: string | undefined;
672
+ state?: import("..").WorkspaceElementState | undefined;
673
+ errors?: any[] | undefined;
674
+ isDeactivated?: boolean | undefined;
675
+ createdAt?: string | undefined;
676
+ updatedAt?: string | undefined;
677
+ archivedAt?: string | undefined;
678
+ integrationId?: string | undefined;
679
+ publishedRevision?: string | undefined;
680
+ universalFieldMappingId?: string | undefined;
681
+ universalFieldMappingRevision?: string | undefined;
682
+ defaultImportValue?: any;
683
+ defaultExportValue?: any;
684
+ importValue?: any;
685
+ exportValue?: any;
686
+ frozenImportFields?: any;
687
+ frozenExportFields?: any;
688
+ frozenUnifiedExportFields?: any;
689
+ customized?: boolean | undefined;
690
+ appliedToIntegrations?: {
691
+ integration: {
692
+ id: string;
693
+ name: string;
694
+ baseUri: string;
695
+ logoUri: string;
696
+ key?: string | undefined;
697
+ uuid?: string | undefined;
698
+ description?: string | undefined;
699
+ state?: import("..").WorkspaceElementState | undefined;
700
+ errors?: any[] | undefined;
701
+ revision?: string | undefined;
702
+ isDeactivated?: boolean | undefined;
703
+ createdAt?: string | undefined;
704
+ updatedAt?: string | undefined;
705
+ archivedAt?: string | undefined;
706
+ parameters?: any;
707
+ parametersSchema?: DataSchema | undefined;
708
+ isTest?: boolean | undefined;
709
+ connectorId?: string | undefined;
710
+ connectorVersion?: string | undefined;
711
+ authOptions?: {
712
+ key: string;
713
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
714
+ description?: string | undefined;
715
+ title?: string | undefined;
716
+ ui?: {
717
+ schema?: any;
718
+ helpUri?: string | undefined;
719
+ } | undefined;
720
+ }[] | undefined;
721
+ oAuthCallbackUri?: string | undefined;
722
+ hasMissingParameters?: boolean | undefined;
723
+ hasDocumentation?: boolean | undefined;
724
+ hasOperations?: boolean | undefined;
725
+ operationsCount?: number | undefined;
726
+ hasData?: boolean | undefined;
727
+ dataCollectionsCount?: number | undefined;
728
+ hasEvents?: boolean | undefined;
729
+ eventsCount?: number | undefined;
730
+ hasGlobalWebhooks?: boolean | undefined;
731
+ hasUdm?: boolean | undefined;
732
+ appUuid?: string | undefined;
733
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
734
+ };
735
+ element: {
736
+ id: string;
737
+ name: string;
738
+ revision: string;
739
+ dataSourceId: string;
740
+ dataSourceKey: string;
741
+ appSchema: DataSchema;
742
+ direction: FieldMappingDirection;
743
+ key?: string | undefined;
744
+ uuid?: string | undefined;
745
+ description?: string | undefined;
746
+ state?: import("..").WorkspaceElementState | undefined;
747
+ errors?: any[] | undefined;
748
+ isDeactivated?: boolean | undefined;
749
+ createdAt?: string | undefined;
750
+ updatedAt?: string | undefined;
751
+ archivedAt?: string | undefined;
752
+ integrationId?: string | undefined;
753
+ publishedRevision?: string | undefined;
754
+ universalFieldMappingId?: string | undefined;
755
+ universalFieldMappingRevision?: string | undefined;
756
+ defaultImportValue?: any;
757
+ defaultExportValue?: any;
758
+ importValue?: any;
759
+ exportValue?: any;
760
+ frozenImportFields?: any;
761
+ frozenExportFields?: any;
762
+ frozenUnifiedExportFields?: any;
763
+ customized?: boolean | undefined;
764
+ };
765
+ }[] | undefined;
766
+ }, {
767
+ id: string;
768
+ name: string;
769
+ revision: string;
770
+ dataSourceId: string;
771
+ dataSourceKey: string;
772
+ appSchema: DataSchema;
773
+ direction: FieldMappingDirection;
774
+ key?: string | undefined;
775
+ integration?: {
776
+ id: string;
777
+ name: string;
778
+ baseUri: string;
779
+ logoUri: string;
780
+ key?: string | undefined;
781
+ uuid?: string | undefined;
782
+ description?: string | undefined;
783
+ state?: import("..").WorkspaceElementState | undefined;
784
+ errors?: any[] | undefined;
785
+ revision?: string | undefined;
786
+ isDeactivated?: boolean | undefined;
787
+ createdAt?: string | undefined;
788
+ updatedAt?: string | undefined;
789
+ archivedAt?: string | undefined;
790
+ parameters?: any;
791
+ parametersSchema?: DataSchema | undefined;
792
+ isTest?: boolean | undefined;
793
+ connectorId?: string | undefined;
794
+ connectorVersion?: string | undefined;
795
+ authOptions?: {
796
+ key: string;
797
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
798
+ description?: string | undefined;
799
+ title?: string | undefined;
800
+ ui?: {
801
+ schema?: any;
802
+ helpUri?: string | undefined;
803
+ } | undefined;
804
+ }[] | undefined;
805
+ oAuthCallbackUri?: string | undefined;
806
+ hasMissingParameters?: boolean | undefined;
807
+ hasDocumentation?: boolean | undefined;
808
+ hasOperations?: boolean | undefined;
809
+ operationsCount?: number | undefined;
810
+ hasData?: boolean | undefined;
811
+ dataCollectionsCount?: number | undefined;
812
+ hasEvents?: boolean | undefined;
813
+ eventsCount?: number | undefined;
814
+ hasGlobalWebhooks?: boolean | undefined;
815
+ hasUdm?: boolean | undefined;
816
+ appUuid?: string | undefined;
817
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
818
+ } | undefined;
819
+ uuid?: string | undefined;
820
+ description?: string | undefined;
821
+ state?: import("..").WorkspaceElementState | undefined;
822
+ errors?: any[] | undefined;
823
+ isDeactivated?: boolean | undefined;
824
+ createdAt?: string | undefined;
825
+ updatedAt?: string | undefined;
826
+ archivedAt?: string | undefined;
827
+ integrationId?: string | undefined;
828
+ publishedRevision?: string | undefined;
829
+ universalFieldMappingId?: string | undefined;
830
+ universalFieldMappingRevision?: string | undefined;
831
+ defaultImportValue?: any;
832
+ defaultExportValue?: any;
833
+ importValue?: any;
834
+ exportValue?: any;
835
+ frozenImportFields?: any;
836
+ frozenExportFields?: any;
837
+ frozenUnifiedExportFields?: any;
838
+ customized?: boolean | undefined;
839
+ appliedToIntegrations?: {
840
+ integration: {
841
+ id: string;
842
+ name: string;
843
+ baseUri: string;
844
+ logoUri: string;
845
+ key?: string | undefined;
846
+ uuid?: string | undefined;
847
+ description?: string | undefined;
848
+ state?: import("..").WorkspaceElementState | undefined;
849
+ errors?: any[] | undefined;
850
+ revision?: string | undefined;
851
+ isDeactivated?: boolean | undefined;
852
+ createdAt?: string | undefined;
853
+ updatedAt?: string | undefined;
854
+ archivedAt?: string | undefined;
855
+ parameters?: any;
856
+ parametersSchema?: DataSchema | undefined;
857
+ isTest?: boolean | undefined;
858
+ connectorId?: string | undefined;
859
+ connectorVersion?: string | undefined;
860
+ authOptions?: {
861
+ key: string;
862
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
863
+ description?: string | undefined;
864
+ title?: string | undefined;
865
+ ui?: {
866
+ schema?: any;
867
+ helpUri?: string | undefined;
868
+ } | undefined;
869
+ }[] | undefined;
870
+ oAuthCallbackUri?: string | undefined;
871
+ hasMissingParameters?: boolean | undefined;
872
+ hasDocumentation?: boolean | undefined;
873
+ hasOperations?: boolean | undefined;
874
+ operationsCount?: number | undefined;
875
+ hasData?: boolean | undefined;
876
+ dataCollectionsCount?: number | undefined;
877
+ hasEvents?: boolean | undefined;
878
+ eventsCount?: number | undefined;
879
+ hasGlobalWebhooks?: boolean | undefined;
880
+ hasUdm?: boolean | undefined;
881
+ appUuid?: string | undefined;
882
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
883
+ };
884
+ element: {
885
+ id: string;
886
+ name: string;
887
+ revision: string;
888
+ dataSourceId: string;
889
+ dataSourceKey: string;
890
+ appSchema: DataSchema;
891
+ direction: FieldMappingDirection;
892
+ key?: string | undefined;
893
+ uuid?: string | undefined;
894
+ description?: string | undefined;
895
+ state?: import("..").WorkspaceElementState | undefined;
896
+ errors?: any[] | undefined;
897
+ isDeactivated?: boolean | undefined;
898
+ createdAt?: string | undefined;
899
+ updatedAt?: string | undefined;
900
+ archivedAt?: string | undefined;
901
+ integrationId?: string | undefined;
902
+ publishedRevision?: string | undefined;
903
+ universalFieldMappingId?: string | undefined;
904
+ universalFieldMappingRevision?: string | undefined;
905
+ defaultImportValue?: any;
906
+ defaultExportValue?: any;
907
+ importValue?: any;
908
+ exportValue?: any;
909
+ frozenImportFields?: any;
910
+ frozenExportFields?: any;
911
+ frozenUnifiedExportFields?: any;
912
+ customized?: boolean | undefined;
913
+ };
914
+ }[] | undefined;
915
+ }>;
916
+ export type FieldMappingApiResponse = z.infer<typeof FieldMappingApiResponse>;
917
+ export type FieldMapping = FieldMappingApiResponse;