@kya-os/contracts 1.3.0 → 1.3.1-canary.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.
Files changed (87) hide show
  1. package/dist/cli.d.ts +9 -9
  2. package/dist/cli.js +5 -5
  3. package/dist/handshake.d.ts +6 -0
  4. package/dist/handshake.js +2 -0
  5. package/dist/index.d.ts +2 -0
  6. package/dist/index.js +3 -0
  7. package/dist/proof.d.ts +8 -1
  8. package/dist/proof.js +10 -3
  9. package/dist/registry.d.ts +15 -15
  10. package/dist/registry.js +3 -2
  11. package/dist/test.d.ts +19 -19
  12. package/dist/test.js +5 -5
  13. package/dist/utils/validation.d.ts +1 -1
  14. package/dist/utils/validation.js +1 -1
  15. package/dist/verifier.d.ts +39 -25
  16. package/dist/verifier.js +18 -2
  17. package/package.json +3 -5
  18. package/dist/cli.d.ts.map +0 -1
  19. package/dist/delegation/constraints.d.ts +0 -982
  20. package/dist/delegation/constraints.d.ts.map +0 -1
  21. package/dist/delegation/constraints.js +0 -205
  22. package/dist/delegation/index.d.ts +0 -8
  23. package/dist/delegation/index.d.ts.map +0 -1
  24. package/dist/delegation/index.js +0 -24
  25. package/dist/delegation/schemas.d.ts +0 -3787
  26. package/dist/delegation/schemas.d.ts.map +0 -1
  27. package/dist/delegation/schemas.js +0 -230
  28. package/dist/did/index.d.ts +0 -8
  29. package/dist/did/index.d.ts.map +0 -1
  30. package/dist/did/index.js +0 -24
  31. package/dist/did/resolve-contract.d.ts +0 -220
  32. package/dist/did/resolve-contract.d.ts.map +0 -1
  33. package/dist/did/resolve-contract.js +0 -32
  34. package/dist/did/types.d.ts +0 -164
  35. package/dist/did/types.d.ts.map +0 -1
  36. package/dist/did/types.js +0 -71
  37. package/dist/env/constants.d.ts +0 -58
  38. package/dist/env/constants.d.ts.map +0 -1
  39. package/dist/env/constants.js +0 -60
  40. package/dist/env/index.d.ts +0 -5
  41. package/dist/env/index.d.ts.map +0 -1
  42. package/dist/env/index.js +0 -21
  43. package/dist/handshake.d.ts.map +0 -1
  44. package/dist/index.d.ts.map +0 -1
  45. package/dist/proof/index.d.ts +0 -9
  46. package/dist/proof/index.d.ts.map +0 -1
  47. package/dist/proof/index.js +0 -25
  48. package/dist/proof/proof-record.d.ts +0 -838
  49. package/dist/proof/proof-record.d.ts.map +0 -1
  50. package/dist/proof/proof-record.js +0 -134
  51. package/dist/proof/signing-spec.d.ts +0 -147
  52. package/dist/proof/signing-spec.d.ts.map +0 -1
  53. package/dist/proof/signing-spec.js +0 -123
  54. package/dist/proof.d.ts.map +0 -1
  55. package/dist/registry.d.ts.map +0 -1
  56. package/dist/runtime/errors.d.ts +0 -348
  57. package/dist/runtime/errors.d.ts.map +0 -1
  58. package/dist/runtime/errors.js +0 -120
  59. package/dist/runtime/headers.d.ts +0 -84
  60. package/dist/runtime/headers.d.ts.map +0 -1
  61. package/dist/runtime/headers.js +0 -82
  62. package/dist/runtime/index.d.ts +0 -6
  63. package/dist/runtime/index.d.ts.map +0 -1
  64. package/dist/runtime/index.js +0 -22
  65. package/dist/test.d.ts.map +0 -1
  66. package/dist/tlkrc/index.d.ts +0 -5
  67. package/dist/tlkrc/index.d.ts.map +0 -1
  68. package/dist/tlkrc/index.js +0 -21
  69. package/dist/tlkrc/rotation.d.ts +0 -246
  70. package/dist/tlkrc/rotation.d.ts.map +0 -1
  71. package/dist/tlkrc/rotation.js +0 -127
  72. package/dist/utils/validation.d.ts.map +0 -1
  73. package/dist/vc/index.d.ts +0 -8
  74. package/dist/vc/index.d.ts.map +0 -1
  75. package/dist/vc/index.js +0 -24
  76. package/dist/vc/schemas.d.ts +0 -2484
  77. package/dist/vc/schemas.d.ts.map +0 -1
  78. package/dist/vc/schemas.js +0 -225
  79. package/dist/vc/statuslist.d.ts +0 -494
  80. package/dist/vc/statuslist.d.ts.map +0 -1
  81. package/dist/vc/statuslist.js +0 -133
  82. package/dist/verifier.d.ts.map +0 -1
  83. package/schemas/cli/register-output/v1.0.0.json +0 -69
  84. package/schemas/proof/v1.0.0.json +0 -80
  85. package/schemas/registry/receipt-v1.0.0.json +0 -60
  86. package/schemas/verifier/verify-page/v1.0.0.json +0 -94
  87. package/schemas/well-known/agent/v1.0.0.json +0 -49
