@membranehq/sdk 0.9.11 → 0.11.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 +75 -34
- package/dist/bundle.js +34 -17
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +18 -12
- package/dist/dts/accessors/integrations-accessors.d.ts +15 -11
- package/dist/dts/agent/session.d.ts +10 -0
- package/dist/dts/alerts/index.d.ts +1 -0
- package/dist/dts/alerts/types.d.ts +106 -13
- package/dist/dts/alerts/utils.d.ts +8 -0
- package/dist/dts/config/index.d.ts +1 -0
- package/dist/dts/dto/index.d.ts +3 -0
- package/dist/dts/functions/base.d.ts +2 -2
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/logging/index.d.ts +9 -0
- package/dist/dts/orgs/types.d.ts +68 -1
- package/dist/dts/platform-users.d.ts +17 -2
- package/dist/dts/usage/types.d.ts +1 -0
- package/dist/dts/webhooks/types.d.ts +4 -2
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +19 -4
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/flows-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +5 -4
- package/dist/dts/workspace-elements/api/packages-api.d.ts +2 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connections/types.d.ts +3 -1
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +20 -0
- package/dist/dts/workspace-elements/base/connectors/functions.d.ts +12 -490
- package/dist/dts/workspace-elements/base/connectors/functions.test.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +922 -478
- package/dist/dts/workspace-elements/base/data-collections/data-locations/collections/methods/base.d.ts +1 -2
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -0
- package/dist/dts/workspace-elements/element-utils.d.ts +2 -0
- package/dist/dts/workspace-elements/element-utils.test.d.ts +1 -0
- package/dist/dts/workspace-elements/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +9 -3
- package/dist/dts/workspaces/types.d.ts +39 -1
- package/dist/index.browser.d.mts +1420 -641
- package/dist/index.browser.d.ts +1420 -641
- package/dist/index.browser.js +608 -122
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +584 -123
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1370 -590
- package/dist/index.node.d.ts +1370 -590
- package/dist/index.node.js +615 -122
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +591 -123
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConnectorDataCollection } from '..';
|
|
2
2
|
import { DataSchema } from '../../../../../../data-schema';
|
|
3
3
|
import { ConnectorMethodImplementationType } from '../../../../connectors/methods';
|
|
4
|
-
import { ConnectorSpec } from '../../../../connectors/types';
|
|
5
4
|
import { DataCollectionSpec } from '../../../schemas';
|
|
6
5
|
import { ConnectorDataCollectionMethod } from '../../methods';
|
|
7
6
|
export interface ConnectorDataCollectionMethodType<ConfigFields = unknown> {
|
|
@@ -18,7 +17,7 @@ interface ConnectorDataCollectionMethodTypeArgs<ConfigFields = unknown> {
|
|
|
18
17
|
method?: ConnectorDataCollectionMethod<ConfigFields>;
|
|
19
18
|
collectionHandler?: ConnectorDataCollection;
|
|
20
19
|
collectionSpec?: DataCollectionSpec;
|
|
21
|
-
|
|
20
|
+
credentialsSchema?: DataSchema;
|
|
22
21
|
parameters?: any;
|
|
23
22
|
}
|
|
24
23
|
export {};
|
|
@@ -47,7 +47,6 @@ export declare const IntegrationEditableProperties: z.ZodObject<{
|
|
|
47
47
|
name: z.ZodOptional<z.ZodString>;
|
|
48
48
|
description: z.ZodOptional<z.ZodString>;
|
|
49
49
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
50
|
-
baseUri: z.ZodOptional<z.ZodString>;
|
|
51
50
|
logoUri: z.ZodOptional<z.ZodString>;
|
|
52
51
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
53
52
|
oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
|
|
@@ -63,7 +62,6 @@ export declare const IntegrationExportProperties: z.ZodObject<{
|
|
|
63
62
|
name: z.ZodOptional<z.ZodString>;
|
|
64
63
|
description: z.ZodOptional<z.ZodString>;
|
|
65
64
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
66
|
-
baseUri: z.ZodOptional<z.ZodString>;
|
|
67
65
|
logoUri: z.ZodOptional<z.ZodString>;
|
|
68
66
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
69
67
|
oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
|
|
@@ -55,6 +55,7 @@ export declare const PackageCalculatedProperties: z.ZodObject<{
|
|
|
55
55
|
key: z.ZodString;
|
|
56
56
|
name: z.ZodString;
|
|
57
57
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
58
59
|
}, z.core.$strip>;
|
|
59
60
|
export type PackageCalculatedProperties = z.infer<typeof PackageCalculatedProperties>;
|
|
60
61
|
export declare const BasePackage: z.ZodObject<{
|
|
@@ -85,6 +86,7 @@ export declare const BasePackage: z.ZodObject<{
|
|
|
85
86
|
key: z.ZodString;
|
|
86
87
|
name: z.ZodString;
|
|
87
88
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
88
90
|
}, z.core.$strip>;
|
|
89
91
|
export type BasePackage = z.infer<typeof BasePackage>;
|
|
90
92
|
export declare const WritablePackageVersionData: z.ZodObject<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -47,7 +47,8 @@ export declare enum WorkspaceEventType {
|
|
|
47
47
|
FlowRunStarted = "flowRun.started",
|
|
48
48
|
FlowRunCompleted = "flowRun.completed",
|
|
49
49
|
FlowRunFailed = "flowRun.failed",
|
|
50
|
-
FlowRunStopped = "flowRun.stopped"
|
|
50
|
+
FlowRunStopped = "flowRun.stopped",
|
|
51
|
+
AlertCreated = "alert.created"
|
|
51
52
|
}
|
|
52
53
|
export declare enum WorkspaceElementState {
|
|
53
54
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
@@ -137,6 +138,12 @@ export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.Zo
|
|
|
137
138
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
138
139
|
}, z.core.$strip>;
|
|
139
140
|
export type BaseIntegrationLevelMembraneInterfaceExportProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceExportProperties>;
|
|
141
|
+
export declare const MembraneElementLayer: z.ZodEnum<{
|
|
142
|
+
connection: "connection";
|
|
143
|
+
integration: "integration";
|
|
144
|
+
universal: "universal";
|
|
145
|
+
}>;
|
|
146
|
+
export type MembraneElementLayer = z.infer<typeof MembraneElementLayer>;
|
|
140
147
|
export declare const IntegrationLevelMembraneInterfaceSelectorQuery: z.ZodObject<{
|
|
141
148
|
layer: z.ZodOptional<z.ZodEnum<{
|
|
142
149
|
connection: "connection";
|
|
@@ -208,7 +215,6 @@ export declare const WorkspaceElementSearchQuery: z.ZodObject<{
|
|
|
208
215
|
export type WorkspaceElementSearchQuery = z.infer<typeof WorkspaceElementSearchQuery>;
|
|
209
216
|
export declare const WorkspaceElementSearchResult: z.ZodObject<{
|
|
210
217
|
elementType: z.ZodEnum<typeof WorkspaceElementType>;
|
|
211
|
-
|
|
212
|
-
name: z.ZodString;
|
|
218
|
+
element: z.ZodAny;
|
|
213
219
|
}, z.core.$strip>;
|
|
214
220
|
export type WorkspaceElementSearchResult = z.infer<typeof WorkspaceElementSearchResult>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
+
import { AlertDeliverySettings } from '../alerts';
|
|
2
3
|
import { DataSchema } from '../data-schema';
|
|
3
4
|
import { AppDataSchemaExportProperties, AppEventTypeExportProperties, DataLinkTableExportProperties, IntegrationExportProperties, DataSourceExportProperties, FieldMappingExportProperties, ActionExportProperties, FlowExportProperties, PackageExportProperties } from '../workspace-elements';
|
|
4
5
|
import { ConnectorAuth, RestApiClientOptions } from '../workspace-elements/base/connectors';
|
|
@@ -46,7 +47,8 @@ export declare const enum WorkspaceSizeLimits {
|
|
|
46
47
|
TotalNumberOfCustomers = "totalNumberOfCustomers",
|
|
47
48
|
TotalNumberOfConnections = "totalNumberOfConnections",
|
|
48
49
|
TotalNumberOfWorkspaceElements = "totalNumberOfWorkspaceElements",
|
|
49
|
-
InstantTasksQueueSize = "instantTasksQueueSize"
|
|
50
|
+
InstantTasksQueueSize = "instantTasksQueueSize",
|
|
51
|
+
QueuedTasksQueueSize = "queuedTasksQueueSize"
|
|
50
52
|
}
|
|
51
53
|
export declare const enum CustomerLimits {
|
|
52
54
|
ParallelApiRequestsPerCustomer = "parallelApiRequestsPerCustomer",
|
|
@@ -199,6 +201,11 @@ export declare const WorkspaceLimitsSchema: z.ZodObject<{
|
|
|
199
201
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
200
202
|
unit: z.ZodEnum<typeof LimitUnits>;
|
|
201
203
|
}, z.core.$strip>>;
|
|
204
|
+
QueuedTasksQueueSize: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
unit: z.ZodEnum<typeof LimitUnits>;
|
|
208
|
+
}, z.core.$strip>>;
|
|
202
209
|
parallelApiRequestsPerCustomer: z.ZodOptional<z.ZodObject<{
|
|
203
210
|
value: z.ZodOptional<z.ZodNumber>;
|
|
204
211
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -266,6 +273,7 @@ export declare const EngineWorkspaceSettingsSchema: z.ZodObject<{
|
|
|
266
273
|
enableWebhookLogs: z.ZodOptional<z.ZodBoolean>;
|
|
267
274
|
enableActionRunLogs: z.ZodOptional<z.ZodBoolean>;
|
|
268
275
|
disableSecretKeyAuth: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
useMembraneUniverse: z.ZodOptional<z.ZodBoolean>;
|
|
269
277
|
}, z.core.$strip>;
|
|
270
278
|
export declare const WorkspacePublicKey: z.ZodObject<{
|
|
271
279
|
name: z.ZodString;
|
|
@@ -414,6 +422,11 @@ export declare const AppSchema: z.ZodObject<{
|
|
|
414
422
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
415
423
|
unit: z.ZodEnum<typeof LimitUnits>;
|
|
416
424
|
}, z.core.$strip>>;
|
|
425
|
+
QueuedTasksQueueSize: z.ZodOptional<z.ZodObject<{
|
|
426
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
427
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
428
|
+
unit: z.ZodEnum<typeof LimitUnits>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
417
430
|
parallelApiRequestsPerCustomer: z.ZodOptional<z.ZodObject<{
|
|
418
431
|
value: z.ZodOptional<z.ZodNumber>;
|
|
419
432
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -470,6 +483,30 @@ export declare const AppSchema: z.ZodObject<{
|
|
|
470
483
|
enableWebhookLogs: z.ZodOptional<z.ZodBoolean>;
|
|
471
484
|
enableActionRunLogs: z.ZodOptional<z.ZodBoolean>;
|
|
472
485
|
disableSecretKeyAuth: z.ZodOptional<z.ZodBoolean>;
|
|
486
|
+
useMembraneUniverse: z.ZodOptional<z.ZodBoolean>;
|
|
487
|
+
}, z.core.$strip>>;
|
|
488
|
+
alertDeliverySettings: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
alertTypes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
490
|
+
fileUploadsMbPerHour: import("../alerts").AlertType.fileUploadsMbPerHour;
|
|
491
|
+
apiRequestsPerSecond: import("../alerts").AlertType.apiRequestsPerSecond;
|
|
492
|
+
apiRequestsPerHour: import("../alerts").AlertType.apiRequestsPerHour;
|
|
493
|
+
webhookRequestsPerSecond: import("../alerts").AlertType.webhookRequestsPerSecond;
|
|
494
|
+
webhookRequestsPerHour: import("../alerts").AlertType.webhookRequestsPerHour;
|
|
495
|
+
workspaceElementCreationsPerSecond: import("../alerts").AlertType.workspaceElementCreationsPerSecond;
|
|
496
|
+
workspaceElementCreationsPerHour: import("../alerts").AlertType.workspaceElementCreationsPerHour;
|
|
497
|
+
externalEventsPerCustomerPerDay: import("../alerts").AlertType.externalEventsPerCustomerPerDay;
|
|
498
|
+
totalUsagePerDay: import("../alerts").AlertType.totalUsagePerDay;
|
|
499
|
+
totalUsagePer30Days: import("../alerts").AlertType.totalUsagePer30Days;
|
|
500
|
+
testAlert: import("../alerts").AlertType.testAlert;
|
|
501
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
502
|
+
internal: z.ZodLiteral<true>;
|
|
503
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
enabled: z.ZodBoolean;
|
|
505
|
+
}, z.core.$strip>>;
|
|
506
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
507
|
+
enabled: z.ZodBoolean;
|
|
508
|
+
}, z.core.$strip>>;
|
|
509
|
+
}, z.core.$strip>>>>;
|
|
473
510
|
}, z.core.$strip>>;
|
|
474
511
|
type: z.ZodOptional<z.ZodEnum<typeof WorkspaceType>>;
|
|
475
512
|
jwksUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -501,6 +538,7 @@ export interface EngineWorkspace {
|
|
|
501
538
|
connectorBaseUri?: string;
|
|
502
539
|
limits: WorkspaceLimits;
|
|
503
540
|
settings?: EngineWorkspaceSettings;
|
|
541
|
+
alertDeliverySettings?: AlertDeliverySettings;
|
|
504
542
|
type?: WorkspaceType;
|
|
505
543
|
jwksUri?: string | null;
|
|
506
544
|
}
|