@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.mjs
CHANGED
|
@@ -24,6 +24,7 @@ var ErrorType;
|
|
|
24
24
|
ErrorType["ACTION_INSTANCE_SETUP"] = "action_instance_setup";
|
|
25
25
|
ErrorType["UNIT_RUN"] = "unit_run";
|
|
26
26
|
ErrorType["CUSTOM_CODE"] = "custom_code";
|
|
27
|
+
ErrorType["INSUFFICIENT_CREDIT"] = "insufficient_credit";
|
|
27
28
|
})(ErrorType || (ErrorType = {}));
|
|
28
29
|
var BadRequestErrorKey;
|
|
29
30
|
(function (BadRequestErrorKey) {
|
|
@@ -175,6 +176,12 @@ class CustomCodeError extends MembraneError {
|
|
|
175
176
|
this.data.type = ErrorType.CUSTOM_CODE;
|
|
176
177
|
}
|
|
177
178
|
}
|
|
179
|
+
class InsufficientCreditsError extends MembraneError {
|
|
180
|
+
constructor(arg) {
|
|
181
|
+
super(arg);
|
|
182
|
+
this.data.type = ErrorType.INSUFFICIENT_CREDIT;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
178
185
|
|
|
179
186
|
var DataBuilderFormulaType;
|
|
180
187
|
(function (DataBuilderFormulaType) {
|
|
@@ -3383,6 +3390,7 @@ const zodBooleanCoercion = () => z.preprocess((val) => {
|
|
|
3383
3390
|
return Boolean(val);
|
|
3384
3391
|
return Boolean(val);
|
|
3385
3392
|
}, z.boolean());
|
|
3393
|
+
|
|
3386
3394
|
const IncludeArchivedQuery = z.object({
|
|
3387
3395
|
includeArchived: zodBooleanCoercion().optional(),
|
|
3388
3396
|
});
|
|
@@ -3437,7 +3445,6 @@ var WorkspaceElementType;
|
|
|
3437
3445
|
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
3438
3446
|
WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
|
|
3439
3447
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3440
|
-
WorkspaceElementType["DataCollection"] = "data-collection";
|
|
3441
3448
|
WorkspaceElementType["Screen"] = "screen";
|
|
3442
3449
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3443
3450
|
})(WorkspaceElementType || (WorkspaceElementType = {}));
|
|
@@ -3469,9 +3476,9 @@ const BaseWorkspaceElement = z.object({
|
|
|
3469
3476
|
name: z.string(),
|
|
3470
3477
|
});
|
|
3471
3478
|
const BaseMembraneInterfaceEditableProperties = z.object({
|
|
3479
|
+
uuid: z.string().optional(),
|
|
3472
3480
|
key: z.string().optional(),
|
|
3473
3481
|
name: z.string().optional(),
|
|
3474
|
-
uuid: z.string().optional(),
|
|
3475
3482
|
description: z.string().optional(),
|
|
3476
3483
|
meta: z.record(z.string(), z.any()).optional(),
|
|
3477
3484
|
});
|
|
@@ -3487,14 +3494,20 @@ const BaseMembraneInterfaceReadOnlyProperties = z.object({
|
|
|
3487
3494
|
});
|
|
3488
3495
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3489
3496
|
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3490
|
-
integrationUuid: z.string().optional(),
|
|
3491
|
-
parentUuid: z.string().optional(),
|
|
3492
3497
|
integrationId: z.string().optional(),
|
|
3498
|
+
integrationUuid: z.string().optional(),
|
|
3493
3499
|
parentId: z.string().optional(),
|
|
3500
|
+
parentUuid: z.string().optional(),
|
|
3501
|
+
connectionId: z.string().optional(),
|
|
3502
|
+
instanceKey: z.string().optional(),
|
|
3494
3503
|
});
|
|
3495
3504
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3496
3505
|
isCustomized: z.boolean().optional(),
|
|
3497
3506
|
});
|
|
3507
|
+
const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3508
|
+
integrationUuid: z.string().optional(),
|
|
3509
|
+
parentUuid: z.string().optional(),
|
|
3510
|
+
});
|
|
3498
3511
|
const IntegrationLevelMembraneInterfaceSelectorQuery = z.object({
|
|
3499
3512
|
layer: z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3500
3513
|
integrationKey: z.string().optional(),
|
|
@@ -3545,14 +3558,11 @@ var FieldMappingDirection;
|
|
|
3545
3558
|
FieldMappingDirection["EXPORT"] = "export";
|
|
3546
3559
|
FieldMappingDirection["BOTH"] = "both";
|
|
3547
3560
|
})(FieldMappingDirection || (FieldMappingDirection = {}));
|
|
3548
|
-
const
|
|
3549
|
-
parentId: true,
|
|
3550
|
-
}).extend({
|
|
3561
|
+
const FieldMappingSpecificProperties = z.object({
|
|
3551
3562
|
connectionId: z.string().optional(),
|
|
3552
3563
|
fieldMappingId: z.string().optional(),
|
|
3553
3564
|
universalFieldMappingId: z.string().optional(),
|
|
3554
3565
|
dataSourceKey: z.string().optional(),
|
|
3555
|
-
dataSourceId: z.string().optional(),
|
|
3556
3566
|
appSchema: DataSchema.optional(),
|
|
3557
3567
|
direction: z.enum(FieldMappingDirection).optional(),
|
|
3558
3568
|
defaultImportValue: z.any().optional(),
|
|
@@ -3563,6 +3573,14 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3563
3573
|
frozenExportFields: z.any().optional(),
|
|
3564
3574
|
frozenUnifiedExportFields: z.any().optional(),
|
|
3565
3575
|
});
|
|
3576
|
+
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3577
|
+
parentId: true,
|
|
3578
|
+
}).extend(FieldMappingSpecificProperties.shape);
|
|
3579
|
+
const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
|
|
3580
|
+
connectionId: true,
|
|
3581
|
+
fieldMappingId: true,
|
|
3582
|
+
universalFieldMappingId: true,
|
|
3583
|
+
});
|
|
3566
3584
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3567
3585
|
universalFieldMappingRevision: z.string().optional(),
|
|
3568
3586
|
});
|
|
@@ -3686,15 +3704,19 @@ const ActionDependency = z.object({
|
|
|
3686
3704
|
key: z.string(),
|
|
3687
3705
|
element: z.any().optional(),
|
|
3688
3706
|
});
|
|
3689
|
-
const
|
|
3707
|
+
const ActionSpecificProperties = z.object({
|
|
3690
3708
|
connectionId: z.string().optional(),
|
|
3691
3709
|
instanceKey: z.string().optional(),
|
|
3692
3710
|
inputSchema: DataSchema.optional(),
|
|
3693
3711
|
type: z.enum(ActionType).optional(),
|
|
3694
|
-
config: z.
|
|
3712
|
+
config: z.object({}).loose().optional(),
|
|
3695
3713
|
outputMapping: z.any().optional(),
|
|
3696
3714
|
customOutputSchema: DataSchema.optional(),
|
|
3697
3715
|
});
|
|
3716
|
+
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
|
|
3717
|
+
const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(ActionSpecificProperties.shape).omit({
|
|
3718
|
+
connectionId: true,
|
|
3719
|
+
});
|
|
3698
3720
|
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3699
3721
|
universalParentId: z.string().optional(),
|
|
3700
3722
|
userId: z.string().optional(),
|
|
@@ -3725,6 +3747,8 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3725
3747
|
updatedAt: z.string(),
|
|
3726
3748
|
lastActiveAt: z.string().optional(),
|
|
3727
3749
|
nextCredentialsRefreshAt: z.string().optional(),
|
|
3750
|
+
nextRetryTimestamp: z.string().optional(),
|
|
3751
|
+
retryAttempts: z.number().optional(),
|
|
3728
3752
|
archivedAt: z.string().optional(),
|
|
3729
3753
|
isDeactivated: z.boolean().optional(),
|
|
3730
3754
|
meta: z.record(z.string(), z.any()).optional(),
|
|
@@ -8403,9 +8427,7 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8403
8427
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8404
8428
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8405
8429
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8406
|
-
const
|
|
8407
|
-
parentId: true,
|
|
8408
|
-
}).extend({
|
|
8430
|
+
const DataSourceSpecificProperties = z.object({
|
|
8409
8431
|
connectionId: z.string().optional(),
|
|
8410
8432
|
dataSourceId: z.string().optional(),
|
|
8411
8433
|
universalDataSourceId: z.string().optional(),
|
|
@@ -8416,18 +8438,27 @@ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditab
|
|
|
8416
8438
|
collectionParameters: z.any().optional(),
|
|
8417
8439
|
defaultPath: z.string().optional(),
|
|
8418
8440
|
});
|
|
8441
|
+
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8442
|
+
parentId: true,
|
|
8443
|
+
}).extend(DataSourceSpecificProperties.shape);
|
|
8444
|
+
const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(DataSourceSpecificProperties.shape).omit({
|
|
8445
|
+
connectionId: true,
|
|
8446
|
+
dataSourceId: true,
|
|
8447
|
+
universalDataSourceId: true,
|
|
8448
|
+
});
|
|
8419
8449
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8420
8450
|
universalDataSourceRevision: z.string().optional(),
|
|
8421
8451
|
});
|
|
8422
8452
|
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8423
8453
|
const DataSourceUnitConfig = z.object({
|
|
8424
|
-
key: z.
|
|
8454
|
+
key: z.any().optional(),
|
|
8425
8455
|
collectionKey: z.any().optional(),
|
|
8426
8456
|
collectionParameters: z.any().optional(),
|
|
8427
8457
|
udm: z.any().optional(),
|
|
8428
|
-
path: z.string().optional(),
|
|
8429
8458
|
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
8430
8459
|
fullSyncIntervalSeconds: z.number().optional(),
|
|
8460
|
+
path: z.any().optional(),
|
|
8461
|
+
defaultPath: z.any().optional(),
|
|
8431
8462
|
});
|
|
8432
8463
|
|
|
8433
8464
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
@@ -8894,16 +8925,22 @@ const FLOW_NODE_SPECS = {
|
|
|
8894
8925
|
[FlowNodeType.RunAction]: RunAction,
|
|
8895
8926
|
};
|
|
8896
8927
|
|
|
8897
|
-
const
|
|
8898
|
-
parentId: true,
|
|
8899
|
-
}).extend({
|
|
8900
|
-
connectionId: z.string().optional(),
|
|
8928
|
+
const FlowSpecificProperties = z.object({
|
|
8901
8929
|
flowId: z.string().optional(),
|
|
8902
8930
|
universalFlowId: z.string().optional(),
|
|
8903
8931
|
parametersSchema: DataSchema.optional(),
|
|
8932
|
+
parameters: z.any().optional(),
|
|
8933
|
+
enabled: z.boolean().optional(),
|
|
8904
8934
|
nodes: z.record(z.string(), FlowNode).optional(),
|
|
8905
8935
|
autoCreateInstances: z.boolean().optional(),
|
|
8906
8936
|
});
|
|
8937
|
+
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8938
|
+
parentId: true,
|
|
8939
|
+
}).extend(FlowSpecificProperties.shape);
|
|
8940
|
+
const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
|
|
8941
|
+
flowId: true,
|
|
8942
|
+
universalFlowId: true,
|
|
8943
|
+
});
|
|
8907
8944
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8908
8945
|
universalFlowRevision: z.string().optional(),
|
|
8909
8946
|
});
|
|
@@ -8931,6 +8968,14 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
8931
8968
|
isDeactivated: z.boolean().optional(),
|
|
8932
8969
|
authType: z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
8933
8970
|
});
|
|
8971
|
+
const IntegrationExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8972
|
+
logoUri: z.string(),
|
|
8973
|
+
connectorUuid: z.string().optional(),
|
|
8974
|
+
connectorVersion: z.string().optional(),
|
|
8975
|
+
oAuthCallbackUri: z.string().optional(),
|
|
8976
|
+
parameters: z.any().optional(),
|
|
8977
|
+
appUuid: z.string().optional(),
|
|
8978
|
+
});
|
|
8934
8979
|
const AppliedToIntegrations = (elementSchema) => z.array(z.object({
|
|
8935
8980
|
element: elementSchema,
|
|
8936
8981
|
integration: BaseIntegration,
|
|
@@ -8961,12 +9006,17 @@ const PackageElement = z.object({
|
|
|
8961
9006
|
type: z.enum(IntegrationElementType),
|
|
8962
9007
|
element: z.any().optional(),
|
|
8963
9008
|
});
|
|
8964
|
-
const
|
|
9009
|
+
const PackageElementExport = z.object({
|
|
9010
|
+
uuid: z.string(),
|
|
9011
|
+
type: z.enum(IntegrationElementType),
|
|
9012
|
+
element: z.any().optional(),
|
|
9013
|
+
});
|
|
9014
|
+
const PackageEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
8965
9015
|
scenarioTemplateId: z.string().optional(),
|
|
8966
9016
|
elements: z.array(PackageElement).optional(),
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
9017
|
+
});
|
|
9018
|
+
const PackageExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
|
|
9019
|
+
elements: z.array(PackageElementExport).optional(),
|
|
8970
9020
|
});
|
|
8971
9021
|
const PackageCalculatedProperties = z.object({
|
|
8972
9022
|
key: z.string(),
|
|
@@ -9200,6 +9250,7 @@ const BaseAppEventType = BaseMembraneInterface.extend({
|
|
|
9200
9250
|
example: z.any().optional(),
|
|
9201
9251
|
schema: DataSchema.optional(),
|
|
9202
9252
|
globalWebhookUri: z.string(),
|
|
9253
|
+
tenantIdFormula: z.any().optional(),
|
|
9203
9254
|
userIdFormula: z.any().optional(),
|
|
9204
9255
|
});
|
|
9205
9256
|
|
|
@@ -9324,6 +9375,7 @@ var ActionRunLogStatus;
|
|
|
9324
9375
|
})(ActionRunLogStatus || (ActionRunLogStatus = {}));
|
|
9325
9376
|
const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
9326
9377
|
actionId: z.string(),
|
|
9378
|
+
actionInstanceId: z.string(),
|
|
9327
9379
|
integrationId: z.string(),
|
|
9328
9380
|
connectionId: z.string(),
|
|
9329
9381
|
input: z.any().optional(),
|
|
@@ -9332,6 +9384,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9332
9384
|
createdAt: z.string(),
|
|
9333
9385
|
completedAt: z.string().optional(),
|
|
9334
9386
|
error: ErrorDataSchema.optional(),
|
|
9387
|
+
duration: z.number().optional(),
|
|
9335
9388
|
});
|
|
9336
9389
|
|
|
9337
9390
|
const ActionApiResponse = BaseAction.extend({
|
|
@@ -9501,12 +9554,7 @@ const ExternalEvent = BaseExternalEvent.extend({
|
|
|
9501
9554
|
|
|
9502
9555
|
const FlowApiResponse = BaseFlow.extend({
|
|
9503
9556
|
integration: BaseIntegration.optional(),
|
|
9504
|
-
appliedToIntegrations: AppliedToIntegrations(
|
|
9505
|
-
id: z.string(),
|
|
9506
|
-
integrationId: z.string().optional(),
|
|
9507
|
-
isCustomized: z.boolean().optional(),
|
|
9508
|
-
universalFlowId: z.string().optional(),
|
|
9509
|
-
})).optional(),
|
|
9557
|
+
appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
|
|
9510
9558
|
dependencies: z.array(z.any()).optional(),
|
|
9511
9559
|
});
|
|
9512
9560
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
@@ -9870,6 +9918,71 @@ function hasCycles(nodes) {
|
|
|
9870
9918
|
return hasCycles;
|
|
9871
9919
|
}
|
|
9872
9920
|
|
|
9921
|
+
var WorkspaceElementChangeType;
|
|
9922
|
+
(function (WorkspaceElementChangeType) {
|
|
9923
|
+
WorkspaceElementChangeType["CREATE"] = "create";
|
|
9924
|
+
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
9925
|
+
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
9926
|
+
})(WorkspaceElementChangeType || (WorkspaceElementChangeType = {}));
|
|
9927
|
+
function compareWorkspaceExports(primaryExport, targetExport) {
|
|
9928
|
+
const changes = [];
|
|
9929
|
+
const result = {
|
|
9930
|
+
[WorkspaceElementChangeType.CREATE]: new Set(),
|
|
9931
|
+
[WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
9932
|
+
[WorkspaceElementChangeType.DELETE]: new Set(),
|
|
9933
|
+
};
|
|
9934
|
+
const primaryMap = new Map();
|
|
9935
|
+
const otherMap = new Map();
|
|
9936
|
+
const typeMap = new Map();
|
|
9937
|
+
const allElementTypes = new Set([...Object.keys(primaryExport), ...Object.keys(targetExport)]);
|
|
9938
|
+
for (const elementType of allElementTypes) {
|
|
9939
|
+
const type = elementType;
|
|
9940
|
+
const primaryElements = primaryExport[type] || [];
|
|
9941
|
+
for (const element of primaryElements) {
|
|
9942
|
+
primaryMap.set(element.uuid, element);
|
|
9943
|
+
typeMap.set(element.uuid, type);
|
|
9944
|
+
}
|
|
9945
|
+
const otherElements = targetExport[type] || [];
|
|
9946
|
+
for (const element of otherElements) {
|
|
9947
|
+
otherMap.set(element.uuid, element);
|
|
9948
|
+
typeMap.set(element.uuid, type);
|
|
9949
|
+
}
|
|
9950
|
+
}
|
|
9951
|
+
for (const [uuid] of typeMap) {
|
|
9952
|
+
const primaryElement = primaryMap.get(uuid);
|
|
9953
|
+
const otherElement = otherMap.get(uuid);
|
|
9954
|
+
const change = compareElementExports(primaryElement, otherElement);
|
|
9955
|
+
if (change) {
|
|
9956
|
+
changes.push(change);
|
|
9957
|
+
}
|
|
9958
|
+
}
|
|
9959
|
+
changes.forEach((change) => {
|
|
9960
|
+
result[change.type].add(change.uuid);
|
|
9961
|
+
});
|
|
9962
|
+
return result;
|
|
9963
|
+
}
|
|
9964
|
+
function compareElementExports(primaryElement, targetElement) {
|
|
9965
|
+
if (primaryElement && !targetElement) {
|
|
9966
|
+
return {
|
|
9967
|
+
type: WorkspaceElementChangeType.CREATE,
|
|
9968
|
+
uuid: primaryElement.uuid,
|
|
9969
|
+
};
|
|
9970
|
+
}
|
|
9971
|
+
if (!primaryElement && targetElement) {
|
|
9972
|
+
return {
|
|
9973
|
+
type: WorkspaceElementChangeType.DELETE,
|
|
9974
|
+
uuid: targetElement.uuid,
|
|
9975
|
+
};
|
|
9976
|
+
}
|
|
9977
|
+
if (primaryElement && targetElement && !deepEqual(primaryElement, targetElement)) {
|
|
9978
|
+
return {
|
|
9979
|
+
type: WorkspaceElementChangeType.UPDATE,
|
|
9980
|
+
uuid: primaryElement.uuid,
|
|
9981
|
+
};
|
|
9982
|
+
}
|
|
9983
|
+
return undefined;
|
|
9984
|
+
}
|
|
9985
|
+
|
|
9873
9986
|
const WorkspaceElementSpecs = {
|
|
9874
9987
|
[WorkspaceElementType.Customer]: {
|
|
9875
9988
|
type: WorkspaceElementType.Customer,
|
|
@@ -9882,6 +9995,7 @@ const WorkspaceElementSpecs = {
|
|
|
9882
9995
|
apiPath: 'integrations',
|
|
9883
9996
|
name: 'Integration',
|
|
9884
9997
|
namePlural: 'Integrations',
|
|
9998
|
+
exportPropertiesSchema: IntegrationExportProperties,
|
|
9885
9999
|
},
|
|
9886
10000
|
[WorkspaceElementType.Connector]: {
|
|
9887
10001
|
type: WorkspaceElementType.Connector,
|
|
@@ -9901,6 +10015,7 @@ const WorkspaceElementSpecs = {
|
|
|
9901
10015
|
name: 'Package',
|
|
9902
10016
|
namePlural: 'Packages',
|
|
9903
10017
|
editablePropertiesSchema: PackageEditableProperties,
|
|
10018
|
+
exportPropertiesSchema: PackageExportProperties,
|
|
9904
10019
|
apiResponseSchema: PackageApiResponse,
|
|
9905
10020
|
findQuerySchema: FindPackagesQuery,
|
|
9906
10021
|
isMembraneInterface: true,
|
|
@@ -9919,6 +10034,7 @@ const WorkspaceElementSpecs = {
|
|
|
9919
10034
|
name: 'Action',
|
|
9920
10035
|
namePlural: 'Actions',
|
|
9921
10036
|
editablePropertiesSchema: ActionEditableProperties,
|
|
10037
|
+
exportPropertiesSchema: ActionExportProperties,
|
|
9922
10038
|
apiResponseSchema: ActionApiResponse,
|
|
9923
10039
|
findQuerySchema: FindActionsQuery,
|
|
9924
10040
|
isMembraneInterface: true,
|
|
@@ -9937,6 +10053,7 @@ const WorkspaceElementSpecs = {
|
|
|
9937
10053
|
namePlural: 'Flows',
|
|
9938
10054
|
parentFieldKey: 'universalFlowId',
|
|
9939
10055
|
editablePropertiesSchema: FlowEditableProperties,
|
|
10056
|
+
exportPropertiesSchema: FlowExportProperties,
|
|
9940
10057
|
apiResponseSchema: FlowApiResponse,
|
|
9941
10058
|
findQuerySchema: FindFlowsQuery,
|
|
9942
10059
|
isMembraneInterface: true,
|
|
@@ -9966,6 +10083,7 @@ const WorkspaceElementSpecs = {
|
|
|
9966
10083
|
namePlural: 'Field Mappings',
|
|
9967
10084
|
parentFieldKey: 'universalFieldMappingId',
|
|
9968
10085
|
editablePropertiesSchema: FieldMappingEditableProperties,
|
|
10086
|
+
exportPropertiesSchema: FieldMappingExportProperties,
|
|
9969
10087
|
apiResponseSchema: FieldMappingApiResponse,
|
|
9970
10088
|
findQuerySchema: FindFieldMappingsQuery,
|
|
9971
10089
|
isMembraneInterface: true,
|
|
@@ -9980,12 +10098,6 @@ const WorkspaceElementSpecs = {
|
|
|
9980
10098
|
universalParentFieldKey: 'universalFieldMappingId',
|
|
9981
10099
|
isMembraneInterface: true,
|
|
9982
10100
|
},
|
|
9983
|
-
[WorkspaceElementType.DataCollection]: {
|
|
9984
|
-
type: WorkspaceElementType.DataCollection,
|
|
9985
|
-
apiPath: 'data-collections',
|
|
9986
|
-
name: 'Data Collection',
|
|
9987
|
-
namePlural: 'Data Collections',
|
|
9988
|
-
},
|
|
9989
10101
|
[WorkspaceElementType.DataSource]: {
|
|
9990
10102
|
type: WorkspaceElementType.DataSource,
|
|
9991
10103
|
apiPath: 'data-sources',
|
|
@@ -9993,6 +10105,7 @@ const WorkspaceElementSpecs = {
|
|
|
9993
10105
|
namePlural: 'Data Sources',
|
|
9994
10106
|
parentFieldKey: 'universalDataSourceId',
|
|
9995
10107
|
editablePropertiesSchema: DataSourceEditableProperties,
|
|
10108
|
+
exportPropertiesSchema: DataSourceExportProperties,
|
|
9996
10109
|
apiResponseSchema: DataSourceApiResponse,
|
|
9997
10110
|
findQuerySchema: FindDataSourcesQuery,
|
|
9998
10111
|
isMembraneInterface: true,
|
|
@@ -10085,6 +10198,44 @@ const WorkspaceElementSpecs = {
|
|
|
10085
10198
|
},
|
|
10086
10199
|
};
|
|
10087
10200
|
|
|
10201
|
+
const MEMBRANE_ELEMENT_CONFIG_FILE_NAME = 'spec.yaml';
|
|
10202
|
+
function getMembraneElementPath(elementType, elementKey, integrationKey) {
|
|
10203
|
+
const elementTypePath = WorkspaceElementSpecs[elementType].apiPath;
|
|
10204
|
+
if (!integrationKey) {
|
|
10205
|
+
return `${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10206
|
+
}
|
|
10207
|
+
const integrationTypePath = WorkspaceElementSpecs[WorkspaceElementType.Integration].apiPath;
|
|
10208
|
+
return `${integrationTypePath}/${integrationKey}/${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10209
|
+
}
|
|
10210
|
+
function parseMembraneElementPath(relativePath) {
|
|
10211
|
+
const typeByApiPath = new Map();
|
|
10212
|
+
for (const spec of Object.values(WorkspaceElementSpecs)) {
|
|
10213
|
+
typeByApiPath.set(spec.apiPath, spec.type);
|
|
10214
|
+
}
|
|
10215
|
+
const elementTypes = Object.values(WorkspaceElementSpecs)
|
|
10216
|
+
.map((spec) => spec.apiPath)
|
|
10217
|
+
.join('|');
|
|
10218
|
+
const universalPattern = new RegExp(`^(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10219
|
+
const universalMatch = relativePath.match(universalPattern);
|
|
10220
|
+
if (universalMatch === null || universalMatch === void 0 ? void 0 : universalMatch.groups) {
|
|
10221
|
+
const { elementType: elementTypePath, elementKey } = universalMatch.groups;
|
|
10222
|
+
const elementType = typeByApiPath.get(elementTypePath);
|
|
10223
|
+
if (elementType) {
|
|
10224
|
+
return { type: elementType, key: elementKey };
|
|
10225
|
+
}
|
|
10226
|
+
}
|
|
10227
|
+
const integrationLevelPattern = new RegExp(`^integrations/(?<integrationKey>[^/]+)/(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10228
|
+
const integrationLevelMatch = relativePath.match(integrationLevelPattern);
|
|
10229
|
+
if (integrationLevelMatch === null || integrationLevelMatch === void 0 ? void 0 : integrationLevelMatch.groups) {
|
|
10230
|
+
const { integrationKey, elementType: elementTypePath, elementKey } = integrationLevelMatch.groups;
|
|
10231
|
+
const elementType = typeByApiPath.get(elementTypePath);
|
|
10232
|
+
if (elementType) {
|
|
10233
|
+
return { type: elementType, key: elementKey, integrationKey };
|
|
10234
|
+
}
|
|
10235
|
+
}
|
|
10236
|
+
return undefined;
|
|
10237
|
+
}
|
|
10238
|
+
|
|
10088
10239
|
class SelfAccessor {
|
|
10089
10240
|
constructor(client) {
|
|
10090
10241
|
this.client = client;
|
|
@@ -10097,136 +10248,6 @@ class SelfAccessor {
|
|
|
10097
10248
|
}
|
|
10098
10249
|
}
|
|
10099
10250
|
|
|
10100
|
-
var ConnectorCopilotSuggestionType;
|
|
10101
|
-
(function (ConnectorCopilotSuggestionType) {
|
|
10102
|
-
ConnectorCopilotSuggestionType["AuthType"] = "auth-type";
|
|
10103
|
-
ConnectorCopilotSuggestionType["AuthImplementation"] = "auth-implementation";
|
|
10104
|
-
ConnectorCopilotSuggestionType["AuthConnectionParameters"] = "auth-connection-parameters";
|
|
10105
|
-
ConnectorCopilotSuggestionType["AuthApiClient"] = "auth-api-client";
|
|
10106
|
-
ConnectorCopilotSuggestionType["DataCollection"] = "data-collection";
|
|
10107
|
-
ConnectorCopilotSuggestionType["DataCollectionOperationApiRequests"] = "data-location-operation-api-requests";
|
|
10108
|
-
ConnectorCopilotSuggestionType["DataCollectionOperationApiRequestMapping"] = "data-location-operation-api-request-mapping";
|
|
10109
|
-
ConnectorCopilotSuggestionType["DataCollectionFieldsSchema"] = "data-location-fields-schema";
|
|
10110
|
-
ConnectorCopilotSuggestionType["UdmList"] = "udm-list";
|
|
10111
|
-
ConnectorCopilotSuggestionType["UdmFieldsMapping"] = "udm-fields-mapping";
|
|
10112
|
-
ConnectorCopilotSuggestionType["UdmFieldsMappingToCollection"] = "udm-fields-mapping-to-collection";
|
|
10113
|
-
ConnectorCopilotSuggestionType["UdmFieldsMappingFromCollection"] = "udm-fields-mapping-from-collection";
|
|
10114
|
-
})(ConnectorCopilotSuggestionType || (ConnectorCopilotSuggestionType = {}));
|
|
10115
|
-
var ConnectorCopilotFileChunkTopicKey;
|
|
10116
|
-
(function (ConnectorCopilotFileChunkTopicKey) {
|
|
10117
|
-
ConnectorCopilotFileChunkTopicKey["AuthType"] = "auth-type";
|
|
10118
|
-
ConnectorCopilotFileChunkTopicKey["AuthImplementation"] = "auth-implementation";
|
|
10119
|
-
ConnectorCopilotFileChunkTopicKey["AuthConnectionParameters"] = "auth-connection-parameters";
|
|
10120
|
-
ConnectorCopilotFileChunkTopicKey["AuthApiClient"] = "auth-api-client";
|
|
10121
|
-
})(ConnectorCopilotFileChunkTopicKey || (ConnectorCopilotFileChunkTopicKey = {}));
|
|
10122
|
-
var CopilotTaskType;
|
|
10123
|
-
(function (CopilotTaskType) {
|
|
10124
|
-
CopilotTaskType["GenerateAuthType"] = "generate-auth-type";
|
|
10125
|
-
CopilotTaskType["GenerateOAuthConfiguration"] = "generate-oauth-configuration";
|
|
10126
|
-
CopilotTaskType["GenerateAuthConnectionParameters"] = "generate-auth-connection-parameters";
|
|
10127
|
-
CopilotTaskType["GenerateAuthApiClient"] = "generate-auth-api-client";
|
|
10128
|
-
CopilotTaskType["GenerateDataCollections"] = "generate-data-collections";
|
|
10129
|
-
CopilotTaskType["GenerateDataCollectionRecordFromFields"] = "generate-data-collection-record-from-fields";
|
|
10130
|
-
CopilotTaskType["GenerateDataCollectionOperationApiRequests"] = "generate-data-collection-operation-api-requests";
|
|
10131
|
-
CopilotTaskType["GenerateDataCollectionOperationApiRequestMapping"] = "generate-data-collection-operation-api-request-mapping";
|
|
10132
|
-
CopilotTaskType["GenerateDataCollectionFieldsSchema"] = "generate-data-collection-fields-schema";
|
|
10133
|
-
CopilotTaskType["GenerateUdmList"] = "generate-udm-list";
|
|
10134
|
-
CopilotTaskType["GenerateUdmFieldsMapping"] = "generate-udm-fields-mapping";
|
|
10135
|
-
})(CopilotTaskType || (CopilotTaskType = {}));
|
|
10136
|
-
var CopilotTaskStatus;
|
|
10137
|
-
(function (CopilotTaskStatus) {
|
|
10138
|
-
CopilotTaskStatus["Pending"] = "pending";
|
|
10139
|
-
CopilotTaskStatus["Running"] = "running";
|
|
10140
|
-
CopilotTaskStatus["Completed"] = "completed";
|
|
10141
|
-
CopilotTaskStatus["Failed"] = "failed";
|
|
10142
|
-
})(CopilotTaskStatus || (CopilotTaskStatus = {}));
|
|
10143
|
-
var CopilotActionType;
|
|
10144
|
-
(function (CopilotActionType) {
|
|
10145
|
-
CopilotActionType["PatchConnectorFile"] = "patch";
|
|
10146
|
-
CopilotActionType["PutConnectorFile"] = "put";
|
|
10147
|
-
CopilotActionType["PatchConnectorDataSchema"] = "patch-data-schema";
|
|
10148
|
-
CopilotActionType["PatchConnectorFieldMapping"] = "patch-field-mapping";
|
|
10149
|
-
CopilotActionType["SetConnectorAuthType"] = "set-connector-auth-type";
|
|
10150
|
-
})(CopilotActionType || (CopilotActionType = {}));
|
|
10151
|
-
var CopilotActionStatus;
|
|
10152
|
-
(function (CopilotActionStatus) {
|
|
10153
|
-
CopilotActionStatus["Suggested"] = "suggested";
|
|
10154
|
-
CopilotActionStatus["Executed"] = "executed";
|
|
10155
|
-
CopilotActionStatus["Rejected"] = "rejected";
|
|
10156
|
-
})(CopilotActionStatus || (CopilotActionStatus = {}));
|
|
10157
|
-
var CopilotActivityType;
|
|
10158
|
-
(function (CopilotActivityType) {
|
|
10159
|
-
CopilotActivityType["Task"] = "task";
|
|
10160
|
-
})(CopilotActivityType || (CopilotActivityType = {}));
|
|
10161
|
-
const CopilotActivityScope = {
|
|
10162
|
-
connector: (connectorId) => new CopilotActivityScopeConnector(connectorId),
|
|
10163
|
-
};
|
|
10164
|
-
class CopilotActivityScopeConnector {
|
|
10165
|
-
constructor(connectorId) {
|
|
10166
|
-
this.connectorId = connectorId;
|
|
10167
|
-
this.auth = () => new CopilotActivityScopeConnectorAuth(this);
|
|
10168
|
-
this.data = (key) => new CopilotActivityScopeConnectorData(this, key);
|
|
10169
|
-
this.udm = (key) => new CopilotActivityScopeConnectorUdm(this, key);
|
|
10170
|
-
}
|
|
10171
|
-
toString() {
|
|
10172
|
-
return `connectors/${this.connectorId}`;
|
|
10173
|
-
}
|
|
10174
|
-
}
|
|
10175
|
-
class CopilotActivityScopeConnectorAuth {
|
|
10176
|
-
constructor(connectorScope) {
|
|
10177
|
-
this.connectorScope = connectorScope;
|
|
10178
|
-
}
|
|
10179
|
-
toString() {
|
|
10180
|
-
return `${this.connectorScope.toString()}/auth`;
|
|
10181
|
-
}
|
|
10182
|
-
}
|
|
10183
|
-
class CopilotActivityScopeConnectorData {
|
|
10184
|
-
constructor(connectorScope, dataCollectionKey) {
|
|
10185
|
-
this.connectorScope = connectorScope;
|
|
10186
|
-
this.dataCollectionKey = dataCollectionKey;
|
|
10187
|
-
this.method = (key) => new CopilotActivityScopeConnectorDataMethod(this, key);
|
|
10188
|
-
}
|
|
10189
|
-
toString() {
|
|
10190
|
-
let scope = `${this.connectorScope.toString()}/data`;
|
|
10191
|
-
if (this.dataCollectionKey) {
|
|
10192
|
-
scope += `/${this.dataCollectionKey}`;
|
|
10193
|
-
}
|
|
10194
|
-
return scope;
|
|
10195
|
-
}
|
|
10196
|
-
}
|
|
10197
|
-
class CopilotActivityScopeConnectorDataMethod {
|
|
10198
|
-
constructor(collectionScope, methodKey) {
|
|
10199
|
-
this.collectionScope = collectionScope;
|
|
10200
|
-
this.methodKey = methodKey;
|
|
10201
|
-
}
|
|
10202
|
-
toString() {
|
|
10203
|
-
return `${this.collectionScope.toString()}/methods/${this.methodKey}`;
|
|
10204
|
-
}
|
|
10205
|
-
}
|
|
10206
|
-
class CopilotActivityScopeConnectorUdm {
|
|
10207
|
-
constructor(connectorScope, key) {
|
|
10208
|
-
this.connectorScope = connectorScope;
|
|
10209
|
-
this.key = key;
|
|
10210
|
-
this.collection = (key) => new CopilotActivityScopeConnectorUdmCollection(this, key);
|
|
10211
|
-
}
|
|
10212
|
-
toString() {
|
|
10213
|
-
let scope = `${this.connectorScope.toString()}/udm`;
|
|
10214
|
-
if (this.key) {
|
|
10215
|
-
scope += `/${this.key}`;
|
|
10216
|
-
}
|
|
10217
|
-
return scope;
|
|
10218
|
-
}
|
|
10219
|
-
}
|
|
10220
|
-
class CopilotActivityScopeConnectorUdmCollection {
|
|
10221
|
-
constructor(udmScope, key) {
|
|
10222
|
-
this.udmScope = udmScope;
|
|
10223
|
-
this.key = key;
|
|
10224
|
-
}
|
|
10225
|
-
toString() {
|
|
10226
|
-
return `${this.udmScope.toString()}/collection/${this.key}`;
|
|
10227
|
-
}
|
|
10228
|
-
}
|
|
10229
|
-
|
|
10230
10251
|
var LogRecordType;
|
|
10231
10252
|
(function (LogRecordType) {
|
|
10232
10253
|
LogRecordType["MSG"] = "message";
|
|
@@ -10315,6 +10336,7 @@ const ERROR_CLASS_BY_TYPE = {
|
|
|
10315
10336
|
[ErrorType.ACTION_INSTANCE_SETUP]: ActionInstanceSetupError,
|
|
10316
10337
|
[ErrorType.UNIT_RUN]: UnitRunError,
|
|
10317
10338
|
[ErrorType.CUSTOM_CODE]: CustomCodeError,
|
|
10339
|
+
[ErrorType.INSUFFICIENT_CREDIT]: InsufficientCreditsError,
|
|
10318
10340
|
};
|
|
10319
10341
|
function getErrorFromData(data) {
|
|
10320
10342
|
if (typeof data === 'object' &&
|
|
@@ -10500,6 +10522,7 @@ var UsageType;
|
|
|
10500
10522
|
UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
|
|
10501
10523
|
UsageType["FILES_UPLOAD_SIZE"] = "files-upload-size";
|
|
10502
10524
|
UsageType["CUSTOM_CODE_RUNTIME_DURATION"] = "custom-code-runtime-duration";
|
|
10525
|
+
UsageType["MEMBRANE_AGENT"] = "membrane-agent";
|
|
10503
10526
|
})(UsageType || (UsageType = {}));
|
|
10504
10527
|
|
|
10505
10528
|
function getNodeInputSchema(flow, nodeKey) {
|
|
@@ -10642,7 +10665,6 @@ const PARALLEL_EXECUTION_LIMITS = [
|
|
|
10642
10665
|
'parallelBackgroundJobs',
|
|
10643
10666
|
'parallelEventLogs',
|
|
10644
10667
|
'parallelEventLogsPerConnection',
|
|
10645
|
-
'parallelWriteDatabaseRequests',
|
|
10646
10668
|
'parallelPathfinderAgentSessions',
|
|
10647
10669
|
];
|
|
10648
10670
|
const RATE_LIMITS = [
|
|
@@ -10653,7 +10675,6 @@ const RATE_LIMITS = [
|
|
|
10653
10675
|
'webhookRequestsPerHour',
|
|
10654
10676
|
'workspaceElementCreationsPerHour',
|
|
10655
10677
|
'workspaceElementCreationsPerSecond',
|
|
10656
|
-
'createDatabaseRequestsPerSecond',
|
|
10657
10678
|
];
|
|
10658
10679
|
const WORKSPACE_SIZE_LIMITS = [
|
|
10659
10680
|
'totalNumberOfCustomers',
|
|
@@ -10669,17 +10690,138 @@ const EDITABLE_LIMITS = [
|
|
|
10669
10690
|
'webhookRequestsPerCustomerPerSecond',
|
|
10670
10691
|
'webhookRequestsPerCustomerPerHour',
|
|
10671
10692
|
'parallelFlowRunsPerConnection',
|
|
10672
|
-
'parallelWriteDatabaseRequestsPerCustomer',
|
|
10673
|
-
'createDatabaseRequestsPerCustomerPerSecond',
|
|
10674
|
-
'updateDatabaseRequestsPerCustomerPerSecond',
|
|
10675
10693
|
];
|
|
10676
10694
|
|
|
10695
|
+
const OrgWorkspaceSchema = z.object({
|
|
10696
|
+
id: z.string(),
|
|
10697
|
+
name: z.string(),
|
|
10698
|
+
orgId: z.string(),
|
|
10699
|
+
apiBaseUri: z.string().optional(),
|
|
10700
|
+
key: z.string(),
|
|
10701
|
+
secret: z.string(),
|
|
10702
|
+
createdAt: z.coerce.date(),
|
|
10703
|
+
updatedAt: z.coerce.date(),
|
|
10704
|
+
engineAccessToken: z.string().optional(),
|
|
10705
|
+
onboardingStep: z.nativeEnum(WorkspaceOnboardingStep).optional(),
|
|
10706
|
+
trialEndDate: z.string().optional(),
|
|
10707
|
+
featureFlags: z.array(z.string()).optional(),
|
|
10708
|
+
logoUri: z.string().optional(),
|
|
10709
|
+
});
|
|
10710
|
+
const OrgWorkspaceUser = z.object({
|
|
10711
|
+
id: z.string(),
|
|
10712
|
+
workspaceId: z.string(),
|
|
10713
|
+
testCustomerId: z.string(),
|
|
10714
|
+
userId: z.string(),
|
|
10715
|
+
role: z.string(),
|
|
10716
|
+
});
|
|
10717
|
+
|
|
10718
|
+
const WorkspaceLimit = z.object({
|
|
10719
|
+
value: z.number().optional(),
|
|
10720
|
+
defaultValue: z.number().optional(),
|
|
10721
|
+
unit: z.nativeEnum(LimitUnits),
|
|
10722
|
+
});
|
|
10723
|
+
const WorkspaceLimitsSchema = z.object({
|
|
10724
|
+
parallelEventPulls: WorkspaceLimit.optional(),
|
|
10725
|
+
parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10726
|
+
parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10727
|
+
parallelFlowRuns: WorkspaceLimit.optional(),
|
|
10728
|
+
parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
|
|
10729
|
+
parallelApiRequests: WorkspaceLimit.optional(),
|
|
10730
|
+
parallelSseRequests: WorkspaceLimit.optional(),
|
|
10731
|
+
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10732
|
+
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10733
|
+
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10734
|
+
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10735
|
+
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10736
|
+
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10737
|
+
apiRequestsPerHour: WorkspaceLimit.optional(),
|
|
10738
|
+
webhookRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10739
|
+
webhookRequestsPerHour: WorkspaceLimit.optional(),
|
|
10740
|
+
workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
|
|
10741
|
+
workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
|
|
10742
|
+
createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10743
|
+
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10744
|
+
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10745
|
+
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10746
|
+
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10747
|
+
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10748
|
+
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10749
|
+
apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10750
|
+
webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10751
|
+
webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10752
|
+
externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
|
|
10753
|
+
createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10754
|
+
updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10755
|
+
parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10756
|
+
});
|
|
10757
|
+
const EngineWorkspaceSettingsSchema = z.object({
|
|
10758
|
+
enableApiLogs: z.boolean().optional(),
|
|
10759
|
+
enableWebhookLogs: z.boolean().optional(),
|
|
10760
|
+
enableActionRunLogs: z.boolean().optional(),
|
|
10761
|
+
disableSecretKeyAuth: z.boolean().optional(),
|
|
10762
|
+
});
|
|
10763
|
+
const AppPublicKey = z.object({
|
|
10764
|
+
name: z.string(),
|
|
10765
|
+
publicKey: z.string(),
|
|
10766
|
+
});
|
|
10767
|
+
const AppSchema = z.object({
|
|
10768
|
+
id: z.string(),
|
|
10769
|
+
key: z.string(),
|
|
10770
|
+
logoUri: z.string().optional(),
|
|
10771
|
+
userFieldsSchema: z.any().optional(),
|
|
10772
|
+
apiBaseUri: z.string().optional(),
|
|
10773
|
+
webhookUri: z.string().optional(),
|
|
10774
|
+
publicKey: z.string().optional(),
|
|
10775
|
+
publicKeys: z.array(AppPublicKey).optional(),
|
|
10776
|
+
enabledWebhookEvents: z.array(z.string()).optional(),
|
|
10777
|
+
auth: z.any().optional(),
|
|
10778
|
+
credentialsSchema: z.any().optional(),
|
|
10779
|
+
apiClient: z.any().optional(),
|
|
10780
|
+
apiRequestHeaders: z.record(z.string(), z.any()).optional(),
|
|
10781
|
+
apiRequestQuery: z.record(z.string(), z.any()).optional(),
|
|
10782
|
+
isOnPrem: z.boolean().optional(),
|
|
10783
|
+
connectorBaseUri: z.string().optional(),
|
|
10784
|
+
connectorRevision: z.string().optional(),
|
|
10785
|
+
featureFlags: z.array(z.string()).optional(),
|
|
10786
|
+
limits: WorkspaceLimitsSchema.optional(),
|
|
10787
|
+
settings: EngineWorkspaceSettingsSchema.optional(),
|
|
10788
|
+
type: z.nativeEnum(WorkspaceType).optional(),
|
|
10789
|
+
jwksUri: z.string().nullable().optional(),
|
|
10790
|
+
isTrial: z.boolean().optional(),
|
|
10791
|
+
isThrottled: z.boolean().optional(),
|
|
10792
|
+
isDisabled: z.boolean().optional(),
|
|
10793
|
+
isBackgroundJobsDisabled: z.boolean().optional(),
|
|
10794
|
+
});
|
|
10795
|
+
|
|
10796
|
+
const PlatformUserSchema = z.object({
|
|
10797
|
+
id: z.string(),
|
|
10798
|
+
email: z.string(),
|
|
10799
|
+
name: z.string(),
|
|
10800
|
+
trialRequested: z.boolean(),
|
|
10801
|
+
introVideoStatus: z.string().optional(),
|
|
10802
|
+
isEligible: z.boolean().optional(),
|
|
10803
|
+
emailVerified: z.boolean().optional(),
|
|
10804
|
+
});
|
|
10805
|
+
const FullPlatformUser = z.object({
|
|
10806
|
+
id: z.string(),
|
|
10807
|
+
auth0Id: z.string().optional(),
|
|
10808
|
+
email: z.string(),
|
|
10809
|
+
name: z.string(),
|
|
10810
|
+
defaultAccountId: z.string().optional(),
|
|
10811
|
+
defaultWorkspaceId: z.string().optional(),
|
|
10812
|
+
isAdmin: z.boolean().optional(),
|
|
10813
|
+
trialRequested: z.boolean(),
|
|
10814
|
+
pat: z.string().optional(),
|
|
10815
|
+
introVideoStatus: z.string().optional(),
|
|
10816
|
+
isEligible: z.boolean().optional(),
|
|
10817
|
+
emailVerified: z.boolean().optional(),
|
|
10818
|
+
});
|
|
10819
|
+
|
|
10677
10820
|
var OrgLimitsType;
|
|
10678
10821
|
(function (OrgLimitsType) {
|
|
10679
10822
|
OrgLimitsType["NUMBER_OF_WORKSPACES"] = "numberOfWorkspaces";
|
|
10680
10823
|
OrgLimitsType["TODAY_USAGE"] = "todayUsage";
|
|
10681
10824
|
OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
|
|
10682
|
-
OrgLimitsType["MEMBRANE_AGENT_MONTHLY_USAGE"] = "membraneAgentMonthlyUsage";
|
|
10683
10825
|
OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
|
|
10684
10826
|
})(OrgLimitsType || (OrgLimitsType = {}));
|
|
10685
10827
|
var OrgUserRole;
|
|
@@ -10692,6 +10834,55 @@ var OrgUserStatus;
|
|
|
10692
10834
|
OrgUserStatus["Invited"] = "invited";
|
|
10693
10835
|
OrgUserStatus["Active"] = "active";
|
|
10694
10836
|
})(OrgUserStatus || (OrgUserStatus = {}));
|
|
10837
|
+
const OrgLimits = z
|
|
10838
|
+
.object({
|
|
10839
|
+
numberOfWorkspaces: z.number().optional(),
|
|
10840
|
+
todayUsage: z.number().optional(),
|
|
10841
|
+
lastThirtyDayUsage: z.number().optional(),
|
|
10842
|
+
membraneAgentLastThirtyDaysUsage: z.number().optional(),
|
|
10843
|
+
membraneExpertCreditsCapPerMonth: z.number().nullable().optional(),
|
|
10844
|
+
})
|
|
10845
|
+
.optional();
|
|
10846
|
+
const MembraneAgentKey = z
|
|
10847
|
+
.object({
|
|
10848
|
+
key: z.string().optional(),
|
|
10849
|
+
expiresAt: z.string().optional(),
|
|
10850
|
+
})
|
|
10851
|
+
.optional();
|
|
10852
|
+
const OrgSchema = z.object({
|
|
10853
|
+
id: z.string(),
|
|
10854
|
+
key: z.string(),
|
|
10855
|
+
name: z.string(),
|
|
10856
|
+
createdAt: z.coerce.date(),
|
|
10857
|
+
updatedAt: z.coerce.date(),
|
|
10858
|
+
trialEndDate: z.string().optional(),
|
|
10859
|
+
lastTrialExtensionDate: z.string().optional(),
|
|
10860
|
+
limits: OrgLimits,
|
|
10861
|
+
thirtyDayTotalCredits: z.number().optional(),
|
|
10862
|
+
lastThirtyDayUsagePercent: z.number().optional(),
|
|
10863
|
+
todayUsagePercent: z.number().optional(),
|
|
10864
|
+
domains: z.array(z.string()).optional(),
|
|
10865
|
+
featureFlags: z.array(z.string()).optional(),
|
|
10866
|
+
freeAiMonthlyCredits: z.number().optional(),
|
|
10867
|
+
paidAiCredits: z.number().optional(),
|
|
10868
|
+
stripeCustomerId: z.string().optional(),
|
|
10869
|
+
});
|
|
10870
|
+
const AccountResponse = z.object({
|
|
10871
|
+
user: FullPlatformUser.optional(),
|
|
10872
|
+
workspace: OrgWorkspaceSchema.optional(),
|
|
10873
|
+
workspaces: z.array(OrgWorkspaceSchema).optional(),
|
|
10874
|
+
workspaceUser: OrgWorkspaceUser.extend({
|
|
10875
|
+
testCustomerId: z.string(),
|
|
10876
|
+
}).optional(),
|
|
10877
|
+
engineTestUser: BaseCustomer.optional(),
|
|
10878
|
+
testCustomer: BaseCustomer.optional(),
|
|
10879
|
+
engineApp: AppSchema.optional(),
|
|
10880
|
+
superAdminToken: z.string().optional().nullable(),
|
|
10881
|
+
orgs: z.array(OrgSchema).optional(),
|
|
10882
|
+
permissions: z.array(z.string()).optional(),
|
|
10883
|
+
message: z.string().optional(),
|
|
10884
|
+
error: z.string().optional(),
|
|
10885
|
+
});
|
|
10695
10886
|
|
|
10696
10887
|
var WebhookTypeEnum;
|
|
10697
10888
|
(function (WebhookTypeEnum) {
|
|
@@ -10718,6 +10909,7 @@ var AlertType;
|
|
|
10718
10909
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
10719
10910
|
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
10720
10911
|
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
10912
|
+
AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
|
|
10721
10913
|
})(AlertType || (AlertType = {}));
|
|
10722
10914
|
|
|
10723
10915
|
class ElementAccessor {
|
|
@@ -10851,6 +11043,55 @@ class ElementInstanceAccessor {
|
|
|
10851
11043
|
}
|
|
10852
11044
|
}
|
|
10853
11045
|
|
|
11046
|
+
class ConnectionLevelElementAccessor {
|
|
11047
|
+
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11048
|
+
this.client = client;
|
|
11049
|
+
this.connectionSelector = connectionSelector;
|
|
11050
|
+
this.selector = selector;
|
|
11051
|
+
this.elementKey = elementKey;
|
|
11052
|
+
this.query = query;
|
|
11053
|
+
this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
|
|
11054
|
+
}
|
|
11055
|
+
uri(path = '', query = {}) {
|
|
11056
|
+
return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
|
|
11057
|
+
}
|
|
11058
|
+
getUniqueIdentifier() {
|
|
11059
|
+
return this.endpoint;
|
|
11060
|
+
}
|
|
11061
|
+
async get(query = {}) {
|
|
11062
|
+
return this.client.get(this.uri('', query));
|
|
11063
|
+
}
|
|
11064
|
+
async create() {
|
|
11065
|
+
return this.client.put(this.uri());
|
|
11066
|
+
}
|
|
11067
|
+
async patch(data) {
|
|
11068
|
+
return this.client.patch(this.uri(), data);
|
|
11069
|
+
}
|
|
11070
|
+
async put(data) {
|
|
11071
|
+
return this.client.put(this.uri(), data);
|
|
11072
|
+
}
|
|
11073
|
+
async archive() {
|
|
11074
|
+
return this.client.delete(this.uri());
|
|
11075
|
+
}
|
|
11076
|
+
async reset() {
|
|
11077
|
+
return this.client.post(this.uri('/reset'));
|
|
11078
|
+
}
|
|
11079
|
+
async setup() {
|
|
11080
|
+
return this.client.post(this.uri('/setup'));
|
|
11081
|
+
}
|
|
11082
|
+
}
|
|
11083
|
+
class ConnectionLevelElementsListAccessor {
|
|
11084
|
+
constructor(client, connectionSelector, elementKey) {
|
|
11085
|
+
this.client = client;
|
|
11086
|
+
this.connectionSelector = connectionSelector;
|
|
11087
|
+
this.elementKey = elementKey;
|
|
11088
|
+
}
|
|
11089
|
+
async list(query) {
|
|
11090
|
+
const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
|
|
11091
|
+
return this.client.get(endpoint);
|
|
11092
|
+
}
|
|
11093
|
+
}
|
|
11094
|
+
|
|
10854
11095
|
class IntegrationLevelElementAccessor {
|
|
10855
11096
|
constructor(client, integrationSelector, elementSelector, elementKey) {
|
|
10856
11097
|
this.client = client;
|
|
@@ -10909,6 +11150,15 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10909
11150
|
async reset() {
|
|
10910
11151
|
return await this.options.client.post(this.getPath('reset'));
|
|
10911
11152
|
}
|
|
11153
|
+
async run(input, options) {
|
|
11154
|
+
const queryParams = options
|
|
11155
|
+
? {
|
|
11156
|
+
integrationKey: options.integrationKey,
|
|
11157
|
+
connectionId: options.connectionId,
|
|
11158
|
+
}
|
|
11159
|
+
: {};
|
|
11160
|
+
return this.options.client.post(this.getPath('run'), { input }, { params: queryParams });
|
|
11161
|
+
}
|
|
10912
11162
|
}
|
|
10913
11163
|
class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor {
|
|
10914
11164
|
constructor(client, integrationSelector, actionSelector) {
|
|
@@ -10925,6 +11175,25 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
10925
11175
|
this.integrationSelector = integrationSelector;
|
|
10926
11176
|
}
|
|
10927
11177
|
}
|
|
11178
|
+
class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
11179
|
+
constructor(client, connectionSelector, actionSelector, query) {
|
|
11180
|
+
super(client, connectionSelector, actionSelector, 'actions', query);
|
|
11181
|
+
this.client = client;
|
|
11182
|
+
this.connectionSelector = connectionSelector;
|
|
11183
|
+
this.actionSelector = actionSelector;
|
|
11184
|
+
this.query = query;
|
|
11185
|
+
}
|
|
11186
|
+
async run(input) {
|
|
11187
|
+
return this.client.post(this.uri('/run'), input);
|
|
11188
|
+
}
|
|
11189
|
+
}
|
|
11190
|
+
class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
|
|
11191
|
+
constructor(client, connectionSelector) {
|
|
11192
|
+
super(client, connectionSelector, 'actions');
|
|
11193
|
+
this.client = client;
|
|
11194
|
+
this.connectionSelector = connectionSelector;
|
|
11195
|
+
}
|
|
11196
|
+
}
|
|
10928
11197
|
|
|
10929
11198
|
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10930
11199
|
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
@@ -11151,104 +11420,6 @@ function handleIframeUnmount(iframe) {
|
|
|
11151
11420
|
}
|
|
11152
11421
|
}
|
|
11153
11422
|
|
|
11154
|
-
class ConnectionLevelElementAccessor {
|
|
11155
|
-
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11156
|
-
this.client = client;
|
|
11157
|
-
this.connectionSelector = connectionSelector;
|
|
11158
|
-
this.selector = selector;
|
|
11159
|
-
this.elementKey = elementKey;
|
|
11160
|
-
this.query = query;
|
|
11161
|
-
this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
|
|
11162
|
-
}
|
|
11163
|
-
uri(path = '', query = {}) {
|
|
11164
|
-
return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
|
|
11165
|
-
}
|
|
11166
|
-
getUniqueIdentifier() {
|
|
11167
|
-
return this.endpoint;
|
|
11168
|
-
}
|
|
11169
|
-
async get(query = {}) {
|
|
11170
|
-
return this.client.get(this.uri('', query));
|
|
11171
|
-
}
|
|
11172
|
-
async create() {
|
|
11173
|
-
return this.client.put(this.uri());
|
|
11174
|
-
}
|
|
11175
|
-
async patch(data) {
|
|
11176
|
-
return this.client.patch(this.uri(), data);
|
|
11177
|
-
}
|
|
11178
|
-
async put(data) {
|
|
11179
|
-
return this.client.put(this.uri(), data);
|
|
11180
|
-
}
|
|
11181
|
-
async archive() {
|
|
11182
|
-
return this.client.delete(this.uri());
|
|
11183
|
-
}
|
|
11184
|
-
async reset() {
|
|
11185
|
-
return this.client.post(this.uri('/reset'));
|
|
11186
|
-
}
|
|
11187
|
-
async setup() {
|
|
11188
|
-
return this.client.post(this.uri('/setup'));
|
|
11189
|
-
}
|
|
11190
|
-
}
|
|
11191
|
-
class ConnectionLevelElementsListAccessor {
|
|
11192
|
-
constructor(client, connectionSelector, elementKey) {
|
|
11193
|
-
this.client = client;
|
|
11194
|
-
this.connectionSelector = connectionSelector;
|
|
11195
|
-
this.elementKey = elementKey;
|
|
11196
|
-
}
|
|
11197
|
-
async list(query) {
|
|
11198
|
-
const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
|
|
11199
|
-
return this.client.get(endpoint);
|
|
11200
|
-
}
|
|
11201
|
-
}
|
|
11202
|
-
|
|
11203
|
-
class ActionInstancesAccessor extends ElementInstanceListAccessor {
|
|
11204
|
-
constructor(client) {
|
|
11205
|
-
super(client, 'action-instances');
|
|
11206
|
-
}
|
|
11207
|
-
}
|
|
11208
|
-
class ActionInstanceAccessor extends ElementInstanceAccessor {
|
|
11209
|
-
constructor(client, selector) {
|
|
11210
|
-
super({
|
|
11211
|
-
client,
|
|
11212
|
-
instancePath: 'action-instance',
|
|
11213
|
-
selector,
|
|
11214
|
-
});
|
|
11215
|
-
this.client = client;
|
|
11216
|
-
}
|
|
11217
|
-
async setup() {
|
|
11218
|
-
await this.client.post(this.getPath('setup'));
|
|
11219
|
-
}
|
|
11220
|
-
async reset() {
|
|
11221
|
-
await this.client.post(this.getPath('reset'));
|
|
11222
|
-
}
|
|
11223
|
-
async run(input) {
|
|
11224
|
-
return this.client.post(this.getPath('run'), input);
|
|
11225
|
-
}
|
|
11226
|
-
async open({ onClose = () => { } } = {}) {
|
|
11227
|
-
const id = await this.getId();
|
|
11228
|
-
const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
|
|
11229
|
-
return openIframe(uri, { onClose });
|
|
11230
|
-
}
|
|
11231
|
-
}
|
|
11232
|
-
class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
11233
|
-
constructor(client, connectionSelector, actionSelector, query) {
|
|
11234
|
-
super(client, connectionSelector, actionSelector, 'actions', query);
|
|
11235
|
-
this.client = client;
|
|
11236
|
-
this.connectionSelector = connectionSelector;
|
|
11237
|
-
this.actionSelector = actionSelector;
|
|
11238
|
-
this.query = query;
|
|
11239
|
-
}
|
|
11240
|
-
async run(input) {
|
|
11241
|
-
return this.client.post(this.uri('/run'), input);
|
|
11242
|
-
}
|
|
11243
|
-
}
|
|
11244
|
-
class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
|
|
11245
|
-
constructor(client, connectionSelector) {
|
|
11246
|
-
super(client, connectionSelector, 'actions');
|
|
11247
|
-
this.client = client;
|
|
11248
|
-
this.connectionSelector = connectionSelector;
|
|
11249
|
-
}
|
|
11250
|
-
}
|
|
11251
|
-
|
|
11252
11423
|
class DataSourcesAccessor extends ElementListAccessor {
|
|
11253
11424
|
constructor(client) {
|
|
11254
11425
|
super(client, 'data-sources');
|
|
@@ -12218,6 +12389,36 @@ class UserAccessor extends CustomerAccessor {
|
|
|
12218
12389
|
}
|
|
12219
12390
|
}
|
|
12220
12391
|
|
|
12392
|
+
class ActionInstancesAccessor extends ElementInstanceListAccessor {
|
|
12393
|
+
constructor(client) {
|
|
12394
|
+
super(client, 'action-instances');
|
|
12395
|
+
}
|
|
12396
|
+
}
|
|
12397
|
+
class ActionInstanceAccessor extends ElementInstanceAccessor {
|
|
12398
|
+
constructor(client, selector) {
|
|
12399
|
+
super({
|
|
12400
|
+
client,
|
|
12401
|
+
instancePath: 'action-instance',
|
|
12402
|
+
selector,
|
|
12403
|
+
});
|
|
12404
|
+
this.client = client;
|
|
12405
|
+
}
|
|
12406
|
+
async setup() {
|
|
12407
|
+
await this.client.post(this.getPath('setup'));
|
|
12408
|
+
}
|
|
12409
|
+
async reset() {
|
|
12410
|
+
await this.client.post(this.getPath('reset'));
|
|
12411
|
+
}
|
|
12412
|
+
async run(input) {
|
|
12413
|
+
return this.client.post(this.getPath('run'), input);
|
|
12414
|
+
}
|
|
12415
|
+
async open({ onClose = () => { } } = {}) {
|
|
12416
|
+
const id = await this.getId();
|
|
12417
|
+
const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
|
|
12418
|
+
return openIframe(uri, { onClose });
|
|
12419
|
+
}
|
|
12420
|
+
}
|
|
12421
|
+
|
|
12221
12422
|
class DataLinkTablesAccessor extends ElementListAccessor {
|
|
12222
12423
|
constructor(client) {
|
|
12223
12424
|
super(client, 'data-link-tables');
|
|
@@ -12446,15 +12647,39 @@ const AgentSession = z.object({
|
|
|
12446
12647
|
storedMessagesUri: z.string().url().optional(),
|
|
12447
12648
|
sessionFilesZipUri: z.string().url().optional(),
|
|
12448
12649
|
logs: z.array(z.any()).optional(),
|
|
12650
|
+
usage: z.number().optional(),
|
|
12449
12651
|
});
|
|
12450
12652
|
const CreateAgentSession = z.object({
|
|
12451
12653
|
workspaceElementType: z.enum(WorkspaceElementType),
|
|
12452
12654
|
workspaceElementId: z.string().min(1),
|
|
12453
12655
|
prompt: z.string().min(1),
|
|
12656
|
+
testCustomerId: z.string().optional(),
|
|
12454
12657
|
});
|
|
12455
12658
|
const AgentSessionInputSchema = z.object({
|
|
12456
|
-
input: z.string().
|
|
12457
|
-
|
|
12659
|
+
input: z.string().min(1),
|
|
12660
|
+
synthetic: z.boolean().optional(),
|
|
12661
|
+
});
|
|
12662
|
+
|
|
12663
|
+
var InteractiveMcpToolName;
|
|
12664
|
+
(function (InteractiveMcpToolName) {
|
|
12665
|
+
InteractiveMcpToolName["REQUEST_TEST_CONNECTION"] = "requestTestConnection";
|
|
12666
|
+
})(InteractiveMcpToolName || (InteractiveMcpToolName = {}));
|
|
12667
|
+
var InteractiveMcpToolStatus;
|
|
12668
|
+
(function (InteractiveMcpToolStatus) {
|
|
12669
|
+
InteractiveMcpToolStatus["AWAITING_USER_INPUT"] = "awaiting_user_input";
|
|
12670
|
+
})(InteractiveMcpToolStatus || (InteractiveMcpToolStatus = {}));
|
|
12671
|
+
|
|
12672
|
+
const API_VERSIONS = {
|
|
12673
|
+
LEGACY: 'legacy',
|
|
12674
|
+
'2025-10-21': '2025-10-21',
|
|
12675
|
+
};
|
|
12676
|
+
const AVAILABLE_VERSIONS = Object.values(API_VERSIONS);
|
|
12677
|
+
const CHRONOLOGICAL_VERSIONS = [
|
|
12678
|
+
API_VERSIONS.LEGACY,
|
|
12679
|
+
...[...AVAILABLE_VERSIONS].filter((v) => v !== API_VERSIONS.LEGACY).sort(),
|
|
12680
|
+
];
|
|
12681
|
+
const LATEST_API_VERSION = CHRONOLOGICAL_VERSIONS[CHRONOLOGICAL_VERSIONS.length - 1];
|
|
12682
|
+
const VERSION_HEADER = 'membrane-api-version';
|
|
12458
12683
|
|
|
12459
12684
|
function decodeJWT(token) {
|
|
12460
12685
|
if (typeof token !== 'string') {
|
|
@@ -12488,6 +12713,9 @@ const DEFAULT_API_URI = 'https://api.integration.app';
|
|
|
12488
12713
|
const DEFAULT_UI_URI = 'https://ui.integration.app';
|
|
12489
12714
|
const REFETCH_EXPIRATION_THRESHOLD = 10 * 1000;
|
|
12490
12715
|
function decodeToken(token) {
|
|
12716
|
+
if (token.startsWith('pat-')) {
|
|
12717
|
+
return null;
|
|
12718
|
+
}
|
|
12491
12719
|
const payload = decodeJWT(token);
|
|
12492
12720
|
if (!payload) {
|
|
12493
12721
|
throw new Error('Access token should be a valid JWT token.');
|
|
@@ -12517,7 +12745,7 @@ class MembraneApiClient {
|
|
|
12517
12745
|
}
|
|
12518
12746
|
else {
|
|
12519
12747
|
const payload = decodeToken(this.token);
|
|
12520
|
-
if (payload.exp) {
|
|
12748
|
+
if (payload === null || payload === void 0 ? void 0 : payload.exp) {
|
|
12521
12749
|
const willExpireSoon = new Date(payload.exp * 1000).getTime() - new Date().getTime() < REFETCH_EXPIRATION_THRESHOLD;
|
|
12522
12750
|
if (willExpireSoon) {
|
|
12523
12751
|
this.token = await this.fetchToken();
|
|
@@ -12575,6 +12803,7 @@ class MembraneApiClient {
|
|
|
12575
12803
|
params.headers = {
|
|
12576
12804
|
...(params.headers || {}),
|
|
12577
12805
|
Authorization: `Bearer ${token}`,
|
|
12806
|
+
[VERSION_HEADER]: LATEST_API_VERSION,
|
|
12578
12807
|
};
|
|
12579
12808
|
params.withCredentials = false;
|
|
12580
12809
|
let response;
|
|
@@ -12749,5 +12978,5 @@ class MembraneClient extends MembraneApiClient {
|
|
|
12749
12978
|
|
|
12750
12979
|
injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
12751
12980
|
|
|
12752
|
-
export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, AgentSessionStatus, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorFileUpdateType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, axios as MembraneAxiosInstance, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackagesAccessor, PaginationQuery, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
12981
|
+
export { ACTIONS, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, AgentSessionStatus, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppPublicKey, AppSchema, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorFileUpdateType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineWorkspaceSettingsSchema, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, FullPlatformUser, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationsAccessor, InteractiveMcpToolName, InteractiveMcpToolStatus, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimits, OrgLimitsType, OrgSchema, OrgUserRole, OrgUserStatus, OrgWorkspaceSchema, OrgWorkspaceUser, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackagesAccessor, PaginationQuery, PaginationResponse, PlatformUserSchema, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMembraneElementPath, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, parseMembraneElementPath, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
12753
12982
|
//# sourceMappingURL=index.browser.mjs.map
|