@membranehq/sdk 0.5.0 → 0.5.2

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 (69) hide show
  1. package/dist/bundle.d.ts +10513 -4612
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +22 -15
  5. package/dist/dts/accessors/integrations-accessors.d.ts +22 -15
  6. package/dist/dts/data-schema/index.d.ts +0 -1
  7. package/dist/dts/entity-repository.d.ts +7 -6
  8. package/dist/dts/http-requests.d.ts +2 -2
  9. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +435 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +225 -114
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  13. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  14. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  15. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  16. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +505 -135
  18. package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
  19. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +447 -12
  20. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  21. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1496 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +189 -103
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +602 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +608 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +465 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +75 -41
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2570 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +199 -93
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1436 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +590 -295
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +176 -58
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +77 -36
  34. package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
  35. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +31 -15
  36. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
  37. package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
  38. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
  39. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
  40. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
  41. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
  42. package/dist/dts/workspace-elements/base/connections/types.d.ts +21 -21
  43. package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
  44. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
  45. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
  46. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
  47. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
  48. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
  49. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
  50. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
  51. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
  52. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +24 -9
  54. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
  55. package/dist/dts/workspace-elements/base/flows/types.d.ts +20 -6
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +187 -104
  57. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
  58. package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
  59. package/dist/dts/workspace-elements/types.d.ts +25 -3
  60. package/dist/dts/workspaces/types.d.ts +5 -4
  61. package/dist/index.d.ts +20345 -9526
  62. package/dist/index.js +268 -115
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +20345 -9526
  65. package/dist/index.module.mjs +234 -107
  66. package/dist/index.module.mjs.map +1 -1
  67. package/package.json +3 -2
  68. package/dist/dts/data-schema/schemas.d.ts +0 -4
  69. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -8,23 +8,29 @@ export declare const BaseCustomer: z.ZodObject<{
8
8
  lastActiveAt: z.ZodOptional<z.ZodString>;
9
9
  isTest: z.ZodOptional<z.ZodBoolean>;
10
10
  isBillable: z.ZodOptional<z.ZodBoolean>;
11
+ createdAt: z.ZodOptional<z.ZodString>;
12
+ archivedAt: z.ZodOptional<z.ZodString>;
11
13
  }, "strip", z.ZodTypeAny, {
12
14
  id: string;
13
15
  name: string;
14
16
  internalId: string;
17
+ createdAt?: string | undefined;
18
+ archivedAt?: string | undefined;
15
19
  credentials?: any;
16
20
  fields?: Record<string, any> | undefined;
17
- lastActiveAt?: string | undefined;
18
21
  isTest?: boolean | undefined;
22
+ lastActiveAt?: string | undefined;
19
23
  isBillable?: boolean | undefined;
20
24
  }, {
21
25
  id: string;
22
26
  name: string;
23
27
  internalId: string;
28
+ createdAt?: string | undefined;
29
+ archivedAt?: string | undefined;
24
30
  credentials?: any;
25
31
  fields?: Record<string, any> | undefined;
26
- lastActiveAt?: string | undefined;
27
32
  isTest?: boolean | undefined;
33
+ lastActiveAt?: string | undefined;
28
34
  isBillable?: boolean | undefined;
29
35
  }>;
30
36
  export type BaseCustomer = z.infer<typeof BaseCustomer>;
@@ -945,6 +945,15 @@ export declare const DataCollectionSpec: z.ZodObject<{
945
945
  }[] | undefined;
946
946
  filterFields?: string[] | undefined;
947
947
  } | undefined;
948
+ create?: {
949
+ fields?: string[] | undefined;
950
+ apiRequests?: {
951
+ method?: unknown;
952
+ path?: unknown;
953
+ }[] | undefined;
954
+ requiredFields?: string[] | undefined;
955
+ excludedFields?: string[] | undefined;
956
+ } | undefined;
948
957
  udm?: Record<string, {
949
958
  fields?: string[] | undefined;
950
959
  extract?: Record<string, any> | undefined;
@@ -1024,15 +1033,6 @@ export declare const DataCollectionSpec: z.ZodObject<{
1024
1033
  path?: unknown;
1025
1034
  }[] | undefined;
1026
1035
  } | undefined;
