@membranehq/sdk 0.7.1 → 0.7.3

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 (79) hide show
  1. package/dist/bundle.d.ts +3437 -2985
  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 -32
  28. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +70 -36
  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 +122 -76
  34. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +58 -24
  35. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +116 -92
  36. package/dist/dts/workspace-elements/api/flows-api.d.ts +125 -72
  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 +7 -4
  51. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +17 -10
  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 +7 -4
  56. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +15 -8
  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 +2 -2
  60. package/dist/dts/workspace-elements/base/flows/types.d.ts +21 -14
  61. package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -0
  62. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +163 -1
  63. package/dist/dts/workspace-elements/types.d.ts +118 -0
  64. package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
  65. package/dist/{index.module.d.mts → index.browser.d.mts} +18140 -17543
  66. package/dist/{index.d.ts → index.browser.d.ts} +18140 -17543
  67. package/dist/{index.js → index.browser.js} +108 -130
  68. package/dist/index.browser.js.map +1 -0
  69. package/dist/{index.module.mjs → index.browser.mjs} +104 -127
  70. package/dist/index.browser.mjs.map +1 -0
  71. package/dist/index.node.d.mts +27932 -0
  72. package/dist/index.node.d.ts +27932 -0
  73. package/dist/index.node.js +13334 -0
  74. package/dist/index.node.js.map +1 -0
  75. package/dist/index.node.mjs +12862 -0
  76. package/dist/index.node.mjs.map +1 -0
  77. package/package.json +38 -15
  78. package/dist/index.js.map +0 -1
  79. package/dist/index.module.mjs.map +0 -1
@@ -79,6 +79,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
79
79
  user: z.ZodOptional<z.ZodObject<{
80
80
  id: z.ZodString;
81
81
  name: z.ZodString;
82
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
82
83
  internalId: z.ZodString;
83
84
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
84
85
  credentials: z.ZodOptional<z.ZodAny>;
@@ -91,6 +92,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
91
92
  id: string;
92
93
  name: string;
93
94
  internalId: string;
95
+ meta?: Record<string, any> | undefined;
94
96
  createdAt?: string | undefined;
95
97
  archivedAt?: string | undefined;
96
98
  credentials?: any;
@@ -102,6 +104,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
102
104
  id: string;
103
105
  name: string;
104
106
  internalId: string;
107
+ meta?: Record<string, any> | undefined;
105
108
  createdAt?: string | undefined;
106
109
  archivedAt?: string | undefined;
107
110
  credentials?: any;
@@ -118,6 +121,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
118
121
  isTest: z.ZodOptional<z.ZodBoolean>;
119
122
  disconnected: z.ZodOptional<z.ZodBoolean>;
120
123
  isDefunct: z.ZodOptional<z.ZodBoolean>;
124
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
121
125
  error: z.ZodOptional<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>>;
122
126
  integrationId: z.ZodString;
123
127
  authOptionKey: z.ZodOptional<z.ZodString>;
@@ -127,24 +131,21 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
127
131
  nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
128
132
  archivedAt: z.ZodOptional<z.ZodString>;
129
133
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
130
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
131
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
132
134
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
133
135
  }, "strip", z.ZodTypeAny, {
134
136
  id: string;
135
137
  name: string;
136
138
  createdAt: string;
137
139
  updatedAt: string;
138
- userId: string;
139
140
  integrationId: string;
141
+ userId: string;
140
142
  error?: import("../..").ErrorDataSchema | undefined;
143
+ meta?: Record<string, any> | undefined;
141
144
  state?: import("..").WorkspaceElementState | undefined;
142
- errors?: import("../..").ErrorDataSchema[] | undefined;
143
145
  archivedAt?: string | undefined;
144
146
  isDeactivated?: boolean | undefined;
145
147
  authOptionKey?: string | undefined;
146
148
  isTest?: boolean | undefined;
147
- meta?: Record<string, any> | undefined;
148
149
  disconnected?: boolean | undefined;
149
150
  isDefunct?: boolean | undefined;
150
151
  lastActiveAt?: string | undefined;
@@ -154,16 +155,15 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
154
155
  name: string;
155
156
  createdAt: string;
156
157
  updatedAt: string;
157
- userId: string;
158
158
  integrationId: string;
159
+ userId: string;
159
160
  error?: import("../..").ErrorDataSchema | undefined;
161
+ meta?: Record<string, any> | undefined;
160
162
  state?: import("..").WorkspaceElementState | undefined;
161
- errors?: import("../..").ErrorDataSchema[] | undefined;
162
163
  archivedAt?: string | undefined;
163
164
  isDeactivated?: boolean | undefined;
164
165
  authOptionKey?: string | undefined;
165
166
  isTest?: boolean | undefined;
166
- meta?: Record<string, any> | undefined;
167
167
  disconnected?: boolean | undefined;
168
168
  isDefunct?: boolean | undefined;
169
169
  lastActiveAt?: string | undefined;
@@ -174,6 +174,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
174
174
  key: z.ZodOptional<z.ZodString>;
175
175
  uuid: z.ZodOptional<z.ZodString>;
176
176
  description: z.ZodOptional<z.ZodString>;
177
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
177
178
  name: z.ZodString;
178
179
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
179
180
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -208,6 +209,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
208
209
  key?: string | undefined;
209
210
  uuid?: string | undefined;
210
211
  description?: string | undefined;
212
+ meta?: Record<string, any> | undefined;
211
213
  state?: import("..").WorkspaceElementState | undefined;
212
214
  errors?: import("../..").ErrorDataSchema[] | undefined;
213
215
  revision?: string | undefined;
@@ -239,6 +241,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
239
241
  key?: string | undefined;
240
242
  uuid?: string | undefined;
241
243
  description?: string | undefined;
244
+ meta?: Record<string, any> | undefined;
242
245
  state?: import("..").WorkspaceElementState | undefined;
243
246
  errors?: import("../..").ErrorDataSchema[] | undefined;
244
247
  revision?: string | undefined;
@@ -266,24 +269,23 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
266
269
  }>>;
