Socket
Socket
Sign inDemoInstall

@activepieces/shared

Package Overview
Dependencies
Maintainers
3
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activepieces/shared - npm Package Compare versions

Comparing version 0.3.54 to 0.3.55

8

package.json
{
"name": "@activepieces/shared",
"version": "0.3.54",
"version": "0.3.55",
"type": "commonjs",
"dependencies": {
"@sinclair/typebox": "0.26.8",
"nanoid": "3.3.4",
"tslib": "2.5.3"
"@sinclair/typebox": "^0.26.3",
"nanoid": "^3.3.4",
"tslib": "1.14.1"
},

@@ -10,0 +10,0 @@ "main": "./src/index.js",

import { BaseModel } from "../common/base-model";
import { OAuth2AuthorizationMethod } from "./oauth2-authorization-method";
export declare type AppConnectionId = string;
export type AppConnectionId = string;
export declare enum AppConnectionStatus {

@@ -67,9 +67,9 @@ EXPIRED = "EXPIRED",

}
export declare type OAuth2AppConnection = BaseAppConnection<OAuth2ConnectionValueWithApp>;
export declare type SecretKeyAppConnection = BaseAppConnection<SecretTextConnectionValue>;
export declare type CloudAuth2Connection = BaseAppConnection<CloudOAuth2ConnectionValue>;
export declare type BasicAuthConnection = BaseAppConnection<BasicAuthConnectionValue>;
export declare type CustomAuthConnection = BaseAppConnection<CustomAuthConnectionValue>;
export declare type AppConnection = BasicAuthConnection | SecretKeyAppConnection | OAuth2AppConnection | CloudAuth2Connection | CustomAuthConnection;
export declare type AppConnectionValue = SecretTextConnectionValue | OAuth2ConnectionValueWithApp | CloudOAuth2ConnectionValue | BasicAuthConnectionValue | CustomAuthConnectionValue;
export type OAuth2AppConnection = BaseAppConnection<OAuth2ConnectionValueWithApp>;
export type SecretKeyAppConnection = BaseAppConnection<SecretTextConnectionValue>;
export type CloudAuth2Connection = BaseAppConnection<CloudOAuth2ConnectionValue>;
export type BasicAuthConnection = BaseAppConnection<BasicAuthConnectionValue>;
export type CustomAuthConnection = BaseAppConnection<CustomAuthConnectionValue>;
export type AppConnection = BasicAuthConnection | SecretKeyAppConnection | OAuth2AppConnection | CloudAuth2Connection | CustomAuthConnection;
export type AppConnectionValue = SecretTextConnectionValue | OAuth2ConnectionValueWithApp | CloudOAuth2ConnectionValue | BasicAuthConnectionValue | CustomAuthConnectionValue;
export {};

@@ -9,3 +9,3 @@ "use strict";

AppConnectionStatus["ERROR"] = "ERROR";
})(AppConnectionStatus = exports.AppConnectionStatus || (exports.AppConnectionStatus = {}));
})(AppConnectionStatus || (exports.AppConnectionStatus = AppConnectionStatus = {}));
var AppConnectionType;

@@ -18,3 +18,3 @@ (function (AppConnectionType) {

AppConnectionType["CUSTOM_AUTH"] = "CUSTOM_AUTH";
})(AppConnectionType = exports.AppConnectionType || (exports.AppConnectionType = {}));
})(AppConnectionType || (exports.AppConnectionType = AppConnectionType = {}));
//# sourceMappingURL=app-connection.js.map

@@ -7,2 +7,2 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type ListAppConnectionRequest = Static<typeof ListAppConnectionRequest>;
export type ListAppConnectionRequest = Static<typeof ListAppConnectionRequest>;

