@membranehq/sdk 0.2.0 → 0.3.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 (43) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -8
  3. package/dist/bundle.d.ts +730 -228
  4. package/dist/bundle.js +183 -97
  5. package/dist/bundle.js.map +1 -1
  6. package/dist/dts/actions/types.d.ts +0 -1
  7. package/dist/dts/api-client.d.ts +5 -5
  8. package/dist/dts/connections/accessors.d.ts +3 -11
  9. package/dist/dts/connections/create-or-update-connection.d.ts +1 -0
  10. package/dist/dts/connections/types.d.ts +1 -3
  11. package/dist/dts/connectors/auth.d.ts +6 -3
  12. package/dist/dts/connectors/data-locations/base.d.ts +3 -3
  13. package/dist/dts/connectors/data-locations/collections/events/implementation-types/connector-event.d.ts +2 -2
  14. package/dist/dts/connectors/data-locations/collections/events/implementation-types/custom-pull.d.ts +2 -2
  15. package/dist/dts/connectors/data-locations/collections/events/implementation-types/pull-latest-records.d.ts +2 -2
  16. package/dist/dts/connectors/data-locations/collections/events/implementation-types/webhook.d.ts +2 -2
  17. package/dist/dts/connectors/data-locations/collections/index.d.ts +24 -24
  18. package/dist/dts/connectors/data-locations/collections/methods/base.d.ts +3 -3
  19. package/dist/dts/connectors/data-locations/index.d.ts +1 -2
  20. package/dist/dts/connectors/data-locations/methods.d.ts +2 -2
  21. package/dist/dts/connectors/data-locations/schemas.d.ts +1329 -0
  22. package/dist/dts/connectors/data-locations/utils.d.ts +2 -2
  23. package/dist/dts/connectors/types.d.ts +1 -12
  24. package/dist/dts/data-builder/formulas/dataSchemaRef.d.ts +2 -2
  25. package/dist/dts/data-schema/index.d.ts +1 -0
  26. package/dist/dts/data-schema/schemas.d.ts +4 -0
  27. package/dist/dts/errors/index.d.ts +3 -10
  28. package/dist/dts/flow-runs/flow-node-runs.d.ts +347 -15
  29. package/dist/dts/flows/schemas.d.ts +14 -14
  30. package/dist/dts/flows/types.d.ts +0 -1
  31. package/dist/dts/integrations/accessors.d.ts +10 -11
  32. package/dist/dts/integrations/api.d.ts +1 -0
  33. package/dist/index.d.ts +1714 -359
  34. package/dist/index.js +199 -91
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.module.d.mts +1714 -359
  37. package/dist/index.module.mjs +174 -89
  38. package/dist/index.module.mjs.map +1 -1
  39. package/package.json +3 -3
  40. package/dist/dts/connectors/data-locations/directories/index.d.ts +0 -17
  41. package/dist/dts/connectors/data-locations/directories/methods/base.d.ts +0 -18
  42. package/dist/dts/connectors/data-locations/directories/methods/list.d.ts +0 -2
  43. package/dist/dts/connectors/data-locations/types.d.ts +0 -258