267
270
  }, "strip", z.ZodTypeAny, {
268
271
  id: string;
272
+ integrationId: string;
269
273
  userId: string;
270
274
  connectionId: string;
271
- integrationId: string;
272
275
  connection?: {
273
276
  id: string;
274
277
  name: string;
275
278
  createdAt: string;
276
279
  updatedAt: string;
277
- userId: string;
278
280
  integrationId: string;
281
+ userId: string;
279
282
  error?: import("../..").ErrorDataSchema | undefined;
283
+ meta?: Record<string, any> | undefined;
280
284
  state?: import("..").WorkspaceElementState | undefined;
281
- errors?: import("../..").ErrorDataSchema[] | undefined;
282
285
  archivedAt?: string | undefined;
283
286
  isDeactivated?: boolean | undefined;
284
287
  authOptionKey?: string | undefined;
285
288
  isTest?: boolean | undefined;
286
- meta?: Record<string, any> | undefined;
287
289
  disconnected?: boolean | undefined;
288
290
  isDefunct?: boolean | undefined;
289
291
  lastActiveAt?: string | undefined;
@@ -298,6 +300,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
298
300
  key?: string | undefined;
299
301
  uuid?: string | undefined;
300
302
  description?: string | undefined;
303
+ meta?: Record<string, any> | undefined;
301
304
  state?: import("..").WorkspaceElementState | undefined;
302
305
  errors?: import("../..").ErrorDataSchema[] | undefined;
303
306
  revision?: string | undefined;
@@ -331,6 +334,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
331
334
  id: string;
332
335
  name: string;
333
336
  internalId: string;
337
+ meta?: Record<string, any> | undefined;
334
338
  createdAt?: string | undefined;
335
339
  archivedAt?: string | undefined;
336
340
  credentials?: any;
@@ -364,24 +368,23 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
364
368
  globalWebhookEventSelector?: string | undefined;
365
369
  }, {
366
370
  id: string;
371
+ integrationId: string;
367
372
  userId: string;
368
373
  connectionId: string;
369
- integrationId: string;
370
374
  connection?: {
371
375
  id: string;
372
376
  name: string;
373
377
  createdAt: string;
374
378
  updatedAt: string;
375
- userId: string;
376
379
  integrationId: string;
380
+ userId: string;
377
381
  error?: import("../..").ErrorDataSchema | undefined;
382
+ meta?: Record<string, any> | undefined;
378
383
  state?: import("..").WorkspaceElementState | undefined;
379
- errors?: import("../..").ErrorDataSchema[] | undefined;
380
384
  archivedAt?: string | undefined;
381
385
  isDeactivated?: boolean | undefined;
382
386
  authOptionKey?: string | undefined;
383
387
  isTest?: boolean | undefined;
384
- meta?: Record<string, any> | undefined;
385
388
  disconnected?: boolean | undefined;
386
389
  isDefunct?: boolean | undefined;
387
390
  lastActiveAt?: string | undefined;
@@ -396,6 +399,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
396
399
  key?: string | undefined;
397
400
  uuid?: string | undefined;
398
401
  description?: string | undefined;
402
+ meta?: Record<string, any> | undefined;
399
403
  state?: import("..").WorkspaceElementState | undefined;
400
404
  errors?: import("../..").ErrorDataSchema[] | undefined;
401
405
  revision?: string | undefined;
@@ -429,6 +433,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
429
433
  id: string;
430
434
  name: string;
431
435
  internalId: string;
436
+ meta?: Record<string, any> | undefined;
432
437
  createdAt?: string | undefined;
433
438
  archivedAt?: string | undefined;
434
439
  credentials?: any;
@@ -217,6 +217,7 @@ export declare const ExternalEvent: z.ZodObject<{
217
217
  key: z.ZodOptional<z.ZodString>;
218
218
  uuid: z.ZodOptional<z.ZodString>;
219
219
  description: z.ZodOptional<z.ZodString>;
220
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
220
221
  name: z.ZodString;
221
222
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
222
223
  errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
@@ -251,6 +252,7 @@ export declare const ExternalEvent: z.ZodObject<{
251
252
  key?: string | undefined;
252
253
  uuid?: string | undefined;
253
254
  description?: string | undefined;
255
+ meta?: Record<string, any> | undefined;
254
256
  state?: import("..").WorkspaceElementState | undefined;
255
257
  errors?: import("../..").ErrorDataSchema[] | undefined;
256
258
  revision?: string | undefined;
@@ -282,6 +284,7 @@ export declare const ExternalEvent: z.ZodObject<{
282
284
  key?: string | undefined;
283
285
  uuid?: string | undefined;
284
286
  description?: string | undefined;
287
+ meta?: Record<string, any> | undefined;
285
288
  state?: import("..").WorkspaceElementState | undefined;
286
289
  errors?: import("../..").ErrorDataSchema[] | undefined;
287
290
  revision?: string | undefined;
@@ -315,6 +318,7 @@ export declare const ExternalEvent: z.ZodObject<{
315
318
  key?: string | undefined;
316
319
  uuid?: string | undefined;
317
320
  description?: string | undefined;
321
+ meta?: Record<string, any> | undefined;
318
322
  state?: import("..").WorkspaceElementState | undefined;
319
323
  errors?: import("../..").ErrorDataSchema[] | undefined;
320
324
  revision?: string | undefined;
@@ -364,6 +368,7 @@ export declare const ExternalEvent: z.ZodObject<{
364
368
  key?: string | undefined;
365
369
  uuid?: string | undefined;
366
370
  description?: string | undefined;
371
+ meta?: Record<string, any> | undefined;
367
372
  state?: import("..").WorkspaceElementState | undefined;
368
373
  errors?: import("../..").ErrorDataSchema[] | undefined;
369
374
  revision?: string | undefined;
@@ -429,6 +434,7 @@ export declare const ExternalEvent: z.ZodObject<{
429
434
  key?: string | undefined;
430
435
  uuid?: string | undefined;
431
436
  description?: string | undefined;
437
+ meta?: Record<string, any> | undefined;
432
438
  state?: import("..").WorkspaceElementState | undefined;
433
439
  errors?: import("../..").ErrorDataSchema[] | undefined;
434
440
  revision?: string | undefined;
@@ -494,6 +500,7 @@ export declare const ExternalEvent: z.ZodObject<{
494
500
  key?: string | undefined;
495
501
  uuid?: string | undefined;
496
502
  description?: string | undefined;
503
+ meta?: Record<string, any> | undefined;
497
504
  state?: import("..").WorkspaceElementState | undefined;
498
505
  errors?: import("../..").ErrorDataSchema[] | undefined;
499
506
  revision?: string | undefined;