@membranehq/sdk 0.5.0 → 0.5.1

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 (69) hide show
  1. package/dist/bundle.d.ts +13011 -5117
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +31 -10
  5. package/dist/dts/accessors/integrations-accessors.d.ts +31 -10
  6. package/dist/dts/data-schema/index.d.ts +0 -1
  7. package/dist/dts/entity-repository.d.ts +7 -6
  8. package/dist/dts/http-requests.d.ts +2 -2
  9. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +393 -90
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  13. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  14. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  15. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  16. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +387 -97
  18. package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
  19. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
  20. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  21. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +357 -79
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +169 -27
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +367 -69
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +1040 -257
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +121 -37
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +151 -26
  34. package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
  35. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +28 -12
  36. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
  37. package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
  38. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
  39. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
  40. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
  41. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
  42. package/dist/dts/workspace-elements/base/connections/types.d.ts +18 -12
  43. package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
  44. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
  45. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
  46. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
  47. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
  48. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
  49. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
  50. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
  51. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
  52. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +6 -6
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +26 -11
  54. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
  55. package/dist/dts/workspace-elements/base/flows/types.d.ts +26 -12
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +557 -67
  57. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
  58. package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
  59. package/dist/dts/workspace-elements/types.d.ts +25 -3
  60. package/dist/dts/workspaces/types.d.ts +4 -3
  61. package/dist/index.d.ts +21959 -8561
  62. package/dist/index.js +258 -109
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +21959 -8561
  65. package/dist/index.module.mjs +225 -101
  66. package/dist/index.module.mjs.map +1 -1
  67. package/package.json +3 -2
  68. package/dist/dts/data-schema/schemas.d.ts +0 -4
  69. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -4,8 +4,13 @@ import { WorkspaceElementState } from '../../types';
4
4
  export declare const BaseFlowInstance: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  name: z.ZodString;
