@kya-os/contracts 1.5.2-canary.4 → 1.5.2-canary.6
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/agentshield-api/admin-schemas.d.ts +49 -0
- package/dist/agentshield-api/admin-schemas.js +30 -0
- package/dist/agentshield-api/admin-types.d.ts +37 -0
- package/dist/agentshield-api/admin-types.js +10 -0
- package/dist/agentshield-api/endpoints.d.ts +50 -0
- package/dist/agentshield-api/endpoints.js +46 -0
- package/dist/agentshield-api/index.d.ts +15 -0
- package/dist/agentshield-api/index.js +40 -0
- package/dist/agentshield-api/schemas.d.ts +6032 -0
- package/dist/agentshield-api/schemas.js +240 -0
- package/dist/agentshield-api/types.d.ts +231 -0
- package/dist/agentshield-api/types.js +26 -0
- package/dist/cli.d.ts +388 -0
- package/dist/cli.js +121 -0
- package/dist/config/base.d.ts +96 -0
- package/dist/config/base.js +11 -0
- package/dist/config/builder.d.ts +33 -0
- package/dist/config/builder.js +74 -0
- package/dist/config/delegation.d.ts +194 -0
- package/dist/config/delegation.js +10 -0
- package/dist/config/identity.d.ts +116 -0
- package/dist/config/identity.js +10 -0
- package/dist/config/index.d.ts +34 -0
- package/dist/config/index.js +14 -0
- package/dist/config/proofing.d.ts +120 -0
- package/dist/config/proofing.js +10 -0
- package/dist/config/tool-protection.d.ts +139 -0
- package/dist/config/tool-protection.js +10 -0
- package/dist/consent/index.d.ts +6 -0
- package/dist/consent/index.js +23 -0
- package/dist/consent/schemas.d.ts +845 -0
- package/dist/consent/schemas.js +241 -0
- package/dist/consent/types.d.ts +155 -0
- package/dist/consent/types.js +10 -0
- package/dist/dashboard-config/default-config.d.ts +49 -0
- package/dist/dashboard-config/default-config.js +240 -0
- package/dist/dashboard-config/index.d.ts +10 -0
- package/dist/dashboard-config/index.js +35 -0
- package/dist/dashboard-config/schemas.d.ts +5904 -0
- package/dist/dashboard-config/schemas.js +254 -0
- package/dist/dashboard-config/types.d.ts +337 -0
- package/dist/dashboard-config/types.js +10 -0
- package/dist/delegation/constraints.d.ts +1021 -0
- package/dist/delegation/constraints.js +218 -0
- package/dist/delegation/index.d.ts +7 -0
- package/dist/delegation/index.js +23 -0
- package/dist/delegation/schemas.d.ts +8457 -0
- package/dist/delegation/schemas.js +475 -0
- package/dist/did/index.d.ts +8 -0
- package/dist/did/index.js +24 -0
- package/dist/did/resolve-contract.d.ts +219 -0
- package/dist/did/resolve-contract.js +31 -0
- package/dist/did/schemas.d.ts +112 -0
- package/dist/did/schemas.js +172 -0
- package/dist/did/types.d.ts +163 -0
- package/dist/did/types.js +70 -0
- package/dist/env/constants.d.ts +57 -0
- package/dist/env/constants.js +59 -0
- package/dist/env/index.d.ts +4 -0
- package/dist/env/index.js +20 -0
- package/dist/handshake.d.ts +335 -0
- package/dist/handshake.js +81 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +55 -0
- package/dist/proof/index.d.ts +9 -0
- package/dist/proof/index.js +38 -0
- package/dist/proof/proof-record.d.ts +837 -0
- package/dist/proof/proof-record.js +133 -0
- package/dist/proof/signing-spec.d.ts +146 -0
- package/dist/proof/signing-spec.js +122 -0
- package/dist/proof.d.ts +414 -0
- package/dist/proof.js +82 -0
- package/dist/registry.d.ts +342 -0
- package/dist/registry.js +118 -0
- package/dist/runtime/errors.d.ts +347 -0
- package/dist/runtime/errors.js +119 -0
- package/dist/runtime/headers.d.ts +83 -0
- package/dist/runtime/headers.js +81 -0
- package/dist/runtime/index.d.ts +5 -0
- package/dist/runtime/index.js +21 -0
- package/dist/test.d.ts +251 -0
- package/dist/test.js +119 -0
- package/dist/tlkrc/index.d.ts +4 -0
- package/dist/tlkrc/index.js +20 -0
- package/dist/tlkrc/rotation.d.ts +245 -0
- package/dist/tlkrc/rotation.js +126 -0
- package/dist/tool-protection/index.d.ts +227 -0
- package/dist/tool-protection/index.js +113 -0
- package/dist/utils/validation.d.ts +30 -0
- package/dist/utils/validation.js +69 -0
- package/dist/vc/index.d.ts +7 -0
- package/dist/vc/index.js +23 -0
- package/dist/vc/schemas.d.ts +2483 -0
- package/dist/vc/schemas.js +224 -0
- package/dist/vc/statuslist.d.ts +493 -0
- package/dist/vc/statuslist.js +132 -0
- package/dist/verifier.d.ts +205 -0
- package/dist/verifier.js +83 -0
- package/dist/well-known/index.d.ts +308 -0
- package/dist/well-known/index.js +134 -0
- package/package.json +1 -1
package/dist/index.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @kya-os/contracts - Shared types and schemas for XMCP-I ecosystem
|
|
4
|
+
*
|
|
5
|
+
* This package provides a single source of truth for all types and contracts
|
|
6
|
+
* used across the XMCP-I ecosystem, including runtime, CLI, verifier, and registry.
|
|
7
|
+
*
|
|
8
|
+
* NOTE: Some exports may conflict. Use subpath imports for new modules:
|
|
9
|
+
* - import { ... } from '@kya-os/contracts/did'
|
|
10
|
+
* - import { ... } from '@kya-os/contracts/vc'
|
|
11
|
+
* - import { ... } from '@kya-os/contracts/delegation'
|
|
12
|
+
* - import { ... } from '@kya-os/contracts/runtime'
|
|
13
|
+
* - import { ... } from '@kya-os/contracts/tlkrc'
|
|
14
|
+
* - import { ... } from '@kya-os/contracts/env'
|
|
15
|
+
*/
|
|
16
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
+
}
|
|
22
|
+
Object.defineProperty(o, k2, desc);
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
28
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.SUPPORTED_XMCP_I_VERSION = exports.CONTRACTS_VERSION = void 0;
|
|
32
|
+
// Legacy exports (maintain backward compatibility)
|
|
33
|
+
__exportStar(require("./handshake.js"), exports);
|
|
34
|
+
__exportStar(require("./proof.js"), exports);
|
|
35
|
+
__exportStar(require("./verifier.js"), exports);
|
|
36
|
+
__exportStar(require("./registry.js"), exports);
|
|
37
|
+
__exportStar(require("./cli.js"), exports);
|
|
38
|
+
__exportStar(require("./test.js"), exports);
|
|
39
|
+
__exportStar(require("./utils/validation.js"), exports);
|
|
40
|
+
// W3C VC and Delegation exports (for mcp-i-core compatibility)
|
|
41
|
+
__exportStar(require("./vc/index.js"), exports);
|
|
42
|
+
__exportStar(require("./delegation/index.js"), exports);
|
|
43
|
+
// Version information
|
|
44
|
+
exports.CONTRACTS_VERSION = "1.2.1";
|
|
45
|
+
exports.SUPPORTED_XMCP_I_VERSION = "^1.0.0";
|
|
46
|
+
// New MCP-I contract types are available via subpath imports:
|
|
47
|
+
// import { ... } from '@kya-os/contracts/did'
|
|
48
|
+
// import { ... } from '@kya-os/contracts/vc'
|
|
49
|
+
// import { ... } from '@kya-os/contracts/delegation'
|
|
50
|
+
// import { ... } from '@kya-os/contracts/runtime'
|
|
51
|
+
// import { ... } from '@kya-os/contracts/tlkrc'
|
|
52
|
+
// import { ... } from '@kya-os/contracts/env'
|
|
53
|
+
// import { ... } from '@kya-os/contracts/agentshield-api'
|
|
54
|
+
// import { ... } from '@kya-os/contracts/tool-protection'
|
|
55
|
+
// import { ... } from '@kya-os/contracts/well-known'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Proof Module Exports
|
|
3
|
+
*
|
|
4
|
+
* This module exports all proof-related types including DetachedProof,
|
|
5
|
+
* proof records, and signing specs.
|
|
6
|
+
*/
|
|
7
|
+
export { DetachedProofSchema, ProofMetaSchema, CanonicalHashesSchema, AuditRecordSchema, ToolCallContextSchema, ProofSubmissionContextSchema, ProofSubmissionRequestSchema, JWS_ALGORITHM, HASH_ALGORITHM, AUDIT_VERSION, type DetachedProof, type ProofMeta, type CanonicalHashes, type AuditRecord, type ToolCallContext, type ProofSubmissionContext, type ProofSubmissionRequest, } from '../proof.js';
|
|
8
|
+
export * from './signing-spec.js';
|
|
9
|
+
export * from './proof-record.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Proof Module Exports
|
|
4
|
+
*
|
|
5
|
+
* This module exports all proof-related types including DetachedProof,
|
|
6
|
+
* proof records, and signing specs.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.AUDIT_VERSION = exports.HASH_ALGORITHM = exports.JWS_ALGORITHM = exports.ProofSubmissionRequestSchema = exports.ProofSubmissionContextSchema = exports.ToolCallContextSchema = exports.AuditRecordSchema = exports.CanonicalHashesSchema = exports.ProofMetaSchema = exports.DetachedProofSchema = void 0;
|
|
24
|
+
// Export DetachedProof and related schemas from root proof.ts
|
|
25
|
+
var proof_js_1 = require("../proof.js");
|
|
26
|
+
Object.defineProperty(exports, "DetachedProofSchema", { enumerable: true, get: function () { return proof_js_1.DetachedProofSchema; } });
|
|
27
|
+
Object.defineProperty(exports, "ProofMetaSchema", { enumerable: true, get: function () { return proof_js_1.ProofMetaSchema; } });
|
|
28
|
+
Object.defineProperty(exports, "CanonicalHashesSchema", { enumerable: true, get: function () { return proof_js_1.CanonicalHashesSchema; } });
|
|
29
|
+
Object.defineProperty(exports, "AuditRecordSchema", { enumerable: true, get: function () { return proof_js_1.AuditRecordSchema; } });
|
|
30
|
+
Object.defineProperty(exports, "ToolCallContextSchema", { enumerable: true, get: function () { return proof_js_1.ToolCallContextSchema; } });
|
|
31
|
+
Object.defineProperty(exports, "ProofSubmissionContextSchema", { enumerable: true, get: function () { return proof_js_1.ProofSubmissionContextSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "ProofSubmissionRequestSchema", { enumerable: true, get: function () { return proof_js_1.ProofSubmissionRequestSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "JWS_ALGORITHM", { enumerable: true, get: function () { return proof_js_1.JWS_ALGORITHM; } });
|
|
34
|
+
Object.defineProperty(exports, "HASH_ALGORITHM", { enumerable: true, get: function () { return proof_js_1.HASH_ALGORITHM; } });
|
|
35
|
+
Object.defineProperty(exports, "AUDIT_VERSION", { enumerable: true, get: function () { return proof_js_1.AUDIT_VERSION; } });
|
|
36
|
+
// Export proof record and signing spec types
|
|
37
|
+
__exportStar(require("./signing-spec.js"), exports);
|
|
38
|
+
__exportStar(require("./proof-record.js"), exports);
|