@membranehq/sdk 0.5.2 → 0.7.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 (96) hide show
  1. package/dist/bundle.d.ts +1828 -1832
  2. package/dist/bundle.js +32 -23
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/action-instances-accessors.d.ts +13 -10
  5. package/dist/dts/accessors/actions-accessors.d.ts +9 -9
  6. package/dist/dts/accessors/app-data-schema-instances-accessors.d.ts +3 -3
  7. package/dist/dts/accessors/app-data-schemas-accessors.d.ts +3 -3
  8. package/dist/dts/accessors/app-event-subscriptions-accessors.d.ts +3 -3
  9. package/dist/dts/accessors/app-event-types-accessors.d.ts +3 -3
  10. package/dist/dts/accessors/base-accessors.d.ts +8 -8
  11. package/dist/dts/accessors/connections-accessors.d.ts +15 -15
  12. package/dist/dts/accessors/customers-accessors.d.ts +5 -5
  13. package/dist/dts/accessors/data-link-table-instances-accessors.d.ts +3 -3
  14. package/dist/dts/accessors/data-link-tables-accessors.d.ts +3 -3
  15. package/dist/dts/accessors/data-sources-accessors.d.ts +14 -14
  16. package/dist/dts/accessors/external-event-subscriptions-accessors.d.ts +3 -3
  17. package/dist/dts/accessors/field-mapping-instances-accessors.d.ts +7 -7
  18. package/dist/dts/accessors/field-mappings-accessors.d.ts +7 -7
  19. package/dist/dts/accessors/flow-instances-accessors.d.ts +8 -8
  20. package/dist/dts/accessors/flow-runs-accessors.d.ts +3 -3
  21. package/dist/dts/accessors/flows-accessors.d.ts +7 -7
  22. package/dist/dts/accessors/integrations-accessors.d.ts +10 -10
  23. package/dist/dts/accessors/scenarios-accessors.d.ts +3 -3
  24. package/dist/dts/accessors/screens-accessors.d.ts +3 -3
  25. package/dist/dts/api-client.d.ts +3 -3
  26. package/dist/dts/auth/accessors.d.ts +2 -2
  27. package/dist/dts/client.d.ts +5 -5
  28. package/dist/dts/data-builder/index.d.ts +1 -1
  29. package/dist/dts/data-schema/arbitrary-fields.test.d.ts +1 -0
  30. package/dist/dts/data-schema/types.d.ts +1 -0
  31. package/dist/dts/error-tools/index.d.ts +1 -1
  32. package/dist/dts/errors/index.d.ts +24 -15
  33. package/dist/dts/formulas/base.d.ts +3 -1
  34. package/dist/dts/index.d.ts +2 -1
  35. package/dist/dts/index.umd.d.ts +2 -2
  36. package/dist/dts/integration-elements/connection-level-element.accessor.d.ts +5 -5
  37. package/dist/dts/integration-elements/integration-level-element.accessor.d.ts +5 -5
  38. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +119 -65
  39. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +69 -90
  40. package/dist/dts/workspace-elements/api/actions-api.d.ts +253 -339
  41. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +21 -21
  42. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +7 -7
  43. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +22 -22
  44. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +18 -18
  45. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +7 -7
  46. package/dist/dts/workspace-elements/api/connections-api.d.ts +90 -89
  47. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +50 -50
  48. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +7 -7
  49. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +55 -55
  50. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +62 -62
  51. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +40 -40
  52. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +40 -40
  53. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +35 -35
  54. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -20
  55. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +166 -166
  56. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +96 -96
  57. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +128 -128
  58. package/dist/dts/workspace-elements/api/flows-api.d.ts +223 -223
  59. package/dist/dts/workspace-elements/api/integrations-api.d.ts +26 -26
  60. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +21 -21
  61. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +10 -10
  62. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +4 -3
  63. package/dist/dts/workspace-elements/base/actions/index.d.ts +111 -1
  64. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +11 -10
  65. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +7 -7
  66. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +7 -7
  67. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +7 -7
  68. package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -10
  69. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +7 -7
  70. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +7 -7
  71. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +10 -9
  72. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +8 -8
  73. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -3
  74. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -3
  75. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +4 -3
  76. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +11 -10
  77. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +21 -21
  78. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +8 -8
  79. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -14
  80. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +16 -16
  81. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +6 -5
  82. package/dist/dts/workspace-elements/base/flows/types.d.ts +15 -15
  83. package/dist/dts/workspace-elements/base/integrations/types.d.ts +48 -48
  84. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +7 -7
  85. package/dist/dts/workspace-elements/errors.d.ts +2 -2
  86. package/dist/dts/workspace-elements/types.d.ts +53 -9
  87. package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
  88. package/dist/dts/workspaces/types.d.ts +2 -0
  89. package/dist/index.d.ts +2416 -2380
  90. package/dist/index.js +125 -118
  91. package/dist/index.js.map +1 -1
  92. package/dist/index.module.d.mts +2416 -2380
  93. package/dist/index.module.mjs +117 -113
  94. package/dist/index.module.mjs.map +1 -1
  95. package/package.json +1 -3
  96. 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,7 +83,7 @@ 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
