@membranehq/sdk 0.7.4 → 0.7.5

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 (83) hide show
  1. package/dist/bundle.d.ts +2063 -13949
  2. package/dist/bundle.js +3949 -4253
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +28 -28
  5. package/dist/dts/accessors/integrations-accessors.d.ts +28 -28
  6. package/dist/dts/config/index.d.ts +1 -11
  7. package/dist/dts/date-time/business-day.d.ts +2 -0
  8. package/dist/dts/date-time/business-day.test.d.ts +1 -0
  9. package/dist/dts/date-time/index.d.ts +1 -0
  10. package/dist/dts/entity-repository.d.ts +13 -64
  11. package/dist/dts/http-requests.d.ts +2 -14
  12. package/dist/dts/iframe.d.ts +4 -12
  13. package/dist/dts/scenario-templates/index.d.ts +60 -484
  14. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +17 -248
  15. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +23 -339
  16. package/dist/dts/workspace-elements/api/actions-api.d.ts +52 -639
  17. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +8 -169
  18. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -51
  19. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +15 -325
  20. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -248
  21. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +28 -90
  22. package/dist/dts/workspace-elements/api/connections-api.d.ts +56 -892
  23. package/dist/dts/workspace-elements/api/customers-api.d.ts +8 -68
  24. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +21 -369
  25. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +17 -45
  26. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +79 -1341
  27. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +52 -767
  28. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +29 -502
  29. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +29 -506
  30. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -381
  31. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -425
  32. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +109 -2321
  33. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +47 -702
  34. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
  35. package/dist/dts/workspace-elements/api/flows-api.d.ts +149 -1836
  36. package/dist/dts/workspace-elements/api/integrations-api.d.ts +45 -287
  37. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +27 -450
  38. package/dist/dts/workspace-elements/api/screens-api.d.ts +11 -31
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +6 -60
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +3 -28
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +10 -82
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +4 -47
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -36
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +6 -75
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +6 -69
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -56
  47. package/dist/dts/workspace-elements/base/connectors/types.d.ts +1 -11
  48. package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -25
  49. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +141 -1471
  50. package/dist/dts/workspace-elements/base/data-collections/types.d.ts +1 -29
  51. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +6 -61
  52. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -32
  53. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +60 -973
  54. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +8 -104
  55. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -26
  56. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -30
  57. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +9 -161
  58. package/dist/dts/workspace-elements/base/external-events/types.d.ts +7 -121
  59. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +9 -76
  60. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +13 -133
  61. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +16 -194
  62. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -132
  63. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +29 -284
  64. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +13 -93
  65. package/dist/dts/workspace-elements/base/flows/index.d.ts +20 -240
  66. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +7 -56
  67. package/dist/dts/workspace-elements/base/integrations/types.d.ts +23 -539
  68. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +11 -119
  69. package/dist/dts/workspace-elements/base/screens/types.d.ts +6 -31
  70. package/dist/dts/workspace-elements/types.d.ts +15 -153
  71. package/dist/index.browser.d.mts +5926 -24800
  72. package/dist/index.browser.d.ts +5926 -24800
  73. package/dist/index.browser.js +287 -281
  74. package/dist/index.browser.js.map +1 -1
  75. package/dist/index.browser.mjs +285 -279
  76. package/dist/index.browser.mjs.map +1 -1
  77. package/dist/index.node.d.mts +5956 -24840
  78. package/dist/index.node.d.ts +5956 -24840
  79. package/dist/index.node.js +287 -281
  80. package/dist/index.node.js.map +1 -1
  81. package/dist/index.node.mjs +285 -279
  82. package/dist/index.node.mjs.map +1 -1
  83. package/package.json +2 -2
@@ -3,14 +3,13 @@ import { DataSchema } from '../../../data-schema';
3
3
  export * from './nodes';
4
4
  export declare const FlowEditableProperties: z.ZodObject<{
5
5
  key: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
6
7
  name: z.ZodOptional<z.ZodString>;
7
8
  uuid: z.ZodOptional<z.ZodString>;
8
- description: z.ZodOptional<z.ZodString>;
9
9
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10
- } & {
11
10
  integrationId: z.ZodOptional<z.ZodString>;
12
11
  universalFlowId: z.ZodOptional<z.ZodString>;
13
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
12
+ parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
14
13
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
15
14
  type: z.ZodOptional<z.ZodString>;
16
15
  version: z.ZodOptional<z.ZodNumber>;
@@ -18,7 +17,10 @@ export declare const FlowEditableProperties: z.ZodObject<{
18
17
  description: z.ZodOptional<z.ZodString>;
19
18
  config: z.ZodOptional<z.ZodAny>;
20
19
  concurrency: z.ZodOptional<z.ZodNumber>;
21
- onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
20
+ onError: z.ZodOptional<z.ZodEnum<{
21
+ continue: "continue";
22
+ stop: "stop";
23
+ }>>;
22
24
  ui: z.ZodOptional<z.ZodAny>;
23
25
  inputSchema: z.ZodOptional<z.ZodAny>;
24
26
  outputSchema: z.ZodOptional<z.ZodAny>;
@@ -27,123 +29,21 @@ export declare const FlowEditableProperties: z.ZodObject<{
27
29
  key: z.ZodOptional<z.ZodString>;
28
30
  filter: z.ZodOptional<z.ZodAny>;
29
31
  name: z.ZodOptional<z.ZodString>;
30
- }, "strip", z.ZodTypeAny, {
31
- key?: string | undefined;
32
- filter?: any;
33
- name?: string | undefined;
34
- }, {
35
- key?: string | undefined;
36
- filter?: any;
37
- name?: string | undefined;
38
- }>, "many">>;
32
+ }, z.core.$strip>>>;
39
33
  isCustomized: z.ZodOptional<z.ZodBoolean>;
40
- }, "strip", z.ZodTypeAny, {
41
- concurrency?: number | undefined;
42
- type?: string | undefined;
43
- name?: string | undefined;
44
- description?: string | undefined;
45
- isCustomized?: boolean | undefined;
46
- inputSchema?: any;
47
- config?: any;
48
- outputSchema?: any;
49
- version?: number | undefined;
50
- onError?: "stop" | "continue" | undefined;
51
- ui?: any;
52
- outputExample?: any;
53
- links?: {
54
- key?: string | undefined;
55
- filter?: any;
56
- name?: string | undefined;
57
- }[] | undefined;
58
- }, {
59
- concurrency?: number | undefined;
60
- type?: string | undefined;
61
- name?: string | undefined;
62
- description?: string | undefined;
63
- isCustomized?: boolean | undefined;
64
- inputSchema?: any;
65
- config?: any;
66
- outputSchema?: any;
67
- version?: number | undefined;
68
- onError?: "stop" | "continue" | undefined;
69
- ui?: any;
70
- outputExample?: any;
71
- links?: {
72
- key?: string | undefined;
73
- filter?: any;
74
- name?: string | undefined;
75
- }[] | undefined;
76
- }>>>;
34
+ }, z.core.$strip>>>;
77
35
  autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
78
- }, "strip", z.ZodTypeAny, {
79
- key?: string | undefined;
80
- name?: string | undefined;
81
- uuid?: string | undefined;
82
- description?: string | undefined;
83
- meta?: Record<string, any> | undefined;
84
- integrationId?: string | undefined;
85
- parametersSchema?: DataSchema | undefined;
86
- universalFlowId?: string | undefined;
87
- nodes?: Record<string, {
88
- concurrency?: number | undefined;
89
- type?: string | undefined;
90
- name?: string | undefined;
91
- description?: string | undefined;
92
- isCustomized?: boolean | undefined;
93
- inputSchema?: any;
94
- config?: any;
95
- outputSchema?: any;
96
- version?: number | undefined;
97
- onError?: "stop" | "continue" | undefined;
98
- ui?: any;
99
- outputExample?: any;
100
- links?: {
101
- key?: string | undefined;
102
- filter?: any;
103
- name?: string | undefined;
104
- }[] | undefined;
105
- }> | undefined;
106
- autoCreateInstances?: boolean | undefined;
107
- }, {
108
- key?: string | undefined;
109
- name?: string | undefined;
110
- uuid?: string | undefined;
111
- description?: string | undefined;
112
- meta?: Record<string, any> | undefined;
113
- integrationId?: string | undefined;
114
- parametersSchema?: DataSchema | undefined;
115
- universalFlowId?: string | undefined;
116
- nodes?: Record<string, {
117
- concurrency?: number | undefined;
118
- type?: string | undefined;
119
- name?: string | undefined;
120
- description?: string | undefined;
121
- isCustomized?: boolean | undefined;
122
- inputSchema?: any;
123
- config?: any;
124
- outputSchema?: any;
125
- version?: number | undefined;
126
- onError?: "stop" | "continue" | undefined;
127
- ui?: any;
128
- outputExample?: any;
129
- links?: {
130
- key?: string | undefined;
131
- filter?: any;
132
- name?: string | undefined;
133
- }[] | undefined;
134
- }> | undefined;
135
- autoCreateInstances?: boolean | undefined;
136
- }>;
36
+ }, z.core.$strip>;
137
37
  export type FlowEditableProperties = z.infer<typeof FlowEditableProperties>;
