@activepieces/shared 0.10.170 → 0.10.172
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/package.json +1 -1
- package/src/lib/common/activepieces-error.d.ts +10 -4
- package/src/lib/common/activepieces-error.js +2 -1
- package/src/lib/common/activepieces-error.js.map +1 -1
- package/src/lib/engine/engine-operation.d.ts +1 -0
- package/src/lib/engine/engine-operation.js.map +1 -1
- package/src/lib/flows/operations/index.d.ts +22 -1
- package/src/lib/flows/operations/index.js +12 -1
- package/src/lib/flows/operations/index.js.map +1 -1
- package/src/lib/flows/operations/paste-operations.d.ts +7 -0
- package/src/lib/mcp/dto/mcp.dto.d.ts +20 -0
- package/src/lib/mcp/dto/mcp.dto.js +23 -0
- package/src/lib/mcp/dto/mcp.dto.js.map +1 -0
- package/src/lib/mcp/index.d.ts +2 -44
- package/src/lib/mcp/index.js +3 -30
- package/src/lib/mcp/index.js.map +1 -1
- package/src/lib/mcp/mcp.d.ts +141 -0
- package/src/lib/mcp/mcp.js +52 -0
- package/src/lib/mcp/mcp.js.map +1 -0
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ export declare class ActivepiecesError extends Error {
|
|
|
11
11
|
error: ApErrorParams;
|
|
12
12
|
constructor(error: ApErrorParams, message?: string);
|
|
13
13
|
}
|
|
14
|
-
export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowFormNotFoundError | FlowNotFoundErrorParams | FlowIsLockedErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvalidSAMLResponseParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams | ExistingAlertChannelErrorParams | EmailAlreadyHasActivationKey | ProviderProxyConfigNotFoundParams | AITokenLimitExceededParams | SessionExpiredParams | InvalidLicenseKeyParams | NoChatResponseParams | InvalidSmtpCredentialsErrorParams | InvalidGitCredentialsParams | InvalidReleaseTypeParams | CopilotFailedErrorParams | ProjectExternalIdAlreadyExistsParams | MemoryIssueParams | InvalidCustomDomainErrorParams |
|
|
14
|
+
export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowFormNotFoundError | FlowNotFoundErrorParams | FlowIsLockedErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvalidSAMLResponseParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams | ExistingAlertChannelErrorParams | EmailAlreadyHasActivationKey | ProviderProxyConfigNotFoundParams | AITokenLimitExceededParams | SessionExpiredParams | InvalidLicenseKeyParams | NoChatResponseParams | InvalidSmtpCredentialsErrorParams | InvalidGitCredentialsParams | InvalidReleaseTypeParams | CopilotFailedErrorParams | ProjectExternalIdAlreadyExistsParams | MemoryIssueParams | InvalidCustomDomainErrorParams | McpPieceRequiresConnectionParams | McpPieceConnectionMismatchParams;
|
|
15
15
|
export type BaseErrorParams<T, V> = {
|
|
16
16
|
code: T;
|
|
17
17
|
params: V;
|
|
@@ -197,8 +197,13 @@ export type CopilotFailedErrorParams = BaseErrorParams<ErrorCode.COPILOT_FAILED,
|
|
|
197
197
|
export type ProjectExternalIdAlreadyExistsParams = BaseErrorParams<ErrorCode.PROJECT_EXTERNAL_ID_ALREADY_EXISTS, {
|
|
198
198
|
externalId: string;
|
|
199
199
|
}>;
|
|
200
|
-
export type
|
|
201
|
-
|
|
200
|
+
export type McpPieceRequiresConnectionParams = BaseErrorParams<ErrorCode.MCP_PIECE_REQUIRES_CONNECTION, {
|
|
201
|
+
pieceName: string;
|
|
202
|
+
}>;
|
|
203
|
+
export type McpPieceConnectionMismatchParams = BaseErrorParams<ErrorCode.MCP_PIECE_CONNECTION_MISMATCH, {
|
|
204
|
+
pieceName: string;
|
|
205
|
+
connectionPieceName: string;
|
|
206
|
+
connectionId: string;
|
|
202
207
|
}>;
|
|
203
208
|
export declare enum ErrorCode {
|
|
204
209
|
INVALID_CUSTOM_DOMAIN = "INVALID_CUSTOM_DOMAIN",
|
|
@@ -260,5 +265,6 @@ export declare enum ErrorCode {
|
|
|
260
265
|
INVALID_GIT_CREDENTIALS = "INVALID_GIT_CREDENTIALS",
|
|
261
266
|
INVALID_RELEASE_TYPE = "INVALID_RELEASE_TYPE",
|
|
262
267
|
COPILOT_FAILED = "COPILOT_FAILED",
|
|
263
|
-
|
|
268
|
+
MCP_PIECE_REQUIRES_CONNECTION = "MCP_PIECE_REQUIRES_CONNECTION",
|
|
269
|
+
MCP_PIECE_CONNECTION_MISMATCH = "MCP_PIECE_CONNECTION_MISMATCH"
|
|
264
270
|
}
|
|
@@ -69,6 +69,7 @@ var ErrorCode;
|
|
|
69
69
|
ErrorCode["INVALID_GIT_CREDENTIALS"] = "INVALID_GIT_CREDENTIALS";
|
|
70
70
|
ErrorCode["INVALID_RELEASE_TYPE"] = "INVALID_RELEASE_TYPE";
|
|
71
71
|
ErrorCode["COPILOT_FAILED"] = "COPILOT_FAILED";
|
|
72
|
-
ErrorCode["
|
|
72
|
+
ErrorCode["MCP_PIECE_REQUIRES_CONNECTION"] = "MCP_PIECE_REQUIRES_CONNECTION";
|
|
73
|
+
ErrorCode["MCP_PIECE_CONNECTION_MISMATCH"] = "MCP_PIECE_CONNECTION_MISMATCH";
|
|
73
74
|
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
|
|
74
75
|
//# sourceMappingURL=activepieces-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAUA,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,KAAoB,EAAE,OAAgB;QACrD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QADpC,UAAK,GAAL,KAAK,CAAe;IAEvC,CAAC;CACJ;AAJD,8CAIC;
|
|
1
|
+
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAUA,MAAa,iBAAkB,SAAQ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AAA;IAC3C,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,gDAAmC,CAAA;IACnC,8CAAiC,CAAA;IACjC,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,sCAAyB,CAAA;IACzB,wDAA2C,CAAA;IAC3C,kFAAqE,CAAA;IACrE,kEAAqD,CAAA;IACrD,gEAAmD,CAAA;IACnD,0DAA6C,CAAA;IAC7C,8CAAiC,CAAA;IACjC,4EAA+D,CAAA;IAC/D,4EAA+D,CAAA;AACnE,CAAC,EA9DW,SAAS,yBAAT,SAAS,QA8DpB"}
|
|
@@ -74,6 +74,7 @@ export declare enum ProgressUpdateType {
|
|
|
74
74
|
}
|
|
75
75
|
export type BeginExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.BEGIN> & {
|
|
76
76
|
triggerPayload: unknown;
|
|
77
|
+
formatPayload: boolean;
|
|
77
78
|
};
|
|
78
79
|
export type ResumeExecuteFlowOperation = BaseExecuteFlowOperation<ExecutionType.RESUME> & {
|
|
79
80
|
tasks: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAShD,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC3B,wEAAiD,CAAA;IACjD,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;IAC7C,sEAA+C,CAAA;AACnD,CAAC,EARW,mBAAmB,mCAAnB,mBAAmB,QAQ9B;AAED,IAAY,eAOX;AAPD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,0CAAuB,CAAA;IACvB,kCAAe,CAAA;IACf,8BAAW,CAAA;IACX,gCAAa,CAAA;AACjB,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AA6DD,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,2DAAqC,CAAA;IACrC,6CAAuB,CAAA;IACvB,mCAAa,CAAA;AACjB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;
|
|
1
|
+
{"version":3,"file":"engine-operation.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/engine/engine-operation.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAShD,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC3B,wEAAiD,CAAA;IACjD,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;IAC7C,sEAA+C,CAAA;AACnD,CAAC,EARW,mBAAmB,mCAAnB,mBAAmB,QAQ9B;AAED,IAAY,eAOX;AAPD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,0CAAuB,CAAA;IACvB,kCAAe,CAAA;IACf,8BAAW,CAAA;IACX,gCAAa,CAAA;AACjB,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AA6DD,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,2DAAqC,CAAA;IACrC,6CAAuB,CAAA;IACvB,mCAAa,CAAA;AACjB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AA6EY,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,cAAI,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE,CAAC;CACrD,CAAC,CAAA;AA0CF,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,uCAAe,CAAA;IACf,2CAAmB,CAAA;IACnB,qDAA6B,CAAA;AACjC,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
|
|
@@ -19,7 +19,8 @@ export declare enum FlowOperationType {
|
|
|
19
19
|
DELETE_BRANCH = "DELETE_BRANCH",
|
|
20
20
|
ADD_BRANCH = "ADD_BRANCH",
|
|
21
21
|
DUPLICATE_BRANCH = "DUPLICATE_BRANCH",
|
|
22
|
-
SET_SKIP_ACTION = "SET_SKIP_ACTION"
|
|
22
|
+
SET_SKIP_ACTION = "SET_SKIP_ACTION",
|
|
23
|
+
UPDATE_METADATA = "UPDATE_METADATA"
|
|
23
24
|
}
|
|
24
25
|
export declare const DeleteBranchRequest: import("@sinclair/typebox").TObject<{
|
|
25
26
|
branchIndex: import("@sinclair/typebox").TNumber;
|
|
@@ -416,6 +417,12 @@ export declare const UpdateFlowStatusRequest: import("@sinclair/typebox").TObjec
|
|
|
416
417
|
export type UpdateFlowStatusRequest = Static<typeof UpdateFlowStatusRequest>;
|
|
417
418
|
export declare const ChangePublishedVersionIdRequest: import("@sinclair/typebox").TObject<{}>;
|
|
418
419
|
export type ChangePublishedVersionIdRequest = Static<typeof ChangePublishedVersionIdRequest>;
|
|
420
|
+
export declare const UpdateMetadataRequest: import("@sinclair/typebox").TObject<{
|
|
421
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
422
|
+
[x: string]: unknown;
|
|
423
|
+
} | null>>;
|
|
424
|
+
}>;
|
|
425
|
+
export type UpdateMetadataRequest = Static<typeof UpdateMetadataRequest>;
|
|
419
426
|
export declare const FlowOperationRequest: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
420
427
|
type: import("@sinclair/typebox").TLiteral<FlowOperationType.MOVE_ACTION>;
|
|
421
428
|
request: import("@sinclair/typebox").TObject<{
|
|
@@ -823,6 +830,13 @@ export declare const FlowOperationRequest: import("@sinclair/typebox").TUnion<[i
|
|
|
823
830
|
names: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
824
831
|
skip: import("@sinclair/typebox").TBoolean;
|
|
825
832
|
}>;
|
|
833
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
834
|
+
type: import("@sinclair/typebox").TLiteral<FlowOperationType.UPDATE_METADATA>;
|
|
835
|
+
request: import("@sinclair/typebox").TObject<{
|
|
836
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
837
|
+
[x: string]: unknown;
|
|
838
|
+
} | null>>;
|
|
839
|
+
}>;
|
|
826
840
|
}>]>;
|
|
827
841
|
export type FlowOperationRequest = Static<typeof FlowOperationRequest>;
|
|
828
842
|
export declare const flowOperations: {
|
|
@@ -1286,6 +1300,13 @@ export declare const flowOperations: {
|
|
|
1286
1300
|
skip: boolean;
|
|
1287
1301
|
names: string[];
|
|
1288
1302
|
};
|
|
1303
|
+
} | {
|
|
1304
|
+
type: FlowOperationType.UPDATE_METADATA;
|
|
1305
|
+
request: {
|
|
1306
|
+
metadata?: {
|
|
1307
|
+
[x: string]: unknown;
|
|
1308
|
+
} | null | undefined;
|
|
1309
|
+
};
|
|
1289
1310
|
})[];
|
|
1290
1311
|
apply(flowVersion: FlowVersion, operation: FlowOperationRequest): FlowVersion;
|
|
1291
1312
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.flowOperations = exports.FlowOperationRequest = exports.ChangePublishedVersionIdRequest = exports.UpdateFlowStatusRequest = exports.UpdateTriggerRequest = exports.AddActionRequest = exports.MoveActionRequest = exports.DuplicateStepRequest = exports.UpdateActionRequest = exports.DeleteActionRequest = exports.ChangeNameRequest = exports.ChangeFolderRequest = exports.ImportFlowRequest = exports.LockFlowRequest = exports.UseAsDraftRequest = exports.StepLocationRelativeToParent = exports.DuplicateBranchRequest = exports.SkipActionRequest = exports.AddBranchRequest = exports.DeleteBranchRequest = exports.FlowOperationType = void 0;
|
|
3
|
+
exports.flowOperations = exports.FlowOperationRequest = exports.UpdateMetadataRequest = exports.ChangePublishedVersionIdRequest = exports.UpdateFlowStatusRequest = exports.UpdateTriggerRequest = exports.AddActionRequest = exports.MoveActionRequest = exports.DuplicateStepRequest = exports.UpdateActionRequest = exports.DeleteActionRequest = exports.ChangeNameRequest = exports.ChangeFolderRequest = exports.ImportFlowRequest = exports.LockFlowRequest = exports.UseAsDraftRequest = exports.StepLocationRelativeToParent = exports.DuplicateBranchRequest = exports.SkipActionRequest = exports.AddBranchRequest = exports.DeleteBranchRequest = exports.FlowOperationType = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const common_1 = require("../../common");
|
|
6
|
+
const metadata_1 = require("../../common/metadata");
|
|
6
7
|
const action_1 = require("../actions/action");
|
|
7
8
|
const flow_1 = require("../flow");
|
|
8
9
|
const flow_version_1 = require("../flow-version");
|
|
@@ -41,6 +42,7 @@ var FlowOperationType;
|
|
|
41
42
|
FlowOperationType["ADD_BRANCH"] = "ADD_BRANCH";
|
|
42
43
|
FlowOperationType["DUPLICATE_BRANCH"] = "DUPLICATE_BRANCH";
|
|
43
44
|
FlowOperationType["SET_SKIP_ACTION"] = "SET_SKIP_ACTION";
|
|
45
|
+
FlowOperationType["UPDATE_METADATA"] = "UPDATE_METADATA";
|
|
44
46
|
})(FlowOperationType || (exports.FlowOperationType = FlowOperationType = {}));
|
|
45
47
|
exports.DeleteBranchRequest = typebox_1.Type.Object({
|
|
46
48
|
branchIndex: typebox_1.Type.Number(),
|
|
@@ -110,6 +112,9 @@ exports.UpdateFlowStatusRequest = typebox_1.Type.Object({
|
|
|
110
112
|
status: typebox_1.Type.Enum(flow_1.FlowStatus),
|
|
111
113
|
});
|
|
112
114
|
exports.ChangePublishedVersionIdRequest = typebox_1.Type.Object({});
|
|
115
|
+
exports.UpdateMetadataRequest = typebox_1.Type.Object({
|
|
116
|
+
metadata: (0, common_1.Nullable)(metadata_1.Metadata),
|
|
117
|
+
});
|
|
113
118
|
exports.FlowOperationRequest = typebox_1.Type.Union([
|
|
114
119
|
typebox_1.Type.Object({
|
|
115
120
|
type: typebox_1.Type.Literal(FlowOperationType.MOVE_ACTION),
|
|
@@ -213,6 +218,12 @@ exports.FlowOperationRequest = typebox_1.Type.Union([
|
|
|
213
218
|
}, {
|
|
214
219
|
title: 'Skip Action',
|
|
215
220
|
}),
|
|
221
|
+
typebox_1.Type.Object({
|
|
222
|
+
type: typebox_1.Type.Literal(FlowOperationType.UPDATE_METADATA),
|
|
223
|
+
request: exports.UpdateMetadataRequest,
|
|
224
|
+
}, {
|
|
225
|
+
title: 'Update Metadata',
|
|
226
|
+
}),
|
|
216
227
|
]);
|
|
217
228
|
exports.flowOperations = {
|
|
218
229
|
getActionsForCopy: copy_action_operations_1._getActionsForCopy,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/operations/index.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,yCAAuC;AACvC,8CAAqI;AACrI,kCAAoC;AACpC,kDAA+D;AAC/D,iDAAyE;AACzE,6DAAuD;AACvD,qEAA+D;AAC/D,6CAAyC;AACzC,6CAAyC;AACzC,qEAA6D;AAC7D,mDAA+C;AAC/C,mDAA+C;AAC/C,qDAAmE;AACnE,+CAA2C;AAC3C,6CAA6C;AAC7C,+CAA2C;AAC3C,yDAA2D;AAC3D,+CAA2C;AAC3C,mDAA+C;AAC/C,qDAAiD;AAGjD,IAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/operations/index.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,yCAAuC;AACvC,oDAAgD;AAChD,8CAAqI;AACrI,kCAAoC;AACpC,kDAA+D;AAC/D,iDAAyE;AACzE,6DAAuD;AACvD,qEAA+D;AAC/D,6CAAyC;AACzC,6CAAyC;AACzC,qEAA6D;AAC7D,mDAA+C;AAC/C,mD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OAAO,CAAC,WAAW,EAC1C,aAAa,EAAE,SAAS,CAAC,OAAO,CAAC,aAAa,IAChD,CAAA;gBACF,MAAM,UAAU,GAAG,IAAA,yBAAW,EAAC,aAAa,EAAE,YAAY,CAAC,CAAA;gBAC3D,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;oBAC7B,aAAa,GAAG,sBAAc,CAAC,KAAK,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;gBAClE,CAAC,CAAC,CAAA;gBACF,MAAK;YACT,CAAC;YACD,KAAK,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC;gBACrC,aAAa,GAAG,IAAA,yBAAW,EAAC,aAAa,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;gBAC7D,aAAa,GAAG,+BAAa,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAA;gBACnE,MAAK;YACT,CAAC;YACD;gBACI,MAAK;QACb,CAAC;QACD,aAAa,CAAC,KAAK,GAAG,uCAAiB,CAAC,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACtG,OAAO,aAAa,CAAA;IACxB,CAAC;CACJ,CAAA"}
|
|
@@ -470,4 +470,11 @@ export declare const _getOperationsForPaste: (actions: Action[], flowVersion: Fl
|
|
|
470
470
|
skip: boolean;
|
|
471
471
|
names: string[];
|
|
472
472
|
};
|
|
473
|
+
} | {
|
|
474
|
+
type: FlowOperationType.UPDATE_METADATA;
|
|
475
|
+
request: {
|
|
476
|
+
metadata?: {
|
|
477
|
+
[x: string]: unknown;
|
|
478
|
+
} | null | undefined;
|
|
479
|
+
};
|
|
473
480
|
})[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Static } from '@sinclair/typebox';
|
|
2
|
+
import { McpPieceStatus } from '../mcp';
|
|
3
|
+
export declare const ListMcpsRequest: import("@sinclair/typebox").TObject<{
|
|
4
|
+
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
5
|
+
cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
+
projectId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
+
}>;
|
|
8
|
+
export type ListMcpsRequest = Static<typeof ListMcpsRequest>;
|
|
9
|
+
export declare const AddMcpPieceRequestBody: import("@sinclair/typebox").TObject<{
|
|
10
|
+
mcpId: import("@sinclair/typebox").TString;
|
|
11
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
12
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof McpPieceStatus>>;
|
|
13
|
+
connectionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
14
|
+
}>;
|
|
15
|
+
export type AddMcpPieceRequestBody = Static<typeof AddMcpPieceRequestBody>;
|
|
16
|
+
export declare const UpdateMcpPieceRequestBody: import("@sinclair/typebox").TObject<{
|
|
17
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof McpPieceStatus>>;
|
|
18
|
+
connectionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
19
|
+
}>;
|
|
20
|
+
export type UpdateMcpPieceRequestBody = Static<typeof UpdateMcpPieceRequestBody>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateMcpPieceRequestBody = exports.AddMcpPieceRequestBody = exports.ListMcpsRequest = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const id_generator_1 = require("../../common/id-generator");
|
|
7
|
+
const mcp_1 = require("../mcp");
|
|
8
|
+
exports.ListMcpsRequest = typebox_1.Type.Object({
|
|
9
|
+
limit: typebox_1.Type.Optional(typebox_1.Type.Number({})),
|
|
10
|
+
cursor: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
11
|
+
projectId: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
12
|
+
});
|
|
13
|
+
exports.AddMcpPieceRequestBody = typebox_1.Type.Object({
|
|
14
|
+
mcpId: id_generator_1.ApId,
|
|
15
|
+
pieceName: typebox_1.Type.String(),
|
|
16
|
+
status: typebox_1.Type.Optional(typebox_1.Type.Enum(mcp_1.McpPieceStatus)),
|
|
17
|
+
connectionId: (0, common_1.Nullable)(typebox_1.Type.String()),
|
|
18
|
+
});
|
|
19
|
+
exports.UpdateMcpPieceRequestBody = typebox_1.Type.Object({
|
|
20
|
+
status: typebox_1.Type.Optional(typebox_1.Type.Enum(mcp_1.McpPieceStatus)),
|
|
21
|
+
connectionId: (0, common_1.Nullable)(typebox_1.Type.String()),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=mcp.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/mcp/dto/mcp.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,yCAAuC;AACvC,4DAAgD;AAChD,gCAAuC;AAE1B,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtC,SAAS,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CAC5C,CAAC,CAAA;AAGW,QAAA,sBAAsB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,mBAAI;IACX,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,oBAAc,CAAC,CAAC;IAChD,YAAY,EAAE,IAAA,iBAAQ,EAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC,CAAA;AAIW,QAAA,yBAAyB,GAAG,cAAI,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,oBAAc,CAAC,CAAC;IAChD,YAAY,EAAE,IAAA,iBAAQ,EAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC,CAAA"}
|
package/src/lib/mcp/index.d.ts
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare enum MCPProperyType {
|
|
4
|
-
TEXT = "Text",
|
|
5
|
-
BOOLEAN = "Boolean",
|
|
6
|
-
DATE = "Date",
|
|
7
|
-
NUMBER = "Number",
|
|
8
|
-
ARRAY = "Array",
|
|
9
|
-
OBJECT = "Object"
|
|
10
|
-
}
|
|
11
|
-
export declare const MCPProperty: import("@sinclair/typebox").TObject<{
|
|
12
|
-
name: import("@sinclair/typebox").TString;
|
|
13
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
-
type: import("@sinclair/typebox").TString;
|
|
15
|
-
required: import("@sinclair/typebox").TBoolean;
|
|
16
|
-
}>;
|
|
17
|
-
export type MCPProperty = Static<typeof MCPProperty>;
|
|
18
|
-
export declare const MCP: import("@sinclair/typebox").TObject<{
|
|
19
|
-
projectId: import("@sinclair/typebox").TString;
|
|
20
|
-
token: import("@sinclair/typebox").TString;
|
|
21
|
-
id: import("@sinclair/typebox").TString;
|
|
22
|
-
created: import("@sinclair/typebox").TString;
|
|
23
|
-
updated: import("@sinclair/typebox").TString;
|
|
24
|
-
}>;
|
|
25
|
-
export type MCP = Static<typeof MCP>;
|
|
26
|
-
export type MCPSchema = MCP & {
|
|
27
|
-
connections: AppConnectionWithoutSensitiveData[];
|
|
28
|
-
};
|
|
29
|
-
export declare const MCPTrigger: import("@sinclair/typebox").TObject<{
|
|
30
|
-
pieceName: import("@sinclair/typebox").TString;
|
|
31
|
-
triggerName: import("@sinclair/typebox").TString;
|
|
32
|
-
input: import("@sinclair/typebox").TObject<{
|
|
33
|
-
toolName: import("@sinclair/typebox").TString;
|
|
34
|
-
toolDescription: import("@sinclair/typebox").TString;
|
|
35
|
-
inputSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
36
|
-
name: import("@sinclair/typebox").TString;
|
|
37
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
38
|
-
type: import("@sinclair/typebox").TString;
|
|
39
|
-
required: import("@sinclair/typebox").TBoolean;
|
|
40
|
-
}>>;
|
|
41
|
-
returnsResponse: import("@sinclair/typebox").TBoolean;
|
|
42
|
-
}>;
|
|
43
|
-
}>;
|
|
44
|
-
export type MCPTrigger = Static<typeof MCPTrigger>;
|
|
1
|
+
export * from './mcp';
|
|
2
|
+
export * from './dto/mcp.dto';
|
package/src/lib/mcp/index.js
CHANGED
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const id_generator_1 = require("../common/id-generator");
|
|
7
|
-
var MCPProperyType;
|
|
8
|
-
(function (MCPProperyType) {
|
|
9
|
-
MCPProperyType["TEXT"] = "Text";
|
|
10
|
-
MCPProperyType["BOOLEAN"] = "Boolean";
|
|
11
|
-
MCPProperyType["DATE"] = "Date";
|
|
12
|
-
MCPProperyType["NUMBER"] = "Number";
|
|
13
|
-
MCPProperyType["ARRAY"] = "Array";
|
|
14
|
-
MCPProperyType["OBJECT"] = "Object";
|
|
15
|
-
})(MCPProperyType || (exports.MCPProperyType = MCPProperyType = {}));
|
|
16
|
-
exports.MCPProperty = typebox_1.Type.Object({
|
|
17
|
-
name: typebox_1.Type.String(),
|
|
18
|
-
description: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
19
|
-
type: typebox_1.Type.String(),
|
|
20
|
-
required: typebox_1.Type.Boolean(),
|
|
21
|
-
});
|
|
22
|
-
exports.MCP = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { projectId: id_generator_1.ApId, token: id_generator_1.ApId }));
|
|
23
|
-
exports.MCPTrigger = typebox_1.Type.Object({
|
|
24
|
-
pieceName: typebox_1.Type.String(),
|
|
25
|
-
triggerName: typebox_1.Type.String(),
|
|
26
|
-
input: typebox_1.Type.Object({
|
|
27
|
-
toolName: typebox_1.Type.String(),
|
|
28
|
-
toolDescription: typebox_1.Type.String(),
|
|
29
|
-
inputSchema: typebox_1.Type.Array(exports.MCPProperty),
|
|
30
|
-
returnsResponse: typebox_1.Type.Boolean(),
|
|
31
|
-
}),
|
|
32
|
-
});
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./mcp"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./dto/mcp.dto"), exports);
|
|
33
6
|
//# sourceMappingURL=index.js.map
|
package/src/lib/mcp/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/mcp/index.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/mcp/index.ts"],"names":[],"mappings":";;;AAAA,gDAAqB;AACrB,wDAA6B"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Static } from '@sinclair/typebox';
|
|
2
|
+
export declare enum McpPropertyType {
|
|
3
|
+
TEXT = "Text",
|
|
4
|
+
BOOLEAN = "Boolean",
|
|
5
|
+
DATE = "Date",
|
|
6
|
+
NUMBER = "Number",
|
|
7
|
+
ARRAY = "Array",
|
|
8
|
+
OBJECT = "Object"
|
|
9
|
+
}
|
|
10
|
+
export declare enum McpPieceStatus {
|
|
11
|
+
ENABLED = "ENABLED",
|
|
12
|
+
DISABLED = "DISABLED"
|
|
13
|
+
}
|
|
14
|
+
export declare const McpProperty: import("@sinclair/typebox").TObject<{
|
|
15
|
+
name: import("@sinclair/typebox").TString;
|
|
16
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
|
+
type: import("@sinclair/typebox").TString;
|
|
18
|
+
required: import("@sinclair/typebox").TBoolean;
|
|
19
|
+
}>;
|
|
20
|
+
export type McpProperty = Static<typeof McpProperty>;
|
|
21
|
+
export declare const McpPiece: import("@sinclair/typebox").TObject<{
|
|
22
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
23
|
+
connectionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
+
mcpId: import("@sinclair/typebox").TString;
|
|
25
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof McpPieceStatus>>;
|
|
26
|
+
id: import("@sinclair/typebox").TString;
|
|
27
|
+
created: import("@sinclair/typebox").TString;
|
|
28
|
+
updated: import("@sinclair/typebox").TString;
|
|
29
|
+
}>;
|
|
30
|
+
export type McpPiece = Static<typeof McpPiece>;
|
|
31
|
+
export declare const McpPieceWithConnection: import("@sinclair/typebox").TObject<{
|
|
32
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
33
|
+
id: import("@sinclair/typebox").TString;
|
|
34
|
+
created: import("@sinclair/typebox").TString;
|
|
35
|
+
updated: import("@sinclair/typebox").TString;
|
|
36
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof McpPieceStatus>>;
|
|
37
|
+
connectionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
38
|
+
mcpId: import("@sinclair/typebox").TString;
|
|
39
|
+
connection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
40
|
+
externalId: import("@sinclair/typebox").TString;
|
|
41
|
+
displayName: import("@sinclair/typebox").TString;
|
|
42
|
+
type: import("@sinclair/typebox").TEnum<typeof import("../app-connection/app-connection").AppConnectionType>;
|
|
43
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
44
|
+
projectIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
45
|
+
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
46
|
+
scope: import("@sinclair/typebox").TEnum<typeof import("../app-connection/app-connection").AppConnectionScope>;
|
|
47
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../app-connection/app-connection").AppConnectionStatus>;
|
|
48
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
49
|
+
owner: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
50
|
+
platformId?: string | null | undefined;
|
|
51
|
+
externalId?: string | null | undefined;
|
|
52
|
+
lastChangelogDismissed?: string | null | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
created: string;
|
|
55
|
+
updated: string;
|
|
56
|
+
email: string;
|
|
57
|
+
platformRole: import("../user").PlatformRole;
|
|
58
|
+
status: import("../user").UserStatus;
|
|
59
|
+
firstName: string;
|
|
60
|
+
lastName: string;
|
|
61
|
+
} | null>>;
|
|
62
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
} | null>>;
|
|
65
|
+
id: import("@sinclair/typebox").TString;
|
|
66
|
+
created: import("@sinclair/typebox").TString;
|
|
67
|
+
updated: import("@sinclair/typebox").TString;
|
|
68
|
+
}>>;
|
|
69
|
+
}>;
|
|
70
|
+
export type McpPieceWithConnection = Static<typeof McpPieceWithConnection>;
|
|
71
|
+
export declare const Mcp: import("@sinclair/typebox").TObject<{
|
|
72
|
+
projectId: import("@sinclair/typebox").TString;
|
|
73
|
+
token: import("@sinclair/typebox").TString;
|
|
74
|
+
id: import("@sinclair/typebox").TString;
|
|
75
|
+
created: import("@sinclair/typebox").TString;
|
|
76
|
+
updated: import("@sinclair/typebox").TString;
|
|
77
|
+
}>;
|
|
78
|
+
export type Mcp = Static<typeof Mcp>;
|
|
79
|
+
export declare const McpWithPieces: import("@sinclair/typebox").TObject<{
|
|
80
|
+
id: import("@sinclair/typebox").TString;
|
|
81
|
+
created: import("@sinclair/typebox").TString;
|
|
82
|
+
updated: import("@sinclair/typebox").TString;
|
|
83
|
+
projectId: import("@sinclair/typebox").TString;
|
|
84
|
+
token: import("@sinclair/typebox").TString;
|
|
85
|
+
pieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
86
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
87
|
+
id: import("@sinclair/typebox").TString;
|
|
88
|
+
created: import("@sinclair/typebox").TString;
|
|
89
|
+
updated: import("@sinclair/typebox").TString;
|
|
90
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof McpPieceStatus>>;
|
|
91
|
+
connectionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
92
|
+
mcpId: import("@sinclair/typebox").TString;
|
|
93
|
+
connection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
94
|
+
externalId: import("@sinclair/typebox").TString;
|
|
95
|
+
displayName: import("@sinclair/typebox").TString;
|
|
96
|
+
type: import("@sinclair/typebox").TEnum<typeof import("../app-connection/app-connection").AppConnectionType>;
|
|
97
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
98
|
+
projectIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
99
|
+
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
100
|
+
scope: import("@sinclair/typebox").TEnum<typeof import("../app-connection/app-connection").AppConnectionScope>;
|
|
101
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../app-connection/app-connection").AppConnectionStatus>;
|
|
102
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
103
|
+
owner: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
104
|
+
platformId?: string | null | undefined;
|
|
105
|
+
externalId?: string | null | undefined;
|
|
106
|
+
lastChangelogDismissed?: string | null | undefined;
|
|
107
|
+
id: string;
|
|
108
|
+
created: string;
|
|
109
|
+
updated: string;
|
|
110
|
+
email: string;
|
|
111
|
+
platformRole: import("../user").PlatformRole;
|
|
112
|
+
status: import("../user").UserStatus;
|
|
113
|
+
firstName: string;
|
|
114
|
+
lastName: string;
|
|
115
|
+
} | null>>;
|
|
116
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
117
|
+
[x: string]: unknown;
|
|
118
|
+
} | null>>;
|
|
119
|
+
id: import("@sinclair/typebox").TString;
|
|
120
|
+
created: import("@sinclair/typebox").TString;
|
|
121
|
+
updated: import("@sinclair/typebox").TString;
|
|
122
|
+
}>>;
|
|
123
|
+
}>>;
|
|
124
|
+
}>;
|
|
125
|
+
export type McpWithPieces = Static<typeof McpWithPieces>;
|
|
126
|
+
export declare const McpTrigger: import("@sinclair/typebox").TObject<{
|
|
127
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
128
|
+
triggerName: import("@sinclair/typebox").TString;
|
|
129
|
+
input: import("@sinclair/typebox").TObject<{
|
|
130
|
+
toolName: import("@sinclair/typebox").TString;
|
|
131
|
+
toolDescription: import("@sinclair/typebox").TString;
|
|
132
|
+
inputSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
133
|
+
name: import("@sinclair/typebox").TString;
|
|
134
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
135
|
+
type: import("@sinclair/typebox").TString;
|
|
136
|
+
required: import("@sinclair/typebox").TBoolean;
|
|
137
|
+
}>>;
|
|
138
|
+
returnsResponse: import("@sinclair/typebox").TBoolean;
|
|
139
|
+
}>;
|
|
140
|
+
}>;
|
|
141
|
+
export type McpTrigger = Static<typeof McpTrigger>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.McpTrigger = exports.McpWithPieces = exports.Mcp = exports.McpPieceWithConnection = exports.McpPiece = exports.McpProperty = exports.McpPieceStatus = exports.McpPropertyType = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const app_connection_1 = require("../app-connection/app-connection");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const id_generator_1 = require("../common/id-generator");
|
|
8
|
+
var McpPropertyType;
|
|
9
|
+
(function (McpPropertyType) {
|
|
10
|
+
McpPropertyType["TEXT"] = "Text";
|
|
11
|
+
McpPropertyType["BOOLEAN"] = "Boolean";
|
|
12
|
+
McpPropertyType["DATE"] = "Date";
|
|
13
|
+
McpPropertyType["NUMBER"] = "Number";
|
|
14
|
+
McpPropertyType["ARRAY"] = "Array";
|
|
15
|
+
McpPropertyType["OBJECT"] = "Object";
|
|
16
|
+
})(McpPropertyType || (exports.McpPropertyType = McpPropertyType = {}));
|
|
17
|
+
var McpPieceStatus;
|
|
18
|
+
(function (McpPieceStatus) {
|
|
19
|
+
McpPieceStatus["ENABLED"] = "ENABLED";
|
|
20
|
+
McpPieceStatus["DISABLED"] = "DISABLED";
|
|
21
|
+
})(McpPieceStatus || (exports.McpPieceStatus = McpPieceStatus = {}));
|
|
22
|
+
exports.McpProperty = typebox_1.Type.Object({
|
|
23
|
+
name: typebox_1.Type.String(),
|
|
24
|
+
description: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
25
|
+
type: typebox_1.Type.String(),
|
|
26
|
+
required: typebox_1.Type.Boolean(),
|
|
27
|
+
});
|
|
28
|
+
exports.McpPiece = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { pieceName: typebox_1.Type.String(), connectionId: typebox_1.Type.Optional(id_generator_1.ApId), mcpId: id_generator_1.ApId, status: typebox_1.Type.Optional(typebox_1.Type.Enum(McpPieceStatus)) }));
|
|
29
|
+
exports.McpPieceWithConnection = typebox_1.Type.Composite([
|
|
30
|
+
exports.McpPiece,
|
|
31
|
+
typebox_1.Type.Object({
|
|
32
|
+
connection: typebox_1.Type.Optional(app_connection_1.AppConnectionWithoutSensitiveData),
|
|
33
|
+
}),
|
|
34
|
+
]);
|
|
35
|
+
exports.Mcp = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { projectId: id_generator_1.ApId, token: id_generator_1.ApId }));
|
|
36
|
+
exports.McpWithPieces = typebox_1.Type.Composite([
|
|
37
|
+
exports.Mcp,
|
|
38
|
+
typebox_1.Type.Object({
|
|
39
|
+
pieces: typebox_1.Type.Array(exports.McpPieceWithConnection),
|
|
40
|
+
}),
|
|
41
|
+
]);
|
|
42
|
+
exports.McpTrigger = typebox_1.Type.Object({
|
|
43
|
+
pieceName: typebox_1.Type.String(),
|
|
44
|
+
triggerName: typebox_1.Type.String(),
|
|
45
|
+
input: typebox_1.Type.Object({
|
|
46
|
+
toolName: typebox_1.Type.String(),
|
|
47
|
+
toolDescription: typebox_1.Type.String(),
|
|
48
|
+
inputSchema: typebox_1.Type.Array(exports.McpProperty),
|
|
49
|
+
returnsResponse: typebox_1.Type.Boolean(),
|
|
50
|
+
}),
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=mcp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/mcp/mcp.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,qEAAoF;AACpF,sCAA2C;AAC3C,yDAA6C;AAE7C,IAAY,eAOX;AAPD,WAAY,eAAe;IACvB,gCAAa,CAAA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