package/dist/bundle.d.ts CHANGED
@@ -18,11 +18,11 @@ declare class IntegrationAppApiClient {
18
18
  constructor({ uiUri, apiUri, accessToken, token, fetchToken, fetchCredentials, credentials, }?: IntegrationAppClientOptions);
19
19
  setCredentials(credentials: any): Promise<any>;
20
20
  getToken(): Promise<string>;
21
- get(uri: string, queryParams?: Record<string, any>, options?: AxiosRequestConfig): Promise<any>;
22
- post(uri: string, data?: any, options?: AxiosRequestConfig): Promise<any>;
23
- put(uri: string, data?: any, options?: AxiosRequestConfig): Promise<any>;
24
- patch(uri: string, data?: any, options?: AxiosRequestConfig): Promise<any>;
25
- delete(uri: string, data?: any, options?: AxiosRequestConfig): Promise<any>;
21
+ get<T = any>(uri: string, queryParams?: Record<string, any>, options?: AxiosRequestConfig): Promise<T>;
22
+ post<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
23
+ put<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
24
+ patch<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
25
+ delete<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
26
26
  getEmbedUri(page: string, pageParams?: Record<string, any>, options?: {
27
27
  embedMode: 'isolated-embed' | 'popup-embed';
28
28
  }): Promise<string>;
@@ -55,37 +55,8 @@ declare class PaginationResponse<T> {
55
55
  cursor?: string;
56
56
  }
57
57
 
58
- declare enum ErrorDoc {
59
- AuthenticationTokenErrors = "authentication-token-errors",
60
- DataSourceNoCollectionSelected = "data-source-no-collection-selected",
61
- FlowInstanceSetupFailed = "flow-instance-setup-failed",
62
- FlowInstanceSetupTimeout = "flow-instance-setup-timeout",
63
- WebhookCannotFindUser = "webhook-cannot-find-user"
64
- }
65
-
66
- declare enum ErrorType {
67
- BAD_REQUEST = "bad_request",
68
- CONNECTION = "connection",
69
- CONFIGURATION = "configuration",
70
- DEPENDENCY_ERROR = "dependency_error",
71
- FLOW_RUN = "flow_run",
72
- FLOW_INSTANCE_SETUP = "flow_instance_setup",
73
- CONCURRENCY = "concurrency",
74
- INTERNAL = "internal",
75
- ACTION_RUN = "action_run",
76
- ACTION_INSTANCE_SETUP = "action_instance_setup",
77
- UNIT_RUN = "unit_run",
78
- CUSTOM_CODE = "custom_code"
79
- }
80
- interface ErrorDataFields {
81
- type?: ErrorType;
82
- key?: string;
83
- message: string;
84
- data?: any;
85
- doc?: ErrorDoc;
86
- stack?: any;
87
- causedByError?: ErrorData;
88
- logs?: any[];
58
+ declare const ErrorDataSchema: any;
59
+ interface ErrorDataFields extends z.infer<typeof ErrorDataSchema> {
89
60
  }
90
61
  type ErrorConstructorArg = string | ErrorDataFields | Error;
91
62
  declare class ErrorData implements ErrorDataFields {
@@ -268,11 +239,6 @@ interface DataRecord {
268
239
  createdById?: string;
269
240
  updatedById?: string;
270
241
  }
271
- declare enum DataCollectionEventType {
272
- CREATED = "created",
273
- UPDATED = "updated",
274
- DELETED = "deleted"
275
- }
276
242
 
277
243
  interface DataSchema {
278
244
  title?: string;
@@ -422,102 +388,707 @@ interface ConnectorMethodImplementationNotSupported extends ConnectorMethodImple
422
388
  implementationType: ConnectorMethodImplementationType.notSupported;
423
389
  }
424
390
 
425
- type DataLocationSpec = DataCollectionSpec | DataDirectorySpec;
426
- declare enum DataLocationType {
427
- directory = "directory",
428
- collection = "collection"
429
- }
430
- interface DataLocationListItem {
431
- key: string;
391
+ declare const DataCollectionSpecSchema: z.ZodObject<{
392
+ type: z.ZodLiteral<"collection">;
393
+ key: z.ZodOptional<z.ZodString>;
394
+ name: z.ZodString;
395
+ parametersSchema: z.ZodOptional<z.ZodLazy<any>>;
396
+ fieldsSchema: z.ZodOptional<z.ZodLazy<any>>;
397
+ list: z.ZodOptional<z.ZodObject<{
398
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
399
+ path: z.ZodUnknown;
400
+ method: z.ZodUnknown;
401
+ }, "strip", z.ZodTypeAny, {
402
+ path?: unknown;
403
+ method?: unknown;
404
+ }, {
405
+ path?: unknown;
406
+ method?: unknown;
407
+ }>, "many">>;
408
+ } & {
409
+ filterFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ apiRequests?: {
412
+ path?: unknown;
413
+ method?: unknown;
414
+ }[] | undefined;
415
+ filterFields?: string[] | undefined;
416
+ }, {
417
+ apiRequests?: {
418
+ path?: unknown;
419
+ method?: unknown;
420
+ }[] | undefined;
421
+ filterFields?: string[] | undefined;
422
+ }>>;
423
+ search: z.ZodOptional<z.ZodObject<{
424
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
425
+ path: z.ZodUnknown;
426
+ method: z.ZodUnknown;
427
+ }, "strip", z.ZodTypeAny, {
428
+ path?: unknown;
429
+ method?: unknown;
430
+ }, {
431
+ path?: unknown;
432
+ method?: unknown;
433
+ }>, "many">>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ apiRequests?: {
436
+ path?: unknown;
437
+ method?: unknown;
438
+ }[] | undefined;
439
+ }, {
440
+ apiRequests?: {
441
+ path?: unknown;
442
+ method?: unknown;
443
+ }[] | undefined;
444
+ }>>;
445
+ match: z.ZodOptional<z.ZodObject<{
446
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
447
+ path: z.ZodUnknown;
448
+ method: z.ZodUnknown;
449
+ }, "strip", z.ZodTypeAny, {
450
+ path?: unknown;
451
+ method?: unknown;
452
+ }, {
453
+ path?: unknown;
454
+ method?: unknown;
455
+ }>, "many">>;
456
+ } & {
457
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ apiRequests?: {
460
+ path?: unknown;
461
+ method?: unknown;
462
+ }[] | undefined;
463
+ fields?: string[] | undefined;
464
+ }, {
465
+ apiRequests?: {
466
+ path?: unknown;
467
+ method?: unknown;
468
+ }[] | undefined;
469
+ fields?: string[] | undefined;
470
+ }>>;
471
+ findById: z.ZodOptional<z.ZodObject<{
472
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
473
+ path: z.ZodUnknown;
474
+ method: z.ZodUnknown;
475
+ }, "strip", z.ZodTypeAny, {
476
+ path?: unknown;
477
+ method?: unknown;
478
+ }, {
479
+ path?: unknown;
480
+ method?: unknown;
481
+ }>, "many">>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ apiRequests?: {
484
+ path?: unknown;
485
+ method?: unknown;
486
+ }[] | undefined;
487
+ }, {
488
+ apiRequests?: {
489
+ path?: unknown;
490
+ method?: unknown;
491
+ }[] | undefined;
492
+ }>>;
493
+ create: z.ZodOptional<z.ZodObject<{
494
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
495
+ path: z.ZodUnknown;
496
+ method: z.ZodUnknown;
497
+ }, "strip", z.ZodTypeAny, {
498
+ path?: unknown;
499
+ method?: unknown;
500
+ }, {
501
+ path?: unknown;
502
+ method?: unknown;
503
+ }>, "many">>;
504
+ } & {
505
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
506
+ requiredFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
507
+ excludedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ apiRequests?: {
510
+ path?: unknown;
511
+ method?: unknown;
512
+ }[] | undefined;
513
+ fields?: string[] | undefined;
514
+ requiredFields?: string[] | undefined;
515
+ excludedFields?: string[] | undefined;
516
+ }, {
517
+ apiRequests?: {
518
+ path?: unknown;
519
+ method?: unknown;
520
+ }[] | undefined;
521
+ fields?: string[] | undefined;
522
+ requiredFields?: string[] | undefined;
523
+ excludedFields?: string[] | undefined;
524
+ }>>;
525
+ update: z.ZodOptional<z.ZodObject<{
526
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
527
+ path: z.ZodUnknown;
528
+ method: z.ZodUnknown;
529
+ }, "strip", z.ZodTypeAny, {
530
+ path?: unknown;
531
+ method?: unknown;
532
+ }, {
533
+ path?: unknown;
534
+ method?: unknown;
535
+ }>, "many">>;
536
+ } & {
537
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
538
+ excludedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
539
+ }, "strip", z.ZodTypeAny, {
540
+ apiRequests?: {
541
+ path?: unknown;
542
+ method?: unknown;
543
+ }[] | undefined;
544
+ fields?: string[] | undefined;
545
+ excludedFields?: string[] | undefined;
546
+ }, {
547
+ apiRequests?: {
548
+ path?: unknown;
549
+ method?: unknown;
550
+ }[] | undefined;
551
+ fields?: string[] | undefined;
552
+ excludedFields?: string[] | undefined;
553
+ }>>;
554
+ delete: z.ZodOptional<z.ZodObject<{
555
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
556
+ path: z.ZodUnknown;
557
+ method: z.ZodUnknown;
558
+ }, "strip", z.ZodTypeAny, {
559
+ path?: unknown;
560
+ method?: unknown;
561
+ }, {
562
+ path?: unknown;
563
+ method?: unknown;
564
+ }>, "many">>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ apiRequests?: {
567
+ path?: unknown;
568
+ method?: unknown;
569
+ }[] | undefined;
570
+ }, {
571
+ apiRequests?: {
572
+ path?: unknown;
573
+ method?: unknown;
574
+ }[] | undefined;
575
+ }>>;
576
+ events: z.ZodOptional<z.ZodObject<{
577
+ created: z.ZodOptional<z.ZodObject<{
578
+ type: z.ZodEnum<["push", "pull"]>;
579
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
580
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
581
+ }, "strip", z.ZodTypeAny, {
582
+ type: "push" | "pull";
583
+ isFullScan?: boolean | undefined;
584
+ isIdOnly?: boolean | undefined;
585
+ }, {
586
+ type: "push" | "pull";
587
+ isFullScan?: boolean | undefined;
588
+ isIdOnly?: boolean | undefined;
589
+ }>>;
590
+ updated: z.ZodOptional<z.ZodObject<{
591
+ type: z.ZodEnum<["push", "pull"]>;
592
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
593
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
594
+ }, "strip", z.ZodTypeAny, {
595
+ type: "push" | "pull";
596
+ isFullScan?: boolean | undefined;
597
+ isIdOnly?: boolean | undefined;
598
+ }, {
599
+ type: "push" | "pull";
600
+ isFullScan?: boolean | undefined;
601
+ isIdOnly?: boolean | undefined;
602
+ }>>;
603
+ deleted: z.ZodOptional<z.ZodObject<{
604
+ type: z.ZodEnum<["push", "pull"]>;
605
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
606
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ type: "push" | "pull";
609
+ isFullScan?: boolean | undefined;
610
+ isIdOnly?: boolean | undefined;
611
+ }, {
612
+ type: "push" | "pull";
613
+ isFullScan?: boolean | undefined;
614
+ isIdOnly?: boolean | undefined;
615
+ }>>;
616
+ all: z.ZodOptional<z.ZodObject<{
617
+ type: z.ZodEnum<["push", "pull"]>;
618
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
619
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ type: "push" | "pull";
622
+ isFullScan?: boolean | undefined;
623
+ isIdOnly?: boolean | undefined;
624
+ }, {
625
+ type: "push" | "pull";
626
+ isFullScan?: boolean | undefined;
627
+ isIdOnly?: boolean | undefined;
628
+ }>>;
629
+ }, "strip", z.ZodObject<{
630
+ type: z.ZodEnum<["push", "pull"]>;
631
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
632
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ type: "push" | "pull";
635
+ isFullScan?: boolean | undefined;
636
+ isIdOnly?: boolean | undefined;
637
+ }, {
638
+ type: "push" | "pull";
639
+ isFullScan?: boolean | undefined;
640
+ isIdOnly?: boolean | undefined;
641
+ }>, z.objectOutputType<{
642
+ created: z.ZodOptional<z.ZodObject<{
643
+ type: z.ZodEnum<["push", "pull"]>;
644
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
645
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
646
+ }, "strip", z.ZodTypeAny, {
647
+ type: "push" | "pull";
648
+ isFullScan?: boolean | undefined;
649
+ isIdOnly?: boolean | undefined;
650
+ }, {
651
+ type: "push" | "pull";
652
+ isFullScan?: boolean | undefined;
653
+ isIdOnly?: boolean | undefined;
654
+ }>>;
655
+ updated: z.ZodOptional<z.ZodObject<{
656
+ type: z.ZodEnum<["push", "pull"]>;
657
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
658
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ type: "push" | "pull";
661
+ isFullScan?: boolean | undefined;
662
+ isIdOnly?: boolean | undefined;
663
+ }, {
664
+ type: "push" | "pull";
665
+ isFullScan?: boolean | undefined;
666
+ isIdOnly?: boolean | undefined;
667
+ }>>;
668
+ deleted: z.ZodOptional<z.ZodObject<{
669
+ type: z.ZodEnum<["push", "pull"]>;
670
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
671
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ type: "push" | "pull";
674
+ isFullScan?: boolean | undefined;
675
+ isIdOnly?: boolean | undefined;
676
+ }, {
677
+ type: "push" | "pull";
678
+ isFullScan?: boolean | undefined;
679
+ isIdOnly?: boolean | undefined;
680
+ }>>;
681
+ all: z.ZodOptional<z.ZodObject<{
682
+ type: z.ZodEnum<["push", "pull"]>;
683
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
684
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "push" | "pull";
687
+ isFullScan?: boolean | undefined;
688
+ isIdOnly?: boolean | undefined;
689
+ }, {
690
+ type: "push" | "pull";
691
+ isFullScan?: boolean | undefined;
692
+ isIdOnly?: boolean | undefined;
693
+ }>>;
694
+ }, z.ZodObject<{
695
+ type: z.ZodEnum<["push", "pull"]>;
696
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
697
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ type: "push" | "pull";
700
+ isFullScan?: boolean | undefined;
701
+ isIdOnly?: boolean | undefined;
702
+ }, {
703
+ type: "push" | "pull";
704
+ isFullScan?: boolean | undefined;
705
+ isIdOnly?: boolean | undefined;
706
+ }>, "strip">, z.objectInputType<{
707
+ created: z.ZodOptional<z.ZodObject<{
708
+ type: z.ZodEnum<["push", "pull"]>;
709
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
710
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ type: "push" | "pull";
713
+ isFullScan?: boolean | undefined;
714
+ isIdOnly?: boolean | undefined;
715
+ }, {
716
+ type: "push" | "pull";
717
+ isFullScan?: boolean | undefined;
718
+ isIdOnly?: boolean | undefined;
719
+ }>>;
720
+ updated: z.ZodOptional<z.ZodObject<{
721
+ type: z.ZodEnum<["push", "pull"]>;
722
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
723
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ type: "push" | "pull";
726
+ isFullScan?: boolean | undefined;
727
+ isIdOnly?: boolean | undefined;
728
+ }, {
729
+ type: "push" | "pull";
730
+ isFullScan?: boolean | undefined;
731
+ isIdOnly?: boolean | undefined;
732
+ }>>;
733
+ deleted: z.ZodOptional<z.ZodObject<{
734
+ type: z.ZodEnum<["push", "pull"]>;
735
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
736
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
737
+ }, "strip", z.ZodTypeAny, {
738
+ type: "push" | "pull";
739
+ isFullScan?: boolean | undefined;
740
+ isIdOnly?: boolean | undefined;
741
+ }, {
742
+ type: "push" | "pull";
743
+ isFullScan?: boolean | undefined;
744
+ isIdOnly?: boolean | undefined;
745
+ }>>;
746
+ all: z.ZodOptional<z.ZodObject<{
747
+ type: z.ZodEnum<["push", "pull"]>;
748
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
749
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ type: "push" | "pull";
752
+ isFullScan?: boolean | undefined;
753
+ isIdOnly?: boolean | undefined;
754
+ }, {
755
+ type: "push" | "pull";
756
+ isFullScan?: boolean | undefined;
757
+ isIdOnly?: boolean | undefined;
758
+ }>>;
759
+ }, z.ZodObject<{
760
+ type: z.ZodEnum<["push", "pull"]>;
761
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
762
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
763
+ }, "strip", z.ZodTypeAny, {
764
+ type: "push" | "pull";
765
+ isFullScan?: boolean | undefined;
766
+ isIdOnly?: boolean | undefined;
767
+ }, {
768
+ type: "push" | "pull";
769
+ isFullScan?: boolean | undefined;
770
+ isIdOnly?: boolean | undefined;
771
+ }>, "strip">>>;
772
+ customFields: z.ZodOptional<z.ZodBoolean>;
773
+ udm: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
774
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
775
+ extract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
776
+ parse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ fields?: string[] | undefined;
779
+ extract?: Record<string, any> | undefined;
780
+ parse?: Record<string, any> | undefined;
781
+ }, {
782
+ fields?: string[] | undefined;
783
+ extract?: Record<string, any> | undefined;
784
+ parse?: Record<string, any> | undefined;
785
+ }>>>;
786
+ find: z.ZodOptional<z.ZodObject<{
787
+ apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
788
+ path: z.ZodUnknown;
789
+ method: z.ZodUnknown;
790
+ }, "strip", z.ZodTypeAny, {
791
+ path?: unknown;
792
+ method?: unknown;
793
+ }, {
794
+ path?: unknown;
795
+ method?: unknown;
796
+ }>, "many">>;
797
+ } & {
798
+ queryFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ apiRequests?: {
801
+ path?: unknown;
802
+ method?: unknown;
803
+ }[] | undefined;
804
+ queryFields?: string[] | undefined;
805
+ }, {
806
+ apiRequests?: {
807
+ path?: unknown;
808
+ method?: unknown;
809
+ }[] | undefined;
810
+ queryFields?: string[] | undefined;
811
+ }>>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ type: "collection";
432
814
  name: string;
