@kya-os/contracts 1.5.2-canary.3 → 1.5.2-canary.4

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.
Files changed (97) hide show
  1. package/package.json +5 -5
  2. package/dist/agentshield-api/endpoints.d.ts +0 -51
  3. package/dist/agentshield-api/endpoints.js +0 -47
  4. package/dist/agentshield-api/index.d.ts +0 -13
  5. package/dist/agentshield-api/index.js +0 -37
  6. package/dist/agentshield-api/schemas.d.ts +0 -5867
  7. package/dist/agentshield-api/schemas.js +0 -207
  8. package/dist/agentshield-api/types.d.ts +0 -194
  9. package/dist/agentshield-api/types.js +0 -26
  10. package/dist/cli.d.ts +0 -388
  11. package/dist/cli.js +0 -121
  12. package/dist/config/base.d.ts +0 -96
  13. package/dist/config/base.js +0 -11
  14. package/dist/config/builder.d.ts +0 -34
  15. package/dist/config/builder.js +0 -74
  16. package/dist/config/delegation.d.ts +0 -194
  17. package/dist/config/delegation.js +0 -10
  18. package/dist/config/identity.d.ts +0 -117
  19. package/dist/config/identity.js +0 -11
  20. package/dist/config/index.d.ts +0 -35
  21. package/dist/config/index.js +0 -15
  22. package/dist/config/proofing.d.ts +0 -120
  23. package/dist/config/proofing.js +0 -10
  24. package/dist/config/tool-protection.d.ts +0 -139
  25. package/dist/config/tool-protection.js +0 -10
  26. package/dist/consent/index.d.ts +0 -6
  27. package/dist/consent/index.js +0 -22
  28. package/dist/consent/schemas.d.ts +0 -738
  29. package/dist/consent/schemas.js +0 -186
  30. package/dist/consent/types.d.ts +0 -155
  31. package/dist/consent/types.js +0 -10
  32. package/dist/dashboard-config/default-config.d.ts +0 -50
  33. package/dist/dashboard-config/default-config.js +0 -241
  34. package/dist/dashboard-config/index.d.ts +0 -11
  35. package/dist/dashboard-config/index.js +0 -36
  36. package/dist/dashboard-config/schemas.d.ts +0 -5905
  37. package/dist/dashboard-config/schemas.js +0 -255
  38. package/dist/dashboard-config/types.d.ts +0 -338
  39. package/dist/dashboard-config/types.js +0 -11
  40. package/dist/delegation/constraints.d.ts +0 -1022
  41. package/dist/delegation/constraints.js +0 -219
  42. package/dist/delegation/index.d.ts +0 -7
  43. package/dist/delegation/index.js +0 -24
  44. package/dist/delegation/schemas.d.ts +0 -8458
  45. package/dist/delegation/schemas.js +0 -476
  46. package/dist/did/index.d.ts +0 -8
  47. package/dist/did/index.js +0 -24
  48. package/dist/did/resolve-contract.d.ts +0 -219
  49. package/dist/did/resolve-contract.js +0 -31
  50. package/dist/did/schemas.d.ts +0 -112
  51. package/dist/did/schemas.js +0 -172
  52. package/dist/did/types.d.ts +0 -163
  53. package/dist/did/types.js +0 -70
  54. package/dist/env/constants.d.ts +0 -57
  55. package/dist/env/constants.js +0 -59
  56. package/dist/env/index.d.ts +0 -4
  57. package/dist/env/index.js +0 -20
  58. package/dist/handshake.d.ts +0 -167
  59. package/dist/handshake.js +0 -60
  60. package/dist/index.d.ts +0 -25
  61. package/dist/index.js +0 -55
  62. package/dist/proof/index.d.ts +0 -8
  63. package/dist/proof/index.js +0 -24
  64. package/dist/proof/proof-record.d.ts +0 -837
  65. package/dist/proof/proof-record.js +0 -133
  66. package/dist/proof/signing-spec.d.ts +0 -146
  67. package/dist/proof/signing-spec.js +0 -122
  68. package/dist/proof.d.ts +0 -415
  69. package/dist/proof.js +0 -83
  70. package/dist/registry.d.ts +0 -342
  71. package/dist/registry.js +0 -118
  72. package/dist/runtime/errors.d.ts +0 -347
  73. package/dist/runtime/errors.js +0 -119
  74. package/dist/runtime/headers.d.ts +0 -83
  75. package/dist/runtime/headers.js +0 -81
  76. package/dist/runtime/index.d.ts +0 -5
  77. package/dist/runtime/index.js +0 -21
  78. package/dist/test.d.ts +0 -251
  79. package/dist/test.js +0 -119
  80. package/dist/tlkrc/index.d.ts +0 -4
  81. package/dist/tlkrc/index.js +0 -20
  82. package/dist/tlkrc/rotation.d.ts +0 -245
  83. package/dist/tlkrc/rotation.js +0 -126
  84. package/dist/tool-protection/index.d.ts +0 -227
  85. package/dist/tool-protection/index.js +0 -113
  86. package/dist/utils/validation.d.ts +0 -30
  87. package/dist/utils/validation.js +0 -69
  88. package/dist/vc/index.d.ts +0 -7
  89. package/dist/vc/index.js +0 -23
  90. package/dist/vc/schemas.d.ts +0 -2483
  91. package/dist/vc/schemas.js +0 -224
  92. package/dist/vc/statuslist.d.ts +0 -493
  93. package/dist/vc/statuslist.js +0 -132
  94. package/dist/verifier.d.ts +0 -205
  95. package/dist/verifier.js +0 -83
  96. package/dist/well-known/index.d.ts +0 -308
  97. package/dist/well-known/index.js +0 -134
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.5.2-canary.3",
3
+ "version": "1.5.2-canary.4",
4
4
  "description": "Shared types and schemas for XMCP-I ecosystem",