138
38
  export declare const BaseFlow: z.ZodObject<{
139
39
  id: z.ZodString;
140
40
  key: z.ZodOptional<z.ZodString>;
141
- uuid: z.ZodOptional<z.ZodString>;
142
41
  description: z.ZodOptional<z.ZodString>;
42
+ uuid: z.ZodOptional<z.ZodString>;
143
43
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
144
44
  integrationId: z.ZodOptional<z.ZodString>;
145
45
  universalFlowId: z.ZodOptional<z.ZodString>;
146
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
46
+ parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
147
47
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
148
48
  type: z.ZodOptional<z.ZodString>;
149
49
  version: z.ZodOptional<z.ZodNumber>;
@@ -151,7 +51,10 @@ export declare const BaseFlow: z.ZodObject<{
151
51
  description: z.ZodOptional<z.ZodString>;
152
52
  config: z.ZodOptional<z.ZodAny>;
153
53
  concurrency: z.ZodOptional<z.ZodNumber>;
154
- onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
54
+ onError: z.ZodOptional<z.ZodEnum<{
55
+ continue: "continue";
56
+ stop: "stop";
57
+ }>>;
155
58
  ui: z.ZodOptional<z.ZodAny>;
156
59
  inputSchema: z.ZodOptional<z.ZodAny>;
157
60
  outputSchema: z.ZodOptional<z.ZodAny>;
@@ -160,58 +63,13 @@ export declare const BaseFlow: z.ZodObject<{
160
63
  key: z.ZodOptional<z.ZodString>;
161
64
  filter: z.ZodOptional<z.ZodAny>;
162
65
  name: z.ZodOptional<z.ZodString>;
163
- }, "strip", z.ZodTypeAny, {
164
- key?: string | undefined;
165
- filter?: any;
166
- name?: string | undefined;
167
- }, {
168
- key?: string | undefined;
169
- filter?: any;
170
- name?: string | undefined;
171
- }>, "many">>;
66
+ }, z.core.$strip>>>;
172
67
  isCustomized: z.ZodOptional<z.ZodBoolean>;
173
- }, "strip", z.ZodTypeAny, {
174
- concurrency?: number | undefined;
175
- type?: string | undefined;
176
- name?: string | undefined;
177
- description?: string | undefined;
178
- isCustomized?: boolean | undefined;
179
- inputSchema?: any;
180
- config?: any;
181
- outputSchema?: any;
182
- version?: number | undefined;
183
- onError?: "stop" | "continue" | undefined;
184
- ui?: any;
185
- outputExample?: any;
186
- links?: {
187
- key?: string | undefined;
188
- filter?: any;
189
- name?: string | undefined;
190
- }[] | undefined;
191
- }, {
192
- concurrency?: number | undefined;
193
- type?: string | undefined;
194
- name?: string | undefined;
195
- description?: string | undefined;
196
- isCustomized?: boolean | undefined;
197
- inputSchema?: any;
198
- config?: any;
199
- outputSchema?: any;
200
- version?: number | undefined;
201
- onError?: "stop" | "continue" | undefined;
202
- ui?: any;
203
- outputExample?: any;
204
- links?: {
205
- key?: string | undefined;
206
- filter?: any;
207
- name?: string | undefined;
208
- }[] | undefined;
209
- }>>>;
68
+ }, z.core.$strip>>>;
210
69
  autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
211
- } & {
212
70
  name: z.ZodString;
213
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
214
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
71
+ state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
72
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
215
73
  revision: z.ZodOptional<z.ZodString>;
216
74
  createdAt: z.ZodOptional<z.ZodString>;
217
75
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -219,83 +77,5 @@ export declare const BaseFlow: z.ZodObject<{
219
77
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
220
78
  isCustomized: z.ZodOptional<z.ZodBoolean>;
221
79
  universalFlowRevision: z.ZodOptional<z.ZodString>;
222
- }, "strip", z.ZodTypeAny, {
223
- id: string;
224
- name: string;
225
- key?: string | undefined;
226
- uuid?: string | undefined;
227
- description?: string | undefined;
228
- meta?: Record<string, any> | undefined;
229
- state?: import("../../types").WorkspaceElementState | undefined;
230
- errors?: import("../../..").ErrorDataSchema[] | undefined;
231
- revision?: string | undefined;
232
- createdAt?: string | undefined;
233
- updatedAt?: string | undefined;
234
- archivedAt?: string | undefined;
235
- isDeactivated?: boolean | undefined;
236
- integrationId?: string | undefined;
237
- isCustomized?: boolean | undefined;
238
- parametersSchema?: DataSchema | undefined;
239
- universalFlowId?: string | undefined;
240
- nodes?: Record<string, {
241
- concurrency?: number | undefined;
242
- type?: string | undefined;
243
- name?: string | undefined;
244
- description?: string | undefined;
245
- isCustomized?: boolean | undefined;
246
- inputSchema?: any;
247
- config?: any;
248
- outputSchema?: any;
249
- version?: number | undefined;
250
- onError?: "stop" | "continue" | undefined;
251
- ui?: any;
252
- outputExample?: any;
253
- links?: {
254
- key?: string | undefined;
255
- filter?: any;
256
- name?: string | undefined;
257
- }[] | undefined;
258
- }> | undefined;
259
- autoCreateInstances?: boolean | undefined;
260
- universalFlowRevision?: string | 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?: import("../../types").WorkspaceElementState | undefined;
269
- errors?: import("../../..").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
- isCustomized?: boolean | undefined;
277
- parametersSchema?: DataSchema | undefined;
278
- universalFlowId?: string | undefined;
279
- nodes?: Record<string, {
280
- concurrency?: number | undefined;
281
- type?: string | undefined;
282
- name?: string | undefined;
283
- description?: string | undefined;
284
- isCustomized?: boolean | undefined;
285
- inputSchema?: any;
286
- config?: any;
287
- outputSchema?: any;
288
- version?: number | undefined;
289
- onError?: "stop" | "continue" | undefined;
290
- ui?: any;
291
- outputExample?: any;
292
- links?: {
293
- key?: string | undefined;
294
- filter?: any;
295
- name?: string | undefined;
296
- }[] | undefined;
297
- }> | undefined;
298
- autoCreateInstances?: boolean | undefined;
299
- universalFlowRevision?: string | undefined;
300
- }>;
80
+ }, z.core.$strip>;
301
81
  export type BaseFlow = z.infer<typeof BaseFlow>;
