Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@activepieces/shared

Package Overview
Dependencies
Maintainers
3
Versions
221
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.1 to 0.3.2

2

package.json
{
"name": "@activepieces/shared",
"version": "0.3.1",
"version": "0.3.2",
"type": "commonjs",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -47,3 +47,3 @@ export * from "./lib/flows/actions/action";

export { UpdateCollectionRequest } from './lib/collections/dto/update-collection-request';
export { CreateFlowRequest } from './lib/flows/dto/create-flow-request';
export * from './lib/flows/dto/create-flow-request';
export { CloneFlowVersionRequest } from './lib/flows/dto/clone-flow-version-request';

@@ -50,0 +50,0 @@ export { SeekPage, Cursor } from './lib/common/seek-page';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApId = exports.apId = exports.CreateFlowRequest = exports.UpdateCollectionRequest = exports.CreateCollectionRequest = exports.ListFlowsRequest = exports.ListCollectionsRequest = exports.ExecutionState = exports.RunEnvironment = exports.FlowVersionState = exports.Collection = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.TriggerStrategy = exports.CreateFlowRunRequest = exports.UserStatus = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.LoopOnItemsActionSettings = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.CodeRunStatus = exports.StepOutputStatus = void 0;
exports.ApId = exports.apId = exports.UpdateCollectionRequest = exports.CreateCollectionRequest = exports.ListFlowsRequest = exports.ListCollectionsRequest = exports.ExecutionState = exports.RunEnvironment = exports.FlowVersionState = exports.Collection = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.TriggerStrategy = exports.CreateFlowRunRequest = exports.UserStatus = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.LoopOnItemsActionSettings = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.CodeRunStatus = exports.StepOutputStatus = void 0;
const tslib_1 = require("tslib");

@@ -72,4 +72,3 @@ tslib_1.__exportStar(require("./lib/flows/actions/action"), exports);

Object.defineProperty(exports, "UpdateCollectionRequest", { enumerable: true, get: function () { return update_collection_request_1.UpdateCollectionRequest; } });
var create_flow_request_1 = require("./lib/flows/dto/create-flow-request");
Object.defineProperty(exports, "CreateFlowRequest", { enumerable: true, get: function () { return create_flow_request_1.CreateFlowRequest; } });
tslib_1.__exportStar(require("./lib/flows/dto/create-flow-request"), exports);
var id_generator_1 = require("./lib/common/id-generator");

@@ -76,0 +75,0 @@ Object.defineProperty(exports, "apId", { enumerable: true, get: function () { return id_generator_1.apId; } });

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

SECRET_TEXT = "SECRET_TEXT",
BASIC_AUTH = "BASIC_AUTH"
BASIC_AUTH = "BASIC_AUTH",
CUSTOM_AUTH = "CUSTOM_AUTH"
}

@@ -40,2 +41,6 @@ export interface SecretTextConnectionValue {

}
export interface CustomAuthConnectionValue {
type: AppConnectionType.CUSTOM_AUTH;
props: Record<string, unknown>;
}
export interface CloudOAuth2ConnectionValue extends BaseOAuth2ConnectionValue {

@@ -66,4 +71,5 @@ type: AppConnectionType.CLOUD_OAUTH2;

export declare type BasicAuthConnection = BaseAppConnection<BasicAuthConnectionValue>;
export declare type AppConnection = BasicAuthConnection | SecretKeyAppConnection | OAuth2AppConnection | CloudAuth2Connection;
export declare type AppConnectionValue = SecretTextConnectionValue | OAuth2ConnectionValueWithApp | CloudOAuth2ConnectionValue | 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 {};

@@ -16,3 +16,4 @@ "use strict";

AppConnectionType["BASIC_AUTH"] = "BASIC_AUTH";
AppConnectionType["CUSTOM_AUTH"] = "CUSTOM_AUTH";
})(AppConnectionType = exports.AppConnectionType || (exports.AppConnectionType = {}));
//# sourceMappingURL=app-connection.js.map
import { Static } from "@sinclair/typebox";
import { AppConnectionType } from "../app-connection";
export declare const UpsertCustomAuthRequest: import("@sinclair/typebox").TObject<{
value: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<AppConnectionType.CUSTOM_AUTH>;
props: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TUnknown>;
}>;
name: import("@sinclair/typebox").TString<string>;
appName: import("@sinclair/typebox").TString<string>;
}>;
export declare const UpsertCloudOAuth2Request: import("@sinclair/typebox").TObject<{

@@ -52,2 +60,3 @@ value: import("@sinclair/typebox").TObject<{

export declare type UpsertBasicAuthRequest = Static<typeof UpsertBasicAuthRequest>;
export declare type UpsertCustomAuthRequest = Static<typeof UpsertCustomAuthRequest>;
export declare type UpsertConnectionRequest = Static<typeof UpsertConnectionRequest>;

@@ -95,2 +104,9 @@ export declare const UpsertConnectionRequest: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{

appName: import("@sinclair/typebox").TString<string>;
}>, import("@sinclair/typebox").TObject<{
value: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<AppConnectionType.CUSTOM_AUTH>;
props: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TUnknown>;
}>;
name: import("@sinclair/typebox").TString<string>;
appName: import("@sinclair/typebox").TString<string>;
}>]>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpsertConnectionRequest = exports.UpsertBasicAuthRequest = exports.UpsertOAuth2Request = exports.UpsertSecretTextRequest = exports.UpsertCloudOAuth2Request = void 0;
exports.UpsertConnectionRequest = exports.UpsertBasicAuthRequest = exports.UpsertOAuth2Request = exports.UpsertSecretTextRequest = exports.UpsertCloudOAuth2Request = exports.UpsertCustomAuthRequest = void 0;
const typebox_1 = require("@sinclair/typebox");

