@membranehq/sdk 0.9.4 → 0.9.6
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 +1081 -187
- package/dist/dts/agent/session.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +13 -3
- 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/connectors/auth.d.ts +1540 -51
- package/dist/dts/workspace-elements/base/connectors/methods.d.ts +111 -34
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +2188 -53
- package/dist/dts/workspace-elements/base/connectors/udm.d.ts +29 -13
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +5 -4
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +1 -0
- package/dist/dts/workspaces/compare.d.ts +8 -1
- package/dist/dts/workspaces/types.d.ts +24 -2
- package/dist/index.browser.d.mts +4236 -457
- package/dist/index.browser.d.ts +4236 -457
- package/dist/index.browser.js +246 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +216 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +4236 -457
- package/dist/index.node.d.ts +4236 -457
- package/dist/index.node.js +246 -5
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +216 -6
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
key:
|
|
4
|
-
}
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ConnectorUdmListItem: z.ZodObject<{
|
|
3
|
+
key: z.ZodString;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type ConnectorUdmListItem = z.infer<typeof ConnectorUdmListItem>;
|
|
6
|
+
export declare const ConnectorUdmCollectionMapping: z.ZodObject<{
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9
|
+
fieldsToCollection: z.ZodOptional<z.ZodAny>;
|
|
10
|
+
fieldsFromCollection: z.ZodOptional<z.ZodAny>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ConnectorUdmCollectionMapping = z.infer<typeof ConnectorUdmCollectionMapping>;
|
|
13
|
+
export declare const ConnectorUdmSpec: z.ZodObject<{
|
|
14
|
+
defaultCollection: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
key: z.ZodString;
|
|
16
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
rootDirectory: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
key: z.ZodString;
|
|
20
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
collectionMappings: z.ZodArray<z.ZodObject<{
|
|
23
|
+
key: z.ZodString;
|
|
24
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
25
|
+
fieldsToCollection: z.ZodOptional<z.ZodAny>;
|
|
26
|
+
fieldsFromCollection: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type ConnectorUdmSpec = z.infer<typeof ConnectorUdmSpec>;
|
|
14
30
|
export declare function findUdmCollectionMapping(udm: ConnectorUdmSpec, collectionKey: string, parameters?: Record<string, any>): ConnectorUdmCollectionMapping | undefined;
|
|
@@ -251,10 +251,11 @@ export declare const DataCollectionSpec: z.ZodObject<{
|
|
|
251
251
|
}, z.core.$strip>>;
|
|
252
252
|
}, z.core.$strip>;
|
|
253
253
|
export type DataCollectionSpec = z.infer<typeof DataCollectionSpec>;
|
|
254
|
-
export
|
|
255
|
-
key:
|
|
256
|
-
parameters
|
|
257
|
-
}
|
|
254
|
+
export declare const DataLocationPointer: z.ZodObject<{
|
|
255
|
+
key: z.ZodString;
|
|
256
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
export type DataLocationPointer = z.infer<typeof DataLocationPointer>;
|
|
258
259
|
export interface DataCollectionMixin {
|
|
259
260
|
key: string;
|
|
260
261
|
parameters?: any;
|
|
@@ -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>;
|
|
@@ -14,5 +14,12 @@ export interface WorkspaceExportComparison {
|
|
|
14
14
|
[WorkspaceElementChangeType.UPDATE]: Set<string>;
|
|
15
15
|
[WorkspaceElementChangeType.DELETE]: Set<string>;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export interface WorkspaceExportComparisonResult {
|
|
18
|
+
comparison: WorkspaceExportComparison;
|
|
19
|
+
sourceUuidByTargetUuid: Map<string, string>;
|
|
20
|
+
}
|
|
21
|
+
export interface WorkspaceExportComparisonOptions {
|
|
22
|
+
includeDeletions?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function compareWorkspaceExports(baseExport: Partial<WorkspaceExport>, targetExport: Partial<WorkspaceExport>, options?: WorkspaceExportComparisonOptions): WorkspaceExportComparisonResult;
|
|
18
25
|
export declare function getElementSelector(type: WorkspaceElementType, key: string, integrationIdentifier?: string): string;
|
|
@@ -29,7 +29,8 @@ export declare const enum ParallelExecutionLimits {
|
|
|
29
29
|
ParallelBackgroundJobs = "parallelBackgroundJobs",
|
|
30
30
|
ParallelEventLogs = "parallelEventLogs",
|
|
31
31
|
ParallelEventLogsPerConnection = "parallelEventLogsPerConnection",
|
|
32
|
-
ParallelPathfinderAgentSessions = "parallelPathfinderAgentSessions"
|
|
32
|
+
ParallelPathfinderAgentSessions = "parallelPathfinderAgentSessions",
|
|
33
|
+
ParallelInstantTasksActiveJobs = "parallelInstantTasksActiveJobs"
|
|
33
34
|
}
|
|
34
35
|
export declare const enum RateLimits {
|
|
35
36
|
fileUploadsMbPerHour = "fileUploadsMbPerHour",
|
|
@@ -44,7 +45,8 @@ export declare const enum RateLimits {
|
|
|
44
45
|
export declare const enum WorkspaceSizeLimits {
|
|
45
46
|
TotalNumberOfCustomers = "totalNumberOfCustomers",
|
|
46
47
|
TotalNumberOfConnections = "totalNumberOfConnections",
|
|
47
|
-
TotalNumberOfWorkspaceElements = "totalNumberOfWorkspaceElements"
|
|
48
|
+
TotalNumberOfWorkspaceElements = "totalNumberOfWorkspaceElements",
|
|
49
|
+
InstantTasksQueueSize = "instantTasksQueueSize"
|
|
48
50
|
}
|
|
49
51
|
export declare const enum CustomerLimits {
|
|
50
52
|
ParallelApiRequestsPerCustomer = "parallelApiRequestsPerCustomer",
|
|
@@ -127,6 +129,11 @@ export declare const WorkspaceLimitsSchema: z.ZodObject<{
|
|
|
127
129
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
128
130
|
unit: z.ZodEnum<typeof LimitUnits>;
|
|
129
131
|
}, z.core.$strip>>;
|
|
132
|
+
parallelInstantTasksActiveJobs: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
unit: z.ZodEnum<typeof LimitUnits>;
|
|
136
|
+
}, z.core.$strip>>;
|
|
130
137
|
ParallelWriteDatabaseRequests: z.ZodOptional<z.ZodObject<{
|
|
131
138
|
value: z.ZodOptional<z.ZodNumber>;
|
|
132
139
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -187,6 +194,11 @@ export declare const WorkspaceLimitsSchema: z.ZodObject<{
|
|
|
187
194
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
188
195
|
unit: z.ZodEnum<typeof LimitUnits>;
|
|
189
196
|
}, z.core.$strip>>;
|
|
197
|
+
instantTasksQueueSize: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
unit: z.ZodEnum<typeof LimitUnits>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
190
202
|
parallelApiRequestsPerCustomer: z.ZodOptional<z.ZodObject<{
|
|
191
203
|
value: z.ZodOptional<z.ZodNumber>;
|
|
192
204
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -332,6 +344,11 @@ export declare const AppSchema: z.ZodObject<{
|
|
|
332
344
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
333
345
|
unit: z.ZodEnum<typeof LimitUnits>;
|
|
334
346
|
}, z.core.$strip>>;
|
|
347
|
+
parallelInstantTasksActiveJobs: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
unit: z.ZodEnum<typeof LimitUnits>;
|
|
351
|
+
}, z.core.$strip>>;
|
|
335
352
|
ParallelWriteDatabaseRequests: z.ZodOptional<z.ZodObject<{
|
|
336
353
|
value: z.ZodOptional<z.ZodNumber>;
|
|
337
354
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -392,6 +409,11 @@ export declare const AppSchema: z.ZodObject<{
|
|
|
392
409
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
393
410
|
unit: z.ZodEnum<typeof LimitUnits>;
|
|
394
411
|
}, z.core.$strip>>;
|
|
412
|
+
instantTasksQueueSize: z.ZodOptional<z.ZodObject<{
|
|
413
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
414
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
415
|
+
unit: z.ZodEnum<typeof LimitUnits>;
|
|
416
|
+
}, z.core.$strip>>;
|
|
395
417
|
parallelApiRequestsPerCustomer: z.ZodOptional<z.ZodObject<{
|
|
396
418
|
value: z.ZodOptional<z.ZodNumber>;
|
|
397
419
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|