@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
@@ -121,12 +121,12 @@ export declare const IntegrationAuthOption: z.ZodObject<{
121
121
  export type IntegrationAuthOption = z.infer<typeof IntegrationAuthOption>;
122
122
  export declare const IntegrationApiResponse: z.ZodObject<{
123
123
  id: z.ZodString;
124
- name: z.ZodString;
125
124
  key: z.ZodOptional<z.ZodString>;
126
125
  uuid: z.ZodOptional<z.ZodString>;
127
126
  description: z.ZodOptional<z.ZodString>;
127
+ name: z.ZodString;
128
128
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
129
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
129
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
130
130
  revision: z.ZodOptional<z.ZodString>;
131
131
  createdAt: z.ZodOptional<z.ZodString>;
132
132
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -160,7 +160,7 @@ export declare const IntegrationApiResponse: z.ZodObject<{
160
160
  isTest: z.ZodOptional<z.ZodBoolean>;
161
161
  disconnected: z.ZodOptional<z.ZodBoolean>;
162
162
  isDefunct: z.ZodOptional<z.ZodBoolean>;
163
- error: any;
163
+ error: z.ZodOptional<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>>;
164
164
  integrationId: z.ZodString;
165
165
  authOptionKey: z.ZodOptional<z.ZodString>;
166
166
  createdAt: z.ZodString;
@@ -170,7 +170,7 @@ export declare const IntegrationApiResponse: z.ZodObject<{
170
170
  archivedAt: z.ZodOptional<z.ZodString>;
171
171
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
172
172
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
173
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
173
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
174
174
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
175
175
  }, "strip", z.ZodTypeAny, {
176
176
  id: string;
@@ -179,18 +179,18 @@ export declare const IntegrationApiResponse: z.ZodObject<{
179
179
  updatedAt: string;
180
180
  userId: string;
181
181
  integrationId: string;
182
- error?: any;
182
+ error?: import("../..").ErrorDataSchema | undefined;
183
183
  state?: import("..").WorkspaceElementState | undefined;
184
- errors?: any[] | undefined;
185
- isDeactivated?: boolean | undefined;
184
+ errors?: import("../..").ErrorDataSchema[] | undefined;
186
185
  archivedAt?: string | undefined;
186
+ isDeactivated?: boolean | undefined;
187
187
  authOptionKey?: string | undefined;
188
188
  isTest?: boolean | undefined;
189
+ meta?: Record<string, any> | undefined;
189
190
  disconnected?: boolean | undefined;
190
191
  isDefunct?: boolean | undefined;
191
192
  lastActiveAt?: string | undefined;
192
193
  nextCredentialsRefreshAt?: string | undefined;
193
- meta?: Record<string, any> | undefined;
194
194
  }, {
195
195
  id: string;
196
196
  name: string;
@@ -198,18 +198,18 @@ export declare const IntegrationApiResponse: z.ZodObject<{
198
198
  updatedAt: string;
199
199
  userId: string;
200
200
  integrationId: string;
201
- error?: any;
201
+ error?: import("../..").ErrorDataSchema | undefined;
202
202
  state?: import("..").WorkspaceElementState | undefined;
203
- errors?: any[] | undefined;
204
- isDeactivated?: boolean | undefined;
203
+ errors?: import("../..").ErrorDataSchema[] | undefined;
205
204
  archivedAt?: string | undefined;
205
+ isDeactivated?: boolean | undefined;
206
206
  authOptionKey?: string | undefined;
207
207
  isTest?: boolean | undefined;
208
+ meta?: Record<string, any> | undefined;
208
209
  disconnected?: boolean | undefined;
209
210
  isDefunct?: boolean | undefined;
210
211
  lastActiveAt?: string | undefined;
211
212
  nextCredentialsRefreshAt?: string | undefined;
212
- meta?: Record<string, any> | undefined;
213
213
  }>>;
214
214
  spec: z.ZodOptional<z.ZodAny>;
215
215
  authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -259,31 +259,30 @@ export declare const IntegrationApiResponse: z.ZodObject<{
259
259
  updatedAt: string;
260
260
  userId: string;
261
261
  integrationId: string;
262
- error?: any;
262
+ error?: import("../..").ErrorDataSchema | undefined;
263
263
  state?: import("..").WorkspaceElementState | undefined;
264
- errors?: any[] | undefined;
265
- isDeactivated?: boolean | undefined;
264
+ errors?: import("../..").ErrorDataSchema[] | undefined;
266
265
  archivedAt?: string | undefined;
266
+ isDeactivated?: boolean | undefined;
267
267
  authOptionKey?: string | undefined;
268
268
  isTest?: boolean | undefined;
269
+ meta?: Record<string, any> | undefined;
269
270
  disconnected?: boolean | undefined;
270
271
  isDefunct?: boolean | undefined;
271
272
  lastActiveAt?: string | undefined;
272
273
  nextCredentialsRefreshAt?: string | undefined;
273
- meta?: Record<string, any> | undefined;
274
274
  } | undefined;
275
275
  uuid?: string | undefined;
276
276
  description?: string | undefined;
277
277
  state?: import("..").WorkspaceElementState | undefined;
278
- errors?: any[] | undefined;
278
+ errors?: import("../..").ErrorDataSchema[] | undefined;
279
279
  revision?: string | undefined;
280
- isDeactivated?: boolean | undefined;
281
280
  createdAt?: string | undefined;
282
281
  updatedAt?: string | undefined;
283
282
  archivedAt?: string | undefined;
283
+ isDeactivated?: boolean | undefined;
284
284
  parameters?: any;
285
285
  parametersSchema?: DataSchema | undefined;
286
- isTest?: boolean | undefined;
287
286
  connectorId?: string | undefined;
288
287
  connectorVersion?: string | undefined;
289
288
  oAuthCallbackUri?: string | undefined;
@@ -297,6 +296,7 @@ export declare const IntegrationApiResponse: z.ZodObject<{
297
296
  eventsCount?: number | undefined;
298
297
  hasGlobalWebhooks?: boolean | undefined;
299
298
  hasUdm?: boolean | undefined;
299
+ isTest?: boolean | undefined;
300
300
  appUuid?: string | undefined;
301
301
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
302
302
  spec?: any;
@@ -322,31 +322,30 @@ export declare const IntegrationApiResponse: z.ZodObject<{
322
322
  updatedAt: string;
323
323
  userId: string;
324
324
  integrationId: string;
325
- error?: any;
325
+ error?: import("../..").ErrorDataSchema | undefined;
326
326
  state?: import("..").WorkspaceElementState | undefined;
327
- errors?: any[] | undefined;
328
- isDeactivated?: boolean | undefined;
327
+ errors?: import("../..").ErrorDataSchema[] | undefined;
329
328
  archivedAt?: string | undefined;
329
+ isDeactivated?: boolean | undefined;
330
330
  authOptionKey?: string | undefined;
331
331
  isTest?: boolean | undefined;
332
+ meta?: Record<string, any> | undefined;
332
333
  disconnected?: boolean | undefined;
333
334
  isDefunct?: boolean | undefined;
334
335
  lastActiveAt?: string | undefined;
335
336
  nextCredentialsRefreshAt?: string | undefined;
336
- meta?: Record<string, any> | undefined;
337
337
  } | undefined;
338
338
  uuid?: string | undefined;
339
339
  description?: string | undefined;
340
340
  state?: import("..").WorkspaceElementState | undefined;
341
- errors?: any[] | undefined;
341
+ errors?: import("../..").ErrorDataSchema[] | undefined;
342
342
  revision?: string | undefined;
343
- isDeactivated?: boolean | undefined;
344
343
  createdAt?: string | undefined;
345
344
  updatedAt?: string | undefined;
346
345
  archivedAt?: string | undefined;
346
+ isDeactivated?: boolean | undefined;
347
347
  parameters?: any;
348
348
  parametersSchema?: DataSchema | undefined;
349
- isTest?: boolean | undefined;
350
349
  connectorId?: string | undefined;
351
350
  connectorVersion?: string | undefined;
352
351
  oAuthCallbackUri?: string | undefined;
@@ -360,6 +359,7 @@ export declare const IntegrationApiResponse: z.ZodObject<{
360
359
  eventsCount?: number | undefined;
361
360
  hasGlobalWebhooks?: boolean | undefined;
362
361
  hasUdm?: boolean | undefined;
362
+ isTest?: boolean | undefined;
363
363
  appUuid?: string | undefined;
364
364
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
365
365
  spec?: any;
@@ -243,16 +243,16 @@ export interface HandyScenarioTemplateElementApi {
243
243
  }
244
244
  export declare const ScenarioApiResponse: z.ZodObject<{
245
245
  id: z.ZodString;
246
- name: z.ZodString;
247
246
  key: z.ZodOptional<z.ZodString>;
248
247
  uuid: z.ZodOptional<z.ZodString>;
249
248
  description: z.ZodOptional<z.ZodString>;
249
+ name: z.ZodString;
250
250
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
251
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
251
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
252
252
  revision: z.ZodOptional<z.ZodString>;
253
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
254
253
  createdAt: z.ZodOptional<z.ZodString>;
255
254
  updatedAt: z.ZodOptional<z.ZodString>;
255
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
256
256
  } & {
257
257
  appId: z.ZodString;
258
258
  scenarioTemplateId: z.ZodOptional<z.ZodString>;
@@ -302,12 +302,12 @@ export declare const ScenarioApiResponse: z.ZodObject<{
302
302
  } & {
303
303
  appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
304
304
  id: z.ZodString;
305
- name: z.ZodString;
306
305
  key: z.ZodOptional<z.ZodString>;
307
306
  uuid: z.ZodOptional<z.ZodString>;
308
307
  description: z.ZodOptional<z.ZodString>;
308
+ name: z.ZodString;
309
309
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
310
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
310
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
311
311
  revision: z.ZodOptional<z.ZodString>;
312
312
  createdAt: z.ZodOptional<z.ZodString>;
313
313
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -340,14 +340,13 @@ export declare const ScenarioApiResponse: z.ZodObject<{
340
340
  uuid?: string | undefined;
341
341
  description?: string | undefined;
342
342
  state?: import("..").WorkspaceElementState | undefined;
343
- errors?: any[] | undefined;
343
+ errors?: import("../..").ErrorDataSchema[] | undefined;
344
344
  revision?: string | undefined;
345
- isDeactivated?: boolean | undefined;
346
345
  createdAt?: string | undefined;
347
346
  updatedAt?: string | undefined;
348
347
  archivedAt?: string | undefined;
348
+ isDeactivated?: boolean | undefined;
349
349
  parameters?: any;
350
- isTest?: boolean | undefined;
351
350
  connectorId?: string | undefined;
352
351
  connectorVersion?: string | undefined;
353
352
  oAuthCallbackUri?: string | undefined;
@@ -361,6 +360,7 @@ export declare const ScenarioApiResponse: z.ZodObject<{
361
360
  eventsCount?: number | undefined;
362
361
  hasGlobalWebhooks?: boolean | undefined;
363
362
  hasUdm?: boolean | undefined;
363
+ isTest?: boolean | undefined;
364
364
  appUuid?: string | undefined;
365
365
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
366
366
  }, {
@@ -371,14 +371,13 @@ export declare const ScenarioApiResponse: z.ZodObject<{
371
371
  uuid?: string | undefined;
372
372
  description?: string | undefined;
373
373
  state?: import("..").WorkspaceElementState | undefined;
374
- errors?: any[] | undefined;
374
+ errors?: import("../..").ErrorDataSchema[] | undefined;
375
375
  revision?: string | undefined;
376
- isDeactivated?: boolean | undefined;
377
376
  createdAt?: string | undefined;
378
377
  updatedAt?: string | undefined;
379
378
  archivedAt?: string | undefined;
379
+ isDeactivated?: boolean | undefined;
380
380
  parameters?: any;
381
- isTest?: boolean | undefined;
382
381
  connectorId?: string | undefined;
383
382
  connectorVersion?: string | undefined;
384
383
  oAuthCallbackUri?: string | undefined;
@@ -392,6 +391,7 @@ export declare const ScenarioApiResponse: z.ZodObject<{
392
391
  eventsCount?: number | undefined;
393
392
  hasGlobalWebhooks?: boolean | undefined;
394
393
  hasUdm?: boolean | undefined;
394
+ isTest?: boolean | undefined;
395
395
  appUuid?: string | undefined;
396
396
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
397
397
  }>, "many">>;
@@ -403,12 +403,12 @@ export declare const ScenarioApiResponse: z.ZodObject<{
403
403
  uuid?: string | undefined;
404
404
  description?: string | undefined;
405
405
  state?: import("..").WorkspaceElementState | undefined;
406
- errors?: any[] | undefined;
406
+ errors?: import("../..").ErrorDataSchema[] | undefined;
407
407
  revision?: string | undefined;
408
- isDeactivated?: boolean | undefined;
409
408
  createdAt?: string | undefined;
410
409
  updatedAt?: string | undefined;
411
410
  archivedAt?: string | undefined;
411
+ isDeactivated?: boolean | undefined;
412
412
  appliedToIntegrations?: {
413
413
  id: string;
414
414
  name: string;
@@ -417,14 +417,13 @@ export declare const ScenarioApiResponse: z.ZodObject<{
417
417
  uuid?: string | undefined;
418
418
  description?: string | undefined;
419
419
  state?: import("..").WorkspaceElementState | undefined;
420
- errors?: any[] | undefined;
420
+ errors?: import("../..").ErrorDataSchema[] | undefined;
421
421
  revision?: string | undefined;
422
- isDeactivated?: boolean | undefined;
423
422
  createdAt?: string | undefined;
424
423
  updatedAt?: string | undefined;
425
424
  archivedAt?: string | undefined;
425
+ isDeactivated?: boolean | undefined;
426
426
  parameters?: any;
427
- isTest?: boolean | undefined;
428
427
  connectorId?: string | undefined;
429
428
  connectorVersion?: string | undefined;
430
429
  oAuthCallbackUri?: string | undefined;
@@ -438,6 +437,7 @@ export declare const ScenarioApiResponse: z.ZodObject<{
438
437
  eventsCount?: number | undefined;
439
438
  hasGlobalWebhooks?: boolean | undefined;
440
439
  hasUdm?: boolean | undefined;
440
+ isTest?: boolean | undefined;
441
441
  appUuid?: string | undefined;
442
442
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
443
443
  }[] | undefined;
@@ -466,12 +466,12 @@ export declare const ScenarioApiResponse: z.ZodObject<{
466
466
  uuid?: string | undefined;
467
467
  description?: string | undefined;
468
468
  state?: import("..").WorkspaceElementState | undefined;
469
- errors?: any[] | undefined;
469
+ errors?: import("../..").ErrorDataSchema[] | undefined;
470
470
  revision?: string | undefined;
471
- isDeactivated?: boolean | undefined;
472
471
  createdAt?: string | undefined;
473
472
  updatedAt?: string | undefined;
474
473
  archivedAt?: string | undefined;
474
+ isDeactivated?: boolean | undefined;
475
475
  appliedToIntegrations?: {
476
476
  id: string;
477
477
  name: string;
@@ -480,14 +480,13 @@ export declare const ScenarioApiResponse: z.ZodObject<{
480
480
  uuid?: string | undefined;
481
481
  description?: string | undefined;
482
482
  state?: import("..").WorkspaceElementState | undefined;
483
- errors?: any[] | undefined;
483
+ errors?: import("../..").ErrorDataSchema[] | undefined;
484
484
  revision?: string | undefined;
485
- isDeactivated?: boolean | undefined;
486
485
  createdAt?: string | undefined;
487
486
  updatedAt?: string | undefined;
488
487
  archivedAt?: string | undefined;
488
+ isDeactivated?: boolean | undefined;
489
489
  parameters?: any;
490
- isTest?: boolean | undefined;
491
490
  connectorId?: string | undefined;
492
491
  connectorVersion?: string | undefined;
493
492
  oAuthCallbackUri?: string | undefined;
@@ -501,6 +500,7 @@ export declare const ScenarioApiResponse: z.ZodObject<{
501
500
  eventsCount?: number | undefined;
502
501
  hasGlobalWebhooks?: boolean | undefined;
503
502
  hasUdm?: boolean | undefined;
503
+ isTest?: boolean | undefined;
504
504
  appUuid?: string | undefined;
505
505
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
506
506
  }[] | undefined;
@@ -20,18 +20,18 @@ export declare const ActionDependency: z.ZodObject<{
20
20
  export type ActionDependency = z.infer<typeof ActionDependency>;
21
21
  export declare const BaseActionInstance: z.ZodObject<{
22
22
  id: z.ZodString;
23
- name: z.ZodString;
24
- } & {
25
23
  key: z.ZodOptional<z.ZodString>;
26
24
  uuid: z.ZodOptional<z.ZodString>;
27
25
  description: z.ZodOptional<z.ZodString>;
26
+ } & {
27
+ name: z.ZodString;
28
28
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
29
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
29
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
30
30
  revision: z.ZodOptional<z.ZodString>;
31
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
32
31
  createdAt: z.ZodOptional<z.ZodString>;
33
32
  updatedAt: z.ZodOptional<z.ZodString>;
34
33
  archivedAt: z.ZodOptional<z.ZodString>;
34
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
35
35
  } & {
36
36
  parentId: z.ZodOptional<z.ZodString>;
37
37
  parentRevision: z.ZodOptional<z.ZodString>;
@@ -52,17 +52,17 @@ export declare const BaseActionInstance: z.ZodObject<{
52
52
  uuid?: string | undefined;
53
53
  description?: string | undefined;
54
54
  state?: import("../../types").WorkspaceElementState | undefined;
55
- errors?: any[] | undefined;
55
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
56
56
  revision?: string | undefined;
57
- isDeactivated?: boolean | undefined;
58
57
  createdAt?: string | undefined;
59
58
  updatedAt?: string | undefined;
60
59
  archivedAt?: string | undefined;
60
+ isDeactivated?: boolean | undefined;
61
61
  instanceKey?: string | undefined;
62
62
  parentId?: string | undefined;
63
- parentRevision?: string | undefined;
64
63
  inputSchema?: any;
65
64
  config?: any;
65
+ parentRevision?: string | undefined;
66
66
  outputSchema?: any;
67
67
  universalParentId?: string | undefined;
68
68
  isOutdated?: boolean | undefined;
@@ -75,17 +75,17 @@ export declare const BaseActionInstance: z.ZodObject<{
75
75
  uuid?: string | undefined;
76
76
  description?: string | undefined;
77
77
  state?: import("../../types").WorkspaceElementState | undefined;
78
- errors?: any[] | undefined;
78
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
79
79
  revision?: string | undefined;
80
- isDeactivated?: boolean | undefined;
81
80
  createdAt?: string | undefined;
82
81
  updatedAt?: string | undefined;
83
82
  archivedAt?: string | undefined;
83
+ isDeactivated?: boolean | undefined;
84
84
  instanceKey?: string | undefined;
85
85
  parentId?: string | undefined;
86
- parentRevision?: string | undefined;
87
86
  inputSchema?: any;
88
87
  config?: any;
88
+ parentRevision?: string | undefined;
89
89
  outputSchema?: any;
90
90
  universalParentId?: string | undefined;
91
91
  isOutdated?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { ErrorDataSchema } from '../../../errors';
2
3
  export declare enum ActionRunLogStatus {
3
4
  SUCCESS = "success",
4
5
  ERROR = "error"
@@ -15,7 +16,7 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
15
16
  status: z.ZodNativeEnum<typeof ActionRunLogStatus>;
16
17
  createdAt: z.ZodString;
17
18
  completedAt: z.ZodOptional<z.ZodString>;
18
- error: any;
19
+ error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
19
20
  }, "strip", z.ZodTypeAny, {
20
21
  status: ActionRunLogStatus;
21
22
  id: string;
@@ -24,7 +25,7 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
24
25
  connectionId: string;
25
26
  integrationId: string;
26
27
  actionId: string;
27
- error?: any;
28
+ error?: ErrorDataSchema | undefined;
28
29
  input?: any;
29
30
  output?: any;
30
31
  completedAt?: string | undefined;
@@ -36,7 +37,7 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
36
37
  connectionId: string;
37
38
  integrationId: string;
38
39
  actionId: string;
39
- error?: any;
40
+ error?: ErrorDataSchema | undefined;
40
41
  input?: any;
41
42
  output?: any;
42
43
  completedAt?: string | undefined;
@@ -1,2 +1,112 @@
1
+ import { z } from 'zod';
2
+ import { ActionType } from './action-types';
3
+ import { DataSchema } from '../../../data-schema';
1
4
  export * from './action-types';
2
- export * from './types';
5
+ export declare const ActionEditableProperties: z.ZodObject<{
6
+ key: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ uuid: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ } & {
11
+ integrationId: z.ZodOptional<z.ZodString>;
12
+ parentId: z.ZodOptional<z.ZodString>;
13
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
14
+ type: z.ZodOptional<z.ZodNativeEnum<typeof ActionType>>;
15
+ config: z.ZodOptional<z.ZodAny>;
16
+ outputMapping: z.ZodOptional<z.ZodAny>;
17
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ key?: string | undefined;
20
+ type?: ActionType | undefined;
21
+ name?: string | undefined;
22
+ uuid?: string | undefined;
23
+ description?: string | undefined;
24
+ integrationId?: string | undefined;
25
+ parentId?: string | undefined;
26
+ inputSchema?: DataSchema | undefined;
27
+ config?: any;
28
+ outputMapping?: any;
29
+ customOutputSchema?: DataSchema | undefined;
30
+ }, {
31
+ key?: string | undefined;
32
+ type?: ActionType | undefined;
33
+ name?: string | undefined;
34
+ uuid?: string | undefined;
35
+ description?: string | undefined;
36
+ integrationId?: string | undefined;
37
+ parentId?: string | undefined;
38
+ inputSchema?: DataSchema | undefined;
39
+ config?: any;
40
+ outputMapping?: any;
41
+ customOutputSchema?: DataSchema | undefined;
42
+ }>;
43
+ export type ActionEditableProperties = z.infer<typeof ActionEditableProperties>;
44
+ export declare const BaseAction: z.ZodObject<{
45
+ id: z.ZodString;
46
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
47
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
48
+ revision: z.ZodOptional<z.ZodString>;
49
+ createdAt: z.ZodOptional<z.ZodString>;
50
+ updatedAt: z.ZodOptional<z.ZodString>;
51
+ archivedAt: z.ZodOptional<z.ZodString>;
52
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
53
+ uuid: z.ZodOptional<z.ZodString>;
54
+ description: z.ZodOptional<z.ZodString>;
55
+ integrationId: z.ZodOptional<z.ZodString>;
56
+ parentId: z.ZodOptional<z.ZodString>;
57
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
58
+ type: z.ZodOptional<z.ZodNativeEnum<typeof ActionType>>;
59
+ config: z.ZodOptional<z.ZodAny>;
60
+ outputMapping: z.ZodOptional<z.ZodAny>;
61
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
62
+ } & {
63
+ key: z.ZodString;
64
+ name: z.ZodString;
65
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
66
+ parentRevision: z.ZodOptional<z.ZodString>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ key: string;
69
+ id: string;
70
+ name: string;
71
+ type?: ActionType | undefined;
72
+ uuid?: string | undefined;
73
+ description?: string | undefined;
74
+ state?: import("../../types").WorkspaceElementState | undefined;
75
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
76
+ revision?: string | undefined;
77
+ createdAt?: string | undefined;
78
+ updatedAt?: string | undefined;
79
+ archivedAt?: string | undefined;
80
+ isDeactivated?: boolean | undefined;
81
+ integrationId?: string | undefined;
82
+ parentId?: string | undefined;
83
+ inputSchema?: DataSchema | undefined;
84
+ config?: any;
85
+ outputMapping?: any;
86
+ customOutputSchema?: DataSchema | undefined;
87
+ isCustomized?: boolean | undefined;
88
+ parentRevision?: string | undefined;
89
+ }, {
90
+ key: string;
91
+ id: string;
92
+ name: string;
93
+ type?: ActionType | undefined;
94
+ uuid?: string | undefined;
95
+ description?: string | undefined;
96
+ state?: import("../../types").WorkspaceElementState | undefined;
97
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
98
+ revision?: string | undefined;
99
+ createdAt?: string | undefined;
100
+ updatedAt?: string | undefined;
101
+ archivedAt?: string | undefined;
102
+ isDeactivated?: boolean | undefined;
103
+ integrationId?: string | undefined;
104
+ parentId?: string | undefined;
105
+ inputSchema?: DataSchema | undefined;
106
+ config?: any;
107
+ outputMapping?: any;
108
+ customOutputSchema?: DataSchema | undefined;
109
+ isCustomized?: boolean | undefined;
110
+ parentRevision?: string | undefined;
111
+ }>;
112
+ export type BaseAction = z.infer<typeof BaseAction>;
@@ -1,16 +1,17 @@
1
1
  import { z } from 'zod';
2
+ import { ErrorDataSchema } from '../../../errors';
2
3
  export declare const BaseAppDataSchemaInstance: z.ZodObject<{
3
4
  id: z.ZodString;
4
- name: z.ZodString;
5
5
  key: z.ZodOptional<z.ZodString>;
6
6
  uuid: z.ZodOptional<z.ZodString>;
7
7
  description: z.ZodOptional<z.ZodString>;
8
+ name: z.ZodString;
8
9
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
9
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
10
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
10
11
  revision: z.ZodOptional<z.ZodString>;
11
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
12
12
  createdAt: z.ZodOptional<z.ZodString>;
13
13
  updatedAt: z.ZodOptional<z.ZodString>;
14
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
14
15
  } & {
15
16
  appId: z.ZodString;
16
17
  userId: z.ZodString;
@@ -18,7 +19,7 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
18
19
  appDataSchemaRevision: z.ZodString;
19
20
  instanceKey: z.ZodOptional<z.ZodString>;
20
21
  schema: z.ZodOptional<z.ZodAny>;
21
- error: any;
22
+ error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
22
23
  archivedAt: z.ZodOptional<z.ZodString>;
23
24
  }, "strip", z.ZodTypeAny, {
24
25
  id: string;
@@ -28,16 +29,16 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
28
29
  appDataSchemaId: string;
29
30
  appDataSchemaRevision: string;
30
31
  key?: string | undefined;
31
- error?: any;
32
+ error?: ErrorDataSchema | undefined;
32
33
  uuid?: string | undefined;
33
34
  description?: string | undefined;
34
35
  state?: import("../../types").WorkspaceElementState | undefined;
35
- errors?: any[] | undefined;
36
+ errors?: ErrorDataSchema[] | undefined;
36
37
  revision?: string | undefined;
37
- isDeactivated?: boolean | undefined;
38
38
  createdAt?: string | undefined;
39
39
  updatedAt?: string | undefined;
40
40
  archivedAt?: string | undefined;
41
+ isDeactivated?: boolean | undefined;
41
42
  instanceKey?: string | undefined;
42
43
  schema?: any;
43
44
  }, {
@@ -48,16 +49,16 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
48
49
  appDataSchemaId: string;
49
50
  appDataSchemaRevision: string;
50
51
  key?: string | undefined;
51
- error?: any;
52
+ error?: ErrorDataSchema | undefined;
52
53
  uuid?: string | undefined;
53
54
  description?: string | undefined;
54
55
  state?: import("../../types").WorkspaceElementState | undefined;
55
- errors?: any[] | undefined;
56
+ errors?: ErrorDataSchema[] | undefined;
56
57
  revision?: string | undefined;
57
- isDeactivated?: boolean | undefined;
58
58
  createdAt?: string | undefined;
59
59
  updatedAt?: string | undefined;
60
60
  archivedAt?: string | undefined;
61
+ isDeactivated?: boolean | undefined;
61
62
  instanceKey?: string | undefined;
62
63
  schema?: any;
63
64
  }>;
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  export declare const BaseAppDataSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
- name: z.ZodString;
5
4
  key: z.ZodOptional<z.ZodString>;
6
5
  uuid: z.ZodOptional<z.ZodString>;
7
6
  description: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodString;
8
8
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
9
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
10
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
9
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
11
10
  createdAt: z.ZodOptional<z.ZodString>;
12
11
  updatedAt: z.ZodOptional<z.ZodString>;
12
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
13
13
  } & {
14
14
  schema: z.ZodAny;
15
15
  code: z.ZodOptional<z.ZodString>;
@@ -23,12 +23,12 @@ export declare const BaseAppDataSchema: z.ZodObject<{
23
23
  uuid?: string | undefined;
24
24
  description?: string | undefined;
25
25
  state?: import("../../types").WorkspaceElementState | undefined;
26
- errors?: any[] | undefined;
26
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
27
27
  revision?: string | undefined;
28
- isDeactivated?: boolean | undefined;
29
28
  createdAt?: string | undefined;
30
29
  updatedAt?: string | undefined;
31
30
  archivedAt?: string | undefined;
31
+ isDeactivated?: boolean | undefined;
32
32
  schema?: any;
33
33
  }, {
34
34
  id: string;
@@ -38,12 +38,12 @@ export declare const BaseAppDataSchema: z.ZodObject<{
38
38
  uuid?: string | undefined;
39
39
  description?: string | undefined;
40
40
  state?: import("../../types").WorkspaceElementState | undefined;
41
- errors?: any[] | undefined;
41
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
42
42
  revision?: string | undefined;
43
- isDeactivated?: boolean | undefined;
44
43
  createdAt?: string | undefined;
45
44
  updatedAt?: string | undefined;
46
45
  archivedAt?: string | undefined;
46
+ isDeactivated?: boolean | undefined;
47
47
  schema?: any;
48
48
  }>;
49
49
  export type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;