@membranehq/sdk 0.7.5 → 0.8.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 +3 -4
- package/dist/bundle.js +7 -41
- package/dist/bundle.js.map +1 -1
- 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/workspace-elements/api/scenarios-api.d.ts +3 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +2 -0
- package/dist/index.browser.d.mts +5 -4
- package/dist/index.browser.d.ts +5 -4
- package/dist/index.browser.js +64 -54
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +64 -54
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +5 -4
- package/dist/index.node.d.ts +5 -4
- package/dist/index.node.js +64 -54
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +64 -54
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@ export declare class ActionsAccessor extends ElementListAccessor<Action, FindAct
|
|
|
7
7
|
}
|
|
8
8
|
export declare class ActionAccessor extends ElementAccessor<Action, UpdateActionRequest, ActionSelector> {
|
|
9
9
|
constructor(client: MembraneApiClient, selector: ActionSelector | string);
|
|
10
|
-
apply(integrationKeys: string[]): Promise<Action[]>;
|
|
11
10
|
reset(): Promise<any>;
|
|
12
11
|
}
|
|
13
12
|
export declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<Action, UpdateActionRequest> {
|
|
@@ -14,7 +14,6 @@ export declare class DataSourcesAccessor extends ElementListAccessor<DataSource,
|
|
|
14
14
|
}
|
|
15
15
|
export declare class DataSourceAccessor extends ElementAccessor<DataSource, UpdateDataSourceRequest, DataSourceSelector> {
|
|
16
16
|
constructor(client: MembraneApiClient, selector: DataSourceSelector | string);
|
|
17
|
-
apply(integrationKeys: string[]): Promise<DataSource[]>;
|
|
18
17
|
setup(): Promise<void>;
|
|
19
18
|
reset(): Promise<any>;
|
|
20
19
|
}
|
|
@@ -8,7 +8,6 @@ export declare class FieldMappingsAccessor extends ElementListAccessor<FieldMapp
|
|
|
8
8
|
export declare class FieldMappingAccessor extends ElementAccessor<FieldMapping, UpdateFieldMappingRequest, FieldMappingSelector> {
|
|
9
9
|
constructor(client: MembraneApiClient, selector: string | FieldMappingSelector);
|
|
10
10
|
getAppSchema(): Promise<any>;
|
|
11
|
-
apply(integrationKeys: string[]): Promise<FieldMapping[]>;
|
|
12
11
|
setup(): Promise<any>;
|
|
13
12
|
reset(): Promise<any>;
|
|
14
13
|
}
|
|
@@ -7,7 +7,6 @@ export declare class FlowsAccessor extends ElementListAccessor<Flow, FindFlowsQu
|
|
|
7
7
|
}
|
|
8
8
|
export declare class FlowAccessor extends ElementAccessor<Flow, UpdateFlowRequest, FlowSelector> {
|
|
9
9
|
constructor(client: MembraneApiClient, selector: FlowSelector | string);
|
|
10
|
-
apply(integrationKeys: string[]): Promise<Flow[]>;
|
|
11
10
|
reset(): Promise<Flow>;
|
|
12
11
|
}
|
|
13
12
|
export declare class IntegrationLevelFlowAccessor extends IntegrationLevelElementAccessor<Flow, UpdateFlowRequest> {
|
|
@@ -7,6 +7,9 @@ export declare const ScenarioElementApi: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
export type ScenarioElementApi = z.infer<typeof ScenarioElementApi>;
|
|
9
9
|
export declare const FindScenariosQuery: z.ZodObject<{
|
|
10
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
12
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
10
13
|
search: z.ZodOptional<z.ZodString>;
|
|
11
14
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
12
15
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -12,6 +12,8 @@ export interface WorkspaceElementSpec {
|
|
|
12
12
|
editablePropertiesSchema?: z.ZodObject<any>;
|
|
13
13
|
apiResponseSchema?: z.ZodObject<any>;
|
|
14
14
|
findQuerySchema?: z.ZodObject<any>;
|
|
15
|
+
isMembraneInterface?: boolean;
|
|
16
|
+
isIntegrationLevel?: boolean;
|
|
15
17
|
parentFieldKey?: string;
|
|
16
18
|
}
|
|
17
19
|
export interface WorkspaceElements {
|
package/dist/index.browser.d.mts
CHANGED
|
@@ -432,7 +432,6 @@ declare class ActionsAccessor extends ElementListAccessor<Action, FindActionsQue
|
|
|
432
432
|
}
|
|
433
433
|
declare class ActionAccessor extends ElementAccessor<Action, UpdateActionRequest, ActionSelector> {
|
|
434
434
|
constructor(client: MembraneApiClient, selector: ActionSelector | string);
|
|
435
|
-
apply(integrationKeys: string[]): Promise<Action[]>;
|
|
436
435
|
reset(): Promise<any>;
|
|
437
436
|
}
|
|
438
437
|
declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<Action, UpdateActionRequest> {
|
|
@@ -3836,7 +3835,6 @@ declare class DataSourcesAccessor extends ElementListAccessor<DataSource, FindDa
|
|
|
3836
3835
|
}
|
|
3837
3836
|
declare class DataSourceAccessor extends ElementAccessor<DataSource, UpdateDataSourceRequest, DataSourceSelector> {
|
|
3838
3837
|
constructor(client: MembraneApiClient, selector: DataSourceSelector | string);
|
|
3839
|
-
apply(integrationKeys: string[]): Promise<DataSource[]>;
|
|
3840
3838
|
setup(): Promise<void>;
|
|
3841
3839
|
reset(): Promise<any>;
|
|
3842
3840
|
}
|
|
@@ -4645,7 +4643,6 @@ declare class FlowsAccessor extends ElementListAccessor<Flow, FindFlowsQuery, Cr
|
|
|
4645
4643
|
}
|
|
4646
4644
|
declare class FlowAccessor extends ElementAccessor<Flow, UpdateFlowRequest, FlowSelector> {
|
|
4647
4645
|
constructor(client: MembraneApiClient, selector: FlowSelector | string);
|
|
4648
|
-
apply(integrationKeys: string[]): Promise<Flow[]>;
|
|
4649
4646
|
reset(): Promise<Flow>;
|
|
4650
4647
|
}
|
|
4651
4648
|
declare class IntegrationLevelFlowAccessor extends IntegrationLevelElementAccessor<Flow, UpdateFlowRequest> {
|
|
@@ -4898,7 +4895,6 @@ declare class FieldMappingsAccessor extends ElementListAccessor<FieldMapping, Fi
|
|
|
4898
4895
|
declare class FieldMappingAccessor extends ElementAccessor<FieldMapping, UpdateFieldMappingRequest, FieldMappingSelector> {
|
|
4899
4896
|
constructor(client: MembraneApiClient, selector: string | FieldMappingSelector);
|
|
4900
4897
|
getAppSchema(): Promise<any>;
|
|
4901
|
-
apply(integrationKeys: string[]): Promise<FieldMapping[]>;
|
|
4902
4898
|
setup(): Promise<any>;
|
|
4903
4899
|
reset(): Promise<any>;
|
|
4904
4900
|
}
|
|
@@ -5318,6 +5314,9 @@ declare const ScenarioElementApi: z.ZodObject<{
|
|
|
5318
5314
|
}, z.core.$strip>;
|
|
5319
5315
|
type ScenarioElementApi = z.infer<typeof ScenarioElementApi>;
|
|
5320
5316
|
declare const FindScenariosQuery: z.ZodObject<{
|
|
5317
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
5318
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
5319
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
5321
5320
|
search: z.ZodOptional<z.ZodString>;
|
|
5322
5321
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5323
5322
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -7159,6 +7158,8 @@ interface WorkspaceElementSpec {
|
|
|
7159
7158
|
editablePropertiesSchema?: z.ZodObject<any>;
|
|
7160
7159
|
apiResponseSchema?: z.ZodObject<any>;
|
|
7161
7160
|
findQuerySchema?: z.ZodObject<any>;
|
|
7161
|
+
isMembraneInterface?: boolean;
|
|
7162
|
+
isIntegrationLevel?: boolean;
|
|
7162
7163
|
parentFieldKey?: string;
|
|
7163
7164
|
}
|
|
7164
7165
|
interface WorkspaceElements {
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -432,7 +432,6 @@ declare class ActionsAccessor extends ElementListAccessor<Action, FindActionsQue
|
|
|
432
432
|
}
|
|
433
433
|
declare class ActionAccessor extends ElementAccessor<Action, UpdateActionRequest, ActionSelector> {
|
|
434
434
|
constructor(client: MembraneApiClient, selector: ActionSelector | string);
|
|
435
|
-
apply(integrationKeys: string[]): Promise<Action[]>;
|
|
436
435
|
reset(): Promise<any>;
|
|
437
436
|
}
|
|
438
437
|
declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<Action, UpdateActionRequest> {
|
|
@@ -3836,7 +3835,6 @@ declare class DataSourcesAccessor extends ElementListAccessor<DataSource, FindDa
|
|
|
3836
3835
|
}
|
|
3837
3836
|
declare class DataSourceAccessor extends ElementAccessor<DataSource, UpdateDataSourceRequest, DataSourceSelector> {
|
|
3838
3837
|
constructor(client: MembraneApiClient, selector: DataSourceSelector | string);
|
|
3839
|
-
apply(integrationKeys: string[]): Promise<DataSource[]>;
|
|
3840
3838
|
setup(): Promise<void>;
|
|
3841
3839
|
reset(): Promise<any>;
|
|
3842
3840
|
}
|
|
@@ -4645,7 +4643,6 @@ declare class FlowsAccessor extends ElementListAccessor<Flow, FindFlowsQuery, Cr
|
|
|
4645
4643
|
}
|
|
4646
4644
|
declare class FlowAccessor extends ElementAccessor<Flow, UpdateFlowRequest, FlowSelector> {
|
|
4647
4645
|
constructor(client: MembraneApiClient, selector: FlowSelector | string);
|
|
4648
|
-
apply(integrationKeys: string[]): Promise<Flow[]>;
|
|
4649
4646
|
reset(): Promise<Flow>;
|
|
4650
4647
|
}
|
|
4651
4648
|
declare class IntegrationLevelFlowAccessor extends IntegrationLevelElementAccessor<Flow, UpdateFlowRequest> {
|
|
@@ -4898,7 +4895,6 @@ declare class FieldMappingsAccessor extends ElementListAccessor<FieldMapping, Fi
|
|
|
4898
4895
|
declare class FieldMappingAccessor extends ElementAccessor<FieldMapping, UpdateFieldMappingRequest, FieldMappingSelector> {
|
|
4899
4896
|
constructor(client: MembraneApiClient, selector: string | FieldMappingSelector);
|
|
4900
4897
|
getAppSchema(): Promise<any>;
|
|
4901
|
-
apply(integrationKeys: string[]): Promise<FieldMapping[]>;
|
|
4902
4898
|
setup(): Promise<any>;
|
|
4903
4899
|
reset(): Promise<any>;
|
|
4904
4900
|
}
|
|
@@ -5318,6 +5314,9 @@ declare const ScenarioElementApi: z.ZodObject<{
|
|
|
5318
5314
|
}, z.core.$strip>;
|
|
5319
5315
|
type ScenarioElementApi = z.infer<typeof ScenarioElementApi>;
|
|
5320
5316
|
declare const FindScenariosQuery: z.ZodObject<{
|
|
5317
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
5318
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
5319
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
5321
5320
|
search: z.ZodOptional<z.ZodString>;
|
|
5322
5321
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5323
5322
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -7159,6 +7158,8 @@ interface WorkspaceElementSpec {
|
|
|
7159
7158
|
editablePropertiesSchema?: z.ZodObject<any>;
|
|
7160
7159
|
apiResponseSchema?: z.ZodObject<any>;
|
|
7161
7160
|
findQuerySchema?: z.ZodObject<any>;
|
|
7161
|
+
isMembraneInterface?: boolean;
|
|
7162
|
+
isIntegrationLevel?: boolean;
|
|
7162
7163
|
parentFieldKey?: string;
|
|
7163
7164
|
}
|
|
7164
7165
|
interface WorkspaceElements {
|
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(),
|
|
@@ -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(),
|
|
@@ -3501,7 +3501,7 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3501
3501
|
dataSourceKey: zod.z.string().optional(),
|
|
3502
3502
|
dataSourceId: zod.z.string().optional(),
|
|
3503
3503
|
appSchema: DataSchema.optional(),
|
|
3504
|
-
direction: zod.z.
|
|
3504
|
+
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
3505
3505
|
defaultImportValue: zod.z.any().optional(),
|
|
3506
3506
|
defaultExportValue: zod.z.any().optional(),
|
|
3507
3507
|
importValue: zod.z.any().optional(),
|
|
@@ -3627,7 +3627,7 @@ const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditablePr
|
|
|
3627
3627
|
integrationId: zod.z.string().optional(),
|
|
3628
3628
|
parentId: zod.z.string().optional(),
|
|
3629
3629
|
inputSchema: DataSchema.optional(),
|
|
3630
|
-
type: zod.z.
|
|
3630
|
+
type: zod.z.enum(exports.ActionType).optional(),
|
|
3631
3631
|
config: zod.z.any().optional(),
|
|
3632
3632
|
outputMapping: zod.z.any().optional(),
|
|
3633
3633
|
customOutputSchema: DataSchema.optional(),
|
|
@@ -3649,7 +3649,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3649
3649
|
isTest: zod.z.boolean().optional(),
|
|
3650
3650
|
disconnected: zod.z.boolean().optional(),
|
|
3651
3651
|
isDefunct: zod.z.boolean().optional(),
|
|
3652
|
-
state: zod.z.
|
|
3652
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
3653
3653
|
error: ErrorDataSchema.optional(),
|
|
3654
3654
|
integrationId: zod.z.string(),
|
|
3655
3655
|
authOptionKey: zod.z.string().optional(),
|
|
@@ -8396,7 +8396,7 @@ exports.IncomingWebhooksState = void 0;
|
|
|
8396
8396
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8397
8397
|
})(exports.IncomingWebhooksState || (exports.IncomingWebhooksState = {}));
|
|
8398
8398
|
const ExternalEventUnitConfig = zod.z.object({
|
|
8399
|
-
type: zod.z.
|
|
8399
|
+
type: zod.z.enum(exports.ExternalEventType),
|
|
8400
8400
|
dataSource: DataSourceUnitConfig.optional(),
|
|
8401
8401
|
eventKey: zod.z.string().optional(),
|
|
8402
8402
|
eventParameters: zod.z.any().optional(),
|
|
@@ -8454,11 +8454,11 @@ exports.FlowRunLaunchedByTrigger = void 0;
|
|
|
8454
8454
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8455
8455
|
})(exports.FlowRunLaunchedByTrigger || (exports.FlowRunLaunchedByTrigger = {}));
|
|
8456
8456
|
const FlowRunLaunchedBy = zod.z.object({
|
|
8457
|
-
type: zod.z.
|
|
8457
|
+
type: zod.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
8458
8458
|
ids: zod.z.array(zod.z.string()).optional(),
|
|
8459
8459
|
});
|
|
8460
8460
|
const FlowRunNode = zod.z.object({
|
|
8461
|
-
state: zod.z.
|
|
8461
|
+
state: zod.z.enum(exports.FlowRunNodeState),
|
|
8462
8462
|
runs: zod.z.number().optional(),
|
|
8463
8463
|
erroredRuns: zod.z.number().optional(),
|
|
8464
8464
|
outputs: zod.z.number().optional(),
|
|
@@ -8473,7 +8473,7 @@ const BaseFlowRun = zod.z.object({
|
|
|
8473
8473
|
startNodeKey: zod.z.string(),
|
|
8474
8474
|
userId: zod.z.string(),
|
|
8475
8475
|
input: zod.z.any().optional(),
|
|
8476
|
-
state: zod.z.
|
|
8476
|
+
state: zod.z.enum(exports.FlowRunState),
|
|
8477
8477
|
startTime: zod.z.string(),
|
|
8478
8478
|
endTime: zod.z.string().optional(),
|
|
8479
8479
|
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
@@ -8507,7 +8507,7 @@ const FlowNodeRunOutputSchema = zod.z.object({
|
|
|
8507
8507
|
downstreamRuns: zod.z.array(DownstreamFlowNodeRunSchema),
|
|
8508
8508
|
});
|
|
8509
8509
|
const FlowNodeRunResultSchema = zod.z.object({
|
|
8510
|
-
status: zod.z.
|
|
8510
|
+
status: zod.z.enum(exports.FlowNodeRunStatus),
|
|
8511
8511
|
logs: zod.z.array(zod.z.any()),
|
|
8512
8512
|
outputs: zod.z.array(FlowNodeRunOutputSchema),
|
|
8513
8513
|
errors: zod.z.array(ErrorDataSchema),
|
|
@@ -8525,7 +8525,7 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = zod.z.object({
|
|
|
8525
8525
|
id: zod.z.string(),
|
|
8526
8526
|
upstreamRuns: zod.z.array(UpstreamFlowNodeRunSchema),
|
|
8527
8527
|
input: zod.z.any(),
|
|
8528
|
-
status: zod.z.
|
|
8528
|
+
status: zod.z.enum(exports.FlowNodeRunStatus),
|
|
8529
8529
|
logs: zod.z.array(zod.z.any()),
|
|
8530
8530
|
outputs: zod.z.array(FlowNodeRunOutputMetadataSchema),
|
|
8531
8531
|
errors: zod.z.array(ErrorDataSchema),
|
|
@@ -8887,7 +8887,7 @@ exports.IntegrationElementType = void 0;
|
|
|
8887
8887
|
|
|
8888
8888
|
const ScenarioElement = zod.z.object({
|
|
8889
8889
|
id: zod.z.string(),
|
|
8890
|
-
type: zod.z.
|
|
8890
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
8891
8891
|
element: zod.z.any().optional(),
|
|
8892
8892
|
});
|
|
8893
8893
|
const ScenarioEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
@@ -8916,11 +8916,11 @@ exports.ScreenBlockType = void 0;
|
|
|
8916
8916
|
})(exports.ScreenBlockType || (exports.ScreenBlockType = {}));
|
|
8917
8917
|
const ScreenBlock = zod.z
|
|
8918
8918
|
.object({
|
|
8919
|
-
type: zod.z.
|
|
8919
|
+
type: zod.z.enum(exports.ScreenBlockType),
|
|
8920
8920
|
})
|
|
8921
8921
|
.and(zod.z.record(zod.z.string(), zod.z.any()));
|
|
8922
8922
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8923
|
-
type: zod.z.
|
|
8923
|
+
type: zod.z.enum(exports.ScreenType),
|
|
8924
8924
|
key: zod.z.string().optional(),
|
|
8925
8925
|
blocks: zod.z.array(ScreenBlock),
|
|
8926
8926
|
});
|
|
@@ -8952,7 +8952,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8952
8952
|
enabled: zod.z.boolean(),
|
|
8953
8953
|
createdAt: zod.z.string(),
|
|
8954
8954
|
updatedAt: zod.z.string(),
|
|
8955
|
-
state: zod.z.
|
|
8955
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
8956
8956
|
customized: zod.z
|
|
8957
8957
|
.object({
|
|
8958
8958
|
name: zod.z.boolean().optional(),
|
|
@@ -8967,7 +8967,7 @@ exports.FlowInstanceNodeState = void 0;
|
|
|
8967
8967
|
FlowInstanceNodeState["READY"] = "READY";
|
|
8968
8968
|
})(exports.FlowInstanceNodeState || (exports.FlowInstanceNodeState = {}));
|
|
8969
8969
|
const FlowInstanceNode = FlowNode.extend({
|
|
8970
|
-
state: zod.z.
|
|
8970
|
+
state: zod.z.enum(exports.FlowInstanceNodeState).optional(),
|
|
8971
8971
|
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
8972
8972
|
userConfig: zod.z.any().optional(),
|
|
8973
8973
|
testInput: zod.z.any().optional(),
|
|
@@ -9037,7 +9037,7 @@ exports.ActionDependencyType = void 0;
|
|
|
9037
9037
|
ActionDependencyType["DataSource"] = "DataSource";
|
|
9038
9038
|
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
9039
9039
|
const ActionDependency = zod.z.object({
|
|
9040
|
-
type: zod.z.
|
|
9040
|
+
type: zod.z.enum(exports.ActionDependencyType),
|
|
9041
9041
|
key: zod.z.string(),
|
|
9042
9042
|
element: zod.z.any().optional(),
|
|
9043
9043
|
});
|
|
@@ -9046,7 +9046,7 @@ const BaseActionInstance = BaseMembraneInterface.extend({
|
|
|
9046
9046
|
universalParentId: zod.z.string().optional(),
|
|
9047
9047
|
userId: zod.z.string(),
|
|
9048
9048
|
instanceKey: zod.z.string().optional(),
|
|
9049
|
-
type: zod.z.
|
|
9049
|
+
type: zod.z.enum(exports.ActionType).optional(),
|
|
9050
9050
|
inputSchema: zod.z.any().optional(),
|
|
9051
9051
|
config: zod.z.any().optional(),
|
|
9052
9052
|
outputSchema: zod.z.any().optional(),
|
|
@@ -9062,7 +9062,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9062
9062
|
instanceKey: zod.z.string().optional(),
|
|
9063
9063
|
dataSourceInstanceId: zod.z.string().optional(),
|
|
9064
9064
|
dataSourceSchema: DataSchema.optional(),
|
|
9065
|
-
direction: zod.z.
|
|
9065
|
+
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
9066
9066
|
appSchema: DataSchema.optional(),
|
|
9067
9067
|
importValue: zod.z.any().optional(),
|
|
9068
9068
|
exportValue: zod.z.any().optional(),
|
|
@@ -9071,7 +9071,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9071
9071
|
unifiedImportValue: zod.z.any().optional(),
|
|
9072
9072
|
frozenImportFields: zod.z.array(zod.z.string()).optional(),
|
|
9073
9073
|
frozenExportFields: zod.z.array(zod.z.string()).optional(),
|
|
9074
|
-
state: zod.z.
|
|
9074
|
+
state: zod.z.enum(exports.WorkspaceElementState).optional(),
|
|
9075
9075
|
error: ErrorDataSchema.optional(),
|
|
9076
9076
|
externalSchema: zod.z.any().optional(),
|
|
9077
9077
|
});
|
|
@@ -9099,7 +9099,7 @@ const DataLink = zod.z.object({
|
|
|
9099
9099
|
dataLinkTableInstanceId: zod.z.string(),
|
|
9100
9100
|
externalRecordId: zod.z.string(),
|
|
9101
9101
|
appRecordId: zod.z.string(),
|
|
9102
|
-
direction: zod.z.
|
|
9102
|
+
direction: zod.z.enum(exports.DataLinkDirection),
|
|
9103
9103
|
});
|
|
9104
9104
|
const DataLinkTableConfig = zod.z.object({
|
|
9105
9105
|
key: zod.z.string(),
|
|
@@ -9114,7 +9114,7 @@ exports.HttpRequestMethod = void 0;
|
|
|
9114
9114
|
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9115
9115
|
})(exports.HttpRequestMethod || (exports.HttpRequestMethod = {}));
|
|
9116
9116
|
const HttpRequestSpec = zod.z.object({
|
|
9117
|
-
method: zod.z.string().toUpperCase().pipe(zod.z.
|
|
9117
|
+
method: zod.z.string().toUpperCase().pipe(zod.z.enum(exports.HttpRequestMethod)).optional(),
|
|
9118
9118
|
uri: zod.z.any(),
|
|
9119
9119
|
headers: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
9120
9120
|
query: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
@@ -9197,7 +9197,7 @@ exports.ExternalEventSubscriptionType = void 0;
|
|
|
9197
9197
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9198
9198
|
})(exports.ExternalEventSubscriptionType || (exports.ExternalEventSubscriptionType = {}));
|
|
9199
9199
|
const ExternalEventSubscriptionConfig = zod.z.object({
|
|
9200
|
-
type: zod.z.
|
|
9200
|
+
type: zod.z.enum(exports.ExternalEventSubscriptionType),
|
|
9201
9201
|
dataSource: DataSourceUnitConfig.optional(),
|
|
9202
9202
|
eventKey: zod.z.string().optional(),
|
|
9203
9203
|
eventParameters: zod.z.any().optional(),
|
|
@@ -9209,7 +9209,7 @@ const BaseExternalEventSubscription = zod.z.object({
|
|
|
9209
9209
|
connectionId: zod.z.string(),
|
|
9210
9210
|
integrationId: zod.z.string(),
|
|
9211
9211
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
9212
|
-
status: zod.z.
|
|
9212
|
+
status: zod.z.enum(exports.ExternalEventSubscriptionStatus).optional(),
|
|
9213
9213
|
error: ErrorDataSchema.optional(),
|
|
9214
9214
|
isRealTime: zod.z.boolean().optional(),
|
|
9215
9215
|
requiresPull: zod.z.boolean().optional(),
|
|
@@ -9240,7 +9240,7 @@ const BaseExternalEventLogRecord = zod.z.object({
|
|
|
9240
9240
|
connectionId: zod.z.string(),
|
|
9241
9241
|
payload: zod.z.any().optional(),
|
|
9242
9242
|
launchedFlowRunIds: zod.z.array(zod.z.string()).optional(),
|
|
9243
|
-
status: zod.z.
|
|
9243
|
+
status: zod.z.enum(exports.ExternalEventLogStatus),
|
|
9244
9244
|
error: ErrorDataSchema.optional(),
|
|
9245
9245
|
});
|
|
9246
9246
|
|
|
@@ -9261,7 +9261,7 @@ const BaseExternalEventPull = zod.z.object({
|
|
|
9261
9261
|
startDatetime: zod.z.string(),
|
|
9262
9262
|
endDatetime: zod.z.string(),
|
|
9263
9263
|
isFullScan: zod.z.boolean().optional(),
|
|
9264
|
-
status: zod.z.
|
|
9264
|
+
status: zod.z.enum(exports.ExternalEventPullStatus),
|
|
9265
9265
|
collectedEventIds: zod.z.array(zod.z.string()),
|
|
9266
9266
|
error: ErrorDataSchema.optional(),
|
|
9267
9267
|
});
|
|
@@ -9277,7 +9277,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9277
9277
|
connectionId: zod.z.string(),
|
|
9278
9278
|
input: zod.z.any().optional(),
|
|
9279
9279
|
output: zod.z.any().optional(),
|
|
9280
|
-
status: zod.z.
|
|
9280
|
+
status: zod.z.enum(exports.ActionRunLogStatus),
|
|
9281
9281
|
createdAt: zod.z.string(),
|
|
9282
9282
|
completedAt: zod.z.string().optional(),
|
|
9283
9283
|
error: ErrorDataSchema.optional(),
|
|
@@ -9567,13 +9567,13 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
9567
9567
|
flowId: zod.z.string().optional(),
|
|
9568
9568
|
universalFlowId: zod.z.string().optional(),
|
|
9569
9569
|
userId: zod.z.string().optional(),
|
|
9570
|
-
state: zod.z.
|
|
9570
|
+
state: zod.z.enum(exports.FlowRunState).optional(),
|
|
9571
9571
|
integrationId: zod.z.string().optional(),
|
|
9572
9572
|
connectionId: zod.z.string().optional(),
|
|
9573
9573
|
startedAfter: zod.z.string().optional(),
|
|
9574
9574
|
});
|
|
9575
9575
|
const FlowRunLaunchedByApi = zod.z.object({
|
|
9576
|
-
type: zod.z.
|
|
9576
|
+
type: zod.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
9577
9577
|
ids: zod.z.array(zod.z.string()).optional(),
|
|
9578
9578
|
});
|
|
9579
9579
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
@@ -9620,10 +9620,18 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9620
9620
|
|
|
9621
9621
|
const ScenarioElementApi = zod.z.object({
|
|
9622
9622
|
id: zod.z.string(),
|
|
9623
|
-
type: zod.z.
|
|
9623
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
9624
9624
|
element: zod.z.any().optional(),
|
|
9625
9625
|
});
|
|
9626
|
-
const FindScenariosQuery = zod.z
|
|
9626
|
+
const FindScenariosQuery = zod.z
|
|
9627
|
+
.object({
|
|
9628
|
+
integrationId: zod.z.string().optional(),
|
|
9629
|
+
integrationKey: zod.z.string().optional(),
|
|
9630
|
+
parentId: zod.z.string().optional(),
|
|
9631
|
+
})
|
|
9632
|
+
.extend(SearchQuery.shape)
|
|
9633
|
+
.extend(PaginationQuery.shape)
|
|
9634
|
+
.extend(IncludeArchivedQuery.shape);
|
|
9627
9635
|
const ScenarioApiResponse = BaseScenario.extend({
|
|
9628
9636
|
appliedToIntegrations: AppliedToIntegrations(BaseScenario).optional(),
|
|
9629
9637
|
});
|
|
@@ -9700,7 +9708,7 @@ const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
9700
9708
|
connectionId: zod.z.string().optional(),
|
|
9701
9709
|
integrationId: zod.z.string().optional(),
|
|
9702
9710
|
externalEventSubscriptionId: zod.z.string().optional(),
|
|
9703
|
-
status: zod.z.
|
|
9711
|
+
status: zod.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9704
9712
|
});
|
|
9705
9713
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9706
9714
|
user: BaseCustomer.optional(),
|
|
@@ -9713,7 +9721,7 @@ const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
|
9713
9721
|
connectionId: zod.z.string().optional(),
|
|
9714
9722
|
integrationId: zod.z.string().optional(),
|
|
9715
9723
|
externalEventSubscriptionId: zod.z.string().optional(),
|
|
9716
|
-
status: zod.z.
|
|
9724
|
+
status: zod.z.enum(exports.ExternalEventPullStatus).optional(),
|
|
9717
9725
|
});
|
|
9718
9726
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9719
9727
|
user: BaseCustomer.optional(),
|
|
@@ -9914,12 +9922,15 @@ const WorkspaceElementSpecs = {
|
|
|
9914
9922
|
editablePropertiesSchema: ScenarioEditableProperties,
|
|
9915
9923
|
apiResponseSchema: ScenarioApiResponse,
|
|
9916
9924
|
findQuerySchema: FindScenariosQuery,
|
|
9925
|
+
isMembraneInterface: true,
|
|
9926
|
+
isIntegrationLevel: true,
|
|
9917
9927
|
},
|
|
9918
9928
|
[exports.WorkspaceElementType.ActionInstance]: {
|
|
9919
9929
|
type: exports.WorkspaceElementType.ActionInstance,
|
|
9920
9930
|
apiPath: 'action-instances',
|
|
9921
9931
|
name: 'Action Instance',
|
|
9922
9932
|
namePlural: 'Action Instances',
|
|
9933
|
+
isMembraneInterface: true,
|
|
9923
9934
|
},
|
|
9924
9935
|
[exports.WorkspaceElementType.Action]: {
|
|
9925
9936
|
type: exports.WorkspaceElementType.Action,
|
|
@@ -9929,6 +9940,8 @@ const WorkspaceElementSpecs = {
|
|
|
9929
9940
|
editablePropertiesSchema: ActionEditableProperties,
|
|
9930
9941
|
apiResponseSchema: ActionApiResponse,
|
|
9931
9942
|
findQuerySchema: FindActionsQuery,
|
|
9943
|
+
isMembraneInterface: true,
|
|
9944
|
+
isIntegrationLevel: true,
|
|
9932
9945
|
},
|
|
9933
9946
|
[exports.WorkspaceElementType.ActionRunLogRecord]: {
|
|
9934
9947
|
type: exports.WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -9942,6 +9955,8 @@ const WorkspaceElementSpecs = {
|
|
|
9942
9955
|
name: 'Flow',
|
|
9943
9956
|
namePlural: 'Flows',
|
|
9944
9957
|
parentFieldKey: 'universalFlowId',
|
|
9958
|
+
isMembraneInterface: true,
|
|
9959
|
+
isIntegrationLevel: true,
|
|
9945
9960
|
},
|
|
9946
9961
|
[exports.WorkspaceElementType.FlowInstance]: {
|
|
9947
9962
|
type: exports.WorkspaceElementType.FlowInstance,
|
|
@@ -9950,6 +9965,7 @@ const WorkspaceElementSpecs = {
|
|
|
9950
9965
|
updateSchema: updateFlowInstanceSchema,
|
|
9951
9966
|
name: 'Flow',
|
|
9952
9967
|
namePlural: 'Flows',
|
|
9968
|
+
isMembraneInterface: true,
|
|
9953
9969
|
},
|
|
9954
9970
|
[exports.WorkspaceElementType.FlowRun]: {
|
|
9955
9971
|
type: exports.WorkspaceElementType.FlowRun,
|
|
@@ -9963,12 +9979,15 @@ const WorkspaceElementSpecs = {
|
|
|
9963
9979
|
name: 'Field Mapping',
|
|
9964
9980
|
namePlural: 'Field Mappings',
|
|
9965
9981
|
parentFieldKey: 'universalFieldMappingId',
|
|
9982
|
+
isMembraneInterface: true,
|
|
9983
|
+
isIntegrationLevel: true,
|
|
9966
9984
|
},
|
|
9967
9985
|
[exports.WorkspaceElementType.FieldMappingInstance]: {
|
|
9968
9986
|
type: exports.WorkspaceElementType.FieldMappingInstance,
|
|
9969
9987
|
apiPath: 'field-mapping-instances',
|
|
9970
9988
|
name: 'Field Mapping Instance',
|
|
9971
9989
|
namePlural: 'Field Mapping Instances',
|
|
9990
|
+
isMembraneInterface: true,
|
|
9972
9991
|
},
|
|
9973
9992
|
[exports.WorkspaceElementType.DataCollection]: {
|
|
9974
9993
|
type: exports.WorkspaceElementType.DataCollection,
|
|
@@ -9982,36 +10001,43 @@ const WorkspaceElementSpecs = {
|
|
|
9982
10001
|
name: 'Data Source',
|
|
9983
10002
|
namePlural: 'Data Sources',
|
|
9984
10003
|
parentFieldKey: 'universalDataSourceId',
|
|
10004
|
+
isMembraneInterface: true,
|
|
10005
|
+
isIntegrationLevel: true,
|
|
9985
10006
|
},
|
|
9986
10007
|
[exports.WorkspaceElementType.DataSourceInstance]: {
|
|
9987
10008
|
type: exports.WorkspaceElementType.DataSourceInstance,
|
|
9988
10009
|
apiPath: 'data-source-instances',
|
|
9989
10010
|
name: 'Data Source Instance',
|
|
9990
10011
|
namePlural: 'Data Source Instances',
|
|
10012
|
+
isMembraneInterface: true,
|
|
9991
10013
|
},
|
|
9992
10014
|
[exports.WorkspaceElementType.DataLinkTable]: {
|
|
9993
10015
|
type: exports.WorkspaceElementType.DataLinkTable,
|
|
9994
10016
|
apiPath: 'data-link-tables',
|
|
9995
10017
|
name: 'Data Link Table',
|
|
9996
10018
|
namePlural: 'Data Link Tables',
|
|
10019
|
+
isMembraneInterface: true,
|
|
9997
10020
|
},
|
|
9998
10021
|
[exports.WorkspaceElementType.DataLinkTableInstance]: {
|
|
9999
10022
|
type: exports.WorkspaceElementType.DataLinkTableInstance,
|
|
10000
10023
|
apiPath: 'data-link-table-instances',
|
|
10001
10024
|
name: 'Data Link Table Instance',
|
|
10002
10025
|
namePlural: 'Data Link Table Instances',
|
|
10026
|
+
isMembraneInterface: true,
|
|
10003
10027
|
},
|
|
10004
10028
|
[exports.WorkspaceElementType.AppEventType]: {
|
|
10005
10029
|
type: exports.WorkspaceElementType.AppEventType,
|
|
10006
10030
|
apiPath: 'app-event-types',
|
|
10007
10031
|
name: 'App Event Type',
|
|
10008
10032
|
namePlural: 'App Event Types',
|
|
10033
|
+
isMembraneInterface: true,
|
|
10009
10034
|
},
|
|
10010
10035
|
[exports.WorkspaceElementType.AppEventSubscription]: {
|
|
10011
10036
|
type: exports.WorkspaceElementType.AppEventSubscription,
|
|
10012
10037
|
apiPath: 'app-event-subscriptions',
|
|
10013
10038
|
name: 'App Event Subscription',
|
|
10014
10039
|
namePlural: 'App Event Subscriptions',
|
|
10040
|
+
isMembraneInterface: true,
|
|
10015
10041
|
},
|
|
10016
10042
|
[exports.WorkspaceElementType.AppEventLogRecord]: {
|
|
10017
10043
|
type: exports.WorkspaceElementType.AppEventLogRecord,
|
|
@@ -10024,18 +10050,21 @@ const WorkspaceElementSpecs = {
|
|
|
10024
10050
|
apiPath: 'app-data-schemas',
|
|
10025
10051
|
name: 'App Data Schema',
|
|
10026
10052
|
namePlural: 'App Data Schemas',
|
|
10053
|
+
isMembraneInterface: true,
|
|
10027
10054
|
},
|
|
10028
10055
|
[exports.WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10029
10056
|
type: exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
10030
10057
|
apiPath: 'app-data-schema-instances',
|
|
10031
10058
|
name: 'App Data Schema Instance',
|
|
10032
10059
|
namePlural: 'App Data Schema Instances',
|
|
10060
|
+
isMembraneInterface: true,
|
|
10033
10061
|
},
|
|
10034
10062
|
[exports.WorkspaceElementType.ExternalEventSubscription]: {
|
|
10035
10063
|
type: exports.WorkspaceElementType.ExternalEventSubscription,
|
|
10036
10064
|
apiPath: 'external-event-subscriptions',
|
|
10037
10065
|
name: 'External Event Subscription',
|
|
10038
10066
|
namePlural: 'External Event Subscriptions',
|
|
10067
|
+
isMembraneInterface: true,
|
|
10039
10068
|
},
|
|
10040
10069
|
[exports.WorkspaceElementType.ExternalEventLogRecord]: {
|
|
10041
10070
|
type: exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -10054,6 +10083,7 @@ const WorkspaceElementSpecs = {
|
|
|
10054
10083
|
apiPath: 'screens',
|
|
10055
10084
|
name: 'Screen',
|
|
10056
10085
|
namePlural: 'Screens',
|
|
10086
|
+
isMembraneInterface: true,
|
|
10057
10087
|
},
|
|
10058
10088
|
};
|
|
10059
10089
|
|
|
@@ -10871,11 +10901,6 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10871
10901
|
path: 'action',
|
|
10872
10902
|
});
|
|
10873
10903
|
}
|
|
10874
|
-
async apply(integrationKeys) {
|
|
10875
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
10876
|
-
integrationKeys,
|
|
10877
|
-
});
|
|
10878
|
-
}
|
|
10879
10904
|
async reset() {
|
|
10880
10905
|
return await this.options.client.post(this.getPath('reset'));
|
|
10881
10906
|
}
|
|
@@ -11232,11 +11257,6 @@ class DataSourceAccessor extends ElementAccessor {
|
|
|
11232
11257
|
path: 'data-source',
|
|
11233
11258
|
});
|
|
11234
11259
|
}
|
|
11235
|
-
async apply(integrationKeys) {
|
|
11236
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11237
|
-
integrationKeys,
|
|
11238
|
-
});
|
|
11239
|
-
}
|
|
11240
11260
|
async setup() {
|
|
11241
11261
|
await this.options.client.post(this.getPath('setup'));
|
|
11242
11262
|
}
|
|
@@ -11979,11 +11999,6 @@ class FlowAccessor extends ElementAccessor {
|
|
|
11979
11999
|
path: 'flow',
|
|
11980
12000
|
});
|
|
11981
12001
|
}
|
|
11982
|
-
async apply(integrationKeys) {
|
|
11983
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11984
|
-
integrationKeys,
|
|
11985
|
-
});
|
|
11986
|
-
}
|
|
11987
12002
|
async reset() {
|
|
11988
12003
|
return await this.options.client.post(this.getPath('reset'));
|
|
11989
12004
|
}
|
|
@@ -12020,11 +12035,6 @@ class FieldMappingAccessor extends ElementAccessor {
|
|
|
12020
12035
|
async getAppSchema() {
|
|
12021
12036
|
return await this.options.client.get(this.getPath('app-schema'));
|
|
12022
12037
|
}
|
|
12023
|
-
async apply(integrationKeys) {
|
|
12024
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
12025
|
-
integrationKeys,
|
|
12026
|
-
});
|
|
12027
|
-
}
|
|
12028
12038
|
async setup() {
|
|
12029
12039
|
return await this.options.client.post(this.getPath('setup'));
|
|
12030
12040
|
}
|
|
@@ -12389,7 +12399,7 @@ const ScenarioTemplate = zod.z.object({
|
|
|
12389
12399
|
demoAppUri: zod.z.string().optional(),
|
|
12390
12400
|
demoGithubRepo: zod.z.string().optional(),
|
|
12391
12401
|
demoVideoYoutubeUri: zod.z.string().optional(),
|
|
12392
|
-
tags: zod.z.array(zod.z.
|
|
12402
|
+
tags: zod.z.array(zod.z.enum(exports.ScenarioTemplateCategory)).optional(),
|
|
12393
12403
|
elements: ScenarioTemplateElements.optional(),
|
|
12394
12404
|
connectors: zod.z.array(MinimalConnector).optional(),
|
|
12395
12405
|
handyElements: zod.z.array(HandyScenarioTemplateElement).optional(),
|