@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,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared contracts every Qelos framework integrator (`@qelos/integrator-*`)
|
|
4
|
+
* builds upon. Defined here — rather than in each integrator — so the
|
|
5
|
+
* per-request shape and configuration surface are guaranteed identical across
|
|
6
|
+
* frameworks.
|
|
7
|
+
*
|
|
8
|
+
* `@qelos/sdk` depends on `@qelos/global-types`, so this file deliberately
|
|
9
|
+
* avoids importing from the SDK; instead, {@link QelosContext} is generic over
|
|
10
|
+
* the SDK instance type and integrators specialize it with the concrete
|
|
11
|
+
* `QelosSDK` / `IUser` / `IWorkspace` types from `@qelos/sdk`.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
//# sourceMappingURL=qelos-integrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qelos-integrator.js","sourceRoot":"","sources":["../qelos-integrator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-filters.js","sourceRoot":"","sources":["../query-filters.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IScreenRequirement {
|
|
2
|
+
key: string;
|
|
3
|
+
fromHTTP?: {
|
|
4
|
+
uri: string;
|
|
5
|
+
method: string;
|
|
6
|
+
query?: any;
|
|
7
|
+
};
|
|
8
|
+
fromCrud?: {
|
|
9
|
+
name: string;
|
|
10
|
+
identifier?: string;
|
|
11
|
+
query?: any;
|
|
12
|
+
};
|
|
13
|
+
fromBlueprint?: {
|
|
14
|
+
name: string;
|
|
15
|
+
identifier?: string;
|
|
16
|
+
query?: any;
|
|
17
|
+
dependsOn?: string;
|
|
18
|
+
dependsField?: string;
|
|
19
|
+
};
|
|
20
|
+
fromData?: any;
|
|
21
|
+
lazy?: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen-requirement.js","sourceRoot":"","sources":["../screen-requirement.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface WorkspaceLabelDefinition {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
value: string[];
|
|
5
|
+
allowedRolesForCreation?: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface WorkspaceConfigurationMetadata {
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
creationPrivilegedRoles: string[];
|
|
10
|
+
viewMembersPrivilegedWsRoles: string[];
|
|
11
|
+
labels: WorkspaceLabelDefinition[];
|
|
12
|
+
allowNonLabeledWorkspaces: boolean;
|
|
13
|
+
allowNonWorkspaceUsers: boolean;
|
|
14
|
+
allowLogo?: boolean;
|
|
15
|
+
createWorkspacePageTitle?: string;
|
|
16
|
+
labelsSelectorTitle?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-configuration-metadata.js","sourceRoot":"","sources":["../workspace-configuration-metadata.ts"],"names":[],"mappings":""}
|
package/index.ts
CHANGED
|
@@ -10,6 +10,9 @@ export * from './query-filters'
|
|
|
10
10
|
export * from './workspace-configuration-metadata'
|
|
11
11
|
export * from './auth-configuration-metadata'
|
|
12
12
|
export * from './app-configuration-metadata'
|
|
13
|
+
export * from './mcp-configuration-metadata'
|
|
14
|
+
export * from './mcp-endpoint'
|
|
15
|
+
export * from './ai-models'
|
|
13
16
|
export * from './integration-sources'
|
|
14
17
|
export * from './integration-source-status'
|
|
15
18
|
export * from './integration'
|
package/integration-sources.ts
CHANGED
|
@@ -40,6 +40,7 @@ export enum QelosTriggerOperation {
|
|
|
40
40
|
webhook = 'webhook',
|
|
41
41
|
apiWebhook = 'apiWebhook',
|
|
42
42
|
chatCompletion = 'chatCompletion',
|
|
43
|
+
mcpTool = 'mcpTool',
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
export enum QelosTargetOperation {
|
|
@@ -283,6 +284,15 @@ export interface IOpenAISource extends IIntegrationSource {
|
|
|
283
284
|
export interface IClaudeAiSource extends IIntegrationSource {
|
|
284
285
|
_id?: string;
|
|
285
286
|
kind: IntegrationSourceKind.ClaudeAi;
|
|
287
|
+
authentication: {
|
|
288
|
+
token: string;
|
|
289
|
+
};
|
|
290
|
+
metadata: {
|
|
291
|
+
/** Custom API base URL when using a proxy or compatible endpoint. */
|
|
292
|
+
apiUrl?: string;
|
|
293
|
+
defaultModel?: string | null;
|
|
294
|
+
initialMessages?: { role: string; content: string }[];
|
|
295
|
+
};
|
|
286
296
|
}
|
|
287
297
|
|
|
288
298
|
export interface IGeminiSource extends IIntegrationSource {
|
package/integration.ts
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Tool categories that must never be exposed via MCP (e.g. secrets vault). */
|
|
2
|
+
export const MCP_FORBIDDEN_TOOL_IDS = ['secrets'] as const;
|
|
3
|
+
|
|
4
|
+
export interface IMcpExposedTool {
|
|
5
|
+
toolId: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
roles: string[];
|
|
8
|
+
wsRoles: string[];
|
|
9
|
+
wsLabels: string[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IMcpConfigurationMetadata {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
permittedCallbackUrls: string[];
|
|
15
|
+
exposedTools: IMcpExposedTool[];
|
|
16
|
+
adminOnly: boolean;
|
|
17
|
+
serverName?: string;
|
|
18
|
+
serverVersion?: string;
|
|
19
|
+
loginUrl?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function sanitizeMcpConfigurationMetadata(
|
|
23
|
+
configuration: IMcpConfigurationMetadata,
|
|
24
|
+
): IMcpConfigurationMetadata {
|
|
25
|
+
const forbidden = new Set<string>(MCP_FORBIDDEN_TOOL_IDS);
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
...configuration,
|
|
29
|
+
exposedTools: (configuration.exposedTools || []).filter(
|
|
30
|
+
(tool) => !forbidden.has(tool.toolId),
|
|
31
|
+
),
|
|
32
|
+
};
|
|
33
|
+
}
|
package/mcp-endpoint.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const MCP_ADMIN_PATH = '/api/mcp/admin';
|
|
2
|
+
|
|
3
|
+
export const MCP_DOCS_BASE_URL = 'https://docs.qelos.io/mcp';
|
|
4
|
+
|
|
5
|
+
export const MCP_DOCS_CONFIGURATION_URL = `${MCP_DOCS_BASE_URL}/configuration.html`;
|
|
6
|
+
|
|
7
|
+
export const MCP_DOCS_CLIENTS_URL = `${MCP_DOCS_BASE_URL}/clients.html`;
|
|
8
|
+
|
|
9
|
+
export function buildMcpAdminEndpointUrl(origin: string): string {
|
|
10
|
+
const trimmedOrigin = origin.replace(/\/+$/, '');
|
|
11
|
+
return `${trimmedOrigin}${MCP_ADMIN_PATH}`;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qelos/global-types",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "index.
|
|
6
|
-
"
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "index.ts",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc"
|
|
10
|
+
},
|
|
7
11
|
"author": "",
|
|
8
12
|
"gitHead": "13468bc51557291935b96b1aeaa837b8b52861e8",
|
|
9
13
|
"license": "MIT",
|
|
10
14
|
"publishConfig": {
|
|
11
15
|
"access": "public"
|
|
12
16
|
},
|
|
13
|
-
"
|
|
14
|
-
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"typescript": "^5.4.5"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/payments.ts
CHANGED
|
@@ -13,6 +13,23 @@ export type InvoiceStatus = 'paid' | 'pending' | 'failed' | 'refunded';
|
|
|
13
13
|
/** Type of discount a coupon provides. */
|
|
14
14
|
export type CouponDiscountType = 'percentage' | 'fixed';
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Real-world identity of the billable entity, passed through checkout so payment
|
|
18
|
+
* providers (e.g. Sumit) can create a properly-named customer record instead of
|
|
19
|
+
* falling back to the raw billable entity ID.
|
|
20
|
+
*/
|
|
21
|
+
export interface CheckoutCustomer {
|
|
22
|
+
name?: string;
|
|
23
|
+
/** Legal/invoice name, e.g. a company name distinct from the contact's personal name. */
|
|
24
|
+
nameForInvoice?: string;
|
|
25
|
+
email?: string;
|
|
26
|
+
phone?: string;
|
|
27
|
+
address?: string;
|
|
28
|
+
city?: string;
|
|
29
|
+
/** Company tax/VAT identifier. */
|
|
30
|
+
taxId?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
16
33
|
/** Tenant payments settings stored in the `payments-configuration` configuration key. */
|
|
17
34
|
export interface IPaymentsConfigurationMetadata {
|
|
18
35
|
isEnabled?: boolean;
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"target": "esnext",
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"allowSyntheticDefaultImports": true
|
|
11
|
+
},
|
|
12
|
+
"exclude": [
|
|
13
|
+
"node_modules",
|
|
14
|
+
"dist",
|
|
15
|
+
"**/*.test.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Polyform Shield License 1.0.0
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Velocitech LTD
|
|
4
|
-
|
|
5
|
-
Your use of this software is governed by the Polyform Shield License 1.0.0.
|
|
6
|
-
|
|
7
|
-
You may obtain a copy of the License at:
|
|
8
|
-
https://polyformproject.org/licenses/shield/1.0.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
|
|
12
|
-
Additional Terms – Exception Notice:
|
|
13
|
-
|
|
14
|
-
The author of this software grants additional permissions beyond the Polyform Shield License 1.0.0:
|
|
15
|
-
|
|
16
|
-
✅ All uses of the software are permitted — including modification, distribution, commercial use, and sublicensing — as long as the software is not used to create, offer, or operate any product or service that competes directly with Qelos (https://qelos.io), a no-code platform for building AI-assisted SaaS applications.
|
|
17
|
-
|
|
18
|
-
❌ "Direct competition" includes platforms, tools, or services that enable users to visually or programmatically create SaaS applications with the assistance of artificial intelligence.
|
|
19
|
-
|
|
20
|
-
This exception does not modify the terms of the original Polyform Shield License for other users and applies only by explicit permission of the licensor.
|