@membranehq/sdk 0.9.8 → 0.9.10
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.
- package/dist/bundle.d.ts +290 -247
- package/dist/bundle.js +12284 -3529
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/base-accessors.d.ts +9 -7
- package/dist/dts/agent/session.d.ts +8 -10
- package/dist/dts/{entity-repository.d.ts → api/index.d.ts} +31 -8
- package/dist/dts/index.browser.d.ts +2 -2
- package/dist/dts/integration-elements/connection-level-element.accessor.d.ts +1 -1
- package/dist/dts/integration-elements/integration-level-element.accessor.d.ts +1 -1
- package/dist/dts/scenario-templates/index.d.ts +1 -1
- package/dist/dts/usage/types.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +212 -1
- package/dist/dts/workspace-elements/api/actions-api.d.ts +4 -1
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +12 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +22 -13
- package/dist/dts/workspace-elements/api/connections-api.d.ts +11 -5
- package/dist/dts/workspace-elements/api/connectors-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +55 -17
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +17 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/external-apps-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +11 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -8
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/flows-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/index.d.ts +2 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +26 -8
- package/dist/dts/workspace-elements/api/packages-api.d.ts +23 -9
- package/dist/dts/workspace-elements/api/screens-api.d.ts +7 -4
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +1 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +3 -0
- package/dist/dts/{apps/types.d.ts → workspace-elements/base/external-apps/index.d.ts} +1 -0
- package/dist/dts/workspace-elements/base/external-events/api.d.ts +1 -1
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +122 -1
- package/dist/dts/workspace-elements/base/packages/index.d.ts +37 -6
- package/dist/dts/workspace-elements/types.d.ts +17 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +8 -7
- package/dist/index.browser.d.mts +1801 -1356
- package/dist/index.browser.d.ts +1801 -1356
- package/dist/index.browser.js +258 -71
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +231 -72
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1801 -1356
- package/dist/index.node.d.ts +1801 -1356
- package/dist/index.node.js +258 -71
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +231 -72
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/dts/apps/index.d.ts +0 -1
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +0 -104
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { WorkspaceElementType } from '../../types';
|
|
3
|
+
export declare const PACKAGE_VERSION_DEVELOPMENT = "dev";
|
|
4
|
+
export declare const PACKAGE_VERSION_LATEST = "latest";
|
|
3
5
|
export declare const PackageElement: z.ZodObject<{
|
|
4
6
|
id: z.ZodString;
|
|
5
|
-
type: z.ZodEnum<typeof
|
|
7
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
6
8
|
element: z.ZodOptional<z.ZodAny>;
|
|
7
9
|
}, z.core.$strip>;
|
|
8
10
|
export type PackageElement = z.infer<typeof PackageElement>;
|
|
9
11
|
export declare const PackageElementExport: z.ZodObject<{
|
|
10
12
|
uuid: z.ZodString;
|
|
11
|
-
type: z.ZodEnum<typeof
|
|
13
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
12
14
|
element: z.ZodOptional<z.ZodAny>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
export type PackageElementExport = z.infer<typeof PackageElementExport>;
|
|
@@ -25,9 +27,10 @@ export declare const PackageEditableProperties: z.ZodObject<{
|
|
|
25
27
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
26
28
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
27
29
|
scenarioTemplateId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
28
31
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
32
|
id: z.ZodString;
|
|
30
|
-
type: z.ZodEnum<typeof
|
|
33
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
31
34
|
element: z.ZodOptional<z.ZodAny>;
|
|
32
35
|
}, z.core.$strip>>>;
|
|
33
36
|
}, z.core.$strip>;
|
|
@@ -40,9 +43,10 @@ export declare const PackageExportProperties: z.ZodObject<{
|
|
|
40
43
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
41
44
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
42
45
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
46
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
43
47
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
48
|
uuid: z.ZodString;
|
|
45
|
-
type: z.ZodEnum<typeof
|
|
49
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
46
50
|
element: z.ZodOptional<z.ZodAny>;
|
|
47
51
|
}, z.core.$strip>>>;
|
|
48
52
|
}, z.core.$strip>;
|
|
@@ -72,9 +76,10 @@ export declare const BasePackage: z.ZodObject<{
|
|
|
72
76
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
73
77
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
74
78
|
scenarioTemplateId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
75
80
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
81
|
id: z.ZodString;
|
|
77
|
-
type: z.ZodEnum<typeof
|
|
82
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
78
83
|
element: z.ZodOptional<z.ZodAny>;
|
|
79
84
|
}, z.core.$strip>>>;
|
|
80
85
|
key: z.ZodString;
|
|
@@ -82,3 +87,29 @@ export declare const BasePackage: z.ZodObject<{
|
|
|
82
87
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
83
88
|
}, z.core.$strip>;
|
|
84
89
|
export type BasePackage = z.infer<typeof BasePackage>;
|
|
90
|
+
export declare const WritablePackageVersionData: z.ZodObject<{
|
|
91
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
94
|
+
element: z.ZodOptional<z.ZodAny>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type WritablePackageVersionData = z.infer<typeof WritablePackageVersionData>;
|
|
98
|
+
export declare const PackageVersionData: z.ZodObject<{
|
|
99
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
102
|
+
element: z.ZodOptional<z.ZodAny>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
version: z.ZodOptional<z.ZodString>;
|
|
105
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
106
|
+
parentPackageVersion: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export type PackageVersionData = z.infer<typeof PackageVersionData>;
|
|
109
|
+
export declare const PackageVersionListItem: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
version: z.ZodString;
|
|
112
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
113
|
+
parentPackageVersion: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export type PackageVersionListItem = z.infer<typeof PackageVersionListItem>;
|
|
@@ -113,6 +113,7 @@ export declare const BaseIntegrationLevelMembraneInterfaceEditableProperties: z.
|
|
|
113
113
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
114
114
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
115
115
|
}, z.core.$strip>;
|
|
116
|
+
export type BaseIntegrationLevelMembraneInterfaceEditableProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceEditableProperties>;
|
|
116
117
|
export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.ZodObject<{
|
|
117
118
|
name: z.ZodString;
|
|
118
119
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
@@ -124,6 +125,7 @@ export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.
|
|
|
124
125
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
125
126
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
126
127
|
}, z.core.$strip>;
|
|
128
|
+
export type BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceReadOnlyProperties>;
|
|
127
129
|
export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.ZodObject<{
|
|
128
130
|
uuid: z.ZodOptional<z.ZodString>;
|
|
129
131
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -132,7 +134,9 @@ export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.Zo
|
|
|
132
134
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
133
135
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
134
136
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
137
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
135
138
|
}, z.core.$strip>;
|
|
139
|
+
export type BaseIntegrationLevelMembraneInterfaceExportProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceExportProperties>;
|
|
136
140
|
export declare const IntegrationLevelMembraneInterfaceSelectorQuery: z.ZodObject<{
|
|
137
141
|
layer: z.ZodOptional<z.ZodEnum<{
|
|
138
142
|
connection: "connection";
|
|
@@ -195,3 +199,16 @@ export interface WorkspaceElementDependency extends WorkspaceElementReference {
|
|
|
195
199
|
dependencyType: WorkspaceElementDependencyType;
|
|
196
200
|
data?: unknown;
|
|
197
201
|
}
|
|
202
|
+
export declare const WorkspaceElementSearchQuery: z.ZodObject<{
|
|
203
|
+
q: z.ZodString;
|
|
204
|
+
elementType: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementType>>;
|
|
205
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
206
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
export type WorkspaceElementSearchQuery = z.infer<typeof WorkspaceElementSearchQuery>;
|
|
209
|
+
export declare const WorkspaceElementSearchResult: z.ZodObject<{
|
|
210
|
+
elementType: z.ZodEnum<typeof WorkspaceElementType>;
|
|
211
|
+
elementId: z.ZodString;
|
|
212
|
+
name: z.ZodString;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
export type WorkspaceElementSearchResult = z.infer<typeof WorkspaceElementSearchResult>;
|
|
@@ -7,17 +7,18 @@ export interface WorkspaceElementSpec {
|
|
|
7
7
|
apiPath: string;
|
|
8
8
|
name: string;
|
|
9
9
|
namePlural: string;
|
|
10
|
-
createSchema?: z.ZodObject
|
|
11
|
-
updateSchema?: z.ZodObject
|
|
12
|
-
editablePropertiesSchema?: z.ZodObject
|
|
13
|
-
backwardCompatibleEditablePropertiesSchema?: z.ZodObject
|
|
14
|
-
exportPropertiesSchema?: z.ZodObject
|
|
15
|
-
apiResponseSchema?: z.ZodObject
|
|
16
|
-
findQuerySchema?: z.ZodObject
|
|
10
|
+
createSchema?: z.ZodObject;
|
|
11
|
+
updateSchema?: z.ZodObject;
|
|
12
|
+
editablePropertiesSchema?: z.ZodObject;
|
|
13
|
+
backwardCompatibleEditablePropertiesSchema?: z.ZodObject;
|
|
14
|
+
exportPropertiesSchema?: z.ZodObject;
|
|
15
|
+
apiResponseSchema?: z.ZodObject;
|
|
16
|
+
findQuerySchema?: z.ZodObject;
|
|
17
17
|
isMembraneInterface?: boolean;
|
|
18
18
|
isIntegrationLevel?: boolean;
|
|
19
19
|
parentFieldKey?: string;
|
|
20
20
|
universalParentFieldKey?: string;
|
|
21
|
+
canBeAddedToPackage?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface WorkspaceElements {
|
|
23
24
|
flows?: Record<string, CreateFlowRequest>;
|