1027
- create?: {
1028
- fields?: string[] | undefined;
1029
- apiRequests?: {
1030
- method?: unknown;
1031
- path?: unknown;
1032
- }[] | undefined;
1033
- requiredFields?: string[] | undefined;
1034
- excludedFields?: string[] | undefined;
1035
- } | undefined;
1036
1036
  update?: {
1037
1037
  fields?: string[] | undefined;
1038
1038
  apiRequests?: {
@@ -1079,6 +1079,15 @@ export declare const DataCollectionSpec: z.ZodObject<{
1079
1079
  }[] | undefined;
1080
1080
  filterFields?: string[] | undefined;
1081
1081
  } | undefined;
1082
+ create?: {
1083
+ fields?: string[] | undefined;
1084
+ apiRequests?: {
1085
+ method?: unknown;
1086
+ path?: unknown;
1087
+ }[] | undefined;
1088
+ requiredFields?: string[] | undefined;
1089
+ excludedFields?: string[] | undefined;
1090
+ } | undefined;
1082
1091
  udm?: Record<string, {
1083
1092
  fields?: string[] | undefined;
1084
1093
  extract?: Record<string, any> | undefined;
@@ -1158,15 +1167,6 @@ export declare const DataCollectionSpec: z.ZodObject<{
1158
1167
  path?: unknown;
1159
1168
  }[] | undefined;
1160
1169
  } | undefined;
1161
- create?: {
1162
- fields?: string[] | undefined;
1163
- apiRequests?: {
1164
- method?: unknown;
1165
- path?: unknown;
1166
- }[] | undefined;
1167
- requiredFields?: string[] | undefined;
1168
- excludedFields?: string[] | undefined;
1169
- } | undefined;
1170
1170
  update?: {
1171
1171
  fields?: string[] | undefined;
1172
1172
  apiRequests?: {
@@ -3,10 +3,15 @@ import { DataLinkDirection } from '../data-link-tables';
3
3
  export declare const BaseDataLinkTableInstance: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  name: z.ZodString;
6
- } & {
7
- key: z.ZodString;
6
+ key: z.ZodOptional<z.ZodString>;
7
+ uuid: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
8
9
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
9
10
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
11
+ revision: z.ZodOptional<z.ZodString>;
12
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
13
+ createdAt: z.ZodOptional<z.ZodString>;
14
+ updatedAt: z.ZodOptional<z.ZodString>;
10
15
  } & {
11
16
  dataLinkTableId: z.ZodOptional<z.ZodString>;
12
17
  connectionId: z.ZodOptional<z.ZodString>;
@@ -15,28 +20,40 @@ export declare const BaseDataLinkTableInstance: z.ZodObject<{
15
20
  userId: z.ZodString;
16
21
  archivedAt: z.ZodOptional<z.ZodString>;
17
22
  }, "strip", z.ZodTypeAny, {
18
- key: string;
19
23
  id: string;
20
24
  name: string;
21
25
  userId: string;
22
26
  integrationId: string;
27
+ key?: string | undefined;
28
+ uuid?: string | undefined;
29
+ description?: string | undefined;
23
30
  state?: import("../../types").WorkspaceElementState | undefined;
24
31
  errors?: any[] | undefined;
32
+ revision?: string | undefined;
33
+ isDeactivated?: boolean | undefined;
34
+ createdAt?: string | undefined;
35
+ updatedAt?: string | undefined;
36
+ archivedAt?: string | undefined;
25
37
  instanceKey?: string | undefined;
26
38
  connectionId?: string | undefined;
27
- archivedAt?: string | undefined;
28
39
  dataLinkTableId?: string | undefined;
29
40
  }, {
30
- key: string;
31
41
  id: string;
32
42
  name: string;
33
43
  userId: string;
34
44
  integrationId: string;
45
+ key?: string | undefined;
46
+ uuid?: string | undefined;
47
+ description?: string | undefined;
35
48
  state?: import("../../types").WorkspaceElementState | undefined;
36
49
  errors?: any[] | undefined;
50
+ revision?: string | undefined;
51
+ isDeactivated?: boolean | undefined;
52
+ createdAt?: string | undefined;
53
+ updatedAt?: string | undefined;
54
+ archivedAt?: string | undefined;
37
55
  instanceKey?: string | undefined;
38
56
  connectionId?: string | undefined;
39
- archivedAt?: string | undefined;
40
57
  dataLinkTableId?: string | undefined;
41
58
  }>;
42
59
  export type BaseDataLinkTableInstance = z.infer<typeof BaseDataLinkTableInstance>;
@@ -7,25 +7,42 @@ export declare enum DataLinkDirection {
7
7
  export declare const BaseDataLinkTable: z.ZodObject<{
8
8
  id: z.ZodString;
9
9
  name: z.ZodString;
10
- } & {
11
- key: z.ZodString;
10
+ key: z.ZodOptional<z.ZodString>;
11
+ uuid: z.ZodOptional<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodString>;
12
13
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
13
14
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
15
+ revision: z.ZodOptional<z.ZodString>;
16
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
17
+ createdAt: z.ZodOptional<z.ZodString>;
18
+ updatedAt: z.ZodOptional<z.ZodString>;
14
19
  } & {
15
20
  archivedAt: z.ZodOptional<z.ZodString>;
16
21
  }, "strip", z.ZodTypeAny, {
17
- key: string;
18
22
  id: string;
19
23
  name: string;
24
+ key?: string | undefined;
25
+ uuid?: string | undefined;
26
+ description?: string | undefined;
20
27
  state?: import("../../types").WorkspaceElementState | undefined;
21
28
  errors?: any[] | undefined;
29
+ revision?: string | undefined;
30
+ isDeactivated?: boolean | undefined;
31
+ createdAt?: string | undefined;
32
+ updatedAt?: string | undefined;
22
33
  archivedAt?: string | undefined;
23
34
  }, {
24
- key: string;
25
35
  id: string;
26
36
  name: string;
37
+ key?: string | undefined;
38
+ uuid?: string | undefined;
39
+ description?: string | undefined;
27
40
  state?: import("../../types").WorkspaceElementState | undefined;
28
41
  errors?: any[] | undefined;
42
+ revision?: string | undefined;
43
+ isDeactivated?: boolean | undefined;
44
+ createdAt?: string | undefined;
45
+ updatedAt?: string | undefined;
29
46
  archivedAt?: string | undefined;
30
47
  }>;
31
48
  export type BaseDataLinkTable = z.infer<typeof BaseDataLinkTable>;
@@ -2,8 +2,14 @@ import { z } from 'zod';
2
2
  export declare const BaseDataSourceInstance: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
- key: z.ZodString;
5
+ key: z.ZodOptional<z.ZodString>;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
6
8
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
9
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
10
+ createdAt: z.ZodOptional<z.ZodString>;
11
+ updatedAt: z.ZodOptional<z.ZodString>;
12
+ archivedAt: z.ZodOptional<z.ZodString>;
7
13
  } & {
8
14
  userId: z.ZodString;
9
15
  revision: z.ZodString;
@@ -476,6 +482,15 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
476
482
  }[] | undefined;
477
483
  filterFields?: string[] | undefined;
478
484
  } | undefined;
485
+ create?: {
486
+ fields?: string[] | undefined;
487
+ apiRequests?: {
488
+ method?: unknown;
489
+ path?: unknown;
490
+ }[] | undefined;
491
+ requiredFields?: string[] | undefined;
492
+ excludedFields?: string[] | undefined;
493
+ } | undefined;
479
494
  udm?: Record<string, {
480
495
  fields?: string[] | undefined;
481
496
  extract?: Record<string, any> | undefined;
@@ -555,15 +570,6 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
555
570
  path?: unknown;
556
571
  }[] | undefined;
557
572
  } | undefined;
558
- create?: {
559
- fields?: string[] | undefined;
560
- apiRequests?: {
561
- method?: unknown;
562
- path?: unknown;
563
- }[] | undefined;
564
- requiredFields?: string[] | undefined;
565
- excludedFields?: string[] | undefined;
566
- } | undefined;
567
573
  update?: {
568
574
  fields?: string[] | undefined;
569
575
  apiRequests?: {
@@ -610,6 +616,15 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
610
616
  }[] | undefined;
611
617
  filterFields?: string[] | undefined;
612
618
  } | undefined;
619
+ create?: {
620
+ fields?: string[] | undefined;
621
+ apiRequests?: {
622
+ method?: unknown;
623
+ path?: unknown;
624
+ }[] | undefined;
625
+ requiredFields?: string[] | undefined;
626
+ excludedFields?: string[] | undefined;
627
+ } | undefined;
613
628
  udm?: Record<string, {
614
629
  fields?: string[] | undefined;
615
630
  extract?: Record<string, any> | undefined;
@@ -689,15 +704,6 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
689
704
  path?: unknown;
690
705
  }[] | undefined;
691
706
  } | undefined;