433
- type: DataLocationType;
434
- isHidden?: boolean;
435
- }
815
+ key?: string | undefined;
816
+ find?: {
817
+ apiRequests?: {
818
+ path?: unknown;
819
+ method?: unknown;
820
+ }[] | undefined;
821
+ queryFields?: string[] | undefined;
822
+ } | undefined;
823
+ match?: {
824
+ apiRequests?: {
825
+ path?: unknown;
826
+ method?: unknown;
827
+ }[] | undefined;
828
+ fields?: string[] | undefined;
829
+ } | undefined;
830
+ search?: {
831
+ apiRequests?: {
832
+ path?: unknown;
833
+ method?: unknown;
834
+ }[] | undefined;
835
+ } | undefined;
836
+ delete?: {
837
+ apiRequests?: {
838
+ path?: unknown;
839
+ method?: unknown;
840
+ }[] | undefined;
841
+ } | undefined;
842
+ parametersSchema?: any;
843
+ fieldsSchema?: any;
844
+ list?: {
845
+ apiRequests?: {
846
+ path?: unknown;
847
+ method?: unknown;
848
+ }[] | undefined;
849
+ filterFields?: string[] | undefined;
850
+ } | undefined;
851
+ findById?: {
852
+ apiRequests?: {
853
+ path?: unknown;
854
+ method?: unknown;
855
+ }[] | undefined;
856
+ } | undefined;
857
+ create?: {
858
+ apiRequests?: {
859
+ path?: unknown;
860
+ method?: unknown;
861
+ }[] | undefined;
862
+ fields?: string[] | undefined;
863
+ requiredFields?: string[] | undefined;
864
+ excludedFields?: string[] | undefined;
865
+ } | undefined;
866
+ update?: {
867
+ apiRequests?: {
868
+ path?: unknown;
869
+ method?: unknown;
870
+ }[] | undefined;
871
+ fields?: string[] | undefined;
872
+ excludedFields?: string[] | undefined;
873
+ } | undefined;
874
+ events?: z.objectOutputType<{
875
+ created: z.ZodOptional<z.ZodObject<{
876
+ type: z.ZodEnum<["push", "pull"]>;
877
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
878
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ type: "push" | "pull";
881
+ isFullScan?: boolean | undefined;
882
+ isIdOnly?: boolean | undefined;
883
+ }, {
884
+ type: "push" | "pull";
885
+ isFullScan?: boolean | undefined;
886
+ isIdOnly?: boolean | undefined;
887
+ }>>;
888
+ updated: z.ZodOptional<z.ZodObject<{
889
+ type: z.ZodEnum<["push", "pull"]>;
890
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
891
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
892
+ }, "strip", z.ZodTypeAny, {
893
+ type: "push" | "pull";
894
+ isFullScan?: boolean | undefined;
895
+ isIdOnly?: boolean | undefined;
896
+ }, {
897
+ type: "push" | "pull";
898
+ isFullScan?: boolean | undefined;
899
+ isIdOnly?: boolean | undefined;
900
+ }>>;
901
+ deleted: z.ZodOptional<z.ZodObject<{
902
+ type: z.ZodEnum<["push", "pull"]>;
903
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
904
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ type: "push" | "pull";
907
+ isFullScan?: boolean | undefined;
908
+ isIdOnly?: boolean | undefined;
909
+ }, {
910
+ type: "push" | "pull";
911
+ isFullScan?: boolean | undefined;
912
+ isIdOnly?: boolean | undefined;
913
+ }>>;
914
+ all: z.ZodOptional<z.ZodObject<{
915
+ type: z.ZodEnum<["push", "pull"]>;
916
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
917
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ type: "push" | "pull";
920
+ isFullScan?: boolean | undefined;
921
+ isIdOnly?: boolean | undefined;
922
+ }, {
923
+ type: "push" | "pull";
924
+ isFullScan?: boolean | undefined;
925
+ isIdOnly?: boolean | undefined;
926
+ }>>;
927
+ }, z.ZodObject<{
928
+ type: z.ZodEnum<["push", "pull"]>;
929
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
930
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
931
+ }, "strip", z.ZodTypeAny, {
932
+ type: "push" | "pull";
933
+ isFullScan?: boolean | undefined;
934
+ isIdOnly?: boolean | undefined;
935
+ }, {
936
+ type: "push" | "pull";
937
+ isFullScan?: boolean | undefined;
938
+ isIdOnly?: boolean | undefined;
939
+ }>, "strip"> | undefined;
940
+ customFields?: boolean | undefined;
941
+ udm?: Record<string, {
942
+ fields?: string[] | undefined;
943
+ extract?: Record<string, any> | undefined;
944
+ parse?: Record<string, any> | undefined;
945
+ }> | undefined;
946
+ }, {
947
+ type: "collection";
948
+ name: string;
949
+ key?: string | undefined;
950
+ find?: {
951
+ apiRequests?: {
952
+ path?: unknown;
953
+ method?: unknown;
954
+ }[] | undefined;
955
+ queryFields?: string[] | undefined;
956
+ } | undefined;
957
+ match?: {
958
+ apiRequests?: {
959
+ path?: unknown;
960
+ method?: unknown;
961
+ }[] | undefined;
962
+ fields?: string[] | undefined;
963
+ } | undefined;
964
+ search?: {
965
+ apiRequests?: {
966
+ path?: unknown;
967
+ method?: unknown;
968
+ }[] | undefined;
969
+ } | undefined;
970
+ delete?: {
971
+ apiRequests?: {
972
+ path?: unknown;
973
+ method?: unknown;
974
+ }[] | undefined;
975
+ } | undefined;
976
+ parametersSchema?: any;
977
+ fieldsSchema?: any;
978
+ list?: {
979
+ apiRequests?: {
980
+ path?: unknown;
981
+ method?: unknown;
982
+ }[] | undefined;
983
+ filterFields?: string[] | undefined;
984
+ } | undefined;
985
+ findById?: {
986
+ apiRequests?: {
987
+ path?: unknown;
988
+ method?: unknown;
989
+ }[] | undefined;
990
+ } | undefined;
991
+ create?: {
992
+ apiRequests?: {
993
+ path?: unknown;
994
+ method?: unknown;
995
+ }[] | undefined;
996
+ fields?: string[] | undefined;
997
+ requiredFields?: string[] | undefined;
998
+ excludedFields?: string[] | undefined;
999
+ } | undefined;
1000
+ update?: {
1001
+ apiRequests?: {
1002
+ path?: unknown;
1003
+ method?: unknown;
1004
+ }[] | undefined;
1005
+ fields?: string[] | undefined;
1006
+ excludedFields?: string[] | undefined;
1007
+ } | undefined;
1008
+ events?: z.objectInputType<{
1009
+ created: z.ZodOptional<z.ZodObject<{
1010
+ type: z.ZodEnum<["push", "pull"]>;
1011
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1012
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ type: "push" | "pull";
1015
+ isFullScan?: boolean | undefined;
1016
+ isIdOnly?: boolean | undefined;
1017
+ }, {
1018
+ type: "push" | "pull";
1019
+ isFullScan?: boolean | undefined;
1020
+ isIdOnly?: boolean | undefined;
1021
+ }>>;
1022
+ updated: z.ZodOptional<z.ZodObject<{
1023
+ type: z.ZodEnum<["push", "pull"]>;
1024
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1025
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ type: "push" | "pull";
1028
+ isFullScan?: boolean | undefined;
1029
+ isIdOnly?: boolean | undefined;
1030
+ }, {
1031
+ type: "push" | "pull";
1032
+ isFullScan?: boolean | undefined;
1033
+ isIdOnly?: boolean | undefined;
1034
+ }>>;
1035
+ deleted: z.ZodOptional<z.ZodObject<{
1036
+ type: z.ZodEnum<["push", "pull"]>;
1037
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1038
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1039
+ }, "strip", z.ZodTypeAny, {
1040
+ type: "push" | "pull";
1041
+ isFullScan?: boolean | undefined;
1042
+ isIdOnly?: boolean | undefined;
1043
+ }, {
1044
+ type: "push" | "pull";
1045
+ isFullScan?: boolean | undefined;
1046
+ isIdOnly?: boolean | undefined;
1047
+ }>>;
1048
+ all: z.ZodOptional<z.ZodObject<{
1049
+ type: z.ZodEnum<["push", "pull"]>;
1050
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1051
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ type: "push" | "pull";
1054
+ isFullScan?: boolean | undefined;
1055
+ isIdOnly?: boolean | undefined;
1056
+ }, {
1057
+ type: "push" | "pull";
1058
+ isFullScan?: boolean | undefined;
1059
+ isIdOnly?: boolean | undefined;
1060
+ }>>;
1061
+ }, z.ZodObject<{
1062
+ type: z.ZodEnum<["push", "pull"]>;
1063
+ isFullScan: z.ZodOptional<z.ZodBoolean>;
1064
+ isIdOnly: z.ZodOptional<z.ZodBoolean>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ type: "push" | "pull";
1067
+ isFullScan?: boolean | undefined;
1068
+ isIdOnly?: boolean | undefined;
1069
+ }, {
1070
+ type: "push" | "pull";
1071
+ isFullScan?: boolean | undefined;
1072
+ isIdOnly?: boolean | undefined;
1073
+ }>, "strip"> | undefined;
1074
+ customFields?: boolean | undefined;
1075
+ udm?: Record<string, {
1076
+ fields?: string[] | undefined;
1077
+ extract?: Record<string, any> | undefined;
1078
+ parse?: Record<string, any> | undefined;
1079
+ }> | undefined;
1080
+ }>;
1081
+ type DataCollectionSpec = z.infer<typeof DataCollectionSpecSchema>;
436
1082
  interface DataLocationPointer {
437
1083
  key: string;
438
1084
  parameters?: Record<string, any>;
439
- type?: DataLocationType;
440
- }
441
- interface DataLocation {
442
- key?: string;
443
- parameters?: any;
444
- path?: string;
445
- name?: string;
446
- type?: DataLocationType;
447
- isDefault?: boolean;
448
- read?: boolean;
449
- write?: boolean;
450
1085
  }
451
- interface DataLocationSpecBase {
452
- type: DataLocationType;
453
- key?: string;
1086
+ interface DataCollectionListItem {
1087
+ key: string;
454
1088
  name: string;
455
- parametersSchema?: DataSchema;
456
- }
457
- interface DataCollectionSpec extends DataLocationSpecBase {
458
- fieldsSchema?: DataSchema;
459
- list?: DataCollectionListSpec;
460
- search?: DataCollectionSearchSpec;
461
- match?: DataCollectionMatchSpec;
462
- findById?: DataCollectionFindByIdSpec;
463
- create?: DataCollectionCreateSpec;
464
- update?: DataCollectionUpdateSpec;
465
- delete?: DataCollectionDeleteSpec;
466
- events?: DataCollectionEventsSpec;
467
- customFields?: boolean;
468
- udm?: DataCollectionUdmsSpec;
469
- find?: DataCollectionFindSpec;
470
- }
471
- interface ApiRequestSpec {
472
- path: any;
473
- method: any;
474
- }
475
- interface DataDirectorySpec extends DataLocationSpecBase {
476
- locations?: DataLocation[];
477
- }
478
- interface DataCollectionMethodSpec {
479
- apiRequests?: ApiRequestSpec[];
480
- }
481
- interface DataCollectionFindSpec extends DataCollectionMethodSpec {
482
- queryFields?: string[];
483
- }
484
- interface DataCollectionMatchSpec extends DataCollectionMethodSpec {
485
- fields?: string[];
486
- }
487
- interface DataCollectionListSpec extends DataCollectionMethodSpec {
488
- filterFields?: string[];
489
- }
490
- interface DataCollectionSearchSpec extends DataCollectionMethodSpec {
491
- }
492
- interface DataCollectionFindByIdSpec extends DataCollectionMethodSpec {
493
- }
494
- interface DataCollectionCreateSpec extends DataCollectionMethodSpec {
495
- fields?: string[];
496
- requiredFields?: string[];
497
- excludedFields?: string[];
498
- }
499
- interface DataCollectionUpdateSpec extends DataCollectionMethodSpec {
500
- fields?: string[];
501
- excludedFields?: string[];
502
- }
503
- interface DataCollectionDeleteSpec extends DataCollectionMethodSpec {
1089
+ type: 'collection';
1090
+ isHidden?: boolean;
504
1091
  }
505
- type DataCollectionUdmSpec = {
506
- fields?: string[];
507
- extract?: Record<string, any>;
508
- parse?: Record<string, any>;
509
- };
510
- type DataCollectionUdmsSpec = Record<string, DataCollectionUdmSpec>;
511
- type DataCollectionEventTypeSpec = {
512
- type: 'push' | 'pull';
513
- isFullScan?: boolean;
514
- isIdOnly?: boolean;
515
- };
516
- type DataCollectionEventsSpec = {
517
- [value in DataCollectionEventType]: DataCollectionEventTypeSpec;
518
- } & {
519
- all?: DataCollectionEventTypeSpec;
520
- };
521
1092
  interface DataCollectionMethodRequest {
522
1093
  parameters?: Record<string, any>;
523
1094
  }
@@ -582,59 +1153,6 @@ interface DataCollectionDeleteRequest extends DataCollectionMethodRequest {
582
1153
  }
583
1154
  interface DataCollectionDeleteResponse {
584
1155
  }
585
- interface DataDirectoryListRequest {
586
- cursor?: string;
587
- }
588
- interface DataDirectoryListResponse {
589
- locations: DataLocation[];
590
- cursor?: string;
591
- }
592
-
593
- declare enum UDM {
594
- ACTIVITIES = "activities",
595
- BILLS = "bills",
596
- CAMPAIGN_MEMBERS = "campaign-members",
597
- CAMPAIGNS = "campaigns",
598
- COMPANIES = "companies",
599
- CONTACTS = "contacts",
600
- CONTACT_LISTS = "contact-lists",
601
- CREDIT_NOTES = "credit-notes",
602
- CUSTOMERS = "customers",
603
- DEAL_PRODUCTS = "deal-products",
604
- DEALS = "deals",
605
- DEAL_STAGES = "deal-stages",
606
- DOCUMENTS = "documents",
607
- DRIVES = "drives",
608
- DRIVE_ITEMS = "drive-items",
609
- EEOCS = "eeocs",
610
- EMAILS = "emails",
611
- EMPLOYEES = "employees",
612
- FILES = "files",
613
- FOLDERS = "folders",
614
- INVOICES = "invoices",
615
- JOB_APPLICATIONS = "job-applications",
616
- JOB_CANDIDATES = "job-candidates",
617
- JOB_INTERVIEWS = "job-interviews",
618
- JOB_OFFERS = "job-offers",
619
- JOBS = "jobs",
620
- JOURNAL_ENTRIES = "journal-entries",
621
- LEADS = "leads",
622
- LEDGER_ACCOUNTS = "ledger-accounts",
623
- MEETINGS = "meetings",
624
- MESSAGES = "messages",
625
- NOTES = "notes",
626
- ORDERS = "orders",
627
- PAYMENTS = "payments",
628
- PAYROLLS = "payrolls",
629
- PRODUCTS = "products",
630
- PROJECTS = "projects",
631
- SUPPLIERS = "suppliers",
632
- TASKS = "tasks",
633
- TAX_RATES = "tax-rates",
634
- USERS = "users",
635
- TIMEOFF_BALANCES = "timeoff-balances",
636
- TIMEOFF_REQUESTS = "timeoff-requests"
637
- }
638
1156
 
639
1157
  interface ConnectorUdmSpec {
640
1158
  defaultCollection?: DataLocationPointer;
@@ -652,15 +1170,6 @@ interface ConnectorUiSpec {
652
1170
  helpUri?: string;
653
1171
  test?: boolean;
654
1172
  }
655
- type ConnectorDataUdmSpec = {
656
- rootLocation: DataLocation;
657
- };
658
- type ConnectorDataSpec = {
659
- rootLocation?: DataLocation;
660
- locations?: DataLocationSpec[];
661
- udm?: Partial<Record<UDM, ConnectorDataUdmSpec>>;
662
- root?: DataLocation;
663
- } & Partial<Record<UDM, DataLocation>>;
664
1173
  type ConnectorApiType = 'openapi' | 'graphql';
665
1174
  interface ConnectorSpec {
666
1175
  key?: string;
@@ -674,7 +1183,6 @@ interface ConnectorSpec {
674
1183
  ui?: ConnectorUiSpec;
675
1184
  auth?: ConnectorAuth;
676
1185
  parametersSchema?: DataSchema;
677
- data?: ConnectorDataSpec;
678
1186
  udms?: string[];
679
1187
  udm?: Record<string, ConnectorUdmSpec>;
680
1188
  operations?: ConnectorOperationHandler[];
@@ -683,6 +1191,7 @@ interface ConnectorSpec {
683
1191
  appUuid?: string;
684
1192
  knowledgeBaseUuid?: string;
685
1193
  workspaceId?: string;
1194
+ data?: any;
686
1195
  }
687
1196
  type MinimalConnector = {
688
1197
  id: string;
@@ -691,7 +1200,7 @@ type MinimalConnector = {
691
1200
  logoUri: string;
692
1201
  };
693
1202
 
694
- declare const CONNECTOR_AUTH_TYPES: readonly ["integration-app-token", "oauth2", "oauth1", "client-credentials", "proxy"];
1203
+ declare const CONNECTOR_AUTH_TYPES: readonly ["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"];
695
1204
  type ConnectorAuthType = (typeof CONNECTOR_AUTH_TYPES)[number];
696
1205
  type ConnectorAuthSpec = {
697
1206
  title?: string;
@@ -735,9 +1244,12 @@ interface ConnectorAuthProxy extends ConnectorAuthHandlerBase {
735
1244
  interface ConnectorAuthIntegrationAppToken extends ConnectorAuthHandlerBase {
736
1245
  type: 'integration-app-token';
737
1246
  }
738
- type ConnectorAuth = (ConnectorAuthOAuth2 | ConnectorAuthOAuth1 | ConnectorAuthClientCredentials | ConnectorAuthIntegrationAppToken | ConnectorAuthProxy) & {
1247
+ interface ConnectorAuthMembraneToken extends ConnectorAuthHandlerBase {
1248
+ type: 'membrane-token';
1249
+ }
1250
+ type ConnectorAuth = (ConnectorAuthOAuth2 | ConnectorAuthOAuth1 | ConnectorAuthClientCredentials | ConnectorAuthIntegrationAppToken | ConnectorAuthMembraneToken | ConnectorAuthProxy) & {
739
1251
  options?: {
740
- [key: string]: ConnectorAuthOAuth2 | ConnectorAuthOAuth1 | ConnectorAuthClientCredentials | ConnectorAuthIntegrationAppToken | ConnectorAuthProxy;
1252
+ [key: string]: ConnectorAuthOAuth2 | ConnectorAuthOAuth1 | ConnectorAuthClientCredentials | ConnectorAuthIntegrationAppToken | ConnectorAuthMembraneToken | ConnectorAuthProxy;
741
1253
  };
742
1254
  };
743
1255
 
@@ -797,6 +1309,7 @@ interface FindIntegrationsQuery extends PaginationQuery, SearchQuery {
797
1309
  interface OpenNewConnectionOptions extends OpenConfigurationOptions {
798
1310
  allowMultipleConnections?: boolean;
799
1311
  name?: string;
1312
+ connectorParameters?: any;
800
1313
  }
801
1314
 
802
1315
  type CreateCustomerRequest = {
@@ -1120,10 +1633,11 @@ declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateInt
1120
1633
  setup(): Promise<Integration>;
1121
1634
  getConnectorSpec(): Promise<ConnectionSpec>;
1122
1635
  open({ onClose }?: OpenIntegrationUIIntegrationConfigurationOptions): Promise<void>;
1123
- openNewConnection({ allowMultipleConnections, name }?: OpenNewConnectionOptions): Promise<Connection>;
1124
- connect({ name, parameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, }?: {
1636
+ openNewConnection({ allowMultipleConnections, name, connectorParameters, }?: OpenNewConnectionOptions): Promise<Connection>;
1637
+ connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, }?: {
1125
1638
  name?: string;
1126
1639
  parameters?: any;
1640
+ connectorParameters?: any;
1127
1641
  authOptionKey?: string;
1128
1642
  allowMultipleConnections?: boolean;
1129
1643
  } & ({
@@ -1140,10 +1654,8 @@ declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateInt
1140
1654
  disconnect(): Promise<void>;
1141
1655
  getOperations(): Promise<OperationListItem[]>;
1142
1656
  getOperation(key: string): Promise<OperationSpec>;
1143
- getDataCollections(): Promise<DataLocationListItem[]>;
1144
- getDataCollection(key: string): Promise<DataLocationSpec>;
1145
- getDataLocations(): Promise<DataLocationListItem[]>;
1146
- getDataLocation(key: string): Promise<DataLocationSpec>;
1657
+ getDataCollections(): Promise<DataCollectionListItem[]>;
1658
+ getDataCollection(key: string): Promise<DataCollectionSpec>;
1147
1659
  }
1148
1660
 
1149
1661
  interface OpenFlowRunEditorOptions extends OpenConfigurationOptions {
@@ -1270,12 +1782,12 @@ declare const createFlowInstanceSchema: z.ZodObject<{
1270
1782
  name: z.ZodOptional<z.ZodString>;
1271
1783
  }, "strip", z.ZodTypeAny, {
1272
1784
  key?: string | undefined;
1273
- name?: string | undefined;
1274
1785
  filter?: any;
1786
+ name?: string | undefined;
1275
1787
  }, {
1276
1788
  key?: string | undefined;
1277
- name?: string | undefined;
1278
1789
  filter?: any;
1790
+ name?: string | undefined;
1279
1791
  }>, "many">>;
1280
1792
  isCustomized: z.ZodOptional<z.ZodBoolean>;
1281
1793
  }, "strip", z.ZodTypeAny, {
@@ -1288,8 +1800,8 @@ declare const createFlowInstanceSchema: z.ZodObject<{
1288
1800
  ui?: any;
1289
1801
  links?: {
1290
1802
  key?: string | undefined;
1291
- name?: string | undefined;
1292
1803
  filter?: any;
1804
+ name?: string | undefined;
1293
1805
  }[] | undefined;
1294
1806
  isCustomized?: boolean | undefined;
1295
1807
  }, {
@@ -1302,8 +1814,8 @@ declare const createFlowInstanceSchema: z.ZodObject<{
1302
1814
  ui?: any;
1303
1815
  links?: {
1304
1816
  key?: string | undefined;
1305
- name?: string | undefined;
1306
1817
  filter?: any;
1818
+ name?: string | undefined;
1307
1819
  }[] | undefined;
1308
1820
  isCustomized?: boolean | undefined;
1309
1821
  }>>>;
@@ -1322,8 +1834,8 @@ declare const createFlowInstanceSchema: z.ZodObject<{
1322
1834
  name?: string | undefined;
1323
1835
  userId?: string | undefined;
1324
1836
  integrationId?: string | undefined;
1325
- connectionId?: string | undefined;
1326
1837
  parameters?: any;
1838
+ connectionId?: string | undefined;
1327
1839
  flowId?: string | undefined;
1328
1840
  instanceKey?: string | undefined;
1329
1841
  nodes?: Record<string, {
@@ -1336,8 +1848,8 @@ declare const createFlowInstanceSchema: z.ZodObject<{
1336
1848
  ui?: any;
1337
1849
  links?: {
1338
1850
  key?: string | undefined;
1339
- name?: string | undefined;
1340
1851
  filter?: any;
1852
+ name?: string | undefined;
1341
1853
  }[] | undefined;
1342
1854
  isCustomized?: boolean | undefined;
1343
1855
  }> | undefined;
@@ -1350,8 +1862,8 @@ declare const createFlowInstanceSchema: z.ZodObject<{
1350
1862
  name?: string | undefined;
1351
1863
  userId?: string | undefined;
1352
1864
  integrationId?: string | undefined;
1353
- connectionId?: string | undefined;
1354
1865
  parameters?: any;
1866
+ connectionId?: string | undefined;
1355
1867
  flowId?: string | undefined;
1356
1868
  instanceKey?: string | undefined;
1357
1869
  nodes?: Record<string, {
@@ -1364,8 +1876,8 @@ declare const createFlowInstanceSchema: z.ZodObject<{
1364
1876
  ui?: any;
1365
1877
  links?: {
1366
1878
  key?: string | undefined;
1367
- name?: string | undefined;
1368
1879
  filter?: any;
1880
+ name?: string | undefined;
1369
1881
  }[] | undefined;
1370
1882
  isCustomized?: boolean | undefined;
1371
1883
  }> | undefined;
@@ -1391,12 +1903,12 @@ declare const updateFlowInstanceSchema: z.ZodObject<{
1391
1903
  name: z.ZodOptional<z.ZodString>;
1392
1904
  }, "strip", z.ZodTypeAny, {
1393
1905
  key?: string | undefined;
1394
- name?: string | undefined;
1395
1906
  filter?: any;
1907
+ name?: string | undefined;
1396
1908
  }, {
1397
1909
  key?: string | undefined;
1398
- name?: string | undefined;
1399
1910
  filter?: any;
1911
+ name?: string | undefined;
1400
1912
  }>, "many">>;
1401
1913
  concurrency: z.ZodOptional<z.ZodNumber>;
1402
1914
  isCustomized: z.ZodOptional<z.ZodBoolean>;
@@ -1409,8 +1921,8 @@ declare const updateFlowInstanceSchema: z.ZodObject<{
1409
1921
  onError?: "stop" | "continue" | undefined;
1410
1922
  links?: {
1411
1923
  key?: string | undefined;
1412
- name?: string | undefined;
1413
1924
  filter?: any;
1925
+ name?: string | undefined;
1414
1926
  }[] | undefined;
1415
1927
  isCustomized?: boolean | undefined;
1416
1928
  }, {
@@ -1422,8 +1934,8 @@ declare const updateFlowInstanceSchema: z.ZodObject<{
1422
1934
  onError?: "stop" | "continue" | undefined;
1423
1935
  links?: {
1424
1936
  key?: string | undefined;
1425
- name?: string | undefined;
1426
1937
  filter?: any;
1938
+ name?: string | undefined;
1427
1939
  }[] | undefined;
1428
1940
  isCustomized?: boolean | undefined;
1429
1941
  }>>>;
@@ -1450,8 +1962,8 @@ declare const updateFlowInstanceSchema: z.ZodObject<{
1450
1962
  onError?: "stop" | "continue" | undefined;
1451
1963
  links?: {
1452
1964
  key?: string | undefined;
1453
- name?: string | undefined;
1454
1965
  filter?: any;
1966
+ name?: string | undefined;
1455
1967
  }[] | undefined;
1456
1968
  isCustomized?: boolean | undefined;
1457
1969
  }> | undefined;
@@ -1473,8 +1985,8 @@ declare const updateFlowInstanceSchema: z.ZodObject<{
1473
1985
  onError?: "stop" | "continue" | undefined;
1474
1986
  links?: {
1475
1987
  key?: string | undefined;
1476
- name?: string | undefined;
1477
1988
  filter?: any;
1989
+ name?: string | undefined;
1478
1990
  }[] | undefined;
1479
1991
  isCustomized?: boolean | undefined;
1480
1992
  }> | undefined;
@@ -1568,7 +2080,6 @@ interface Flow extends WorkspaceElement {
1568
2080
  revision: string;
1569
2081
  customized?: boolean;
1570
2082
  appliedToIntegrations?: AppliedToIntegrations<Flow>;
1571
- isDeployed?: boolean;
1572
2083
  }
1573
2084
  interface FlowInstance extends WorkspaceElement {
1574
2085
  userId: string;
@@ -1881,10 +2392,10 @@ declare class ConnectionAccessor {
1881
2392
  get proxy(): ConnectionProxy;
1882
2393
  operation(key: string): ConnectionOperationAccessor;
1883
2394
  dataCollection(key: string, parameters?: Record<string, any>): ConnectionDataCollectionAccessor;
1884
- dataDirectory(key: string, parameters?: Record<string, any>): ConnectionDataDirectoryAccessor;
1885
- reconnect({ parameters, authOptionKey, }?: {
2395
+ reconnect({ parameters, authOptionKey, connectorParameters, }?: {
1886
2396
  parameters?: any;
1887
2397
  authOptionKey?: string;
2398
+ connectorParameters?: any;
1888
2399
  }): Promise<Connection | undefined>;
1889
2400
  openReconnectUI({}?: OpenConfigurationOptions): Promise<void>;
1890
2401
  refreshCredentials(): Promise<void>;
@@ -1898,14 +2409,6 @@ declare class ConnectionOperationAccessor {
1898
2409
  get(): Promise<OperationSpec>;
1899
2410
  run(request?: OperationRunRequest): Promise<OperationRunResponse>;
1900
2411
  }
1901
- declare class ConnectionDataDirectoryAccessor {
1902
- client: IntegrationAppApiClient;
1903
- connectionAccessor: ConnectionAccessor;
1904
- key: string;
1905
- parameters: Record<string, any>;
1906
- constructor(client: IntegrationAppApiClient, connectionAccessor: ConnectionAccessor, key: string, parameters: Record<string, any>);
1907
- list(request?: DataDirectoryListRequest): Promise<DataDirectoryListResponse>;
1908
- }
1909
2412
  declare class ConnectionDataCollectionAccessor {
1910
2413
  client: IntegrationAppApiClient;
1911
2414
  connectionAccessor: ConnectionAccessor;
@@ -1984,7 +2487,6 @@ interface Action extends ElementTemplateFields {
1984
2487
  outputSchema?: DataSchema;
1985
2488
  appliedToIntegrations?: AppliedToIntegrations<Action>;
1986
2489
  dependencies?: WorkspaceElementDependency[];
1987
- isDeployed?: boolean;
1988
2490
  }
1989
2491
  interface ActionInstance extends ElementInstanceFields {
1990
2492
  type: ActionType;