@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.browser.js
CHANGED
|
@@ -46,7 +46,7 @@ exports.ConcurrencyErrorKey = void 0;
|
|
|
46
46
|
ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
|
|
47
47
|
})(exports.ConcurrencyErrorKey || (exports.ConcurrencyErrorKey = {}));
|
|
48
48
|
const ErrorDataSchema = zod.z.lazy(() => zod.z.object({
|
|
49
|
-
type: zod.z.
|
|
49
|
+
type: zod.z.enum(exports.ErrorType).optional(),
|
|
50
50
|
key: zod.z.string().optional(),
|
|
51
51
|
message: zod.z.string(),
|
|
52
52
|
data: zod.z.any().optional(),
|
|
@@ -3383,7 +3383,7 @@ exports.WorkspaceElementType = void 0;
|
|
|
3383
3383
|
WorkspaceElementType["FlowInstance"] = "flow-instance";
|
|
3384
3384
|
WorkspaceElementType["FlowRun"] = "flow-run";
|
|
3385
3385
|
WorkspaceElementType["Action"] = "action";
|
|
3386
|
-
WorkspaceElementType["
|
|
3386
|
+
WorkspaceElementType["Package"] = "package";
|
|
3387
3387
|
WorkspaceElementType["ActionInstance"] = "action-instance";
|
|
3388
3388
|
WorkspaceElementType["Connection"] = "connection";
|
|
3389
3389
|
WorkspaceElementType["FieldMapping"] = "field-mapping";
|
|
@@ -3440,7 +3440,7 @@ const BaseMembraneInterfaceEditableProperties = zod.z.object({
|
|
|
3440
3440
|
});
|
|
3441
3441
|
const BaseMembraneInterfaceReadOnlyProperties = zod.z.object({
|
|
3442
3442
|
name: zod.z.string(),
|
|
3443
|
-
state: zod.z.
|
|
3443
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
3444
3444
|
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
3445
3445
|
revision: zod.z.string().optional(),
|
|
3446
3446
|
createdAt: zod.z.string().optional(),
|
|
@@ -3456,6 +3456,11 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3456
3456
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3457
3457
|
isCustomized: zod.z.boolean().optional(),
|
|
3458
3458
|
});
|
|
3459
|
+
const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
3460
|
+
integrationKey: zod.z.string().optional(),
|
|
3461
|
+
connectionId: zod.z.string().optional(),
|
|
3462
|
+
instanceKey: zod.z.string().optional(),
|
|
3463
|
+
});
|
|
3459
3464
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3460
3465
|
|
|
3461
3466
|
function mergeWithFormulas(a, b) {
|
|
@@ -3501,7 +3506,7 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3501
3506
|
dataSourceKey: zod.z.string().optional(),
|
|
3502
3507
|
dataSourceId: zod.z.string().optional(),
|
|
3503
3508
|
appSchema: DataSchema.optional(),
|
|
3504
|
-
direction: zod.z.
|
|
3509
|
+
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
3505
3510
|
defaultImportValue: zod.z.any().optional(),
|
|
3506
3511
|
defaultExportValue: zod.z.any().optional(),
|
|
3507
3512
|
importValue: zod.z.any().optional(),
|
|
@@ -3623,17 +3628,34 @@ const ACTIONS = {
|
|
|
3623
3628
|
},
|
|
3624
3629
|
};
|
|
3625
3630
|
|
|
3631
|
+
exports.ActionDependencyType = void 0;
|
|
3632
|
+
(function (ActionDependencyType) {
|
|
3633
|
+
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
3634
|
+
ActionDependencyType["DataSource"] = "DataSource";
|
|
3635
|
+
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
3636
|
+
const ActionDependency = zod.z.object({
|
|
3637
|
+
type: zod.z.enum(exports.ActionDependencyType),
|
|
3638
|
+
key: zod.z.string(),
|
|
3639
|
+
element: zod.z.any().optional(),
|
|
3640
|
+
});
|
|
3626
3641
|
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
3627
3642
|
integrationId: zod.z.string().optional(),
|
|
3643
|
+
connectionId: zod.z.string().optional(),
|
|
3628
3644
|
parentId: zod.z.string().optional(),
|
|
3645
|
+
instanceKey: zod.z.string().optional(),
|
|
3629
3646
|
inputSchema: DataSchema.optional(),
|
|
3630
|
-
type: zod.z.
|
|
3647
|
+
type: zod.z.enum(exports.ActionType).optional(),
|
|
3631
3648
|
config: zod.z.any().optional(),
|
|
3632
3649
|
outputMapping: zod.z.any().optional(),
|
|
3633
3650
|
customOutputSchema: DataSchema.optional(),
|
|
3634
3651
|
});
|
|
3635
|
-
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties
|
|
3652
|
+
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3653
|
+
universalParentId: zod.z.string().optional(),
|
|
3654
|
+
userId: zod.z.string().optional(),
|
|
3655
|
+
outputSchema: zod.z.any().optional(),
|
|
3656
|
+
});
|
|
3636
3657
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3658
|
+
const BaseActionInstance = BaseAction;
|
|
3637
3659
|
|
|
3638
3660
|
const ConnectionRequest = zod.z.object({
|
|
3639
3661
|
path: zod.z.any(),
|
|
@@ -3649,7 +3671,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3649
3671
|
isTest: zod.z.boolean().optional(),
|
|
3650
3672
|
disconnected: zod.z.boolean().optional(),
|
|
3651
3673
|
isDefunct: zod.z.boolean().optional(),
|
|
3652
|
-
state: zod.z.
|
|
3674
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
3653
3675
|
error: ErrorDataSchema.optional(),
|
|
3654
3676
|
integrationId: zod.z.string(),
|
|
3655
3677
|
authOptionKey: zod.z.string().optional(),
|
|
@@ -8396,7 +8418,7 @@ exports.IncomingWebhooksState = void 0;
|
|
|
8396
8418
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8397
8419
|
})(exports.IncomingWebhooksState || (exports.IncomingWebhooksState = {}));
|
|
8398
8420
|
const ExternalEventUnitConfig = zod.z.object({
|
|
8399
|
-
type: zod.z.
|
|
8421
|
+
type: zod.z.enum(exports.ExternalEventType),
|
|
8400
8422
|
dataSource: DataSourceUnitConfig.optional(),
|
|
8401
8423
|
eventKey: zod.z.string().optional(),
|
|
8402
8424
|
eventParameters: zod.z.any().optional(),
|
|
@@ -8454,11 +8476,11 @@ exports.FlowRunLaunchedByTrigger = void 0;
|
|
|
8454
8476
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8455
8477
|
})(exports.FlowRunLaunchedByTrigger || (exports.FlowRunLaunchedByTrigger = {}));
|
|
8456
8478
|
const FlowRunLaunchedBy = zod.z.object({
|
|
8457
|
-
type: zod.z.
|
|
8479
|
+
type: zod.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
8458
8480
|
ids: zod.z.array(zod.z.string()).optional(),
|
|
8459
8481
|
});
|
|
8460
8482
|
const FlowRunNode = zod.z.object({
|
|
8461
|
-
state: zod.z.
|
|
8483
|
+
state: zod.z.enum(exports.FlowRunNodeState),
|
|
8462
8484
|
runs: zod.z.number().optional(),
|
|
8463
8485
|
erroredRuns: zod.z.number().optional(),
|
|
8464
8486
|
outputs: zod.z.number().optional(),
|
|
@@ -8473,7 +8495,7 @@ const BaseFlowRun = zod.z.object({
|
|
|
8473
8495
|
startNodeKey: zod.z.string(),
|
|
8474
8496
|
userId: zod.z.string(),
|
|
8475
8497
|
input: zod.z.any().optional(),
|
|
8476
|
-
state: zod.z.
|
|
8498
|
+
state: zod.z.enum(exports.FlowRunState),
|
|
8477
8499
|
startTime: zod.z.string(),
|
|
8478
8500
|
endTime: zod.z.string().optional(),
|
|
8479
8501
|
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
@@ -8507,7 +8529,7 @@ const FlowNodeRunOutputSchema = zod.z.object({
|
|
|
8507
8529
|
downstreamRuns: zod.z.array(DownstreamFlowNodeRunSchema),
|
|
8508
8530
|
});
|
|
8509
8531
|
const FlowNodeRunResultSchema = zod.z.object({
|
|
8510
|
-
status: zod.z.
|
|
8532
|
+
status: zod.z.enum(exports.FlowNodeRunStatus),
|
|
8511
8533
|
logs: zod.z.array(zod.z.any()),
|
|
8512
8534
|
outputs: zod.z.array(FlowNodeRunOutputSchema),
|
|
8513
8535
|
errors: zod.z.array(ErrorDataSchema),
|
|
@@ -8525,7 +8547,7 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = zod.z.object({
|
|
|
8525
8547
|
id: zod.z.string(),
|
|
8526
8548
|
upstreamRuns: zod.z.array(UpstreamFlowNodeRunSchema),
|
|
8527
8549
|
input: zod.z.any(),
|
|
8528
|
-
status: zod.z.
|
|
8550
|
+
status: zod.z.enum(exports.FlowNodeRunStatus),
|
|
8529
8551
|
logs: zod.z.array(zod.z.any()),
|
|
8530
8552
|
outputs: zod.z.array(FlowNodeRunOutputMetadataSchema),
|
|
8531
8553
|
errors: zod.z.array(ErrorDataSchema),
|
|
@@ -8885,23 +8907,23 @@ exports.IntegrationElementType = void 0;
|
|
|
8885
8907
|
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
8886
8908
|
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
8887
8909
|
|
|
8888
|
-
const
|
|
8910
|
+
const PackageElement = zod.z.object({
|
|
8889
8911
|
id: zod.z.string(),
|
|
8890
|
-
type: zod.z.
|
|
8912
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
8891
8913
|
element: zod.z.any().optional(),
|
|
8892
8914
|
});
|
|
8893
|
-
const
|
|
8915
|
+
const PackageEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8894
8916
|
scenarioTemplateId: zod.z.string().optional(),
|
|
8895
|
-
elements: zod.z.array(
|
|
8917
|
+
elements: zod.z.array(PackageElement).optional(),
|
|
8896
8918
|
integrationId: zod.z.string().optional(),
|
|
8897
8919
|
parentId: zod.z.string().optional(),
|
|
8898
8920
|
});
|
|
8899
|
-
const
|
|
8921
|
+
const PackageCalculatedProperties = zod.z.object({
|
|
8900
8922
|
key: zod.z.string(),
|
|
8901
8923
|
name: zod.z.string(),
|
|
8902
8924
|
isCustomized: zod.z.boolean().optional(),
|
|
8903
8925
|
});
|
|
8904
|
-
const
|
|
8926
|
+
const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
|
|
8905
8927
|
|
|
8906
8928
|
exports.ScreenType = void 0;
|
|
8907
8929
|
(function (ScreenType) {
|
|
@@ -8916,11 +8938,11 @@ exports.ScreenBlockType = void 0;
|
|
|
8916
8938
|
})(exports.ScreenBlockType || (exports.ScreenBlockType = {}));
|
|
8917
8939
|
const ScreenBlock = zod.z
|
|
8918
8940
|
.object({
|
|
8919
|
-
type: zod.z.
|
|
8941
|
+
type: zod.z.enum(exports.ScreenBlockType),
|
|
8920
8942
|
})
|
|
8921
8943
|
.and(zod.z.record(zod.z.string(), zod.z.any()));
|
|
8922
8944
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8923
|
-
type: zod.z.
|
|
8945
|
+
type: zod.z.enum(exports.ScreenType),
|
|
8924
8946
|
key: zod.z.string().optional(),
|
|
8925
8947
|
blocks: zod.z.array(ScreenBlock),
|
|
8926
8948
|
});
|
|
@@ -8952,7 +8974,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8952
8974
|
enabled: zod.z.boolean(),
|
|
8953
8975
|
createdAt: zod.z.string(),
|
|
8954
8976
|
updatedAt: zod.z.string(),
|
|
8955
|
-
state: zod.z.
|
|
8977
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
8956
8978
|
customized: zod.z
|
|
8957
8979
|
.object({
|
|
8958
8980
|
name: zod.z.boolean().optional(),
|
|
@@ -8967,7 +8989,7 @@ exports.FlowInstanceNodeState = void 0;
|
|
|
8967
8989
|
FlowInstanceNodeState["READY"] = "READY";
|
|
8968
8990
|
})(exports.FlowInstanceNodeState || (exports.FlowInstanceNodeState = {}));
|
|
8969
8991
|
const FlowInstanceNode = FlowNode.extend({
|
|
8970
|
-
state: zod.z.
|
|
8992
|
+
state: zod.z.enum(exports.FlowInstanceNodeState).optional(),
|
|
8971
8993
|
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
8972
8994
|
userConfig: zod.z.any().optional(),
|
|
8973
8995
|
testInput: zod.z.any().optional(),
|
|
@@ -9031,27 +9053,6 @@ const updateFlowInstanceSchema = zod.z.object({
|
|
|
9031
9053
|
.optional(),
|
|
9032
9054
|
});
|
|
9033
9055
|
|
|
9034
|
-
exports.ActionDependencyType = void 0;
|
|
9035
|
-
(function (ActionDependencyType) {
|
|
9036
|
-
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
9037
|
-
ActionDependencyType["DataSource"] = "DataSource";
|
|
9038
|
-
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
9039
|
-
const ActionDependency = zod.z.object({
|
|
9040
|
-
type: zod.z.nativeEnum(exports.ActionDependencyType),
|
|
9041
|
-
key: zod.z.string(),
|
|
9042
|
-
element: zod.z.any().optional(),
|
|
9043
|
-
});
|
|
9044
|
-
const BaseActionInstance = BaseMembraneInterface.extend({
|
|
9045
|
-
parentId: zod.z.string().optional(),
|
|
9046
|
-
universalParentId: zod.z.string().optional(),
|
|
9047
|
-
userId: zod.z.string(),
|
|
9048
|
-
instanceKey: zod.z.string().optional(),
|
|
9049
|
-
type: zod.z.nativeEnum(exports.ActionType).optional(),
|
|
9050
|
-
inputSchema: zod.z.any().optional(),
|
|
9051
|
-
config: zod.z.any().optional(),
|
|
9052
|
-
outputSchema: zod.z.any().optional(),
|
|
9053
|
-
});
|
|
9054
|
-
|
|
9055
9056
|
const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
9056
9057
|
userId: zod.z.string(),
|
|
9057
9058
|
revision: zod.z.string(),
|
|
@@ -9062,7 +9063,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9062
9063
|
instanceKey: zod.z.string().optional(),
|
|
9063
9064
|
dataSourceInstanceId: zod.z.string().optional(),
|
|
9064
9065
|
dataSourceSchema: DataSchema.optional(),
|
|
9065
|
-
direction: zod.z.
|
|
9066
|
+
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
9066
9067
|
appSchema: DataSchema.optional(),
|
|
9067
9068
|
importValue: zod.z.any().optional(),
|
|
9068
9069
|
exportValue: zod.z.any().optional(),
|
|
@@ -9071,7 +9072,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9071
9072
|
unifiedImportValue: zod.z.any().optional(),
|
|
9072
9073
|
frozenImportFields: zod.z.array(zod.z.string()).optional(),
|
|
9073
9074
|
frozenExportFields: zod.z.array(zod.z.string()).optional(),
|
|
9074
|
-
state: zod.z.
|
|
9075
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
9075
9076
|
error: ErrorDataSchema.optional(),
|
|
9076
9077
|
externalSchema: zod.z.any().optional(),
|
|
9077
9078
|
});
|
|
@@ -9099,7 +9100,7 @@ const DataLink = zod.z.object({
|
|
|
9099
9100
|
dataLinkTableInstanceId: zod.z.string(),
|
|
9100
9101
|
externalRecordId: zod.z.string(),
|
|
9101
9102
|
appRecordId: zod.z.string(),
|
|
9102
|
-
direction: zod.z.
|
|
9103
|
+
direction: zod.z.enum(exports.DataLinkDirection),
|
|
9103
9104
|
});
|
|
9104
9105
|
const DataLinkTableConfig = zod.z.object({
|
|
9105
9106
|
key: zod.z.string(),
|
|
@@ -9114,7 +9115,7 @@ exports.HttpRequestMethod = void 0;
|
|
|
9114
9115
|
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9115
9116
|
})(exports.HttpRequestMethod || (exports.HttpRequestMethod = {}));
|
|
9116
9117
|
const HttpRequestSpec = zod.z.object({
|
|
9117
|
-
method: zod.z.string().toUpperCase().pipe(zod.z.
|
|
9118
|
+
method: zod.z.string().toUpperCase().pipe(zod.z.enum(exports.HttpRequestMethod)).optional(),
|
|
9118
9119
|
uri: zod.z.any(),
|
|
9119
9120
|
headers: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
9120
9121
|
query: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
@@ -9197,7 +9198,7 @@ exports.ExternalEventSubscriptionType = void 0;
|
|
|
9197
9198
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9198
9199
|
})(exports.ExternalEventSubscriptionType || (exports.ExternalEventSubscriptionType = {}));
|
|
9199
9200
|
const ExternalEventSubscriptionConfig = zod.z.object({
|
|
9200
|
-
type: zod.z.
|
|
9201
|
+
type: zod.z.enum(exports.ExternalEventSubscriptionType),
|
|
9201
9202
|
dataSource: DataSourceUnitConfig.optional(),
|
|
9202
9203
|
eventKey: zod.z.string().optional(),
|
|
9203
9204
|
eventParameters: zod.z.any().optional(),
|
|
@@ -9209,7 +9210,7 @@ const BaseExternalEventSubscription = zod.z.object({
|
|
|
9209
9210
|
connectionId: zod.z.string(),
|
|
9210
9211
|
integrationId: zod.z.string(),
|
|
9211
9212
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
9212
|
-
status: zod.z.
|
|
9213
|
+
status: zod.z.enum(exports.ExternalEventSubscriptionStatus).optional(),
|
|
9213
9214
|
error: ErrorDataSchema.optional(),
|
|
9214
9215
|
isRealTime: zod.z.boolean().optional(),
|
|
9215
9216
|
requiresPull: zod.z.boolean().optional(),
|
|
@@ -9240,7 +9241,7 @@ const BaseExternalEventLogRecord = zod.z.object({
|
|
|
9240
9241
|
connectionId: zod.z.string(),
|
|
9241
9242
|
payload: zod.z.any().optional(),
|
|
9242
9243
|
launchedFlowRunIds: zod.z.array(zod.z.string()).optional(),
|
|
9243
|
-
status: zod.z.
|
|
9244
|
+
status: zod.z.enum(exports.ExternalEventLogStatus),
|
|
9244
9245
|
error: ErrorDataSchema.optional(),
|
|
9245
9246
|
});
|
|
9246
9247
|
|
|
@@ -9261,7 +9262,7 @@ const BaseExternalEventPull = zod.z.object({
|
|
|
9261
9262
|
startDatetime: zod.z.string(),
|
|
9262
9263
|
endDatetime: zod.z.string(),
|
|
9263
9264
|
isFullScan: zod.z.boolean().optional(),
|
|
9264
|
-
status: zod.z.
|
|
9265
|
+
status: zod.z.enum(exports.ExternalEventPullStatus),
|
|
9265
9266
|
collectedEventIds: zod.z.array(zod.z.string()),
|
|
9266
9267
|
error: ErrorDataSchema.optional(),
|
|
9267
9268
|
});
|
|
@@ -9277,7 +9278,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9277
9278
|
connectionId: zod.z.string(),
|
|
9278
9279
|
input: zod.z.any().optional(),
|
|
9279
9280
|
output: zod.z.any().optional(),
|
|
9280
|
-
status: zod.z.
|
|
9281
|
+
status: zod.z.enum(exports.ActionRunLogStatus),
|
|
9281
9282
|
createdAt: zod.z.string(),
|
|
9282
9283
|
completedAt: zod.z.string().optional(),
|
|
9283
9284
|
error: ErrorDataSchema.optional(),
|
|
@@ -9323,6 +9324,8 @@ class PaginationResponse {
|
|
|
9323
9324
|
|
|
9324
9325
|
const ActionApiResponse = BaseAction.extend({
|
|
9325
9326
|
integration: BaseIntegration.optional(),
|
|
9327
|
+
user: BaseCustomer.optional(),
|
|
9328
|
+
parent: BaseAction.optional(),
|
|
9326
9329
|
appliedToIntegrations: AppliedToIntegrations(BaseAction).optional(),
|
|
9327
9330
|
defaultOutputSchema: DataSchema.optional(),
|
|
9328
9331
|
transformedOutputSchema: DataSchema.optional(),
|
|
@@ -9332,41 +9335,27 @@ const ActionApiResponse = BaseAction.extend({
|
|
|
9332
9335
|
const FindActionsQuery = PaginationQuery.extend({
|
|
9333
9336
|
integrationId: zod.z.string().optional(),
|
|
9334
9337
|
parentId: zod.z.string().optional(),
|
|
9338
|
+
universalParentId: zod.z.string().optional(),
|
|
9335
9339
|
integrationKey: zod.z.string().optional(),
|
|
9336
9340
|
search: zod.z.string().optional(),
|
|
9337
9341
|
includeArchived: zodBooleanCoercion().optional(),
|
|
9342
|
+
userId: zod.z.string().optional(),
|
|
9343
|
+
connectionId: zod.z.string().optional(),
|
|
9338
9344
|
});
|
|
9339
9345
|
const CreateActionRequest = ActionEditableProperties;
|
|
9340
9346
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9347
|
+
const CreateActionInstanceRequest = CreateActionRequest;
|
|
9348
|
+
const UpdateActionInstanceRequest = UpdateActionRequest;
|
|
9349
|
+
const RunActionRequest = zod.z.object({
|
|
9350
|
+
input: zod.z.any().optional(),
|
|
9351
|
+
});
|
|
9341
9352
|
const ActionRunResponse = zod.z.object({
|
|
9342
9353
|
output: zod.z.any().optional(),
|
|
9343
9354
|
logs: zod.z.array(zod.z.any()).optional(),
|
|
9344
9355
|
});
|
|
9345
|
-
|
|
9346
|
-
const
|
|
9347
|
-
|
|
9348
|
-
parent: BaseAction.optional(),
|
|
9349
|
-
});
|
|
9350
|
-
const ListActionInstancesForConnectionQuery = zod.z
|
|
9351
|
-
.object({
|
|
9352
|
-
parentId: zod.z.string().optional(),
|
|
9353
|
-
universalParentId: zod.z.string().optional(),
|
|
9354
|
-
})
|
|
9355
|
-
.merge(PaginationQuery);
|
|
9356
|
-
const FindActionInstancesQuery = ListActionInstancesForConnectionQuery.extend({
|
|
9357
|
-
integrationKey: zod.z.string().optional(),
|
|
9358
|
-
integrationId: zod.z.string().optional(),
|
|
9359
|
-
userId: zod.z.string().optional(),
|
|
9360
|
-
connectionId: zod.z.string().optional(),
|
|
9361
|
-
});
|
|
9362
|
-
const CreateActionInstanceRequest = zod.z.object({
|
|
9363
|
-
parentId: zod.z.string(),
|
|
9364
|
-
connectionId: zod.z.string(),
|
|
9365
|
-
config: zod.z.any().optional(),
|
|
9366
|
-
});
|
|
9367
|
-
const UpdateActionInstanceRequest = zod.z.object({
|
|
9368
|
-
config: zod.z.any().optional(),
|
|
9369
|
-
});
|
|
9356
|
+
const ActionInstanceApiResponse = ActionApiResponse;
|
|
9357
|
+
const ListActionInstancesForConnectionQuery = FindActionsQuery;
|
|
9358
|
+
const FindActionInstancesQuery = FindActionsQuery;
|
|
9370
9359
|
|
|
9371
9360
|
const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
9372
9361
|
action: BaseAction.optional(),
|
|
@@ -9567,13 +9556,13 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
9567
9556
|
flowId: zod.z.string().optional(),
|
|
9568
9557
|
universalFlowId: zod.z.string().optional(),
|
|
9569
9558
|
userId: zod.z.string().optional(),
|
|
9570
|
-
state: zod.z.
|
|
9559
|
+
state: zod.z.enum(exports.FlowRunState).optional(),
|
|
9571
9560
|
integrationId: zod.z.string().optional(),
|
|
9572
9561
|
connectionId: zod.z.string().optional(),
|
|
9573
9562
|
startedAfter: zod.z.string().optional(),
|
|
9574
9563
|
});
|
|
9575
9564
|
const FlowRunLaunchedByApi = zod.z.object({
|
|
9576
|
-
type: zod.z.
|
|
9565
|
+
type: zod.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
9577
9566
|
ids: zod.z.array(zod.z.string()).optional(),
|
|
9578
9567
|
});
|
|
9579
9568
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
@@ -9618,14 +9607,22 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9618
9607
|
parametersSchema: DataSchema.optional(),
|
|
9619
9608
|
});
|
|
9620
9609
|
|
|
9621
|
-
const
|
|
9610
|
+
const PackageElementApi = zod.z.object({
|
|
9622
9611
|
id: zod.z.string(),
|
|
9623
|
-
type: zod.z.
|
|
9612
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
9624
9613
|
element: zod.z.any().optional(),
|
|
9625
9614
|
});
|
|
9626
|
-
const
|
|
9627
|
-
|
|
9628
|
-
|
|
9615
|
+
const FindPackagesQuery = zod.z
|
|
9616
|
+
.object({
|
|
9617
|
+
integrationId: zod.z.string().optional(),
|
|
9618
|
+
integrationKey: zod.z.string().optional(),
|
|
9619
|
+
parentId: zod.z.string().optional(),
|
|
9620
|
+
})
|
|
9621
|
+
.extend(SearchQuery.shape)
|
|
9622
|
+
.extend(PaginationQuery.shape)
|
|
9623
|
+
.extend(IncludeArchivedQuery.shape);
|
|
9624
|
+
const PackageApiResponse = BasePackage.extend({
|
|
9625
|
+
appliedToIntegrations: AppliedToIntegrations(BasePackage).optional(),
|
|
9629
9626
|
});
|
|
9630
9627
|
|
|
9631
9628
|
const ScreenApiResponse = BaseScreen;
|
|
@@ -9700,7 +9697,7 @@ const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
9700
9697
|
connectionId: zod.z.string().optional(),
|
|
9701
9698
|
integrationId: zod.z.string().optional(),
|
|
9702
9699
|
externalEventSubscriptionId: zod.z.string().optional(),
|
|
9703
|
-
status: zod.z.
|
|
9700
|
+
status: zod.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9704
9701
|
});
|
|
9705
9702
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9706
9703
|
user: BaseCustomer.optional(),
|
|
@@ -9713,7 +9710,7 @@ const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
|
9713
9710
|
connectionId: zod.z.string().optional(),
|
|
9714
9711
|
integrationId: zod.z.string().optional(),
|
|
9715
9712
|
externalEventSubscriptionId: zod.z.string().optional(),
|
|
9716
|
-
status: zod.z.
|
|
9713
|
+
status: zod.z.enum(exports.ExternalEventPullStatus).optional(),
|
|
9717
9714
|
});
|
|
9718
9715
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9719
9716
|
user: BaseCustomer.optional(),
|
|
@@ -9906,20 +9903,23 @@ const WorkspaceElementSpecs = {
|
|
|
9906
9903
|
name: 'Connection',
|
|
9907
9904
|
namePlural: 'Connections',
|
|
9908
9905
|
},
|
|
9909
|
-
[exports.WorkspaceElementType.
|
|
9910
|
-
type: exports.WorkspaceElementType.
|
|
9911
|
-
apiPath: '
|
|
9912
|
-
name: '
|
|
9913
|
-
namePlural: '
|
|
9914
|
-
editablePropertiesSchema:
|
|
9915
|
-
apiResponseSchema:
|
|
9916
|
-
findQuerySchema:
|
|
9906
|
+
[exports.WorkspaceElementType.Package]: {
|
|
9907
|
+
type: exports.WorkspaceElementType.Package,
|
|
9908
|
+
apiPath: 'packages',
|
|
9909
|
+
name: 'Package',
|
|
9910
|
+
namePlural: 'Packages',
|
|
9911
|
+
editablePropertiesSchema: PackageEditableProperties,
|
|
9912
|
+
apiResponseSchema: PackageApiResponse,
|
|
9913
|
+
findQuerySchema: FindPackagesQuery,
|
|
9914
|
+
isMembraneInterface: true,
|
|
9915
|
+
isIntegrationLevel: true,
|
|
9917
9916
|
},
|
|
9918
9917
|
[exports.WorkspaceElementType.ActionInstance]: {
|
|
9919
9918
|
type: exports.WorkspaceElementType.ActionInstance,
|
|
9920
9919
|
apiPath: 'action-instances',
|
|
9921
9920
|
name: 'Action Instance',
|
|
9922
9921
|
namePlural: 'Action Instances',
|
|
9922
|
+
isMembraneInterface: true,
|
|
9923
9923
|
},
|
|
9924
9924
|
[exports.WorkspaceElementType.Action]: {
|
|
9925
9925
|
type: exports.WorkspaceElementType.Action,
|
|
@@ -9929,6 +9929,8 @@ const WorkspaceElementSpecs = {
|
|
|
9929
9929
|
editablePropertiesSchema: ActionEditableProperties,
|
|
9930
9930
|
apiResponseSchema: ActionApiResponse,
|
|
9931
9931
|
findQuerySchema: FindActionsQuery,
|
|
9932
|
+
isMembraneInterface: true,
|
|
9933
|
+
isIntegrationLevel: true,
|
|
9932
9934
|
},
|
|
9933
9935
|
[exports.WorkspaceElementType.ActionRunLogRecord]: {
|
|
9934
9936
|
type: exports.WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -9942,6 +9944,8 @@ const WorkspaceElementSpecs = {
|
|
|
9942
9944
|
name: 'Flow',
|
|
9943
9945
|
namePlural: 'Flows',
|
|
9944
9946
|
parentFieldKey: 'universalFlowId',
|
|
9947
|
+
isMembraneInterface: true,
|
|
9948
|
+
isIntegrationLevel: true,
|
|
9945
9949
|
},
|
|
9946
9950
|
[exports.WorkspaceElementType.FlowInstance]: {
|
|
9947
9951
|
type: exports.WorkspaceElementType.FlowInstance,
|
|
@@ -9950,6 +9954,8 @@ const WorkspaceElementSpecs = {
|
|
|
9950
9954
|
updateSchema: updateFlowInstanceSchema,
|
|
9951
9955
|
name: 'Flow',
|
|
9952
9956
|
namePlural: 'Flows',
|
|
9957
|
+
parentFieldKey: 'flowId',
|
|
9958
|
+
isMembraneInterface: true,
|
|
9953
9959
|
},
|
|
9954
9960
|
[exports.WorkspaceElementType.FlowRun]: {
|
|
9955
9961
|
type: exports.WorkspaceElementType.FlowRun,
|
|
@@ -9963,12 +9969,16 @@ const WorkspaceElementSpecs = {
|
|
|
9963
9969
|
name: 'Field Mapping',
|
|
9964
9970
|
namePlural: 'Field Mappings',
|
|
9965
9971
|
parentFieldKey: 'universalFieldMappingId',
|
|
9972
|
+
isMembraneInterface: true,
|
|
9973
|
+
isIntegrationLevel: true,
|
|
9966
9974
|
},
|
|
9967
9975
|
[exports.WorkspaceElementType.FieldMappingInstance]: {
|
|
9968
9976
|
type: exports.WorkspaceElementType.FieldMappingInstance,
|
|
9969
9977
|
apiPath: 'field-mapping-instances',
|
|
9970
9978
|
name: 'Field Mapping Instance',
|
|
9971
9979
|
namePlural: 'Field Mapping Instances',
|
|
9980
|
+
parentFieldKey: 'fieldMappingId',
|
|
9981
|
+
isMembraneInterface: true,
|
|
9972
9982
|
},
|
|
9973
9983
|
[exports.WorkspaceElementType.DataCollection]: {
|
|
9974
9984
|
type: exports.WorkspaceElementType.DataCollection,
|
|
@@ -9982,36 +9992,45 @@ const WorkspaceElementSpecs = {
|
|
|
9982
9992
|
name: 'Data Source',
|
|
9983
9993
|
namePlural: 'Data Sources',
|
|
9984
9994
|
parentFieldKey: 'universalDataSourceId',
|
|
9995
|
+
isMembraneInterface: true,
|
|
9996
|
+
isIntegrationLevel: true,
|
|
9985
9997
|
},
|
|
9986
9998
|
[exports.WorkspaceElementType.DataSourceInstance]: {
|
|
9987
9999
|
type: exports.WorkspaceElementType.DataSourceInstance,
|
|
9988
10000
|
apiPath: 'data-source-instances',
|
|
9989
10001
|
name: 'Data Source Instance',
|
|
9990
10002
|
namePlural: 'Data Source Instances',
|
|
10003
|
+
parentFieldKey: 'dataSourceId',
|
|
10004
|
+
isMembraneInterface: true,
|
|
9991
10005
|
},
|
|
9992
10006
|
[exports.WorkspaceElementType.DataLinkTable]: {
|
|
9993
10007
|
type: exports.WorkspaceElementType.DataLinkTable,
|
|
9994
10008
|
apiPath: 'data-link-tables',
|
|
9995
10009
|
name: 'Data Link Table',
|
|
9996
10010
|
namePlural: 'Data Link Tables',
|
|
10011
|
+
isMembraneInterface: true,
|
|
9997
10012
|
},
|
|
9998
10013
|
[exports.WorkspaceElementType.DataLinkTableInstance]: {
|
|
9999
10014
|
type: exports.WorkspaceElementType.DataLinkTableInstance,
|
|
10000
10015
|
apiPath: 'data-link-table-instances',
|
|
10001
10016
|
name: 'Data Link Table Instance',
|
|
10002
10017
|
namePlural: 'Data Link Table Instances',
|
|
10018
|
+
parentFieldKey: 'dataLinkTableId',
|
|
10019
|
+
isMembraneInterface: true,
|
|
10003
10020
|
},
|
|
10004
10021
|
[exports.WorkspaceElementType.AppEventType]: {
|
|
10005
10022
|
type: exports.WorkspaceElementType.AppEventType,
|
|
10006
10023
|
apiPath: 'app-event-types',
|
|
10007
10024
|
name: 'App Event Type',
|
|
10008
10025
|
namePlural: 'App Event Types',
|
|
10026
|
+
isMembraneInterface: true,
|
|
10009
10027
|
},
|
|
10010
10028
|
[exports.WorkspaceElementType.AppEventSubscription]: {
|
|
10011
10029
|
type: exports.WorkspaceElementType.AppEventSubscription,
|
|
10012
10030
|
apiPath: 'app-event-subscriptions',
|
|
10013
10031
|
name: 'App Event Subscription',
|
|
10014
10032
|
namePlural: 'App Event Subscriptions',
|
|
10033
|
+
isMembraneInterface: true,
|
|
10015
10034
|
},
|
|
10016
10035
|
[exports.WorkspaceElementType.AppEventLogRecord]: {
|
|
10017
10036
|
type: exports.WorkspaceElementType.AppEventLogRecord,
|
|
@@ -10024,18 +10043,22 @@ const WorkspaceElementSpecs = {
|
|
|
10024
10043
|
apiPath: 'app-data-schemas',
|
|
10025
10044
|
name: 'App Data Schema',
|
|
10026
10045
|
namePlural: 'App Data Schemas',
|
|
10046
|
+
isMembraneInterface: true,
|
|
10027
10047
|
},
|
|
10028
10048
|
[exports.WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10029
10049
|
type: exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
10030
10050
|
apiPath: 'app-data-schema-instances',
|
|
10031
10051
|
name: 'App Data Schema Instance',
|
|
10032
10052
|
namePlural: 'App Data Schema Instances',
|
|
10053
|
+
parentFieldKey: 'appDataSchemaId',
|
|
10054
|
+
isMembraneInterface: true,
|
|
10033
10055
|
},
|
|
10034
10056
|
[exports.WorkspaceElementType.ExternalEventSubscription]: {
|
|
10035
10057
|
type: exports.WorkspaceElementType.ExternalEventSubscription,
|
|
10036
10058
|
apiPath: 'external-event-subscriptions',
|
|
10037
10059
|
name: 'External Event Subscription',
|
|
10038
10060
|
namePlural: 'External Event Subscriptions',
|
|
10061
|
+
isMembraneInterface: true,
|
|
10039
10062
|
},
|
|
10040
10063
|
[exports.WorkspaceElementType.ExternalEventLogRecord]: {
|
|
10041
10064
|
type: exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -10054,6 +10077,7 @@ const WorkspaceElementSpecs = {
|
|
|
10054
10077
|
apiPath: 'screens',
|
|
10055
10078
|
name: 'Screen',
|
|
10056
10079
|
namePlural: 'Screens',
|
|
10080
|
+
isMembraneInterface: true,
|
|
10057
10081
|
},
|
|
10058
10082
|
};
|
|
10059
10083
|
|
|
@@ -10668,6 +10692,9 @@ exports.WebhookTypeEnum = void 0;
|
|
|
10668
10692
|
WebhookTypeEnum["USER_INVITED_TO_ORG"] = "user-invited-to-org";
|
|
10669
10693
|
WebhookTypeEnum["ORG_ACCESS_REQUESTED"] = "org-access-requested";
|
|
10670
10694
|
WebhookTypeEnum["ORG_CREATED"] = "org-created";
|
|
10695
|
+
WebhookTypeEnum["TASK_CREATED"] = "task-created";
|
|
10696
|
+
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
10697
|
+
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
10671
10698
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
10672
10699
|
|
|
10673
10700
|
exports.AlertStatus = void 0;
|
|
@@ -10683,6 +10710,8 @@ exports.AlertSeverity = void 0;
|
|
|
10683
10710
|
exports.AlertType = void 0;
|
|
10684
10711
|
(function (AlertType) {
|
|
10685
10712
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
10713
|
+
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
10714
|
+
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
10686
10715
|
})(exports.AlertType || (exports.AlertType = {}));
|
|
10687
10716
|
|
|
10688
10717
|
class ElementAccessor {
|
|
@@ -10871,11 +10900,6 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10871
10900
|
path: 'action',
|
|
10872
10901
|
});
|
|
10873
10902
|
}
|
|
10874
|
-
async apply(integrationKeys) {
|
|
10875
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
10876
|
-
integrationKeys,
|
|
10877
|
-
});
|
|
10878
|
-
}
|
|
10879
10903
|
async reset() {
|
|
10880
10904
|
return await this.options.client.post(this.getPath('reset'));
|
|
10881
10905
|
}
|
|
@@ -11232,11 +11256,6 @@ class DataSourceAccessor extends ElementAccessor {
|
|
|
11232
11256
|
path: 'data-source',
|
|
11233
11257
|
});
|
|
11234
11258
|
}
|
|
11235
|
-
async apply(integrationKeys) {
|
|
11236
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11237
|
-
integrationKeys,
|
|
11238
|
-
});
|
|
11239
|
-
}
|
|
11240
11259
|
async setup() {
|
|
11241
11260
|
await this.options.client.post(this.getPath('setup'));
|
|
11242
11261
|
}
|
|
@@ -11979,11 +11998,6 @@ class FlowAccessor extends ElementAccessor {
|
|
|
11979
11998
|
path: 'flow',
|
|
11980
11999
|
});
|
|
11981
12000
|
}
|
|
11982
|
-
async apply(integrationKeys) {
|
|
11983
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11984
|
-
integrationKeys,
|
|
11985
|
-
});
|
|
11986
|
-
}
|
|
11987
12001
|
async reset() {
|
|
11988
12002
|
return await this.options.client.post(this.getPath('reset'));
|
|
11989
12003
|
}
|
|
@@ -12020,11 +12034,6 @@ class FieldMappingAccessor extends ElementAccessor {
|
|
|
12020
12034
|
async getAppSchema() {
|
|
12021
12035
|
return await this.options.client.get(this.getPath('app-schema'));
|
|
12022
12036
|
}
|
|
12023
|
-
async apply(integrationKeys) {
|
|
12024
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
12025
|
-
integrationKeys,
|
|
12026
|
-
});
|
|
12027
|
-
}
|
|
12028
12037
|
async setup() {
|
|
12029
12038
|
return await this.options.client.post(this.getPath('setup'));
|
|
12030
12039
|
}
|
|
@@ -12146,20 +12155,22 @@ class IntegrationAccessor extends ElementAccessor {
|
|
|
12146
12155
|
}
|
|
12147
12156
|
}
|
|
12148
12157
|
|
|
12149
|
-
class
|
|
12158
|
+
class PackagesAccessor extends ElementListAccessor {
|
|
12150
12159
|
constructor(client) {
|
|
12151
|
-
super(client, '
|
|
12160
|
+
super(client, 'packages');
|
|
12152
12161
|
}
|
|
12153
12162
|
}
|
|
12154
|
-
class
|
|
12163
|
+
class PackageAccessor extends ElementAccessor {
|
|
12155
12164
|
constructor(client, selector) {
|
|
12156
12165
|
super({
|
|
12157
12166
|
client,
|
|
12158
12167
|
selector,
|
|
12159
|
-
path: '
|
|
12168
|
+
path: 'package',
|
|
12160
12169
|
});
|
|
12161
12170
|
}
|
|
12162
12171
|
}
|
|
12172
|
+
const ScenariosAccessor = PackagesAccessor;
|
|
12173
|
+
const ScenarioAccessor = PackageAccessor;
|
|
12163
12174
|
|
|
12164
12175
|
class ScreensAccessor extends ElementListAccessor {
|
|
12165
12176
|
constructor(client) {
|
|
@@ -12389,7 +12400,7 @@ const ScenarioTemplate = zod.z.object({
|
|
|
12389
12400
|
demoAppUri: zod.z.string().optional(),
|
|
12390
12401
|
demoGithubRepo: zod.z.string().optional(),
|
|
12391
12402
|
demoVideoYoutubeUri: zod.z.string().optional(),
|
|
12392
|
-
tags: zod.z.array(zod.z.
|
|
12403
|
+
tags: zod.z.array(zod.z.enum(exports.ScenarioTemplateCategory)).optional(),
|
|
12393
12404
|
elements: ScenarioTemplateElements.optional(),
|
|
12394
12405
|
connectors: zod.z.array(MinimalConnector).optional(),
|
|
12395
12406
|
handyElements: zod.z.array(HandyScenarioTemplateElement).optional(),
|
|
@@ -12669,11 +12680,11 @@ class MembraneClient extends MembraneApiClient {
|
|
|
12669
12680
|
get customers() {
|
|
12670
12681
|
return new CustomersAccessor(this);
|
|
12671
12682
|
}
|
|
12672
|
-
|
|
12673
|
-
return new
|
|
12683
|
+
package(selector) {
|
|
12684
|
+
return new PackageAccessor(this, selector);
|
|
12674
12685
|
}
|
|
12675
|
-
get
|
|
12676
|
-
return new
|
|
12686
|
+
get packages() {
|
|
12687
|
+
return new PackagesAccessor(this);
|
|
12677
12688
|
}
|
|
12678
12689
|
async createEventSource(uri, queryParams) {
|
|
12679
12690
|
return super.createEventSource(uri, queryParams);
|
|
@@ -12747,7 +12758,7 @@ exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegratio
|
|
|
12747
12758
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12748
12759
|
exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
|
|
12749
12760
|
exports.BaseMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties;
|
|
12750
|
-
exports.
|
|
12761
|
+
exports.BasePackage = BasePackage;
|
|
12751
12762
|
exports.BaseScreen = BaseScreen;
|
|
12752
12763
|
exports.BaseWorkspaceElement = BaseWorkspaceElement;
|
|
12753
12764
|
exports.CONNECTOR_AUTH_TYPES = CONNECTOR_AUTH_TYPES;
|
|
@@ -12909,7 +12920,7 @@ exports.FindFlowRunsQuery = FindFlowRunsQuery;
|
|
|
12909
12920
|
exports.FindFlowRunsResponse = FindFlowRunsResponse;
|
|
12910
12921
|
exports.FindFlowsQuery = FindFlowsQuery;
|
|
12911
12922
|
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
12912
|
-
exports.
|
|
12923
|
+
exports.FindPackagesQuery = FindPackagesQuery;
|
|
12913
12924
|
exports.FlowAccessor = FlowAccessor;
|
|
12914
12925
|
exports.FlowApiResponse = FlowApiResponse;
|
|
12915
12926
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
@@ -12954,6 +12965,7 @@ exports.IntegrationLevelFieldMappingAccessor = IntegrationLevelFieldMappingAcces
|
|
|
12954
12965
|
exports.IntegrationLevelFieldMappingsListAccessor = IntegrationLevelFieldMappingsListAccessor;
|
|
12955
12966
|
exports.IntegrationLevelFlowAccessor = IntegrationLevelFlowAccessor;
|
|
12956
12967
|
exports.IntegrationLevelFlowsListAccessor = IntegrationLevelFlowsListAccessor;
|
|
12968
|
+
exports.IntegrationLevelMembraneInterfaceSelectorQuery = IntegrationLevelMembraneInterfaceSelectorQuery;
|
|
12957
12969
|
exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
12958
12970
|
exports.InternalError = InternalError;
|
|
12959
12971
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
@@ -12972,17 +12984,20 @@ exports.NotFoundError = NotFoundError;
|
|
|
12972
12984
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
12973
12985
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
12974
12986
|
exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
|
|
12987
|
+
exports.PackageAccessor = PackageAccessor;
|
|
12988
|
+
exports.PackageApiResponse = PackageApiResponse;
|
|
12989
|
+
exports.PackageCalculatedProperties = PackageCalculatedProperties;
|
|
12990
|
+
exports.PackageEditableProperties = PackageEditableProperties;
|
|
12991
|
+
exports.PackageElement = PackageElement;
|
|
12992
|
+
exports.PackageElementApi = PackageElementApi;
|
|
12993
|
+
exports.PackagesAccessor = PackagesAccessor;
|
|
12975
12994
|
exports.PaginationQuery = PaginationQuery;
|
|
12976
12995
|
exports.PaginationResponse = PaginationResponse;
|
|
12977
12996
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
12978
12997
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
12979
12998
|
exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
12999
|
+
exports.RunActionRequest = RunActionRequest;
|
|
12980
13000
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
12981
|
-
exports.ScenarioApiResponse = ScenarioApiResponse;
|
|
12982
|
-
exports.ScenarioCalculatedProperties = ScenarioCalculatedProperties;
|
|
12983
|
-
exports.ScenarioEditableProperties = ScenarioEditableProperties;
|
|
12984
|
-
exports.ScenarioElement = ScenarioElement;
|
|
12985
|
-
exports.ScenarioElementApi = ScenarioElementApi;
|
|
12986
13001
|
exports.ScenarioTemplate = ScenarioTemplate;
|
|
12987
13002
|
exports.ScenarioTemplateElements = ScenarioTemplateElements;
|
|
12988
13003
|
exports.ScenariosAccessor = ScenariosAccessor;
|