7
- key: z.ZodString;
7
+ key: z.ZodOptional<z.ZodString>;
8
+ uuid: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
8
10
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
11
+ revision: z.ZodOptional<z.ZodString>;
12
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
13
+ archivedAt: z.ZodOptional<z.ZodString>;
9
14
  } & {
10
15
  userId: z.ZodString;
11
16
  connectionId: z.ZodOptional<z.ZodString>;
@@ -33,16 +38,21 @@ export declare const BaseFlowInstance: z.ZodObject<{
33
38
  }>>;
34
39
  dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
35
40
  }, "strip", z.ZodTypeAny, {
36
- key: string;
37
41
  id: string;
38
42
  name: string;
39
- userId: string;
40
- integrationId: string;
41
43
  createdAt: string;
42
44
  updatedAt: string;
45
+ userId: string;
46
+ integrationId: string;
43
47
  enabled: boolean;
48
+ key?: string | undefined;
49
+ uuid?: string | undefined;
50
+ description?: string | undefined;
44
51
  state?: WorkspaceElementState | undefined;
45
52
  errors?: any[] | undefined;
53
+ revision?: string | undefined;
54
+ isDeactivated?: boolean | undefined;
55
+ archivedAt?: string | undefined;
46
56
  instanceKey?: string | undefined;
47
57
  connectionId?: string | undefined;
48
58
  parameters?: any;
@@ -57,16 +67,21 @@ export declare const BaseFlowInstance: z.ZodObject<{
57
67
  flowId?: string | undefined;
58
68
  outdated?: boolean | undefined;
59
69
  }, {
60
- key: string;
61
70
  id: string;
62
71
  name: string;
63
- userId: string;
64
- integrationId: string;
65
72
  createdAt: string;
66
73
  updatedAt: string;
74
+ userId: string;
75
+ integrationId: string;
67
76
  enabled: boolean;
77
+ key?: string | undefined;
78
+ uuid?: string | undefined;
79
+ description?: string | undefined;
68
80
  state?: WorkspaceElementState | undefined;
69
81
  errors?: any[] | undefined;
82
+ revision?: string | undefined;
83
+ isDeactivated?: boolean | undefined;
84
+ archivedAt?: string | undefined;
70
85
  instanceKey?: string | undefined;
71
86
  connectionId?: string | undefined;
72
87
  parameters?: any;
@@ -122,9 +137,10 @@ export declare const FlowInstanceNode: z.ZodObject<{
122
137
  concurrency?: number | undefined;
123
138
  type?: string | undefined;
124
139
  name?: string | undefined;
140
+ description?: string | undefined;
125
141
  state?: FlowInstanceNodeState | undefined;
126
142
  errors?: any[] | undefined;
127
- description?: string | undefined;
143
+ ui?: any;
128
144
  isCustomized?: boolean | undefined;
129
145
  inputSchema?: any;
130
146
  config?: any;
@@ -132,7 +148,6 @@ export declare const FlowInstanceNode: z.ZodObject<{
132
148
  dependencies?: any[] | undefined;
133
149
  version?: number | undefined;
134
150
  onError?: "stop" | "continue" | undefined;
135
- ui?: any;
136
151
  outputExample?: any;
137
152
  links?: {
138
153
  key?: string | undefined;
@@ -145,9 +160,10 @@ export declare const FlowInstanceNode: z.ZodObject<{
145
160
  concurrency?: number | undefined;
146
161
  type?: string | undefined;
147
162
  name?: string | undefined;
163
+ description?: string | undefined;
148
164
  state?: FlowInstanceNodeState | undefined;
149
165
  errors?: any[] | undefined;
150
- description?: string | undefined;
166
+ ui?: any;
151
167
  isCustomized?: boolean | undefined;
152
168
  inputSchema?: any;
153
169
  config?: any;
@@ -155,7 +171,6 @@ export declare const FlowInstanceNode: z.ZodObject<{
155
171
  dependencies?: any[] | undefined;
156
172
  version?: number | undefined;
157
173
  onError?: "stop" | "continue" | undefined;
158
- ui?: any;
159
174
  outputExample?: any;
160
175
  links?: {
161
176
  key?: string | undefined;
@@ -1,11 +1,24 @@
1
1
  import { z } from 'zod';
2
- import { FlowRunState, FlowRunLaunchedByTrigger } from '../../api/flow-runs-api';
3
2
  export declare enum FlowRunNodeState {
4
3
  RUNNING = "running",
5
4
  COMPLETED = "completed",
6
5
  STOPPED = "stopped",
7
6
  FAILED = "failed"
8
7
  }
8
+ export declare enum FlowRunState {
9
+ QUEUED = "queued",
10
+ RUNNING = "running",
11
+ COMPLETED = "completed",
12
+ STOPPED = "stopped",
13
+ FAILED = "failed"
14
+ }
15
+ export declare enum FlowRunLaunchedByTrigger {
16
+ ApiTrigger = "api-trigger",
17
+ ScheduleTrigger = "schedule-trigger",
18
+ AppEventTrigger = "app-event-trigger",
19
+ DataSourceTrigger = "data-source-trigger",
20
+ ExternalEvent = "external-event"
21
+ }
9
22
  export declare const FlowRunLaunchedBy: z.ZodObject<{
10
23
  type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
11
24
  ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -45,13 +45,13 @@ export declare const FlowNode: z.ZodObject<{
45
45
  type?: string | undefined;
46
46
  name?: string | undefined;
47
47
  description?: string | undefined;
48
+ ui?: any;
48
49
  isCustomized?: boolean | undefined;
49
50
  inputSchema?: any;
50
51
  config?: any;
51
52
  outputSchema?: any;
52
53
  version?: number | undefined;
53
54
  onError?: "stop" | "continue" | undefined;
54
- ui?: any;
55
55
  outputExample?: any;
56
56
  links?: {
57
57
  key?: string | undefined;
@@ -63,13 +63,13 @@ export declare const FlowNode: z.ZodObject<{
63
63
  type?: string | undefined;
64
64
  name?: string | undefined;
65
65
  description?: string | undefined;
66
+ ui?: any;
66
67
  isCustomized?: boolean | undefined;
67
68
  inputSchema?: any;
68
69
  config?: any;
69
70
  outputSchema?: any;
70
71
  version?: number | undefined;
71
72
  onError?: "stop" | "continue" | undefined;
72
- ui?: any;
73
73
  outputExample?: any;
74
74
  links?: {
75
75
  key?: string | undefined;
@@ -81,10 +81,14 @@ export type FlowNode = z.infer<typeof FlowNode>;
81
81
  export declare const BaseFlow: z.ZodObject<{
82
82
  id: z.ZodString;
83
83
  name: z.ZodString;
84
- } & {
85
- key: z.ZodString;
84
+ key: z.ZodOptional<z.ZodString>;
85
+ uuid: z.ZodOptional<z.ZodString>;
86
+ description: z.ZodOptional<z.ZodString>;
86
87
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
87
88
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
89
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
90
+ createdAt: z.ZodOptional<z.ZodString>;
91
+ updatedAt: z.ZodOptional<z.ZodString>;
88
92
  } & {
89
93
  integrationId: z.ZodOptional<z.ZodString>;
90
94
  universalFlowId: z.ZodOptional<z.ZodString>;
@@ -121,13 +125,13 @@ export declare const BaseFlow: z.ZodObject<{
121
125
  type?: string | undefined;
122
126
  name?: string | undefined;
123
127
  description?: string | undefined;
128
+ ui?: any;
124
129
  isCustomized?: boolean | undefined;
125
130
  inputSchema?: any;
126
131
  config?: any;
127
132
  outputSchema?: any;
128
133
  version?: number | undefined;
129
134
  onError?: "stop" | "continue" | undefined;
130
- ui?: any;
131
135
  outputExample?: any;
132
136
  links?: {
133
137
  key?: string | undefined;
@@ -139,13 +143,13 @@ export declare const BaseFlow: z.ZodObject<{
139
143
  type?: string | undefined;
140
144
  name?: string | undefined;
141
145
  description?: string | undefined;
146
+ ui?: any;
142
147
  isCustomized?: boolean | undefined;
143
148
  inputSchema?: any;
144
149
  config?: any;
145
150
  outputSchema?: any;
146
151
  version?: number | undefined;
147
152
  onError?: "stop" | "continue" | undefined;
148
- ui?: any;
149
153
  outputExample?: any;
150
154
  links?: {
151
155
  key?: string | undefined;
@@ -158,15 +162,20 @@ export declare const BaseFlow: z.ZodObject<{
158
162
  revision: z.ZodString;
159
163
  customized: z.ZodOptional<z.ZodBoolean>;
160
164
  }, "strip", z.ZodTypeAny, {
161
- key: string;
162
165
  id: string;
163
166
  name: string;
164
167
  revision: string;
168
+ key?: string | undefined;
169
+ uuid?: string | undefined;
170
+ description?: string | undefined;
165
171
  state?: import("../../types").WorkspaceElementState | undefined;
166
172
  errors?: any[] | undefined;
173
+ isDeactivated?: boolean | undefined;
174
+ createdAt?: string | undefined;
175
+ updatedAt?: string | undefined;
176
+ archivedAt?: string | undefined;
167
177
  integrationId?: string | undefined;
168
178
  parametersSchema?: DataSchema | undefined;
169
- archivedAt?: string | undefined;
170
179
  customized?: boolean | undefined;
171
180
  universalFlowId?: string | undefined;
172
181
  universalFlowRevision?: string | undefined;
@@ -175,13 +184,13 @@ export declare const BaseFlow: z.ZodObject<{
175
184
  type?: string | undefined;
176
185
  name?: string | undefined;
177
186
  description?: string | undefined;
187
+ ui?: any;
178
188
  isCustomized?: boolean | undefined;
179
189
  inputSchema?: any;
180
190
  config?: any;
181
191
  outputSchema?: any;
182
192
  version?: number | undefined;
183
193
  onError?: "stop" | "continue" | undefined;
184
- ui?: any;
185
194
  outputExample?: any;
186
195
  links?: {
187
196
  key?: string | undefined;
@@ -191,15 +200,20 @@ export declare const BaseFlow: z.ZodObject<{
191
200
  }> | undefined;
192
201
  autoCreateInstances?: boolean | undefined;
193
202
  }, {
194
- key: string;
195
203
  id: string;
196
204
  name: string;
197
205
  revision: string;
206
+ key?: string | undefined;
207
+ uuid?: string | undefined;
208
+ description?: string | undefined;
198
209
  state?: import("../../types").WorkspaceElementState | undefined;
199
210
  errors?: any[] | undefined;
211
+ isDeactivated?: boolean | undefined;
212
+ createdAt?: string | undefined;
213
+ updatedAt?: string | undefined;
214
+ archivedAt?: string | undefined;
200
215
  integrationId?: string | undefined;
201
216
  parametersSchema?: DataSchema | undefined;
202
- archivedAt?: string | undefined;
203
217
  customized?: boolean | undefined;
204
218
  universalFlowId?: string | undefined;
205
219
  universalFlowRevision?: string | undefined;
@@ -208,13 +222,13 @@ export declare const BaseFlow: z.ZodObject<{
208
222
  type?: string | undefined;
209
223
  name?: string | undefined;
210
224
  description?: string | undefined;
225
+ ui?: any;
211
226
  isCustomized?: boolean | undefined;
212
227
  inputSchema?: any;
213
228
  config?: any;
214
229
  outputSchema?: any;
215
230
  version?: number | undefined;
216
231
  onError?: "stop" | "continue" | undefined;
217
- ui?: any;
218
232
  outputExample?: any;
219
233
  links?: {
220
234
  key?: string | undefined;