@membranehq/sdk 0.5.1 → 0.6.0

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