@membranehq/sdk 0.8.5 → 0.9.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.
- package/dist/bundle.d.ts +118 -3
- package/dist/bundle.js +21 -0
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +2 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +2 -0
- package/dist/dts/agent/index.d.ts +2 -0
- package/dist/dts/agent/mcp.d.ts +6 -0
- package/dist/dts/agent/session.d.ts +4 -1
- package/dist/dts/api-version.generated.d.ts +10 -0
- package/dist/dts/apps/types.d.ts +371 -0
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/index.browser.d.ts +2 -1
- package/dist/dts/orgs/types.d.ts +341 -3
- package/dist/dts/platform-users.d.ts +24 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +94 -2
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +2 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connections/types.d.ts +2 -0
- package/dist/dts/workspace-elements/compare.d.ts +16 -0
- package/dist/dts/workspace-elements/compare.test.d.ts +1 -0
- package/dist/dts/workspace-elements/index.d.ts +1 -0
- package/dist/dts/workspaces/index.d.ts +1 -0
- package/dist/dts/workspaces/schemas.d.ts +24 -0
- package/dist/dts/workspaces/types.d.ts +3 -8
- package/dist/index.browser.d.mts +951 -44
- package/dist/index.browser.d.ts +951 -44
- package/dist/index.browser.js +293 -9
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +280 -10
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +951 -44
- package/dist/index.node.d.ts +951 -44
- package/dist/index.node.js +293 -9
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +280 -10
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
|
@@ -106,6 +106,8 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
106
106
|
updatedAt: z.ZodString;
|
|
107
107
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
108
108
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
109
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
110
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
109
111
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
110
112
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
111
113
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -8,6 +8,7 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
|
|
|
8
8
|
id: z.ZodString;
|
|
9
9
|
name: z.ZodString;
|
|
10
10
|
actionId: z.ZodString;
|
|
11
|
+
actionInstanceId: z.ZodString;
|
|
11
12
|
integrationId: z.ZodString;
|
|
12
13
|
connectionId: z.ZodString;
|
|
13
14
|
input: z.ZodOptional<z.ZodAny>;
|
|
@@ -16,5 +17,6 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
|
|
|
16
17
|
createdAt: z.ZodString;
|
|
17
18
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
18
19
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
20
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
19
21
|
}, z.core.$strip>;
|
|
20
22
|
export type BaseActionRunLogRecord = z.infer<typeof BaseActionRunLogRecord>;
|
|
@@ -32,6 +32,8 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
32
32
|
updatedAt: z.ZodString;
|
|
33
33
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
34
34
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
35
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
36
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
35
37
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
36
38
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
37
39
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WorkspaceElementType } from './types';
|
|
2
|
+
export declare enum WorkspaceElementChangeType {
|
|
3
|
+
CREATE = "create",
|
|
4
|
+
UPDATE = "update",
|
|
5
|
+
DELETE = "delete"
|
|
6
|
+
}
|
|
7
|
+
export interface WorkspaceElementChange {
|
|
8
|
+
type: WorkspaceElementChangeType;
|
|
9
|
+
uuid: string;
|
|
10
|
+
}
|
|
11
|
+
export interface WorkspaceExportComparison {
|
|
12
|
+
[WorkspaceElementChangeType.CREATE]: Set<string>;
|
|
13
|
+
[WorkspaceElementChangeType.UPDATE]: Set<string>;
|
|
14
|
+
[WorkspaceElementChangeType.DELETE]: Set<string>;
|
|
15
|
+
}
|
|
16
|
+
export declare function compareWorkspaceExports(primaryExport: Partial<Record<WorkspaceElementType, any[]>>, targetExport: Partial<Record<WorkspaceElementType, any[]>>): WorkspaceExportComparison;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WorkspaceOnboardingStep } from './types';
|
|
3
|
+
export declare const OrgWorkspaceSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
orgId: z.ZodString;
|
|
7
|
+
apiBaseUri: z.ZodOptional<z.ZodString>;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
secret: z.ZodString;
|
|
10
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
11
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
12
|
+
engineAccessToken: z.ZodOptional<z.ZodString>;
|
|
13
|
+
onboardingStep: z.ZodOptional<z.ZodEnum<typeof WorkspaceOnboardingStep>>;
|
|
14
|
+
trialEndDate: z.ZodOptional<z.ZodString>;
|
|
15
|
+
featureFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const OrgWorkspaceUser: z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
workspaceId: z.ZodString;
|
|
21
|
+
testCustomerId: z.ZodString;
|
|
22
|
+
userId: z.ZodString;
|
|
23
|
+
role: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { EngineWorkspaceSettingsSchema } from '../apps';
|
|
1
3
|
import { DataSchema } from '../data-schema';
|
|
2
|
-
import { User } from '../workspace-elements/api/customers-api';
|
|
3
4
|
import { ConnectorAuth, RestApiClientOptions } from '../workspace-elements/base/connectors';
|
|
4
5
|
export declare enum WorkspaceOnboardingStep {
|
|
5
6
|
AddConnectors = "add-connectors",
|
|
@@ -19,12 +20,7 @@ export interface Workspace {
|
|
|
19
20
|
onboardingStep?: WorkspaceOnboardingStep;
|
|
20
21
|
trialEndDate?: string;
|
|
21
22
|
}
|
|
22
|
-
export
|
|
23
|
-
enableApiLogs?: boolean;
|
|
24
|
-
enableWebhookLogs?: boolean;
|
|
25
|
-
enableActionRunLogs?: boolean;
|
|
26
|
-
disableSecretKeyAuth?: boolean;
|
|
27
|
-
}
|
|
23
|
+
export type EngineWorkspaceSettings = z.Infer<typeof EngineWorkspaceSettingsSchema>;
|
|
28
24
|
export interface EngineWorkspace {
|
|
29
25
|
id: string;
|
|
30
26
|
key: string;
|
|
@@ -55,7 +51,6 @@ export interface WorkspaceUser {
|
|
|
55
51
|
workspaceId: string;
|
|
56
52
|
testCustomerId: string;
|
|
57
53
|
userId: string;
|
|
58
|
-
user: User;
|
|
59
54
|
role: string;
|
|
60
55
|
}
|
|
61
56
|
export interface UserWorkspaceSettings {
|