@@ -59,8 +59,8 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type UpsertCloudOAuth2Request = Static<typeof UpsertCloudOAuth2Request>;
export declare type UpsertOAuth2Request = Static<typeof UpsertOAuth2Request>;
export declare type UpsertSecretTextRequest = Static<typeof UpsertSecretTextRequest>;
export declare type UpsertBasicAuthRequest = Static<typeof UpsertBasicAuthRequest>;
export declare type UpsertCustomAuthRequest = Static<typeof UpsertCustomAuthRequest>;
export declare type UpsertConnectionRequest = Static<typeof UpsertConnectionRequest>;
export type UpsertCloudOAuth2Request = Static<typeof UpsertCloudOAuth2Request>;
export type UpsertOAuth2Request = Static<typeof UpsertOAuth2Request>;
export type UpsertSecretTextRequest = Static<typeof UpsertSecretTextRequest>;
export type UpsertBasicAuthRequest = Static<typeof UpsertBasicAuthRequest>;
export type UpsertCustomAuthRequest = Static<typeof UpsertCustomAuthRequest>;
export type UpsertConnectionRequest = Static<typeof UpsertConnectionRequest>;
export declare const UpsertConnectionRequest: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{

@@ -67,0 +67,0 @@ value: import("@sinclair/typebox").TObject<{

@@ -9,3 +9,3 @@ "use strict";

OAuth2AuthorizationMethod["BODY"] = "BODY";
})(OAuth2AuthorizationMethod = exports.OAuth2AuthorizationMethod || (exports.OAuth2AuthorizationMethod = {}));
})(OAuth2AuthorizationMethod || (exports.OAuth2AuthorizationMethod = OAuth2AuthorizationMethod = {}));
//# sourceMappingURL=oauth2-authorization-method.js.map
import { User } from "../../user/user";
export declare type AuthenticationResponse = Omit<User, "password"> & {
export type AuthenticationResponse = Omit<User, "password"> & {
token: string;
projectId: string;
};

@@ -6,2 +6,2 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type SignInRequest = Static<typeof SignInRequest>;
export type SignInRequest = Static<typeof SignInRequest>;

@@ -10,2 +10,2 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type SignUpRequest = Static<typeof SignUpRequest>;
export type SignUpRequest = Static<typeof SignUpRequest>;

@@ -9,3 +9,3 @@ "use strict";

PrincipalType["UNKNOWN"] = "UNKNOWN";
})(PrincipalType = exports.PrincipalType || (exports.PrincipalType = {}));
})(PrincipalType || (exports.PrincipalType = PrincipalType = {}));
//# sourceMappingURL=principal-type.js.map
import { ApId } from '../../common/id-generator';
import { PrincipalType } from './principal-type';
import { ProjectId } from '../../project/project';
export declare type Principal = WorkerPrincipal | UserPrincipal | UnknownPrincipal;
export type Principal = WorkerPrincipal | UserPrincipal | UnknownPrincipal;
export interface UserPrincipal extends BasePrincipal<PrincipalType.USER> {

@@ -6,0 +6,0 @@ projectId: ProjectId;

@@ -6,2 +6,2 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type ExecuteCodeRequest = Static<typeof ExecuteCodeRequest>;
export type ExecuteCodeRequest = Static<typeof ExecuteCodeRequest>;

@@ -12,3 +12,3 @@ import { AppConnectionId } from "../app-connection/app-connection";

}
declare type ErrorParams = AppConnectionNotFoundErrorParams | ConfigNotFoundErrorParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowInstanceNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InvalidApiKeyParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | ProjectNotFoundErrorParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TaskQuotaExceededErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams;
type ErrorParams = AppConnectionNotFoundErrorParams | ConfigNotFoundErrorParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowInstanceNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InvalidApiKeyParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | ProjectNotFoundErrorParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TaskQuotaExceededErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams;
export interface BaseErrorParams<T, V> {

@@ -18,3 +18,3 @@ code: T;

}
export declare type InvalidClaimParams = BaseErrorParams<ErrorCode.INVALID_CLAIM, {
export type InvalidClaimParams = BaseErrorParams<ErrorCode.INVALID_CLAIM, {
redirectUrl: string;

@@ -24,37 +24,37 @@ tokenUrl: string;

}>;
export declare type InvalidCloudClaimParams = BaseErrorParams<ErrorCode.INVALID_CLOUD_CLAIM, {
export type InvalidCloudClaimParams = BaseErrorParams<ErrorCode.INVALID_CLOUD_CLAIM, {
appName: string;
}>;
export declare type InvalidBearerTokenParams = BaseErrorParams<ErrorCode.INVALID_BEARER_TOKEN, Record<string, null>>;
export declare type FileNotFoundErrorParams = BaseErrorParams<ErrorCode.FILE_NOT_FOUND, {
export type InvalidBearerTokenParams = BaseErrorParams<ErrorCode.INVALID_BEARER_TOKEN, Record<string, null>>;
export type FileNotFoundErrorParams = BaseErrorParams<ErrorCode.FILE_NOT_FOUND, {
id: FileId;
}>;
export declare type AppConnectionNotFoundErrorParams = BaseErrorParams<ErrorCode.APP_CONNECTION_NOT_FOUND, {
export type AppConnectionNotFoundErrorParams = BaseErrorParams<ErrorCode.APP_CONNECTION_NOT_FOUND, {
id: AppConnectionId;
}>;
export declare type SystemInvalidErrorParams = BaseErrorParams<ErrorCode.SYSTEM_PROP_INVALID, {
export type SystemInvalidErrorParams = BaseErrorParams<ErrorCode.SYSTEM_PROP_INVALID, {
prop: string;
}>;
export declare type FlowNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_NOT_FOUND, {
export type FlowNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_NOT_FOUND, {
id: FlowId;
}>;
export declare type FlowInstanceNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_INSTANCE_NOT_FOUND, {
export type FlowInstanceNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_INSTANCE_NOT_FOUND, {
id?: InstanceId;
}>;
export declare type FlowRunNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_RUN_NOT_FOUND, {
export type FlowRunNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_RUN_NOT_FOUND, {
id: FlowRunId;
}>;
export declare type ProjectNotFoundErrorParams = BaseErrorParams<ErrorCode.PROJECT_NOT_FOUND, {
export type ProjectNotFoundErrorParams = BaseErrorParams<ErrorCode.PROJECT_NOT_FOUND, {
id: FlowRunId;
}>;
export declare type FlowVersionNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_VERSION_NOT_FOUND, {
export type FlowVersionNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_VERSION_NOT_FOUND, {
id: FlowVersionId;
}>;
export declare type InvalidCredentialsErrorParams = BaseErrorParams<ErrorCode.INVALID_CREDENTIALS, {
export type InvalidCredentialsErrorParams = BaseErrorParams<ErrorCode.INVALID_CREDENTIALS, {
email: string;
}>;
export declare type ExistingUserErrorParams = BaseErrorParams<ErrorCode.EXISTING_USER, {
export type ExistingUserErrorParams = BaseErrorParams<ErrorCode.EXISTING_USER, {
email: string;
}>;
export declare type StepNotFoundErrorParams = BaseErrorParams<ErrorCode.STEP_NOT_FOUND, {
export type StepNotFoundErrorParams = BaseErrorParams<ErrorCode.STEP_NOT_FOUND, {
pieceName?: string;

@@ -64,7 +64,7 @@ pieceVersion?: string;

}>;
export declare type PieceNotFoundErrorParams = BaseErrorParams<ErrorCode.PIECE_NOT_FOUND, {
export type PieceNotFoundErrorParams = BaseErrorParams<ErrorCode.PIECE_NOT_FOUND, {
pieceName: string;
pieceVersion: string | undefined;
}>;
export declare type PieceTriggerNotFoundErrorParams = BaseErrorParams<ErrorCode.PIECE_TRIGGER_NOT_FOUND, {
export type PieceTriggerNotFoundErrorParams = BaseErrorParams<ErrorCode.PIECE_TRIGGER_NOT_FOUND, {
pieceName: string;

@@ -74,3 +74,3 @@ pieceVersion: string;

}>;
export declare type TriggerFailedErrorParams = BaseErrorParams<ErrorCode.TRIGGER_FAILED, {
export type TriggerFailedErrorParams = BaseErrorParams<ErrorCode.TRIGGER_FAILED, {
pieceName: string;

@@ -81,3 +81,3 @@ pieceVersion: string;

}>;
export declare type ConfigNotFoundErrorParams = BaseErrorParams<ErrorCode.CONFIG_NOT_FOUND, {
export type ConfigNotFoundErrorParams = BaseErrorParams<ErrorCode.CONFIG_NOT_FOUND, {
pieceName: string;

@@ -88,34 +88,34 @@ pieceVersion: string;

}>;
export declare type JobRemovalFailureErrorParams = BaseErrorParams<ErrorCode.JOB_REMOVAL_FAILURE, {
export type JobRemovalFailureErrorParams = BaseErrorParams<ErrorCode.JOB_REMOVAL_FAILURE, {
jobId: ApId;
}>;
export declare type SystemPropNotDefinedErrorParams = BaseErrorParams<ErrorCode.SYSTEM_PROP_NOT_DEFINED, {
export type SystemPropNotDefinedErrorParams = BaseErrorParams<ErrorCode.SYSTEM_PROP_NOT_DEFINED, {
prop: string;
}>;
export declare type OpenAiFailedErrorParams = BaseErrorParams<ErrorCode.OPEN_AI_FAILED, Record<string, never>>;
export declare type FlowOperationErrorParams = BaseErrorParams<ErrorCode.FLOW_OPERATION_INVALID, Record<string, never>>;
export declare type InvalidJwtTokenErrorParams = BaseErrorParams<ErrorCode.INVALID_OR_EXPIRED_JWT_TOKEN, {
export type OpenAiFailedErrorParams = BaseErrorParams<ErrorCode.OPEN_AI_FAILED, Record<string, never>>;
export type FlowOperationErrorParams = BaseErrorParams<ErrorCode.FLOW_OPERATION_INVALID, Record<string, never>>;
export type InvalidJwtTokenErrorParams = BaseErrorParams<ErrorCode.INVALID_OR_EXPIRED_JWT_TOKEN, {
token: string;
}>;
export declare type TaskQuotaExceededErrorParams = BaseErrorParams<ErrorCode.TASK_QUOTA_EXCEEDED, {
export type TaskQuotaExceededErrorParams = BaseErrorParams<ErrorCode.TASK_QUOTA_EXCEEDED, {
projectId: string;
}>;
export declare type TestTriggerFailedErrorParams = BaseErrorParams<ErrorCode.TEST_TRIGGER_FAILED, {
export type TestTriggerFailedErrorParams = BaseErrorParams<ErrorCode.TEST_TRIGGER_FAILED, {
message: string;
}>;
export declare type EntityNotFoundErrorParams = BaseErrorParams<ErrorCode.ENTITY_NOT_FOUND, {
export type EntityNotFoundErrorParams = BaseErrorParams<ErrorCode.ENTITY_NOT_FOUND, {
message: string;
}>;
export declare type ExecutionTimeoutErrorParams = BaseErrorParams<ErrorCode.EXECUTION_TIMEOUT, Record<string, never>>;
export declare type ValidationErrorParams = BaseErrorParams<ErrorCode.VALIDATION, {
export type ExecutionTimeoutErrorParams = BaseErrorParams<ErrorCode.EXECUTION_TIMEOUT, Record<string, never>>;
export type ValidationErrorParams = BaseErrorParams<ErrorCode.VALIDATION, {
message: string;
}>;
export declare type TriggerEnableErrorParams = BaseErrorParams<ErrorCode.TRIGGER_ENABLE, {
export type TriggerEnableErrorParams = BaseErrorParams<ErrorCode.TRIGGER_ENABLE, {
flowVersionId?: FlowVersionId;
}>;
export declare type TriggerDisableErrorParams = BaseErrorParams<ErrorCode.TRIGGER_DISABLE, {
export type TriggerDisableErrorParams = BaseErrorParams<ErrorCode.TRIGGER_DISABLE, {
flowVersionId?: FlowVersionId;
}>;
export declare type PauseMetadataMissingErrorParams = BaseErrorParams<ErrorCode.PAUSE_METADATA_MISSING, Record<string, never>>;
export declare type InvalidApiKeyParams = BaseErrorParams<ErrorCode.INVALID_API_KEY, Record<string, never>>;
export type PauseMetadataMissingErrorParams = BaseErrorParams<ErrorCode.PAUSE_METADATA_MISSING, Record<string, never>>;
export type InvalidApiKeyParams = BaseErrorParams<ErrorCode.INVALID_API_KEY, Record<string, never>>;
export declare enum ErrorCode {

@@ -122,0 +122,0 @@ CONFIG_NOT_FOUND = "CONFIG_NOT_FOUND",

@@ -45,3 +45,3 @@ "use strict";

ErrorCode["INVALID_API_KEY"] = "INVALID_API_KEY";
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
//# sourceMappingURL=activepieces-error.js.map
import { Static } from "@sinclair/typebox";
export declare const ApId: import("@sinclair/typebox").TString<string>;
export declare type ApId = Static<typeof ApId>;
export type ApId = Static<typeof ApId>;
export declare const apId: (size?: number | undefined) => string;

@@ -1,2 +0,2 @@

export declare type Cursor = string | null;
export type Cursor = string | null;
export interface SeekPage<T> {

@@ -3,0 +3,0 @@ next: Cursor;

@@ -40,3 +40,3 @@ import { RunEnvironment } from "../flow-run/flow-run";

}
export declare type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.FLOW_CREATED, FlowCreated>;
export type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.FLOW_CREATED, FlowCreated>;
export {};

@@ -12,3 +12,3 @@ "use strict";

TelemetryEventName["FLOW_PUBLISHED"] = "flow.published";
})(TelemetryEventName = exports.TelemetryEventName || (exports.TelemetryEventName = {}));
})(TelemetryEventName || (exports.TelemetryEventName = TelemetryEventName = {}));
//# sourceMappingURL=telemetry.js.map

@@ -20,4 +20,4 @@ import { ResumeStepMetadata } from "../flow-run/execution/execution-output";

}
export declare type EngineOperation = ExecuteActionOperation | ExecuteCodeOperation | ExecuteFlowOperation | ExecutePropsOptions | ExecuteTriggerOperation<TriggerHookType> | ExecuteExtractPieceMetadata;
export declare type ExecuteActionOperation = {
export type EngineOperation = ExecuteActionOperation | ExecuteCodeOperation | ExecuteFlowOperation | ExecutePropsOptions | ExecuteTriggerOperation<TriggerHookType> | ExecuteExtractPieceMetadata;
export type ExecuteActionOperation = {
actionName: string;

@@ -32,7 +32,7 @@ flowVersion: FlowVersion;

};
export declare type ExecuteExtractPieceMetadata = {
export type ExecuteExtractPieceMetadata = {
pieceName: string;
pieceVersion: string;
};
export declare type ExecuteCodeOperation = {
export type ExecuteCodeOperation = {
codeBase64: string;

@@ -53,3 +53,3 @@ flowVersion: FlowVersion;

}
declare type BaseExecuteFlowOperation<T extends ExecutionType> = {
type BaseExecuteFlowOperation<T extends ExecutionType> = {
flowVersionId: FlowVersionId;

@@ -62,8 +62,8 @@ projectId: ProjectId;

};
export declare type BeginExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.BEGIN>;
export declare type ResumeExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.RESUME> & {
export type BeginExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.BEGIN>;
export type ResumeExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.RESUME> & {
executionState: ExecutionState;
resumeStepMetadata: ResumeStepMetadata;
};
export declare type ExecuteFlowOperation = BeginExecuteFlowOperation | ResumeExecuteFlowOperation;
export type ExecuteFlowOperation = BeginExecuteFlowOperation | ResumeExecuteFlowOperation;
export interface ExecuteTriggerOperation<HT extends TriggerHookType> {

@@ -81,3 +81,3 @@ hookType: HT;

}
export declare type TriggerPayload = Record<string, never> | {
export type TriggerPayload = Record<string, never> | {
body: any;

@@ -94,3 +94,3 @@ headers: Record<string, string>;

}
export declare type ParseEventResponse = {
export type ParseEventResponse = {
event?: string;

@@ -116,4 +116,4 @@ identifierValue?: string;

}
export declare type ExecuteTriggerResponse<H extends TriggerHookType> = H extends TriggerHookType.RUN ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.TEST ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.ON_DISABLE ? Record<string, never> : ExecuteOnEnableTriggerResponse;
export declare type ExecuteActionResponse = {
export type ExecuteTriggerResponse<H extends TriggerHookType> = H extends TriggerHookType.RUN ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.TEST ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.ON_DISABLE ? Record<string, never> : ExecuteOnEnableTriggerResponse;
export type ExecuteActionResponse = {
success: boolean;

@@ -127,3 +127,3 @@ output: unknown;

}
export declare type EngineResponse<T> = {
export type EngineResponse<T> = {
status: EngineResponseStatus;

@@ -130,0 +130,0 @@ response: T;

@@ -12,3 +12,3 @@ "use strict";

EngineOperationType["EXECUTE_TRIGGER_HOOK"] = "EXECUTE_TRIGGER_HOOK";
})(EngineOperationType = exports.EngineOperationType || (exports.EngineOperationType = {}));
})(EngineOperationType || (exports.EngineOperationType = EngineOperationType = {}));
var TriggerHookType;

@@ -20,3 +20,3 @@ (function (TriggerHookType) {

TriggerHookType["TEST"] = "TEST";
})(TriggerHookType = exports.TriggerHookType || (exports.TriggerHookType = {}));
})(TriggerHookType || (exports.TriggerHookType = TriggerHookType = {}));
;

@@ -28,3 +28,3 @@ var EngineResponseStatus;

EngineResponseStatus["TIMEOUT"] = "TIMEOUT";
})(EngineResponseStatus = exports.EngineResponseStatus || (exports.EngineResponseStatus = {}));
})(EngineResponseStatus || (exports.EngineResponseStatus = EngineResponseStatus = {}));
//# sourceMappingURL=engine-operation.js.map

@@ -5,3 +5,3 @@ /// <reference types="node" />

import { ProjectId } from "../project/project";
export declare type FileId = ApId;
export type FileId = ApId;
export interface File extends BaseModel<FileId> {

@@ -8,0 +8,0 @@ data: Buffer;

import { BaseModel } from "../common/base-model";
import { ApId } from "../common/id-generator";
export declare type FlagId = ApId;
export type FlagId = ApId;
export interface Flag extends BaseModel<FlagId> {

@@ -5,0 +5,0 @@ value: unknown;

@@ -20,3 +20,3 @@ "use strict";

ApFlagId["TEMPLATES_SOURCE_URL"] = "TEMPLATES_SOURCE_URL";
})(ApFlagId = exports.ApFlagId || (exports.ApFlagId = {}));
})(ApFlagId || (exports.ApFlagId = ApFlagId = {}));
//# sourceMappingURL=flag.js.map

@@ -6,2 +6,2 @@ import { Static } from '@sinclair/typebox';

}>;
export declare type CreateFlowRunRequest = Static<typeof CreateFlowRunRequest>;
export type CreateFlowRunRequest = Static<typeof CreateFlowRunRequest>;

@@ -10,4 +10,4 @@ import { Cursor } from "../../common/seek-page";

}>;
export declare type ListFlowRunsRequestQuery = Static<typeof ListFlowRunsRequestQuery> & {
export type ListFlowRunsRequestQuery = Static<typeof ListFlowRunsRequestQuery> & {
cursor: Cursor;
};

@@ -13,7 +13,7 @@ import { ActionType } from '../../flows/actions/action';

}
export declare type ExecutionError = {
export type ExecutionError = {
stepName: string;
errorMessage: string;
};
declare type BaseExecutionOutput<T extends ExecutionOutputStatus> = {
type BaseExecutionOutput<T extends ExecutionOutputStatus> = {
status: T;

@@ -25,35 +25,35 @@ executionState: ExecutionState;

};
declare type BaseResumeStepMetadata<T extends ActionType> = {
type BaseResumeStepMetadata<T extends ActionType> = {
type: T;
name: string;
};
export declare type LoopResumeStepMetadata = BaseResumeStepMetadata<ActionType.LOOP_ON_ITEMS> & {
export type LoopResumeStepMetadata = BaseResumeStepMetadata<ActionType.LOOP_ON_ITEMS> & {
iteration: number;
childResumeStepMetadata: ResumeStepMetadata;
};
export declare type BranchResumeStepMetadata = BaseResumeStepMetadata<ActionType.BRANCH> & {
export type BranchResumeStepMetadata = BaseResumeStepMetadata<ActionType.BRANCH> & {
conditionEvaluation: boolean;
childResumeStepMetadata: ResumeStepMetadata;
};
declare type NormalResumeStepMetadata = BaseResumeStepMetadata<Exclude<ActionType, ActionType.BRANCH | ActionType.LOOP_ON_ITEMS>>;
export declare type ResumeStepMetadata = NormalResumeStepMetadata | BranchResumeStepMetadata | LoopResumeStepMetadata;
type NormalResumeStepMetadata = BaseResumeStepMetadata<Exclude<ActionType, ActionType.BRANCH | ActionType.LOOP_ON_ITEMS>>;
export type ResumeStepMetadata = NormalResumeStepMetadata | BranchResumeStepMetadata | LoopResumeStepMetadata;
export declare enum PauseType {
DELAY = "DELAY"
}
declare type BasePauseMetadata<T extends PauseType> = {
type BasePauseMetadata<T extends PauseType> = {
type: T;
resumeStepMetadata: ResumeStepMetadata;
};
export declare type DelayPauseMetadata = BasePauseMetadata<PauseType.DELAY> & {
export type DelayPauseMetadata = BasePauseMetadata<PauseType.DELAY> & {
resumeDateTime: string;
};
export declare type PauseMetadata = DelayPauseMetadata;
export declare type PauseExecutionOutput = BaseExecutionOutput<ExecutionOutputStatus.PAUSED> & {
export type PauseMetadata = DelayPauseMetadata;
export type PauseExecutionOutput = BaseExecutionOutput<ExecutionOutputStatus.PAUSED> & {
pauseMetadata: PauseMetadata;
};
export declare type FinishExecutionOutput = BaseExecutionOutput<Exclude<ExecutionOutputStatus, ExecutionOutputStatus.PAUSED | ExecutionOutputStatus.STOPPED>>;
export declare type StopExecutionOutput = BaseExecutionOutput<ExecutionOutputStatus.STOPPED> & {
export type FinishExecutionOutput = BaseExecutionOutput<Exclude<ExecutionOutputStatus, ExecutionOutputStatus.PAUSED | ExecutionOutputStatus.STOPPED>>;
export type StopExecutionOutput = BaseExecutionOutput<ExecutionOutputStatus.STOPPED> & {
stopResponse?: StopResponse;
};
export declare type ExecutionOutput = FinishExecutionOutput | PauseExecutionOutput | StopExecutionOutput;
export type ExecutionOutput = FinishExecutionOutput | PauseExecutionOutput | StopExecutionOutput;
export {};

@@ -13,7 +13,7 @@ "use strict";

ExecutionOutputStatus["TIMEOUT"] = "TIMEOUT";
})(ExecutionOutputStatus = exports.ExecutionOutputStatus || (exports.ExecutionOutputStatus = {}));
})(ExecutionOutputStatus || (exports.ExecutionOutputStatus = ExecutionOutputStatus = {}));
var PauseType;
(function (PauseType) {
PauseType["DELAY"] = "DELAY";
})(PauseType = exports.PauseType || (exports.PauseType = {}));
})(PauseType || (exports.PauseType = PauseType = {}));
//# sourceMappingURL=execution-output.js.map
import { StepOutput } from './step-output';
declare type GetStepOutputParams = {
type GetStepOutputParams = {
stepName: string;

@@ -4,0 +4,0 @@ ancestors: [string, number][];

@@ -8,3 +8,3 @@ "use strict";

ExecutionType["RESUME"] = "RESUME";
})(ExecutionType = exports.ExecutionType || (exports.ExecutionType = {}));
})(ExecutionType || (exports.ExecutionType = ExecutionType = {}));
//# sourceMappingURL=execution-type.js.map

@@ -10,3 +10,3 @@ import { ActionType } from "../../flows/actions/action";

}
export declare type StopResponse = {
export type StopResponse = {
status?: number;

@@ -16,3 +16,3 @@ body?: unknown;

};
export declare type StepOutput<T extends ActionType = ActionType, O = any> = {
export type StepOutput<T extends ActionType = ActionType, O = any> = {
type: T;

@@ -28,3 +28,3 @@ status: StepOutputStatus;

};
declare type LoopOnItemsOutput = {
type LoopOnItemsOutput = {
item: unknown;

@@ -34,8 +34,8 @@ index: number;

};
export declare type LoopOnItemsStepOutput = StepOutput<ActionType.LOOP_ON_ITEMS, LoopOnItemsOutput>;
declare type BranchOutput = {
export type LoopOnItemsStepOutput = StepOutput<ActionType.LOOP_ON_ITEMS, LoopOnItemsOutput>;
type BranchOutput = {
condition: boolean;
};
export declare type BranchStepOutput = StepOutput<ActionType.BRANCH, BranchOutput>;
export declare type StepOutputForActionType<T extends ActionType, O = unknown> = T extends ActionType.BRANCH ? BranchStepOutput : T extends ActionType.LOOP_ON_ITEMS ? LoopOnItemsStepOutput : StepOutput<T, O>;
export type BranchStepOutput = StepOutput<ActionType.BRANCH, BranchOutput>;
export type StepOutputForActionType<T extends ActionType, O = unknown> = T extends ActionType.BRANCH ? BranchStepOutput : T extends ActionType.LOOP_ON_ITEMS ? LoopOnItemsStepOutput : StepOutput<T, O>;
export {};

@@ -11,3 +11,3 @@ "use strict";

StepOutputStatus["SUCCEEDED"] = "SUCCEEDED";
})(StepOutputStatus = exports.StepOutputStatus || (exports.StepOutputStatus = {}));
})(StepOutputStatus || (exports.StepOutputStatus = StepOutputStatus = {}));
//# sourceMappingURL=step-output.js.map

@@ -8,4 +8,4 @@ import { BaseModel } from '../common/base-model';

import { FlowId } from '../flows/flow';
export declare type FlowRunId = ApId;
export declare type FlowRun = BaseModel<FlowRunId> & {
export type FlowRunId = ApId;
export type FlowRun = BaseModel<FlowRunId> & {
id: FlowRunId;

@@ -12,0 +12,0 @@ projectId: ProjectId;

@@ -8,3 +8,3 @@ "use strict";

RunEnvironment["TESTING"] = "TESTING";
})(RunEnvironment = exports.RunEnvironment || (exports.RunEnvironment = {}));
})(RunEnvironment || (exports.RunEnvironment = RunEnvironment = {}));
//# sourceMappingURL=flow-run.js.map

@@ -21,3 +21,3 @@ import { Static } from '@sinclair/typebox';

}>;
export declare type CodeActionSettings = Static<typeof CodeActionSettings>;
export type CodeActionSettings = Static<typeof CodeActionSettings>;
export declare const CodeActionSchema: import("@sinclair/typebox").TObject<{

@@ -58,3 +58,3 @@ type: import("@sinclair/typebox").TLiteral<ActionType.CODE>;

}>;
export declare type PieceActionSettings = Static<typeof PieceActionSettings>;
export type PieceActionSettings = Static<typeof PieceActionSettings>;
export declare const PieceActionSchema: import("@sinclair/typebox").TObject<{

@@ -80,7 +80,7 @@ type: import("@sinclair/typebox").TLiteral<ActionType.PIECE>;

}>;
export declare type LoopOnItemsActionSettingsWithValidation = Static<typeof LoopOnItemsActionSettings>;
export type LoopOnItemsActionSettingsWithValidation = Static<typeof LoopOnItemsActionSettings>;
export declare const LoopOnItemsActionSettings: import("@sinclair/typebox").TObject<{
items: import("@sinclair/typebox").TString<string>;
}>;
export declare type LoopOnItemsActionSettings = Static<typeof LoopOnItemsActionSettings>;
export type LoopOnItemsActionSettings = Static<typeof LoopOnItemsActionSettings>;
export declare const LoopOnItemsActionSchema: import("@sinclair/typebox").TObject<{

@@ -141,3 +141,3 @@ type: import("@sinclair/typebox").TLiteral<ActionType.LOOP_ON_ITEMS>;

}>]>;
export declare type BranchCondition = Static<typeof BranchCondition>;
export type BranchCondition = Static<typeof BranchCondition>;
export declare const BranchActionSettings: import("@sinclair/typebox").TObject<{

@@ -158,3 +158,3 @@ conditions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{

}>;
export declare type BranchActionSettings = Static<typeof BranchActionSettings>;
export type BranchActionSettings = Static<typeof BranchActionSettings>;
export declare const BranchActionSchema: import("@sinclair/typebox").TObject<{

@@ -261,4 +261,4 @@ type: import("@sinclair/typebox").TLiteral<ActionType.BRANCH>;

}>]>]>>;
export declare type Action = Static<typeof Action>;
export declare type BranchAction = Static<typeof BranchActionSchema> & {
export type Action = Static<typeof Action>;
export type BranchAction = Static<typeof BranchActionSchema> & {
nextAction?: Action;

@@ -268,15 +268,15 @@ onFailureAction?: Action;

};
export declare type LoopOnItemsAction = Static<typeof LoopOnItemsActionSchema> & {
export type LoopOnItemsAction = Static<typeof LoopOnItemsActionSchema> & {
nextAction?: Action;
firstLoopAction?: Action;
};
export declare type PieceAction = Static<typeof PieceActionSchema> & {
export type PieceAction = Static<typeof PieceActionSchema> & {
nextAction?: Action;
};
export declare type CodeAction = Static<typeof CodeActionSchema> & {
export type CodeAction = Static<typeof CodeActionSchema> & {
nextAction?: Action;
};
export declare type MissingAction = Static<typeof MissingActionSchema> & {
export type MissingAction = Static<typeof MissingActionSchema> & {
nextAction?: Action;
};
export declare type StepSettings = CodeActionSettings | PieceActionSettings | PieceTriggerSettings | BranchActionSettings | LoopOnItemsActionSettings;
export type StepSettings = CodeActionSettings | PieceActionSettings | PieceTriggerSettings | BranchActionSettings | LoopOnItemsActionSettings;

@@ -15,3 +15,3 @@ "use strict";

ActionType["MISSING"] = "MISSING";
})(ActionType = exports.ActionType || (exports.ActionType = {}));
})(ActionType || (exports.ActionType = ActionType = {}));
const commonActionProps = {

@@ -65,3 +65,3 @@ name: typebox_1.Type.String({}),

BranchOperator["DOES_NOT_EXIST"] = "DOES_NOT_EXIST";
})(BranchOperator = exports.BranchOperator || (exports.BranchOperator = {}));
})(BranchOperator || (exports.BranchOperator = BranchOperator = {}));
exports.singleValueConditions = [

@@ -68,0 +68,0 @@ BranchOperator.EXISTS,

@@ -1,3 +0,3 @@

export declare type CountFlowsRequest = {
export type CountFlowsRequest = {
folderId?: string;
};

@@ -6,2 +6,2 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type CreateFlowRequest = Static<typeof CreateFlowRequest>;
export type CreateFlowRequest = Static<typeof CreateFlowRequest>;

@@ -44,3 +44,3 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type FlowVersionTemplate = Static<typeof FlowVersionTemplate>;
export type FlowVersionTemplate = Static<typeof FlowVersionTemplate>;
export declare const FlowTemplate: import("@sinclair/typebox").TObject<{

@@ -97,3 +97,3 @@ id: import("@sinclair/typebox").TString<string>;

}>;
export declare type FlowTemplate = Static<typeof FlowTemplate>;
export type FlowTemplate = Static<typeof FlowTemplate>;
export declare const ListFlowTemplatesRequest: import("@sinclair/typebox").TObject<{

@@ -105,2 +105,2 @@ pieces: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>>;

}>;
export declare type ListFlowTemplatesRequest = Static<typeof ListFlowTemplatesRequest>;
export type ListFlowTemplatesRequest = Static<typeof ListFlowTemplatesRequest>;

@@ -13,3 +13,3 @@ import { Static } from "@sinclair/typebox";

}
export declare type ListFlowsRequest = Omit<Static<typeof ListFlowsRequest>, "cursor"> & {
export type ListFlowsRequest = Omit<Static<typeof ListFlowsRequest>, "cursor"> & {
cursor: Cursor | undefined;

@@ -21,2 +21,2 @@ };

}>;
export declare type GetFlowRequest = Static<typeof GetFlowRequest>;
export type GetFlowRequest = Static<typeof GetFlowRequest>;

@@ -15,3 +15,3 @@ "use strict";

FlowViewMode["TEMPLATE"] = "TEMPLATE";
})(FlowViewMode = exports.FlowViewMode || (exports.FlowViewMode = {}));
})(FlowViewMode || (exports.FlowViewMode = FlowViewMode = {}));
exports.GetFlowRequest = typebox_1.Type.Object({

@@ -18,0 +18,0 @@ versionId: typebox_1.Type.Optional(typebox_1.Type.String({})),

@@ -5,7 +5,7 @@ import { FlowOperationRequest } from './flow-operations';

import { FlowVersion } from './flow-version';
declare type Step = Action | Trigger;
declare type GetAllSubFlowSteps = {
type Step = Action | Trigger;
type GetAllSubFlowSteps = {
subFlowStartStep: Step;
};
declare type GetStepFromSubFlow = {
type GetStepFromSubFlow = {
subFlowStartStep: Step;

@@ -12,0 +12,0 @@ stepName: string;

@@ -6,3 +6,3 @@ import { Static } from "@sinclair/typebox";

import { FlowVersionId } from "../flow-version";
export declare type FlowInstanceId = ApId;
export type FlowInstanceId = ApId;
export declare enum ScheduleType {

@@ -21,3 +21,3 @@ CRON_EXPRESSION = "CRON_EXPRESSION"

}>>;
export declare type FlowScheduleOptions = Static<typeof FlowScheduleOptions>;
export type FlowScheduleOptions = Static<typeof FlowScheduleOptions>;
export declare const FlowInstance: import("@sinclair/typebox").TObject<{

@@ -37,3 +37,3 @@ projectId: import("@sinclair/typebox").TString<string>;

}>;
export declare type FlowInstance = Static<typeof FlowInstance> & {
export type FlowInstance = Static<typeof FlowInstance> & {
projectId: ProjectId;

@@ -40,0 +40,0 @@ flowId: FlowId;

@@ -9,3 +9,3 @@ "use strict";

ScheduleType["CRON_EXPRESSION"] = "CRON_EXPRESSION";
})(ScheduleType = exports.ScheduleType || (exports.ScheduleType = {}));
})(ScheduleType || (exports.ScheduleType = ScheduleType = {}));
var FlowInstanceStatus;

@@ -16,3 +16,3 @@ (function (FlowInstanceStatus) {

FlowInstanceStatus["UNPUBLISHED"] = "UNPUBLISHED";
})(FlowInstanceStatus = exports.FlowInstanceStatus || (exports.FlowInstanceStatus = {}));
})(FlowInstanceStatus || (exports.FlowInstanceStatus = FlowInstanceStatus = {}));
exports.FlowScheduleOptions = typebox_1.Type.Optional(typebox_1.Type.Object({

@@ -19,0 +19,0 @@ type: typebox_1.Type.Literal(ScheduleType.CRON_EXPRESSION),

@@ -7,7 +7,7 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type GetFlowInstanceRequest = Static<typeof GetFlowInstanceRequest>;
export type GetFlowInstanceRequest = Static<typeof GetFlowInstanceRequest>;
export declare const UpsertFlowInstanceRequest: import("@sinclair/typebox").TObject<{
flowId: import("@sinclair/typebox").TString<string>;
}>;
export declare type UpsertFlowInstanceRequest = Omit<Static<typeof UpsertFlowInstanceRequest>, "flowId"> & {
export type UpsertFlowInstanceRequest = Omit<Static<typeof UpsertFlowInstanceRequest>, "flowId"> & {
flowId: FlowId;

@@ -18,2 +18,2 @@ };

}>;
export declare type UpdateFlowInstanceRequest = Static<typeof UpdateFlowInstanceRequest>;
export type UpdateFlowInstanceRequest = Static<typeof UpdateFlowInstanceRequest>;

@@ -18,3 +18,3 @@ "use strict";

FlowOperationType["DELETE_ACTION"] = "DELETE_ACTION";
})(FlowOperationType = exports.FlowOperationType || (exports.FlowOperationType = {}));
})(FlowOperationType || (exports.FlowOperationType = FlowOperationType = {}));
var StepLocationRelativeToParent;

@@ -26,3 +26,3 @@ (function (StepLocationRelativeToParent) {

StepLocationRelativeToParent["INSIDE_LOOP"] = "INSIDE_LOOP";
})(StepLocationRelativeToParent = exports.StepLocationRelativeToParent || (exports.StepLocationRelativeToParent = {}));
})(StepLocationRelativeToParent || (exports.StepLocationRelativeToParent = StepLocationRelativeToParent = {}));
const optionalNextAction = typebox_1.Type.Object({ nextAction: typebox_1.Type.Optional(action_1.Action) });

@@ -29,0 +29,0 @@ exports.LockFlowRequest = typebox_1.Type.Object({

import { ApId } from "../common/id-generator";
import { Static } from "@sinclair/typebox";
export declare type FlowVersionId = ApId;
export type FlowVersionId = ApId;
export declare enum FlowVersionState {

@@ -55,2 +55,2 @@ LOCKED = "LOCKED",

}>;
export declare type FlowVersion = Static<typeof FlowVersion>;
export type FlowVersion = Static<typeof FlowVersion>;

@@ -11,4 +11,4 @@ "use strict";

FlowVersionState["DRAFT"] = "DRAFT";
})(FlowVersionState = exports.FlowVersionState || (exports.FlowVersionState = {}));
})(FlowVersionState || (exports.FlowVersionState = FlowVersionState = {}));
exports.FlowVersion = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { flowId: typebox_1.Type.String(), displayName: typebox_1.Type.String(), trigger: trigger_1.Trigger, valid: typebox_1.Type.Boolean(), state: typebox_1.Type.Enum(FlowVersionState) }));
//# sourceMappingURL=flow-version.js.map
import { ApId } from "../common/id-generator";
import { FlowInstanceStatus } from "./flow-instances";
import { Static } from "@sinclair/typebox";
export declare type FlowId = ApId;
export type FlowId = ApId;
export declare const Flow: import("@sinclair/typebox").TObject<{

@@ -65,2 +65,2 @@ projectId: import("@sinclair/typebox").TString<string>;

}>;
export declare type Flow = Static<typeof Flow>;
export type Flow = Static<typeof Flow>;

@@ -6,7 +6,7 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type CreateOrRenameFolderRequest = Static<typeof CreateOrRenameFolderRequest>;
export type CreateOrRenameFolderRequest = Static<typeof CreateOrRenameFolderRequest>;
export declare const DeleteFolderRequest: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString<string>;
}>;
export declare type DeleteFlowRequest = Static<typeof DeleteFolderRequest>;
export type DeleteFlowRequest = Static<typeof DeleteFolderRequest>;
export declare const ListFolderRequest: import("@sinclair/typebox").TObject<{

@@ -16,4 +16,4 @@ limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;

}>;
export declare type ListFolderRequest = Omit<Static<typeof ListFolderRequest>, "cursor"> & {
export type ListFolderRequest = Omit<Static<typeof ListFolderRequest>, "cursor"> & {
cursor: Cursor | undefined;
};
import { Static } from "@sinclair/typebox";
export declare type FolderId = string;
export type FolderId = string;
export declare const Folder: import("@sinclair/typebox").TObject<{

@@ -11,5 +11,5 @@ id: import("@sinclair/typebox").TString<string>;

export declare const UncategorizedFolderId = "UNCATEGORIZED";
export declare type Folder = Static<typeof Folder>;
export declare type FolderDto = Folder & {
export type Folder = Static<typeof Folder>;
export type FolderDto = Folder & {
numberOfFlows: number;
};
import { Folder } from "./folder";
export declare type FolderDto = Folder & {
export type FolderDto = Folder & {
numberOfFlows: number;
};

@@ -7,3 +7,3 @@ import { Static } from '@sinclair/typebox';

}>;
export declare type SampleDataSettings = Static<typeof SampleDataSettingsObject>;
export type SampleDataSettings = Static<typeof SampleDataSettingsObject>;
export declare const DEFAULT_SAMPLE_DATA_SETTINGS: SampleDataSettings;

@@ -12,2 +12,2 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type StepRunResponse = Static<typeof StepRunResponse>;
export type StepRunResponse = Static<typeof StepRunResponse>;
import { BaseModel } from "../../common/base-model";
import { ProjectId } from "../../project/project";
export declare type TriggerEventId = string;
export type TriggerEventId = string;
export interface TriggerEvent extends BaseModel<TriggerEventId> {

@@ -5,0 +5,0 @@ projectId: ProjectId;

@@ -9,3 +9,3 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type ListTriggerEventsRequest = Omit<Static<typeof ListTriggerEventsRequest>, "flowId" | "cursor"> & {
export type ListTriggerEventsRequest = Omit<Static<typeof ListTriggerEventsRequest>, "flowId" | "cursor"> & {
flowId: FlowId;

@@ -17,2 +17,2 @@ cursor: Cursor | undefined;

}>;
export declare type TestPollingTriggerRequest = Static<typeof TestPollingTriggerRequest>;
export type TestPollingTriggerRequest = Static<typeof TestPollingTriggerRequest>;

@@ -15,3 +15,3 @@ import { Static } from '@sinclair/typebox';

}>;
export declare type EmptyTrigger = Static<typeof EmptyTrigger>;
export type EmptyTrigger = Static<typeof EmptyTrigger>;
export declare const WebhookTrigger: import("@sinclair/typebox").TObject<{

@@ -31,3 +31,3 @@ type: import("@sinclair/typebox").TLiteral<TriggerType.WEBHOOK>;

}>;
export declare type WebhookTrigger = Static<typeof WebhookTrigger>;
export type WebhookTrigger = Static<typeof WebhookTrigger>;
export declare const PieceTriggerSettings: import("@sinclair/typebox").TObject<{

@@ -44,3 +44,3 @@ pieceName: import("@sinclair/typebox").TString<string>;

}>;
export declare type PieceTriggerSettings = Static<typeof PieceTriggerSettings>;
export type PieceTriggerSettings = Static<typeof PieceTriggerSettings>;
export declare const PieceTrigger: import("@sinclair/typebox").TObject<{

@@ -64,3 +64,3 @@ type: import("@sinclair/typebox").TLiteral<TriggerType.PIECE>;

}>;
export declare type PieceTrigger = Static<typeof PieceTrigger>;
export type PieceTrigger = Static<typeof PieceTrigger>;
export declare const Trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{

@@ -104,2 +104,2 @@ type: import("@sinclair/typebox").TLiteral<TriggerType.WEBHOOK>;

}>]>;
export declare type Trigger = Static<typeof Trigger>;
export type Trigger = Static<typeof Trigger>;

@@ -12,3 +12,3 @@ "use strict";

TriggerType["PIECE"] = "PIECE_TRIGGER";
})(TriggerType = exports.TriggerType || (exports.TriggerType = {}));
})(TriggerType || (exports.TriggerType = TriggerType = {}));
const commonProps = {

@@ -15,0 +15,0 @@ name: typebox_1.Type.String({}),

@@ -6,3 +6,3 @@ import { BaseModel } from "../../common/base-model";

import { FlowId } from "../../flows/flow";
export declare type InstanceId = ApId;
export type InstanceId = ApId;
export interface Instance extends BaseModel<InstanceId> {

@@ -9,0 +9,0 @@ projectId: ProjectId;

@@ -8,3 +8,3 @@ "use strict";

InstanceStatus["DISABLED"] = "DISABLED";
})(InstanceStatus = exports.InstanceStatus || (exports.InstanceStatus = {}));
})(InstanceStatus || (exports.InstanceStatus = InstanceStatus = {}));
//# sourceMappingURL=instance.js.map

