@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
@@ -6,6 +6,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
6
6
  user: z.ZodOptional<z.ZodObject<{
7
7
  id: z.ZodString;
8
8
  name: z.ZodString;
9
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9
10
  internalId: z.ZodString;
10
11
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11
12
  credentials: z.ZodOptional<z.ZodAny>;
@@ -18,6 +19,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
18
19
  id: string;
19
20
  name: string;
20
21
  internalId: string;
22
+ meta?: Record<string, any> | undefined;
21
23
  createdAt?: string | undefined;
22
24
  archivedAt?: string | undefined;
23
25
  credentials?: any;
@@ -29,6 +31,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
29
31
  id: string;
30
32
  name: string;
31
33
  internalId: string;
34
+ meta?: Record<string, any> | undefined;
32
35
  createdAt?: string | undefined;
33
36
  archivedAt?: string | undefined;
34
37
  credentials?: any;
@@ -43,6 +46,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
43
46
  key: z.ZodOptional<z.ZodString>;
44
47
  uuid: z.ZodOptional<z.ZodString>;
45
48
  description: z.ZodOptional<z.ZodString>;
49
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
46
50
  name: z.ZodString;
47
51
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
48
52
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -83,6 +87,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
83
87
  key?: string | undefined;
84
88
  uuid?: string | undefined;
85
89
  description?: string | undefined;
90
+ meta?: Record<string, any> | undefined;
86
91
  state?: import("..").WorkspaceElementState | undefined;
87
92
  errors?: import("../..").ErrorDataSchema[] | undefined;
88
93
  createdAt?: string | undefined;
@@ -107,6 +112,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
107
112
  key?: string | undefined;
108
113
  uuid?: string | undefined;
109
114
  description?: string | undefined;
115
+ meta?: Record<string, any> | undefined;
110
116
  state?: import("..").WorkspaceElementState | undefined;
111
117
  errors?: import("../..").ErrorDataSchema[] | undefined;
112
118
  createdAt?: string | undefined;
@@ -130,6 +136,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
130
136
  key: z.ZodOptional<z.ZodString>;
131
137
  uuid: z.ZodOptional<z.ZodString>;
132
138
  description: z.ZodOptional<z.ZodString>;
139
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
133
140
  name: z.ZodString;
134
141
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
135
142
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -183,6 +190,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
183
190
  key?: string | undefined;
184
191
  uuid?: string | undefined;
185
192
  description?: string | undefined;
193
+ meta?: Record<string, any> | undefined;
186
194
  state?: import("..").WorkspaceElementState | undefined;
187
195
  errors?: import("../..").ErrorDataSchema[] | undefined;
188
196
  createdAt?: string | undefined;
@@ -210,6 +218,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
210
218
  key?: string | undefined;
211
219
  uuid?: string | undefined;
212
220
  description?: string | undefined;
221
+ meta?: Record<string, any> | undefined;
213
222
  state?: import("..").WorkspaceElementState | undefined;
214
223
  errors?: import("../..").ErrorDataSchema[] | undefined;
215
224
  createdAt?: string | undefined;
@@ -228,14 +237,15 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
228
237
  userId: string;
229
238
  datetime: string;
230
239
  appEventTypeId: string;
231
- appEventSubscriptionId: string;
232
240
  launchedFlowRunIds: string[];
241
+ appEventSubscriptionId: string;
233
242
  name?: string | undefined;
234
243
  event?: any;
235
244
  user?: {
236
245
  id: string;
237
246
  name: string;
238
247
  internalId: string;
248
+ meta?: Record<string, any> | undefined;
239
249
  createdAt?: string | undefined;
240
250
  archivedAt?: string | undefined;
241
251
  credentials?: any;
@@ -252,6 +262,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
252
262
  key?: string | undefined;
253
263
  uuid?: string | undefined;
254
264
  description?: string | undefined;
265
+ meta?: Record<string, any> | undefined;
255
266
  state?: import("..").WorkspaceElementState | undefined;
256
267
  errors?: import("../..").ErrorDataSchema[] | undefined;
257
268
  createdAt?: string | undefined;
@@ -287,6 +298,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
287
298
  key?: string | undefined;
288
299
  uuid?: string | undefined;
289
300
  description?: string | undefined;
301
+ meta?: Record<string, any> | undefined;
290
302
  state?: import("..").WorkspaceElementState | undefined;
291
303
  errors?: import("../..").ErrorDataSchema[] | undefined;
292
304
  createdAt?: string | undefined;
@@ -302,14 +314,15 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
302
314
  userId: string;
303
315
  datetime: string;
304
316
  appEventTypeId: string;
305
- appEventSubscriptionId: string;
306
317
  launchedFlowRunIds: string[];
318
+ appEventSubscriptionId: string;
307
319
  name?: string | undefined;
308
320
  event?: any;
309
321
  user?: {
310
322
  id: string;
311
323
  name: string;
312
324
  internalId: string;
325
+ meta?: Record<string, any> | undefined;
313
326
  createdAt?: string | undefined;
314
327
  archivedAt?: string | undefined;
315
328
  credentials?: any;
@@ -326,6 +339,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
326
339
  key?: string | undefined;
327
340
  uuid?: string | undefined;
328
341
  description?: string | undefined;
342
+ meta?: Record<string, any> | undefined;
329
343
  state?: import("..").WorkspaceElementState | undefined;
330
344
  errors?: import("../..").ErrorDataSchema[] | undefined;
331
345
  createdAt?: string | undefined;
@@ -361,6 +375,7 @@ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
361
375
  key?: string | undefined;
362
376
  uuid?: string | undefined;
363
377
  description?: string | undefined;
378
+ meta?: Record<string, any> | undefined;
364
379
  state?: import("..").WorkspaceElementState | undefined;
365
380
  errors?: import("../..").ErrorDataSchema[] | undefined;
366
381
  createdAt?: string | undefined;
@@ -26,6 +26,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
26
26
  key: z.ZodOptional<z.ZodString>;
27
27
  uuid: z.ZodOptional<z.ZodString>;
28
28
  description: z.ZodOptional<z.ZodString>;
29
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
29
30
  name: z.ZodString;
30
31
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
31
32
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -67,6 +68,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
67
68
  key: z.ZodOptional<z.ZodString>;
68
69
  uuid: z.ZodOptional<z.ZodString>;
69
70
  description: z.ZodOptional<z.ZodString>;
71
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
70
72
  name: z.ZodString;
71
73
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
72
74
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -107,6 +109,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
107
109
  key?: string | undefined;
108
110
  uuid?: string | undefined;
109
111
  description?: string | undefined;
112
+ meta?: Record<string, any> | undefined;
110
113
  state?: import("..").WorkspaceElementState | undefined;
111
114
  errors?: import("../..").ErrorDataSchema[] | undefined;
112
115
  createdAt?: string | undefined;
@@ -131,6 +134,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
131
134
  key?: string | undefined;
132
135
  uuid?: string | undefined;
133
136
  description?: string | undefined;
137
+ meta?: Record<string, any> | undefined;
134
138
  state?: import("..").WorkspaceElementState | undefined;
135
139
  errors?: import("../..").ErrorDataSchema[] | undefined;
136
140
  createdAt?: string | undefined;
@@ -151,6 +155,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
151
155
  user: z.ZodOptional<z.ZodObject<{
152
156
  id: z.ZodString;
153
157
  name: z.ZodString;
158
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
154
159
  internalId: z.ZodString;
155
160
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
156
161
  credentials: z.ZodOptional<z.ZodAny>;
@@ -163,6 +168,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
163
168
  id: string;
164
169
  name: string;
165
170
  internalId: string;
171
+ meta?: Record<string, any> | undefined;
166
172
  createdAt?: string | undefined;
167
173
  archivedAt?: string | undefined;
168
174
  credentials?: any;
@@ -174,6 +180,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
174
180
  id: string;
175
181
  name: string;
176
182
  internalId: string;
183
+ meta?: Record<string, any> | undefined;
177
184
  createdAt?: string | undefined;
178
185
  archivedAt?: string | undefined;
179
186
  credentials?: any;
@@ -200,6 +207,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
200
207
  key?: string | undefined;
201
208
  uuid?: string | undefined;
202
209
  description?: string | undefined;
210
+ meta?: Record<string, any> | undefined;
203
211
  state?: import("..").WorkspaceElementState | undefined;
204
212
  errors?: import("../..").ErrorDataSchema[] | undefined;
205
213
  createdAt?: string | undefined;
@@ -212,6 +220,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
212
220
  id: string;
213
221
  name: string;
214
222
  internalId: string;
223
+ meta?: Record<string, any> | undefined;
215
224
  createdAt?: string | undefined;
216
225
  archivedAt?: string | undefined;
217
226
  credentials?: any;
@@ -229,6 +238,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
229
238
  key?: string | undefined;
230
239
  uuid?: string | undefined;
231
240
  description?: string | undefined;
241
+ meta?: Record<string, any> | undefined;
232
242
  state?: import("..").WorkspaceElementState | undefined;
233
243
  errors?: import("../..").ErrorDataSchema[] | undefined;
234
244
  createdAt?: string | undefined;
@@ -264,6 +274,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
264
274
  key?: string | undefined;
265
275
  uuid?: string | undefined;
266
276
  description?: string | undefined;
277
+ meta?: Record<string, any> | undefined;
267
278
  state?: import("..").WorkspaceElementState | undefined;
268
279
  errors?: import("../..").ErrorDataSchema[] | undefined;
269
280
  createdAt?: string | undefined;
@@ -276,6 +287,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
276
287
  id: string;
277
288
  name: string;
278
289
  internalId: string;
290
+ meta?: Record<string, any> | undefined;
279
291
  createdAt?: string | undefined;
280
292
  archivedAt?: string | undefined;
281
293
  credentials?: any;
@@ -293,6 +305,7 @@ export declare const AppEventSubscriptionApiResponse: z.ZodObject<{
293
305
  key?: string | undefined;
294
306
  uuid?: string | undefined;
295
307
  description?: string | undefined;
308
+ meta?: Record<string, any> | undefined;
296
309
  state?: import("..").WorkspaceElementState | undefined;
297
310
  errors?: import("../..").ErrorDataSchema[] | undefined;
298
311
  createdAt?: string | undefined;
@@ -30,6 +30,7 @@ export declare const AppEventTypeApiResponse: import("zod").ZodObject<{
30
30
  key: import("zod").ZodOptional<import("zod").ZodString>;
31
31
  uuid: import("zod").ZodOptional<import("zod").ZodString>;
32
32
  description: import("zod").ZodOptional<import("zod").ZodString>;
33
+ meta: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
33
34
  name: import("zod").ZodString;
34
35
  state: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
35
36
  errors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("../..").ErrorDataSchema, import("zod").ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -70,6 +71,7 @@ export declare const AppEventTypeApiResponse: import("zod").ZodObject<{
70
71
  key?: string | undefined;
71
72
  uuid?: string | undefined;
72
73
  description?: string | undefined;
74
+ meta?: Record<string, any> | undefined;
73
75
  state?: import("..").WorkspaceElementState | undefined;
74
76
  errors?: import("../..").ErrorDataSchema[] | undefined;
75
77
  createdAt?: string | undefined;
@@ -94,6 +96,7 @@ export declare const AppEventTypeApiResponse: import("zod").ZodObject<{
94
96
  key?: string | undefined;
95
97
  uuid?: string | undefined;
96
98
  description?: string | undefined;
99
+ meta?: Record<string, any> | undefined;
97
100
  state?: import("..").WorkspaceElementState | undefined;
98
101
  errors?: import("../..").ErrorDataSchema[] | undefined;
99
102
  createdAt?: string | undefined;