@membranehq/sdk 0.7.1 → 0.7.4

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 (85) hide show
  1. package/dist/bundle.d.ts +5200 -4617
  2. package/dist/bundle.js +10 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +4 -3
  5. package/dist/dts/accessors/integrations-accessors.d.ts +4 -3
  6. package/dist/dts/accessors/scenarios-accessors.d.ts +4 -3
  7. package/dist/dts/config/config.test.d.ts +1 -0
  8. package/dist/dts/config/index.d.ts +42 -0
  9. package/dist/dts/entity-repository.d.ts +2 -2
  10. package/dist/dts/index.browser.d.ts +31 -0
  11. package/dist/dts/index.d.ts +2 -0
  12. package/dist/dts/index.node.d.ts +2 -0
  13. package/dist/dts/integration-elements/index.d.ts +0 -2
  14. package/dist/dts/{workspace-elements/base/scenarios/types.d.ts → scenario-templates/index.d.ts} +64 -169
  15. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +39 -34
  16. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +37 -37
  17. package/dist/dts/workspace-elements/api/actions-api.d.ts +64 -46
  18. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +13 -0
  19. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +3 -0
  20. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +17 -2
  21. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -0
  22. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -0
  23. package/dist/dts/workspace-elements/api/connections-api.d.ts +57 -34
  24. package/dist/dts/workspace-elements/api/customers-api.d.ts +3 -0
  25. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +29 -16
  26. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +3 -0
  27. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +51 -43
  28. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +474 -441
  29. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +27 -22
  30. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +27 -22
  31. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -16
  32. package/dist/dts/workspace-elements/api/external-events-api.d.ts +7 -0
  33. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +144 -124
  34. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +250 -118
  35. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +122 -98
  36. package/dist/dts/workspace-elements/api/flows-api.d.ts +965 -826
  37. package/dist/dts/workspace-elements/api/integrations-api.d.ts +12 -14
  38. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +434 -431
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +5 -5
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -2
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +18 -15
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +3 -0
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -0
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +3 -0
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -0
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +5 -8
  47. package/dist/dts/workspace-elements/base/customers/index.d.ts +3 -0
  48. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +5 -2
  49. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -0
  50. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +9 -6
  51. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
  52. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +2 -2
  54. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -2
  55. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +8 -5
  56. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
  57. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +26 -26
  58. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -12
  59. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +4 -4
  60. package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
  61. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
  62. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  63. package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -0
  64. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +163 -1
  65. package/dist/dts/workspace-elements/types.d.ts +118 -0
  66. package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
  67. package/dist/{index.d.ts → index.browser.d.mts} +17282 -16311
  68. package/dist/{index.module.d.mts → index.browser.d.ts} +17282 -16311
  69. package/dist/{index.js → index.browser.js} +228 -255
  70. package/dist/index.browser.js.map +1 -0
  71. package/dist/{index.module.mjs → index.browser.mjs} +218 -250
  72. package/dist/index.browser.mjs.map +1 -0
  73. package/dist/index.node.d.mts +28306 -0
  74. package/dist/index.node.d.ts +28306 -0
  75. package/dist/index.node.js +13329 -0
  76. package/dist/index.node.js.map +1 -0
  77. package/dist/index.node.mjs +12853 -0
  78. package/dist/index.node.mjs.map +1 -0
  79. package/package.json +38 -15
  80. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  81. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -102
  82. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -129
  83. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -241
  84. package/dist/index.js.map +0 -1
  85. package/dist/index.module.mjs.map +0 -1
@@ -23,6 +23,7 @@ export declare const BaseActionInstance: z.ZodObject<{
23
23
  key: z.ZodOptional<z.ZodString>;
24
24
  uuid: z.ZodOptional<z.ZodString>;
25
25
  description: z.ZodOptional<z.ZodString>;
26
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
26
27
  } & {
27
28
  name: z.ZodString;
28
29
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
@@ -34,7 +35,6 @@ export declare const BaseActionInstance: z.ZodObject<{
34
35
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
35
36
  } & {
36
37
  parentId: z.ZodOptional<z.ZodString>;
37
- parentRevision: z.ZodOptional<z.ZodString>;
38
38
  universalParentId: z.ZodOptional<z.ZodString>;
39
39
  userId: z.ZodString;
40
40
  instanceKey: z.ZodOptional<z.ZodString>;
@@ -50,6 +50,7 @@ export declare const BaseActionInstance: z.ZodObject<{
50
50
  type?: ActionType | undefined;
51
51
  uuid?: string | undefined;
52
52
  description?: string | undefined;
53
+ meta?: Record<string, any> | undefined;
53
54
  state?: import("../../types").WorkspaceElementState | undefined;
54
55
  errors?: import("../../..").ErrorDataSchema[] | undefined;
55
56
  revision?: string | undefined;
@@ -57,11 +58,10 @@ export declare const BaseActionInstance: z.ZodObject<{
57
58
  updatedAt?: string | undefined;
58
59
  archivedAt?: string | undefined;
59
60
  isDeactivated?: boolean | undefined;
60
- instanceKey?: string | undefined;
61
61
  parentId?: string | undefined;
62
+ instanceKey?: string | undefined;
62
63
  inputSchema?: any;
63
64
  config?: any;
64
- parentRevision?: string | undefined;
65
65
  outputSchema?: any;
66
66
  universalParentId?: string | undefined;
67
67
  }, {
@@ -72,6 +72,7 @@ export declare const BaseActionInstance: z.ZodObject<{
72
72
  type?: ActionType | undefined;
73
73
  uuid?: string | undefined;
74
74
  description?: string | undefined;
75
+ meta?: Record<string, any> | undefined;
75
76
  state?: import("../../types").WorkspaceElementState | undefined;
76
77
  errors?: import("../../..").ErrorDataSchema[] | undefined;
77
78
  revision?: string | undefined;
@@ -79,11 +80,10 @@ export declare const BaseActionInstance: z.ZodObject<{
79
80
  updatedAt?: string | undefined;
80
81
  archivedAt?: string | undefined;
81
82
  isDeactivated?: boolean | undefined;
82
- instanceKey?: string | undefined;
83
83
  parentId?: string | undefined;
84
+ instanceKey?: string | undefined;
84
85
  inputSchema?: any;
85
86
  config?: any;
86
- parentRevision?: string | undefined;
87
87
  outputSchema?: any;
88
88
  universalParentId?: string | undefined;
89
89
  }>;
@@ -22,8 +22,8 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
22
22
  id: string;
23
23
  name: string;
24
24
  createdAt: string;
25
- connectionId: string;
26
25
  integrationId: string;
26
+ connectionId: string;
27
27
  actionId: string;
28
28
  error?: ErrorDataSchema | undefined;
29
29
  input?: any;
@@ -34,8 +34,8 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
34
34
  id: string;
35
35
  name: string;
36
36
  createdAt: string;
37
- connectionId: string;
38
37
  integrationId: string;
38
+ connectionId: string;
39
39
  actionId: string;
40
40
  error?: ErrorDataSchema | undefined;
41
41
  input?: any;
@@ -7,6 +7,7 @@ export declare const ActionEditableProperties: z.ZodObject<{
7
7
  name: z.ZodOptional<z.ZodString>;
8
8
  uuid: z.ZodOptional<z.ZodString>;
9
9
  description: z.ZodOptional<z.ZodString>;
10
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10
11
  } & {
11
12
  integrationId: z.ZodOptional<z.ZodString>;
12
13
  parentId: z.ZodOptional<z.ZodString>;
@@ -21,6 +22,7 @@ export declare const ActionEditableProperties: z.ZodObject<{
21
22
  name?: string | undefined;
22
23
  uuid?: string | undefined;
23
24
  description?: string | undefined;
25
+ meta?: Record<string, any> | undefined;
24
26
  integrationId?: string | undefined;
25
27
  parentId?: string | undefined;
26
28
  inputSchema?: DataSchema | undefined;
@@ -33,6 +35,7 @@ export declare const ActionEditableProperties: z.ZodObject<{
33
35
  name?: string | undefined;
34
36
  uuid?: string | undefined;
35
37
  description?: string | undefined;
38
+ meta?: Record<string, any> | undefined;
36
39
  integrationId?: string | undefined;
37
40
  parentId?: string | undefined;
38
41
  inputSchema?: DataSchema | undefined;
@@ -43,15 +46,10 @@ export declare const ActionEditableProperties: z.ZodObject<{
43
46
  export type ActionEditableProperties = z.infer<typeof ActionEditableProperties>;
44
47
  export declare const BaseAction: z.ZodObject<{
45
48
  id: z.ZodString;
46
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
47
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
48
- revision: z.ZodOptional<z.ZodString>;
49
- createdAt: z.ZodOptional<z.ZodString>;
50
- updatedAt: z.ZodOptional<z.ZodString>;
51
- archivedAt: z.ZodOptional<z.ZodString>;
52
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
49
+ key: z.ZodOptional<z.ZodString>;
53
50
  uuid: z.ZodOptional<z.ZodString>;
54
51
  description: z.ZodOptional<z.ZodString>;
52
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
55
53
  integrationId: z.ZodOptional<z.ZodString>;
56
54
  parentId: z.ZodOptional<z.ZodString>;
57
55
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
@@ -60,17 +58,23 @@ export declare const BaseAction: z.ZodObject<{
60
58
  outputMapping: z.ZodOptional<z.ZodAny>;
61
59
  customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
62
60
  } & {
63
- key: z.ZodString;
64
61
  name: z.ZodString;
62
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
63
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
64
+ revision: z.ZodOptional<z.ZodString>;
65
+ createdAt: z.ZodOptional<z.ZodString>;
66
+ updatedAt: z.ZodOptional<z.ZodString>;
67
+ archivedAt: z.ZodOptional<z.ZodString>;
68
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
65
69
  isCustomized: z.ZodOptional<z.ZodBoolean>;
66
- parentRevision: z.ZodOptional<z.ZodString>;
67
70
  }, "strip", z.ZodTypeAny, {
68
- key: string;
69
71
  id: string;
70
72
  name: string;
73
+ key?: string | undefined;
71
74
  type?: ActionType | undefined;
72
75
  uuid?: string | undefined;
73
76
  description?: string | undefined;
77
+ meta?: Record<string, any> | undefined;
74
78
  state?: import("../../types").WorkspaceElementState | undefined;
75
79
  errors?: import("../../..").ErrorDataSchema[] | undefined;
76
80
  revision?: string | undefined;
@@ -80,19 +84,19 @@ export declare const BaseAction: z.ZodObject<{
80
84
  isDeactivated?: boolean | undefined;
81
85
  integrationId?: string | undefined;
82
86
  parentId?: string | undefined;
87
+ isCustomized?: boolean | undefined;
83
88
  inputSchema?: DataSchema | undefined;
84
89
  config?: any;
85
90
  outputMapping?: any;
86
91
  customOutputSchema?: DataSchema | undefined;
87
- isCustomized?: boolean | undefined;
88
- parentRevision?: string | undefined;
89
92
  }, {
90
- key: string;
91
93
  id: string;
92
94
  name: string;
95
+ key?: string | undefined;
93
96
  type?: ActionType | undefined;
94
97
  uuid?: string | undefined;
95
98
  description?: string | undefined;
99
+ meta?: Record<string, any> | undefined;
96
100
  state?: import("../../types").WorkspaceElementState | undefined;
97
101
  errors?: import("../../..").ErrorDataSchema[] | undefined;
98
102
  revision?: string | undefined;
@@ -102,11 +106,10 @@ export declare const BaseAction: z.ZodObject<{
102
106
  isDeactivated?: boolean | undefined;
103
107
  integrationId?: string | undefined;
104
108
  parentId?: string | undefined;
109
+ isCustomized?: boolean | undefined;
105
110
  inputSchema?: DataSchema | undefined;
106
111
  config?: any;
107
112
  outputMapping?: any;
108
113
  customOutputSchema?: DataSchema | undefined;
109
- isCustomized?: boolean | undefined;
110
- parentRevision?: string | undefined;
111
114
  }>;
112
115
  export type BaseAction = z.infer<typeof BaseAction>;
@@ -5,6 +5,7 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
5
5
  key: z.ZodOptional<z.ZodString>;
6
6
  uuid: z.ZodOptional<z.ZodString>;
7
7
  description: z.ZodOptional<z.ZodString>;
8
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
9
  name: z.ZodString;
9
10
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
10
11
  errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
@@ -32,6 +33,7 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
32
33
  error?: ErrorDataSchema | undefined;
33
34
  uuid?: string | undefined;
34
35
  description?: string | undefined;
36
+ meta?: Record<string, any> | undefined;
35
37
  state?: import("../../types").WorkspaceElementState | undefined;
36
38
  errors?: ErrorDataSchema[] | undefined;
37
39
  revision?: string | undefined;
@@ -52,6 +54,7 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
52
54
  error?: ErrorDataSchema | undefined;
53
55
  uuid?: string | undefined;
54
56
  description?: string | undefined;
57
+ meta?: Record<string, any> | undefined;
55
58
  state?: import("../../types").WorkspaceElementState | undefined;
56
59
  errors?: ErrorDataSchema[] | undefined;
57
60
  revision?: string | undefined;
@@ -4,6 +4,7 @@ export declare const BaseAppDataSchema: z.ZodObject<{
4
4
  key: z.ZodOptional<z.ZodString>;
5
5
  uuid: z.ZodOptional<z.ZodString>;
6
6
  description: z.ZodOptional<z.ZodString>;
7
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7
8
  name: z.ZodString;
8
9
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
9
10
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
@@ -22,6 +23,7 @@ export declare const BaseAppDataSchema: z.ZodObject<{
22
23
  code?: string | undefined;
23
24
  uuid?: string | undefined;
24
25
  description?: string | undefined;
26
+ meta?: Record<string, any> | undefined;
25
27
  state?: import("../../types").WorkspaceElementState | undefined;
26
28
  errors?: import("../../..").ErrorDataSchema[] | undefined;
27
29
  revision?: string | undefined;
@@ -37,6 +39,7 @@ export declare const BaseAppDataSchema: z.ZodObject<{
37
39
  code?: string | undefined;
38
40
  uuid?: string | undefined;
39
41
  description?: string | undefined;
42
+ meta?: Record<string, any> | undefined;
40
43
  state?: import("../../types").WorkspaceElementState | undefined;
41
44
  errors?: import("../../..").ErrorDataSchema[] | undefined;
42
45
  revision?: string | undefined;
@@ -5,6 +5,7 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
5
5
  key: z.ZodOptional<z.ZodString>;
6
6
  uuid: z.ZodOptional<z.ZodString>;
7
7
  description: z.ZodOptional<z.ZodString>;
8
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
9
  name: z.ZodString;
9
10
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
10
11
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
@@ -58,6 +59,7 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
58
59
  key?: string | undefined;
59
60
  uuid?: string | undefined;
60
61
  description?: string | undefined;
62
+ meta?: Record<string, any> | undefined;
61
63
  state?: import("../../types").WorkspaceElementState | undefined;
62
64
  errors?: import("../../..").ErrorDataSchema[] | undefined;
63
65
  createdAt?: string | undefined;
@@ -85,6 +87,7 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
85
87
  key?: string | undefined;
86
88
  uuid?: string | undefined;
87
89
  description?: string | undefined;
90
+ meta?: Record<string, any> | undefined;
88
91
  state?: import("../../types").WorkspaceElementState | undefined;
89
92
  errors?: import("../../..").ErrorDataSchema[] | undefined;
90
93
  createdAt?: string | undefined;
@@ -5,6 +5,7 @@ export declare const BaseAppEventType: z.ZodObject<{
5
5
  key: z.ZodOptional<z.ZodString>;
6
6
  uuid: z.ZodOptional<z.ZodString>;
7
7
  description: z.ZodOptional<z.ZodString>;
8
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
9
  name: z.ZodString;
9
10
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
10
11
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
@@ -45,6 +46,7 @@ export declare const BaseAppEventType: z.ZodObject<{
45
46
  key?: string | undefined;
46
47
  uuid?: string | undefined;
47
48
  description?: string | undefined;
49
+ meta?: Record<string, any> | undefined;
48
50
  state?: import("../../types").WorkspaceElementState | undefined;
49
51
  errors?: import("../../..").ErrorDataSchema[] | undefined;
50
52
  createdAt?: string | undefined;
@@ -69,6 +71,7 @@ export declare const BaseAppEventType: z.ZodObject<{
69
71
  key?: string | undefined;
70
72
  uuid?: string | undefined;
71
73
  description?: string | undefined;
74
+ meta?: Record<string, any> | undefined;
72
75
  state?: import("../../types").WorkspaceElementState | undefined;
73
76
  errors?: import("../../..").ErrorDataSchema[] | undefined;
74
77
  createdAt?: string | undefined;
@@ -33,6 +33,7 @@ export declare const BaseConnection: z.ZodObject<{
33
33
  isTest: z.ZodOptional<z.ZodBoolean>;
34
34
  disconnected: z.ZodOptional<z.ZodBoolean>;
35
35
  isDefunct: z.ZodOptional<z.ZodBoolean>;
36
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
36
37
  error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
37
38
  integrationId: z.ZodString;
38
39
  authOptionKey: z.ZodOptional<z.ZodString>;
@@ -42,24 +43,21 @@ export declare const BaseConnection: z.ZodObject<{
42
43
  nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
43
44
  archivedAt: z.ZodOptional<z.ZodString>;
44
45
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
45
- state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
46
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
47
46
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
48
47
  }, "strip", z.ZodTypeAny, {
49
48
  id: string;
50
49
  name: string;
51
50
  createdAt: string;
52
51
  updatedAt: string;
53
- userId: string;
54
52
  integrationId: string;
53
+ userId: string;
55
54
  error?: ErrorDataSchema | undefined;
55
+ meta?: Record<string, any> | undefined;
56
56
  state?: WorkspaceElementState | undefined;
57
- errors?: ErrorDataSchema[] | undefined;
58
57
  archivedAt?: string | undefined;
59
58
  isDeactivated?: boolean | undefined;
60
59
  authOptionKey?: string | undefined;
61
60
  isTest?: boolean | undefined;
62
- meta?: Record<string, any> | undefined;
63
61
  disconnected?: boolean | undefined;
64
62
  isDefunct?: boolean | undefined;
65
63
  lastActiveAt?: string | undefined;
@@ -69,16 +67,15 @@ export declare const BaseConnection: z.ZodObject<{
69
67
  name: string;
70
68
  createdAt: string;
71
69
  updatedAt: string;
72
- userId: string;
73
70
  integrationId: string;
71
+ userId: string;
74
72
  error?: ErrorDataSchema | undefined;
73
+ meta?: Record<string, any> | undefined;
75
74
  state?: WorkspaceElementState | undefined;
76
- errors?: ErrorDataSchema[] | undefined;
77
75
  archivedAt?: string | undefined;
78
76
  isDeactivated?: boolean | undefined;
79
77
  authOptionKey?: string | undefined;
80
78
  isTest?: boolean | undefined;
81
- meta?: Record<string, any> | undefined;
82
79
  disconnected?: boolean | undefined;
83
80
  isDefunct?: boolean | undefined;
84
81
  lastActiveAt?: string | undefined;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare const BaseCustomer: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5
6
  internalId: z.ZodString;
6
7
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7
8
  credentials: z.ZodOptional<z.ZodAny>;
@@ -14,6 +15,7 @@ export declare const BaseCustomer: z.ZodObject<{
14
15
  id: string;
15
16
  name: string;
16
17
  internalId: string;
18
+ meta?: Record<string, any> | undefined;
17
19
  createdAt?: string | undefined;
18
20
  archivedAt?: string | undefined;
19
21
  credentials?: any;
@@ -25,6 +27,7 @@ export declare const BaseCustomer: z.ZodObject<{
25
27
  id: string;
26
28
  name: string;
27
29
  internalId: string;
30
+ meta?: Record<string, any> | undefined;
28
31
  createdAt?: string | undefined;
29
32
  archivedAt?: string | undefined;
30
33
  credentials?: any;
@@ -5,6 +5,7 @@ export declare const BaseDataLinkTableInstance: z.ZodObject<{
5
5
  key: z.ZodOptional<z.ZodString>;
6
6
  uuid: z.ZodOptional<z.ZodString>;
7
7
  description: z.ZodOptional<z.ZodString>;
8
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
9
  name: z.ZodString;
9
10
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
10
11
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
@@ -22,11 +23,12 @@ export declare const BaseDataLinkTableInstance: z.ZodObject<{
22
23
  }, "strip", z.ZodTypeAny, {
23
24
  id: string;
24
25
  name: string;
25
- userId: string;
26
26
  integrationId: string;
27
+ userId: string;
27
28
  key?: string | undefined;
28
29
  uuid?: string | undefined;
29
30
  description?: string | undefined;
31
+ meta?: Record<string, any> | undefined;
30
32
  state?: import("../../types").WorkspaceElementState | undefined;
31
33
  errors?: import("../../..").ErrorDataSchema[] | undefined;
32
34
  revision?: string | undefined;
@@ -40,11 +42,12 @@ export declare const BaseDataLinkTableInstance: z.ZodObject<{
40
42
  }, {
41
43
  id: string;
42
44
  name: string;
43
- userId: string;
44
45
  integrationId: string;
46
+ userId: string;
45
47
  key?: string | undefined;
46
48
  uuid?: string | undefined;
47
49
  description?: string | undefined;
50
+ meta?: Record<string, any> | undefined;
48
51
  state?: import("../../types").WorkspaceElementState | undefined;
49
52
  errors?: import("../../..").ErrorDataSchema[] | undefined;
50
53
  revision?: string | undefined;
@@ -9,6 +9,7 @@ export declare const BaseDataLinkTable: z.ZodObject<{
9
9
  key: z.ZodOptional<z.ZodString>;
10
10
  uuid: z.ZodOptional<z.ZodString>;
11
11
  description: z.ZodOptional<z.ZodString>;
12
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
12
13
  name: z.ZodString;
13
14
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
14
15
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
@@ -24,6 +25,7 @@ export declare const BaseDataLinkTable: z.ZodObject<{
24
25
  key?: string | undefined;
25
26
  uuid?: string | undefined;
26
27
  description?: string | undefined;
28
+ meta?: Record<string, any> | undefined;
27
29
  state?: import("../../types").WorkspaceElementState | undefined;
28
30
  errors?: import("../../..").ErrorDataSchema[] | undefined;
29
31
  revision?: string | undefined;
@@ -37,6 +39,7 @@ export declare const BaseDataLinkTable: z.ZodObject<{
37
39
  key?: string | undefined;
38
40
  uuid?: string | undefined;
39
41
  description?: string | undefined;
42
+ meta?: Record<string, any> | undefined;
40
43
  state?: import("../../types").WorkspaceElementState | undefined;
41
44
  errors?: import("../../..").ErrorDataSchema[] | undefined;
42
45
  revision?: string | undefined;
@@ -5,6 +5,7 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
5
5
  key: z.ZodOptional<z.ZodString>;
6
6
  uuid: z.ZodOptional<z.ZodString>;
7
7
  description: z.ZodOptional<z.ZodString>;
8
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
9
  name: z.ZodString;
9
10
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
10
11
  createdAt: z.ZodOptional<z.ZodString>;
@@ -725,21 +726,22 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
725
726
  id: string;
726
727
  name: string;
727
728
  revision: string;
729
+ integrationId: string;
728
730
  userId: string;
729
731
  connectionId: string;
730
- integrationId: string;
731
732
  key?: string | undefined;
732
733
  path?: string | undefined;
733
734
  uuid?: string | undefined;
734
735
  description?: string | undefined;
736
+ meta?: Record<string, any> | undefined;
735
737
  state?: import("../../types").WorkspaceElementState | undefined;
736
738
  errors?: ErrorDataSchema[] | undefined;
737
739
  createdAt?: string | undefined;
738
740
  updatedAt?: string | undefined;
739
741
  archivedAt?: string | undefined;
740
742
  isDeactivated?: boolean | undefined;
743
+ isCustomized?: boolean | undefined;
741
744
  instanceKey?: string | undefined;
742
- dataSourceId?: string | undefined;
743
745
  udm?: string | undefined;
744
746
  collectionSpec?: {
745
747
  type: "collection";
@@ -876,7 +878,7 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
876
878
  } | undefined;
877
879
  customFields?: boolean | undefined;
878
880
  } | undefined;
879
- isCustomized?: boolean | undefined;
881
+ dataSourceId?: string | undefined;
880
882
  dataSourceRevision?: string | undefined;
881
883
  universalDataSourceId?: string | undefined;
882
884
  collectionKey?: string | undefined;
@@ -890,21 +892,22 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
890
892
  id: string;
891
893
  name: string;
892
894
  revision: string;
895
+ integrationId: string;
893
896
  userId: string;
894
897
  connectionId: string;
895
- integrationId: string;
896
898
  key?: string | undefined;
897
899
  path?: string | undefined;
898
900
  uuid?: string | undefined;
899
901
  description?: string | undefined;
902
+ meta?: Record<string, any> | undefined;
900
903
  state?: import("../../types").WorkspaceElementState | undefined;
901
904
  errors?: ErrorDataSchema[] | undefined;
902
905
  createdAt?: string | undefined;
903
906
  updatedAt?: string | undefined;
904
907
  archivedAt?: string | undefined;
905
908
  isDeactivated?: boolean | undefined;
909
+ isCustomized?: boolean | undefined;
906
910
  instanceKey?: string | undefined;
907
- dataSourceId?: string | undefined;
908
911
  udm?: string | undefined;
909
912
  collectionSpec?: {
910
913
  type: "collection";
@@ -1041,7 +1044,7 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
1041
1044
  } | undefined;
1042
1045
  customFields?: boolean | undefined;
1043
1046
  } | undefined;
1044
- isCustomized?: boolean | undefined;
1047
+ dataSourceId?: string | undefined;
1045
1048
  dataSourceRevision?: string | undefined;
1046
1049
  universalDataSourceId?: string | undefined;
1047
1050
  collectionKey?: string | undefined;
@@ -1,2 +1,153 @@
1
- export * from './constants';
2
- export * from './types';
1
+ import { z } from 'zod';
2
+ export declare const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS: number;
3
+ export declare const DEFAULT_FULL_SYNC_INTERVAL_SECONDS: number;
4
+ export declare const MIN_FULL_SYNC_INTERVAL_SECONDS: number;
5
+ export declare const MIN_PULL_UPDATES_INTERVAL_SECONDS: number;
6
+ export declare const DataSourceEditableProperties: z.ZodObject<Omit<{
7
+ key: z.ZodOptional<z.ZodString>;
8
+ name: z.ZodOptional<z.ZodString>;
9
+ uuid: z.ZodOptional<z.ZodString>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
12
+ } & {
13
+ integrationId: z.ZodOptional<z.ZodString>;
14
+ parentId: z.ZodOptional<z.ZodString>;
15
+ }, "parentId"> & {
16
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
17
+ udm: z.ZodOptional<z.ZodString>;
18
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
19
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
20
+ collectionKey: z.ZodOptional<z.ZodString>;
21
+ collectionParameters: z.ZodOptional<z.ZodAny>;
22
+ defaultPath: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ key?: string | undefined;
25
+ name?: string | undefined;
26
+ uuid?: string | undefined;
27
+ description?: string | undefined;
28
+ meta?: Record<string, any> | undefined;
29
+ integrationId?: string | undefined;
30
+ udm?: string | undefined;
31
+ universalDataSourceId?: string | undefined;
32
+ collectionKey?: string | undefined;
33
+ collectionParameters?: any;
34
+ pullUpdatesIntervalSeconds?: number | undefined;
35
+ fullSyncIntervalSeconds?: number | undefined;
36
+ defaultPath?: string | undefined;
37
+ }, {
38
+ key?: string | undefined;
39
+ name?: string | undefined;
40
+ uuid?: string | undefined;
41
+ description?: string | undefined;
42
+ meta?: Record<string, any> | undefined;
43
+ integrationId?: string | undefined;
44
+ udm?: string | undefined;
45
+ universalDataSourceId?: string | undefined;
46
+ collectionKey?: string | undefined;
47
+ collectionParameters?: any;
48
+ pullUpdatesIntervalSeconds?: number | undefined;
49
+ fullSyncIntervalSeconds?: number | undefined;
50
+ defaultPath?: string | undefined;
51
+ }>;
52
+ export type DataSourceEditableProperties = z.infer<typeof DataSourceEditableProperties>;
53
+ export declare const BaseDataSource: z.ZodObject<{
54
+ id: z.ZodString;
55
+ key: z.ZodOptional<z.ZodString>;
56
+ uuid: z.ZodOptional<z.ZodString>;
57
+ description: z.ZodOptional<z.ZodString>;
58
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
59
+ integrationId: z.ZodOptional<z.ZodString>;
60
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
61
+ udm: z.ZodOptional<z.ZodString>;
62
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
63
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
64
+ collectionKey: z.ZodOptional<z.ZodString>;
65
+ collectionParameters: z.ZodOptional<z.ZodAny>;
66
+ defaultPath: z.ZodOptional<z.ZodString>;
67
+ } & {
68
+ name: z.ZodString;
69
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
70
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
71
+ revision: z.ZodOptional<z.ZodString>;
72
+ createdAt: z.ZodOptional<z.ZodString>;
73
+ updatedAt: z.ZodOptional<z.ZodString>;
74
+ archivedAt: z.ZodOptional<z.ZodString>;
75
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
76
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
77
+ universalDataSourceRevision: z.ZodOptional<z.ZodString>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ id: string;
80
+ name: string;
81
+ key?: string | undefined;
82
+ uuid?: string | undefined;
83
+ description?: string | undefined;
84
+ meta?: Record<string, any> | undefined;
85
+ state?: import("../../types").WorkspaceElementState | undefined;
86
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
87
+ revision?: string | undefined;
88
+ createdAt?: string | undefined;
89
+ updatedAt?: string | undefined;
90
+ archivedAt?: string | undefined;
91
+ isDeactivated?: boolean | undefined;
92
+ integrationId?: string | undefined;
93
+ isCustomized?: boolean | undefined;
94
+ udm?: string | undefined;
95
+ universalDataSourceId?: string | undefined;
96
+ collectionKey?: string | undefined;
97
+ collectionParameters?: any;
98
+ pullUpdatesIntervalSeconds?: number | undefined;
99
+ fullSyncIntervalSeconds?: number | undefined;
100
+ defaultPath?: string | undefined;
101
+ universalDataSourceRevision?: string | undefined;
102
+ }, {
103
+ id: string;
104
+ name: string;
105
+ key?: string | undefined;
106
+ uuid?: string | undefined;
107
+ description?: string | undefined;
108
+ meta?: Record<string, any> | undefined;
109
+ state?: import("../../types").WorkspaceElementState | undefined;
110
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
111
+ revision?: string | undefined;
112
+ createdAt?: string | undefined;
113
+ updatedAt?: string | undefined;
114
+ archivedAt?: string | undefined;
115
+ isDeactivated?: boolean | undefined;
116
+ integrationId?: string | undefined;
117
+ isCustomized?: boolean | undefined;
118
+ udm?: string | undefined;
119
+ universalDataSourceId?: string | undefined;
120
+ collectionKey?: string | undefined;
121
+ collectionParameters?: any;
122
+ pullUpdatesIntervalSeconds?: number | undefined;
123
+ fullSyncIntervalSeconds?: number | undefined;
124
+ defaultPath?: string | undefined;
125
+ universalDataSourceRevision?: string | undefined;
126
+ }>;
127
+ export type BaseDataSource = z.infer<typeof BaseDataSource>;
128
+ export declare const DataSourceUnitConfig: z.ZodObject<{
129
+ key: z.ZodOptional<z.ZodString>;
130
+ collectionKey: z.ZodOptional<z.ZodAny>;
131
+ collectionParameters: z.ZodOptional<z.ZodAny>;
132
+ udm: z.ZodOptional<z.ZodAny>;
133
+ path: z.ZodOptional<z.ZodString>;
134
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
135
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ key?: string | undefined;
138
+ path?: string | undefined;
139
+ udm?: any;
140
+ collectionKey?: any;
141
+ collectionParameters?: any;
142
+ pullUpdatesIntervalSeconds?: number | undefined;
143
+ fullSyncIntervalSeconds?: number | undefined;
144
+ }, {
145
+ key?: string | undefined;
146
+ path?: string | undefined;
147
+ udm?: any;
148
+ collectionKey?: any;
149
+ collectionParameters?: any;
150
+ pullUpdatesIntervalSeconds?: number | undefined;
151
+ fullSyncIntervalSeconds?: number | undefined;
152
+ }>;
153
+ export type DataSourceUnitConfig = z.infer<typeof DataSourceUnitConfig>;
@@ -19,9 +19,9 @@ export declare const BaseExternalEventLogRecord: z.ZodObject<{
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  status: ExternalEventLogStatus;
21
21
  id: string;
22
+ integrationId: string;
22
23
  userId: string;
23
24
  connectionId: string;
24
- integrationId: string;
25
25
  externalEventSubscriptionId: string;
26
26
  error?: ErrorDataSchema | undefined;
27
27
  name?: string | undefined;
@@ -30,9 +30,9 @@ export declare const BaseExternalEventLogRecord: z.ZodObject<{
30
30
  }, {
31
31
  status: ExternalEventLogStatus;
32
32
  id: string;
33
+ integrationId: string;
33
34
  userId: string;
34
35
  connectionId: string;
35
- integrationId: string;
36
36
  externalEventSubscriptionId: string;
37
37
  error?: ErrorDataSchema | undefined;
38
38
  name?: string | undefined;