@@ -8,15 +8,15 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type GetPieceRequestWithScopeParams = Static<typeof GetPieceRequestWithScopeParams>;
export type GetPieceRequestWithScopeParams = Static<typeof GetPieceRequestWithScopeParams>;
export declare const GetPieceRequestParams: import("@sinclair/typebox").TObject<{
name: import("@sinclair/typebox").TString<string>;
}>;
export declare type GetPieceRequestParams = Static<typeof GetPieceRequestParams>;
export type GetPieceRequestParams = Static<typeof GetPieceRequestParams>;
export declare const ListPiecesRequestQuery: import("@sinclair/typebox").TObject<{
release: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
}>;
export declare type ListPiecesRequestQuery = Static<typeof ListPiecesRequestQuery>;
export type ListPiecesRequestQuery = Static<typeof ListPiecesRequestQuery>;
export declare const GetPieceRequestQuery: import("@sinclair/typebox").TObject<{
version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
}>;
export declare type GetPieceRequestQuery = Static<typeof GetPieceRequestQuery>;
export type GetPieceRequestQuery = Static<typeof GetPieceRequestQuery>;
export declare const PieceOptionRequest: import("@sinclair/typebox").TObject<{

@@ -29,3 +29,3 @@ pieceVersion: import("@sinclair/typebox").TString<string>;

}>;
export declare type PieceOptionRequest = Static<typeof PieceOptionRequest>;
export type PieceOptionRequest = Static<typeof PieceOptionRequest>;
export declare const InstallPieceRequest: import("@sinclair/typebox").TObject<{

@@ -35,2 +35,2 @@ pieceName: import("@sinclair/typebox").TString<string>;

}>;
export declare type InstallPieceRequest = Static<typeof InstallPieceRequest>;
export type InstallPieceRequest = Static<typeof InstallPieceRequest>;