692
- create?: {
693
- fields?: string[] | undefined;
694
- apiRequests?: {
695
- method?: unknown;
696
- path?: unknown;
697
- }[] | undefined;
698
- requiredFields?: string[] | undefined;
699
- excludedFields?: string[] | undefined;
700
- } | undefined;
701
707
  update?: {
702
708
  fields?: string[] | undefined;
703
709
  apiRequests?: {
@@ -715,16 +721,22 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
715
721
  path: z.ZodOptional<z.ZodString>;
716
722
  defaultPath: z.ZodOptional<z.ZodString>;
717
723
  }, "strip", z.ZodTypeAny, {
718
- key: string;
719
724
  id: string;
720
725
  name: string;
726
+ revision: string;
721
727
  userId: string;
722
728
  connectionId: string;
723
729
  integrationId: string;
724
- revision: string;
730
+ key?: string | undefined;
725
731
  path?: string | undefined;
732
+ uuid?: string | undefined;
733
+ description?: string | undefined;
726
734
  state?: import("../../types").WorkspaceElementState | undefined;
727
735
  errors?: any[] | undefined;
736
+ isDeactivated?: boolean | undefined;
737
+ createdAt?: string | undefined;
738
+ updatedAt?: string | undefined;
739
+ archivedAt?: string | undefined;
728
740
  instanceKey?: string | undefined;
729
741
  udm?: string | undefined;
730
742
  collectionSpec?: {
@@ -764,6 +776,15 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
764
776
  }[] | undefined;
765
777
  filterFields?: string[] | undefined;
766
778
  } | undefined;
779
+ create?: {
780
+ fields?: string[] | undefined;
781
+ apiRequests?: {
782
+ method?: unknown;
783
+ path?: unknown;
784
+ }[] | undefined;
785
+ requiredFields?: string[] | undefined;
786
+ excludedFields?: string[] | undefined;
787
+ } | undefined;
767
788
  udm?: Record<string, {
768
789
  fields?: string[] | undefined;
769
790
  extract?: Record<string, any> | undefined;
@@ -843,15 +864,6 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
843
864
  path?: unknown;
844
865
  }[] | undefined;
845
866
  } | undefined;
