@membranehq/sdk 0.8.4 → 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 +423 -293
- package/dist/bundle.js +142 -103
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +1 -16
- package/dist/dts/accessors/actions-accessors.d.ts +26 -7
- package/dist/dts/accessors/actions-accessors.test.d.ts +1 -0
- package/dist/dts/accessors/connections-accessors.d.ts +7 -5
- package/dist/dts/accessors/integrations-accessors.d.ts +7 -5
- 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/alerts/types.d.ts +2 -1
- package/dist/dts/api-version.generated.d.ts +10 -0
- package/dist/dts/apps/types.d.ts +371 -0
- package/dist/dts/entity-repository.d.ts +0 -1
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/formulas/dataSchemaRef.d.ts +3 -3
- package/dist/dts/index.browser.d.ts +4 -2
- package/dist/dts/orgs/types.d.ts +342 -3
- package/dist/dts/platform-users.d.ts +24 -0
- package/dist/dts/usage/types.d.ts +4 -2
- package/dist/dts/validation/types.d.ts +2 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +15 -11
- package/dist/dts/workspace-elements/api/actions-api.d.ts +57 -55
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +5 -5
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +9 -3
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +9 -7
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +11 -8
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +10 -6
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +10 -7
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +10 -7
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +9 -6
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +8 -6
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +24 -19
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +14 -14
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +18 -14
- package/dist/dts/workspace-elements/api/flows-api.d.ts +133 -29
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +5 -3
- package/dist/dts/workspace-elements/api/packages-api.d.ts +30 -18
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +30 -14
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -2
- package/dist/dts/workspace-elements/base/connections/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +3 -3
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +22 -3
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +6 -4
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +6 -4
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +23 -3
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/flows/index.d.ts +45 -3
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -4
- package/dist/dts/workspace-elements/base/packages/index.d.ts +35 -8
- 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/workspace-elements/paths.d.ts +8 -0
- package/dist/dts/workspace-elements/paths.test.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +21 -9
- package/dist/dts/workspace-elements-catalog/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 -9
- package/dist/index.browser.d.mts +9626 -8664
- package/dist/index.browser.d.ts +9626 -8664
- package/dist/index.browser.js +526 -273
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +502 -273
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +9647 -8685
- package/dist/index.node.d.ts +9647 -8685
- package/dist/index.node.js +526 -273
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +502 -273
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
- package/dist/dts/connector-copilot/types.d.ts +0 -160
- package/dist/dts/index.d.ts +0 -34
- /package/dist/dts/{connector-copilot → validation}/index.d.ts +0 -0
package/dist/index.browser.js
CHANGED
|
@@ -26,6 +26,7 @@ exports.ErrorType = void 0;
|
|
|
26
26
|
ErrorType["ACTION_INSTANCE_SETUP"] = "action_instance_setup";
|
|
27
27
|
ErrorType["UNIT_RUN"] = "unit_run";
|
|
28
28
|
ErrorType["CUSTOM_CODE"] = "custom_code";
|
|
29
|
+
ErrorType["INSUFFICIENT_CREDIT"] = "insufficient_credit";
|
|
29
30
|
})(exports.ErrorType || (exports.ErrorType = {}));
|
|
30
31
|
exports.BadRequestErrorKey = void 0;
|
|
31
32
|
(function (BadRequestErrorKey) {
|
|
@@ -177,6 +178,12 @@ class CustomCodeError extends MembraneError {
|
|
|
177
178
|
this.data.type = exports.ErrorType.CUSTOM_CODE;
|
|
178
179
|
}
|
|
179
180
|
}
|
|
181
|
+
class InsufficientCreditsError extends MembraneError {
|
|
182
|
+
constructor(arg) {
|
|
183
|
+
super(arg);
|
|
184
|
+
this.data.type = exports.ErrorType.INSUFFICIENT_CREDIT;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
180
187
|
|
|
181
188
|
exports.DataBuilderFormulaType = void 0;
|
|
182
189
|
(function (DataBuilderFormulaType) {
|
|
@@ -3385,6 +3392,7 @@ const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
|
3385
3392
|
return Boolean(val);
|
|
3386
3393
|
return Boolean(val);
|
|
3387
3394
|
}, zod.z.boolean());
|
|
3395
|
+
|
|
3388
3396
|
const IncludeArchivedQuery = zod.z.object({
|
|
3389
3397
|
includeArchived: zodBooleanCoercion().optional(),
|
|
3390
3398
|
});
|
|
@@ -3439,7 +3447,6 @@ exports.WorkspaceElementType = void 0;
|
|
|
3439
3447
|
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
3440
3448
|
WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
|
|
3441
3449
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3442
|
-
WorkspaceElementType["DataCollection"] = "data-collection";
|
|
3443
3450
|
WorkspaceElementType["Screen"] = "screen";
|
|
3444
3451
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3445
3452
|
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
@@ -3471,9 +3478,9 @@ const BaseWorkspaceElement = zod.z.object({
|
|
|
3471
3478
|
name: zod.z.string(),
|
|
3472
3479
|
});
|
|
3473
3480
|
const BaseMembraneInterfaceEditableProperties = zod.z.object({
|
|
3481
|
+
uuid: zod.z.string().optional(),
|
|
3474
3482
|
key: zod.z.string().optional(),
|
|
3475
3483
|
name: zod.z.string().optional(),
|
|
3476
|
-
uuid: zod.z.string().optional(),
|
|
3477
3484
|
description: zod.z.string().optional(),
|
|
3478
3485
|
meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
3479
3486
|
});
|
|
@@ -3489,14 +3496,20 @@ const BaseMembraneInterfaceReadOnlyProperties = zod.z.object({
|
|
|
3489
3496
|
});
|
|
3490
3497
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3491
3498
|
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3492
|
-
integrationUuid: zod.z.string().optional(),
|
|
3493
|
-
parentUuid: zod.z.string().optional(),
|
|
3494
3499
|
integrationId: zod.z.string().optional(),
|
|
3500
|
+
integrationUuid: zod.z.string().optional(),
|
|
3495
3501
|
parentId: zod.z.string().optional(),
|
|
3502
|
+
parentUuid: zod.z.string().optional(),
|
|
3503
|
+
connectionId: zod.z.string().optional(),
|
|
3504
|
+
instanceKey: zod.z.string().optional(),
|
|
3496
3505
|
});
|
|
3497
3506
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3498
3507
|
isCustomized: zod.z.boolean().optional(),
|
|
3499
3508
|
});
|
|
3509
|
+
const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3510
|
+
integrationUuid: zod.z.string().optional(),
|
|
3511
|
+
parentUuid: zod.z.string().optional(),
|
|
3512
|
+
});
|
|
3500
3513
|
const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
3501
3514
|
layer: zod.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3502
3515
|
integrationKey: zod.z.string().optional(),
|
|
@@ -3547,14 +3560,11 @@ exports.FieldMappingDirection = void 0;
|
|
|
3547
3560
|
FieldMappingDirection["EXPORT"] = "export";
|
|
3548
3561
|
FieldMappingDirection["BOTH"] = "both";
|
|
3549
3562
|
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3550
|
-
const
|
|
3551
|
-
parentId: true,
|
|
3552
|
-
}).extend({
|
|
3563
|
+
const FieldMappingSpecificProperties = zod.z.object({
|
|
3553
3564
|
connectionId: zod.z.string().optional(),
|
|
3554
3565
|
fieldMappingId: zod.z.string().optional(),
|
|
3555
3566
|
universalFieldMappingId: zod.z.string().optional(),
|
|
3556
3567
|
dataSourceKey: zod.z.string().optional(),
|
|
3557
|
-
dataSourceId: zod.z.string().optional(),
|
|
3558
3568
|
appSchema: DataSchema.optional(),
|
|
3559
3569
|
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
3560
3570
|
defaultImportValue: zod.z.any().optional(),
|
|
@@ -3565,6 +3575,14 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3565
3575
|
frozenExportFields: zod.z.any().optional(),
|
|
3566
3576
|
frozenUnifiedExportFields: zod.z.any().optional(),
|
|
3567
3577
|
});
|
|
3578
|
+
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3579
|
+
parentId: true,
|
|
3580
|
+
}).extend(FieldMappingSpecificProperties.shape);
|
|
3581
|
+
const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
|
|
3582
|
+
connectionId: true,
|
|
3583
|
+
fieldMappingId: true,
|
|
3584
|
+
universalFieldMappingId: true,
|
|
3585
|
+
});
|
|
3568
3586
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3569
3587
|
universalFieldMappingRevision: zod.z.string().optional(),
|
|
3570
3588
|
});
|
|
@@ -3688,15 +3706,19 @@ const ActionDependency = zod.z.object({
|
|
|
3688
3706
|
key: zod.z.string(),
|
|
3689
3707
|
element: zod.z.any().optional(),
|
|
3690
3708
|
});
|
|
3691
|
-
const
|
|
3709
|
+
const ActionSpecificProperties = zod.z.object({
|
|
3692
3710
|
connectionId: zod.z.string().optional(),
|
|
3693
3711
|
instanceKey: zod.z.string().optional(),
|
|
3694
3712
|
inputSchema: DataSchema.optional(),
|
|
3695
3713
|
type: zod.z.enum(exports.ActionType).optional(),
|
|
3696
|
-
config: zod.z.
|
|
3714
|
+
config: zod.z.object({}).loose().optional(),
|
|
3697
3715
|
outputMapping: zod.z.any().optional(),
|
|
3698
3716
|
customOutputSchema: DataSchema.optional(),
|
|
3699
3717
|
});
|
|
3718
|
+
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
|
|
3719
|
+
const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(ActionSpecificProperties.shape).omit({
|
|
3720
|
+
connectionId: true,
|
|
3721
|
+
});
|
|
3700
3722
|
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3701
3723
|
universalParentId: zod.z.string().optional(),
|
|
3702
3724
|
userId: zod.z.string().optional(),
|
|
@@ -3727,6 +3749,8 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3727
3749
|
updatedAt: zod.z.string(),
|
|
3728
3750
|
lastActiveAt: zod.z.string().optional(),
|
|
3729
3751
|
nextCredentialsRefreshAt: zod.z.string().optional(),
|
|
3752
|
+
nextRetryTimestamp: zod.z.string().optional(),
|
|
3753
|
+
retryAttempts: zod.z.number().optional(),
|
|
3730
3754
|
archivedAt: zod.z.string().optional(),
|
|
3731
3755
|
isDeactivated: zod.z.boolean().optional(),
|
|
3732
3756
|
meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
@@ -8405,9 +8429,7 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8405
8429
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8406
8430
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8407
8431
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8408
|
-
const
|
|
8409
|
-
parentId: true,
|
|
8410
|
-
}).extend({
|
|
8432
|
+
const DataSourceSpecificProperties = zod.z.object({
|
|
8411
8433
|
connectionId: zod.z.string().optional(),
|
|
8412
8434
|
dataSourceId: zod.z.string().optional(),
|
|
8413
8435
|
universalDataSourceId: zod.z.string().optional(),
|
|
@@ -8418,18 +8440,27 @@ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditab
|
|
|
8418
8440
|
collectionParameters: zod.z.any().optional(),
|
|
8419
8441
|
defaultPath: zod.z.string().optional(),
|
|
8420
8442
|
});
|
|
8443
|
+
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8444
|
+
parentId: true,
|
|
8445
|
+
}).extend(DataSourceSpecificProperties.shape);
|
|
8446
|
+
const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(DataSourceSpecificProperties.shape).omit({
|
|
8447
|
+
connectionId: true,
|
|
8448
|
+
dataSourceId: true,
|
|
8449
|
+
universalDataSourceId: true,
|
|
8450
|
+
});
|
|
8421
8451
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8422
8452
|
universalDataSourceRevision: zod.z.string().optional(),
|
|
8423
8453
|
});
|
|
8424
8454
|
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8425
8455
|
const DataSourceUnitConfig = zod.z.object({
|
|
8426
|
-
key: zod.z.
|
|
8456
|
+
key: zod.z.any().optional(),
|
|
8427
8457
|
collectionKey: zod.z.any().optional(),
|
|
8428
8458
|
collectionParameters: zod.z.any().optional(),
|
|
8429
8459
|
udm: zod.z.any().optional(),
|
|
8430
|
-
path: zod.z.string().optional(),
|
|
8431
8460
|
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8432
8461
|
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8462
|
+
path: zod.z.any().optional(),
|
|
8463
|
+
defaultPath: zod.z.any().optional(),
|
|
8433
8464
|
});
|
|
8434
8465
|
|
|
8435
8466
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
@@ -8896,16 +8927,22 @@ const FLOW_NODE_SPECS = {
|
|
|
8896
8927
|
[exports.FlowNodeType.RunAction]: RunAction,
|
|
8897
8928
|
};
|
|
8898
8929
|
|
|
8899
|
-
const
|
|
8900
|
-
parentId: true,
|
|
8901
|
-
}).extend({
|
|
8902
|
-
connectionId: zod.z.string().optional(),
|
|
8930
|
+
const FlowSpecificProperties = zod.z.object({
|
|
8903
8931
|
flowId: zod.z.string().optional(),
|
|
8904
8932
|
universalFlowId: zod.z.string().optional(),
|
|
8905
8933
|
parametersSchema: DataSchema.optional(),
|
|
8934
|
+
parameters: zod.z.any().optional(),
|
|
8935
|
+
enabled: zod.z.boolean().optional(),
|
|
8906
8936
|
nodes: zod.z.record(zod.z.string(), FlowNode).optional(),
|
|
8907
8937
|
autoCreateInstances: zod.z.boolean().optional(),
|
|
8908
8938
|
});
|
|
8939
|
+
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8940
|
+
parentId: true,
|
|
8941
|
+
}).extend(FlowSpecificProperties.shape);
|
|
8942
|
+
const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
|
|
8943
|
+
flowId: true,
|
|
8944
|
+
universalFlowId: true,
|
|
8945
|
+
});
|
|
8909
8946
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8910
8947
|
universalFlowRevision: zod.z.string().optional(),
|
|
8911
8948
|
});
|
|
@@ -8933,6 +8970,14 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
8933
8970
|
isDeactivated: zod.z.boolean().optional(),
|
|
8934
8971
|
authType: zod.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
8935
8972
|
});
|
|
8973
|
+
const IntegrationExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8974
|
+
logoUri: zod.z.string(),
|
|
8975
|
+
connectorUuid: zod.z.string().optional(),
|
|
8976
|
+
connectorVersion: zod.z.string().optional(),
|
|
8977
|
+
oAuthCallbackUri: zod.z.string().optional(),
|
|
8978
|
+
parameters: zod.z.any().optional(),
|
|
8979
|
+
appUuid: zod.z.string().optional(),
|
|
8980
|
+
});
|
|
8936
8981
|
const AppliedToIntegrations = (elementSchema) => zod.z.array(zod.z.object({
|
|
8937
8982
|
element: elementSchema,
|
|
8938
8983
|
integration: BaseIntegration,
|
|
@@ -8963,12 +9008,17 @@ const PackageElement = zod.z.object({
|
|
|
8963
9008
|
type: zod.z.enum(exports.IntegrationElementType),
|
|
8964
9009
|
element: zod.z.any().optional(),
|
|
8965
9010
|
});
|
|
8966
|
-
const
|
|
9011
|
+
const PackageElementExport = zod.z.object({
|
|
9012
|
+
uuid: zod.z.string(),
|
|
9013
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
9014
|
+
element: zod.z.any().optional(),
|
|
9015
|
+
});
|
|
9016
|
+
const PackageEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
8967
9017
|
scenarioTemplateId: zod.z.string().optional(),
|
|
8968
9018
|
elements: zod.z.array(PackageElement).optional(),
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
9019
|
+
});
|
|
9020
|
+
const PackageExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
|
|
9021
|
+
elements: zod.z.array(PackageElementExport).optional(),
|
|
8972
9022
|
});
|
|
8973
9023
|
const PackageCalculatedProperties = zod.z.object({
|
|
8974
9024
|
key: zod.z.string(),
|
|
@@ -9202,6 +9252,7 @@ const BaseAppEventType = BaseMembraneInterface.extend({
|
|
|
9202
9252
|
example: zod.z.any().optional(),
|
|
9203
9253
|
schema: DataSchema.optional(),
|
|
9204
9254
|
globalWebhookUri: zod.z.string(),
|
|
9255
|
+
tenantIdFormula: zod.z.any().optional(),
|
|
9205
9256
|
userIdFormula: zod.z.any().optional(),
|
|
9206
9257
|
});
|
|
9207
9258
|
|
|
@@ -9326,6 +9377,7 @@ exports.ActionRunLogStatus = void 0;
|
|
|
9326
9377
|
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
9327
9378
|
const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
9328
9379
|
actionId: zod.z.string(),
|
|
9380
|
+
actionInstanceId: zod.z.string(),
|
|
9329
9381
|
integrationId: zod.z.string(),
|
|
9330
9382
|
connectionId: zod.z.string(),
|
|
9331
9383
|
input: zod.z.any().optional(),
|
|
@@ -9334,6 +9386,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9334
9386
|
createdAt: zod.z.string(),
|
|
9335
9387
|
completedAt: zod.z.string().optional(),
|
|
9336
9388
|
error: ErrorDataSchema.optional(),
|
|
9389
|
+
duration: zod.z.number().optional(),
|
|
9337
9390
|
});
|
|
9338
9391
|
|
|
9339
9392
|
const ActionApiResponse = BaseAction.extend({
|
|
@@ -9503,12 +9556,7 @@ const ExternalEvent = BaseExternalEvent.extend({
|
|
|
9503
9556
|
|
|
9504
9557
|
const FlowApiResponse = BaseFlow.extend({
|
|
9505
9558
|
integration: BaseIntegration.optional(),
|
|
9506
|
-
appliedToIntegrations: AppliedToIntegrations(
|
|
9507
|
-
id: zod.z.string(),
|
|
9508
|
-
integrationId: zod.z.string().optional(),
|
|
9509
|
-
isCustomized: zod.z.boolean().optional(),
|
|
9510
|
-
universalFlowId: zod.z.string().optional(),
|
|
9511
|
-
})).optional(),
|
|
9559
|
+
appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
|
|
9512
9560
|
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9513
9561
|
});
|
|
9514
9562
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
@@ -9872,6 +9920,71 @@ function hasCycles(nodes) {
|
|
|
9872
9920
|
return hasCycles;
|
|
9873
9921
|
}
|
|
9874
9922
|
|
|
9923
|
+
exports.WorkspaceElementChangeType = void 0;
|
|
9924
|
+
(function (WorkspaceElementChangeType) {
|
|
9925
|
+
WorkspaceElementChangeType["CREATE"] = "create";
|
|
9926
|
+
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
9927
|
+
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
9928
|
+
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
9929
|
+
function compareWorkspaceExports(primaryExport, targetExport) {
|
|
9930
|
+
const changes = [];
|
|
9931
|
+
const result = {
|
|
9932
|
+
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
9933
|
+
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
9934
|
+
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
9935
|
+
};
|
|
9936
|
+
const primaryMap = new Map();
|
|
9937
|
+
const otherMap = new Map();
|
|
9938
|
+
const typeMap = new Map();
|
|
9939
|
+
const allElementTypes = new Set([...Object.keys(primaryExport), ...Object.keys(targetExport)]);
|
|
9940
|
+
for (const elementType of allElementTypes) {
|
|
9941
|
+
const type = elementType;
|
|
9942
|
+
const primaryElements = primaryExport[type] || [];
|
|
9943
|
+
for (const element of primaryElements) {
|
|
9944
|
+
primaryMap.set(element.uuid, element);
|
|
9945
|
+
typeMap.set(element.uuid, type);
|
|
9946
|
+
}
|
|
9947
|
+
const otherElements = targetExport[type] || [];
|
|
9948
|
+
for (const element of otherElements) {
|
|
9949
|
+
otherMap.set(element.uuid, element);
|
|
9950
|
+
typeMap.set(element.uuid, type);
|
|
9951
|
+
}
|
|
9952
|
+
}
|
|
9953
|
+
for (const [uuid] of typeMap) {
|
|
9954
|
+
const primaryElement = primaryMap.get(uuid);
|
|
9955
|
+
const otherElement = otherMap.get(uuid);
|
|
9956
|
+
const change = compareElementExports(primaryElement, otherElement);
|
|
9957
|
+
if (change) {
|
|
9958
|
+
changes.push(change);
|
|
9959
|
+
}
|
|
9960
|
+
}
|
|
9961
|
+
changes.forEach((change) => {
|
|
9962
|
+
result[change.type].add(change.uuid);
|
|
9963
|
+
});
|
|
9964
|
+
return result;
|
|
9965
|
+
}
|
|
9966
|
+
function compareElementExports(primaryElement, targetElement) {
|
|
9967
|
+
if (primaryElement && !targetElement) {
|
|
9968
|
+
return {
|
|
9969
|
+
type: exports.WorkspaceElementChangeType.CREATE,
|
|
9970
|
+
uuid: primaryElement.uuid,
|
|
9971
|
+
};
|
|
9972
|
+
}
|
|
9973
|
+
if (!primaryElement && targetElement) {
|
|
9974
|
+
return {
|
|
9975
|
+
type: exports.WorkspaceElementChangeType.DELETE,
|
|
9976
|
+
uuid: targetElement.uuid,
|
|
9977
|
+
};
|
|
9978
|
+
}
|
|
9979
|
+
if (primaryElement && targetElement && !deepEqual(primaryElement, targetElement)) {
|
|
9980
|
+
return {
|
|
9981
|
+
type: exports.WorkspaceElementChangeType.UPDATE,
|
|
9982
|
+
uuid: primaryElement.uuid,
|
|
9983
|
+
};
|
|
9984
|
+
}
|
|
9985
|
+
return undefined;
|
|
9986
|
+
}
|
|
9987
|
+
|
|
9875
9988
|
const WorkspaceElementSpecs = {
|
|
9876
9989
|
[exports.WorkspaceElementType.Customer]: {
|
|
9877
9990
|
type: exports.WorkspaceElementType.Customer,
|
|
@@ -9884,6 +9997,7 @@ const WorkspaceElementSpecs = {
|
|
|
9884
9997
|
apiPath: 'integrations',
|
|
9885
9998
|
name: 'Integration',
|
|
9886
9999
|
namePlural: 'Integrations',
|
|
10000
|
+
exportPropertiesSchema: IntegrationExportProperties,
|
|
9887
10001
|
},
|
|
9888
10002
|
[exports.WorkspaceElementType.Connector]: {
|
|
9889
10003
|
type: exports.WorkspaceElementType.Connector,
|
|
@@ -9903,6 +10017,7 @@ const WorkspaceElementSpecs = {
|
|
|
9903
10017
|
name: 'Package',
|
|
9904
10018
|
namePlural: 'Packages',
|
|
9905
10019
|
editablePropertiesSchema: PackageEditableProperties,
|
|
10020
|
+
exportPropertiesSchema: PackageExportProperties,
|
|
9906
10021
|
apiResponseSchema: PackageApiResponse,
|
|
9907
10022
|
findQuerySchema: FindPackagesQuery,
|
|
9908
10023
|
isMembraneInterface: true,
|
|
@@ -9921,6 +10036,7 @@ const WorkspaceElementSpecs = {
|
|
|
9921
10036
|
name: 'Action',
|
|
9922
10037
|
namePlural: 'Actions',
|
|
9923
10038
|
editablePropertiesSchema: ActionEditableProperties,
|
|
10039
|
+
exportPropertiesSchema: ActionExportProperties,
|
|
9924
10040
|
apiResponseSchema: ActionApiResponse,
|
|
9925
10041
|
findQuerySchema: FindActionsQuery,
|
|
9926
10042
|
isMembraneInterface: true,
|
|
@@ -9939,6 +10055,7 @@ const WorkspaceElementSpecs = {
|
|
|
9939
10055
|
namePlural: 'Flows',
|
|
9940
10056
|
parentFieldKey: 'universalFlowId',
|
|
9941
10057
|
editablePropertiesSchema: FlowEditableProperties,
|
|
10058
|
+
exportPropertiesSchema: FlowExportProperties,
|
|
9942
10059
|
apiResponseSchema: FlowApiResponse,
|
|
9943
10060
|
findQuerySchema: FindFlowsQuery,
|
|
9944
10061
|
isMembraneInterface: true,
|
|
@@ -9968,6 +10085,7 @@ const WorkspaceElementSpecs = {
|
|
|
9968
10085
|
namePlural: 'Field Mappings',
|
|
9969
10086
|
parentFieldKey: 'universalFieldMappingId',
|
|
9970
10087
|
editablePropertiesSchema: FieldMappingEditableProperties,
|
|
10088
|
+
exportPropertiesSchema: FieldMappingExportProperties,
|
|
9971
10089
|
apiResponseSchema: FieldMappingApiResponse,
|
|
9972
10090
|
findQuerySchema: FindFieldMappingsQuery,
|
|
9973
10091
|
isMembraneInterface: true,
|
|
@@ -9982,12 +10100,6 @@ const WorkspaceElementSpecs = {
|
|
|
9982
10100
|
universalParentFieldKey: 'universalFieldMappingId',
|
|
9983
10101
|
isMembraneInterface: true,
|
|
9984
10102
|
},
|
|
9985
|
-
[exports.WorkspaceElementType.DataCollection]: {
|
|
9986
|
-
type: exports.WorkspaceElementType.DataCollection,
|
|
9987
|
-
apiPath: 'data-collections',
|
|
9988
|
-
name: 'Data Collection',
|
|
9989
|
-
namePlural: 'Data Collections',
|
|
9990
|
-
},
|
|
9991
10103
|
[exports.WorkspaceElementType.DataSource]: {
|
|
9992
10104
|
type: exports.WorkspaceElementType.DataSource,
|
|
9993
10105
|
apiPath: 'data-sources',
|
|
@@ -9995,6 +10107,7 @@ const WorkspaceElementSpecs = {
|
|
|
9995
10107
|
namePlural: 'Data Sources',
|
|
9996
10108
|
parentFieldKey: 'universalDataSourceId',
|
|
9997
10109
|
editablePropertiesSchema: DataSourceEditableProperties,
|
|
10110
|
+
exportPropertiesSchema: DataSourceExportProperties,
|
|
9998
10111
|
apiResponseSchema: DataSourceApiResponse,
|
|
9999
10112
|
findQuerySchema: FindDataSourcesQuery,
|
|
10000
10113
|
isMembraneInterface: true,
|
|
@@ -10087,6 +10200,44 @@ const WorkspaceElementSpecs = {
|
|
|
10087
10200
|
},
|
|
10088
10201
|
};
|
|
10089
10202
|
|
|
10203
|
+
const MEMBRANE_ELEMENT_CONFIG_FILE_NAME = 'spec.yaml';
|
|
10204
|
+
function getMembraneElementPath(elementType, elementKey, integrationKey) {
|
|
10205
|
+
const elementTypePath = WorkspaceElementSpecs[elementType].apiPath;
|
|
10206
|
+
if (!integrationKey) {
|
|
10207
|
+
return `${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10208
|
+
}
|
|
10209
|
+
const integrationTypePath = WorkspaceElementSpecs[exports.WorkspaceElementType.Integration].apiPath;
|
|
10210
|
+
return `${integrationTypePath}/${integrationKey}/${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10211
|
+
}
|
|
10212
|
+
function parseMembraneElementPath(relativePath) {
|
|
10213
|
+
const typeByApiPath = new Map();
|
|
10214
|
+
for (const spec of Object.values(WorkspaceElementSpecs)) {
|
|
10215
|
+
typeByApiPath.set(spec.apiPath, spec.type);
|
|
10216
|
+
}
|
|
10217
|
+
const elementTypes = Object.values(WorkspaceElementSpecs)
|
|
10218
|
+
.map((spec) => spec.apiPath)
|
|
10219
|
+
.join('|');
|
|
10220
|
+
const universalPattern = new RegExp(`^(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10221
|
+
const universalMatch = relativePath.match(universalPattern);
|
|
10222
|
+
if (universalMatch === null || universalMatch === void 0 ? void 0 : universalMatch.groups) {
|
|
10223
|
+
const { elementType: elementTypePath, elementKey } = universalMatch.groups;
|
|
10224
|
+
const elementType = typeByApiPath.get(elementTypePath);
|
|
10225
|
+
if (elementType) {
|
|
10226
|
+
return { type: elementType, key: elementKey };
|
|
10227
|
+
}
|
|
10228
|
+
}
|
|
10229
|
+
const integrationLevelPattern = new RegExp(`^integrations/(?<integrationKey>[^/]+)/(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10230
|
+
const integrationLevelMatch = relativePath.match(integrationLevelPattern);
|
|
10231
|
+
if (integrationLevelMatch === null || integrationLevelMatch === void 0 ? void 0 : integrationLevelMatch.groups) {
|
|
10232
|
+
const { integrationKey, elementType: elementTypePath, elementKey } = integrationLevelMatch.groups;
|
|
10233
|
+
const elementType = typeByApiPath.get(elementTypePath);
|
|
10234
|
+
if (elementType) {
|
|
10235
|
+
return { type: elementType, key: elementKey, integrationKey };
|
|
10236
|
+
}
|
|
10237
|
+
}
|
|
10238
|
+
return undefined;
|
|
10239
|
+
}
|
|
10240
|
+
|
|
10090
10241
|
class SelfAccessor {
|
|
10091
10242
|
constructor(client) {
|
|
10092
10243
|
this.client = client;
|
|
@@ -10099,136 +10250,6 @@ class SelfAccessor {
|
|
|
10099
10250
|
}
|
|
10100
10251
|
}
|
|
10101
10252
|
|
|
10102
|
-
exports.ConnectorCopilotSuggestionType = void 0;
|
|
10103
|
-
(function (ConnectorCopilotSuggestionType) {
|
|
10104
|
-
ConnectorCopilotSuggestionType["AuthType"] = "auth-type";
|
|
10105
|
-
ConnectorCopilotSuggestionType["AuthImplementation"] = "auth-implementation";
|
|
10106
|
-
ConnectorCopilotSuggestionType["AuthConnectionParameters"] = "auth-connection-parameters";
|
|
10107
|
-
ConnectorCopilotSuggestionType["AuthApiClient"] = "auth-api-client";
|
|
10108
|
-
ConnectorCopilotSuggestionType["DataCollection"] = "data-collection";
|
|
10109
|
-
ConnectorCopilotSuggestionType["DataCollectionOperationApiRequests"] = "data-location-operation-api-requests";
|
|
10110
|
-
ConnectorCopilotSuggestionType["DataCollectionOperationApiRequestMapping"] = "data-location-operation-api-request-mapping";
|
|
10111
|
-
ConnectorCopilotSuggestionType["DataCollectionFieldsSchema"] = "data-location-fields-schema";
|
|
10112
|
-
ConnectorCopilotSuggestionType["UdmList"] = "udm-list";
|
|
10113
|
-
ConnectorCopilotSuggestionType["UdmFieldsMapping"] = "udm-fields-mapping";
|
|
10114
|
-
ConnectorCopilotSuggestionType["UdmFieldsMappingToCollection"] = "udm-fields-mapping-to-collection";
|
|
10115
|
-
ConnectorCopilotSuggestionType["UdmFieldsMappingFromCollection"] = "udm-fields-mapping-from-collection";
|
|
10116
|
-
})(exports.ConnectorCopilotSuggestionType || (exports.ConnectorCopilotSuggestionType = {}));
|
|
10117
|
-
exports.ConnectorCopilotFileChunkTopicKey = void 0;
|
|
10118
|
-
(function (ConnectorCopilotFileChunkTopicKey) {
|
|
10119
|
-
ConnectorCopilotFileChunkTopicKey["AuthType"] = "auth-type";
|
|
10120
|
-
ConnectorCopilotFileChunkTopicKey["AuthImplementation"] = "auth-implementation";
|
|
10121
|
-
ConnectorCopilotFileChunkTopicKey["AuthConnectionParameters"] = "auth-connection-parameters";
|
|
10122
|
-
ConnectorCopilotFileChunkTopicKey["AuthApiClient"] = "auth-api-client";
|
|
10123
|
-
})(exports.ConnectorCopilotFileChunkTopicKey || (exports.ConnectorCopilotFileChunkTopicKey = {}));
|
|
10124
|
-
exports.CopilotTaskType = void 0;
|
|
10125
|
-
(function (CopilotTaskType) {
|
|
10126
|
-
CopilotTaskType["GenerateAuthType"] = "generate-auth-type";
|
|
10127
|
-
CopilotTaskType["GenerateOAuthConfiguration"] = "generate-oauth-configuration";
|
|
10128
|
-
CopilotTaskType["GenerateAuthConnectionParameters"] = "generate-auth-connection-parameters";
|
|
10129
|
-
CopilotTaskType["GenerateAuthApiClient"] = "generate-auth-api-client";
|
|
10130
|
-
CopilotTaskType["GenerateDataCollections"] = "generate-data-collections";
|
|
10131
|
-
CopilotTaskType["GenerateDataCollectionRecordFromFields"] = "generate-data-collection-record-from-fields";
|
|
10132
|
-
CopilotTaskType["GenerateDataCollectionOperationApiRequests"] = "generate-data-collection-operation-api-requests";
|
|
10133
|
-
CopilotTaskType["GenerateDataCollectionOperationApiRequestMapping"] = "generate-data-collection-operation-api-request-mapping";
|
|
10134
|
-
CopilotTaskType["GenerateDataCollectionFieldsSchema"] = "generate-data-collection-fields-schema";
|
|
10135
|
-
CopilotTaskType["GenerateUdmList"] = "generate-udm-list";
|
|
10136
|
-
CopilotTaskType["GenerateUdmFieldsMapping"] = "generate-udm-fields-mapping";
|
|
10137
|
-
})(exports.CopilotTaskType || (exports.CopilotTaskType = {}));
|
|
10138
|
-
exports.CopilotTaskStatus = void 0;
|
|
10139
|
-
(function (CopilotTaskStatus) {
|
|
10140
|
-
CopilotTaskStatus["Pending"] = "pending";
|
|
10141
|
-
CopilotTaskStatus["Running"] = "running";
|
|
10142
|
-
CopilotTaskStatus["Completed"] = "completed";
|
|
10143
|
-
CopilotTaskStatus["Failed"] = "failed";
|
|
10144
|
-
})(exports.CopilotTaskStatus || (exports.CopilotTaskStatus = {}));
|
|
10145
|
-
exports.CopilotActionType = void 0;
|
|
10146
|
-
(function (CopilotActionType) {
|
|
10147
|
-
CopilotActionType["PatchConnectorFile"] = "patch";
|
|
10148
|
-
CopilotActionType["PutConnectorFile"] = "put";
|
|
10149
|
-
CopilotActionType["PatchConnectorDataSchema"] = "patch-data-schema";
|
|
10150
|
-
CopilotActionType["PatchConnectorFieldMapping"] = "patch-field-mapping";
|
|
10151
|
-
CopilotActionType["SetConnectorAuthType"] = "set-connector-auth-type";
|
|
10152
|
-
})(exports.CopilotActionType || (exports.CopilotActionType = {}));
|
|
10153
|
-
exports.CopilotActionStatus = void 0;
|
|
10154
|
-
(function (CopilotActionStatus) {
|
|
10155
|
-
CopilotActionStatus["Suggested"] = "suggested";
|
|
10156
|
-
CopilotActionStatus["Executed"] = "executed";
|
|
10157
|
-
CopilotActionStatus["Rejected"] = "rejected";
|
|
10158
|
-
})(exports.CopilotActionStatus || (exports.CopilotActionStatus = {}));
|
|
10159
|
-
exports.CopilotActivityType = void 0;
|
|
10160
|
-
(function (CopilotActivityType) {
|
|
10161
|
-
CopilotActivityType["Task"] = "task";
|
|
10162
|
-
})(exports.CopilotActivityType || (exports.CopilotActivityType = {}));
|
|
10163
|
-
const CopilotActivityScope = {
|
|
10164
|
-
connector: (connectorId) => new CopilotActivityScopeConnector(connectorId),
|
|
10165
|
-
};
|
|
10166
|
-
class CopilotActivityScopeConnector {
|
|
10167
|
-
constructor(connectorId) {
|
|
10168
|
-
this.connectorId = connectorId;
|
|
10169
|
-
this.auth = () => new CopilotActivityScopeConnectorAuth(this);
|
|
10170
|
-
this.data = (key) => new CopilotActivityScopeConnectorData(this, key);
|
|
10171
|
-
this.udm = (key) => new CopilotActivityScopeConnectorUdm(this, key);
|
|
10172
|
-
}
|
|
10173
|
-
toString() {
|
|
10174
|
-
return `connectors/${this.connectorId}`;
|
|
10175
|
-
}
|
|
10176
|
-
}
|
|
10177
|
-
class CopilotActivityScopeConnectorAuth {
|
|
10178
|
-
constructor(connectorScope) {
|
|
10179
|
-
this.connectorScope = connectorScope;
|
|
10180
|
-
}
|
|
10181
|
-
toString() {
|
|
10182
|
-
return `${this.connectorScope.toString()}/auth`;
|
|
10183
|
-
}
|
|
10184
|
-
}
|
|
10185
|
-
class CopilotActivityScopeConnectorData {
|
|
10186
|
-
constructor(connectorScope, dataCollectionKey) {
|
|
10187
|
-
this.connectorScope = connectorScope;
|
|
10188
|
-
this.dataCollectionKey = dataCollectionKey;
|
|
10189
|
-
this.method = (key) => new CopilotActivityScopeConnectorDataMethod(this, key);
|
|
10190
|
-
}
|
|
10191
|
-
toString() {
|
|
10192
|
-
let scope = `${this.connectorScope.toString()}/data`;
|
|
10193
|
-
if (this.dataCollectionKey) {
|
|
10194
|
-
scope += `/${this.dataCollectionKey}`;
|
|
10195
|
-
}
|
|
10196
|
-
return scope;
|
|
10197
|
-
}
|
|
10198
|
-
}
|
|
10199
|
-
class CopilotActivityScopeConnectorDataMethod {
|
|
10200
|
-
constructor(collectionScope, methodKey) {
|
|
10201
|
-
this.collectionScope = collectionScope;
|
|
10202
|
-
this.methodKey = methodKey;
|
|
10203
|
-
}
|
|
10204
|
-
toString() {
|
|
10205
|
-
return `${this.collectionScope.toString()}/methods/${this.methodKey}`;
|
|
10206
|
-
}
|
|
10207
|
-
}
|
|
10208
|
-
class CopilotActivityScopeConnectorUdm {
|
|
10209
|
-
constructor(connectorScope, key) {
|
|
10210
|
-
this.connectorScope = connectorScope;
|
|
10211
|
-
this.key = key;
|
|
10212
|
-
this.collection = (key) => new CopilotActivityScopeConnectorUdmCollection(this, key);
|
|
10213
|
-
}
|
|
10214
|
-
toString() {
|
|
10215
|
-
let scope = `${this.connectorScope.toString()}/udm`;
|
|
10216
|
-
if (this.key) {
|
|
10217
|
-
scope += `/${this.key}`;
|
|
10218
|
-
}
|
|
10219
|
-
return scope;
|
|
10220
|
-
}
|
|
10221
|
-
}
|
|
10222
|
-
class CopilotActivityScopeConnectorUdmCollection {
|
|
10223
|
-
constructor(udmScope, key) {
|
|
10224
|
-
this.udmScope = udmScope;
|
|
10225
|
-
this.key = key;
|
|
10226
|
-
}
|
|
10227
|
-
toString() {
|
|
10228
|
-
return `${this.udmScope.toString()}/collection/${this.key}`;
|
|
10229
|
-
}
|
|
10230
|
-
}
|
|
10231
|
-
|
|
10232
10253
|
exports.LogRecordType = void 0;
|
|
10233
10254
|
(function (LogRecordType) {
|
|
10234
10255
|
LogRecordType["MSG"] = "message";
|
|
@@ -10317,6 +10338,7 @@ const ERROR_CLASS_BY_TYPE = {
|
|
|
10317
10338
|
[exports.ErrorType.ACTION_INSTANCE_SETUP]: ActionInstanceSetupError,
|
|
10318
10339
|
[exports.ErrorType.UNIT_RUN]: UnitRunError,
|
|
10319
10340
|
[exports.ErrorType.CUSTOM_CODE]: CustomCodeError,
|
|
10341
|
+
[exports.ErrorType.INSUFFICIENT_CREDIT]: InsufficientCreditsError,
|
|
10320
10342
|
};
|
|
10321
10343
|
function getErrorFromData(data) {
|
|
10322
10344
|
if (typeof data === 'object' &&
|
|
@@ -10502,6 +10524,7 @@ exports.UsageType = void 0;
|
|
|
10502
10524
|
UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
|
|
10503
10525
|
UsageType["FILES_UPLOAD_SIZE"] = "files-upload-size";
|
|
10504
10526
|
UsageType["CUSTOM_CODE_RUNTIME_DURATION"] = "custom-code-runtime-duration";
|
|
10527
|
+
UsageType["MEMBRANE_AGENT"] = "membrane-agent";
|
|
10505
10528
|
})(exports.UsageType || (exports.UsageType = {}));
|
|
10506
10529
|
|
|
10507
10530
|
function getNodeInputSchema(flow, nodeKey) {
|
|
@@ -10644,7 +10667,6 @@ const PARALLEL_EXECUTION_LIMITS = [
|
|
|
10644
10667
|
'parallelBackgroundJobs',
|
|
10645
10668
|
'parallelEventLogs',
|
|
10646
10669
|
'parallelEventLogsPerConnection',
|
|
10647
|
-
'parallelWriteDatabaseRequests',
|
|
10648
10670
|
'parallelPathfinderAgentSessions',
|
|
10649
10671
|
];
|
|
10650
10672
|
const RATE_LIMITS = [
|
|
@@ -10655,7 +10677,6 @@ const RATE_LIMITS = [
|
|
|
10655
10677
|
'webhookRequestsPerHour',
|
|
10656
10678
|
'workspaceElementCreationsPerHour',
|
|
10657
10679
|
'workspaceElementCreationsPerSecond',
|
|
10658
|
-
'createDatabaseRequestsPerSecond',
|
|
10659
10680
|
];
|
|
10660
10681
|
const WORKSPACE_SIZE_LIMITS = [
|
|
10661
10682
|
'totalNumberOfCustomers',
|
|
@@ -10671,17 +10692,138 @@ const EDITABLE_LIMITS = [
|
|
|
10671
10692
|
'webhookRequestsPerCustomerPerSecond',
|
|
10672
10693
|
'webhookRequestsPerCustomerPerHour',
|
|
10673
10694
|
'parallelFlowRunsPerConnection',
|
|
10674
|
-
'parallelWriteDatabaseRequestsPerCustomer',
|
|
10675
|
-
'createDatabaseRequestsPerCustomerPerSecond',
|
|
10676
|
-
'updateDatabaseRequestsPerCustomerPerSecond',
|
|
10677
10695
|
];
|
|
10678
10696
|
|
|
10697
|
+
const OrgWorkspaceSchema = zod.z.object({
|
|
10698
|
+
id: zod.z.string(),
|
|
10699
|
+
name: zod.z.string(),
|
|
10700
|
+
orgId: zod.z.string(),
|
|
10701
|
+
apiBaseUri: zod.z.string().optional(),
|
|
10702
|
+
key: zod.z.string(),
|
|
10703
|
+
secret: zod.z.string(),
|
|
10704
|
+
createdAt: zod.z.coerce.date(),
|
|
10705
|
+
updatedAt: zod.z.coerce.date(),
|
|
10706
|
+
engineAccessToken: zod.z.string().optional(),
|
|
10707
|
+
onboardingStep: zod.z.nativeEnum(exports.WorkspaceOnboardingStep).optional(),
|
|
10708
|
+
trialEndDate: zod.z.string().optional(),
|
|
10709
|
+
featureFlags: zod.z.array(zod.z.string()).optional(),
|
|
10710
|
+
logoUri: zod.z.string().optional(),
|
|
10711
|
+
});
|
|
10712
|
+
const OrgWorkspaceUser = zod.z.object({
|
|
10713
|
+
id: zod.z.string(),
|
|
10714
|
+
workspaceId: zod.z.string(),
|
|
10715
|
+
testCustomerId: zod.z.string(),
|
|
10716
|
+
userId: zod.z.string(),
|
|
10717
|
+
role: zod.z.string(),
|
|
10718
|
+
});
|
|
10719
|
+
|
|
10720
|
+
const WorkspaceLimit = zod.z.object({
|
|
10721
|
+
value: zod.z.number().optional(),
|
|
10722
|
+
defaultValue: zod.z.number().optional(),
|
|
10723
|
+
unit: zod.z.nativeEnum(exports.LimitUnits),
|
|
10724
|
+
});
|
|
10725
|
+
const WorkspaceLimitsSchema = zod.z.object({
|
|
10726
|
+
parallelEventPulls: WorkspaceLimit.optional(),
|
|
10727
|
+
parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10728
|
+
parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10729
|
+
parallelFlowRuns: WorkspaceLimit.optional(),
|
|
10730
|
+
parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
|
|
10731
|
+
parallelApiRequests: WorkspaceLimit.optional(),
|
|
10732
|
+
parallelSseRequests: WorkspaceLimit.optional(),
|
|
10733
|
+
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10734
|
+
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10735
|
+
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10736
|
+
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10737
|
+
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10738
|
+
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10739
|
+
apiRequestsPerHour: WorkspaceLimit.optional(),
|
|
10740
|
+
webhookRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10741
|
+
webhookRequestsPerHour: WorkspaceLimit.optional(),
|
|
10742
|
+
workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
|
|
10743
|
+
workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
|
|
10744
|
+
createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10745
|
+
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10746
|
+
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10747
|
+
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10748
|
+
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10749
|
+
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10750
|
+
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10751
|
+
apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10752
|
+
webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10753
|
+
webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10754
|
+
externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
|
|
10755
|
+
createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10756
|
+
updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10757
|
+
parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10758
|
+
});
|
|
10759
|
+
const EngineWorkspaceSettingsSchema = zod.z.object({
|
|
10760
|
+
enableApiLogs: zod.z.boolean().optional(),
|
|
10761
|
+
enableWebhookLogs: zod.z.boolean().optional(),
|
|
10762
|
+
enableActionRunLogs: zod.z.boolean().optional(),
|
|
10763
|
+
disableSecretKeyAuth: zod.z.boolean().optional(),
|
|
10764
|
+
});
|
|
10765
|
+
const AppPublicKey = zod.z.object({
|
|
10766
|
+
name: zod.z.string(),
|
|
10767
|
+
publicKey: zod.z.string(),
|
|
10768
|
+
});
|
|
10769
|
+
const AppSchema = zod.z.object({
|
|
10770
|
+
id: zod.z.string(),
|
|
10771
|
+
key: zod.z.string(),
|
|
10772
|
+
logoUri: zod.z.string().optional(),
|
|
10773
|
+
userFieldsSchema: zod.z.any().optional(),
|
|
10774
|
+
apiBaseUri: zod.z.string().optional(),
|
|
10775
|
+
webhookUri: zod.z.string().optional(),
|
|
10776
|
+
publicKey: zod.z.string().optional(),
|
|
10777
|
+
publicKeys: zod.z.array(AppPublicKey).optional(),
|
|
10778
|
+
enabledWebhookEvents: zod.z.array(zod.z.string()).optional(),
|
|
10779
|
+
auth: zod.z.any().optional(),
|
|
10780
|
+
credentialsSchema: zod.z.any().optional(),
|
|
10781
|
+
apiClient: zod.z.any().optional(),
|
|
10782
|
+
apiRequestHeaders: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
10783
|
+
apiRequestQuery: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
10784
|
+
isOnPrem: zod.z.boolean().optional(),
|
|
10785
|
+
connectorBaseUri: zod.z.string().optional(),
|
|
10786
|
+
connectorRevision: zod.z.string().optional(),
|
|
10787
|
+
featureFlags: zod.z.array(zod.z.string()).optional(),
|
|
10788
|
+
limits: WorkspaceLimitsSchema.optional(),
|
|
10789
|
+
settings: EngineWorkspaceSettingsSchema.optional(),
|
|
10790
|
+
type: zod.z.nativeEnum(exports.WorkspaceType).optional(),
|
|
10791
|
+
jwksUri: zod.z.string().nullable().optional(),
|
|
10792
|
+
isTrial: zod.z.boolean().optional(),
|
|
10793
|
+
isThrottled: zod.z.boolean().optional(),
|
|
10794
|
+
isDisabled: zod.z.boolean().optional(),
|
|
10795
|
+
isBackgroundJobsDisabled: zod.z.boolean().optional(),
|
|
10796
|
+
});
|
|
10797
|
+
|
|
10798
|
+
const PlatformUserSchema = zod.z.object({
|
|
10799
|
+
id: zod.z.string(),
|
|
10800
|
+
email: zod.z.string(),
|
|
10801
|
+
name: zod.z.string(),
|
|
10802
|
+
trialRequested: zod.z.boolean(),
|
|
10803
|
+
introVideoStatus: zod.z.string().optional(),
|
|
10804
|
+
isEligible: zod.z.boolean().optional(),
|
|
10805
|
+
emailVerified: zod.z.boolean().optional(),
|
|
10806
|
+
});
|
|
10807
|
+
const FullPlatformUser = zod.z.object({
|
|
10808
|
+
id: zod.z.string(),
|
|
10809
|
+
auth0Id: zod.z.string().optional(),
|
|
10810
|
+
email: zod.z.string(),
|
|
10811
|
+
name: zod.z.string(),
|
|
10812
|
+
defaultAccountId: zod.z.string().optional(),
|
|
10813
|
+
defaultWorkspaceId: zod.z.string().optional(),
|
|
10814
|
+
isAdmin: zod.z.boolean().optional(),
|
|
10815
|
+
trialRequested: zod.z.boolean(),
|
|
10816
|
+
pat: zod.z.string().optional(),
|
|
10817
|
+
introVideoStatus: zod.z.string().optional(),
|
|
10818
|
+
isEligible: zod.z.boolean().optional(),
|
|
10819
|
+
emailVerified: zod.z.boolean().optional(),
|
|
10820
|
+
});
|
|
10821
|
+
|
|
10679
10822
|
exports.OrgLimitsType = void 0;
|
|
10680
10823
|
(function (OrgLimitsType) {
|
|
10681
10824
|
OrgLimitsType["NUMBER_OF_WORKSPACES"] = "numberOfWorkspaces";
|
|
10682
10825
|
OrgLimitsType["TODAY_USAGE"] = "todayUsage";
|
|
10683
10826
|
OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
|
|
10684
|
-
OrgLimitsType["MEMBRANE_AGENT_MONTHLY_USAGE"] = "membraneAgentMonthlyUsage";
|
|
10685
10827
|
OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
|
|
10686
10828
|
})(exports.OrgLimitsType || (exports.OrgLimitsType = {}));
|
|
10687
10829
|
exports.OrgUserRole = void 0;
|
|
@@ -10694,6 +10836,55 @@ exports.OrgUserStatus = void 0;
|
|
|
10694
10836
|
OrgUserStatus["Invited"] = "invited";
|
|
10695
10837
|
OrgUserStatus["Active"] = "active";
|
|
10696
10838
|
})(exports.OrgUserStatus || (exports.OrgUserStatus = {}));
|
|
10839
|
+
const OrgLimits = zod.z
|
|
10840
|
+
.object({
|
|
10841
|
+
numberOfWorkspaces: zod.z.number().optional(),
|
|
10842
|
+
todayUsage: zod.z.number().optional(),
|
|
10843
|
+
lastThirtyDayUsage: zod.z.number().optional(),
|
|
10844
|
+
membraneAgentLastThirtyDaysUsage: zod.z.number().optional(),
|
|
10845
|
+
membraneExpertCreditsCapPerMonth: zod.z.number().nullable().optional(),
|
|
10846
|
+
})
|
|
10847
|
+
.optional();
|
|
10848
|
+
const MembraneAgentKey = zod.z
|
|
10849
|
+
.object({
|
|
10850
|
+
key: zod.z.string().optional(),
|
|
10851
|
+
expiresAt: zod.z.string().optional(),
|
|
10852
|
+
})
|
|
10853
|
+
.optional();
|
|
10854
|
+
const OrgSchema = zod.z.object({
|
|
10855
|
+
id: zod.z.string(),
|
|
10856
|
+
key: zod.z.string(),
|
|
10857
|
+
name: zod.z.string(),
|
|
10858
|
+
createdAt: zod.z.coerce.date(),
|
|
10859
|
+
updatedAt: zod.z.coerce.date(),
|
|
10860
|
+
trialEndDate: zod.z.string().optional(),
|
|
10861
|
+
lastTrialExtensionDate: zod.z.string().optional(),
|
|
10862
|
+
limits: OrgLimits,
|
|
10863
|
+
thirtyDayTotalCredits: zod.z.number().optional(),
|
|
10864
|
+
lastThirtyDayUsagePercent: zod.z.number().optional(),
|
|
10865
|
+
todayUsagePercent: zod.z.number().optional(),
|
|
10866
|
+
domains: zod.z.array(zod.z.string()).optional(),
|
|
10867
|
+
featureFlags: zod.z.array(zod.z.string()).optional(),
|
|
10868
|
+
freeAiMonthlyCredits: zod.z.number().optional(),
|
|
10869
|
+
paidAiCredits: zod.z.number().optional(),
|
|
10870
|
+
stripeCustomerId: zod.z.string().optional(),
|
|
10871
|
+
});
|
|
10872
|
+
const AccountResponse = zod.z.object({
|
|
10873
|
+
user: FullPlatformUser.optional(),
|
|
10874
|
+
workspace: OrgWorkspaceSchema.optional(),
|
|
10875
|
+
workspaces: zod.z.array(OrgWorkspaceSchema).optional(),
|
|
10876
|
+
workspaceUser: OrgWorkspaceUser.extend({
|
|
10877
|
+
testCustomerId: zod.z.string(),
|
|
10878
|
+
}).optional(),
|
|
10879
|
+
engineTestUser: BaseCustomer.optional(),
|
|
10880
|
+
testCustomer: BaseCustomer.optional(),
|
|
10881
|
+
engineApp: AppSchema.optional(),
|
|
10882
|
+
superAdminToken: zod.z.string().optional().nullable(),
|
|
10883
|
+
orgs: zod.z.array(OrgSchema).optional(),
|
|
10884
|
+
permissions: zod.z.array(zod.z.string()).optional(),
|
|
10885
|
+
message: zod.z.string().optional(),
|
|
10886
|
+
error: zod.z.string().optional(),
|
|
10887
|
+
});
|
|
10697
10888
|
|
|
10698
10889
|
exports.WebhookTypeEnum = void 0;
|
|
10699
10890
|
(function (WebhookTypeEnum) {
|
|
@@ -10720,6 +10911,7 @@ exports.AlertType = void 0;
|
|
|
10720
10911
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
10721
10912
|
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
10722
10913
|
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
10914
|
+
AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
|
|
10723
10915
|
})(exports.AlertType || (exports.AlertType = {}));
|
|
10724
10916
|
|
|
10725
10917
|
class ElementAccessor {
|
|
@@ -10853,6 +11045,55 @@ class ElementInstanceAccessor {
|
|
|
10853
11045
|
}
|
|
10854
11046
|
}
|
|
10855
11047
|
|
|
11048
|
+
class ConnectionLevelElementAccessor {
|
|
11049
|
+
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11050
|
+
this.client = client;
|
|
11051
|
+
this.connectionSelector = connectionSelector;
|
|
11052
|
+
this.selector = selector;
|
|
11053
|
+
this.elementKey = elementKey;
|
|
11054
|
+
this.query = query;
|
|
11055
|
+
this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
|
|
11056
|
+
}
|
|
11057
|
+
uri(path = '', query = {}) {
|
|
11058
|
+
return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
|
|
11059
|
+
}
|
|
11060
|
+
getUniqueIdentifier() {
|
|
11061
|
+
return this.endpoint;
|
|
11062
|
+
}
|
|
11063
|
+
async get(query = {}) {
|
|
11064
|
+
return this.client.get(this.uri('', query));
|
|
11065
|
+
}
|
|
11066
|
+
async create() {
|
|
11067
|
+
return this.client.put(this.uri());
|
|
11068
|
+
}
|
|
11069
|
+
async patch(data) {
|
|
11070
|
+
return this.client.patch(this.uri(), data);
|
|
11071
|
+
}
|
|
11072
|
+
async put(data) {
|
|
11073
|
+
return this.client.put(this.uri(), data);
|
|
11074
|
+
}
|
|
11075
|
+
async archive() {
|
|
11076
|
+
return this.client.delete(this.uri());
|
|
11077
|
+
}
|
|
11078
|
+
async reset() {
|
|
11079
|
+
return this.client.post(this.uri('/reset'));
|
|
11080
|
+
}
|
|
11081
|
+
async setup() {
|
|
11082
|
+
return this.client.post(this.uri('/setup'));
|
|
11083
|
+
}
|
|
11084
|
+
}
|
|
11085
|
+
class ConnectionLevelElementsListAccessor {
|
|
11086
|
+
constructor(client, connectionSelector, elementKey) {
|
|
11087
|
+
this.client = client;
|
|
11088
|
+
this.connectionSelector = connectionSelector;
|
|
11089
|
+
this.elementKey = elementKey;
|
|
11090
|
+
}
|
|
11091
|
+
async list(query) {
|
|
11092
|
+
const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
|
|
11093
|
+
return this.client.get(endpoint);
|
|
11094
|
+
}
|
|
11095
|
+
}
|
|
11096
|
+
|
|
10856
11097
|
class IntegrationLevelElementAccessor {
|
|
10857
11098
|
constructor(client, integrationSelector, elementSelector, elementKey) {
|
|
10858
11099
|
this.client = client;
|
|
@@ -10911,6 +11152,15 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10911
11152
|
async reset() {
|
|
10912
11153
|
return await this.options.client.post(this.getPath('reset'));
|
|
10913
11154
|
}
|
|
11155
|
+
async run(input, options) {
|
|
11156
|
+
const queryParams = options
|
|
11157
|
+
? {
|
|
11158
|
+
integrationKey: options.integrationKey,
|
|
11159
|
+
connectionId: options.connectionId,
|
|
11160
|
+
}
|
|
11161
|
+
: {};
|
|
11162
|
+
return this.options.client.post(this.getPath('run'), { input }, { params: queryParams });
|
|
11163
|
+
}
|
|
10914
11164
|
}
|
|
10915
11165
|
class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor {
|
|
10916
11166
|
constructor(client, integrationSelector, actionSelector) {
|
|
@@ -10927,6 +11177,25 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
10927
11177
|
this.integrationSelector = integrationSelector;
|
|
10928
11178
|
}
|
|
10929
11179
|
}
|
|
11180
|
+
class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
11181
|
+
constructor(client, connectionSelector, actionSelector, query) {
|
|
11182
|
+
super(client, connectionSelector, actionSelector, 'actions', query);
|
|
11183
|
+
this.client = client;
|
|
11184
|
+
this.connectionSelector = connectionSelector;
|
|
11185
|
+
this.actionSelector = actionSelector;
|
|
11186
|
+
this.query = query;
|
|
11187
|
+
}
|
|
11188
|
+
async run(input) {
|
|
11189
|
+
return this.client.post(this.uri('/run'), input);
|
|
11190
|
+
}
|
|
11191
|
+
}
|
|
11192
|
+
class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
|
|
11193
|
+
constructor(client, connectionSelector) {
|
|
11194
|
+
super(client, connectionSelector, 'actions');
|
|
11195
|
+
this.client = client;
|
|
11196
|
+
this.connectionSelector = connectionSelector;
|
|
11197
|
+
}
|
|
11198
|
+
}
|
|
10930
11199
|
|
|
10931
11200
|
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10932
11201
|
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
@@ -11153,104 +11422,6 @@ function handleIframeUnmount(iframe) {
|
|
|
11153
11422
|
}
|
|
11154
11423
|
}
|
|
11155
11424
|
|
|
11156
|
-
class ConnectionLevelElementAccessor {
|
|
11157
|
-
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11158
|
-
this.client = client;
|
|
11159
|
-
this.connectionSelector = connectionSelector;
|
|
11160
|
-
this.selector = selector;
|
|
11161
|
-
this.elementKey = elementKey;
|
|
11162
|
-
this.query = query;
|
|
11163
|
-
this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
|
|
11164
|
-
}
|
|
11165
|
-
uri(path = '', query = {}) {
|
|
11166
|
-
return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
|
|
11167
|
-
}
|
|
11168
|
-
getUniqueIdentifier() {
|
|
11169
|
-
return this.endpoint;
|
|
11170
|
-
}
|
|
11171
|
-
async get(query = {}) {
|
|
11172
|
-
return this.client.get(this.uri('', query));
|
|
11173
|
-
}
|
|
11174
|
-
async create() {
|
|
11175
|
-
return this.client.put(this.uri());
|
|
11176
|
-
}
|
|
11177
|
-
async patch(data) {
|
|
11178
|
-
return this.client.patch(this.uri(), data);
|
|
11179
|
-
}
|
|
11180
|
-
async put(data) {
|
|
11181
|
-
return this.client.put(this.uri(), data);
|
|
11182
|
-
}
|
|
11183
|
-
async archive() {
|
|
11184
|
-
return this.client.delete(this.uri());
|
|
11185
|
-
}
|
|
11186
|
-
async reset() {
|
|
11187
|
-
return this.client.post(this.uri('/reset'));
|
|
11188
|
-
}
|
|
11189
|
-
async setup() {
|
|
11190
|
-
return this.client.post(this.uri('/setup'));
|
|
11191
|
-
}
|
|
11192
|
-
}
|
|
11193
|
-
class ConnectionLevelElementsListAccessor {
|
|
11194
|
-
constructor(client, connectionSelector, elementKey) {
|
|
11195
|
-
this.client = client;
|
|
11196
|
-
this.connectionSelector = connectionSelector;
|
|
11197
|
-
this.elementKey = elementKey;
|
|
11198
|
-
}
|
|
11199
|
-
async list(query) {
|
|
11200
|
-
const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
|
|
11201
|
-
return this.client.get(endpoint);
|
|
11202
|
-
}
|
|
11203
|
-
}
|
|
11204
|
-
|
|
11205
|
-
class ActionInstancesAccessor extends ElementInstanceListAccessor {
|
|
11206
|
-
constructor(client) {
|
|
11207
|
-
super(client, 'action-instances');
|
|
11208
|
-
}
|
|
11209
|
-
}
|
|
11210
|
-
class ActionInstanceAccessor extends ElementInstanceAccessor {
|
|
11211
|
-
constructor(client, selector) {
|
|
11212
|
-
super({
|
|
11213
|
-
client,
|
|
11214
|
-
instancePath: 'action-instance',
|
|
11215
|
-
selector,
|
|
11216
|
-
});
|
|
11217
|
-
this.client = client;
|
|
11218
|
-
}
|
|
11219
|
-
async setup() {
|
|
11220
|
-
await this.client.post(this.getPath('setup'));
|
|
11221
|
-
}
|
|
11222
|
-
async reset() {
|
|
11223
|
-
await this.client.post(this.getPath('reset'));
|
|
11224
|
-
}
|
|
11225
|
-
async run(input) {
|
|
11226
|
-
return this.client.post(this.getPath('run'), input);
|
|
11227
|
-
}
|
|
11228
|
-
async open({ onClose = () => { } } = {}) {
|
|
11229
|
-
const id = await this.getId();
|
|
11230
|
-
const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
|
|
11231
|
-
return openIframe(uri, { onClose });
|
|
11232
|
-
}
|
|
11233
|
-
}
|
|
11234
|
-
class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
11235
|
-
constructor(client, connectionSelector, actionSelector, query) {
|
|
11236
|
-
super(client, connectionSelector, actionSelector, 'actions', query);
|
|
11237
|
-
this.client = client;
|
|
11238
|
-
this.connectionSelector = connectionSelector;
|
|
11239
|
-
this.actionSelector = actionSelector;
|
|
11240
|
-
this.query = query;
|
|
11241
|
-
}
|
|
11242
|
-
async run(input) {
|
|
11243
|
-
return this.client.post(this.uri('/run'), input);
|
|
11244
|
-
}
|
|
11245
|
-
}
|
|
11246
|
-
class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
|
|
11247
|
-
constructor(client, connectionSelector) {
|
|
11248
|
-
super(client, connectionSelector, 'actions');
|
|
11249
|
-
this.client = client;
|
|
11250
|
-
this.connectionSelector = connectionSelector;
|
|
11251
|
-
}
|
|
11252
|
-
}
|
|
11253
|
-
|
|
11254
11425
|
class DataSourcesAccessor extends ElementListAccessor {
|
|
11255
11426
|
constructor(client) {
|
|
11256
11427
|
super(client, 'data-sources');
|
|
@@ -12220,6 +12391,36 @@ class UserAccessor extends CustomerAccessor {
|
|
|
12220
12391
|
}
|
|
12221
12392
|
}
|
|
12222
12393
|
|
|
12394
|
+
class ActionInstancesAccessor extends ElementInstanceListAccessor {
|
|
12395
|
+
constructor(client) {
|
|
12396
|
+
super(client, 'action-instances');
|
|
12397
|
+
}
|
|
12398
|
+
}
|
|
12399
|
+
class ActionInstanceAccessor extends ElementInstanceAccessor {
|
|
12400
|
+
constructor(client, selector) {
|
|
12401
|
+
super({
|
|
12402
|
+
client,
|
|
12403
|
+
instancePath: 'action-instance',
|
|
12404
|
+
selector,
|
|
12405
|
+
});
|
|
12406
|
+
this.client = client;
|
|
12407
|
+
}
|
|
12408
|
+
async setup() {
|
|
12409
|
+
await this.client.post(this.getPath('setup'));
|
|
12410
|
+
}
|
|
12411
|
+
async reset() {
|
|
12412
|
+
await this.client.post(this.getPath('reset'));
|
|
12413
|
+
}
|
|
12414
|
+
async run(input) {
|
|
12415
|
+
return this.client.post(this.getPath('run'), input);
|
|
12416
|
+
}
|
|
12417
|
+
async open({ onClose = () => { } } = {}) {
|
|
12418
|
+
const id = await this.getId();
|
|
12419
|
+
const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
|
|
12420
|
+
return openIframe(uri, { onClose });
|
|
12421
|
+
}
|
|
12422
|
+
}
|
|
12423
|
+
|
|
12223
12424
|
class DataLinkTablesAccessor extends ElementListAccessor {
|
|
12224
12425
|
constructor(client) {
|
|
12225
12426
|
super(client, 'data-link-tables');
|
|
@@ -12448,15 +12649,39 @@ const AgentSession = zod.z.object({
|
|
|
12448
12649
|
storedMessagesUri: zod.z.string().url().optional(),
|
|
12449
12650
|
sessionFilesZipUri: zod.z.string().url().optional(),
|
|
12450
12651
|
logs: zod.z.array(zod.z.any()).optional(),
|
|
12652
|
+
usage: zod.z.number().optional(),
|
|
12451
12653
|
});
|
|
12452
12654
|
const CreateAgentSession = zod.z.object({
|
|
12453
12655
|
workspaceElementType: zod.z.enum(exports.WorkspaceElementType),
|
|
12454
12656
|
workspaceElementId: zod.z.string().min(1),
|
|
12455
12657
|
prompt: zod.z.string().min(1),
|
|
12658
|
+
testCustomerId: zod.z.string().optional(),
|
|
12456
12659
|
});
|
|
12457
12660
|
const AgentSessionInputSchema = zod.z.object({
|
|
12458
|
-
input: zod.z.string().
|
|
12459
|
-
|
|
12661
|
+
input: zod.z.string().min(1),
|
|
12662
|
+
synthetic: zod.z.boolean().optional(),
|
|
12663
|
+
});
|
|
12664
|
+
|
|
12665
|
+
exports.InteractiveMcpToolName = void 0;
|
|
12666
|
+
(function (InteractiveMcpToolName) {
|
|
12667
|
+
InteractiveMcpToolName["REQUEST_TEST_CONNECTION"] = "requestTestConnection";
|
|
12668
|
+
})(exports.InteractiveMcpToolName || (exports.InteractiveMcpToolName = {}));
|
|
12669
|
+
exports.InteractiveMcpToolStatus = void 0;
|
|
12670
|
+
(function (InteractiveMcpToolStatus) {
|
|
12671
|
+
InteractiveMcpToolStatus["AWAITING_USER_INPUT"] = "awaiting_user_input";
|
|
12672
|
+
})(exports.InteractiveMcpToolStatus || (exports.InteractiveMcpToolStatus = {}));
|
|
12673
|
+
|
|
12674
|
+
const API_VERSIONS = {
|
|
12675
|
+
LEGACY: 'legacy',
|
|
12676
|
+
'2025-10-21': '2025-10-21',
|
|
12677
|
+
};
|
|
12678
|
+
const AVAILABLE_VERSIONS = Object.values(API_VERSIONS);
|
|
12679
|
+
const CHRONOLOGICAL_VERSIONS = [
|
|
12680
|
+
API_VERSIONS.LEGACY,
|
|
12681
|
+
...[...AVAILABLE_VERSIONS].filter((v) => v !== API_VERSIONS.LEGACY).sort(),
|
|
12682
|
+
];
|
|
12683
|
+
const LATEST_API_VERSION = CHRONOLOGICAL_VERSIONS[CHRONOLOGICAL_VERSIONS.length - 1];
|
|
12684
|
+
const VERSION_HEADER = 'membrane-api-version';
|
|
12460
12685
|
|
|
12461
12686
|
function decodeJWT(token) {
|
|
12462
12687
|
if (typeof token !== 'string') {
|
|
@@ -12490,6 +12715,9 @@ const DEFAULT_API_URI = 'https://api.integration.app';
|
|
|
12490
12715
|
const DEFAULT_UI_URI = 'https://ui.integration.app';
|
|
12491
12716
|
const REFETCH_EXPIRATION_THRESHOLD = 10 * 1000;
|
|
12492
12717
|
function decodeToken(token) {
|
|
12718
|
+
if (token.startsWith('pat-')) {
|
|
12719
|
+
return null;
|
|
12720
|
+
}
|
|
12493
12721
|
const payload = decodeJWT(token);
|
|
12494
12722
|
if (!payload) {
|
|
12495
12723
|
throw new Error('Access token should be a valid JWT token.');
|
|
@@ -12519,7 +12747,7 @@ class MembraneApiClient {
|
|
|
12519
12747
|
}
|
|
12520
12748
|
else {
|
|
12521
12749
|
const payload = decodeToken(this.token);
|
|
12522
|
-
if (payload.exp) {
|
|
12750
|
+
if (payload === null || payload === void 0 ? void 0 : payload.exp) {
|
|
12523
12751
|
const willExpireSoon = new Date(payload.exp * 1000).getTime() - new Date().getTime() < REFETCH_EXPIRATION_THRESHOLD;
|
|
12524
12752
|
if (willExpireSoon) {
|
|
12525
12753
|
this.token = await this.fetchToken();
|
|
@@ -12577,6 +12805,7 @@ class MembraneApiClient {
|
|
|
12577
12805
|
params.headers = {
|
|
12578
12806
|
...(params.headers || {}),
|
|
12579
12807
|
Authorization: `Bearer ${token}`,
|
|
12808
|
+
[VERSION_HEADER]: LATEST_API_VERSION,
|
|
12580
12809
|
};
|
|
12581
12810
|
params.withCredentials = false;
|
|
12582
12811
|
let response;
|
|
@@ -12753,10 +12982,12 @@ injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
|
12753
12982
|
|
|
12754
12983
|
exports.ACTIONS = ACTIONS;
|
|
12755
12984
|
exports.AccessDeniedError = AccessDeniedError;
|
|
12985
|
+
exports.AccountResponse = AccountResponse;
|
|
12756
12986
|
exports.ActionAccessor = ActionAccessor;
|
|
12757
12987
|
exports.ActionApiResponse = ActionApiResponse;
|
|
12758
12988
|
exports.ActionDependency = ActionDependency;
|
|
12759
12989
|
exports.ActionEditableProperties = ActionEditableProperties;
|
|
12990
|
+
exports.ActionExportProperties = ActionExportProperties;
|
|
12760
12991
|
exports.ActionInstanceAccessor = ActionInstanceAccessor;
|
|
12761
12992
|
exports.ActionInstanceApiResponse = ActionInstanceApiResponse;
|
|
12762
12993
|
exports.ActionInstanceSetupError = ActionInstanceSetupError;
|
|
@@ -12781,6 +13012,8 @@ exports.AppEventSubscriptionsAccessor = AppEventSubscriptionsAccessor;
|
|
|
12781
13012
|
exports.AppEventTypeAccessor = AppEventTypeAccessor;
|
|
12782
13013
|
exports.AppEventTypeApiResponse = AppEventTypeApiResponse;
|
|
12783
13014
|
exports.AppEventTypesAccessor = AppEventTypesAccessor;
|
|
13015
|
+
exports.AppPublicKey = AppPublicKey;
|
|
13016
|
+
exports.AppSchema = AppSchema;
|
|
12784
13017
|
exports.AppliedToIntegrations = AppliedToIntegrations;
|
|
12785
13018
|
exports.BadRequestError = BadRequestError;
|
|
12786
13019
|
exports.BaseAction = BaseAction;
|
|
@@ -12808,6 +13041,7 @@ exports.BaseFlowRun = BaseFlowRun;
|
|
|
12808
13041
|
exports.BaseIntegration = BaseIntegration;
|
|
12809
13042
|
exports.BaseIntegrationLevelMembraneInterface = BaseIntegrationLevelMembraneInterface;
|
|
12810
13043
|
exports.BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties;
|
|
13044
|
+
exports.BaseIntegrationLevelMembraneInterfaceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties;
|
|
12811
13045
|
exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties;
|
|
12812
13046
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12813
13047
|
exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
|
|
@@ -12854,7 +13088,6 @@ exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
|
12854
13088
|
exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
12855
13089
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
12856
13090
|
exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
|
|
12857
|
-
exports.CopilotActivityScope = CopilotActivityScope;
|
|
12858
13091
|
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
12859
13092
|
exports.CreateActionRequest = CreateActionRequest;
|
|
12860
13093
|
exports.CreateAgentSession = CreateAgentSession;
|
|
@@ -12928,6 +13161,7 @@ exports.DataSchema = DataSchema;
|
|
|
12928
13161
|
exports.DataSourceAccessor = DataSourceAccessor;
|
|
12929
13162
|
exports.DataSourceApiResponse = DataSourceApiResponse;
|
|
12930
13163
|
exports.DataSourceEditableProperties = DataSourceEditableProperties;
|
|
13164
|
+
exports.DataSourceExportProperties = DataSourceExportProperties;
|
|
12931
13165
|
exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
|
|
12932
13166
|
exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
|
|
12933
13167
|
exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
|
|
@@ -12941,6 +13175,7 @@ exports.ElementInstanceAccessor = ElementInstanceAccessor;
|
|
|
12941
13175
|
exports.ElementInstanceListAccessor = ElementInstanceListAccessor;
|
|
12942
13176
|
exports.ElementListAccessor = ElementListAccessor;
|
|
12943
13177
|
exports.ElementsExportFields = ElementsExportFields;
|
|
13178
|
+
exports.EngineWorkspaceSettingsSchema = EngineWorkspaceSettingsSchema;
|
|
12944
13179
|
exports.ErrorData = ErrorData;
|
|
12945
13180
|
exports.ErrorDataSchema = ErrorDataSchema;
|
|
12946
13181
|
exports.ExternalEvent = ExternalEvent;
|
|
@@ -12955,6 +13190,7 @@ exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
|
|
|
12955
13190
|
exports.FieldMappingAccessor = FieldMappingAccessor;
|
|
12956
13191
|
exports.FieldMappingApiResponse = FieldMappingApiResponse;
|
|
12957
13192
|
exports.FieldMappingEditableProperties = FieldMappingEditableProperties;
|
|
13193
|
+
exports.FieldMappingExportProperties = FieldMappingExportProperties;
|
|
12958
13194
|
exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
|
|
12959
13195
|
exports.FieldMappingInstanceApiResponse = FieldMappingInstanceApiResponse;
|
|
12960
13196
|
exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
|
|
@@ -12981,6 +13217,7 @@ exports.FindPackagesQuery = FindPackagesQuery;
|
|
|
12981
13217
|
exports.FlowAccessor = FlowAccessor;
|
|
12982
13218
|
exports.FlowApiResponse = FlowApiResponse;
|
|
12983
13219
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
13220
|
+
exports.FlowExportProperties = FlowExportProperties;
|
|
12984
13221
|
exports.FlowInstanceAccessor = FlowInstanceAccessor;
|
|
12985
13222
|
exports.FlowInstanceApiResponse = FlowInstanceApiResponse;
|
|
12986
13223
|
exports.FlowInstanceNode = FlowInstanceNode;
|
|
@@ -13005,15 +13242,18 @@ exports.FlowRunNode = FlowRunNode;
|
|
|
13005
13242
|
exports.FlowRunsAccessor = FlowRunsAccessor;
|
|
13006
13243
|
exports.FlowsAccessor = FlowsAccessor;
|
|
13007
13244
|
exports.Formula = Formula;
|
|
13245
|
+
exports.FullPlatformUser = FullPlatformUser;
|
|
13008
13246
|
exports.HTTP_REQUEST_SCHEMA = HTTP_REQUEST_SCHEMA;
|
|
13009
13247
|
exports.HandyScenarioTemplateElement = HandyScenarioTemplateElement;
|
|
13010
13248
|
exports.HttpRequestSpec = HttpRequestSpec;
|
|
13011
13249
|
exports.IncludeArchivedQuery = IncludeArchivedQuery;
|
|
13250
|
+
exports.InsufficientCreditsError = InsufficientCreditsError;
|
|
13012
13251
|
exports.IntegrationAccessor = IntegrationAccessor;
|
|
13013
13252
|
exports.IntegrationApiResponse = IntegrationApiResponse;
|
|
13014
13253
|
exports.IntegrationAppClient = MembraneClient;
|
|
13015
13254
|
exports.IntegrationAuthOption = IntegrationAuthOption;
|
|
13016
13255
|
exports.IntegrationAuthUi = IntegrationAuthUi;
|
|
13256
|
+
exports.IntegrationExportProperties = IntegrationExportProperties;
|
|
13017
13257
|
exports.IntegrationLevelActionAccessor = IntegrationLevelActionAccessor;
|
|
13018
13258
|
exports.IntegrationLevelActionsListAccessor = IntegrationLevelActionsListAccessor;
|
|
13019
13259
|
exports.IntegrationLevelDataSourceAccessor = IntegrationLevelDataSourceAccessor;
|
|
@@ -13031,8 +13271,10 @@ exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForCo
|
|
|
13031
13271
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
13032
13272
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
13033
13273
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
13274
|
+
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
13034
13275
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
13035
13276
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
13277
|
+
exports.MembraneAgentKey = MembraneAgentKey;
|
|
13036
13278
|
exports.MembraneAxiosInstance = axios;
|
|
13037
13279
|
exports.MembraneClient = MembraneClient;
|
|
13038
13280
|
exports.MembraneError = MembraneError;
|
|
@@ -13041,6 +13283,10 @@ exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
|
13041
13283
|
exports.NotFoundError = NotFoundError;
|
|
13042
13284
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
13043
13285
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
13286
|
+
exports.OrgLimits = OrgLimits;
|
|
13287
|
+
exports.OrgSchema = OrgSchema;
|
|
13288
|
+
exports.OrgWorkspaceSchema = OrgWorkspaceSchema;
|
|
13289
|
+
exports.OrgWorkspaceUser = OrgWorkspaceUser;
|
|
13044
13290
|
exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
|
|
13045
13291
|
exports.PackageAccessor = PackageAccessor;
|
|
13046
13292
|
exports.PackageApiResponse = PackageApiResponse;
|
|
@@ -13048,9 +13294,12 @@ exports.PackageCalculatedProperties = PackageCalculatedProperties;
|
|
|
13048
13294
|
exports.PackageEditableProperties = PackageEditableProperties;
|
|
13049
13295
|
exports.PackageElement = PackageElement;
|
|
13050
13296
|
exports.PackageElementApi = PackageElementApi;
|
|
13297
|
+
exports.PackageElementExport = PackageElementExport;
|
|
13298
|
+
exports.PackageExportProperties = PackageExportProperties;
|
|
13051
13299
|
exports.PackagesAccessor = PackagesAccessor;
|
|
13052
13300
|
exports.PaginationQuery = PaginationQuery;
|
|
13053
13301
|
exports.PaginationResponse = PaginationResponse;
|
|
13302
|
+
exports.PlatformUserSchema = PlatformUserSchema;
|
|
13054
13303
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
13055
13304
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
13056
13305
|
exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
@@ -13083,6 +13332,7 @@ exports.UserAccessor = UserAccessor;
|
|
|
13083
13332
|
exports.UsersAccessor = UsersAccessor;
|
|
13084
13333
|
exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
|
|
13085
13334
|
exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
|
|
13335
|
+
exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
|
|
13086
13336
|
exports.__resolveValue = __resolveValue;
|
|
13087
13337
|
exports.addRequiredFieldsToSchema = addRequiredFieldsToSchema;
|
|
13088
13338
|
exports.addUdmFallbackFields = addUdmFallbackFields;
|
|
@@ -13090,6 +13340,7 @@ exports.backwardCompatibleFilterMatch = backwardCompatibleFilterMatch;
|
|
|
13090
13340
|
exports.buildData = buildData;
|
|
13091
13341
|
exports.buildDataSchema = buildDataSchema;
|
|
13092
13342
|
exports.buildValue = buildValue;
|
|
13343
|
+
exports.compareWorkspaceExports = compareWorkspaceExports;
|
|
13093
13344
|
exports.compressDataSchema = compressDataSchema;
|
|
13094
13345
|
exports.createCompoundSchema = createCompoundSchema;
|
|
13095
13346
|
exports.createFlowInstanceSchema = createFlowInstanceSchema;
|
|
@@ -13137,6 +13388,7 @@ exports.getFullTitleForLocator = getFullTitleForLocator;
|
|
|
13137
13388
|
exports.getIconUriForLocator = getIconUriForLocator;
|
|
13138
13389
|
exports.getLocatorsFromData = getLocatorsFromData;
|
|
13139
13390
|
exports.getLocatorsFromSchema = getLocatorsFromSchema;
|
|
13391
|
+
exports.getMembraneElementPath = getMembraneElementPath;
|
|
13140
13392
|
exports.getMissingRequiredFields = getMissingRequiredFields;
|
|
13141
13393
|
exports.getNameComponentsForLocator = getNameComponentsForLocator;
|
|
13142
13394
|
exports.getNameForLocator = getNameForLocator;
|
|
@@ -13180,6 +13432,7 @@ exports.mergeWithFormulas = mergeWithFormulas;
|
|
|
13180
13432
|
exports.nonEmptyObjectProperties = nonEmptyObjectProperties;
|
|
13181
13433
|
exports.parseDataLocationPath = parseDataLocationPath;
|
|
13182
13434
|
exports.parseDate = parseDate;
|
|
13435
|
+
exports.parseMembraneElementPath = parseMembraneElementPath;
|
|
13183
13436
|
exports.patchSchema = patchSchema;
|
|
13184
13437
|
exports.pickFieldsFromSchema = pickFieldsFromSchema;
|
|
13185
13438
|
exports.pickFieldsFromValue = pickFieldsFromValue;
|