@membranehq/sdk 0.5.1 → 0.6.0

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 (66) hide show
  1. package/dist/bundle.d.ts +1949 -3947
  2. package/dist/bundle.js +9 -4
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/action-instances-accessors.d.ts +5 -2
  5. package/dist/dts/accessors/actions-accessors.d.ts +2 -2
  6. package/dist/dts/accessors/connections-accessors.d.ts +8 -22
  7. package/dist/dts/accessors/integrations-accessors.d.ts +8 -22
  8. package/dist/dts/errors/index.d.ts +10 -1
  9. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +122 -68
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +74 -189
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +253 -531
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +21 -21
  13. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +7 -7
  14. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +22 -22
  15. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +18 -18
  16. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +7 -7
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +354 -273
  18. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +55 -149
  19. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +7 -7
  20. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +60 -154
  21. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +62 -254
  22. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +45 -139
  23. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +45 -139
  24. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +40 -134
  25. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -128
  26. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +158 -374
  27. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +56 -248
  28. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +140 -356
  29. package/dist/dts/workspace-elements/api/flows-api.d.ts +265 -753
  30. package/dist/dts/workspace-elements/api/integrations-api.d.ts +135 -101
  31. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +21 -105
  32. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +13 -13
  33. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +4 -3
  34. package/dist/dts/workspace-elements/base/actions/index.d.ts +111 -1
  35. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +11 -10
  36. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +7 -7
  37. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +7 -7
  38. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +7 -7
  39. package/dist/dts/workspace-elements/base/connections/types.d.ts +14 -19
  40. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +7 -7
  41. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +7 -7
  42. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +10 -9
  43. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +8 -8
  44. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -3
  45. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -3
  46. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +4 -3
  47. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +11 -10
  48. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +9 -9
  49. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +12 -12
  50. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +17 -16
  51. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +16 -16
  52. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +6 -5
  53. package/dist/dts/workspace-elements/base/flows/types.d.ts +21 -21
  54. package/dist/dts/workspace-elements/base/integrations/types.d.ts +48 -455
  55. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +7 -7
  56. package/dist/dts/workspace-elements/types.d.ts +53 -9
  57. package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
  58. package/dist/dts/workspaces/types.d.ts +3 -1
  59. package/dist/index.d.ts +2791 -5337
  60. package/dist/index.js +70 -66
  61. package/dist/index.js.map +1 -1
  62. package/dist/index.module.d.mts +2791 -5337
  63. package/dist/index.module.mjs +67 -66
  64. package/dist/index.module.mjs.map +1 -1
  65. package/package.json +1 -3
  66. package/dist/dts/workspace-elements/base/actions/types.d.ts +0 -85