846
- create?: {
847
- fields?: string[] | undefined;
848
- apiRequests?: {
849
- method?: unknown;
850
- path?: unknown;
851
- }[] | undefined;
852
- requiredFields?: string[] | undefined;
853
- excludedFields?: string[] | undefined;
854
- } | undefined;
855
867
  update?: {
856
868
  fields?: string[] | undefined;
857
869
  apiRequests?: {
@@ -874,16 +886,22 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
874
886
  fullSyncIntervalSeconds?: number | undefined;
875
887
  defaultPath?: string | undefined;
876
888
  }, {
877
- key: string;
878
889
  id: string;
879
890
  name: string;
891
+ revision: string;
880
892
  userId: string;
881
893
  connectionId: string;
882
894
  integrationId: string;
883
- revision: string;
895
+ key?: string | undefined;
884
896
  path?: string | undefined;
897
+ uuid?: string | undefined;
898
+ description?: string | undefined;
885
899
  state?: import("../../types").WorkspaceElementState | undefined;
886
900
  errors?: any[] | undefined;
901
+ isDeactivated?: boolean | undefined;
902
+ createdAt?: string | undefined;
903
+ updatedAt?: string | undefined;
904
+ archivedAt?: string | undefined;
887
905
  instanceKey?: string | undefined;
888
906
  udm?: string | undefined;
889
907
  collectionSpec?: {
@@ -923,6 +941,15 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
923
941
  }[] | undefined;
924
942
  filterFields?: string[] | undefined;
925
943
  } | undefined;
944
+ create?: {
945
+ fields?: string[] | undefined;
946
+ apiRequests?: {
947
+ method?: unknown;
948
+ path?: unknown;
949
+ }[] | undefined;
950
+ requiredFields?: string[] | undefined;
951
+ excludedFields?: string[] | undefined;
952
+ } | undefined;
926
953
  udm?: Record<string, {
927
954
  fields?: string[] | undefined;
928
955
  extract?: Record<string, any> | undefined;
@@ -1002,15 +1029,6 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
1002
1029
  path?: unknown;
1003
1030
  }[] | undefined;
1004
1031
  } | undefined;
