@membranehq/sdk 0.9.3 → 0.9.5
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/bundle.d.ts +28 -6
- package/dist/dts/agent/session.d.ts +3 -2
- package/dist/dts/apps/types.d.ts +2 -372
- package/dist/dts/auth/index.d.ts +2 -2
- package/dist/dts/errors/index.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +16 -3
- package/dist/dts/sse/workspace-elements.d.ts +9 -4
- package/dist/dts/webhooks/types.d.ts +3 -2
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +24 -7
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +11 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +20 -0
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +28 -0
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +17 -1
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +1 -0
- package/dist/dts/workspace-elements/index.d.ts +0 -1
- package/dist/dts/workspaces/compare.d.ts +22 -0
- package/dist/dts/workspaces/compare.test.d.ts +1 -0
- package/dist/dts/workspaces/index.d.ts +1 -0
- package/dist/dts/workspaces/types.d.ts +432 -63
- package/dist/index.browser.d.mts +1397 -1269
- package/dist/index.browser.d.ts +1397 -1269
- package/dist/index.browser.js +1203 -1108
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +238 -155
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1397 -1269
- package/dist/index.node.d.ts +1397 -1269
- package/dist/index.node.js +1208 -1113
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +238 -155
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/dts/workspace-elements/compare.d.ts +0 -16
- /package/dist/dts/{workspace-elements/compare.test.d.ts → backward-compat.test.d.ts} +0 -0
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
export declare const FindDataLinkTablesQuery: z.ZodObject<{
|
|
3
|
+
search: z.ZodOptional<z.ZodString>;
|
|
4
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type FindDataLinkTablesQuery = z.infer<typeof FindDataLinkTablesQuery>;
|
|
9
|
+
export declare const CreateDataLinkTableRequest: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
11
|
+
key: z.ZodOptional<z.ZodString>;
|
|
12
|
+
name: z.ZodOptional<z.ZodString>;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type CreateDataLinkTableRequest = z.infer<typeof CreateDataLinkTableRequest>;
|
|
17
|
+
export declare const UpdateDataLinkTableRequest: z.ZodObject<{
|
|
18
|
+
uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type UpdateDataLinkTableRequest = z.infer<typeof UpdateDataLinkTableRequest>;
|
|
8
25
|
export declare const DataLinkTableApiResponse: z.ZodObject<{
|
|
9
26
|
id: z.ZodString;
|
|
10
27
|
uuid: z.ZodOptional<z.ZodString>;
|
|
@@ -17,8 +34,8 @@ export declare const DataLinkTableApiResponse: z.ZodObject<{
|
|
|
17
34
|
revision: z.ZodOptional<z.ZodString>;
|
|
18
35
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
19
36
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
20
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
21
37
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
38
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
22
39
|
}, z.core.$strip>;
|
|
23
40
|
export type DataLinkTableApiResponse = z.infer<typeof DataLinkTableApiResponse>;
|
|
24
41
|
export type DataLinkTable = DataLinkTableApiResponse;
|
|
@@ -5,10 +5,12 @@ export declare const ListExternalEventLogRecordsQuery: z.ZodObject<{
|
|
|
5
5
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
6
6
|
cursor: z.ZodOptional<z.ZodString>;
|
|
7
7
|
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
8
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
8
9
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
9
10
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
10
11
|
externalEventSubscriptionId: z.ZodOptional<z.ZodString>;
|
|
11
12
|
status: z.ZodOptional<z.ZodEnum<typeof ExternalEventLogStatus>>;
|
|
13
|
+
startedAfter: z.ZodOptional<z.ZodString>;
|
|
12
14
|
}, z.core.$strip>;
|
|
13
15
|
export type ListExternalEventLogRecordsQuery = z.infer<typeof ListExternalEventLogRecordsQuery>;
|
|
14
16
|
export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
@@ -70,6 +72,7 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
70
72
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
71
73
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
72
74
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
75
|
+
webhookUri: z.ZodOptional<z.ZodString>;
|
|
73
76
|
}, z.core.$strip>>;
|
|
74
77
|
integration: z.ZodOptional<z.ZodObject<{
|
|
75
78
|
id: z.ZodString;
|
|
@@ -72,6 +72,7 @@ export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
|
72
72
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
73
73
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
74
74
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
75
|
+
webhookUri: z.ZodOptional<z.ZodString>;
|
|
75
76
|
}, z.core.$strip>>;
|
|
76
77
|
integration: z.ZodOptional<z.ZodObject<{
|
|
77
78
|
id: z.ZodString;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const ListExternalEventSubscriptionsQuery: z.ZodObject<{
|
|
3
|
+
search: z.ZodOptional<z.ZodString>;
|
|
4
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
7
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type ListExternalEventSubscriptionsQuery = z.infer<typeof ListExternalEventSubscriptionsQuery>;
|
|
2
12
|
export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
3
13
|
id: z.ZodString;
|
|
4
14
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -34,6 +44,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
34
44
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
35
45
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
36
46
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
47
|
+
webhookUri: z.ZodOptional<z.ZodString>;
|
|
37
48
|
user: z.ZodOptional<z.ZodObject<{
|
|
38
49
|
id: z.ZodString;
|
|
39
50
|
name: z.ZodString;
|
|
@@ -17,3 +17,23 @@ export declare const BaseAppDataSchema: z.ZodObject<{
|
|
|
17
17
|
revision: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;
|
|
20
|
+
export declare const AppDataSchemaEditableProperties: z.ZodObject<{
|
|
21
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
22
|
+
key: z.ZodOptional<z.ZodString>;
|
|
23
|
+
name: z.ZodOptional<z.ZodString>;
|
|
24
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
26
|
+
schema: z.ZodAny;
|
|
27
|
+
code: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type AppDataSchemaEditableProperties = z.infer<typeof AppDataSchemaEditableProperties>;
|
|
30
|
+
export declare const AppDataSchemaExportProperties: z.ZodObject<{
|
|
31
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
32
|
+
key: z.ZodOptional<z.ZodString>;
|
|
33
|
+
name: z.ZodOptional<z.ZodString>;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
|
+
schema: z.ZodAny;
|
|
37
|
+
code: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type AppDataSchemaExportProperties = z.infer<typeof AppDataSchemaExportProperties>;
|
|
@@ -14,6 +14,7 @@ export declare const BaseAppEventType: z.ZodObject<{
|
|
|
14
14
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
revision: z.ZodString;
|
|
16
16
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
17
|
+
webhookKey: z.ZodString;
|
|
17
18
|
subscribeRequest: z.ZodOptional<z.ZodObject<{
|
|
18
19
|
method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof import("../../../http-requests").HttpRequestMethod>>>;
|
|
19
20
|
uri: z.ZodAny;
|
|
@@ -28,3 +29,30 @@ export declare const BaseAppEventType: z.ZodObject<{
|
|
|
28
29
|
userIdFormula: z.ZodOptional<z.ZodAny>;
|
|
29
30
|
}, z.core.$strip>;
|
|
30
31
|
export type BaseAppEventType = z.infer<typeof BaseAppEventType>;
|
|
32
|
+
export declare const AppEventTypeEditableProperties: z.ZodObject<{
|
|
33
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
34
|
+
key: z.ZodOptional<z.ZodString>;
|
|
35
|
+
name: z.ZodOptional<z.ZodString>;
|
|
36
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
38
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
39
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
40
|
+
tenantIdFormula: z.ZodOptional<z.ZodAny>;
|
|
41
|
+
userIdFormula: z.ZodOptional<z.ZodAny>;
|
|
42
|
+
subscribeRequest: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof import("../../../http-requests").HttpRequestMethod>>>;
|
|
44
|
+
uri: z.ZodAny;
|
|
45
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
46
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
47
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type AppEventTypeEditableProperties = z.infer<typeof AppEventTypeEditableProperties>;
|
|
51
|
+
export declare const AppEventTypeExportProperties: z.ZodObject<{
|
|
52
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
53
|
+
key: z.ZodOptional<z.ZodString>;
|
|
54
|
+
name: z.ZodOptional<z.ZodString>;
|
|
55
|
+
description: z.ZodOptional<z.ZodString>;
|
|
56
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type AppEventTypeExportProperties = z.infer<typeof AppEventTypeExportProperties>;
|
|
@@ -4,6 +4,22 @@ export declare enum DataLinkDirection {
|
|
|
4
4
|
EXPORT = "export",
|
|
5
5
|
BOTH = "both"
|
|
6
6
|
}
|
|
7
|
+
export declare const DataLinkTableEditableProperties: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
9
|
+
key: z.ZodOptional<z.ZodString>;
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type DataLinkTableEditableProperties = z.infer<typeof DataLinkTableEditableProperties>;
|
|
15
|
+
export declare const DataLinkTableExportProperties: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
17
|
+
key: z.ZodOptional<z.ZodString>;
|
|
18
|
+
name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type DataLinkTableExportProperties = z.infer<typeof DataLinkTableExportProperties>;
|
|
7
23
|
export declare const BaseDataLinkTable: z.ZodObject<{
|
|
8
24
|
id: z.ZodString;
|
|
9
25
|
uuid: z.ZodOptional<z.ZodString>;
|
|
@@ -16,7 +32,7 @@ export declare const BaseDataLinkTable: z.ZodObject<{
|
|
|
16
32
|
revision: z.ZodOptional<z.ZodString>;
|
|
17
33
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
18
34
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
19
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
20
35
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
36
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
21
37
|
}, z.core.$strip>;
|
|
22
38
|
export type BaseDataLinkTable = z.infer<typeof BaseDataLinkTable>;
|
|
@@ -62,5 +62,6 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
|
62
62
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
63
63
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
64
64
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
65
|
+
webhookUri: z.ZodOptional<z.ZodString>;
|
|
65
66
|
}, z.core.$strip>;
|
|
66
67
|
export type BaseExternalEventSubscription = z.infer<typeof BaseExternalEventSubscription>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WorkspaceExport } from './types';
|
|
2
|
+
import { WorkspaceElementType } from '../workspace-elements/types';
|
|
3
|
+
export declare enum WorkspaceElementChangeType {
|
|
4
|
+
CREATE = "create",
|
|
5
|
+
UPDATE = "update",
|
|
6
|
+
DELETE = "delete"
|
|
7
|
+
}
|
|
8
|
+
export interface WorkspaceElementChange {
|
|
9
|
+
type: WorkspaceElementChangeType;
|
|
10
|
+
uuid: string;
|
|
11
|
+
}
|
|
12
|
+
export interface WorkspaceExportComparison {
|
|
13
|
+
[WorkspaceElementChangeType.CREATE]: Set<string>;
|
|
14
|
+
[WorkspaceElementChangeType.UPDATE]: Set<string>;
|
|
15
|
+
[WorkspaceElementChangeType.DELETE]: Set<string>;
|
|
16
|
+
}
|
|
17
|
+
export interface WorkspaceExportComparisonResult {
|
|
18
|
+
comparison: WorkspaceExportComparison;
|
|
19
|
+
sourceUuidByTargetUuid: Map<string, string>;
|
|
20
|
+
}
|
|
21
|
+
export declare function compareWorkspaceExports(baseExport: Partial<WorkspaceExport>, targetExport: Partial<WorkspaceExport>): WorkspaceExportComparisonResult;
|
|
22
|
+
export declare function getElementSelector(type: WorkspaceElementType, key: string, integrationIdentifier?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|