@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.
- package/dist/bundle.d.ts +13011 -5117
- package/dist/bundle.js +149 -1
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +31 -10
- package/dist/dts/accessors/integrations-accessors.d.ts +31 -10
- package/dist/dts/data-schema/index.d.ts +0 -1
- package/dist/dts/entity-repository.d.ts +7 -6
- package/dist/dts/http-requests.d.ts +2 -2
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
- package/dist/dts/workspace-elements/api/actions-api.d.ts +393 -90
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
- package/dist/dts/workspace-elements/api/connections-api.d.ts +387 -97
- package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +357 -79
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +169 -27
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +367 -69
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
- package/dist/dts/workspace-elements/api/flows-api.d.ts +1040 -257
- package/dist/dts/workspace-elements/api/index.d.ts +1 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +121 -37
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +151 -26
- package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +28 -12
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
- package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
- package/dist/dts/workspace-elements/base/connections/types.d.ts +18 -12
- package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +6 -6
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +26 -11
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
- package/dist/dts/workspace-elements/base/flows/types.d.ts +26 -12
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +557 -67
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
- package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
- package/dist/dts/workspace-elements/types.d.ts +25 -3
- package/dist/dts/workspaces/types.d.ts +4 -3
- package/dist/index.d.ts +21959 -8561
- package/dist/index.js +258 -109
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +21959 -8561
- package/dist/index.module.mjs +225 -101
- package/dist/index.module.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/dts/data-schema/schemas.d.ts +0 -4
- package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
|
@@ -37,10 +37,15 @@ export type ScenarioElement = z.infer<typeof ScenarioElement>;
|
|
|
37
37
|
export declare const BaseScenario: z.ZodObject<{
|
|
38
38
|
id: z.ZodString;
|
|
39
39
|
name: z.ZodString;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
key: z.ZodOptional<z.ZodString>;
|
|
41
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
42
|
+
description: z.ZodOptional<z.ZodString>;
|
|
42
43
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
43
44
|
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
45
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
46
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
48
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
44
49
|
} & {
|
|
45
50
|
appId: z.ZodString;
|
|
46
51
|
scenarioTemplateId: z.ZodOptional<z.ZodString>;
|
|
@@ -88,12 +93,18 @@ export declare const BaseScenario: z.ZodObject<{
|
|
|
88
93
|
}>, "many">>;
|
|
89
94
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
90
95
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
key: string;
|
|
92
96
|
id: string;
|
|
93
97
|
name: string;
|
|
94
98
|
appId: string;
|
|
99
|
+
key?: string | undefined;
|
|
100
|
+
uuid?: string | undefined;
|
|
101
|
+
description?: string | undefined;
|
|
95
102
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
96
103
|
errors?: any[] | undefined;
|
|
104
|
+
revision?: string | undefined;
|
|
105
|
+
isDeactivated?: boolean | undefined;
|
|
106
|
+
createdAt?: string | undefined;
|
|
107
|
+
updatedAt?: string | undefined;
|
|
97
108
|
archivedAt?: string | undefined;
|
|
98
109
|
scenarioTemplateId?: string | undefined;
|
|
99
110
|
elements?: {
|
|
@@ -113,12 +124,18 @@ export declare const BaseScenario: z.ZodObject<{
|
|
|
113
124
|
isComplete: boolean;
|
|
114
125
|
}[] | undefined;
|
|
115
126
|
}, {
|
|
116
|
-
key: string;
|
|
117
127
|
id: string;
|
|
118
128
|
name: string;
|
|
119
129
|
appId: string;
|
|
130
|
+
key?: string | undefined;
|
|
131
|
+
uuid?: string | undefined;
|
|
132
|
+
description?: string | undefined;
|
|
120
133
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
121
134
|
errors?: any[] | undefined;
|
|
135
|
+
revision?: string | undefined;
|
|
136
|
+
isDeactivated?: boolean | undefined;
|
|
137
|
+
createdAt?: string | undefined;
|
|
138
|
+
updatedAt?: string | undefined;
|
|
122
139
|
archivedAt?: string | undefined;
|
|
123
140
|
scenarioTemplateId?: string | undefined;
|
|
124
141
|
elements?: {
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
export declare enum ScreenType {
|
|
3
|
+
Integration = "integration"
|
|
4
|
+
}
|
|
5
|
+
export declare enum ScreenBlockType {
|
|
6
|
+
Flow = "flow",
|
|
7
|
+
FieldMapping = "field-mapping",
|
|
8
|
+
DataSource = "data-source",
|
|
9
|
+
Action = "action"
|
|
10
|
+
}
|
|
3
11
|
export declare const ScreenBlock: z.ZodIntersection<z.ZodObject<{
|
|
4
12
|
type: z.ZodNativeEnum<typeof ScreenBlockType>;
|
|
5
13
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -28,6 +28,7 @@ export declare enum WorkspaceElementType {
|
|
|
28
28
|
DataLinkTableInstance = "data-link-table-instance",
|
|
29
29
|
AppEventType = "app-event-type",
|
|
30
30
|
AppEventSubscription = "app-event-subscription",
|
|
31
|
+
AppEventLogRecord = "app-event-log-record",
|
|
31
32
|
AppDataSchema = "app-data-schema",
|
|
32
33
|
AppDataSchemaInstance = "app-data-schema-instance",
|
|
33
34
|
ExternalEventSubscription = "external-event-subscription",
|
|
@@ -76,21 +77,42 @@ export declare const BaseMembraneInterface: z.ZodObject<{
|
|
|
76
77
|
id: z.ZodString;
|
|
77
78
|
name: z.ZodString;
|
|
78
79
|
} & {
|
|
79
|
-
key: z.ZodString
|
|
80
|
+
key: z.ZodOptional<z.ZodString>;
|
|
81
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
82
|
+
description: z.ZodOptional<z.ZodString>;
|
|
80
83
|
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
81
84
|
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
85
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
86
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
88
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
89
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
82
90
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
key: string;
|
|
84
91
|
id: string;
|
|
85
92
|
name: string;
|
|
93
|
+
key?: string | undefined;
|
|
94
|
+
uuid?: string | undefined;
|
|
95
|
+
description?: string | undefined;
|
|
86
96
|
state?: WorkspaceElementState | undefined;
|
|
87
97
|
errors?: any[] | undefined;
|
|
98
|
+
revision?: string | undefined;
|
|
99
|
+
isDeactivated?: boolean | undefined;
|
|
100
|
+
createdAt?: string | undefined;
|
|
101
|
+
updatedAt?: string | undefined;
|
|
102
|
+
archivedAt?: string | undefined;
|
|
88
103
|
}, {
|
|
89
|
-
key: string;
|
|
90
104
|
id: string;
|
|
91
105
|
name: string;
|
|
106
|
+
key?: string | undefined;
|
|
107
|
+
uuid?: string | undefined;
|
|
108
|
+
description?: string | undefined;
|
|
92
109
|
state?: WorkspaceElementState | undefined;
|
|
93
110
|
errors?: any[] | undefined;
|
|
111
|
+
revision?: string | undefined;
|
|
112
|
+
isDeactivated?: boolean | undefined;
|
|
113
|
+
createdAt?: string | undefined;
|
|
114
|
+
updatedAt?: string | undefined;
|
|
115
|
+
archivedAt?: string | undefined;
|
|
94
116
|
}>;
|
|
95
117
|
export type BaseMembraneInterface = z.infer<typeof BaseMembraneInterface>;
|
|
96
118
|
export interface WorkspaceElementReference {
|
|
@@ -3,7 +3,7 @@ import { User } from '../workspace-elements/api/customers-api';
|
|
|
3
3
|
import { ConnectorAuth, RestApiClientOptions } from '../workspace-elements/base/connectors';
|
|
4
4
|
export declare enum WorkspaceOnboardingStep {
|
|
5
5
|
AddConnectors = "add-connectors",
|
|
6
|
-
ConnectYourApp = "
|
|
6
|
+
ConnectYourApp = "first-connection",
|
|
7
7
|
BuildIntegrations = "build-integrations",
|
|
8
8
|
Completed = "completed"
|
|
9
9
|
}
|
|
@@ -66,7 +66,8 @@ export interface UserWorkspaceSettings {
|
|
|
66
66
|
}
|
|
67
67
|
export declare enum WorkspaceNotificationType {
|
|
68
68
|
WorkspaceUpdate = "workspace-update",
|
|
69
|
-
CopilotActivity = "copilot-activity"
|
|
69
|
+
CopilotActivity = "copilot-activity",
|
|
70
|
+
LocalClientUpdate = "local-client-update"
|
|
70
71
|
}
|
|
71
72
|
export interface WorkspaceNotification<DataType = unknown> {
|
|
72
73
|
type: WorkspaceNotificationType;
|
|
@@ -111,7 +112,7 @@ export declare const enum CustomerLimits {
|
|
|
111
112
|
WebhookRequestsPerCustomerPerSecond = "webhookRequestsPerCustomerPerSecond",
|
|
112
113
|
WebhookRequestsPerCustomerPerHour = "webhookRequestsPerCustomerPerHour"
|
|
113
114
|
}
|
|
114
|
-
export declare
|
|
115
|
+
export declare enum LimitUnits {
|
|
115
116
|
Number = "number",
|
|
116
117
|
Msec = "msec",
|
|
117
118
|
Mb = "Mb"
|