@@ -10,2 +10,6 @@ const app_connection_1 = require("../app-connection");

};
exports.UpsertCustomAuthRequest = typebox_1.Type.Object(Object.assign(Object.assign({}, commonAuthProps), { value: typebox_1.Type.Object({
type: typebox_1.Type.Literal(app_connection_1.AppConnectionType.CUSTOM_AUTH),
props: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())
}) }));
exports.UpsertCloudOAuth2Request = typebox_1.Type.Object(Object.assign(Object.assign({}, commonAuthProps), { value: typebox_1.Type.Object({

@@ -40,3 +44,3 @@ client_id: typebox_1.Type.String(),

}) }));
exports.UpsertConnectionRequest = typebox_1.Type.Union([exports.UpsertSecretTextRequest, exports.UpsertOAuth2Request, exports.UpsertCloudOAuth2Request, exports.UpsertBasicAuthRequest]);
exports.UpsertConnectionRequest = typebox_1.Type.Union([exports.UpsertSecretTextRequest, exports.UpsertOAuth2Request, exports.UpsertCloudOAuth2Request, exports.UpsertBasicAuthRequest, exports.UpsertCustomAuthRequest]);
//# sourceMappingURL=upsert-app-connection-request.js.map

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

}
declare type ErrorParams = CollectionNotFoundErrorParams | ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | FlowOperationErrorParams;
declare type ErrorParams = CollectionNotFoundErrorParams | ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | FlowOperationErrorParams;
export interface BaseErrorParams<T, V> {

@@ -91,2 +91,3 @@ code: T;

}>;
export declare type OpenAiFailedErrorParams = BaseErrorParams<ErrorCode.OPENAI_FAILED, Record<string, never>>;
export declare type FlowOperationErrorParams = BaseErrorParams<ErrorCode.FLOW_OPERATION_INVALID, Record<string, never>>;

@@ -123,4 +124,5 @@ export declare type InvalidJwtTokenErrorParams = BaseErrorParams<ErrorCode.INVALID_OR_EXPIRED_JWT_TOKEN, {

TRIGGER_FAILED = "TRIGGER_FAILED",
FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID"
FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID",
OPENAI_FAILED = "OPENAI_FAILED"
}
export {};

@@ -37,3 +37,4 @@ "use strict";

ErrorCode["FLOW_OPERATION_INVALID"] = "FLOW_OPERATION_INVALID";
ErrorCode["OPENAI_FAILED"] = "OPENAI_FAILED";
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
//# sourceMappingURL=activepieces-error.js.map

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

};
export declare const GuessFlowRequest: import("@sinclair/typebox").TObject<{
prompt: import("@sinclair/typebox").TString<string>;
displayName: import("@sinclair/typebox").TString<string>;
collectionId: import("@sinclair/typebox").TString<string>;
}>;
export declare type GuessFlowRequest = Static<typeof GuessFlowRequest>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateFlowRequest = void 0;
exports.GuessFlowRequest = exports.CreateFlowRequest = void 0;
const typebox_1 = require("@sinclair/typebox");

@@ -9,2 +9,7 @@ exports.CreateFlowRequest = typebox_1.Type.Object({

});
exports.GuessFlowRequest = typebox_1.Type.Object({
prompt: typebox_1.Type.String({}),
displayName: typebox_1.Type.String({}),
collectionId: typebox_1.Type.String({}),
});
//# sourceMappingURL=create-flow-request.js.map

@@ -16,3 +16,4 @@ export declare enum PropertyType {

STATIC_MULTI_SELECT_DROPDOWN = "STATIC_MULTI_SELECT_DROPDOWN",
DYNAMIC = "DYNAMIC"
DYNAMIC = "DYNAMIC",
CUSTOM_AUTH = "CUSTOM_AUTH"
}

@@ -21,3 +21,4 @@ "use strict";

PropertyType["DYNAMIC"] = "DYNAMIC";
PropertyType["CUSTOM_AUTH"] = "CUSTOM_AUTH";
})(PropertyType = exports.PropertyType || (exports.PropertyType = {}));
//# sourceMappingURL=property-type.js.map

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