@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.
- package/dist/cli.d.ts +48 -10
- package/dist/cli.js +18 -6
- package/dist/delegation/schemas.d.ts +4330 -29
- package/dist/delegation/schemas.js +248 -2
- package/dist/did/index.d.ts +1 -0
- package/dist/did/index.js +1 -0
- package/dist/did/schemas.d.ts +113 -0
- package/dist/did/schemas.js +173 -0
- package/dist/did/types.d.ts +1 -1
- package/dist/handshake.d.ts +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/proof.d.ts +238 -0
- package/dist/proof.js +32 -1
- package/dist/registry.d.ts +15 -15
- package/dist/registry.js +3 -2
- package/dist/test.d.ts +19 -19
- package/dist/test.js +5 -5
- package/dist/utils/validation.d.ts +1 -1
- package/dist/utils/validation.js +1 -1
- package/dist/verifier.d.ts +31 -17
- package/dist/verifier.js +18 -2
- package/package.json +3 -5
- package/dist/cli.d.ts.map +0 -1
- package/dist/delegation/constraints.d.ts.map +0 -1
- package/dist/delegation/index.d.ts.map +0 -1
- package/dist/delegation/schemas.d.ts.map +0 -1
- package/dist/did/index.d.ts.map +0 -1
- package/dist/did/resolve-contract.d.ts.map +0 -1
- package/dist/did/types.d.ts.map +0 -1
- package/dist/env/constants.d.ts.map +0 -1
- package/dist/env/index.d.ts.map +0 -1
- package/dist/handshake.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/proof/index.d.ts.map +0 -1
- package/dist/proof/proof-record.d.ts.map +0 -1
- package/dist/proof/signing-spec.d.ts.map +0 -1
- package/dist/proof.d.ts.map +0 -1
- package/dist/registry.d.ts.map +0 -1
- package/dist/runtime/errors.d.ts.map +0 -1
- package/dist/runtime/headers.d.ts.map +0 -1
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/test.d.ts.map +0 -1
- package/dist/tlkrc/index.d.ts.map +0 -1
- package/dist/tlkrc/rotation.d.ts.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/vc/index.d.ts.map +0 -1
- package/dist/vc/schemas.d.ts.map +0 -1
- package/dist/vc/statuslist.d.ts.map +0 -1
- package/dist/verifier.d.ts.map +0 -1
- package/schemas/cli/register-output/v1.0.0.json +0 -69
- package/schemas/proof/v1.0.0.json +0 -80
- package/schemas/registry/receipt-v1.0.0.json +0 -60
- package/schemas/verifier/verify-page/v1.0.0.json +0 -94
- 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
|
-
}
|