@qelos/global-types 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai-models.ts +301 -0
- package/dist/ai-models.d.ts +32 -0
- package/dist/ai-models.js +279 -0
- package/dist/ai-models.js.map +1 -0
- package/dist/app-configuration-metadata.d.ts +18 -0
- package/dist/app-configuration-metadata.js +3 -0
- package/dist/app-configuration-metadata.js.map +1 -0
- package/dist/auth-configuration-metadata.d.ts +41 -0
- package/dist/auth-configuration-metadata.js +3 -0
- package/dist/auth-configuration-metadata.js.map +1 -0
- package/dist/blueprint.d.ts +74 -0
- package/dist/blueprint.js +33 -0
- package/dist/blueprint.js.map +1 -0
- package/dist/event-subscriber.d.ts +6 -0
- package/dist/event-subscriber.js +3 -0
- package/dist/event-subscriber.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/injectable.d.ts +6 -0
- package/dist/injectable.js +3 -0
- package/dist/injectable.js.map +1 -0
- package/dist/integration-source-status.d.ts +20 -0
- package/dist/integration-source-status.js +21 -0
- package/dist/integration-source-status.js.map +1 -0
- package/dist/integration-sources.d.ts +351 -0
- package/dist/integration-sources.js +141 -0
- package/dist/integration-sources.js.map +1 -0
- package/dist/integration-targets.d.ts +58 -0
- package/dist/integration-targets.js +3 -0
- package/dist/integration-targets.js.map +1 -0
- package/dist/integration.d.ts +39 -0
- package/dist/integration.js +12 -0
- package/dist/integration.js.map +1 -0
- package/dist/mcp-configuration-metadata.d.ts +19 -0
- package/dist/mcp-configuration-metadata.js +14 -0
- package/dist/mcp-configuration-metadata.js.map +1 -0
- package/dist/mcp-endpoint.d.ts +5 -0
- package/dist/mcp-endpoint.js +13 -0
- package/dist/mcp-endpoint.js.map +1 -0
- package/dist/micro-frontend.d.ts +43 -0
- package/dist/micro-frontend.js +3 -0
- package/dist/micro-frontend.js.map +1 -0
- package/dist/navbar-group.d.ts +7 -0
- package/dist/navbar-group.js +3 -0
- package/dist/navbar-group.js.map +1 -0
- package/dist/no-code-components.d.ts +34 -0
- package/dist/no-code-components.js +3 -0
- package/dist/no-code-components.js.map +1 -0
- package/dist/payment-event-resolution.d.ts +31 -0
- package/dist/payment-event-resolution.js +302 -0
- package/dist/payment-event-resolution.js.map +1 -0
- package/dist/payments.d.ts +165 -0
- package/dist/payments.js +3 -0
- package/dist/payments.js.map +1 -0
- package/dist/plugin-crud.d.ts +11 -0
- package/dist/plugin-crud.js +3 -0
- package/dist/plugin-crud.js.map +1 -0
- package/dist/plugin.d.ts +30 -0
- package/dist/plugin.js +3 -0
- package/dist/plugin.js.map +1 -0
- package/dist/qelos-integrator.d.ts +112 -0
- package/dist/qelos-integrator.js +14 -0
- package/dist/qelos-integrator.js.map +1 -0
- package/dist/query-filters.d.ts +7 -0
- package/dist/query-filters.js +3 -0
- package/dist/query-filters.js.map +1 -0
- package/dist/screen-requirement.d.ts +22 -0
- package/dist/screen-requirement.js +3 -0
- package/dist/screen-requirement.js.map +1 -0
- package/dist/workspace-configuration-metadata.d.ts +17 -0
- package/dist/workspace-configuration-metadata.js +3 -0
- package/dist/workspace-configuration-metadata.js.map +1 -0
- package/index.ts +3 -0
- package/integration-sources.ts +10 -0
- package/integration.ts +1 -0
- package/mcp-configuration-metadata.ts +33 -0
- package/mcp-endpoint.ts +12 -0
- package/package.json +11 -5
- package/payments.ts +17 -0
- package/tsconfig.json +17 -0
- package/LICENSE +0 -20
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudflareTargetOperation = exports.AWSTargetOperation = exports.DodoPaymentsTargetOperation = exports.PaddleTargetOperation = exports.PayPalTargetOperation = exports.SumitTargetOperation = exports.ClaudeAITargetOperation = exports.EmailTargetOperation = exports.OpenAITargetOperation = exports.OpenAITriggerOperation = exports.QelosTargetOperation = exports.QelosTriggerOperation = exports.HttpTargetOperation = exports.IntegrationSourceKind = void 0;
|
|
4
|
+
var IntegrationSourceKind;
|
|
5
|
+
(function (IntegrationSourceKind) {
|
|
6
|
+
IntegrationSourceKind["Qelos"] = "qelos";
|
|
7
|
+
IntegrationSourceKind["OpenAI"] = "openai";
|
|
8
|
+
IntegrationSourceKind["Email"] = "email";
|
|
9
|
+
IntegrationSourceKind["N8n"] = "n8n";
|
|
10
|
+
IntegrationSourceKind["Supabase"] = "supabase";
|
|
11
|
+
IntegrationSourceKind["LinkedIn"] = "linkedin";
|
|
12
|
+
IntegrationSourceKind["Http"] = "http";
|
|
13
|
+
IntegrationSourceKind["ClaudeAi"] = "claudeai";
|
|
14
|
+
IntegrationSourceKind["Facebook"] = "facebook";
|
|
15
|
+
IntegrationSourceKind["Google"] = "google";
|
|
16
|
+
IntegrationSourceKind["GitHub"] = "github";
|
|
17
|
+
IntegrationSourceKind["Gemini"] = "gemini";
|
|
18
|
+
IntegrationSourceKind["Sumit"] = "sumit";
|
|
19
|
+
IntegrationSourceKind["PayPal"] = "paypal";
|
|
20
|
+
IntegrationSourceKind["Paddle"] = "paddle";
|
|
21
|
+
IntegrationSourceKind["DodoPayments"] = "dodopayments";
|
|
22
|
+
IntegrationSourceKind["AWS"] = "aws";
|
|
23
|
+
IntegrationSourceKind["Cloudflare"] = "cloudflare";
|
|
24
|
+
})(IntegrationSourceKind || (exports.IntegrationSourceKind = IntegrationSourceKind = {}));
|
|
25
|
+
var HttpTargetOperation;
|
|
26
|
+
(function (HttpTargetOperation) {
|
|
27
|
+
HttpTargetOperation["makeRequest"] = "makeRequest";
|
|
28
|
+
})(HttpTargetOperation || (exports.HttpTargetOperation = HttpTargetOperation = {}));
|
|
29
|
+
var QelosTriggerOperation;
|
|
30
|
+
(function (QelosTriggerOperation) {
|
|
31
|
+
QelosTriggerOperation["webhook"] = "webhook";
|
|
32
|
+
QelosTriggerOperation["apiWebhook"] = "apiWebhook";
|
|
33
|
+
QelosTriggerOperation["chatCompletion"] = "chatCompletion";
|
|
34
|
+
QelosTriggerOperation["mcpTool"] = "mcpTool";
|
|
35
|
+
})(QelosTriggerOperation || (exports.QelosTriggerOperation = QelosTriggerOperation = {}));
|
|
36
|
+
var QelosTargetOperation;
|
|
37
|
+
(function (QelosTargetOperation) {
|
|
38
|
+
QelosTargetOperation["webhook"] = "webhook";
|
|
39
|
+
QelosTargetOperation["createBlueprintEntity"] = "createBlueprintEntity";
|
|
40
|
+
QelosTargetOperation["createUser"] = "createUser";
|
|
41
|
+
QelosTargetOperation["updateUser"] = "updateUser";
|
|
42
|
+
QelosTargetOperation["setUserRoles"] = "setUserRoles";
|
|
43
|
+
QelosTargetOperation["setWorkspaceLabels"] = "setWorkspaceLabels";
|
|
44
|
+
QelosTargetOperation["updateBlueprintEntity"] = "updateBlueprintEntity";
|
|
45
|
+
QelosTargetOperation["chatCompletion"] = "chatCompletion";
|
|
46
|
+
})(QelosTargetOperation || (exports.QelosTargetOperation = QelosTargetOperation = {}));
|
|
47
|
+
var OpenAITriggerOperation;
|
|
48
|
+
(function (OpenAITriggerOperation) {
|
|
49
|
+
OpenAITriggerOperation["functionCalling"] = "functionCalling";
|
|
50
|
+
})(OpenAITriggerOperation || (exports.OpenAITriggerOperation = OpenAITriggerOperation = {}));
|
|
51
|
+
exports.OpenAITargetOperation = {
|
|
52
|
+
chatCompletion: 'chatCompletion',
|
|
53
|
+
// manage vector stores
|
|
54
|
+
uploadContentToStorage: 'uploadContentToStorage',
|
|
55
|
+
clearStorageFiles: 'clearStorageFiles'
|
|
56
|
+
};
|
|
57
|
+
exports.EmailTargetOperation = {
|
|
58
|
+
sendEmail: 'sendEmail',
|
|
59
|
+
};
|
|
60
|
+
exports.ClaudeAITargetOperation = {
|
|
61
|
+
chatCompletion: 'chatCompletion',
|
|
62
|
+
};
|
|
63
|
+
exports.SumitTargetOperation = {
|
|
64
|
+
createCustomer: 'createCustomer',
|
|
65
|
+
setPaymentDetails: 'setPaymentDetails',
|
|
66
|
+
// Placeholder for payment methods
|
|
67
|
+
listPaymentMethods: 'listPaymentMethods',
|
|
68
|
+
createPaymentMethod: 'createPaymentMethod',
|
|
69
|
+
getPaymentMethod: 'getPaymentMethod',
|
|
70
|
+
updatePaymentMethod: 'updatePaymentMethod',
|
|
71
|
+
deletePaymentMethod: 'deletePaymentMethod',
|
|
72
|
+
// Placeholder for payments
|
|
73
|
+
listPayments: 'listPayments',
|
|
74
|
+
createPayment: 'createPayment',
|
|
75
|
+
getPayment: 'getPayment',
|
|
76
|
+
updatePayment: 'updatePayment',
|
|
77
|
+
// Placeholder for recurring payments
|
|
78
|
+
listRecurringPayments: 'listRecurringPayments',
|
|
79
|
+
beginCheckoutRedirect: 'beginCheckoutRedirect',
|
|
80
|
+
createRecurringPayment: 'createRecurringPayment',
|
|
81
|
+
getRecurringPayment: 'getRecurringPayment',
|
|
82
|
+
updateRecurringPayment: 'updateRecurringPayment',
|
|
83
|
+
deleteRecurringPayment: 'deleteRecurringPayment',
|
|
84
|
+
};
|
|
85
|
+
exports.PayPalTargetOperation = {
|
|
86
|
+
createOrder: 'createOrder',
|
|
87
|
+
captureOrder: 'captureOrder',
|
|
88
|
+
refundPayment: 'refundPayment',
|
|
89
|
+
createProduct: 'createProduct',
|
|
90
|
+
createSubscription: 'createSubscription',
|
|
91
|
+
listTransactions: 'listTransactions',
|
|
92
|
+
};
|
|
93
|
+
exports.PaddleTargetOperation = {
|
|
94
|
+
createProduct: 'createProduct',
|
|
95
|
+
listProducts: 'listProducts',
|
|
96
|
+
createPrice: 'createPrice',
|
|
97
|
+
listPrices: 'listPrices',
|
|
98
|
+
createSubscription: 'createSubscription',
|
|
99
|
+
getSubscription: 'getSubscription',
|
|
100
|
+
listSubscriptions: 'listSubscriptions',
|
|
101
|
+
cancelSubscription: 'cancelSubscription',
|
|
102
|
+
listTransactions: 'listTransactions',
|
|
103
|
+
getTransaction: 'getTransaction',
|
|
104
|
+
createCustomer: 'createCustomer',
|
|
105
|
+
listCustomers: 'listCustomers',
|
|
106
|
+
};
|
|
107
|
+
exports.DodoPaymentsTargetOperation = {
|
|
108
|
+
// Payments
|
|
109
|
+
createPayment: 'createPayment',
|
|
110
|
+
getPayment: 'getPayment',
|
|
111
|
+
listPayments: 'listPayments',
|
|
112
|
+
// Subscriptions
|
|
113
|
+
createSubscription: 'createSubscription',
|
|
114
|
+
getSubscription: 'getSubscription',
|
|
115
|
+
updateSubscription: 'updateSubscription',
|
|
116
|
+
cancelSubscription: 'cancelSubscription',
|
|
117
|
+
listSubscriptions: 'listSubscriptions',
|
|
118
|
+
// Products
|
|
119
|
+
createProduct: 'createProduct',
|
|
120
|
+
getProduct: 'getProduct',
|
|
121
|
+
listProducts: 'listProducts',
|
|
122
|
+
// Customers
|
|
123
|
+
createCustomer: 'createCustomer',
|
|
124
|
+
getCustomer: 'getCustomer',
|
|
125
|
+
listCustomers: 'listCustomers',
|
|
126
|
+
};
|
|
127
|
+
exports.AWSTargetOperation = {
|
|
128
|
+
callFunction: 'callFunction',
|
|
129
|
+
getFunction: 'getFunction',
|
|
130
|
+
createFunction: 'createFunction',
|
|
131
|
+
listFunctions: 'listFunctions',
|
|
132
|
+
updateFunction: 'updateFunction',
|
|
133
|
+
};
|
|
134
|
+
exports.CloudflareTargetOperation = {
|
|
135
|
+
callFunction: 'callFunction',
|
|
136
|
+
getFunction: 'getFunction',
|
|
137
|
+
createFunction: 'createFunction',
|
|
138
|
+
listFunctions: 'listFunctions',
|
|
139
|
+
updateFunction: 'updateFunction',
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=integration-sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-sources.js","sourceRoot":"","sources":["../integration-sources.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAmBX;AAnBD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,wCAAe,CAAA;IACf,oCAAW,CAAA;IACX,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IAC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oBAAoB;IACxC,eAAe,EAAE,iBAAiB;IAClC,kBAAkB,EAAE,oBAAoB;IACxC,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW;IACX,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,YAAY;IACZ,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;CACtB,CAAC;AAEE,QAAA,kBAAkB,GAAG;IAChC,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;CACxB,CAAC;AAEE,QAAA,yBAAyB,GAAG;IACvC,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;CACxB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface HttpTargetPayload {
|
|
2
|
+
method?: string;
|
|
3
|
+
url?: string;
|
|
4
|
+
headers?: Record<string, string>;
|
|
5
|
+
body?: Record<string, any>;
|
|
6
|
+
query?: Record<string, string>;
|
|
7
|
+
triggerResponse?: {
|
|
8
|
+
source?: string;
|
|
9
|
+
kind?: string;
|
|
10
|
+
eventName?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
metadata?: Record<string, any>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface OpenAIChatCompletionPayload {
|
|
16
|
+
messages?: (any & {
|
|
17
|
+
role: string;
|
|
18
|
+
content: string;
|
|
19
|
+
})[];
|
|
20
|
+
pre_messages?: (any & {
|
|
21
|
+
role: string;
|
|
22
|
+
content: string;
|
|
23
|
+
})[];
|
|
24
|
+
model?: string;
|
|
25
|
+
temperature?: number;
|
|
26
|
+
top_p?: number;
|
|
27
|
+
frequency_penalty?: number;
|
|
28
|
+
presence_penalty?: number;
|
|
29
|
+
stream?: boolean;
|
|
30
|
+
max_tokens?: number;
|
|
31
|
+
response_format?: {
|
|
32
|
+
type: "text" | "json_object";
|
|
33
|
+
};
|
|
34
|
+
system?: string;
|
|
35
|
+
stop?: string | string[];
|
|
36
|
+
embeddingType?: string;
|
|
37
|
+
maxTools?: number;
|
|
38
|
+
ingestedBlueprints?: string[];
|
|
39
|
+
ingestedAgents?: string[];
|
|
40
|
+
triggerResponse?: {
|
|
41
|
+
source?: string;
|
|
42
|
+
kind?: string;
|
|
43
|
+
eventName?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
metadata?: Record<string, any>;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export interface OpenAIUploadStoragePayload {
|
|
49
|
+
vectorStoreId?: string;
|
|
50
|
+
content: string | object;
|
|
51
|
+
fileName?: string;
|
|
52
|
+
metadata?: any;
|
|
53
|
+
}
|
|
54
|
+
export interface OpenAIClearStoragePayload {
|
|
55
|
+
vectorStoreId?: string;
|
|
56
|
+
fileIds?: string[];
|
|
57
|
+
}
|
|
58
|
+
export type OpenAITargetPayload = OpenAIChatCompletionPayload | OpenAIUploadStoragePayload | OpenAIClearStoragePayload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-targets.js","sourceRoot":"","sources":["../integration-targets.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const PopulateSource: {
|
|
2
|
+
readonly user: "user";
|
|
3
|
+
readonly workspace: "workspace";
|
|
4
|
+
readonly blueprintEntity: "blueprintEntity";
|
|
5
|
+
readonly blueprintEntities: "blueprintEntities";
|
|
6
|
+
readonly vectorStores: "vectorStores";
|
|
7
|
+
readonly apiWebhook: "apiWebhook";
|
|
8
|
+
};
|
|
9
|
+
export type PopulateSource = typeof PopulateSource[keyof typeof PopulateSource];
|
|
10
|
+
export interface IDataManipulationStep {
|
|
11
|
+
map: Record<string, string>;
|
|
12
|
+
populate: Record<string, {
|
|
13
|
+
source: PopulateSource;
|
|
14
|
+
blueprint?: string;
|
|
15
|
+
scope?: string;
|
|
16
|
+
subjectId?: string;
|
|
17
|
+
integration?: string;
|
|
18
|
+
}>;
|
|
19
|
+
clean?: boolean;
|
|
20
|
+
abort?: boolean | string;
|
|
21
|
+
}
|
|
22
|
+
export interface IIntegration {
|
|
23
|
+
_id: string;
|
|
24
|
+
tenant: string;
|
|
25
|
+
plugin?: string;
|
|
26
|
+
active?: boolean;
|
|
27
|
+
user: string;
|
|
28
|
+
kind: string[];
|
|
29
|
+
trigger: IIntegrationEntity;
|
|
30
|
+
target: IIntegrationEntity;
|
|
31
|
+
dataManipulation: IDataManipulationStep[];
|
|
32
|
+
targetManipulation: IDataManipulationStep[];
|
|
33
|
+
created: Date;
|
|
34
|
+
}
|
|
35
|
+
export interface IIntegrationEntity {
|
|
36
|
+
source: string;
|
|
37
|
+
operation: string;
|
|
38
|
+
details: any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PopulateSource = void 0;
|
|
4
|
+
exports.PopulateSource = {
|
|
5
|
+
user: 'user',
|
|
6
|
+
workspace: 'workspace',
|
|
7
|
+
blueprintEntity: 'blueprintEntity',
|
|
8
|
+
blueprintEntities: 'blueprintEntities',
|
|
9
|
+
vectorStores: 'vectorStores',
|
|
10
|
+
apiWebhook: 'apiWebhook'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=integration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../integration.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;CAChB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Tool categories that must never be exposed via MCP (e.g. secrets vault). */
|
|
2
|
+
export declare const MCP_FORBIDDEN_TOOL_IDS: readonly ["secrets"];
|
|
3
|
+
export interface IMcpExposedTool {
|
|
4
|
+
toolId: string;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
roles: string[];
|
|
7
|
+
wsRoles: string[];
|
|
8
|
+
wsLabels: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface IMcpConfigurationMetadata {
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
permittedCallbackUrls: string[];
|
|
13
|
+
exposedTools: IMcpExposedTool[];
|
|
14
|
+
adminOnly: boolean;
|
|
15
|
+
serverName?: string;
|
|
16
|
+
serverVersion?: string;
|
|
17
|
+
loginUrl?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function sanitizeMcpConfigurationMetadata(configuration: IMcpConfigurationMetadata): IMcpConfigurationMetadata;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MCP_FORBIDDEN_TOOL_IDS = void 0;
|
|
4
|
+
exports.sanitizeMcpConfigurationMetadata = sanitizeMcpConfigurationMetadata;
|
|
5
|
+
/** Tool categories that must never be exposed via MCP (e.g. secrets vault). */
|
|
6
|
+
exports.MCP_FORBIDDEN_TOOL_IDS = ['secrets'];
|
|
7
|
+
function sanitizeMcpConfigurationMetadata(configuration) {
|
|
8
|
+
const forbidden = new Set(exports.MCP_FORBIDDEN_TOOL_IDS);
|
|
9
|
+
return {
|
|
10
|
+
...configuration,
|
|
11
|
+
exposedTools: (configuration.exposedTools || []).filter((tool) => !forbidden.has(tool.toolId)),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=mcp-configuration-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-configuration-metadata.js","sourceRoot":"","sources":["../mcp-configuration-metadata.ts"],"names":[],"mappings":";;;AAqBA,4EAWC;AAhCD,+EAA+E;AAClE,QAAA,sBAAsB,GAAG,CAAC,SAAS,CAAU,CAAC;AAoB3D,SAAgB,gCAAgC,CAC9C,aAAwC;IAExC,MAAM,SAAS,GAAG,IAAI,GAAG,CAAS,8BAAsB,CAAC,CAAC;IAE1D,OAAO;QACL,GAAG,aAAa;QAChB,YAAY,EAAE,CAAC,aAAa,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,MAAM,CACrD,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CACtC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const MCP_ADMIN_PATH = "/api/mcp/admin";
|
|
2
|
+
export declare const MCP_DOCS_BASE_URL = "https://docs.qelos.io/mcp";
|
|
3
|
+
export declare const MCP_DOCS_CONFIGURATION_URL = "https://docs.qelos.io/mcp/configuration.html";
|
|
4
|
+
export declare const MCP_DOCS_CLIENTS_URL = "https://docs.qelos.io/mcp/clients.html";
|
|
5
|
+
export declare function buildMcpAdminEndpointUrl(origin: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MCP_DOCS_CLIENTS_URL = exports.MCP_DOCS_CONFIGURATION_URL = exports.MCP_DOCS_BASE_URL = exports.MCP_ADMIN_PATH = void 0;
|
|
4
|
+
exports.buildMcpAdminEndpointUrl = buildMcpAdminEndpointUrl;
|
|
5
|
+
exports.MCP_ADMIN_PATH = '/api/mcp/admin';
|
|
6
|
+
exports.MCP_DOCS_BASE_URL = 'https://docs.qelos.io/mcp';
|
|
7
|
+
exports.MCP_DOCS_CONFIGURATION_URL = `${exports.MCP_DOCS_BASE_URL}/configuration.html`;
|
|
8
|
+
exports.MCP_DOCS_CLIENTS_URL = `${exports.MCP_DOCS_BASE_URL}/clients.html`;
|
|
9
|
+
function buildMcpAdminEndpointUrl(origin) {
|
|
10
|
+
const trimmedOrigin = origin.replace(/\/+$/, '');
|
|
11
|
+
return `${trimmedOrigin}${exports.MCP_ADMIN_PATH}`;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=mcp-endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-endpoint.js","sourceRoot":"","sources":["../mcp-endpoint.ts"],"names":[],"mappings":";;;AAQA,4DAGC;AAXY,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,iBAAiB,GAAG,2BAA2B,CAAC;AAEhD,QAAA,0BAA0B,GAAG,GAAG,yBAAiB,qBAAqB,CAAC;AAEvE,QAAA,oBAAoB,GAAG,GAAG,yBAAiB,eAAe,CAAC;AAExE,SAAgB,wBAAwB,CAAC,MAAc;IACrD,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACjD,OAAO,GAAG,aAAa,GAAG,sBAAc,EAAE,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IScreenRequirement } from './screen-requirement';
|
|
2
|
+
export interface IMicroFrontend {
|
|
3
|
+
_id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
manifestUrl: string;
|
|
7
|
+
guest?: boolean;
|
|
8
|
+
url: string;
|
|
9
|
+
active: boolean;
|
|
10
|
+
opened: boolean;
|
|
11
|
+
roles: string[];
|
|
12
|
+
workspaceRoles: string[];
|
|
13
|
+
workspaceLabels?: string[];
|
|
14
|
+
crud?: string;
|
|
15
|
+
use?: string;
|
|
16
|
+
structure?: string;
|
|
17
|
+
searchQuery?: boolean;
|
|
18
|
+
searchPlaceholder?: string;
|
|
19
|
+
requirements?: IScreenRequirement[];
|
|
20
|
+
navigateAfterSubmit?: {
|
|
21
|
+
name: string;
|
|
22
|
+
params: Record<string, string>;
|
|
23
|
+
query: Record<string, string>;
|
|
24
|
+
};
|
|
25
|
+
clearAfterSubmit?: boolean;
|
|
26
|
+
route?: {
|
|
27
|
+
name: string;
|
|
28
|
+
path: string;
|
|
29
|
+
roles: string[];
|
|
30
|
+
navBarPosition: 'top' | 'bottom' | 'user-dropdown' | false;
|
|
31
|
+
group?: string;
|
|
32
|
+
iconName?: string;
|
|
33
|
+
iconSvg?: string;
|
|
34
|
+
};
|
|
35
|
+
global?: {
|
|
36
|
+
position: string;
|
|
37
|
+
};
|
|
38
|
+
modal?: {
|
|
39
|
+
name: string;
|
|
40
|
+
params: string[] | Record<string, string>;
|
|
41
|
+
size: 'sm' | 'md' | 'lg' | 'full';
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"micro-frontend.js","sourceRoot":"","sources":["../micro-frontend.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navbar-group.js","sourceRoot":"","sources":["../navbar-group.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface INoCodeComponent {
|
|
2
|
+
/**
|
|
3
|
+
* MongoDB document ID
|
|
4
|
+
*/
|
|
5
|
+
_id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Tenant identifier
|
|
8
|
+
*/
|
|
9
|
+
tenant: string;
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the component
|
|
12
|
+
*/
|
|
13
|
+
identifier: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the component used in templates
|
|
16
|
+
*/
|
|
17
|
+
componentName: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional description of the component
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Creation timestamp
|
|
24
|
+
*/
|
|
25
|
+
created: string | Date;
|
|
26
|
+
/**
|
|
27
|
+
* Last update timestamp
|
|
28
|
+
*/
|
|
29
|
+
updated: string | Date;
|
|
30
|
+
/**
|
|
31
|
+
* Additional component properties can be added here as the schema evolves
|
|
32
|
+
*/
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-code-components.js","sourceRoot":"","sources":["../no-code-components.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type PaymentAdminSuggestion = {
|
|
2
|
+
summary: string;
|
|
3
|
+
action: string;
|
|
4
|
+
};
|
|
5
|
+
export type PaymentProviderPublicContext = {
|
|
6
|
+
providerSourceId?: string;
|
|
7
|
+
providerPublicAccountId?: string;
|
|
8
|
+
providerEnvironment?: string;
|
|
9
|
+
};
|
|
10
|
+
export type PaymentResolutionContext = {
|
|
11
|
+
providerKind?: string;
|
|
12
|
+
operation?: string;
|
|
13
|
+
code?: string;
|
|
14
|
+
status?: number;
|
|
15
|
+
message?: string;
|
|
16
|
+
providerError?: Record<string, unknown> | null;
|
|
17
|
+
};
|
|
18
|
+
export type PaymentEventDocsContext = {
|
|
19
|
+
providerKind?: string;
|
|
20
|
+
eventName?: string;
|
|
21
|
+
operation?: string;
|
|
22
|
+
code?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const PAYMENTS_DOCS_BASE_URL = "https://docs.qelos.io/payments";
|
|
25
|
+
export declare function resolvePaymentEventDocsUrl(context: PaymentEventDocsContext): string;
|
|
26
|
+
export declare function sanitizeProviderErrorBody(value: unknown): Record<string, unknown> | null;
|
|
27
|
+
export declare function extractSumitProviderError(responseBody: unknown): Record<string, unknown> | null;
|
|
28
|
+
export declare function resolvePaymentProviderPublicContext(providerKind: string | undefined, metadata?: Record<string, unknown> | null, providerSourceId?: string): PaymentProviderPublicContext;
|
|
29
|
+
export declare function appendPaymentProviderContext<T extends Record<string, unknown>>(metadata: T, providerContext?: PaymentProviderPublicContext): T & Partial<PaymentProviderPublicContext>;
|
|
30
|
+
export declare function buildPaymentAdminSuggestions(context: PaymentResolutionContext): PaymentAdminSuggestion[];
|
|
31
|
+
export declare function buildPaymentEventDescription(baseDescription: string, providerError?: Record<string, unknown> | null): string;
|