88
  authOptionKey: z.ZodOptional<z.ZodString>;
88
89
  createdAt: z.ZodString;
@@ -92,7 +93,7 @@ export declare const ConnectionApiResponse: z.ZodObject<{
92
93
  archivedAt: z.ZodOptional<z.ZodString>;
93
94
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
94
95
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
95
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
96
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
96
97
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
97
98
  } & {
98
99
  user: z.ZodOptional<z.ZodObject<{
@@ -131,12 +132,12 @@ export declare const ConnectionApiResponse: z.ZodObject<{
131
132
  }>>;
132
133
  integration: z.ZodOptional<z.ZodObject<{
133
134
  id: z.ZodString;
134
- name: z.ZodString;
135
135
  key: z.ZodOptional<z.ZodString>;
136
136
  uuid: z.ZodOptional<z.ZodString>;
137
137
  description: z.ZodOptional<z.ZodString>;
138
+ name: z.ZodString;
138
139
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
139
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
140
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
140
141
  revision: z.ZodOptional<z.ZodString>;
141
142
  createdAt: z.ZodOptional<z.ZodString>;
142
143
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -169,14 +170,13 @@ export declare const ConnectionApiResponse: z.ZodObject<{
169
170
  uuid?: string | undefined;
170
171
  description?: string | undefined;
171
172
  state?: import("..").WorkspaceElementState | undefined;
172
- errors?: any[] | undefined;
173
+ errors?: ErrorDataSchema[] | undefined;
173
174
  revision?: string | undefined;
174
- isDeactivated?: boolean | undefined;
175
175
  createdAt?: string | undefined;
176
176
  updatedAt?: string | undefined;
177
177
  archivedAt?: string | undefined;
178
+ isDeactivated?: boolean | undefined;
178
179
  parameters?: any;
179
- isTest?: boolean | undefined;
180
180
  connectorId?: string | undefined;
181
181
  connectorVersion?: string | undefined;
182
182
  oAuthCallbackUri?: string | undefined;
@@ -190,6 +190,7 @@ export declare const ConnectionApiResponse: z.ZodObject<{
190
190
  eventsCount?: number | undefined;
191
191
  hasGlobalWebhooks?: boolean | undefined;
192
192
  hasUdm?: boolean | undefined;
193
+ isTest?: boolean | undefined;
193
194
  appUuid?: string | undefined;
194
195
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
195
196
  }, {
@@ -200,14 +201,13 @@ export declare const ConnectionApiResponse: z.ZodObject<{
200
201
  uuid?: string | undefined;
201
202
  description?: string | undefined;
202
203
  state?: import("..").WorkspaceElementState | undefined;
203
- errors?: any[] | undefined;
204
+ errors?: ErrorDataSchema[] | undefined;
204
205
  revision?: string | undefined;
205
- isDeactivated?: boolean | undefined;
206
206
  createdAt?: string | undefined;
207
207
  updatedAt?: string | undefined;
208
208
  archivedAt?: string | undefined;
209
+ isDeactivated?: boolean | undefined;
209
210
  parameters?: any;
210
- isTest?: boolean | undefined;
211
211
  connectorId?: string | undefined;
212
212
  connectorVersion?: string | undefined;
213
213
  oAuthCallbackUri?: string | undefined;
@@ -221,6 +221,7 @@ export declare const ConnectionApiResponse: z.ZodObject<{
221
221
  eventsCount?: number | undefined;
222
222
  hasGlobalWebhooks?: boolean | undefined;
223
223
  hasUdm?: boolean | undefined;
224
+ isTest?: boolean | undefined;
224
225
  appUuid?: string | undefined;
225
226
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
226
227
  }>>;
@@ -231,7 +232,7 @@ export declare const ConnectionApiResponse: z.ZodObject<{
231
232
  updatedAt: string;
232
233
  userId: string;
233
234
  integrationId: string;
234
- error?: any;
235
+ error?: ErrorDataSchema | undefined;
235
236
  integration?: {
236
237
  id: string;
237
238
  name: string;
@@ -240,14 +241,13 @@ export declare const ConnectionApiResponse: z.ZodObject<{
240
241
  uuid?: string | undefined;
241
242
  description?: string | undefined;
242
243
  state?: import("..").WorkspaceElementState | undefined;
243
- errors?: any[] | undefined;
244
+ errors?: ErrorDataSchema[] | undefined;
244
245
  revision?: string | undefined;
245
- isDeactivated?: boolean | undefined;
246
246
  createdAt?: string | undefined;
247
247
  updatedAt?: string | undefined;
248
248
  archivedAt?: string | undefined;
249
+ isDeactivated?: boolean | undefined;
249
250
  parameters?: any;
250
- isTest?: boolean | undefined;
251
251
  connectorId?: string | undefined;
252
252
  connectorVersion?: string | undefined;
253
253
  oAuthCallbackUri?: string | undefined;
@@ -261,13 +261,14 @@ export declare const ConnectionApiResponse: z.ZodObject<{
261
261
  eventsCount?: number | undefined;
262
262
  hasGlobalWebhooks?: boolean | undefined;
263
263
  hasUdm?: boolean | undefined;
264
+ isTest?: boolean | undefined;
264
265
  appUuid?: string | undefined;
265
266
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
266
267
  } | undefined;
267
268
  state?: import("..").WorkspaceElementState | undefined;
268
- errors?: any[] | undefined;
269
- isDeactivated?: boolean | undefined;
269
+ errors?: ErrorDataSchema[] | undefined;
270
270
  archivedAt?: string | undefined;
271
+ isDeactivated?: boolean | undefined;
271
272
  authOptionKey?: string | undefined;
272
273
  user?: {
273
274
  id: string;
@@ -282,11 +283,11 @@ export declare const ConnectionApiResponse: z.ZodObject<{
282
283
  isBillable?: boolean | undefined;
283
284
  } | undefined;
284
285
  isTest?: boolean | undefined;
286
+ meta?: Record<string, any> | undefined;
285
287
  disconnected?: boolean | undefined;
286
288
  isDefunct?: boolean | undefined;
287
289
  lastActiveAt?: string | undefined;
288
290
  nextCredentialsRefreshAt?: string | undefined;
289
- meta?: Record<string, any> | undefined;
290
291
  }, {
291
292
  id: string;
292
293
  name: string;
@@ -294,7 +295,7 @@ export declare const ConnectionApiResponse: z.ZodObject<{
294
295
  updatedAt: string;
295
296
  userId: string;
296
297
  integrationId: string;
297
- error?: any;
298
+ error?: ErrorDataSchema | undefined;
298
299
  integration?: {
299
300
  id: string;
300
301
  name: string;
@@ -303,14 +304,13 @@ export declare const ConnectionApiResponse: z.ZodObject<{
303
304
  uuid?: string | undefined;
304
305
  description?: string | undefined;
305
306
  state?: import("..").WorkspaceElementState | undefined;
306
- errors?: any[] | undefined;
307
+ errors?: ErrorDataSchema[] | undefined;
307
308
  revision?: string | undefined;
308
- isDeactivated?: boolean | undefined;
309
309
  createdAt?: string | undefined;
310
310
  updatedAt?: string | undefined;
311
311
  archivedAt?: string | undefined;
312
+ isDeactivated?: boolean | undefined;
312
313
  parameters?: any;
313
- isTest?: boolean | undefined;
314
314
  connectorId?: string | undefined;
315
315
  connectorVersion?: string | undefined;
316
316
  oAuthCallbackUri?: string | undefined;
@@ -324,13 +324,14 @@ export declare const ConnectionApiResponse: z.ZodObject<{
324
324
  eventsCount?: number | undefined;
325
325
  hasGlobalWebhooks?: boolean | undefined;
326
326
  hasUdm?: boolean | undefined;
327
+ isTest?: boolean | undefined;
327
328
  appUuid?: string | undefined;
328
329
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
329
330
  } | undefined;
330
331
  state?: import("..").WorkspaceElementState | undefined;
331
- errors?: any[] | undefined;
332
- isDeactivated?: boolean | undefined;
332
+ errors?: ErrorDataSchema[] | undefined;
333
333
  archivedAt?: string | undefined;
334
+ isDeactivated?: boolean | undefined;
334
335
  authOptionKey?: string | undefined;
335
336
  user?: {
336
337
  id: string;
@@ -345,11 +346,11 @@ export declare const ConnectionApiResponse: z.ZodObject<{
345
346
  isBillable?: boolean | undefined;
346
347
  } | undefined;
347
348
  isTest?: boolean | undefined;
349
+ meta?: Record<string, any> | undefined;
348
350
  disconnected?: boolean | undefined;
349
351
  isDefunct?: boolean | undefined;
350
352
  lastActiveAt?: string | undefined;
351
353
  nextCredentialsRefreshAt?: string | undefined;
352
- meta?: Record<string, any> | undefined;
353
354
  }>;
354
355
  export type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
355
356
  export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
@@ -360,7 +361,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
360
361
  isTest: z.ZodOptional<z.ZodBoolean>;
361
362
  disconnected: z.ZodOptional<z.ZodBoolean>;
362
363
  isDefunct: z.ZodOptional<z.ZodBoolean>;
363
- error: any;
364
+ error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
364
365
  integrationId: z.ZodString;
365
366
  authOptionKey: z.ZodOptional<z.ZodString>;
366
367
  createdAt: z.ZodString;
@@ -370,7 +371,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
370
371
  archivedAt: z.ZodOptional<z.ZodString>;
371
372
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
372
373
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
373
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
374
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
374
375
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
375
376
  } & {
376
377
  user: z.ZodOptional<z.ZodObject<{
@@ -409,12 +410,12 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
409
410
  }>>;
410
411
  integration: z.ZodOptional<z.ZodObject<{
411
412
  id: z.ZodString;
412
- name: z.ZodString;
413
413
  key: z.ZodOptional<z.ZodString>;
414
414
  uuid: z.ZodOptional<z.ZodString>;
415
415
  description: z.ZodOptional<z.ZodString>;
416
+ name: z.ZodString;
416
417
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
417
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
418
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
418
419
  revision: z.ZodOptional<z.ZodString>;
419
420
  createdAt: z.ZodOptional<z.ZodString>;
420
421
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -447,14 +448,13 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
447
448
  uuid?: string | undefined;
448
449
  description?: string | undefined;
449
450
  state?: import("..").WorkspaceElementState | undefined;
450
- errors?: any[] | undefined;
451
+ errors?: ErrorDataSchema[] | undefined;
451
452
  revision?: string | undefined;
452
- isDeactivated?: boolean | undefined;
453
453
  createdAt?: string | undefined;
454
454
  updatedAt?: string | undefined;
455
455
  archivedAt?: string | undefined;
456
+ isDeactivated?: boolean | undefined;
456
457
  parameters?: any;
457
- isTest?: boolean | undefined;
458
458
  connectorId?: string | undefined;
459
459
  connectorVersion?: string | undefined;
460
460
  oAuthCallbackUri?: string | undefined;
@@ -468,6 +468,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
468
468
  eventsCount?: number | undefined;
469
469
  hasGlobalWebhooks?: boolean | undefined;
470
470
  hasUdm?: boolean | undefined;
471
+ isTest?: boolean | undefined;
471
472
  appUuid?: string | undefined;
472
473
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
473
474
  }, {
@@ -478,14 +479,13 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
478
479
  uuid?: string | undefined;
479
480
  description?: string | undefined;
480
481
  state?: import("..").WorkspaceElementState | undefined;
481
- errors?: any[] | undefined;
482
+ errors?: ErrorDataSchema[] | undefined;
482
483
  revision?: string | undefined;
483
- isDeactivated?: boolean | undefined;
484
484
  createdAt?: string | undefined;
485
485
  updatedAt?: string | undefined;
486
486
  archivedAt?: string | undefined;
487
+ isDeactivated?: boolean | undefined;
487
488
  parameters?: any;
488
- isTest?: boolean | undefined;
489
489
  connectorId?: string | undefined;
490
490
  connectorVersion?: string | undefined;
491
491
  oAuthCallbackUri?: string | undefined;
@@ -499,6 +499,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
499
499
  eventsCount?: number | undefined;
500
500
  hasGlobalWebhooks?: boolean | undefined;
501
501
  hasUdm?: boolean | undefined;
502
+ isTest?: boolean | undefined;
502
503
  appUuid?: string | undefined;
503
504
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
504
505
  }>>;
@@ -513,7 +514,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
513
514
  updatedAt: string;
514
515
  userId: string;
515
516
  integrationId: string;
516
- error?: any;
517
+ error?: ErrorDataSchema | undefined;
517
518
  integration?: {
518
519
  id: string;
519
520
  name: string;
@@ -522,14 +523,13 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
522
523
  uuid?: string | undefined;
523
524
  description?: string | undefined;
524
525
  state?: import("..").WorkspaceElementState | undefined;
525
- errors?: any[] | undefined;
526
+ errors?: ErrorDataSchema[] | undefined;
526
527
  revision?: string | undefined;
527
- isDeactivated?: boolean | undefined;
528
528
  createdAt?: string | undefined;
529
529
  updatedAt?: string | undefined;
530
530
  archivedAt?: string | undefined;
531
+ isDeactivated?: boolean | undefined;
531
532
  parameters?: any;
532
- isTest?: boolean | undefined;
533
533
  connectorId?: string | undefined;
534
534
  connectorVersion?: string | undefined;
535
535
  oAuthCallbackUri?: string | undefined;
@@ -543,13 +543,14 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
543
543
  eventsCount?: number | undefined;
544
544
  hasGlobalWebhooks?: boolean | undefined;
545
545
  hasUdm?: boolean | undefined;
546
+ isTest?: boolean | undefined;
546
547
  appUuid?: string | undefined;
547
548
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
548
549
  } | undefined;
549
550
  state?: import("..").WorkspaceElementState | undefined;
550
- errors?: any[] | undefined;
551
- isDeactivated?: boolean | undefined;
551
+ errors?: ErrorDataSchema[] | undefined;
552
552
  archivedAt?: string | undefined;
553
+ isDeactivated?: boolean | undefined;
553
554
  credentials?: unknown;
554
555
  parameters?: unknown;
555
556
  authOptionKey?: string | undefined;
@@ -567,11 +568,11 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
567
568
  isBillable?: boolean | undefined;
568
569
  } | undefined;
569
570
  isTest?: boolean | undefined;
571
+ meta?: Record<string, any> | undefined;
570
572
  disconnected?: boolean | undefined;
571
573
  isDefunct?: boolean | undefined;
572
574
  lastActiveAt?: string | undefined;
573
575
  nextCredentialsRefreshAt?: string | undefined;
574
- meta?: Record<string, any> | undefined;
575
576
  }, {
576
577
  id: string;
577
578
  name: string;
@@ -579,7 +580,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
579
580
  updatedAt: string;
580
581
  userId: string;
581
582
  integrationId: string;
582
- error?: any;
583
+ error?: ErrorDataSchema | undefined;
583
584
  integration?: {
584
585
  id: string;
585
586
  name: string;
@@ -588,14 +589,13 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
588
589
  uuid?: string | undefined;
589
590
  description?: string | undefined;
590
591
  state?: import("..").WorkspaceElementState | undefined;
591
- errors?: any[] | undefined;
592
+ errors?: ErrorDataSchema[] | undefined;
592
593
  revision?: string | undefined;
593
- isDeactivated?: boolean | undefined;
594
594
  createdAt?: string | undefined;
595
595
  updatedAt?: string | undefined;
596
596
  archivedAt?: string | undefined;
597
+ isDeactivated?: boolean | undefined;
597
598
  parameters?: any;
598
- isTest?: boolean | undefined;
599
599
  connectorId?: string | undefined;
600
600
  connectorVersion?: string | undefined;
601
601
  oAuthCallbackUri?: string | undefined;
@@ -609,13 +609,14 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
609
609
  eventsCount?: number | undefined;
610
610
  hasGlobalWebhooks?: boolean | undefined;
611
611
  hasUdm?: boolean | undefined;
612
+ isTest?: boolean | undefined;
612
613
  appUuid?: string | undefined;
613
614
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
614
615
  } | undefined;
615
616
  state?: import("..").WorkspaceElementState | undefined;
616
- errors?: any[] | undefined;
617
- isDeactivated?: boolean | undefined;
617
+ errors?: ErrorDataSchema[] | undefined;
618
618
  archivedAt?: string | undefined;
619
+ isDeactivated?: boolean | undefined;
619
620
  credentials?: unknown;
620
621
  parameters?: unknown;
621
622
  authOptionKey?: string | undefined;
@@ -633,11 +634,11 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
633
634
  isBillable?: boolean | undefined;
634
635
  } | undefined;
635
636
  isTest?: boolean | undefined;
637
+ meta?: Record<string, any> | undefined;
636
638
  disconnected?: boolean | undefined;
637
639
  isDefunct?: boolean | undefined;
638
640
  lastActiveAt?: string | undefined;
639
641
  nextCredentialsRefreshAt?: string | undefined;
640
- meta?: Record<string, any> | undefined;
641
642
  }>;
642
643
  export type ConnectionApiResponseWithSecrets = z.infer<typeof ConnectionApiResponseWithSecrets>;
643
644
  export type Connection = ConnectionApiResponse;
@@ -653,7 +654,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
653
654
  isTest: z.ZodOptional<z.ZodBoolean>;
654
655
  disconnected: z.ZodOptional<z.ZodBoolean>;
655
656
  isDefunct: z.ZodOptional<z.ZodBoolean>;
656
- error: any;
657
+ error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
657
658
  integrationId: z.ZodString;
658
659
  authOptionKey: z.ZodOptional<z.ZodString>;
659
660
  createdAt: z.ZodString;
@@ -663,7 +664,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
663
664
  archivedAt: z.ZodOptional<z.ZodString>;
664
665
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
665
666
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
666
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
667
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
667
668
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
668
669
  } & {
669
670
  user: z.ZodOptional<z.ZodObject<{
@@ -702,12 +703,12 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
702
703
  }>>;
703
704
  integration: z.ZodOptional<z.ZodObject<{
704
705
  id: z.ZodString;
705
- name: z.ZodString;
706
706
  key: z.ZodOptional<z.ZodString>;
707
707
  uuid: z.ZodOptional<z.ZodString>;
708
708
  description: z.ZodOptional<z.ZodString>;
709
+ name: z.ZodString;
709
710
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
710
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
711
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
711
712
  revision: z.ZodOptional<z.ZodString>;
712
713
  createdAt: z.ZodOptional<z.ZodString>;
713
714
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -740,14 +741,13 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
740
741
  uuid?: string | undefined;
741
742
  description?: string | undefined;
742
743
  state?: import("..").WorkspaceElementState | undefined;
743
- errors?: any[] | undefined;
744
+ errors?: ErrorDataSchema[] | undefined;
744
745
  revision?: string | undefined;
745
- isDeactivated?: boolean | undefined;
746
746
  createdAt?: string | undefined;
747
747
  updatedAt?: string | undefined;
748
748
  archivedAt?: string | undefined;
749
+ isDeactivated?: boolean | undefined;
749
750
  parameters?: any;
750
- isTest?: boolean | undefined;
751
751
  connectorId?: string | undefined;
752
752
  connectorVersion?: string | undefined;
753
753
  oAuthCallbackUri?: string | undefined;
@@ -761,6 +761,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
761
761
  eventsCount?: number | undefined;
762
762
  hasGlobalWebhooks?: boolean | undefined;
763
763
  hasUdm?: boolean | undefined;
764
+ isTest?: boolean | undefined;
764
765
  appUuid?: string | undefined;
765
766
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
766
767
  }, {
@@ -771,14 +772,13 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
771
772
  uuid?: string | undefined;
772
773
  description?: string | undefined;
773
774
  state?: import("..").WorkspaceElementState | undefined;
774
- errors?: any[] | undefined;
775
+ errors?: ErrorDataSchema[] | undefined;
775
776
  revision?: string | undefined;
776
- isDeactivated?: boolean | undefined;
777
777
  createdAt?: string | undefined;
778
778
  updatedAt?: string | undefined;
779
779
  archivedAt?: string | undefined;
780
+ isDeactivated?: boolean | undefined;
780
781
  parameters?: any;
781
- isTest?: boolean | undefined;
782
782
  connectorId?: string | undefined;
783
783
  connectorVersion?: string | undefined;
784
784
  oAuthCallbackUri?: string | undefined;
@@ -792,6 +792,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
792
792
  eventsCount?: number | undefined;
793
793
  hasGlobalWebhooks?: boolean | undefined;
794
794
  hasUdm?: boolean | undefined;
795
+ isTest?: boolean | undefined;
795
796
  appUuid?: string | undefined;
796
797
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
797
798
  }>>;
@@ -802,7 +803,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
802
803
  updatedAt: string;
803
804
  userId: string;
804
805
  integrationId: string;
805
- error?: any;
806
+ error?: ErrorDataSchema | undefined;
806
807
  integration?: {
807
808
  id: string;
808
809
  name: string;
@@ -811,14 +812,13 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
811
812
  uuid?: string | undefined;
812
813
  description?: string | undefined;
813
814
  state?: import("..").WorkspaceElementState | undefined;
814
- errors?: any[] | undefined;
815
+ errors?: ErrorDataSchema[] | undefined;
815
816
  revision?: string | undefined;
816
- isDeactivated?: boolean | undefined;
817
817
  createdAt?: string | undefined;
818
818
  updatedAt?: string | undefined;
819
819
  archivedAt?: string | undefined;
820
+ isDeactivated?: boolean | undefined;
820
821
  parameters?: any;
821
- isTest?: boolean | undefined;
822
822
  connectorId?: string | undefined;
823
823
  connectorVersion?: string | undefined;
824
824
  oAuthCallbackUri?: string | undefined;
@@ -832,13 +832,14 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
832
832
  eventsCount?: number | undefined;
833
833
  hasGlobalWebhooks?: boolean | undefined;
834
834
  hasUdm?: boolean | undefined;
835
+ isTest?: boolean | undefined;
835
836
  appUuid?: string | undefined;
836
837
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
837
838
  } | undefined;
838
839
  state?: import("..").WorkspaceElementState | undefined;
839
- errors?: any[] | undefined;
840
- isDeactivated?: boolean | undefined;
840
+ errors?: ErrorDataSchema[] | undefined;
841
841
  archivedAt?: string | undefined;
842
+ isDeactivated?: boolean | undefined;
842
843
  authOptionKey?: string | undefined;
843
844
  user?: {
844
845
  id: string;
@@ -853,11 +854,11 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
853
854
  isBillable?: boolean | undefined;
854
855
  } | undefined;
855
856
  isTest?: boolean | undefined;
857
+ meta?: Record<string, any> | undefined;
856
858
  disconnected?: boolean | undefined;
857
859
  isDefunct?: boolean | undefined;
858
860
  lastActiveAt?: string | undefined;
859
861
  nextCredentialsRefreshAt?: string | undefined;
860
- meta?: Record<string, any> | undefined;
861
862
  }, {
862
863
  id: string;
863
864
  name: string;
@@ -865,7 +866,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
865
866
  updatedAt: string;
866
867
  userId: string;
867
868
  integrationId: string;
868
- error?: any;
869
+ error?: ErrorDataSchema | undefined;
869
870
  integration?: {
870
871
  id: string;
871
872
  name: string;
@@ -874,14 +875,13 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
874
875
  uuid?: string | undefined;
875
876
  description?: string | undefined;
876
877
  state?: import("..").WorkspaceElementState | undefined;
877
- errors?: any[] | undefined;
878
+ errors?: ErrorDataSchema[] | undefined;
878
879
  revision?: string | undefined;
879
- isDeactivated?: boolean | undefined;
880
880
  createdAt?: string | undefined;
881
881
  updatedAt?: string | undefined;
882
882
  archivedAt?: string | undefined;
883
+ isDeactivated?: boolean | undefined;
883
884
  parameters?: any;
884
- isTest?: boolean | undefined;
885
885
  connectorId?: string | undefined;
886
886
  connectorVersion?: string | undefined;
887
887
  oAuthCallbackUri?: string | undefined;
@@ -895,13 +895,14 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
895
895
  eventsCount?: number | undefined;
896
896
  hasGlobalWebhooks?: boolean | undefined;
897
897
  hasUdm?: boolean | undefined;
898
+ isTest?: boolean | undefined;
898
899
  appUuid?: string | undefined;
899
900
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
900
901
  } | undefined;
901
902
  state?: import("..").WorkspaceElementState | undefined;
902
- errors?: any[] | undefined;
903
- isDeactivated?: boolean | undefined;
903
+ errors?: ErrorDataSchema[] | undefined;
904
904
  archivedAt?: string | undefined;
905
+ isDeactivated?: boolean | undefined;
905
906
  authOptionKey?: string | undefined;
906
907
  user?: {
907
908
  id: string;
@@ -916,11 +917,11 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
916
917
  isBillable?: boolean | undefined;
917
918
  } | undefined;
918
919
  isTest?: boolean | undefined;
920
+ meta?: Record<string, any> | undefined;
919
921
  disconnected?: boolean | undefined;
920
922
  isDefunct?: boolean | undefined;
921
923
  lastActiveAt?: string | undefined;
922
924
  nextCredentialsRefreshAt?: string | undefined;
923
- meta?: Record<string, any> | undefined;
924
925
  }>;
925
926
  }, "strip", z.ZodTypeAny, {
926
927
  connection: {
@@ -930,7 +931,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
930
931
  updatedAt: string;
931
932
  userId: string;
932
933
  integrationId: string;
933
- error?: any;
934
+ error?: ErrorDataSchema | undefined;
934
935
  integration?: {
935
936
  id: string;
936
937
  name: string;
@@ -939,14 +940,13 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
939
940
  uuid?: string | undefined;
940
941
  description?: string | undefined;
941
942
  state?: import("..").WorkspaceElementState | undefined;
942
- errors?: any[] | undefined;
943
+ errors?: ErrorDataSchema[] | undefined;
943
944
  revision?: string | undefined;
944
- isDeactivated?: boolean | undefined;
945
945
  createdAt?: string | undefined;
946
946
  updatedAt?: string | undefined;
947
947
  archivedAt?: string | undefined;
948
+ isDeactivated?: boolean | undefined;
948
949
  parameters?: any;
949
- isTest?: boolean | undefined;
950
950
  connectorId?: string | undefined;
951
951
  connectorVersion?: string | undefined;
952
952
  oAuthCallbackUri?: string | undefined;
@@ -960,13 +960,14 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
960
960
  eventsCount?: number | undefined;
961
961
  hasGlobalWebhooks?: boolean | undefined;
962
962
  hasUdm?: boolean | undefined;
963
+ isTest?: boolean | undefined;
963
964
  appUuid?: string | undefined;
964
965
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
965
966
  } | undefined;
966
967
  state?: import("..").WorkspaceElementState | undefined;
967
- errors?: any[] | undefined;
968
- isDeactivated?: boolean | undefined;
968
+ errors?: ErrorDataSchema[] | undefined;
969
969
  archivedAt?: string | undefined;
970
+ isDeactivated?: boolean | undefined;
970
971
  authOptionKey?: string | undefined;
971
972
  user?: {
972
973
  id: string;
@@ -981,11 +982,11 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
981
982
  isBillable?: boolean | undefined;
982
983
  } | undefined;
983
984
  isTest?: boolean | undefined;
985
+ meta?: Record<string, any> | undefined;
984
986
  disconnected?: boolean | undefined;
985
987
  isDefunct?: boolean | undefined;
986
988
  lastActiveAt?: string | undefined;
987
989
  nextCredentialsRefreshAt?: string | undefined;
988
- meta?: Record<string, any> | undefined;
989
990
  };
990
991
  type: "newConnectionCreated";
991
992
  source: string;
@@ -998,7 +999,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
998
999
  updatedAt: string;
999
1000
  userId: string;
1000
1001
  integrationId: string;
1001
- error?: any;
1002
+ error?: ErrorDataSchema | undefined;
1002
1003
  integration?: {
1003
1004
  id: string;
1004
1005
  name: string;
@@ -1007,14 +1008,13 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
1007
1008
  uuid?: string | undefined;
1008
1009
  description?: string | undefined;
1009
1010
  state?: import("..").WorkspaceElementState | undefined;
1010
- errors?: any[] | undefined;
1011
+ errors?: ErrorDataSchema[] | undefined;
1011
1012
  revision?: string | undefined;
1012
- isDeactivated?: boolean | undefined;
1013
1013
  createdAt?: string | undefined;
1014
1014
  updatedAt?: string | undefined;
1015
1015
  archivedAt?: string | undefined;
1016
+ isDeactivated?: boolean | undefined;
1016
1017
  parameters?: any;
1017
- isTest?: boolean | undefined;
1018
1018
  connectorId?: string | undefined;
1019
1019
  connectorVersion?: string | undefined;
1020
1020
  oAuthCallbackUri?: string | undefined;
@@ -1028,13 +1028,14 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
1028
1028
  eventsCount?: number | undefined;
1029
1029
  hasGlobalWebhooks?: boolean | undefined;
1030
1030
  hasUdm?: boolean | undefined;
1031
+ isTest?: boolean | undefined;
1031
1032
  appUuid?: string | undefined;
1032
1033
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
1033
1034
  } | undefined;
1034
1035
  state?: import("..").WorkspaceElementState | undefined;
1035
- errors?: any[] | undefined;
1036
- isDeactivated?: boolean | undefined;
1036
+ errors?: ErrorDataSchema[] | undefined;
1037
1037
  archivedAt?: string | undefined;
1038
+ isDeactivated?: boolean | undefined;
1038
1039
  authOptionKey?: string | undefined;
1039
1040
  user?: {
1040
1041
  id: string;
@@ -1049,11 +1050,11 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
1049
1050
  isBillable?: boolean | undefined;
1050
1051
  } | undefined;
1051
1052
  isTest?: boolean | undefined;
1053
+ meta?: Record<string, any> | undefined;
1052
1054
  disconnected?: boolean | undefined;
1053
1055
  isDefunct?: boolean | undefined;
1054
1056
  lastActiveAt?: string | undefined;
1055
1057
  nextCredentialsRefreshAt?: string | undefined;
1056
- meta?: Record<string, any> | undefined;
1057
1058
  };
1058
1059
  type: "newConnectionCreated";
1059
1060
  source: string;
@@ -1063,18 +1064,18 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
1063
1064
  requestId: z.ZodString;
1064
1065
  type: z.ZodLiteral<"newConnectionFailure">;
1065
1066
  error: z.ZodString;
1066
- errorData: any;
1067
+ errorData: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
1067
1068
  }, "strip", z.ZodTypeAny, {
1068
1069
  type: "newConnectionFailure";
1069
1070
  error: string;
1070
1071
  source: string;
1071
1072
  requestId: string;
1072
- errorData?: any;
1073
+ errorData?: ErrorDataSchema | undefined;
1073
1074
  }, {
1074
1075
  type: "newConnectionFailure";
1075
1076
  error: string;
1076
1077
  source: string;
1077
1078
  requestId: string;
1078
- errorData?: any;
1079
+ errorData?: ErrorDataSchema | undefined;
1079
1080
  }>]>;
1080
1081
  export type ConnectionMessagePayload = z.infer<typeof ConnectionMessagePayload>;