5
5
  "type": "commonjs",
6
6
  "sideEffects": false,
@@ -18,9 +18,9 @@
18
18
  "require": "./dist/handshake.js"
19
19
  },
20
20
  "./proof": {
21
- "types": "./dist/proof.d.ts",
22
- "import": "./dist/proof.js",
23
- "require": "./dist/proof.js"
21
+ "types": "./dist/proof/index.d.ts",
22
+ "import": "./dist/proof/index.js",
23
+ "require": "./dist/proof/index.js"
24
24
  },
25
25
  "./verifier": {
26
26
  "types": "./dist/verifier.d.ts",
@@ -124,7 +124,7 @@
124
124
  "test": "vitest run",
125
125
  "test:watch": "vitest",
126
126
  "test:coverage": "vitest run --coverage",
127
- "prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js"
127
+ "prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-dependencies.js"
128
128
  },
129
129
  "devDependencies": {
130
130
  "@types/node": "^20.0.0",
@@ -1,51 +0,0 @@
1
- /**
2
- * AgentShield/Bouncer API Endpoint Constants
3
- *
4
- * Centralized endpoint definitions to prevent hardcoded URLs
5
- * and ensure consistency across all API clients.
6
- *
7
- * @package @kya-os/contracts/agentshield-api
8
- */
9
- /**
10
- * Base path for all AgentShield/Bouncer API endpoints
11
- */
12
- export declare const AGENTSHIELD_API_BASE: "/api/v1/bouncer";
13
- /**
14
- * AgentShield API endpoint paths
15
- *
16
- * These are relative paths that should be appended to the base API URL.
17
- * Example: `${apiUrl}${AGENTSHIELD_ENDPOINTS.PROOFS}`
18
- */
19
- export declare const AGENTSHIELD_ENDPOINTS: {
20
- /** Submit proofs in batch */
21
- readonly PROOFS: "/api/v1/bouncer/proofs";
22
- /** Verify delegation by agent DID and scopes */
23
- readonly DELEGATIONS_VERIFY: "/api/v1/bouncer/delegations/verify";
24
- /** Get delegation by ID */
25
- readonly DELEGATIONS_GET: (id: string) => `/api/v1/bouncer/delegations/${string}`;
26
- /** Create new delegation */
27
- readonly DELEGATIONS_CREATE: "/api/v1/bouncer/delegations";
28
- /** Revoke delegation */
29
- readonly DELEGATIONS_REVOKE: (id: string) => `/api/v1/bouncer/delegations/${string}/revoke`;
30
- /** Get server configuration */
31
- readonly CONFIG: (projectId: string) => `/api/v1/bouncer/projects/${string}/config`;
32
- };
33
- /**
34
- * HTTP methods for each endpoint
35
- */
36
- export declare const AGENTSHIELD_METHODS: {
37
- readonly PROOFS: "POST";
38
- readonly DELEGATIONS_VERIFY: "POST";
39
- readonly DELEGATIONS_GET: "GET";
40
- readonly DELEGATIONS_CREATE: "POST";
41
- readonly DELEGATIONS_REVOKE: "POST";
42
- readonly CONFIG: "GET";
43
- };
44
- /**
45
- * Required headers for AgentShield API requests
46
- */
47
- export interface AgentShieldAPIHeaders {
48
- 'Content-Type': 'application/json';
49
- 'Authorization': `Bearer ${string}`;
50
- }
51
- //# sourceMappingURL=endpoints.d.ts.map
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /**
3
- * AgentShield/Bouncer API Endpoint Constants
4
- *
5
- * Centralized endpoint definitions to prevent hardcoded URLs
6
- * and ensure consistency across all API clients.
7
- *
8
- * @package @kya-os/contracts/agentshield-api
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.AGENTSHIELD_METHODS = exports.AGENTSHIELD_ENDPOINTS = exports.AGENTSHIELD_API_BASE = void 0;
12
- /**
13
- * Base path for all AgentShield/Bouncer API endpoints
14
- */
15
- exports.AGENTSHIELD_API_BASE = '/api/v1/bouncer';
16
- /**
17
- * AgentShield API endpoint paths
18
- *
19
- * These are relative paths that should be appended to the base API URL.
20
- * Example: `${apiUrl}${AGENTSHIELD_ENDPOINTS.PROOFS}`
21
- */
22
- exports.AGENTSHIELD_ENDPOINTS = {
23
- /** Submit proofs in batch */
24
- PROOFS: `${exports.AGENTSHIELD_API_BASE}/proofs`,
25
- /** Verify delegation by agent DID and scopes */
26
- DELEGATIONS_VERIFY: `${exports.AGENTSHIELD_API_BASE}/delegations/verify`,
27
- /** Get delegation by ID */
28
- DELEGATIONS_GET: (id) => `${exports.AGENTSHIELD_API_BASE}/delegations/${id}`,
29
- /** Create new delegation */
30
- DELEGATIONS_CREATE: `${exports.AGENTSHIELD_API_BASE}/delegations`,
31
- /** Revoke delegation */
32
- DELEGATIONS_REVOKE: (id) => `${exports.AGENTSHIELD_API_BASE}/delegations/${id}/revoke`,
33
- /** Get server configuration */
34
- CONFIG: (projectId) => `${exports.AGENTSHIELD_API_BASE}/projects/${projectId}/config`,
35
- };
36
- /**
37
- * HTTP methods for each endpoint
38
- */
39
- exports.AGENTSHIELD_METHODS = {
40
- PROOFS: 'POST',
41
- DELEGATIONS_VERIFY: 'POST',
42
- DELEGATIONS_GET: 'GET',
43
- DELEGATIONS_CREATE: 'POST',
44
- DELEGATIONS_REVOKE: 'POST',
45
- CONFIG: 'GET',
46
- };
47
- //# sourceMappingURL=endpoints.js.map
@@ -1,13 +0,0 @@
1
- /**
2
- * AgentShield/Bouncer API Contracts
3
- *
4
- * Centralized type definitions, validation schemas, and endpoint constants
5
- * for the AgentShield dashboard API integration.
6
- *
7
- * @package @kya-os/contracts/agentshield-api
8
- */
9
- export type { AgentShieldAPIResponse, ProofSubmissionRequest, ProofSubmissionResponse, VerifyDelegationRequest, VerifyDelegationResponse, VerifyDelegationAPIResponse, DelegationCredential, AgentShieldToolProtection, ToolProtectionConfigResponse, ToolProtectionConfigAPIResponse, CreateDelegationRequest, CreateDelegationResponse, CreateDelegationAPIResponse, RevokeDelegationRequest, RevokeDelegationResponse, RevokeDelegationAPIResponse, } from './types.js';
10
- export { AgentShieldAPIError } from './types.js';
11
- export type { AgentShieldAPIHeaders } from './endpoints.js';
12
- export { agentShieldAPIErrorSchema, agentShieldAPIResponseSchema, proofSubmissionRequestSchema, proofSubmissionResponseSchema, delegationCredentialSchema, verifyDelegationRequestSchema, verifyDelegationResponseSchema, verifyDelegationAPIResponseSchema, agentShieldToolProtectionSchema, toolProtectionConfigResponseSchema, toolProtectionConfigAPIResponseSchema, createDelegationRequestSchema, createDelegationResponseSchema, createDelegationAPIResponseSchema, revokeDelegationRequestSchema, revokeDelegationResponseSchema, revokeDelegationAPIResponseSchema, } from './schemas.js';
13
- export { AGENTSHIELD_API_BASE, AGENTSHIELD_ENDPOINTS, AGENTSHIELD_METHODS, } from './endpoints.js';
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * AgentShield/Bouncer API Contracts
4
- *
5
- * Centralized type definitions, validation schemas, and endpoint constants
6
- * for the AgentShield dashboard API integration.
7
- *
8
- * @package @kya-os/contracts/agentshield-api
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.AGENTSHIELD_METHODS = exports.AGENTSHIELD_ENDPOINTS = exports.AGENTSHIELD_API_BASE = exports.revokeDelegationAPIResponseSchema = exports.revokeDelegationResponseSchema = exports.revokeDelegationRequestSchema = exports.createDelegationAPIResponseSchema = exports.createDelegationResponseSchema = exports.createDelegationRequestSchema = exports.toolProtectionConfigAPIResponseSchema = exports.toolProtectionConfigResponseSchema = exports.agentShieldToolProtectionSchema = exports.verifyDelegationAPIResponseSchema = exports.verifyDelegationResponseSchema = exports.verifyDelegationRequestSchema = exports.delegationCredentialSchema = exports.proofSubmissionResponseSchema = exports.proofSubmissionRequestSchema = exports.agentShieldAPIResponseSchema = exports.agentShieldAPIErrorSchema = exports.AgentShieldAPIError = void 0;
12
- var types_js_1 = require("./types.js");
13
- Object.defineProperty(exports, "AgentShieldAPIError", { enumerable: true, get: function () { return types_js_1.AgentShieldAPIError; } });
14
- // Schema exports
15
- var schemas_js_1 = require("./schemas.js");
16
- Object.defineProperty(exports, "agentShieldAPIErrorSchema", { enumerable: true, get: function () { return schemas_js_1.agentShieldAPIErrorSchema; } });
17
- Object.defineProperty(exports, "agentShieldAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.agentShieldAPIResponseSchema; } });
18
- Object.defineProperty(exports, "proofSubmissionRequestSchema", { enumerable: true, get: function () { return schemas_js_1.proofSubmissionRequestSchema; } });
19
- Object.defineProperty(exports, "proofSubmissionResponseSchema", { enumerable: true, get: function () { return schemas_js_1.proofSubmissionResponseSchema; } });
20
- Object.defineProperty(exports, "delegationCredentialSchema", { enumerable: true, get: function () { return schemas_js_1.delegationCredentialSchema; } });
21
- Object.defineProperty(exports, "verifyDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationRequestSchema; } });
22
- Object.defineProperty(exports, "verifyDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationResponseSchema; } });
23
- Object.defineProperty(exports, "verifyDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationAPIResponseSchema; } });
24
- Object.defineProperty(exports, "agentShieldToolProtectionSchema", { enumerable: true, get: function () { return schemas_js_1.agentShieldToolProtectionSchema; } });
25
- Object.defineProperty(exports, "toolProtectionConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.toolProtectionConfigResponseSchema; } });
26
- Object.defineProperty(exports, "toolProtectionConfigAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.toolProtectionConfigAPIResponseSchema; } });
27
- Object.defineProperty(exports, "createDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationRequestSchema; } });
28
- Object.defineProperty(exports, "createDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationResponseSchema; } });
29
- Object.defineProperty(exports, "createDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationAPIResponseSchema; } });
30
- Object.defineProperty(exports, "revokeDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationRequestSchema; } });
31
- Object.defineProperty(exports, "revokeDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationResponseSchema; } });
32
- Object.defineProperty(exports, "revokeDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationAPIResponseSchema; } });
33
- // Endpoint exports
34
- var endpoints_js_1 = require("./endpoints.js");
35
- Object.defineProperty(exports, "AGENTSHIELD_API_BASE", { enumerable: true, get: function () { return endpoints_js_1.AGENTSHIELD_API_BASE; } });
36
- Object.defineProperty(exports, "AGENTSHIELD_ENDPOINTS", { enumerable: true, get: function () { return endpoints_js_1.AGENTSHIELD_ENDPOINTS; } });
37
- Object.defineProperty(exports, "AGENTSHIELD_METHODS", { enumerable: true, get: function () { return endpoints_js_1.AGENTSHIELD_METHODS; } });