1005
- create?: {
1006
- fields?: string[] | undefined;
1007
- apiRequests?: {
1008
- method?: unknown;
1009
- path?: unknown;
1010
- }[] | undefined;
1011
- requiredFields?: string[] | undefined;
1012
- excludedFields?: string[] | undefined;
1013
- } | undefined;
1014
1032
  update?: {
1015
1033
  fields?: string[] | undefined;
1016
1034
  apiRequests?: {
@@ -28,10 +28,12 @@ export type DataSourceUnitConfig = z.infer<typeof DataSourceUnitConfig>;
28
28
  export declare const BaseDataSource: z.ZodObject<{
29
29
  id: z.ZodString;
30
30
  name: z.ZodString;
31
- } & {
32
- key: z.ZodString;
31
+ key: z.ZodOptional<z.ZodString>;
32
+ uuid: z.ZodOptional<z.ZodString>;
33
+ description: z.ZodOptional<z.ZodString>;
33
34
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
34
35
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
36
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
35
37
  } & {
36
38
  revision: z.ZodString;
37
39
  publishedRevision: z.ZodOptional<z.ZodString>;
@@ -49,17 +51,20 @@ export declare const BaseDataSource: z.ZodObject<{
49
51
  customized: z.ZodOptional<z.ZodBoolean>;
50
52
  defaultPath: z.ZodOptional<z.ZodString>;
51
53
  }, "strip", z.ZodTypeAny, {
52
- key: string;
53
54
  id: string;
54
55
  name: string;
55
56
  revision: string;
57
+ key?: string | undefined;
58
+ uuid?: string | undefined;
59
+ description?: string | undefined;
56
60
  state?: import("../../types").WorkspaceElementState | undefined;
57
61
  errors?: any[] | undefined;
58
- integrationId?: string | undefined;
59
- udm?: string | undefined;
62
+ isDeactivated?: boolean | undefined;
60
63
  createdAt?: string | undefined;
61
64
  updatedAt?: string | undefined;
62
65
  archivedAt?: string | undefined;
66
+ integrationId?: string | undefined;
67
+ udm?: string | undefined;
63
68
  publishedRevision?: string | undefined;
64
69
  customized?: boolean | undefined;
65
70
  universalDataSourceId?: string | undefined;
@@ -70,17 +75,20 @@ export declare const BaseDataSource: z.ZodObject<{
70
75
  defaultPath?: string | undefined;
71
76
  universalDataSourceRevision?: string | undefined;
72
77
  }, {
73
- key: string;
74
78
  id: string;
75
79
  name: string;
76
80
  revision: string;
81
+ key?: string | undefined;
82
+ uuid?: string | undefined;
83
+ description?: string | undefined;
77
84
  state?: import("../../types").WorkspaceElementState | undefined;
78
85
  errors?: any[] | undefined;
79
- integrationId?: string | undefined;
80
- udm?: string | undefined;
86
+ isDeactivated?: boolean | undefined;
81
87
  createdAt?: string | undefined;
82
88
  updatedAt?: string | undefined;
83
89
  archivedAt?: string | undefined;
90
+ integrationId?: string | undefined;
91
+ udm?: string | undefined;
84
92
  publishedRevision?: string | undefined;
85
93
  customized?: boolean | undefined;
86
94
  universalDataSourceId?: string | undefined;
@@ -73,7 +73,6 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
73
73
  userId: z.ZodString;
74
74
  connectionId: z.ZodString;
75
75
  integrationId: z.ZodString;
76
- uuid: z.ZodString;
77
76
  config: z.ZodOptional<z.ZodObject<{
78
77
  type: z.ZodNativeEnum<typeof ExternalEventSubscriptionType>;
79
78
  dataSource: z.ZodOptional<z.ZodObject<{
@@ -149,13 +148,12 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
149
148
  userId: string;
150
149
  connectionId: string;
151
150
  integrationId: string;
152
- uuid: string;
153
151
  status?: ExternalEventSubscriptionStatus | undefined;
154
152
  error?: any;
155
153
  name?: string | undefined;
156
- nextRefreshTimestamp?: number | undefined;
157
154
  createdAt?: string | undefined;
158
155
  archivedAt?: string | undefined;
156
+ nextRefreshTimestamp?: number | undefined;
159
157
  config?: {
160
158
  type: ExternalEventSubscriptionType;
161
159
  eventKey?: string | undefined;
@@ -184,13 +182,12 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
184
182
  userId: string;
185
183
  connectionId: string;
186
184
  integrationId: string;
187
- uuid: string;
188
185
  status?: ExternalEventSubscriptionStatus | undefined;
189
186
  error?: any;
190
187
  name?: string | undefined;
191
- nextRefreshTimestamp?: number | undefined;
192
188
  createdAt?: string | undefined;
193
189
  archivedAt?: string | undefined;
190
+ nextRefreshTimestamp?: number | undefined;
194
191
  config?: {
195
192
  type: ExternalEventSubscriptionType;
196
193
  eventKey?: string | undefined;
@@ -5,8 +5,14 @@ import { FieldMappingDirection } from '../field-mappings/types';
5
5
  export declare const BaseFieldMappingInstance: z.ZodObject<{
6
6
  id: z.ZodString;
7
7
  name: z.ZodString;
8
- key: z.ZodString;
8
+ key: z.ZodOptional<z.ZodString>;
9
+ uuid: z.ZodOptional<z.ZodString>;
10
+ description: z.ZodOptional<z.ZodString>;
9
11
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
12
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
13
+ createdAt: z.ZodOptional<z.ZodString>;
14
+ updatedAt: z.ZodOptional<z.ZodString>;
15
+ archivedAt: z.ZodOptional<z.ZodString>;
10
16
  } & {
11
17
  userId: z.ZodString;
12
18
  revision: z.ZodString;
@@ -30,16 +36,22 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
30
36
  error: any;
31
37
  externalSchema: z.ZodOptional<z.ZodAny>;
32
38
  }, "strip", z.ZodTypeAny, {
33
- key: string;
34
39
  id: string;
35
40
  name: string;
41
+ revision: string;
36
42
  userId: string;
37
43
  connectionId: string;
38
44
  integrationId: string;
39
- revision: string;
45
+ key?: string | undefined;
40
46
  error?: any;
47
+ uuid?: string | undefined;
48
+ description?: string | undefined;
41
49
  state?: WorkspaceElementState | undefined;
42
50
  errors?: any[] | undefined;
51
+ isDeactivated?: boolean | undefined;
52
+ createdAt?: string | undefined;
53
+ updatedAt?: string | undefined;
54
+ archivedAt?: string | undefined;
43
55
  instanceKey?: string | undefined;
44
56
  appSchema?: DataSchema | undefined;
45
57
  direction?: FieldMappingDirection | undefined;
@@ -56,16 +68,22 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
56
68
  unifiedImportValue?: any;
57
69
  externalSchema?: any;
58
70
  }, {
59
- key: string;
60
71
  id: string;
61
72
  name: string;
73
+ revision: string;
62
74
  userId: string;
63
75
  connectionId: string;
64
76
  integrationId: string;
65
- revision: string;
77
+ key?: string | undefined;
66
78
  error?: any;
79
+ uuid?: string | undefined;
80
+ description?: string | undefined;
67
81
  state?: WorkspaceElementState | undefined;
68
82
  errors?: any[] | undefined;
83
+ isDeactivated?: boolean | undefined;
84
+ createdAt?: string | undefined;
85
+ updatedAt?: string | undefined;
86
+ archivedAt?: string | undefined;
69
87
  instanceKey?: string | undefined;
70
88
  appSchema?: DataSchema | undefined;
71
89
  direction?: FieldMappingDirection | undefined;
@@ -8,10 +8,14 @@ export declare enum FieldMappingDirection {
8
8
  export declare const BaseFieldMapping: z.ZodObject<{
9
9
  id: z.ZodString;
10
10
  name: z.ZodString;
11
- } & {
12
- key: z.ZodString;
11
+ key: z.ZodOptional<z.ZodString>;
12
+ uuid: z.ZodOptional<z.ZodString>;
13
+ description: z.ZodOptional<z.ZodString>;
13
14
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
14
15
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
16
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
17
+ createdAt: z.ZodOptional<z.ZodString>;
18
+ updatedAt: z.ZodOptional<z.ZodString>;
15
19
  } & {
16
20
  revision: z.ZodString;
17
21
  publishedRevision: z.ZodOptional<z.ZodString>;
@@ -32,7 +36,6 @@ export declare const BaseFieldMapping: z.ZodObject<{
32
36
  archivedAt: z.ZodOptional<z.ZodString>;
33
37
  customized: z.ZodOptional<z.ZodBoolean>;
34
38
  }, "strip", z.ZodTypeAny, {
35
- key: string;
36
39
  id: string;
37
40
  name: string;
38
41
  revision: string;
@@ -40,10 +43,16 @@ export declare const BaseFieldMapping: z.ZodObject<{
40
43
  dataSourceKey: string;
41
44
  appSchema: DataSchema;
42
45
  direction: FieldMappingDirection;
46
+ key?: string | undefined;
47
+ uuid?: string | undefined;
48
+ description?: string | undefined;
43
49
  state?: import("../../types").WorkspaceElementState | undefined;
44
50
  errors?: any[] | undefined;
45
- integrationId?: string | undefined;
51
+ isDeactivated?: boolean | undefined;
52
+ createdAt?: string | undefined;
53
+ updatedAt?: string | undefined;
46
54
  archivedAt?: string | undefined;
55
+ integrationId?: string | undefined;
47
56
  publishedRevision?: string | undefined;
48
57
  universalFieldMappingId?: string | undefined;
49
58
  universalFieldMappingRevision?: string | undefined;
@@ -56,7 +65,6 @@ export declare const BaseFieldMapping: z.ZodObject<{
56
65
  frozenUnifiedExportFields?: any;
57
66
  customized?: boolean | undefined;
58
67
  }, {
59
- key: string;
60
68
  id: string;
61
69
  name: string;
62
70
  revision: string;
@@ -64,10 +72,16 @@ export declare const BaseFieldMapping: z.ZodObject<{
64
72
  dataSourceKey: string;
65
73
  appSchema: DataSchema;
66
74
  direction: FieldMappingDirection;
75
+ key?: string | undefined;
76
+ uuid?: string | undefined;
77
+ description?: string | undefined;
67
78
  state?: import("../../types").WorkspaceElementState | undefined;
68
79
  errors?: any[] | undefined;
69
- integrationId?: string | undefined;
80
+ isDeactivated?: boolean | undefined;
81
+ createdAt?: string | undefined;
82
+ updatedAt?: string | undefined;
70
83
  archivedAt?: string | undefined;
84
+ integrationId?: string | undefined;
71
85
  publishedRevision?: string | undefined;
72
86
  universalFieldMappingId?: string | undefined;
73
87
  universalFieldMappingRevision?: string | undefined;
@@ -191,8 +191,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
191
191
  }>>;
192
192
  }, "strip", z.ZodTypeAny, {
193
193
  name?: string | undefined;
194
- parameters?: any;
195
194
  archivedAt?: string | undefined;
195
+ parameters?: any;
196
196
  customized?: {
197
197
  name?: boolean | undefined;
198
198
  nodes?: boolean | undefined;
@@ -214,8 +214,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
214
214
  enabled?: boolean | undefined;
215
215
  }, {
216
216
  name?: string | undefined;
217
- parameters?: any;
218
217
  archivedAt?: string | undefined;
218
+ parameters?: any;
219
219
  customized?: {
220
220
  name?: boolean | undefined;
221
221
  nodes?: boolean | undefined;