@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
@@ -214,12 +214,12 @@ export declare const ExternalEvent: z.ZodObject<{
214
214
  }>;
215
215
  integration: z.ZodObject<{
216
216
  id: z.ZodString;
217
- name: z.ZodString;
218
217
  key: z.ZodOptional<z.ZodString>;
219
218
  uuid: z.ZodOptional<z.ZodString>;
220
219
  description: z.ZodOptional<z.ZodString>;
220
+ name: z.ZodString;
221
221
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
222
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
222
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
223
223
  revision: z.ZodOptional<z.ZodString>;
224
224
  createdAt: z.ZodOptional<z.ZodString>;
225
225
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -227,44 +227,8 @@ export declare const ExternalEvent: z.ZodObject<{
227
227
  logoUri: z.ZodString;
228
228
  connectorId: z.ZodOptional<z.ZodString>;
229
229
  connectorVersion: z.ZodOptional<z.ZodString>;
230
- authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
231
- key: z.ZodString;
232
- type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
233
- title: z.ZodOptional<z.ZodString>;
234
- description: z.ZodOptional<z.ZodString>;
235
- ui: z.ZodOptional<z.ZodObject<{
236
- schema: z.ZodOptional<z.ZodAny>;
237
- helpUri: z.ZodOptional<z.ZodString>;
238
- }, "strip", z.ZodTypeAny, {
239
- schema?: any;
240
- helpUri?: string | undefined;
241
- }, {
242
- schema?: any;
243
- helpUri?: string | undefined;
244
- }>>;
245
- }, "strip", z.ZodTypeAny, {
246
- key: string;
247
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
248
- description?: string | undefined;
249
- title?: string | undefined;
250
- ui?: {
251
- schema?: any;
252
- helpUri?: string | undefined;
253
- } | undefined;
254
- }, {
255
- key: string;
256
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
257
- description?: string | undefined;
258
- title?: string | undefined;
259
- ui?: {
260
- schema?: any;
261
- helpUri?: string | undefined;
262
- } | undefined;
263
- }>, "many">>;
264
230
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
265
- parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
266
231
  parameters: z.ZodOptional<z.ZodAny>;
267
- baseUri: z.ZodString;
268
232
  archivedAt: z.ZodOptional<z.ZodString>;
269
233
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
270
234
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
@@ -283,33 +247,20 @@ export declare const ExternalEvent: z.ZodObject<{
283
247
  }, "strip", z.ZodTypeAny, {
284
248
  id: string;
285
249
  name: string;
286
- baseUri: string;
287
250
  logoUri: string;
288
251
  key?: string | undefined;
289
252
  uuid?: string | undefined;
290
253
  description?: string | undefined;
291
254
  state?: import("..").WorkspaceElementState | undefined;
292
- errors?: any[] | undefined;
255
+ errors?: import("../..").ErrorDataSchema[] | undefined;
293
256
  revision?: string | undefined;
294
- isDeactivated?: boolean | undefined;
295
257
  createdAt?: string | undefined;
296
258
  updatedAt?: string | undefined;
297
259
  archivedAt?: string | undefined;
260
+ isDeactivated?: boolean | undefined;
298
261
  parameters?: any;
299
- parametersSchema?: import("../..").DataSchema | undefined;
300
- isTest?: boolean | undefined;
301
262
  connectorId?: string | undefined;
302
263
  connectorVersion?: string | undefined;
303
- authOptions?: {
304
- key: string;
305
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
306
- description?: string | undefined;
307
- title?: string | undefined;
308
- ui?: {
309
- schema?: any;
310
- helpUri?: string | undefined;
311
- } | undefined;
312
- }[] | undefined;
313
264
  oAuthCallbackUri?: string | undefined;
314
265
  hasMissingParameters?: boolean | undefined;
315
266
  hasDocumentation?: boolean | undefined;
@@ -321,38 +272,26 @@ export declare const ExternalEvent: z.ZodObject<{
321
272
  eventsCount?: number | undefined;
322
273
  hasGlobalWebhooks?: boolean | undefined;
323
274
  hasUdm?: boolean | undefined;
275
+ isTest?: boolean | undefined;
324
276
  appUuid?: string | undefined;
325
277
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
326
278
  }, {
327
279
  id: string;
328
280
  name: string;
329
- baseUri: string;
330
281
  logoUri: string;
331
282
  key?: string | undefined;
332
283
  uuid?: string | undefined;
333
284
  description?: string | undefined;
334
285
  state?: import("..").WorkspaceElementState | undefined;
335
- errors?: any[] | undefined;
286
+ errors?: import("../..").ErrorDataSchema[] | undefined;
336
287
  revision?: string | undefined;
337
- isDeactivated?: boolean | undefined;
338
288
  createdAt?: string | undefined;
339
289
  updatedAt?: string | undefined;
340
290
  archivedAt?: string | undefined;
291
+ isDeactivated?: boolean | undefined;
341
292
  parameters?: any;
342
- parametersSchema?: import("../..").DataSchema | undefined;
343
- isTest?: boolean | undefined;
344
293
  connectorId?: string | undefined;
345
294
  connectorVersion?: string | undefined;
346
- authOptions?: {
347
- key: string;
348
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
349
- description?: string | undefined;
350
- title?: string | undefined;
351
- ui?: {
352
- schema?: any;
353
- helpUri?: string | undefined;
354
- } | undefined;
355
- }[] | undefined;
356
295
  oAuthCallbackUri?: string | undefined;
357
296
  hasMissingParameters?: boolean | undefined;
358
297
  hasDocumentation?: boolean | undefined;
@@ -364,6 +303,7 @@ export declare const ExternalEvent: z.ZodObject<{
364
303
  eventsCount?: number | undefined;
365
304
  hasGlobalWebhooks?: boolean | undefined;
366
305
  hasUdm?: boolean | undefined;
306
+ isTest?: boolean | undefined;
367
307
  appUuid?: string | undefined;
368
308
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
369
309
  }>;
@@ -371,33 +311,20 @@ export declare const ExternalEvent: z.ZodObject<{
371
311
  integration: {
372
312
  id: string;
373
313
  name: string;
374
- baseUri: string;
375
314
  logoUri: string;
376
315
  key?: string | undefined;
377
316
  uuid?: string | undefined;
378
317
  description?: string | undefined;
379
318
  state?: import("..").WorkspaceElementState | undefined;
380
- errors?: any[] | undefined;
319
+ errors?: import("../..").ErrorDataSchema[] | undefined;
381
320
  revision?: string | undefined;
382
- isDeactivated?: boolean | undefined;
383
321
  createdAt?: string | undefined;
384
322
  updatedAt?: string | undefined;
385
323
  archivedAt?: string | undefined;
324
+ isDeactivated?: boolean | undefined;
386
325
  parameters?: any;
387
- parametersSchema?: import("../..").DataSchema | undefined;
388
- isTest?: boolean | undefined;
389
326
  connectorId?: string | undefined;
390
327
  connectorVersion?: string | undefined;
391
- authOptions?: {
392
- key: string;
393
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
394
- description?: string | undefined;
395
- title?: string | undefined;
396
- ui?: {
397
- schema?: any;
398
- helpUri?: string | undefined;
399
- } | undefined;
400
- }[] | undefined;
401
328
  oAuthCallbackUri?: string | undefined;
402
329
  hasMissingParameters?: boolean | undefined;
403
330
  hasDocumentation?: boolean | undefined;
@@ -409,6 +336,7 @@ export declare const ExternalEvent: z.ZodObject<{
409
336
  eventsCount?: number | undefined;
410
337
  hasGlobalWebhooks?: boolean | undefined;
411
338
  hasUdm?: boolean | undefined;
339
+ isTest?: boolean | undefined;
412
340
  appUuid?: string | undefined;
413
341
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
414
342
  };
@@ -432,33 +360,20 @@ export declare const ExternalEvent: z.ZodObject<{
432
360
  integration: {
433
361
  id: string;
434
362
  name: string;
435
- baseUri: string;
436
363
  logoUri: string;
437
364
  key?: string | undefined;
438
365
  uuid?: string | undefined;
439
366
  description?: string | undefined;
440
367
  state?: import("..").WorkspaceElementState | undefined;
441
- errors?: any[] | undefined;
368
+ errors?: import("../..").ErrorDataSchema[] | undefined;
442
369
  revision?: string | undefined;
443
- isDeactivated?: boolean | undefined;
444
370
  createdAt?: string | undefined;
445
371
  updatedAt?: string | undefined;
446
372
  archivedAt?: string | undefined;
373
+ isDeactivated?: boolean | undefined;
447
374
  parameters?: any;
448
- parametersSchema?: import("../..").DataSchema | undefined;
449
- isTest?: boolean | undefined;
450
375
  connectorId?: string | undefined;
451
376
  connectorVersion?: string | undefined;
452
- authOptions?: {
453
- key: string;
454
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
455
- description?: string | undefined;
456
- title?: string | undefined;
457
- ui?: {
458
- schema?: any;
459
- helpUri?: string | undefined;
460
- } | undefined;
461
- }[] | undefined;
462
377
  oAuthCallbackUri?: string | undefined;
463
378
  hasMissingParameters?: boolean | undefined;
464
379
  hasDocumentation?: boolean | undefined;
@@ -470,6 +385,7 @@ export declare const ExternalEvent: z.ZodObject<{
470
385
  eventsCount?: number | undefined;
471
386
  hasGlobalWebhooks?: boolean | undefined;
472
387
  hasUdm?: boolean | undefined;
388
+ isTest?: boolean | undefined;
473
389
  appUuid?: string | undefined;
474
390
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
475
391
  };
@@ -509,33 +425,20 @@ export declare const ExternalEvent: z.ZodObject<{
509
425
  integration: {
510
426
  id: string;
511
427
  name: string;
512
- baseUri: string;
513
428
  logoUri: string;
514
429
  key?: string | undefined;
515
430
  uuid?: string | undefined;
516
431
  description?: string | undefined;
517
432
  state?: import("..").WorkspaceElementState | undefined;
518
- errors?: any[] | undefined;
433
+ errors?: import("../..").ErrorDataSchema[] | undefined;
519
434
  revision?: string | undefined;
520
- isDeactivated?: boolean | undefined;
521
435
  createdAt?: string | undefined;
522
436
  updatedAt?: string | undefined;
523
437
  archivedAt?: string | undefined;
438
+ isDeactivated?: boolean | undefined;
524
439
  parameters?: any;
525
- parametersSchema?: import("../..").DataSchema | undefined;
526
- isTest?: boolean | undefined;
527
440
  connectorId?: string | undefined;
528
441
  connectorVersion?: string | undefined;
529
- authOptions?: {
530
- key: string;
531
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
532
- description?: string | undefined;
533
- title?: string | undefined;
534
- ui?: {
535
- schema?: any;
536
- helpUri?: string | undefined;
537
- } | undefined;
538
- }[] | undefined;
539
442
  oAuthCallbackUri?: string | undefined;
540
443
  hasMissingParameters?: boolean | undefined;
541
444
  hasDocumentation?: boolean | undefined;
@@ -547,6 +450,7 @@ export declare const ExternalEvent: z.ZodObject<{
547
450
  eventsCount?: number | undefined;
548
451
  hasGlobalWebhooks?: boolean | undefined;
549
452
  hasUdm?: boolean | undefined;
453
+ isTest?: boolean | undefined;
550
454
  appUuid?: string | undefined;
551
455
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
552
456
  };
@@ -586,33 +490,20 @@ export declare const ExternalEvent: z.ZodObject<{
586
490
  integration: {
587
491
  id: string;
588
492
  name: string;
589
- baseUri: string;
590
493
  logoUri: string;
591
494
  key?: string | undefined;
592
495
  uuid?: string | undefined;
593
496
  description?: string | undefined;
594
497
  state?: import("..").WorkspaceElementState | undefined;
595
- errors?: any[] | undefined;
498
+ errors?: import("../..").ErrorDataSchema[] | undefined;
596
499
  revision?: string | undefined;
597
- isDeactivated?: boolean | undefined;
598
500
  createdAt?: string | undefined;
599
501
  updatedAt?: string | undefined;
600
502
  archivedAt?: string | undefined;
503
+ isDeactivated?: boolean | undefined;
601
504
  parameters?: any;
602
- parametersSchema?: import("../..").DataSchema | undefined;
603
- isTest?: boolean | undefined;
604
505
  connectorId?: string | undefined;
605
506
  connectorVersion?: string | undefined;
606
- authOptions?: {
607
- key: string;
608
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
609
- description?: string | undefined;
610
- title?: string | undefined;
611
- ui?: {
612
- schema?: any;
613
- helpUri?: string | undefined;
614
- } | undefined;
615
- }[] | undefined;
616
507
  oAuthCallbackUri?: string | undefined;
617
508
  hasMissingParameters?: boolean | undefined;
618
509
  hasDocumentation?: boolean | undefined;
@@ -624,6 +515,7 @@ export declare const ExternalEvent: z.ZodObject<{
624
515
  eventsCount?: number | undefined;
625
516
  hasGlobalWebhooks?: boolean | undefined;
626
517
  hasUdm?: boolean | undefined;
518
+ isTest?: boolean | undefined;
627
519
  appUuid?: string | undefined;
628
520
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
629
521
  };