@@ -6,3 +6,3 @@ "use strict";

const semVerRegex = /^[0-9]+\.[0-9]+\.[0-9]+$/;
const queryVersionRegex = /^(\^)?[0-9]+\.[0-9]+\.[0-9]+$/;
const queryVersionRegex = /^([~^])?[0-9]+\.[0-9]+\.[0-9]+$/;
exports.SemVerType = typebox_1.Type.RegEx(semVerRegex);

@@ -9,0 +9,0 @@ exports.QueryVerType = typebox_1.Type.RegEx(queryVersionRegex);

@@ -1,2 +0,2 @@

declare type PackageInfoParams = {
type PackageInfoParams = {
pieceName: string;

@@ -3,0 +3,0 @@ pieceVersion: string;

@@ -5,3 +5,3 @@ import { BaseModel } from "../common/base-model";

import { NotificationStatus } from "./update-project-request";
export declare type ProjectId = ApId;
export type ProjectId = ApId;
export interface Project extends BaseModel<ProjectId> {

@@ -8,0 +8,0 @@ ownerId: UserId;

@@ -9,2 +9,2 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type UpdateProjectRequest = Static<typeof UpdateProjectRequest>;
export type UpdateProjectRequest = Static<typeof UpdateProjectRequest>;

@@ -9,3 +9,3 @@ "use strict";

NotificationStatus["ALWAYS"] = "ALWAYS";
})(NotificationStatus = exports.NotificationStatus || (exports.NotificationStatus = {}));
})(NotificationStatus || (exports.NotificationStatus = NotificationStatus = {}));
exports.UpdateProjectRequest = typebox_1.Type.Object({

@@ -12,0 +12,0 @@ notifyStatus: typebox_1.Type.Enum(NotificationStatus),

@@ -6,10 +6,10 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type PutStoreEntryRequest = Static<typeof PutStoreEntryRequest>;
export type PutStoreEntryRequest = Static<typeof PutStoreEntryRequest>;
export declare const GetStoreEntryRequest: import("@sinclair/typebox").TObject<{
key: import("@sinclair/typebox").TString<string>;
}>;
export declare type GetStoreEntryRequest = Static<typeof GetStoreEntryRequest>;
export type GetStoreEntryRequest = Static<typeof GetStoreEntryRequest>;
export declare const DeletStoreEntryRequest: import("@sinclair/typebox").TObject<{
key: import("@sinclair/typebox").TString<string>;
}>;
export declare type DeletStoreEntryRequest = Static<typeof DeletStoreEntryRequest>;
export type DeletStoreEntryRequest = Static<typeof DeletStoreEntryRequest>;
import { BaseModel } from "../common/base-model";
import { ApId } from "../common/id-generator";
import { ProjectId } from "../project/project";
export declare type StoreEntryId = ApId;
export type StoreEntryId = ApId;
export interface StoreEntry extends BaseModel<StoreEntryId> {

@@ -6,0 +6,0 @@ key: string;

import { BaseModel } from "../common/base-model";
import { ApId } from "../common/id-generator";
export declare type UserId = ApId;
export type UserId = ApId;
export interface User extends BaseModel<UserId> {

@@ -13,5 +13,5 @@ email: string;

}
export declare type UserMeta = Pick<User, "id" | "email" | "firstName" | "lastName">;
export type UserMeta = Pick<User, "id" | "email" | "firstName" | "lastName">;
export declare enum UserStatus {
VERIFIED = "VERIFIED"
}

@@ -7,3 +7,3 @@ "use strict";

UserStatus["VERIFIED"] = "VERIFIED";
})(UserStatus = exports.UserStatus || (exports.UserStatus = {}));
})(UserStatus || (exports.UserStatus = UserStatus = {}));
//# sourceMappingURL=user.js.map

@@ -5,2 +5,2 @@ import { Static } from "@sinclair/typebox";

}>;
export declare type WebhookUrlParams = Static<typeof WebhookUrlParams>;
export type WebhookUrlParams = Static<typeof WebhookUrlParams>;

@@ -5,6 +5,6 @@ import { BaseModel } from '../common/base-model';

import { ProjectId } from '../project/project';
export declare type WebhookSimulationId = ApId;
export declare type WebhookSimulation = BaseModel<WebhookSimulationId> & {
export type WebhookSimulationId = ApId;
export type WebhookSimulation = BaseModel<WebhookSimulationId> & {
flowId: FlowId;
projectId: ProjectId;
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc