@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
@@ -1 +1,163 @@
1
- export * from './types';
1
+ import { z } from 'zod';
2
+ import { IntegrationElementType } from '../../../integration-elements';
3
+ export declare const ScenarioElement: z.ZodObject<{
4
+ id: z.ZodString;
5
+ type: z.ZodNativeEnum<typeof IntegrationElementType>;
6
+ element: z.ZodOptional<z.ZodAny>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: IntegrationElementType;
9
+ id: string;
10
+ element?: any;
11
+ }, {
12
+ type: IntegrationElementType;
13
+ id: string;
14
+ element?: any;
15
+ }>;
16
+ export type ScenarioElement = z.infer<typeof ScenarioElement>;
17
+ export declare const ScenarioEditableProperties: z.ZodObject<{
18
+ key: z.ZodOptional<z.ZodString>;
19
+ name: z.ZodOptional<z.ZodString>;
20
+ uuid: z.ZodOptional<z.ZodString>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
23
+ } & {
24
+ scenarioTemplateId: z.ZodOptional<z.ZodString>;
25
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ type: z.ZodNativeEnum<typeof IntegrationElementType>;
28
+ element: z.ZodOptional<z.ZodAny>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ type: IntegrationElementType;
31
+ id: string;
32
+ element?: any;
33
+ }, {
34
+ type: IntegrationElementType;
35
+ id: string;
36
+ element?: any;
37
+ }>, "many">>;
38
+ integrationId: z.ZodOptional<z.ZodString>;
39
+ parentId: z.ZodOptional<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ key?: string | undefined;
42
+ name?: string | undefined;
43
+ uuid?: string | undefined;
44
+ description?: string | undefined;
45
+ meta?: Record<string, any> | undefined;
46
+ integrationId?: string | undefined;
47
+ parentId?: string | undefined;
48
+ scenarioTemplateId?: string | undefined;
49
+ elements?: {
50
+ type: IntegrationElementType;
51
+ id: string;
52
+ element?: any;
53
+ }[] | undefined;
54
+ }, {
55
+ key?: string | undefined;
56
+ name?: string | undefined;
57
+ uuid?: string | undefined;
58
+ description?: string | undefined;
59
+ meta?: Record<string, any> | undefined;
60
+ integrationId?: string | undefined;
61
+ parentId?: string | undefined;
62
+ scenarioTemplateId?: string | undefined;
63
+ elements?: {
64
+ type: IntegrationElementType;
65
+ id: string;
66
+ element?: any;
67
+ }[] | undefined;
68
+ }>;
69
+ export type ScenarioEditableProperties = z.infer<typeof ScenarioEditableProperties>;
70
+ export declare const ScenarioCalculatedProperties: z.ZodObject<{
71
+ key: z.ZodString;
72
+ name: z.ZodString;
73
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ key: string;
76
+ name: string;
77
+ isCustomized?: boolean | undefined;
78
+ }, {
79
+ key: string;
80
+ name: string;
81
+ isCustomized?: boolean | undefined;
82
+ }>;
83
+ export type ScenarioCalculatedProperties = z.infer<typeof ScenarioCalculatedProperties>;
84
+ export declare const BaseScenario: z.ZodObject<{
85
+ id: z.ZodString;
86
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
87
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
88
+ revision: z.ZodOptional<z.ZodString>;
89
+ createdAt: z.ZodOptional<z.ZodString>;
90
+ updatedAt: z.ZodOptional<z.ZodString>;
91
+ archivedAt: z.ZodOptional<z.ZodString>;
92
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
93
+ uuid: z.ZodOptional<z.ZodString>;
94
+ description: z.ZodOptional<z.ZodString>;
95
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
96
+ scenarioTemplateId: z.ZodOptional<z.ZodString>;
97
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
98
+ id: z.ZodString;
99
+ type: z.ZodNativeEnum<typeof IntegrationElementType>;
100
+ element: z.ZodOptional<z.ZodAny>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: IntegrationElementType;
103
+ id: string;
104
+ element?: any;
105
+ }, {
106
+ type: IntegrationElementType;
107
+ id: string;
108
+ element?: any;
109
+ }>, "many">>;
110
+ integrationId: z.ZodOptional<z.ZodString>;
111
+ parentId: z.ZodOptional<z.ZodString>;
112
+ } & {
113
+ key: z.ZodString;
114
+ name: z.ZodString;
115
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ key: string;
118
+ id: string;
119
+ name: string;
120
+ uuid?: string | undefined;
121
+ description?: string | undefined;
122
+ meta?: Record<string, any> | undefined;
123
+ state?: import("../../types").WorkspaceElementState | undefined;
124
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
125
+ revision?: string | undefined;
126
+ createdAt?: string | undefined;
127
+ updatedAt?: string | undefined;
128
+ archivedAt?: string | undefined;
129
+ isDeactivated?: boolean | undefined;
130
+ integrationId?: string | undefined;
131
+ parentId?: string | undefined;
132
+ isCustomized?: boolean | undefined;
133
+ scenarioTemplateId?: string | undefined;
134
+ elements?: {
135
+ type: IntegrationElementType;
136
+ id: string;
137
+ element?: any;
138
+ }[] | undefined;
139
+ }, {
140
+ key: string;
141
+ id: string;
142
+ name: string;
143
+ uuid?: string | undefined;
144
+ description?: string | undefined;
145
+ meta?: Record<string, any> | undefined;
146
+ state?: import("../../types").WorkspaceElementState | undefined;
147
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
148
+ revision?: string | undefined;
149
+ createdAt?: string | undefined;
150
+ updatedAt?: string | undefined;
151
+ archivedAt?: string | undefined;
152
+ isDeactivated?: boolean | undefined;
153
+ integrationId?: string | undefined;
154
+ parentId?: string | undefined;
155
+ isCustomized?: boolean | undefined;
156
+ scenarioTemplateId?: string | undefined;
157
+ elements?: {
158
+ type: IntegrationElementType;
159
+ id: string;
160
+ element?: any;
161
+ }[] | undefined;
162
+ }>;
163
+ export type BaseScenario = z.infer<typeof BaseScenario>;
@@ -78,16 +78,19 @@ export declare const BaseMembraneInterfaceEditableProperties: z.ZodObject<{
78
78
  name: z.ZodOptional<z.ZodString>;
79
79
  uuid: z.ZodOptional<z.ZodString>;
80
80
  description: z.ZodOptional<z.ZodString>;
81
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
81
82
  }, "strip", z.ZodTypeAny, {
82
83
  key?: string | undefined;
83
84
  name?: string | undefined;
84
85
  uuid?: string | undefined;
85
86
  description?: string | undefined;
87
+ meta?: Record<string, any> | undefined;
86
88
  }, {
87
89
  key?: string | undefined;
88
90
  name?: string | undefined;
89
91
  uuid?: string | undefined;
90
92
  description?: string | undefined;
93
+ meta?: Record<string, any> | undefined;
91
94
  }>;
92
95
  export declare const BaseMembraneInterfaceReadOnlyProperties: z.ZodObject<{
93
96
  name: z.ZodString;
@@ -122,6 +125,7 @@ export declare const BaseMembraneInterface: z.ZodObject<{
122
125
  key: z.ZodOptional<z.ZodString>;
123
126
  uuid: z.ZodOptional<z.ZodString>;
124
127
  description: z.ZodOptional<z.ZodString>;
128
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
125
129
  } & {
126
130
  name: z.ZodString;
127
131
  state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
@@ -137,6 +141,7 @@ export declare const BaseMembraneInterface: z.ZodObject<{
137
141
  key?: string | undefined;
138
142
  uuid?: string | undefined;
139
143
  description?: string | undefined;
144
+ meta?: Record<string, any> | undefined;
140
145
  state?: WorkspaceElementState | undefined;
141
146
  errors?: ErrorDataSchema[] | undefined;
142
147
  revision?: string | undefined;
@@ -150,6 +155,7 @@ export declare const BaseMembraneInterface: z.ZodObject<{
150
155
  key?: string | undefined;
151
156
  uuid?: string | undefined;
152
157
  description?: string | undefined;
158
+ meta?: Record<string, any> | undefined;
153
159
  state?: WorkspaceElementState | undefined;
154
160
  errors?: ErrorDataSchema[] | undefined;
155
161
  revision?: string | undefined;
@@ -159,6 +165,118 @@ export declare const BaseMembraneInterface: z.ZodObject<{
159
165
  isDeactivated?: boolean | undefined;
160
166
  }>;
161
167
  export type BaseMembraneInterface = z.infer<typeof BaseMembraneInterface>;
168
+ export declare const BaseIntegrationLevelMembraneInterfaceEditableProperties: z.ZodObject<{
169
+ key: z.ZodOptional<z.ZodString>;
170
+ name: z.ZodOptional<z.ZodString>;
171
+ uuid: z.ZodOptional<z.ZodString>;
172
+ description: z.ZodOptional<z.ZodString>;
173
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
174
+ } & {
175
+ integrationId: z.ZodOptional<z.ZodString>;
176
+ parentId: z.ZodOptional<z.ZodString>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ key?: string | undefined;
179
+ name?: string | undefined;
180
+ uuid?: string | undefined;
181
+ description?: string | undefined;
182
+ meta?: Record<string, any> | undefined;
183
+ integrationId?: string | undefined;
184
+ parentId?: string | undefined;
185
+ }, {
186
+ key?: string | undefined;
187
+ name?: string | undefined;
188
+ uuid?: string | undefined;
189
+ description?: string | undefined;
190
+ meta?: Record<string, any> | undefined;
191
+ integrationId?: string | undefined;
192
+ parentId?: string | undefined;
193
+ }>;
194
+ export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.ZodObject<{
195
+ name: z.ZodString;
196
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
197
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
198
+ revision: z.ZodOptional<z.ZodString>;
199
+ createdAt: z.ZodOptional<z.ZodString>;
200
+ updatedAt: z.ZodOptional<z.ZodString>;
201
+ archivedAt: z.ZodOptional<z.ZodString>;
202
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
203
+ } & {
204
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ name: string;
207
+ state?: WorkspaceElementState | undefined;
208
+ errors?: ErrorDataSchema[] | undefined;
209
+ revision?: string | undefined;
210
+ createdAt?: string | undefined;
211
+ updatedAt?: string | undefined;
212
+ archivedAt?: string | undefined;
213
+ isDeactivated?: boolean | undefined;
214
+ isCustomized?: boolean | undefined;
215
+ }, {
216
+ name: string;
217
+ state?: WorkspaceElementState | undefined;
218
+ errors?: ErrorDataSchema[] | undefined;
219
+ revision?: string | undefined;
220
+ createdAt?: string | undefined;
221
+ updatedAt?: string | undefined;
222
+ archivedAt?: string | undefined;
223
+ isDeactivated?: boolean | undefined;
224
+ isCustomized?: boolean | undefined;
225
+ }>;
226
+ export declare const BaseIntegrationLevelMembraneInterface: z.ZodObject<{
227
+ id: z.ZodString;
228
+ key: z.ZodOptional<z.ZodString>;
229
+ uuid: z.ZodOptional<z.ZodString>;
230
+ description: z.ZodOptional<z.ZodString>;
231
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
232
+ integrationId: z.ZodOptional<z.ZodString>;
233
+ parentId: z.ZodOptional<z.ZodString>;
234
+ } & {
235
+ name: z.ZodString;
236
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
237
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
238
+ revision: z.ZodOptional<z.ZodString>;
239
+ createdAt: z.ZodOptional<z.ZodString>;
240
+ updatedAt: z.ZodOptional<z.ZodString>;
241
+ archivedAt: z.ZodOptional<z.ZodString>;
242
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
243
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ id: string;
246
+ name: string;
247
+ key?: string | undefined;
248
+ uuid?: string | undefined;
249
+ description?: string | undefined;
250
+ meta?: Record<string, any> | undefined;
251
+ state?: WorkspaceElementState | undefined;
252
+ errors?: ErrorDataSchema[] | undefined;
253
+ revision?: string | undefined;
254
+ createdAt?: string | undefined;
255
+ updatedAt?: string | undefined;
256
+ archivedAt?: string | undefined;
257
+ isDeactivated?: boolean | undefined;
258
+ integrationId?: string | undefined;
259
+ parentId?: string | undefined;
260
+ isCustomized?: boolean | undefined;
261
+ }, {
262
+ id: string;
263
+ name: string;
264
+ key?: string | undefined;
265
+ uuid?: string | undefined;
266
+ description?: string | undefined;
267
+ meta?: Record<string, any> | undefined;
268
+ state?: WorkspaceElementState | undefined;
269
+ errors?: ErrorDataSchema[] | undefined;
270
+ revision?: string | undefined;
271
+ createdAt?: string | undefined;
272
+ updatedAt?: string | undefined;
273
+ archivedAt?: string | undefined;
274
+ isDeactivated?: boolean | undefined;
275
+ integrationId?: string | undefined;
276
+ parentId?: string | undefined;
277
+ isCustomized?: boolean | undefined;
278
+ }>;
279
+ export type BaseIntegrationLevelMembraneInterface = z.infer<typeof BaseIntegrationLevelMembraneInterface>;
162
280
  export interface WorkspaceElementReference {
163
281
  type: WorkspaceElementType;
164
282
  id: string;
@@ -12,6 +12,7 @@ export interface WorkspaceElementSpec {
12
12
  editablePropertiesSchema?: z.ZodObject<any>;
13
13
  apiResponseSchema?: z.ZodObject<any>;
14
14
  findQuerySchema?: z.ZodObject<any>;
15
+ parentFieldKey?: string;
15
16
  }
16
17
  export interface WorkspaceElements {
17
18
  flows?: Record<string, CreateFlowRequest>;