@@ -4,15 +4,7 @@ export declare const FlowNodeLink: z.ZodObject<{
4
4
  key: z.ZodOptional<z.ZodString>;
5
5
  filter: z.ZodOptional<z.ZodAny>;
6
6
  name: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- key?: string | undefined;
9
- filter?: any;
10
- name?: string | undefined;
11
- }, {
12
- key?: string | undefined;
13
- filter?: any;
14
- name?: string | undefined;
15
- }>;
7
+ }, z.core.$strip>;
16
8
  export type FlowNodeLink = z.infer<typeof FlowNodeLink>;
17
9
  export declare const FlowNode: z.ZodObject<{
18
10
  type: z.ZodOptional<z.ZodString>;
@@ -21,7 +13,10 @@ export declare const FlowNode: z.ZodObject<{
21
13
  description: z.ZodOptional<z.ZodString>;
22
14
  config: z.ZodOptional<z.ZodAny>;
23
15
  concurrency: z.ZodOptional<z.ZodNumber>;
24
- onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
16
+ onError: z.ZodOptional<z.ZodEnum<{
17
+ continue: "continue";
18
+ stop: "stop";
19
+ }>>;
25
20
  ui: z.ZodOptional<z.ZodAny>;
26
21
  inputSchema: z.ZodOptional<z.ZodAny>;
27
22
  outputSchema: z.ZodOptional<z.ZodAny>;
@@ -30,53 +25,9 @@ export declare const FlowNode: z.ZodObject<{
30
25
  key: z.ZodOptional<z.ZodString>;
31
26
  filter: z.ZodOptional<z.ZodAny>;
32
27
  name: z.ZodOptional<z.ZodString>;
33
- }, "strip", z.ZodTypeAny, {
34
- key?: string | undefined;
35
- filter?: any;
36
- name?: string | undefined;
37
- }, {
38
- key?: string | undefined;
39
- filter?: any;
40
- name?: string | undefined;
41
- }>, "many">>;
28
+ }, z.core.$strip>>>;
42
29
  isCustomized: z.ZodOptional<z.ZodBoolean>;
43
- }, "strip", z.ZodTypeAny, {
44
- concurrency?: number | undefined;
45
- type?: string | undefined;
46
- name?: string | undefined;
47
- description?: string | undefined;
48
- isCustomized?: boolean | undefined;
49
- inputSchema?: any;
50
- config?: any;
51
- outputSchema?: any;
52
- version?: number | undefined;
53
- onError?: "stop" | "continue" | undefined;
54
- ui?: any;
55
- outputExample?: any;
56
- links?: {
57
- key?: string | undefined;
58
- filter?: any;
59
- name?: string | undefined;
60
- }[] | undefined;
61
- }, {
62
- concurrency?: number | undefined;
63
- type?: string | undefined;
64
- name?: string | undefined;
65
- description?: string | undefined;
66
- isCustomized?: boolean | undefined;
67
- inputSchema?: any;
68
- config?: any;
69
- outputSchema?: any;
70
- version?: number | undefined;
71
- onError?: "stop" | "continue" | undefined;
72
- ui?: any;
73
- outputExample?: any;
74
- links?: {
75
- key?: string | undefined;
76
- filter?: any;
77
- name?: string | undefined;
78
- }[] | undefined;
79
- }>;
30
+ }, z.core.$strip>;
80
31
  export type FlowNode = z.infer<typeof FlowNode>;
81
32
  export interface FlowNodeSpec {
82
33
  name: string;