@kya-os/contracts 1.6.3 → 1.6.5
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/dist/audit/index.d.ts +4 -4
- package/dist/config/identity.d.ts +477 -6
- package/dist/config/identity.js +68 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +6 -1
- package/dist/config/tool-context.d.ts +14 -2
- package/dist/dashboard-config/index.d.ts +2 -2
- package/dist/dashboard-config/index.js +4 -1
- package/dist/dashboard-config/schemas.d.ts +6595 -3160
- package/dist/dashboard-config/schemas.js +23 -1
- package/dist/dashboard-config/types.d.ts +28 -1
- package/package.json +5 -1
|
@@ -14,14 +14,26 @@
|
|
|
14
14
|
*
|
|
15
15
|
* Enables tools to access IDP tokens for external API calls.
|
|
16
16
|
* Context is only provided when:
|
|
17
|
-
* - Tool requires OAuth (has requiredScopes)
|
|
17
|
+
* - Tool requires OAuth (has requiredScopes) or credential-based auth
|
|
18
18
|
* - User DID is available
|
|
19
19
|
* - IDP token is successfully resolved
|
|
20
20
|
*/
|
|
21
21
|
export interface ToolExecutionContext {
|
|
22
22
|
/** IDP access token for external API calls (e.g., GitHub, Google) */
|
|
23
23
|
idpToken?: string;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Pre-built headers for API calls (CRED-003)
|
|
26
|
+
*
|
|
27
|
+
* For OAuth providers: typically { Authorization: "Bearer xxx" }
|
|
28
|
+
* For credential providers: based on tokenUsage configuration
|
|
29
|
+
* - cookie: { Cookie: "formatted_cookie_string" }
|
|
30
|
+
* - bearer: { Authorization: "Bearer xxx" }
|
|
31
|
+
* - header: { [customHeader]: "xxx" }
|
|
32
|
+
*
|
|
33
|
+
* Also includes any additional apiHeaders from provider config.
|
|
34
|
+
*/
|
|
35
|
+
idpHeaders?: Record<string, string>;
|
|
36
|
+
/** OAuth provider name (e.g., "github", "google") or credential provider */
|
|
25
37
|
provider?: string;
|
|
26
38
|
/** Scopes granted for this token */
|
|
27
39
|
scopes?: string[];
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @package @kya-os/contracts/dashboard-config
|
|
7
7
|
*/
|
|
8
|
-
export type { MCPIServerConfig, GetServerConfigRequest, GetServerConfigResponse, UpdateServerConfigRequest, UpdateServerConfigResponse, ValidateServerConfigRequest, ValidateServerConfigResponse, } from './types.js';
|
|
9
|
-
export { identityConfigSchema, proofingConfigSchema, delegationConfigSchema, toolProtectionConfigSchema, auditConfigSchema, sessionConfigSchema, platformConfigSchema, cloudflarePlatformConfigSchema, nodePlatformConfigSchema, vercelPlatformConfigSchema, configMetadataSchema, mcpIServerConfigSchema, getServerConfigRequestSchema, getServerConfigResponseSchema, updateServerConfigRequestSchema, updateServerConfigResponseSchema, validateServerConfigRequestSchema, validateServerConfigResponseSchema, } from './schemas.js';
|
|
8
|
+
export type { MCPIServerConfig, MergedMCPIServerConfig, GetServerConfigRequest, GetServerConfigResponse, GetMergedServerConfigResponse, UpdateServerConfigRequest, UpdateServerConfigResponse, ValidateServerConfigRequest, ValidateServerConfigResponse, } from './types.js';
|
|
9
|
+
export { identityConfigSchema, proofingConfigSchema, delegationConfigSchema, toolProtectionConfigSchema, mergedToolProtectionConfigSchema, auditConfigSchema, sessionConfigSchema, platformConfigSchema, cloudflarePlatformConfigSchema, nodePlatformConfigSchema, vercelPlatformConfigSchema, configMetadataSchema, mcpIServerConfigSchema, mergedMcpIServerConfigSchema, getServerConfigRequestSchema, getServerConfigResponseSchema, getMergedServerConfigResponseSchema, updateServerConfigRequestSchema, updateServerConfigResponseSchema, validateServerConfigRequestSchema, validateServerConfigResponseSchema, } from './schemas.js';
|
|
10
10
|
export { defaultConfig, getDefaultConfigForPlatform, mergeWithDefaults, } from './default-config.js';
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
* @package @kya-os/contracts/dashboard-config
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.mergeWithDefaults = exports.getDefaultConfigForPlatform = exports.defaultConfig = exports.validateServerConfigResponseSchema = exports.validateServerConfigRequestSchema = exports.updateServerConfigResponseSchema = exports.updateServerConfigRequestSchema = exports.getServerConfigResponseSchema = exports.getServerConfigRequestSchema = exports.mcpIServerConfigSchema = exports.configMetadataSchema = exports.vercelPlatformConfigSchema = exports.nodePlatformConfigSchema = exports.cloudflarePlatformConfigSchema = exports.platformConfigSchema = exports.sessionConfigSchema = exports.auditConfigSchema = exports.toolProtectionConfigSchema = exports.delegationConfigSchema = exports.proofingConfigSchema = exports.identityConfigSchema = void 0;
|
|
10
|
+
exports.mergeWithDefaults = exports.getDefaultConfigForPlatform = exports.defaultConfig = exports.validateServerConfigResponseSchema = exports.validateServerConfigRequestSchema = exports.updateServerConfigResponseSchema = exports.updateServerConfigRequestSchema = exports.getMergedServerConfigResponseSchema = exports.getServerConfigResponseSchema = exports.getServerConfigRequestSchema = exports.mergedMcpIServerConfigSchema = exports.mcpIServerConfigSchema = exports.configMetadataSchema = exports.vercelPlatformConfigSchema = exports.nodePlatformConfigSchema = exports.cloudflarePlatformConfigSchema = exports.platformConfigSchema = exports.sessionConfigSchema = exports.auditConfigSchema = exports.mergedToolProtectionConfigSchema = exports.toolProtectionConfigSchema = exports.delegationConfigSchema = exports.proofingConfigSchema = exports.identityConfigSchema = void 0;
|
|
11
11
|
// Schema exports
|
|
12
12
|
var schemas_js_1 = require("./schemas.js");
|
|
13
13
|
Object.defineProperty(exports, "identityConfigSchema", { enumerable: true, get: function () { return schemas_js_1.identityConfigSchema; } });
|
|
14
14
|
Object.defineProperty(exports, "proofingConfigSchema", { enumerable: true, get: function () { return schemas_js_1.proofingConfigSchema; } });
|
|
15
15
|
Object.defineProperty(exports, "delegationConfigSchema", { enumerable: true, get: function () { return schemas_js_1.delegationConfigSchema; } });
|
|
16
16
|
Object.defineProperty(exports, "toolProtectionConfigSchema", { enumerable: true, get: function () { return schemas_js_1.toolProtectionConfigSchema; } });
|
|
17
|
+
Object.defineProperty(exports, "mergedToolProtectionConfigSchema", { enumerable: true, get: function () { return schemas_js_1.mergedToolProtectionConfigSchema; } });
|
|
17
18
|
Object.defineProperty(exports, "auditConfigSchema", { enumerable: true, get: function () { return schemas_js_1.auditConfigSchema; } });
|
|
18
19
|
Object.defineProperty(exports, "sessionConfigSchema", { enumerable: true, get: function () { return schemas_js_1.sessionConfigSchema; } });
|
|
19
20
|
Object.defineProperty(exports, "platformConfigSchema", { enumerable: true, get: function () { return schemas_js_1.platformConfigSchema; } });
|
|
@@ -22,8 +23,10 @@ Object.defineProperty(exports, "nodePlatformConfigSchema", { enumerable: true, g
|
|
|
22
23
|
Object.defineProperty(exports, "vercelPlatformConfigSchema", { enumerable: true, get: function () { return schemas_js_1.vercelPlatformConfigSchema; } });
|
|
23
24
|
Object.defineProperty(exports, "configMetadataSchema", { enumerable: true, get: function () { return schemas_js_1.configMetadataSchema; } });
|
|
24
25
|
Object.defineProperty(exports, "mcpIServerConfigSchema", { enumerable: true, get: function () { return schemas_js_1.mcpIServerConfigSchema; } });
|
|
26
|
+
Object.defineProperty(exports, "mergedMcpIServerConfigSchema", { enumerable: true, get: function () { return schemas_js_1.mergedMcpIServerConfigSchema; } });
|
|
25
27
|
Object.defineProperty(exports, "getServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.getServerConfigRequestSchema; } });
|
|
26
28
|
Object.defineProperty(exports, "getServerConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.getServerConfigResponseSchema; } });
|
|
29
|
+
Object.defineProperty(exports, "getMergedServerConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.getMergedServerConfigResponseSchema; } });
|
|
27
30
|
Object.defineProperty(exports, "updateServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.updateServerConfigRequestSchema; } });
|
|
28
31
|
Object.defineProperty(exports, "updateServerConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.updateServerConfigResponseSchema; } });
|
|
29
32
|
Object.defineProperty(exports, "validateServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.validateServerConfigRequestSchema; } });
|