@kya-os/contracts 1.3.1-canary.0 → 1.3.1-canary.2

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 (55) hide show
  1. package/dist/cli.d.ts +48 -10
  2. package/dist/cli.js +18 -6
  3. package/dist/delegation/schemas.d.ts +4330 -29
  4. package/dist/delegation/schemas.js +248 -2
  5. package/dist/did/index.d.ts +1 -0
  6. package/dist/did/index.js +1 -0
  7. package/dist/did/schemas.d.ts +113 -0
  8. package/dist/did/schemas.js +173 -0
  9. package/dist/did/types.d.ts +1 -1
  10. package/dist/handshake.d.ts +2 -2
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +3 -0
  13. package/dist/proof.d.ts +238 -0
  14. package/dist/proof.js +32 -1
  15. package/dist/registry.d.ts +15 -15
  16. package/dist/registry.js +3 -2
  17. package/dist/test.d.ts +19 -19
  18. package/dist/test.js +5 -5
  19. package/dist/utils/validation.d.ts +1 -1
  20. package/dist/utils/validation.js +1 -1
  21. package/dist/verifier.d.ts +31 -17
  22. package/dist/verifier.js +18 -2
  23. package/package.json +3 -5
  24. package/dist/cli.d.ts.map +0 -1
  25. package/dist/delegation/constraints.d.ts.map +0 -1
  26. package/dist/delegation/index.d.ts.map +0 -1
  27. package/dist/delegation/schemas.d.ts.map +0 -1
  28. package/dist/did/index.d.ts.map +0 -1
  29. package/dist/did/resolve-contract.d.ts.map +0 -1
  30. package/dist/did/types.d.ts.map +0 -1
  31. package/dist/env/constants.d.ts.map +0 -1
  32. package/dist/env/index.d.ts.map +0 -1
  33. package/dist/handshake.d.ts.map +0 -1
  34. package/dist/index.d.ts.map +0 -1
  35. package/dist/proof/index.d.ts.map +0 -1
  36. package/dist/proof/proof-record.d.ts.map +0 -1
  37. package/dist/proof/signing-spec.d.ts.map +0 -1
  38. package/dist/proof.d.ts.map +0 -1
  39. package/dist/registry.d.ts.map +0 -1
  40. package/dist/runtime/errors.d.ts.map +0 -1
  41. package/dist/runtime/headers.d.ts.map +0 -1
  42. package/dist/runtime/index.d.ts.map +0 -1
  43. package/dist/test.d.ts.map +0 -1
  44. package/dist/tlkrc/index.d.ts.map +0 -1
  45. package/dist/tlkrc/rotation.d.ts.map +0 -1
  46. package/dist/utils/validation.d.ts.map +0 -1
  47. package/dist/vc/index.d.ts.map +0 -1
  48. package/dist/vc/schemas.d.ts.map +0 -1
  49. package/dist/vc/statuslist.d.ts.map +0 -1
  50. package/dist/verifier.d.ts.map +0 -1
  51. package/schemas/cli/register-output/v1.0.0.json +0 -69
  52. package/schemas/proof/v1.0.0.json +0 -80
  53. package/schemas/registry/receipt-v1.0.0.json +0 -60
  54. package/schemas/verifier/verify-page/v1.0.0.json +0 -94
  55. package/schemas/well-known/agent/v1.0.0.json +0 -49
@@ -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
- }