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