@membranehq/sdk 0.7.5 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +317 -108
- package/dist/bundle.js +351 -270
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +1 -2
- package/dist/dts/accessors/actions-accessors.d.ts +0 -1
- package/dist/dts/accessors/data-sources-accessors.d.ts +0 -1
- package/dist/dts/accessors/field-mappings-accessors.d.ts +0 -1
- package/dist/dts/accessors/flows-accessors.d.ts +0 -1
- package/dist/dts/accessors/scenarios-accessors.d.ts +6 -4
- package/dist/dts/alerts/types.d.ts +3 -1
- package/dist/dts/client.d.ts +3 -3
- package/dist/dts/webhooks/types.d.ts +5 -2
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +5 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +309 -1
- package/dist/dts/workspace-elements/api/index.d.ts +1 -2
- package/dist/dts/workspace-elements/api/{scenarios-api.d.ts → packages-api.d.ts} +11 -7
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +14 -9
- package/dist/dts/workspace-elements/base/actions/index.d.ts +46 -0
- package/dist/dts/workspace-elements/base/index.d.ts +1 -2
- package/dist/dts/workspace-elements/base/{scenarios → packages}/index.d.ts +8 -8
- package/dist/dts/workspace-elements/types.d.ts +7 -1
- package/dist/dts/workspace-elements-catalog/index.d.ts +2 -0
- package/dist/index.browser.d.mts +894 -648
- package/dist/index.browser.d.ts +894 -648
- package/dist/index.browser.js +146 -131
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +136 -125
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +894 -648
- package/dist/index.node.d.ts +894 -648
- package/dist/index.node.js +146 -131
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +136 -125
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +0 -94
package/dist/index.node.js
CHANGED
|
@@ -70,7 +70,7 @@ exports.ConcurrencyErrorKey = void 0;
|
|
|
70
70
|
ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
|
|
71
71
|
})(exports.ConcurrencyErrorKey || (exports.ConcurrencyErrorKey = {}));
|
|
72
72
|
const ErrorDataSchema = zod.z.lazy(() => zod.z.object({
|
|
73
|
-
type: zod.z.
|
|
73
|
+
type: zod.z.enum(exports.ErrorType).optional(),
|
|
74
74
|
key: zod.z.string().optional(),
|
|
75
75
|
message: zod.z.string(),
|
|
76
76
|
data: zod.z.any().optional(),
|
|
@@ -3407,7 +3407,7 @@ exports.WorkspaceElementType = void 0;
|
|
|
3407
3407
|
WorkspaceElementType["FlowInstance"] = "flow-instance";
|
|
3408
3408
|
WorkspaceElementType["FlowRun"] = "flow-run";
|
|
3409
3409
|
WorkspaceElementType["Action"] = "action";
|
|
3410
|
-
WorkspaceElementType["
|
|
3410
|
+
WorkspaceElementType["Package"] = "package";
|
|
3411
3411
|
WorkspaceElementType["ActionInstance"] = "action-instance";
|
|
3412
3412
|
WorkspaceElementType["Connection"] = "connection";
|
|
3413
3413
|
WorkspaceElementType["FieldMapping"] = "field-mapping";
|
|
@@ -3464,7 +3464,7 @@ const BaseMembraneInterfaceEditableProperties = zod.z.object({
|
|
|
3464
3464
|
});
|
|
3465
3465
|
const BaseMembraneInterfaceReadOnlyProperties = zod.z.object({
|
|
3466
3466
|
name: zod.z.string(),
|
|
3467
|
-
state: zod.z.
|
|
3467
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
3468
3468
|
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
3469
3469
|
revision: zod.z.string().optional(),
|
|
3470
3470
|
createdAt: zod.z.string().optional(),
|
|
@@ -3480,6 +3480,11 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3480
3480
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3481
3481
|
isCustomized: zod.z.boolean().optional(),
|
|
3482
3482
|
});
|
|
3483
|
+
const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
3484
|
+
integrationKey: zod.z.string().optional(),
|
|
3485
|
+
connectionId: zod.z.string().optional(),
|
|
3486
|
+
instanceKey: zod.z.string().optional(),
|
|
3487
|
+
});
|
|
3483
3488
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3484
3489
|
|
|
3485
3490
|
function mergeWithFormulas(a, b) {
|
|
@@ -3525,7 +3530,7 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3525
3530
|
dataSourceKey: zod.z.string().optional(),
|
|
3526
3531
|
dataSourceId: zod.z.string().optional(),
|
|
3527
3532
|
appSchema: DataSchema.optional(),
|
|
3528
|
-
direction: zod.z.
|
|
3533
|
+
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
3529
3534
|
defaultImportValue: zod.z.any().optional(),
|
|
3530
3535
|
defaultExportValue: zod.z.any().optional(),
|
|
3531
3536
|
importValue: zod.z.any().optional(),
|
|
@@ -3647,17 +3652,34 @@ const ACTIONS = {
|
|
|
3647
3652
|
},
|
|
3648
3653
|
};
|
|
3649
3654
|
|
|
3655
|
+
exports.ActionDependencyType = void 0;
|
|
3656
|
+
(function (ActionDependencyType) {
|
|
3657
|
+
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
3658
|
+
ActionDependencyType["DataSource"] = "DataSource";
|
|
3659
|
+
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
3660
|
+
const ActionDependency = zod.z.object({
|
|
3661
|
+
type: zod.z.enum(exports.ActionDependencyType),
|
|
3662
|
+
key: zod.z.string(),
|
|
3663
|
+
element: zod.z.any().optional(),
|
|
3664
|
+
});
|
|
3650
3665
|
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
3651
3666
|
integrationId: zod.z.string().optional(),
|
|
3667
|
+
connectionId: zod.z.string().optional(),
|
|
3652
3668
|
parentId: zod.z.string().optional(),
|
|
3669
|
+
instanceKey: zod.z.string().optional(),
|
|
3653
3670
|
inputSchema: DataSchema.optional(),
|
|
3654
|
-
type: zod.z.
|
|
3671
|
+
type: zod.z.enum(exports.ActionType).optional(),
|
|
3655
3672
|
config: zod.z.any().optional(),
|
|
3656
3673
|
outputMapping: zod.z.any().optional(),
|
|
3657
3674
|
customOutputSchema: DataSchema.optional(),
|
|
3658
3675
|
});
|
|
3659
|
-
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties
|
|
3676
|
+
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3677
|
+
universalParentId: zod.z.string().optional(),
|
|
3678
|
+
userId: zod.z.string().optional(),
|
|
3679
|
+
outputSchema: zod.z.any().optional(),
|
|
3680
|
+
});
|
|
3660
3681
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3682
|
+
const BaseActionInstance = BaseAction;
|
|
3661
3683
|
|
|
3662
3684
|
const ConnectionRequest = zod.z.object({
|
|
3663
3685
|
path: zod.z.any(),
|
|
@@ -3673,7 +3695,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3673
3695
|
isTest: zod.z.boolean().optional(),
|
|
3674
3696
|
disconnected: zod.z.boolean().optional(),
|
|
3675
3697
|
isDefunct: zod.z.boolean().optional(),
|
|
3676
|
-
state: zod.z.
|
|
3698
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
3677
3699
|
error: ErrorDataSchema.optional(),
|
|
3678
3700
|
integrationId: zod.z.string(),
|
|
3679
3701
|
authOptionKey: zod.z.string().optional(),
|
|
@@ -8420,7 +8442,7 @@ exports.IncomingWebhooksState = void 0;
|
|
|
8420
8442
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8421
8443
|
})(exports.IncomingWebhooksState || (exports.IncomingWebhooksState = {}));
|
|
8422
8444
|
const ExternalEventUnitConfig = zod.z.object({
|
|
8423
|
-
type: zod.z.
|
|
8445
|
+
type: zod.z.enum(exports.ExternalEventType),
|
|
8424
8446
|
dataSource: DataSourceUnitConfig.optional(),
|
|
8425
8447
|
eventKey: zod.z.string().optional(),
|
|
8426
8448
|
eventParameters: zod.z.any().optional(),
|
|
@@ -8478,11 +8500,11 @@ exports.FlowRunLaunchedByTrigger = void 0;
|
|
|
8478
8500
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8479
8501
|
})(exports.FlowRunLaunchedByTrigger || (exports.FlowRunLaunchedByTrigger = {}));
|
|
8480
8502
|
const FlowRunLaunchedBy = zod.z.object({
|
|
8481
|
-
type: zod.z.
|
|
8503
|
+
type: zod.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
8482
8504
|
ids: zod.z.array(zod.z.string()).optional(),
|
|
8483
8505
|
});
|
|
8484
8506
|
const FlowRunNode = zod.z.object({
|
|
8485
|
-
state: zod.z.
|
|
8507
|
+
state: zod.z.enum(exports.FlowRunNodeState),
|
|
8486
8508
|
runs: zod.z.number().optional(),
|
|
8487
8509
|
erroredRuns: zod.z.number().optional(),
|
|
8488
8510
|
outputs: zod.z.number().optional(),
|
|
@@ -8497,7 +8519,7 @@ const BaseFlowRun = zod.z.object({
|
|
|
8497
8519
|
startNodeKey: zod.z.string(),
|
|
8498
8520
|
userId: zod.z.string(),
|
|
8499
8521
|
input: zod.z.any().optional(),
|
|
8500
|
-
state: zod.z.
|
|
8522
|
+
state: zod.z.enum(exports.FlowRunState),
|
|
8501
8523
|
startTime: zod.z.string(),
|
|
8502
8524
|
endTime: zod.z.string().optional(),
|
|
8503
8525
|
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
@@ -8531,7 +8553,7 @@ const FlowNodeRunOutputSchema = zod.z.object({
|
|
|
8531
8553
|
downstreamRuns: zod.z.array(DownstreamFlowNodeRunSchema),
|
|
8532
8554
|
});
|
|
8533
8555
|
const FlowNodeRunResultSchema = zod.z.object({
|
|
8534
|
-
status: zod.z.
|
|
8556
|
+
status: zod.z.enum(exports.FlowNodeRunStatus),
|
|
8535
8557
|
logs: zod.z.array(zod.z.any()),
|
|
8536
8558
|
outputs: zod.z.array(FlowNodeRunOutputSchema),
|
|
8537
8559
|
errors: zod.z.array(ErrorDataSchema),
|
|
@@ -8549,7 +8571,7 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = zod.z.object({
|
|
|
8549
8571
|
id: zod.z.string(),
|
|
8550
8572
|
upstreamRuns: zod.z.array(UpstreamFlowNodeRunSchema),
|
|
8551
8573
|
input: zod.z.any(),
|
|
8552
|
-
status: zod.z.
|
|
8574
|
+
status: zod.z.enum(exports.FlowNodeRunStatus),
|
|
8553
8575
|
logs: zod.z.array(zod.z.any()),
|
|
8554
8576
|
outputs: zod.z.array(FlowNodeRunOutputMetadataSchema),
|
|
8555
8577
|
errors: zod.z.array(ErrorDataSchema),
|
|
@@ -8909,23 +8931,23 @@ exports.IntegrationElementType = void 0;
|
|
|
8909
8931
|
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
8910
8932
|
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
8911
8933
|
|
|
8912
|
-
const
|
|
8934
|
+
const PackageElement = zod.z.object({
|
|
8913
8935
|
id: zod.z.string(),
|
|
8914
|
-
type: zod.z.
|
|
8936
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
8915
8937
|
element: zod.z.any().optional(),
|
|
8916
8938
|
});
|
|
8917
|
-
const
|
|
8939
|
+
const PackageEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8918
8940
|
scenarioTemplateId: zod.z.string().optional(),
|
|
8919
|
-
elements: zod.z.array(
|
|
8941
|
+
elements: zod.z.array(PackageElement).optional(),
|
|
8920
8942
|
integrationId: zod.z.string().optional(),
|
|
8921
8943
|
parentId: zod.z.string().optional(),
|
|
8922
8944
|
});
|
|
8923
|
-
const
|
|
8945
|
+
const PackageCalculatedProperties = zod.z.object({
|
|
8924
8946
|
key: zod.z.string(),
|
|
8925
8947
|
name: zod.z.string(),
|
|
8926
8948
|
isCustomized: zod.z.boolean().optional(),
|
|
8927
8949
|
});
|
|
8928
|
-
const
|
|
8950
|
+
const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
|
|
8929
8951
|
|
|
8930
8952
|
exports.ScreenType = void 0;
|
|
8931
8953
|
(function (ScreenType) {
|
|
@@ -8940,11 +8962,11 @@ exports.ScreenBlockType = void 0;
|
|
|
8940
8962
|
})(exports.ScreenBlockType || (exports.ScreenBlockType = {}));
|
|
8941
8963
|
const ScreenBlock = zod.z
|
|
8942
8964
|
.object({
|
|
8943
|
-
type: zod.z.
|
|
8965
|
+
type: zod.z.enum(exports.ScreenBlockType),
|
|
8944
8966
|
})
|
|
8945
8967
|
.and(zod.z.record(zod.z.string(), zod.z.any()));
|
|
8946
8968
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8947
|
-
type: zod.z.
|
|
8969
|
+
type: zod.z.enum(exports.ScreenType),
|
|
8948
8970
|
key: zod.z.string().optional(),
|
|
8949
8971
|
blocks: zod.z.array(ScreenBlock),
|
|
8950
8972
|
});
|
|
@@ -8976,7 +8998,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8976
8998
|
enabled: zod.z.boolean(),
|
|
8977
8999
|
createdAt: zod.z.string(),
|
|
8978
9000
|
updatedAt: zod.z.string(),
|
|
8979
|
-
state: zod.z.
|
|
9001
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
8980
9002
|
customized: zod.z
|
|
8981
9003
|
.object({
|
|
8982
9004
|
name: zod.z.boolean().optional(),
|
|
@@ -8991,7 +9013,7 @@ exports.FlowInstanceNodeState = void 0;
|
|
|
8991
9013
|
FlowInstanceNodeState["READY"] = "READY";
|
|
8992
9014
|
})(exports.FlowInstanceNodeState || (exports.FlowInstanceNodeState = {}));
|
|
8993
9015
|
const FlowInstanceNode = FlowNode.extend({
|
|
8994
|
-
state: zod.z.
|
|
9016
|
+
state: zod.z.enum(exports.FlowInstanceNodeState).optional(),
|
|
8995
9017
|
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
8996
9018
|
userConfig: zod.z.any().optional(),
|
|
8997
9019
|
testInput: zod.z.any().optional(),
|
|
@@ -9055,27 +9077,6 @@ const updateFlowInstanceSchema = zod.z.object({
|
|
|
9055
9077
|
.optional(),
|
|
9056
9078
|
});
|
|
9057
9079
|
|
|
9058
|
-
exports.ActionDependencyType = void 0;
|
|
9059
|
-
(function (ActionDependencyType) {
|
|
9060
|
-
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
9061
|
-
ActionDependencyType["DataSource"] = "DataSource";
|
|
9062
|
-
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
9063
|
-
const ActionDependency = zod.z.object({
|
|
9064
|
-
type: zod.z.nativeEnum(exports.ActionDependencyType),
|
|
9065
|
-
key: zod.z.string(),
|
|
9066
|
-
element: zod.z.any().optional(),
|
|
9067
|
-
});
|
|
9068
|
-
const BaseActionInstance = BaseMembraneInterface.extend({
|
|
9069
|
-
parentId: zod.z.string().optional(),
|
|
9070
|
-
universalParentId: zod.z.string().optional(),
|
|
9071
|
-
userId: zod.z.string(),
|
|
9072
|
-
instanceKey: zod.z.string().optional(),
|
|
9073
|
-
type: zod.z.nativeEnum(exports.ActionType).optional(),
|
|
9074
|
-
inputSchema: zod.z.any().optional(),
|
|
9075
|
-
config: zod.z.any().optional(),
|
|
9076
|
-
outputSchema: zod.z.any().optional(),
|
|
9077
|
-
});
|
|
9078
|
-
|
|
9079
9080
|
const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
9080
9081
|
userId: zod.z.string(),
|
|
9081
9082
|
revision: zod.z.string(),
|
|
@@ -9086,7 +9087,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9086
9087
|
instanceKey: zod.z.string().optional(),
|
|
9087
9088
|
dataSourceInstanceId: zod.z.string().optional(),
|
|
9088
9089
|
dataSourceSchema: DataSchema.optional(),
|
|
9089
|
-
direction: zod.z.
|
|
9090
|
+
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
9090
9091
|
appSchema: DataSchema.optional(),
|
|
9091
9092
|
importValue: zod.z.any().optional(),
|
|
9092
9093
|
exportValue: zod.z.any().optional(),
|
|
@@ -9095,7 +9096,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9095
9096
|
unifiedImportValue: zod.z.any().optional(),
|
|
9096
9097
|
frozenImportFields: zod.z.array(zod.z.string()).optional(),
|
|
9097
9098
|
frozenExportFields: zod.z.array(zod.z.string()).optional(),
|
|
9098
|
-
state: zod.z.
|
|
9099
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
9099
9100
|
error: ErrorDataSchema.optional(),
|
|
9100
9101
|
externalSchema: zod.z.any().optional(),
|
|
9101
9102
|
});
|
|
@@ -9123,7 +9124,7 @@ const DataLink = zod.z.object({
|
|
|
9123
9124
|
dataLinkTableInstanceId: zod.z.string(),
|
|
9124
9125
|
externalRecordId: zod.z.string(),
|
|
9125
9126
|
appRecordId: zod.z.string(),
|
|
9126
|
-
direction: zod.z.
|
|
9127
|
+
direction: zod.z.enum(exports.DataLinkDirection),
|
|
9127
9128
|
});
|
|
9128
9129
|
const DataLinkTableConfig = zod.z.object({
|
|
9129
9130
|
key: zod.z.string(),
|
|
@@ -9138,7 +9139,7 @@ exports.HttpRequestMethod = void 0;
|
|
|
9138
9139
|
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9139
9140
|
})(exports.HttpRequestMethod || (exports.HttpRequestMethod = {}));
|
|
9140
9141
|
const HttpRequestSpec = zod.z.object({
|
|
9141
|
-
method: zod.z.string().toUpperCase().pipe(zod.z.
|
|
9142
|
+
method: zod.z.string().toUpperCase().pipe(zod.z.enum(exports.HttpRequestMethod)).optional(),
|
|
9142
9143
|
uri: zod.z.any(),
|
|
9143
9144
|
headers: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
9144
9145
|
query: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
@@ -9221,7 +9222,7 @@ exports.ExternalEventSubscriptionType = void 0;
|
|
|
9221
9222
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9222
9223
|
})(exports.ExternalEventSubscriptionType || (exports.ExternalEventSubscriptionType = {}));
|
|
9223
9224
|
const ExternalEventSubscriptionConfig = zod.z.object({
|
|
9224
|
-
type: zod.z.
|
|
9225
|
+
type: zod.z.enum(exports.ExternalEventSubscriptionType),
|
|
9225
9226
|
dataSource: DataSourceUnitConfig.optional(),
|
|
9226
9227
|
eventKey: zod.z.string().optional(),
|
|
9227
9228
|
eventParameters: zod.z.any().optional(),
|
|
@@ -9233,7 +9234,7 @@ const BaseExternalEventSubscription = zod.z.object({
|
|
|
9233
9234
|
connectionId: zod.z.string(),
|
|
9234
9235
|
integrationId: zod.z.string(),
|
|
9235
9236
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
9236
|
-
status: zod.z.
|
|
9237
|
+
status: zod.z.enum(exports.ExternalEventSubscriptionStatus).optional(),
|
|
9237
9238
|
error: ErrorDataSchema.optional(),
|
|
9238
9239
|
isRealTime: zod.z.boolean().optional(),
|
|
9239
9240
|
requiresPull: zod.z.boolean().optional(),
|
|
@@ -9264,7 +9265,7 @@ const BaseExternalEventLogRecord = zod.z.object({
|
|
|
9264
9265
|
connectionId: zod.z.string(),
|
|
9265
9266
|
payload: zod.z.any().optional(),
|
|
9266
9267
|
launchedFlowRunIds: zod.z.array(zod.z.string()).optional(),
|
|
9267
|
-
status: zod.z.
|
|
9268
|
+
status: zod.z.enum(exports.ExternalEventLogStatus),
|
|
9268
9269
|
error: ErrorDataSchema.optional(),
|
|
9269
9270
|
});
|
|
9270
9271
|
|
|
@@ -9285,7 +9286,7 @@ const BaseExternalEventPull = zod.z.object({
|
|
|
9285
9286
|
startDatetime: zod.z.string(),
|
|
9286
9287
|
endDatetime: zod.z.string(),
|
|
9287
9288
|
isFullScan: zod.z.boolean().optional(),
|
|
9288
|
-
status: zod.z.
|
|
9289
|
+
status: zod.z.enum(exports.ExternalEventPullStatus),
|
|
9289
9290
|
collectedEventIds: zod.z.array(zod.z.string()),
|
|
9290
9291
|
error: ErrorDataSchema.optional(),
|
|
9291
9292
|
});
|
|
@@ -9301,7 +9302,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9301
9302
|
connectionId: zod.z.string(),
|
|
9302
9303
|
input: zod.z.any().optional(),
|
|
9303
9304
|
output: zod.z.any().optional(),
|
|
9304
|
-
status: zod.z.
|
|
9305
|
+
status: zod.z.enum(exports.ActionRunLogStatus),
|
|
9305
9306
|
createdAt: zod.z.string(),
|
|
9306
9307
|
completedAt: zod.z.string().optional(),
|
|
9307
9308
|
error: ErrorDataSchema.optional(),
|
|
@@ -9347,6 +9348,8 @@ class PaginationResponse {
|
|
|
9347
9348
|
|
|
9348
9349
|
const ActionApiResponse = BaseAction.extend({
|
|
9349
9350
|
integration: BaseIntegration.optional(),
|
|
9351
|
+
user: BaseCustomer.optional(),
|
|
9352
|
+
parent: BaseAction.optional(),
|
|
9350
9353
|
appliedToIntegrations: AppliedToIntegrations(BaseAction).optional(),
|
|
9351
9354
|
defaultOutputSchema: DataSchema.optional(),
|
|
9352
9355
|
transformedOutputSchema: DataSchema.optional(),
|
|
@@ -9356,41 +9359,27 @@ const ActionApiResponse = BaseAction.extend({
|
|
|
9356
9359
|
const FindActionsQuery = PaginationQuery.extend({
|
|
9357
9360
|
integrationId: zod.z.string().optional(),
|
|
9358
9361
|
parentId: zod.z.string().optional(),
|
|
9362
|
+
universalParentId: zod.z.string().optional(),
|
|
9359
9363
|
integrationKey: zod.z.string().optional(),
|
|
9360
9364
|
search: zod.z.string().optional(),
|
|
9361
9365
|
includeArchived: zodBooleanCoercion().optional(),
|
|
9366
|
+
userId: zod.z.string().optional(),
|
|
9367
|
+
connectionId: zod.z.string().optional(),
|
|
9362
9368
|
});
|
|
9363
9369
|
const CreateActionRequest = ActionEditableProperties;
|
|
9364
9370
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9371
|
+
const CreateActionInstanceRequest = CreateActionRequest;
|
|
9372
|
+
const UpdateActionInstanceRequest = UpdateActionRequest;
|
|
9373
|
+
const RunActionRequest = zod.z.object({
|
|
9374
|
+
input: zod.z.any().optional(),
|
|
9375
|
+
});
|
|
9365
9376
|
const ActionRunResponse = zod.z.object({
|
|
9366
9377
|
output: zod.z.any().optional(),
|
|
9367
9378
|
logs: zod.z.array(zod.z.any()).optional(),
|
|
9368
9379
|
});
|
|
9369
|
-
|
|
9370
|
-
const
|
|
9371
|
-
|
|
9372
|
-
parent: BaseAction.optional(),
|
|
9373
|
-
});
|
|
9374
|
-
const ListActionInstancesForConnectionQuery = zod.z
|
|
9375
|
-
.object({
|
|
9376
|
-
parentId: zod.z.string().optional(),
|
|
9377
|
-
universalParentId: zod.z.string().optional(),
|
|
9378
|
-
})
|
|
9379
|
-
.merge(PaginationQuery);
|
|
9380
|
-
const FindActionInstancesQuery = ListActionInstancesForConnectionQuery.extend({
|
|
9381
|
-
integrationKey: zod.z.string().optional(),
|
|
9382
|
-
integrationId: zod.z.string().optional(),
|
|
9383
|
-
userId: zod.z.string().optional(),
|
|
9384
|
-
connectionId: zod.z.string().optional(),
|
|
9385
|
-
});
|
|
9386
|
-
const CreateActionInstanceRequest = zod.z.object({
|
|
9387
|
-
parentId: zod.z.string(),
|
|
9388
|
-
connectionId: zod.z.string(),
|
|
9389
|
-
config: zod.z.any().optional(),
|
|
9390
|
-
});
|
|
9391
|
-
const UpdateActionInstanceRequest = zod.z.object({
|
|
9392
|
-
config: zod.z.any().optional(),
|
|
9393
|
-
});
|
|
9380
|
+
const ActionInstanceApiResponse = ActionApiResponse;
|
|
9381
|
+
const ListActionInstancesForConnectionQuery = FindActionsQuery;
|
|
9382
|
+
const FindActionInstancesQuery = FindActionsQuery;
|
|
9394
9383
|
|
|
9395
9384
|
const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
9396
9385
|
action: BaseAction.optional(),
|
|
@@ -9591,13 +9580,13 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
9591
9580
|
flowId: zod.z.string().optional(),
|
|
9592
9581
|
universalFlowId: zod.z.string().optional(),
|
|
9593
9582
|
userId: zod.z.string().optional(),
|
|
9594
|
-
state: zod.z.
|
|
9583
|
+
state: zod.z.enum(exports.FlowRunState).optional(),
|
|
9595
9584
|
integrationId: zod.z.string().optional(),
|
|
9596
9585
|
connectionId: zod.z.string().optional(),
|
|
9597
9586
|
startedAfter: zod.z.string().optional(),
|
|
9598
9587
|
});
|
|
9599
9588
|
const FlowRunLaunchedByApi = zod.z.object({
|
|
9600
|
-
type: zod.z.
|
|
9589
|
+
type: zod.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
9601
9590
|
ids: zod.z.array(zod.z.string()).optional(),
|
|
9602
9591
|
});
|
|
9603
9592
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
@@ -9642,14 +9631,22 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9642
9631
|
parametersSchema: DataSchema.optional(),
|
|
9643
9632
|
});
|
|
9644
9633
|
|
|
9645
|
-
const
|
|
9634
|
+
const PackageElementApi = zod.z.object({
|
|
9646
9635
|
id: zod.z.string(),
|
|
9647
|
-
type: zod.z.
|
|
9636
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
9648
9637
|
element: zod.z.any().optional(),
|
|
9649
9638
|
});
|
|
9650
|
-
const
|
|
9651
|
-
|
|
9652
|
-
|
|
9639
|
+
const FindPackagesQuery = zod.z
|
|
9640
|
+
.object({
|
|
9641
|
+
integrationId: zod.z.string().optional(),
|
|
9642
|
+
integrationKey: zod.z.string().optional(),
|
|
9643
|
+
parentId: zod.z.string().optional(),
|
|
9644
|
+
})
|
|
9645
|
+
.extend(SearchQuery.shape)
|
|
9646
|
+
.extend(PaginationQuery.shape)
|
|
9647
|
+
.extend(IncludeArchivedQuery.shape);
|
|
9648
|
+
const PackageApiResponse = BasePackage.extend({
|
|
9649
|
+
appliedToIntegrations: AppliedToIntegrations(BasePackage).optional(),
|
|
9653
9650
|
});
|
|
9654
9651
|
|
|
9655
9652
|
const ScreenApiResponse = BaseScreen;
|
|
@@ -9724,7 +9721,7 @@ const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
9724
9721
|
connectionId: zod.z.string().optional(),
|
|
9725
9722
|
integrationId: zod.z.string().optional(),
|
|
9726
9723
|
externalEventSubscriptionId: zod.z.string().optional(),
|
|
9727
|
-
status: zod.z.
|
|
9724
|
+
status: zod.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9728
9725
|
});
|
|
9729
9726
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9730
9727
|
user: BaseCustomer.optional(),
|
|
@@ -9737,7 +9734,7 @@ const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
|
9737
9734
|
connectionId: zod.z.string().optional(),
|
|
9738
9735
|
integrationId: zod.z.string().optional(),
|
|
9739
9736
|
externalEventSubscriptionId: zod.z.string().optional(),
|
|
9740
|
-
status: zod.z.
|
|
9737
|
+
status: zod.z.enum(exports.ExternalEventPullStatus).optional(),
|
|
9741
9738
|
});
|
|
9742
9739
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9743
9740
|
user: BaseCustomer.optional(),
|
|
@@ -9930,20 +9927,23 @@ const WorkspaceElementSpecs = {
|
|
|
9930
9927
|
name: 'Connection',
|
|
9931
9928
|
namePlural: 'Connections',
|
|
9932
9929
|
},
|
|
9933
|
-
[exports.WorkspaceElementType.
|
|
9934
|
-
type: exports.WorkspaceElementType.
|
|
9935
|
-
apiPath: '
|
|
9936
|
-
name: '
|
|
9937
|
-
namePlural: '
|
|
9938
|
-
editablePropertiesSchema:
|
|
9939
|
-
apiResponseSchema:
|
|
9940
|
-
findQuerySchema:
|
|
9930
|
+
[exports.WorkspaceElementType.Package]: {
|
|
9931
|
+
type: exports.WorkspaceElementType.Package,
|
|
9932
|
+
apiPath: 'packages',
|
|
9933
|
+
name: 'Package',
|
|
9934
|
+
namePlural: 'Packages',
|
|
9935
|
+
editablePropertiesSchema: PackageEditableProperties,
|
|
9936
|
+
apiResponseSchema: PackageApiResponse,
|
|
9937
|
+
findQuerySchema: FindPackagesQuery,
|
|
9938
|
+
isMembraneInterface: true,
|
|
9939
|
+
isIntegrationLevel: true,
|
|
9941
9940
|
},
|
|
9942
9941
|
[exports.WorkspaceElementType.ActionInstance]: {
|
|
9943
9942
|
type: exports.WorkspaceElementType.ActionInstance,
|
|
9944
9943
|
apiPath: 'action-instances',
|
|
9945
9944
|
name: 'Action Instance',
|
|
9946
9945
|
namePlural: 'Action Instances',
|
|
9946
|
+
isMembraneInterface: true,
|
|
9947
9947
|
},
|
|
9948
9948
|
[exports.WorkspaceElementType.Action]: {
|
|
9949
9949
|
type: exports.WorkspaceElementType.Action,
|
|
@@ -9953,6 +9953,8 @@ const WorkspaceElementSpecs = {
|
|
|
9953
9953
|
editablePropertiesSchema: ActionEditableProperties,
|
|
9954
9954
|
apiResponseSchema: ActionApiResponse,
|
|
9955
9955
|
findQuerySchema: FindActionsQuery,
|
|
9956
|
+
isMembraneInterface: true,
|
|
9957
|
+
isIntegrationLevel: true,
|
|
9956
9958
|
},
|
|
9957
9959
|
[exports.WorkspaceElementType.ActionRunLogRecord]: {
|
|
9958
9960
|
type: exports.WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -9966,6 +9968,8 @@ const WorkspaceElementSpecs = {
|
|
|
9966
9968
|
name: 'Flow',
|
|
9967
9969
|
namePlural: 'Flows',
|
|
9968
9970
|
parentFieldKey: 'universalFlowId',
|
|
9971
|
+
isMembraneInterface: true,
|
|
9972
|
+
isIntegrationLevel: true,
|
|
9969
9973
|
},
|
|
9970
9974
|
[exports.WorkspaceElementType.FlowInstance]: {
|
|
9971
9975
|
type: exports.WorkspaceElementType.FlowInstance,
|
|
@@ -9974,6 +9978,8 @@ const WorkspaceElementSpecs = {
|
|
|
9974
9978
|
updateSchema: updateFlowInstanceSchema,
|
|
9975
9979
|
name: 'Flow',
|
|
9976
9980
|
namePlural: 'Flows',
|
|
9981
|
+
parentFieldKey: 'flowId',
|
|
9982
|
+
isMembraneInterface: true,
|
|
9977
9983
|
},
|
|
9978
9984
|
[exports.WorkspaceElementType.FlowRun]: {
|
|
9979
9985
|
type: exports.WorkspaceElementType.FlowRun,
|
|
@@ -9987,12 +9993,16 @@ const WorkspaceElementSpecs = {
|
|
|
9987
9993
|
name: 'Field Mapping',
|
|
9988
9994
|
namePlural: 'Field Mappings',
|
|
9989
9995
|
parentFieldKey: 'universalFieldMappingId',
|
|
9996
|
+
isMembraneInterface: true,
|
|
9997
|
+
isIntegrationLevel: true,
|
|
9990
9998
|
},
|
|
9991
9999
|
[exports.WorkspaceElementType.FieldMappingInstance]: {
|
|
9992
10000
|
type: exports.WorkspaceElementType.FieldMappingInstance,
|
|
9993
10001
|
apiPath: 'field-mapping-instances',
|
|
9994
10002
|
name: 'Field Mapping Instance',
|
|
9995
10003
|
namePlural: 'Field Mapping Instances',
|
|
10004
|
+
parentFieldKey: 'fieldMappingId',
|
|
10005
|
+
isMembraneInterface: true,
|
|
9996
10006
|
},
|
|
9997
10007
|
[exports.WorkspaceElementType.DataCollection]: {
|
|
9998
10008
|
type: exports.WorkspaceElementType.DataCollection,
|
|
@@ -10006,36 +10016,45 @@ const WorkspaceElementSpecs = {
|
|
|
10006
10016
|
name: 'Data Source',
|
|
10007
10017
|
namePlural: 'Data Sources',
|
|
10008
10018
|
parentFieldKey: 'universalDataSourceId',
|
|
10019
|
+
isMembraneInterface: true,
|
|
10020
|
+
isIntegrationLevel: true,
|
|
10009
10021
|
},
|
|
10010
10022
|
[exports.WorkspaceElementType.DataSourceInstance]: {
|
|
10011
10023
|
type: exports.WorkspaceElementType.DataSourceInstance,
|
|
10012
10024
|
apiPath: 'data-source-instances',
|
|
10013
10025
|
name: 'Data Source Instance',
|
|
10014
10026
|
namePlural: 'Data Source Instances',
|
|
10027
|
+
parentFieldKey: 'dataSourceId',
|
|
10028
|
+
isMembraneInterface: true,
|
|
10015
10029
|
},
|
|
10016
10030
|
[exports.WorkspaceElementType.DataLinkTable]: {
|
|
10017
10031
|
type: exports.WorkspaceElementType.DataLinkTable,
|
|
10018
10032
|
apiPath: 'data-link-tables',
|
|
10019
10033
|
name: 'Data Link Table',
|
|
10020
10034
|
namePlural: 'Data Link Tables',
|
|
10035
|
+
isMembraneInterface: true,
|
|
10021
10036
|
},
|
|
10022
10037
|
[exports.WorkspaceElementType.DataLinkTableInstance]: {
|
|
10023
10038
|
type: exports.WorkspaceElementType.DataLinkTableInstance,
|
|
10024
10039
|
apiPath: 'data-link-table-instances',
|
|
10025
10040
|
name: 'Data Link Table Instance',
|
|
10026
10041
|
namePlural: 'Data Link Table Instances',
|
|
10042
|
+
parentFieldKey: 'dataLinkTableId',
|
|
10043
|
+
isMembraneInterface: true,
|
|
10027
10044
|
},
|
|
10028
10045
|
[exports.WorkspaceElementType.AppEventType]: {
|
|
10029
10046
|
type: exports.WorkspaceElementType.AppEventType,
|
|
10030
10047
|
apiPath: 'app-event-types',
|
|
10031
10048
|
name: 'App Event Type',
|
|
10032
10049
|
namePlural: 'App Event Types',
|
|
10050
|
+
isMembraneInterface: true,
|
|
10033
10051
|
},
|
|
10034
10052
|
[exports.WorkspaceElementType.AppEventSubscription]: {
|
|
10035
10053
|
type: exports.WorkspaceElementType.AppEventSubscription,
|
|
10036
10054
|
apiPath: 'app-event-subscriptions',
|
|
10037
10055
|
name: 'App Event Subscription',
|
|
10038
10056
|
namePlural: 'App Event Subscriptions',
|
|
10057
|
+
isMembraneInterface: true,
|
|
10039
10058
|
},
|
|
10040
10059
|
[exports.WorkspaceElementType.AppEventLogRecord]: {
|
|
10041
10060
|
type: exports.WorkspaceElementType.AppEventLogRecord,
|
|
@@ -10048,18 +10067,22 @@ const WorkspaceElementSpecs = {
|
|
|
10048
10067
|
apiPath: 'app-data-schemas',
|
|
10049
10068
|
name: 'App Data Schema',
|
|
10050
10069
|
namePlural: 'App Data Schemas',
|
|
10070
|
+
isMembraneInterface: true,
|
|
10051
10071
|
},
|
|
10052
10072
|
[exports.WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10053
10073
|
type: exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
10054
10074
|
apiPath: 'app-data-schema-instances',
|
|
10055
10075
|
name: 'App Data Schema Instance',
|
|
10056
10076
|
namePlural: 'App Data Schema Instances',
|
|
10077
|
+
parentFieldKey: 'appDataSchemaId',
|
|
10078
|
+
isMembraneInterface: true,
|
|
10057
10079
|
},
|
|
10058
10080
|
[exports.WorkspaceElementType.ExternalEventSubscription]: {
|
|
10059
10081
|
type: exports.WorkspaceElementType.ExternalEventSubscription,
|
|
10060
10082
|
apiPath: 'external-event-subscriptions',
|
|
10061
10083
|
name: 'External Event Subscription',
|
|
10062
10084
|
namePlural: 'External Event Subscriptions',
|
|
10085
|
+
isMembraneInterface: true,
|
|
10063
10086
|
},
|
|
10064
10087
|
[exports.WorkspaceElementType.ExternalEventLogRecord]: {
|
|
10065
10088
|
type: exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -10078,6 +10101,7 @@ const WorkspaceElementSpecs = {
|
|
|
10078
10101
|
apiPath: 'screens',
|
|
10079
10102
|
name: 'Screen',
|
|
10080
10103
|
namePlural: 'Screens',
|
|
10104
|
+
isMembraneInterface: true,
|
|
10081
10105
|
},
|
|
10082
10106
|
};
|
|
10083
10107
|
|
|
@@ -10692,6 +10716,9 @@ exports.WebhookTypeEnum = void 0;
|
|
|
10692
10716
|
WebhookTypeEnum["USER_INVITED_TO_ORG"] = "user-invited-to-org";
|
|
10693
10717
|
WebhookTypeEnum["ORG_ACCESS_REQUESTED"] = "org-access-requested";
|
|
10694
10718
|
WebhookTypeEnum["ORG_CREATED"] = "org-created";
|
|
10719
|
+
WebhookTypeEnum["TASK_CREATED"] = "task-created";
|
|
10720
|
+
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
10721
|
+
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
10695
10722
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
10696
10723
|
|
|
10697
10724
|
exports.AlertStatus = void 0;
|
|
@@ -10707,6 +10734,8 @@ exports.AlertSeverity = void 0;
|
|
|
10707
10734
|
exports.AlertType = void 0;
|
|
10708
10735
|
(function (AlertType) {
|
|
10709
10736
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
10737
|
+
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
10738
|
+
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
10710
10739
|
})(exports.AlertType || (exports.AlertType = {}));
|
|
10711
10740
|
|
|
10712
10741
|
class ElementAccessor {
|
|
@@ -10895,11 +10924,6 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10895
10924
|
path: 'action',
|
|
10896
10925
|
});
|
|
10897
10926
|
}
|
|
10898
|
-
async apply(integrationKeys) {
|
|
10899
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
10900
|
-
integrationKeys,
|
|
10901
|
-
});
|
|
10902
|
-
}
|
|
10903
10927
|
async reset() {
|
|
10904
10928
|
return await this.options.client.post(this.getPath('reset'));
|
|
10905
10929
|
}
|
|
@@ -11256,11 +11280,6 @@ class DataSourceAccessor extends ElementAccessor {
|
|
|
11256
11280
|
path: 'data-source',
|
|
11257
11281
|
});
|
|
11258
11282
|
}
|
|
11259
|
-
async apply(integrationKeys) {
|
|
11260
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11261
|
-
integrationKeys,
|
|
11262
|
-
});
|
|
11263
|
-
}
|
|
11264
11283
|
async setup() {
|
|
11265
11284
|
await this.options.client.post(this.getPath('setup'));
|
|
11266
11285
|
}
|
|
@@ -12003,11 +12022,6 @@ class FlowAccessor extends ElementAccessor {
|
|
|
12003
12022
|
path: 'flow',
|
|
12004
12023
|
});
|
|
12005
12024
|
}
|
|
12006
|
-
async apply(integrationKeys) {
|
|
12007
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
12008
|
-
integrationKeys,
|
|
12009
|
-
});
|
|
12010
|
-
}
|
|
12011
12025
|
async reset() {
|
|
12012
12026
|
return await this.options.client.post(this.getPath('reset'));
|
|
12013
12027
|
}
|
|
@@ -12044,11 +12058,6 @@ class FieldMappingAccessor extends ElementAccessor {
|
|
|
12044
12058
|
async getAppSchema() {
|
|
12045
12059
|
return await this.options.client.get(this.getPath('app-schema'));
|
|
12046
12060
|
}
|
|
12047
|
-
async apply(integrationKeys) {
|
|
12048
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
12049
|
-
integrationKeys,
|
|
12050
|
-
});
|
|
12051
|
-
}
|
|
12052
12061
|
async setup() {
|
|
12053
12062
|
return await this.options.client.post(this.getPath('setup'));
|
|
12054
12063
|
}
|
|
@@ -12170,20 +12179,22 @@ class IntegrationAccessor extends ElementAccessor {
|
|
|
12170
12179
|
}
|
|
12171
12180
|
}
|
|
12172
12181
|
|
|
12173
|
-
class
|
|
12182
|
+
class PackagesAccessor extends ElementListAccessor {
|
|
12174
12183
|
constructor(client) {
|
|
12175
|
-
super(client, '
|
|
12184
|
+
super(client, 'packages');
|
|
12176
12185
|
}
|
|
12177
12186
|
}
|
|
12178
|
-
class
|
|
12187
|
+
class PackageAccessor extends ElementAccessor {
|
|
12179
12188
|
constructor(client, selector) {
|
|
12180
12189
|
super({
|
|
12181
12190
|
client,
|
|
12182
12191
|
selector,
|
|
12183
|
-
path: '
|
|
12192
|
+
path: 'package',
|
|
12184
12193
|
});
|
|
12185
12194
|
}
|
|
12186
12195
|
}
|
|
12196
|
+
const ScenariosAccessor = PackagesAccessor;
|
|
12197
|
+
const ScenarioAccessor = PackageAccessor;
|
|
12187
12198
|
|
|
12188
12199
|
class ScreensAccessor extends ElementListAccessor {
|
|
12189
12200
|
constructor(client) {
|
|
@@ -12413,7 +12424,7 @@ const ScenarioTemplate = zod.z.object({
|
|
|
12413
12424
|
demoAppUri: zod.z.string().optional(),
|
|
12414
12425
|
demoGithubRepo: zod.z.string().optional(),
|
|
12415
12426
|
demoVideoYoutubeUri: zod.z.string().optional(),
|
|
12416
|
-
tags: zod.z.array(zod.z.
|
|
12427
|
+
tags: zod.z.array(zod.z.enum(exports.ScenarioTemplateCategory)).optional(),
|
|
12417
12428
|
elements: ScenarioTemplateElements.optional(),
|
|
12418
12429
|
connectors: zod.z.array(MinimalConnector).optional(),
|
|
12419
12430
|
handyElements: zod.z.array(HandyScenarioTemplateElement).optional(),
|
|
@@ -12693,11 +12704,11 @@ class MembraneClient extends MembraneApiClient {
|
|
|
12693
12704
|
get customers() {
|
|
12694
12705
|
return new CustomersAccessor(this);
|
|
12695
12706
|
}
|
|
12696
|
-
|
|
12697
|
-
return new
|
|
12707
|
+
package(selector) {
|
|
12708
|
+
return new PackageAccessor(this, selector);
|
|
12698
12709
|
}
|
|
12699
|
-
get
|
|
12700
|
-
return new
|
|
12710
|
+
get packages() {
|
|
12711
|
+
return new PackagesAccessor(this);
|
|
12701
12712
|
}
|
|
12702
12713
|
async createEventSource(uri, queryParams) {
|
|
12703
12714
|
return super.createEventSource(uri, queryParams);
|
|
@@ -12937,7 +12948,7 @@ exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegratio
|
|
|
12937
12948
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12938
12949
|
exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
|
|
12939
12950
|
exports.BaseMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties;
|
|
12940
|
-
exports.
|
|
12951
|
+
exports.BasePackage = BasePackage;
|
|
12941
12952
|
exports.BaseScreen = BaseScreen;
|
|
12942
12953
|
exports.BaseWorkspaceElement = BaseWorkspaceElement;
|
|
12943
12954
|
exports.CONFIG_FILE_NAME = CONFIG_FILE_NAME;
|
|
@@ -13100,7 +13111,7 @@ exports.FindFlowRunsQuery = FindFlowRunsQuery;
|
|
|
13100
13111
|
exports.FindFlowRunsResponse = FindFlowRunsResponse;
|
|
13101
13112
|
exports.FindFlowsQuery = FindFlowsQuery;
|
|
13102
13113
|
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
13103
|
-
exports.
|
|
13114
|
+
exports.FindPackagesQuery = FindPackagesQuery;
|
|
13104
13115
|
exports.FlowAccessor = FlowAccessor;
|
|
13105
13116
|
exports.FlowApiResponse = FlowApiResponse;
|
|
13106
13117
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
@@ -13145,6 +13156,7 @@ exports.IntegrationLevelFieldMappingAccessor = IntegrationLevelFieldMappingAcces
|
|
|
13145
13156
|
exports.IntegrationLevelFieldMappingsListAccessor = IntegrationLevelFieldMappingsListAccessor;
|
|
13146
13157
|
exports.IntegrationLevelFlowAccessor = IntegrationLevelFlowAccessor;
|
|
13147
13158
|
exports.IntegrationLevelFlowsListAccessor = IntegrationLevelFlowsListAccessor;
|
|
13159
|
+
exports.IntegrationLevelMembraneInterfaceSelectorQuery = IntegrationLevelMembraneInterfaceSelectorQuery;
|
|
13148
13160
|
exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
13149
13161
|
exports.InternalError = InternalError;
|
|
13150
13162
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
@@ -13164,17 +13176,20 @@ exports.NotFoundError = NotFoundError;
|
|
|
13164
13176
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
13165
13177
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
13166
13178
|
exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
|
|
13179
|
+
exports.PackageAccessor = PackageAccessor;
|
|
13180
|
+
exports.PackageApiResponse = PackageApiResponse;
|
|
13181
|
+
exports.PackageCalculatedProperties = PackageCalculatedProperties;
|
|
13182
|
+
exports.PackageEditableProperties = PackageEditableProperties;
|
|
13183
|
+
exports.PackageElement = PackageElement;
|
|
13184
|
+
exports.PackageElementApi = PackageElementApi;
|
|
13185
|
+
exports.PackagesAccessor = PackagesAccessor;
|
|
13167
13186
|
exports.PaginationQuery = PaginationQuery;
|
|
13168
13187
|
exports.PaginationResponse = PaginationResponse;
|
|
13169
13188
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
13170
13189
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
13171
13190
|
exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
13191
|
+
exports.RunActionRequest = RunActionRequest;
|
|
13172
13192
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
13173
|
-
exports.ScenarioApiResponse = ScenarioApiResponse;
|
|
13174
|
-
exports.ScenarioCalculatedProperties = ScenarioCalculatedProperties;
|
|
13175
|
-
exports.ScenarioEditableProperties = ScenarioEditableProperties;
|
|
13176
|
-
exports.ScenarioElement = ScenarioElement;
|
|
13177
|
-
exports.ScenarioElementApi = ScenarioElementApi;
|
|
13178
13193
|
exports.ScenarioTemplate = ScenarioTemplate;
|
|
13179
13194
|
exports.ScenarioTemplateElements = ScenarioTemplateElements;
|
|
13180
13195
|
exports.ScenariosAccessor = ScenariosAccessor;
|