@membranehq/sdk 0.10.10 → 0.11.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 +201 -4
- package/dist/bundle.js +182 -53
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +8 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +9 -1
- package/dist/dts/agent/session.d.ts +5 -0
- package/dist/dts/alerts/types.d.ts +18 -0
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +17 -0
- package/dist/dts/stats/index.d.ts +33 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +34 -0
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +1 -0
- 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/connections-api.d.ts +22 -1
- package/dist/dts/workspace-elements/api/customers-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +8 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +14 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +16 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +14 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +14 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +38 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +16 -3
- package/dist/dts/workspace-elements/api/packages-api.d.ts +10 -0
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +1 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +3 -0
- package/dist/dts/workspace-elements/base/connections/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +3 -0
- package/dist/dts/workspace-elements/base/external-apps/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +28 -2
- package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -0
- package/dist/dts/workspace-elements/filter-meta.d.ts +9 -0
- package/dist/dts/workspace-elements/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +4 -0
- package/dist/dts/workspaces/types.d.ts +276 -34
- package/dist/index.browser.d.mts +665 -41
- package/dist/index.browser.d.ts +665 -41
- package/dist/index.browser.js +202 -24
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +191 -25
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +665 -41
- package/dist/index.node.d.ts +665 -41
- package/dist/index.node.js +202 -24
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +191 -25
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.browser.js
CHANGED
|
@@ -3519,6 +3519,7 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3519
3519
|
parentUuid: z.z.string().optional(),
|
|
3520
3520
|
connectionId: z.z.string().optional(),
|
|
3521
3521
|
instanceKey: z.z.string().optional(),
|
|
3522
|
+
isUniversal: z.z.boolean().optional(),
|
|
3522
3523
|
});
|
|
3523
3524
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3524
3525
|
isCustomized: z.z.boolean().optional(),
|
|
@@ -3530,16 +3531,67 @@ const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterf
|
|
|
3530
3531
|
});
|
|
3531
3532
|
const MembraneElementLayer = z.z.enum(['universal', 'integration', 'connection']);
|
|
3532
3533
|
const IntegrationLevelMembraneInterfaceSelectorQuery = z.z.object({
|
|
3533
|
-
layer: MembraneElementLayer.optional()
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3534
|
+
layer: MembraneElementLayer.optional().meta({
|
|
3535
|
+
filterTitle: 'Layer',
|
|
3536
|
+
}),
|
|
3537
|
+
integrationKey: z.z
|
|
3538
|
+
.string()
|
|
3539
|
+
.optional()
|
|
3540
|
+
.meta({
|
|
3541
|
+
hidden: true,
|
|
3542
|
+
}),
|
|
3543
|
+
integrationId: z.z
|
|
3544
|
+
.string()
|
|
3545
|
+
.optional()
|
|
3546
|
+
.meta({
|
|
3547
|
+
filterTitle: 'Integration',
|
|
3548
|
+
referenceElementType: exports.WorkspaceElementType.Integration,
|
|
3549
|
+
}),
|
|
3550
|
+
connectionId: z.z
|
|
3551
|
+
.string()
|
|
3552
|
+
.optional()
|
|
3553
|
+
.meta({
|
|
3554
|
+
filterTitle: 'Connection',
|
|
3555
|
+
referenceElementType: exports.WorkspaceElementType.Connection,
|
|
3556
|
+
}),
|
|
3557
|
+
instanceKey: z.z
|
|
3558
|
+
.string()
|
|
3559
|
+
.optional()
|
|
3560
|
+
.meta({
|
|
3561
|
+
filterTitle: 'Instance Key',
|
|
3562
|
+
}),
|
|
3538
3563
|
});
|
|
3539
3564
|
const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInterfaceSelectorQuery.extend(CommonListElementsQuery.shape).extend({
|
|
3540
|
-
parentId: z.z
|
|
3541
|
-
|
|
3542
|
-
|
|
3565
|
+
parentId: z.z
|
|
3566
|
+
.string()
|
|
3567
|
+
.optional()
|
|
3568
|
+
.meta({
|
|
3569
|
+
filterTitle: 'Parent',
|
|
3570
|
+
referenceElementType: 'self',
|
|
3571
|
+
}),
|
|
3572
|
+
universalParentId: z.z
|
|
3573
|
+
.string()
|
|
3574
|
+
.optional()
|
|
3575
|
+
.meta({
|
|
3576
|
+
filterTitle: 'Universal Parent',
|
|
3577
|
+
referenceElementType: 'self',
|
|
3578
|
+
}),
|
|
3579
|
+
tenantId: z.z
|
|
3580
|
+
.string()
|
|
3581
|
+
.optional()
|
|
3582
|
+
.meta({
|
|
3583
|
+
filterTitle: 'Customer',
|
|
3584
|
+
referenceElementType: exports.WorkspaceElementType.Customer,
|
|
3585
|
+
}),
|
|
3586
|
+
userId: z.z.string().optional().meta({
|
|
3587
|
+
hidden: true,
|
|
3588
|
+
}),
|
|
3589
|
+
isUniversal: zodBooleanCoercion()
|
|
3590
|
+
.optional()
|
|
3591
|
+
.meta({
|
|
3592
|
+
filterTitle: 'Is Universal',
|
|
3593
|
+
isFlag: true,
|
|
3594
|
+
}),
|
|
3543
3595
|
});
|
|
3544
3596
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3545
3597
|
const WorkspaceElementSearchQuery = z.z.object({
|
|
@@ -3782,6 +3834,8 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3782
3834
|
nextCredentialsRefreshAt: z.z.string().optional(),
|
|
3783
3835
|
nextRetryTimestamp: z.z.string().optional(),
|
|
3784
3836
|
retryAttempts: z.z.number().optional(),
|
|
3837
|
+
canTest: z.z.boolean().optional(),
|
|
3838
|
+
canRefreshCredentials: z.z.boolean().optional(),
|
|
3785
3839
|
archivedAt: z.z.string().optional(),
|
|
3786
3840
|
isDeactivated: z.z.boolean().optional(),
|
|
3787
3841
|
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
@@ -3890,11 +3944,12 @@ function getAuthSpec(spec, authOptionKey) {
|
|
|
3890
3944
|
const getDefaultAuthInputSchema = (args) => {
|
|
3891
3945
|
var _a, _b, _c, _d, _e, _f;
|
|
3892
3946
|
const authSpec = getAuthSpec(args.connectorSpec, args.authOptionKey);
|
|
3947
|
+
const inputSchema = (_b = (_a = authSpec === null || authSpec === void 0 ? void 0 : authSpec.ui) === null || _a === void 0 ? void 0 : _a.schema) !== null && _b !== void 0 ? _b : (_d = (_c = args.connectorSpec) === null || _c === void 0 ? void 0 : _c.ui) === null || _d === void 0 ? void 0 : _d.schema;
|
|
3893
3948
|
return {
|
|
3894
3949
|
type: 'object',
|
|
3895
3950
|
properties: {
|
|
3896
|
-
connectorParameters: (
|
|
3897
|
-
|
|
3951
|
+
connectorParameters: (_f = (_e = args.connectorSpec) === null || _e === void 0 ? void 0 : _e.parametersSchema) !== null && _f !== void 0 ? _f : {},
|
|
3952
|
+
connectionInput: inputSchema,
|
|
3898
3953
|
},
|
|
3899
3954
|
};
|
|
3900
3955
|
};
|
|
@@ -4228,12 +4283,12 @@ function getEffectiveConnectorOption(connector, optionKey) {
|
|
|
4228
4283
|
}
|
|
4229
4284
|
const getDefaultInputSchema = (authConfig) => {
|
|
4230
4285
|
var _a, _b, _c;
|
|
4231
|
-
const
|
|
4286
|
+
const inputSchema = (_a = authConfig === null || authConfig === void 0 ? void 0 : authConfig.inputSchema) !== null && _a !== void 0 ? _a : (_b = authConfig === null || authConfig === void 0 ? void 0 : authConfig.ui) === null || _b === void 0 ? void 0 : _b.schema;
|
|
4232
4287
|
return {
|
|
4233
4288
|
type: 'object',
|
|
4234
4289
|
properties: {
|
|
4235
4290
|
connectorParameters: (_c = authConfig === null || authConfig === void 0 ? void 0 : authConfig.parametersSchema) !== null && _c !== void 0 ? _c : {},
|
|
4236
|
-
...(
|
|
4291
|
+
...(inputSchema && { connectionInput: inputSchema }),
|
|
4237
4292
|
},
|
|
4238
4293
|
};
|
|
4239
4294
|
};
|
|
@@ -9475,6 +9530,11 @@ const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProp
|
|
|
9475
9530
|
});
|
|
9476
9531
|
const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
|
|
9477
9532
|
|
|
9533
|
+
const IntegrationOptionConfig = z.z.object({
|
|
9534
|
+
disabled: z.z.boolean().optional(),
|
|
9535
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9536
|
+
});
|
|
9537
|
+
const IntegrationOptions = z.z.record(z.z.string(), IntegrationOptionConfig);
|
|
9478
9538
|
const BaseIntegration = BaseMembraneInterface.extend({
|
|
9479
9539
|
logoUri: z.z.string(),
|
|
9480
9540
|
connectorId: z.z.string().optional(),
|
|
@@ -9496,9 +9556,9 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
9496
9556
|
appUuid: z.z.string().optional(),
|
|
9497
9557
|
isDeactivated: z.z.boolean().optional(),
|
|
9498
9558
|
authType: z.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
9559
|
+
optionsConfig: IntegrationOptions.optional(),
|
|
9499
9560
|
});
|
|
9500
9561
|
const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9501
|
-
baseUri: z.z.string().optional(),
|
|
9502
9562
|
logoUri: z.z.string().optional(),
|
|
9503
9563
|
appUuid: z.z.string().optional(),
|
|
9504
9564
|
oAuthCallbackUri: z.z.url().or(z.z.literal('')).optional(),
|
|
@@ -9506,6 +9566,8 @@ const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.ex
|
|
|
9506
9566
|
connectorVersion: z.z.string().optional(),
|
|
9507
9567
|
connectorId: z.z.string().optional(),
|
|
9508
9568
|
connectorUuid: z.z.string().optional(),
|
|
9569
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9570
|
+
optionsConfig: IntegrationOptions.optional(),
|
|
9509
9571
|
});
|
|
9510
9572
|
const IntegrationExportProperties = IntegrationEditableProperties.extend({
|
|
9511
9573
|
connectorUuid: z.z.string().optional(),
|
|
@@ -9589,6 +9651,7 @@ const BaseCustomer = z.z.object({
|
|
|
9589
9651
|
lastActiveAt: z.z.string().optional(),
|
|
9590
9652
|
isTest: z.z.boolean().optional(),
|
|
9591
9653
|
isBillable: z.z.boolean().optional(),
|
|
9654
|
+
isActive: z.z.boolean().optional(),
|
|
9592
9655
|
createdAt: z.z.string().optional(),
|
|
9593
9656
|
archivedAt: z.z.string().optional(),
|
|
9594
9657
|
});
|
|
@@ -9948,7 +10011,13 @@ const ActionApiResponse = BaseAction.extend({
|
|
|
9948
10011
|
dependencies: z.z.array(z.z.any()).optional(),
|
|
9949
10012
|
});
|
|
9950
10013
|
const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery.extend({
|
|
9951
|
-
externalAppId: z.z
|
|
10014
|
+
externalAppId: z.z
|
|
10015
|
+
.string()
|
|
10016
|
+
.optional()
|
|
10017
|
+
.meta({
|
|
10018
|
+
filterTitle: 'External App',
|
|
10019
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10020
|
+
}),
|
|
9952
10021
|
});
|
|
9953
10022
|
const CreateActionRequest = ActionEditableProperties;
|
|
9954
10023
|
const UpdateActionRequest = CreateActionRequest.partial();
|
|
@@ -10019,7 +10088,7 @@ const ConnectionApiResponse = BaseConnection.extend({
|
|
|
10019
10088
|
});
|
|
10020
10089
|
const ConnectionApiResponseWithSecrets = ConnectionApiResponse.extend({
|
|
10021
10090
|
credentials: z.z.unknown().optional(),
|
|
10022
|
-
|
|
10091
|
+
input: z.z.unknown().optional(),
|
|
10023
10092
|
connectorParameters: z.z.unknown().optional(),
|
|
10024
10093
|
});
|
|
10025
10094
|
const ConnectionMessagePayload = z.z.discriminatedUnion('type', [
|
|
@@ -10246,7 +10315,6 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
10246
10315
|
.array(IntegrationAuthOption)
|
|
10247
10316
|
.optional()
|
|
10248
10317
|
.describe('[INTERNAL] Deprecated: Use POST /connectors/:id/generate-options instead'),
|
|
10249
|
-
parametersSchema: DataSchema.optional(),
|
|
10250
10318
|
});
|
|
10251
10319
|
|
|
10252
10320
|
const PackageElementApi = z.z.object({
|
|
@@ -10687,6 +10755,14 @@ function setEditablePropertiesForWorkspaceElement(currentElement, newEditableFie
|
|
|
10687
10755
|
};
|
|
10688
10756
|
}
|
|
10689
10757
|
|
|
10758
|
+
const REFERENCE_ELEMENT_TYPE_SELF = 'self';
|
|
10759
|
+
function getFilterFieldMeta(meta) {
|
|
10760
|
+
if (meta && typeof meta === 'object' && !Array.isArray(meta)) {
|
|
10761
|
+
return meta;
|
|
10762
|
+
}
|
|
10763
|
+
return undefined;
|
|
10764
|
+
}
|
|
10765
|
+
|
|
10690
10766
|
const WorkspaceElementSpecs = {
|
|
10691
10767
|
[exports.WorkspaceElementType.Customer]: {
|
|
10692
10768
|
type: exports.WorkspaceElementType.Customer,
|
|
@@ -11258,6 +11334,27 @@ function getBusinessDaysBetween(startDate, endDate) {
|
|
|
11258
11334
|
return businessDays;
|
|
11259
11335
|
}
|
|
11260
11336
|
|
|
11337
|
+
const StatsFilterQuery = z.z.object({
|
|
11338
|
+
tenantId: z.z.string().optional(),
|
|
11339
|
+
integrationId: z.z.string().optional(),
|
|
11340
|
+
connectionId: z.z.string().optional(),
|
|
11341
|
+
});
|
|
11342
|
+
const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
11343
|
+
startDatetime: z.z.string().datetime({ offset: true }),
|
|
11344
|
+
});
|
|
11345
|
+
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
11346
|
+
const ActionRunsStatsQuery = z.z.object({
|
|
11347
|
+
actionId: z.z.string().optional(),
|
|
11348
|
+
actionInstanceId: z.z.string().optional(),
|
|
11349
|
+
startDatetime: z.z.string().datetime({ offset: true }),
|
|
11350
|
+
});
|
|
11351
|
+
const FlowRunsStatsQuery = z.z.object({
|
|
11352
|
+
flowId: z.z.string().optional(),
|
|
11353
|
+
flowInstanceId: z.z.string().optional(),
|
|
11354
|
+
universalFlowId: z.z.string().optional(),
|
|
11355
|
+
startDatetime: z.z.string().datetime({ offset: true }),
|
|
11356
|
+
});
|
|
11357
|
+
|
|
11261
11358
|
exports.IntegrationElementLevel = void 0;
|
|
11262
11359
|
(function (IntegrationElementLevel) {
|
|
11263
11360
|
IntegrationElementLevel["UNIVERSAL"] = "universal";
|
|
@@ -11428,6 +11525,10 @@ exports.AlertType = void 0;
|
|
|
11428
11525
|
AlertType["workspaceElementCreationsPerSecond"] = "workspaceElementCreationsPerSecond";
|
|
11429
11526
|
AlertType["workspaceElementCreationsPerHour"] = "workspaceElementCreationsPerHour";
|
|
11430
11527
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
11528
|
+
AlertType["apiRequestsPerCustomerPerSecond"] = "apiRequestsPerCustomerPerSecond";
|
|
11529
|
+
AlertType["apiRequestsPerCustomerPerHour"] = "apiRequestsPerCustomerPerHour";
|
|
11530
|
+
AlertType["webhookRequestsPerCustomerPerSecond"] = "webhookRequestsPerCustomerPerSecond";
|
|
11531
|
+
AlertType["webhookRequestsPerCustomerPerHour"] = "webhookRequestsPerCustomerPerHour";
|
|
11431
11532
|
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
11432
11533
|
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
11433
11534
|
AlertType["testAlert"] = "testAlert";
|
|
@@ -11435,6 +11536,7 @@ exports.AlertType = void 0;
|
|
|
11435
11536
|
exports.AlertCategory = void 0;
|
|
11436
11537
|
(function (AlertCategory) {
|
|
11437
11538
|
AlertCategory["RATE_LIMIT"] = "rateLimit";
|
|
11539
|
+
AlertCategory["CUSTOMER_RATE_LIMIT"] = "customerRateLimit";
|
|
11438
11540
|
AlertCategory["USAGE"] = "usage";
|
|
11439
11541
|
AlertCategory["TEST"] = "test";
|
|
11440
11542
|
})(exports.AlertCategory || (exports.AlertCategory = {}));
|
|
@@ -11447,6 +11549,10 @@ const ALERT_TYPE_CATEGORIES = {
|
|
|
11447
11549
|
[exports.AlertType.workspaceElementCreationsPerSecond]: exports.AlertCategory.RATE_LIMIT,
|
|
11448
11550
|
[exports.AlertType.workspaceElementCreationsPerHour]: exports.AlertCategory.RATE_LIMIT,
|
|
11449
11551
|
[exports.AlertType.externalEventsPerCustomerPerDay]: exports.AlertCategory.RATE_LIMIT,
|
|
11552
|
+
[exports.AlertType.apiRequestsPerCustomerPerSecond]: exports.AlertCategory.CUSTOMER_RATE_LIMIT,
|
|
11553
|
+
[exports.AlertType.apiRequestsPerCustomerPerHour]: exports.AlertCategory.CUSTOMER_RATE_LIMIT,
|
|
11554
|
+
[exports.AlertType.webhookRequestsPerCustomerPerSecond]: exports.AlertCategory.CUSTOMER_RATE_LIMIT,
|
|
11555
|
+
[exports.AlertType.webhookRequestsPerCustomerPerHour]: exports.AlertCategory.CUSTOMER_RATE_LIMIT,
|
|
11450
11556
|
[exports.AlertType.totalUsagePerDay]: exports.AlertCategory.USAGE,
|
|
11451
11557
|
[exports.AlertType.totalUsagePer30Days]: exports.AlertCategory.USAGE,
|
|
11452
11558
|
[exports.AlertType.testAlert]: exports.AlertCategory.TEST,
|
|
@@ -11507,6 +11613,10 @@ function getAlertTypeDisplayName(alertType) {
|
|
|
11507
11613
|
[exports.AlertType.workspaceElementCreationsPerSecond]: 'Workspace Element Creations Per Second',
|
|
11508
11614
|
[exports.AlertType.workspaceElementCreationsPerHour]: 'Workspace Element Creations Per Hour',
|
|
11509
11615
|
[exports.AlertType.externalEventsPerCustomerPerDay]: 'External Events Per Customer Per Day',
|
|
11616
|
+
[exports.AlertType.apiRequestsPerCustomerPerSecond]: 'API Requests Per Customer Per Second',
|
|
11617
|
+
[exports.AlertType.apiRequestsPerCustomerPerHour]: 'API Requests Per Customer Per Hour',
|
|
11618
|
+
[exports.AlertType.webhookRequestsPerCustomerPerSecond]: 'Webhook Requests Per Customer Per Second',
|
|
11619
|
+
[exports.AlertType.webhookRequestsPerCustomerPerHour]: 'Webhook Requests Per Customer Per Hour',
|
|
11510
11620
|
[exports.AlertType.totalUsagePerDay]: 'Total Usage Per Day',
|
|
11511
11621
|
[exports.AlertType.totalUsagePer30Days]: 'Total Usage Per 30 Days',
|
|
11512
11622
|
[exports.AlertType.testAlert]: 'Test Alert',
|
|
@@ -11534,6 +11644,7 @@ function isDeliveryMethodEnabled(settings, method) {
|
|
|
11534
11644
|
function getAlertCategoryDisplayName(category) {
|
|
11535
11645
|
const names = {
|
|
11536
11646
|
[exports.AlertCategory.RATE_LIMIT]: 'Rate Limit Alerts',
|
|
11647
|
+
[exports.AlertCategory.CUSTOMER_RATE_LIMIT]: 'Customer Rate Limit Alerts',
|
|
11537
11648
|
[exports.AlertCategory.USAGE]: 'Usage Alerts',
|
|
11538
11649
|
[exports.AlertCategory.TEST]: 'Test',
|
|
11539
11650
|
};
|
|
@@ -11564,6 +11675,49 @@ exports.WorkspaceNotificationType = void 0;
|
|
|
11564
11675
|
WorkspaceNotificationType["CopilotActivity"] = "copilot-activity";
|
|
11565
11676
|
WorkspaceNotificationType["LocalClientUpdate"] = "local-client-update";
|
|
11566
11677
|
})(exports.WorkspaceNotificationType || (exports.WorkspaceNotificationType = {}));
|
|
11678
|
+
exports.ParallelExecutionLimits = void 0;
|
|
11679
|
+
(function (ParallelExecutionLimits) {
|
|
11680
|
+
ParallelExecutionLimits["ParallelEventPulls"] = "parallelEventPulls";
|
|
11681
|
+
ParallelExecutionLimits["ParallelIncrementalEventPullsPerConnection"] = "parallelIncrementalEventPullsPerConnection";
|
|
11682
|
+
ParallelExecutionLimits["ParallelFullSyncEventPullsPerConnection"] = "parallelFullSyncEventPullsPerConnection";
|
|
11683
|
+
ParallelExecutionLimits["ParallelFlowRuns"] = "parallelFlowRuns";
|
|
11684
|
+
ParallelExecutionLimits["ParallelFlowRunsPerConnection"] = "parallelFlowRunsPerConnection";
|
|
11685
|
+
ParallelExecutionLimits["ParallelApiRequests"] = "parallelApiRequests";
|
|
11686
|
+
ParallelExecutionLimits["ParallelSseRequests"] = "parallelSseRequests";
|
|
11687
|
+
ParallelExecutionLimits["ParallelBackgroundJobs"] = "parallelBackgroundJobs";
|
|
11688
|
+
ParallelExecutionLimits["ParallelEventLogs"] = "parallelEventLogs";
|
|
11689
|
+
ParallelExecutionLimits["ParallelEventLogsPerConnection"] = "parallelEventLogsPerConnection";
|
|
11690
|
+
ParallelExecutionLimits["ParallelPathfinderAgentSessions"] = "parallelPathfinderAgentSessions";
|
|
11691
|
+
ParallelExecutionLimits["ParallelInstantTasksActiveJobs"] = "parallelInstantTasksActiveJobs";
|
|
11692
|
+
})(exports.ParallelExecutionLimits || (exports.ParallelExecutionLimits = {}));
|
|
11693
|
+
exports.RateLimits = void 0;
|
|
11694
|
+
(function (RateLimits) {
|
|
11695
|
+
RateLimits["fileUploadsMbPerHour"] = "fileUploadsMbPerHour";
|
|
11696
|
+
RateLimits["ApiRequestsPerSecond"] = "apiRequestsPerSecond";
|
|
11697
|
+
RateLimits["ApiRequestsPerHour"] = "apiRequestsPerHour";
|
|
11698
|
+
RateLimits["WebhookRequestsPerSecond"] = "webhookRequestsPerSecond";
|
|
11699
|
+
RateLimits["WebhookRequestsPerHour"] = "webhookRequestsPerHour";
|
|
11700
|
+
RateLimits["WorkspaceElementCreationsPerSecond"] = "workspaceElementCreationsPerSecond";
|
|
11701
|
+
RateLimits["WorkspaceElementCreationsPerHour"] = "workspaceElementCreationsPerHour";
|
|
11702
|
+
RateLimits["ExternalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
11703
|
+
})(exports.RateLimits || (exports.RateLimits = {}));
|
|
11704
|
+
exports.WorkspaceSizeLimits = void 0;
|
|
11705
|
+
(function (WorkspaceSizeLimits) {
|
|
11706
|
+
WorkspaceSizeLimits["TotalNumberOfCustomers"] = "totalNumberOfCustomers";
|
|
11707
|
+
WorkspaceSizeLimits["TotalNumberOfConnections"] = "totalNumberOfConnections";
|
|
11708
|
+
WorkspaceSizeLimits["TotalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
11709
|
+
WorkspaceSizeLimits["InstantTasksQueueSize"] = "instantTasksQueueSize";
|
|
11710
|
+
WorkspaceSizeLimits["QueuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
11711
|
+
})(exports.WorkspaceSizeLimits || (exports.WorkspaceSizeLimits = {}));
|
|
11712
|
+
exports.CustomerLimits = void 0;
|
|
11713
|
+
(function (CustomerLimits) {
|
|
11714
|
+
CustomerLimits["ParallelApiRequestsPerCustomer"] = "parallelApiRequestsPerCustomer";
|
|
11715
|
+
CustomerLimits["ParallelBackgroundJobsPerCustomer"] = "parallelBackgroundJobsPerCustomer";
|
|
11716
|
+
CustomerLimits["ApiRequestsPerCustomerPerSecond"] = "apiRequestsPerCustomerPerSecond";
|
|
11717
|
+
CustomerLimits["ApiRequestsPerCustomerPerHour"] = "apiRequestsPerCustomerPerHour";
|
|
11718
|
+
CustomerLimits["WebhookRequestsPerCustomerPerSecond"] = "webhookRequestsPerCustomerPerSecond";
|
|
11719
|
+
CustomerLimits["WebhookRequestsPerCustomerPerHour"] = "webhookRequestsPerCustomerPerHour";
|
|
11720
|
+
})(exports.CustomerLimits || (exports.CustomerLimits = {}));
|
|
11567
11721
|
exports.LimitUnits = void 0;
|
|
11568
11722
|
(function (LimitUnits) {
|
|
11569
11723
|
LimitUnits["Number"] = "number";
|
|
@@ -11587,6 +11741,7 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
11587
11741
|
parallelEventLogs: WorkspaceLimit.optional(),
|
|
11588
11742
|
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
11589
11743
|
parallelInstantTasksActiveJobs: WorkspaceLimit.optional(),
|
|
11744
|
+
parallelPathfinderAgentSessions: WorkspaceLimit.optional(),
|
|
11590
11745
|
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
11591
11746
|
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
11592
11747
|
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
@@ -11612,18 +11767,19 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
11612
11767
|
updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
11613
11768
|
parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
11614
11769
|
});
|
|
11615
|
-
const
|
|
11770
|
+
const WorkspaceSettingsSchema = z.object({
|
|
11616
11771
|
enableApiLogs: z.boolean().optional(),
|
|
11617
11772
|
enableWebhookLogs: z.boolean().optional(),
|
|
11618
11773
|
enableActionRunLogs: z.boolean().optional(),
|
|
11619
11774
|
disableSecretKeyAuth: z.boolean().optional(),
|
|
11620
11775
|
useMembraneUniverse: z.boolean().optional(),
|
|
11621
11776
|
});
|
|
11777
|
+
const EngineWorkspaceSettingsSchema = WorkspaceSettingsSchema;
|
|
11622
11778
|
const WorkspacePublicKey = z.object({
|
|
11623
11779
|
name: z.string(),
|
|
11624
11780
|
publicKey: z.string(),
|
|
11625
11781
|
});
|
|
11626
|
-
const
|
|
11782
|
+
const Workspace = z.object({
|
|
11627
11783
|
id: z.string(),
|
|
11628
11784
|
key: z.string(),
|
|
11629
11785
|
logoUri: z.string().optional(),
|
|
@@ -11643,7 +11799,7 @@ const AppSchema = z.object({
|
|
|
11643
11799
|
connectorRevision: z.string().optional(),
|
|
11644
11800
|
featureFlags: z.array(z.string()).optional(),
|
|
11645
11801
|
limits: WorkspaceLimitsSchema.optional(),
|
|
11646
|
-
settings:
|
|
11802
|
+
settings: WorkspaceSettingsSchema.optional(),
|
|
11647
11803
|
alertDeliverySettings: AlertDeliverySettingsSchema.optional(),
|
|
11648
11804
|
type: z.nativeEnum(exports.WorkspaceType).optional(),
|
|
11649
11805
|
jwksUri: z.string().nullable().optional(),
|
|
@@ -11651,7 +11807,9 @@ const AppSchema = z.object({
|
|
|
11651
11807
|
isThrottled: z.boolean().optional(),
|
|
11652
11808
|
isDisabled: z.boolean().optional(),
|
|
11653
11809
|
isBackgroundJobsDisabled: z.boolean().optional(),
|
|
11810
|
+
lastExternalApiRequestDate: z.string().nullable().optional(),
|
|
11654
11811
|
});
|
|
11812
|
+
const AppSchema = Workspace;
|
|
11655
11813
|
|
|
11656
11814
|
const PARALLEL_EXECUTION_LIMITS = [
|
|
11657
11815
|
'parallelEventPulls',
|
|
@@ -11885,6 +12043,7 @@ const MembraneAgentKey = z.z
|
|
|
11885
12043
|
expiresAt: z.z.string().optional(),
|
|
11886
12044
|
})
|
|
11887
12045
|
.optional();
|
|
12046
|
+
const OrgFeatureFlagsSchema = z.z.record(z.z.string(), z.z.boolean());
|
|
11888
12047
|
const OrgSchema = z.z.object({
|
|
11889
12048
|
id: z.z.string(),
|
|
11890
12049
|
key: z.z.string(),
|
|
@@ -11915,6 +12074,7 @@ const OrgSchema = z.z.object({
|
|
|
11915
12074
|
infraAutoChargeThreshold: z.z.number().optional(),
|
|
11916
12075
|
infraAutoChargePurchaseAmount: z.z.number().optional(),
|
|
11917
12076
|
infraAutoChargeMonthlyLimit: z.z.number().optional(),
|
|
12077
|
+
effectiveFeatureFlags: OrgFeatureFlagsSchema.optional(),
|
|
11918
12078
|
});
|
|
11919
12079
|
const AccountResponse = z.z.object({
|
|
11920
12080
|
user: FullPlatformUser.optional(),
|
|
@@ -12938,7 +13098,7 @@ class ConnectionAccessor {
|
|
|
12938
13098
|
return createOrUpdateConnection({
|
|
12939
13099
|
connectionId: connection.id,
|
|
12940
13100
|
connectorSpec,
|
|
12941
|
-
parameters,
|
|
13101
|
+
input: parameters,
|
|
12942
13102
|
authOptionKey,
|
|
12943
13103
|
connectorParameters,
|
|
12944
13104
|
apiUri: this.client.apiUri,
|
|
@@ -13032,7 +13192,7 @@ class ConnectionProxy {
|
|
|
13032
13192
|
}
|
|
13033
13193
|
}
|
|
13034
13194
|
async function createOrUpdateConnection(options) {
|
|
13035
|
-
const { connectionId, integrationId, connectorId, connectorVersion, name,
|
|
13195
|
+
const { connectionId, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
13036
13196
|
const connectionType = getConnectionType({
|
|
13037
13197
|
connectorSpec,
|
|
13038
13198
|
authOptionKey,
|
|
@@ -13053,7 +13213,7 @@ async function createOrUpdateConnection(options) {
|
|
|
13053
13213
|
const requestId = simpleUniqueId() + simpleUniqueId();
|
|
13054
13214
|
const payload = {
|
|
13055
13215
|
token,
|
|
13056
|
-
|
|
13216
|
+
input,
|
|
13057
13217
|
connectorParameters,
|
|
13058
13218
|
connectorId,
|
|
13059
13219
|
connectorVersion,
|
|
@@ -13353,14 +13513,14 @@ class IntegrationAccessor extends ElementAccessor {
|
|
|
13353
13513
|
});
|
|
13354
13514
|
});
|
|
13355
13515
|
}
|
|
13356
|
-
async connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, } = {}) {
|
|
13516
|
+
async connect({ name, input, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, } = {}) {
|
|
13357
13517
|
const integration = await this.get();
|
|
13358
13518
|
const connectorSpec = await this.getConnectorSpec();
|
|
13359
13519
|
return createOrUpdateConnection({
|
|
13360
13520
|
integrationId: integration.id,
|
|
13361
13521
|
connectorSpec,
|
|
13362
13522
|
name,
|
|
13363
|
-
parameters,
|
|
13523
|
+
input: input !== null && input !== void 0 ? input : parameters,
|
|
13364
13524
|
connectorParameters,
|
|
13365
13525
|
authOptionKey,
|
|
13366
13526
|
allowMultipleConnections,
|
|
@@ -13690,6 +13850,11 @@ exports.AgentSessionState = void 0;
|
|
|
13690
13850
|
AgentSessionState["BUSY"] = "busy";
|
|
13691
13851
|
AgentSessionState["IDLE"] = "idle";
|
|
13692
13852
|
})(exports.AgentSessionState || (exports.AgentSessionState = {}));
|
|
13853
|
+
exports.AgentName = void 0;
|
|
13854
|
+
(function (AgentName) {
|
|
13855
|
+
AgentName["MEMBRANE"] = "membrane";
|
|
13856
|
+
AgentName["SELF_INTEGRATING"] = "self-integrating";
|
|
13857
|
+
})(exports.AgentName || (exports.AgentName = {}));
|
|
13693
13858
|
const AgentSession = z.z.object({
|
|
13694
13859
|
id: z.z.string(),
|
|
13695
13860
|
workspaceId: z.z.string(),
|
|
@@ -13708,6 +13873,7 @@ const AgentSession = z.z.object({
|
|
|
13708
13873
|
usage: z.z.number().optional(),
|
|
13709
13874
|
hasWorker: z.z.boolean(),
|
|
13710
13875
|
isExternal: z.z.boolean().optional(),
|
|
13876
|
+
agentName: z.z.enum(exports.AgentName).optional(),
|
|
13711
13877
|
createdAt: z.z.iso.datetime(),
|
|
13712
13878
|
updatedAt: z.z.iso.datetime(),
|
|
13713
13879
|
});
|
|
@@ -14060,7 +14226,9 @@ exports.ActionInstancesAccessor = ActionInstancesAccessor;
|
|
|
14060
14226
|
exports.ActionRunError = ActionRunError;
|
|
14061
14227
|
exports.ActionRunLogRecordApiResponse = ActionRunLogRecordApiResponse;
|
|
14062
14228
|
exports.ActionRunResponse = ActionRunResponse;
|
|
14229
|
+
exports.ActionRunsStatsQuery = ActionRunsStatsQuery;
|
|
14063
14230
|
exports.ActionsAccessor = ActionsAccessor;
|
|
14231
|
+
exports.ActivityStatsQuery = ActivityStatsQuery;
|
|
14064
14232
|
exports.AgentSession = AgentSession;
|
|
14065
14233
|
exports.AgentSessionInputSchema = AgentSessionInputSchema;
|
|
14066
14234
|
exports.AlertDeliverySettingsSchema = AlertDeliverySettingsSchema;
|
|
@@ -14370,6 +14538,7 @@ exports.FlowRunLaunchedBy = FlowRunLaunchedBy;
|
|
|
14370
14538
|
exports.FlowRunLaunchedByApi = FlowRunLaunchedByApi;
|
|
14371
14539
|
exports.FlowRunNode = FlowRunNode;
|
|
14372
14540
|
exports.FlowRunsAccessor = FlowRunsAccessor;
|
|
14541
|
+
exports.FlowRunsStatsQuery = FlowRunsStatsQuery;
|
|
14373
14542
|
exports.FlowsAccessor = FlowsAccessor;
|
|
14374
14543
|
exports.Formula = Formula;
|
|
14375
14544
|
exports.FullPlatformUser = FullPlatformUser;
|
|
@@ -14393,6 +14562,7 @@ exports.IntegrationAuthOption = IntegrationAuthOption;
|
|
|
14393
14562
|
exports.IntegrationAuthUi = IntegrationAuthUi;
|
|
14394
14563
|
exports.IntegrationEditableProperties = IntegrationEditableProperties;
|
|
14395
14564
|
exports.IntegrationExportProperties = IntegrationExportProperties;
|
|
14565
|
+
exports.IntegrationLayerStatsQuery = IntegrationLayerStatsQuery;
|
|
14396
14566
|
exports.IntegrationLevelActionAccessor = IntegrationLevelActionAccessor;
|
|
14397
14567
|
exports.IntegrationLevelActionsListAccessor = IntegrationLevelActionsListAccessor;
|
|
14398
14568
|
exports.IntegrationLevelDataSourceAccessor = IntegrationLevelDataSourceAccessor;
|
|
@@ -14402,6 +14572,8 @@ exports.IntegrationLevelFieldMappingsListAccessor = IntegrationLevelFieldMapping
|
|
|
14402
14572
|
exports.IntegrationLevelFlowAccessor = IntegrationLevelFlowAccessor;
|
|
14403
14573
|
exports.IntegrationLevelFlowsListAccessor = IntegrationLevelFlowsListAccessor;
|
|
14404
14574
|
exports.IntegrationLevelMembraneInterfaceSelectorQuery = IntegrationLevelMembraneInterfaceSelectorQuery;
|
|
14575
|
+
exports.IntegrationOptionConfig = IntegrationOptionConfig;
|
|
14576
|
+
exports.IntegrationOptions = IntegrationOptions;
|
|
14405
14577
|
exports.IntegrationSpecificElementSelector = IntegrationSpecificElementSelector;
|
|
14406
14578
|
exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
14407
14579
|
exports.InternalError = InternalError;
|
|
@@ -14434,6 +14606,7 @@ exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
|
14434
14606
|
exports.OpenapiMappingSchema = OpenapiMappingSchema;
|
|
14435
14607
|
exports.OperationMappingFunction = OperationMappingFunction;
|
|
14436
14608
|
exports.OperationMappingSchema = OperationMappingSchema;
|
|
14609
|
+
exports.OrgFeatureFlagsSchema = OrgFeatureFlagsSchema;
|
|
14437
14610
|
exports.OrgLimits = OrgLimits;
|
|
14438
14611
|
exports.OrgSchema = OrgSchema;
|
|
14439
14612
|
exports.OrgWorkspaceSchema = OrgWorkspaceSchema;
|
|
@@ -14457,6 +14630,7 @@ exports.PaginationResponse = PaginationResponse;
|
|
|
14457
14630
|
exports.PatchAgentSessionSchema = PatchAgentSessionSchema;
|
|
14458
14631
|
exports.PlatformUserSchema = PlatformUserSchema;
|
|
14459
14632
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
14633
|
+
exports.REFERENCE_ELEMENT_TYPE_SELF = REFERENCE_ELEMENT_TYPE_SELF;
|
|
14460
14634
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
14461
14635
|
exports.RequestMappingSchema = RequestMappingSchema;
|
|
14462
14636
|
exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
@@ -14474,6 +14648,7 @@ exports.ScreenBlock = ScreenBlock;
|
|
|
14474
14648
|
exports.ScreensAccessor = ScreensAccessor;
|
|
14475
14649
|
exports.SearchQuery = SearchQuery;
|
|
14476
14650
|
exports.SelfAccessor = SelfAccessor;
|
|
14651
|
+
exports.StatsFilterQuery = StatsFilterQuery;
|
|
14477
14652
|
exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
|
|
14478
14653
|
exports.UnitRunError = UnitRunError;
|
|
14479
14654
|
exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
|
|
@@ -14492,11 +14667,13 @@ exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
|
|
|
14492
14667
|
exports.UserAccessor = UserAccessor;
|
|
14493
14668
|
exports.UsersAccessor = UsersAccessor;
|
|
14494
14669
|
exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
|
|
14670
|
+
exports.Workspace = Workspace;
|
|
14495
14671
|
exports.WorkspaceElementSearchQuery = WorkspaceElementSearchQuery;
|
|
14496
14672
|
exports.WorkspaceElementSearchResult = WorkspaceElementSearchResult;
|
|
14497
14673
|
exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
|
|
14498
14674
|
exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
|
|
14499
14675
|
exports.WorkspacePublicKey = WorkspacePublicKey;
|
|
14676
|
+
exports.WorkspaceSettingsSchema = WorkspaceSettingsSchema;
|
|
14500
14677
|
exports.WritableConnectorVersionData = WritableConnectorVersionData;
|
|
14501
14678
|
exports.WritablePackageVersionData = WritablePackageVersionData;
|
|
14502
14679
|
exports.WriteableConnectorFields = WriteableConnectorFields;
|
|
@@ -14549,6 +14726,7 @@ exports.getEffectiveConnectorOption = getEffectiveConnectorOption;
|
|
|
14549
14726
|
exports.getElementSelector = getElementSelector;
|
|
14550
14727
|
exports.getErrorFromData = getErrorFromData;
|
|
14551
14728
|
exports.getEventMethodFileKey = getEventMethodFileKey;
|
|
14729
|
+
exports.getFilterFieldMeta = getFilterFieldMeta;
|
|
14552
14730
|
exports.getFilterFieldValuesByLocator = getFilterFieldValuesByLocator;
|
|
14553
14731
|
exports.getFlowInstanceNodeDependency = getFlowInstanceNodeDependency;
|
|
14554
14732
|
exports.getFlowNode = getFlowNode;
|