@@ -36,16 +36,16 @@ export declare const ScenarioElement: z.ZodObject<{
36
36
  export type ScenarioElement = z.infer<typeof ScenarioElement>;
37
37
  export declare const BaseScenario: z.ZodObject<{
38
38
  id: z.ZodString;
39
- name: z.ZodString;
40
39
  key: z.ZodOptional<z.ZodString>;
41
40
  uuid: z.ZodOptional<z.ZodString>;
42
41
  description: z.ZodOptional<z.ZodString>;
42
+ name: z.ZodString;
43
43
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
44
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
44
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
45
45
  revision: z.ZodOptional<z.ZodString>;
46
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
47
46
  createdAt: z.ZodOptional<z.ZodString>;
48
47
  updatedAt: z.ZodOptional<z.ZodString>;
48
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
49
49
  } & {
50
50
  appId: z.ZodString;
51
51
  scenarioTemplateId: z.ZodOptional<z.ZodString>;
@@ -100,12 +100,12 @@ export declare const BaseScenario: z.ZodObject<{
100
100
  uuid?: string | undefined;
101
101
  description?: string | undefined;
102
102
  state?: import("../../types").WorkspaceElementState | undefined;
103
- errors?: any[] | undefined;
103
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
104
104
  revision?: string | undefined;
105
- isDeactivated?: boolean | undefined;
106
105
  createdAt?: string | undefined;
107
106
  updatedAt?: string | undefined;
108
107
  archivedAt?: string | undefined;
108
+ isDeactivated?: boolean | undefined;
109
109
  scenarioTemplateId?: string | undefined;
110
110
  elements?: {
111
111
  type: string;
@@ -131,12 +131,12 @@ export declare const BaseScenario: z.ZodObject<{
131
131
  uuid?: string | undefined;
132
132
  description?: string | undefined;
133
133
  state?: import("../../types").WorkspaceElementState | undefined;
134
- errors?: any[] | undefined;
134
+ errors?: import("../../..").ErrorDataSchema[] | undefined;
135
135
  revision?: string | undefined;
136
- isDeactivated?: boolean | undefined;
137
136
  createdAt?: string | undefined;
138
137
  updatedAt?: string | undefined;
139
138
  archivedAt?: string | undefined;
139
+ isDeactivated?: boolean | undefined;
140
140
  scenarioTemplateId?: string | undefined;
141
141
  elements?: {
142
142
  type: string;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { ErrorData } from '../errors';
2
+ import { ErrorData, ErrorDataSchema } from '../errors';
3
3
  export interface ConfigurationStateResult {
4
4
  state: ConfigurationState;
5
5
  message?: string;
@@ -73,20 +73,64 @@ export declare const BaseWorkspaceElement: z.ZodObject<{
73
73
  name: string;
74
74
  }>;
75
75
  export type BaseWorkspaceElement = z.infer<typeof BaseWorkspaceElement>;
76
+ export declare const BaseMembraneInterfaceEditableProperties: z.ZodObject<{
77
+ key: z.ZodOptional<z.ZodString>;
78
+ name: z.ZodOptional<z.ZodString>;
79
+ uuid: z.ZodOptional<z.ZodString>;
80
+ description: z.ZodOptional<z.ZodString>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ key?: string | undefined;
83
+ name?: string | undefined;
84
+ uuid?: string | undefined;
85
+ description?: string | undefined;
86
+ }, {
87
+ key?: string | undefined;
88
+ name?: string | undefined;
89
+ uuid?: string | undefined;
90
+ description?: string | undefined;
91
+ }>;
92
+ export declare const BaseMembraneInterfaceReadOnlyProperties: z.ZodObject<{
93
+ name: z.ZodString;
94
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
95
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
96
+ revision: z.ZodOptional<z.ZodString>;
97
+ createdAt: z.ZodOptional<z.ZodString>;
98
+ updatedAt: z.ZodOptional<z.ZodString>;
99
+ archivedAt: z.ZodOptional<z.ZodString>;
100
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ name: string;
103
+ state?: WorkspaceElementState | undefined;
104
+ errors?: ErrorDataSchema[] | undefined;
105
+ revision?: string | undefined;
106
+ createdAt?: string | undefined;
107
+ updatedAt?: string | undefined;
108
+ archivedAt?: string | undefined;
109
+ isDeactivated?: boolean | undefined;
110
+ }, {
111
+ name: string;
112
+ state?: WorkspaceElementState | undefined;
113
+ errors?: ErrorDataSchema[] | undefined;
114
+ revision?: string | undefined;
115
+ createdAt?: string | undefined;
116
+ updatedAt?: string | undefined;
117
+ archivedAt?: string | undefined;
118
+ isDeactivated?: boolean | undefined;
119
+ }>;
76
120
  export declare const BaseMembraneInterface: z.ZodObject<{
77
121
  id: z.ZodString;
78
- name: z.ZodString;
79
- } & {
80
122
  key: z.ZodOptional<z.ZodString>;
81
123
  uuid: z.ZodOptional<z.ZodString>;
82
124
  description: z.ZodOptional<z.ZodString>;
125
+ } & {
126
+ name: z.ZodString;
83
127
  state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
84
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
128
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
85
129
  revision: z.ZodOptional<z.ZodString>;
86
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
87
130
  createdAt: z.ZodOptional<z.ZodString>;
88
131
  updatedAt: z.ZodOptional<z.ZodString>;
89
132
  archivedAt: z.ZodOptional<z.ZodString>;
133
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
90
134
  }, "strip", z.ZodTypeAny, {
91
135
  id: string;
92
136
  name: string;
@@ -94,12 +138,12 @@ export declare const BaseMembraneInterface: z.ZodObject<{
94
138
  uuid?: string | undefined;
95
139
  description?: string | undefined;
96
140
  state?: WorkspaceElementState | undefined;
97
- errors?: any[] | undefined;
141
+ errors?: ErrorDataSchema[] | undefined;
98
142
  revision?: string | undefined;
99
- isDeactivated?: boolean | undefined;
100
143
  createdAt?: string | undefined;
101
144
  updatedAt?: string | undefined;
102
145
  archivedAt?: string | undefined;
146
+ isDeactivated?: boolean | undefined;
103
147
  }, {
104
148
  id: string;
105
149
  name: string;
@@ -107,12 +151,12 @@ export declare const BaseMembraneInterface: z.ZodObject<{
107
151
  uuid?: string | undefined;
108
152
  description?: string | undefined;
109
153
  state?: WorkspaceElementState | undefined;
110
- errors?: any[] | undefined;
154
+ errors?: ErrorDataSchema[] | undefined;
111
155
  revision?: string | undefined;
112
- isDeactivated?: boolean | undefined;
113
156
  createdAt?: string | undefined;
114
157
  updatedAt?: string | undefined;
115
158
  archivedAt?: string | undefined;
159
+ isDeactivated?: boolean | undefined;
116
160
  }>;
117
161
  export type BaseMembraneInterface = z.infer<typeof BaseMembraneInterface>;
118
162
  export interface WorkspaceElementReference {
@@ -9,6 +9,9 @@ export interface WorkspaceElementSpec {
9
9
  namePlural: string;
10
10
  createSchema?: z.ZodObject<any>;
11
11
  updateSchema?: z.ZodObject<any>;
12
+ editablePropertiesSchema?: z.ZodObject<any>;
13
+ apiResponseSchema?: z.ZodObject<any>;
14
+ findQuerySchema?: z.ZodObject<any>;
12
15
  }
13
16
  export interface WorkspaceElements {
14
17
  flows?: Record<string, CreateFlowRequest>;
@@ -49,6 +49,7 @@ export interface EngineWorkspace {
49
49
  limits: WorkspaceLimits;
50
50
  settings?: EngineWorkspaceSettings;
51
51
  type?: WorkspaceType;
52
+ jwksUri?: string | null;
52
53
  }
53
54
  export interface WorkspaceUser {
54
55
  id: string;
@@ -84,6 +85,7 @@ export declare const enum ParallelExecutionLimits {
84
85
  ParallelFlowRuns = "parallelFlowRuns",
85
86
  ParallelFlowRunsPerConnection = "parallelFlowRunsPerConnection",
86
87
  ParallelApiRequests = "parallelApiRequests",
88
+ ParallelSseRequests = "parallelSseRequests",
87
89
  ParallelBackgroundJobs = "parallelBackgroundJobs",
88
90
  ParallelEventLogs = "parallelEventLogs",
89
91
  ParallelEventLogsPerConnection = "parallelEventLogsPerConnection",
@@ -122,7 +124,7 @@ export interface WorkspaceLimit {
122
124
  defaultValue?: number;
123
125
  unit: LimitUnits;
124
126
  }
125
- export type WorkspaceLimits = Record<ParallelExecutionLimits, WorkspaceLimit> & Record<RateLimits, WorkspaceLimit> & Record<WorkspaceSizeLimits, WorkspaceLimit> & Record<CustomerLimits, WorkspaceLimit>;
127
+ export type WorkspaceLimits = Partial<Record<ParallelExecutionLimits, WorkspaceLimit> & Record<RateLimits, WorkspaceLimit> & Record<WorkspaceSizeLimits, WorkspaceLimit> & Record<CustomerLimits, WorkspaceLimit>>;
126
128
  export interface EngineWorkspaceWithOrgData {
127
129
  id: string;
128
130
  key: string;