@@ -1,69 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://schemas.kya-os.ai/xmcp-i/cli/register-output/v1.0.0",
4
- "title": "XMCP-I CLI Register Output",
5
- "description": "Schema for mcpi register command JSON output",
6
- "type": "object",
7
- "properties": {
8
- "agentDID": {
9
- "type": "string",
10
- "description": "Agent DID",
11
- "minLength": 1
12
- },
13
- "agentURL": {
14
- "type": "string",
15
- "format": "uri",
16
- "description": "Agent URL"
17
- },
18
- "agentId": {
19
- "type": "string",
20
- "description": "Agent identifier",
21
- "minLength": 1
22
- },
23
- "agentSlug": {
24
- "type": "string",
25
- "description": "Agent slug",
26
- "minLength": 1
27
- },
28
- "claimURL": {
29
- "type": "string",
30
- "format": "uri",
31
- "description": "Claim URL (when draft)"
32
- },
33
- "verificationEndpoint": {
34
- "type": "string",
35
- "format": "uri",
36
- "description": "Verification endpoint URL"
37
- },
38
- "conformanceCapabilities": {
39
- "type": "array",
40
- "items": {
41
- "type": "string",
42
- "enum": ["handshake", "signing", "verification"]
43
- },
44
- "minItems": 3,
45
- "maxItems": 3,
46
- "description": "Exactly the three MCP-I capabilities"
47
- },
48
- "mirrorStatus": {
49
- "type": "string",
50
- "enum": ["pending", "success", "error"],
51
- "description": "MCP Registry mirror status"
52
- },
53
- "mirrorLink": {
54
- "type": "string",
55
- "format": "uri",
56
- "description": "MCP Registry mirror link"
57
- }
58
- },
59
- "required": [
60
- "agentDID",
61
- "agentURL",
62
- "agentId",
63
- "agentSlug",
64
- "verificationEndpoint",
65
- "conformanceCapabilities",
66
- "mirrorStatus"
67
- ],
68
- "additionalProperties": false
69
- }
@@ -1,80 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://schemas.kya-os.ai/mcpi/proof/v1.0.0",
4
- "title": "XMCP-I Detached Proof",
5
- "description": "Schema for detached proofs in XMCP-I protocol",
6
- "type": "object",
7
- "properties": {
8
- "jws": {
9
- "type": "string",
10
- "description": "Compact JWS format detached signature",
11
- "minLength": 1
12
- },
13
- "meta": {
14
- "type": "object",
15
- "properties": {
16
- "did": {
17
- "type": "string",
18
- "description": "Agent DID",
19
- "minLength": 1
20
- },
21
- "kid": {
22
- "type": "string",
23
- "description": "Key identifier",
24
- "minLength": 1
25
- },
26
- "ts": {
27
- "type": "integer",
28
- "description": "Unix timestamp",
29
- "minimum": 1
30
- },
31
- "nonce": {
32
- "type": "string",
33
- "description": "Session nonce",
34
- "minLength": 1
35
- },
36
- "audience": {
37
- "type": "string",
38
- "description": "Intended audience",
39
- "minLength": 1
40
- },
41
- "sessionId": {
42
- "type": "string",
43
- "description": "Session identifier",
44
- "minLength": 1
45
- },
46
- "requestHash": {
47
- "type": "string",
48
- "pattern": "^sha256:[a-f0-9]{64}$",
49
- "description": "SHA-256 hash of canonical request"
50
- },
51
- "responseHash": {
52
- "type": "string",
53
- "pattern": "^sha256:[a-f0-9]{64}$",
54
- "description": "SHA-256 hash of canonical response"
55
- },
56
- "scopeId": {
57
- "type": "string",
58
- "description": "Optional scope identifier"
59
- },
60
- "delegationRef": {
61
- "type": "string",
62
- "description": "Optional delegation reference"
63
- }
64
- },
65
- "required": [
66
- "did",
67
- "kid",
68
- "ts",
69
- "nonce",
70
- "audience",
71
- "sessionId",
72
- "requestHash",
73
- "responseHash"
74
- ],
75
- "additionalProperties": false
76
- }
77
- },
78
- "required": ["jws", "meta"],
79
- "additionalProperties": false
80
- }
@@ -1,60 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://schemas.kya-os.ai/mcpi/receipt/v1.0.0.json",
4
- "title": "XMCP-I Receipt",
5
- "description": "Receipt object returned by KTA for verifiable operations",
6
- "type": "object",
7
- "properties": {
8
- "$schema": {
9
- "type": "string",
10
- "const": "https://schemas.kya-os.ai/mcpi/receipt/v1.0.0.json"
11
- },
12
- "ref": {
13
- "type": "string",
14
- "minLength": 1,
15
- "description": "Unique reference identifier for the receipt"
16
- },
17
- "contentHash": {
18
- "type": "string",
19
- "pattern": "^sha256:[a-f0-9]{64}$",
20
- "description": "SHA-256 hash of the content with sha256: prefix"
21
- },
22
- "action": {
23
- "type": "string",
24
- "enum": ["issue", "revoke"],
25
- "description": "The action performed (issue or revoke)"
26
- },
27
- "ts": {
28
- "type": "integer",
29
- "minimum": 1,
30
- "description": "Unix timestamp when the action was performed"
31
- },
32
- "logIndex": {
33
- "type": "integer",
34
- "minimum": 0,
35
- "description": "Index in the KTA log for this receipt"
36
- },
37
- "logRoot": {
38
- "type": "string",
39
- "minLength": 1,
40
- "description": "Merkle log root hash for verification"
41
- },
42
- "inclusionProof": {
43
- "type": "array",
44
- "items": {
45
- "type": "string"
46
- },
47
- "description": "Merkle inclusion proof for verifying the receipt against the log root"
48
- }
49
- },
50
- "required": [
51
- "ref",
52
- "contentHash",
53
- "action",
54
- "ts",
55
- "logIndex",
56
- "logRoot",
57
- "inclusionProof"
58
- ],
59
- "additionalProperties": false
60
- }
@@ -1,94 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://schemas.kya-os.ai/xmcp-i/verifier/verify-page/v1.0.0",
4
- "title": "XMCP-I Verify Page Payload",
5
- "description": "Schema for /verify debug page payload",
6
- "type": "object",
7
- "properties": {
8
- "canonicalHashes": {
9
- "type": "object",
10
- "properties": {
11
- "requestHash": {
12
- "type": "string",
13
- "pattern": "^sha256:[a-f0-9]{64}$",
14
- "description": "SHA-256 hash of canonical request"
15
- },
16
- "responseHash": {
17
- "type": "string",
18
- "pattern": "^sha256:[a-f0-9]{64}$",
19
- "description": "SHA-256 hash of canonical response"
20
- }
21
- },
22
- "required": ["requestHash", "responseHash"],
23
- "additionalProperties": false
24
- },
25
- "proof": {
26
- "type": "object",
27
- "properties": {
28
- "jws": {
29
- "type": "string",
30
- "description": "Compact JWS format detached signature",
31
- "minLength": 1
32
- },
33
- "meta": {
34
- "$ref": "https://schemas.kya-os.ai/mcpi/proof/v1.0.0#/properties/meta"
35
- }
36
- },
37
- "required": ["jws", "meta"],
38
- "additionalProperties": false
39
- },
40
- "didDocumentLink": {
41
- "type": "string",
42
- "format": "uri",
43
- "description": "Link to DID document"
44
- },
45
- "ktaURL": {
46
- "type": "string",
47
- "format": "uri",
48
- "description": "Know-That-AI URL"
49
- },
50
- "mcpMirrorStatus": {
51
- "type": "string",
52
- "enum": ["pending", "success", "error"],
53
- "description": "MCP Registry mirror status"
54
- },
55
- "protocolCapabilities": {
56
- "type": "array",
57
- "items": {
58
- "type": "string",
59
- "enum": ["handshake", "signing", "verification"]
60
- },
61
- "minItems": 3,
62
- "maxItems": 3,
63
- "description": "Advertised protocol capabilities"
64
- },
65
- "localVerificationResult": {
66
- "type": "object",
67
- "properties": {
68
- "valid": {
69
- "type": "boolean",
70
- "description": "Local verification result"
71
- },
72
- "errors": {
73
- "type": "array",
74
- "items": {
75
- "type": "string"
76
- },
77
- "description": "Validation errors if any"
78
- }
79
- },
80
- "required": ["valid"],
81
- "additionalProperties": false
82
- }
83
- },
84
- "required": [
85
- "canonicalHashes",
86
- "proof",
87
- "didDocumentLink",
88
- "ktaURL",
89
- "mcpMirrorStatus",
90
- "protocolCapabilities",
91
- "localVerificationResult"
92
- ],
93
- "additionalProperties": false
94
- }
@@ -1,49 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://schemas.kya-os.ai/xmcp-i/well-known/agent/v1.0.0",
4
- "title": "XMCP-I Agent Well-Known Document",
5
- "description": "Schema for /.well-known/agent.json endpoint",
6
- "type": "object",
7
- "properties": {
8
- "id": {
9
- "type": "string",
10
- "description": "Agent DID",
11
- "minLength": 1
12
- },
13
- "capabilities": {
14
- "type": "object",
15
- "properties": {
16
- "mcp-i": {
17
- "type": "array",
18
- "items": {
19
- "type": "string",
20
- "enum": ["handshake", "signing", "verification"]
21
- },
22
- "minItems": 3,
23
- "maxItems": 3,
24
- "description": "Exactly the three MCP-I capabilities"
25
- }
26
- },
27
- "required": ["mcp-i"],
28
- "additionalProperties": true
29
- },
30
- "registry": {
31
- "type": "object",
32
- "properties": {
33
- "kta": {
34
- "type": "string",
35
- "format": "uri",
36
- "description": "Know-That-AI registry URL"
37
- },
38
- "mcp": {
39
- "type": "string",
40
- "format": "uri",
41
- "description": "MCP Registry URL"
42
- }
43
- },
44
- "additionalProperties": true
45
- }
46
- },
47
- "required": ["id", "capabilities"],
48
- "additionalProperties": true
49
- }