@kya-os/contracts 1.5.3-canary.2 → 1.5.3-canary.21

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 (90) hide show
  1. package/.turbo/turbo-build.log +17 -0
  2. package/.turbo/turbo-test$colon$coverage.log +85 -0
  3. package/.turbo/turbo-test.log +32 -0
  4. package/coverage/coverage-final.json +38 -0
  5. package/dist/agentshield-api/admin-schemas.d.ts +2 -2
  6. package/dist/agentshield-api/index.d.ts +1 -1
  7. package/dist/agentshield-api/schemas.d.ts +150 -48
  8. package/dist/agentshield-api/schemas.js +32 -4
  9. package/dist/agentshield-api/types.d.ts +31 -4
  10. package/dist/audit/index.d.ts +193 -0
  11. package/dist/audit/index.js +100 -0
  12. package/dist/config/identity.d.ts +205 -2
  13. package/dist/config/identity.js +28 -0
  14. package/dist/config/index.d.ts +2 -1
  15. package/dist/config/tool-context.d.ts +34 -0
  16. package/dist/config/tool-context.js +13 -0
  17. package/dist/consent/schemas.d.ts +119 -93
  18. package/dist/consent/schemas.js +111 -64
  19. package/dist/dashboard-config/schemas.d.ts +2248 -992
  20. package/dist/handshake.d.ts +14 -14
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +2 -0
  23. package/dist/tool-protection/index.d.ts +490 -14
  24. package/dist/tool-protection/index.js +89 -2
  25. package/dist/verifier/index.d.ts +1 -0
  26. package/dist/verifier/index.js +18 -0
  27. package/dist/well-known/index.d.ts +2 -2
  28. package/package.json +43 -122
  29. package/schemas/cli/register-output/v1.0.0.json +69 -0
  30. package/schemas/identity/v1.0.0.json +46 -0
  31. package/schemas/proof/v1.0.0.json +80 -0
  32. package/schemas/registry/receipt-v1.0.0.json +60 -0
  33. package/schemas/verifier/verify-page/v1.0.0.json +94 -0
  34. package/schemas/well-known/agent/v1.0.0.json +67 -0
  35. package/schemas/well-known/did/v1.0.0.json +174 -0
  36. package/scripts/emit-schemas.js +11 -0
  37. package/src/agentshield-api/admin-schemas.ts +31 -0
  38. package/src/agentshield-api/admin-types.ts +47 -0
  39. package/src/agentshield-api/endpoints.ts +60 -0
  40. package/src/agentshield-api/index.ts +70 -0
  41. package/src/agentshield-api/schemas.ts +304 -0
  42. package/src/agentshield-api/types.ts +317 -0
  43. package/src/audit/index.ts +128 -0
  44. package/src/cli.ts +156 -0
  45. package/src/config/base.ts +107 -0
  46. package/src/config/builder.ts +97 -0
  47. package/src/config/delegation.ts +232 -0
  48. package/src/config/identity.ts +252 -0
  49. package/src/config/index.ts +78 -0
  50. package/src/config/proofing.ts +138 -0
  51. package/src/config/tool-context.ts +41 -0
  52. package/src/config/tool-protection.ts +174 -0
  53. package/src/consent/index.ts +32 -0
  54. package/src/consent/schemas.ts +334 -0
  55. package/src/consent/types.ts +199 -0
  56. package/src/dashboard-config/default-config.json +86 -0
  57. package/src/dashboard-config/default-config.ts +266 -0
  58. package/src/dashboard-config/index.ts +48 -0
  59. package/src/dashboard-config/schemas.ts +286 -0
  60. package/src/dashboard-config/types.ts +404 -0
  61. package/src/delegation/constraints.ts +267 -0
  62. package/src/delegation/index.ts +8 -0
  63. package/src/delegation/schemas.ts +595 -0
  64. package/src/did/index.ts +9 -0
  65. package/src/did/resolve-contract.ts +255 -0
  66. package/src/did/schemas.ts +190 -0
  67. package/src/did/types.ts +224 -0
  68. package/src/env/constants.ts +70 -0
  69. package/src/env/index.ts +5 -0
  70. package/src/handshake.ts +125 -0
  71. package/src/index.ts +45 -0
  72. package/src/proof/index.ts +31 -0
  73. package/src/proof/proof-record.ts +163 -0
  74. package/src/proof/signing-spec.ts +146 -0
  75. package/src/proof.ts +99 -0
  76. package/src/registry.ts +146 -0
  77. package/src/runtime/errors.ts +153 -0
  78. package/src/runtime/headers.ts +136 -0
  79. package/src/runtime/index.ts +6 -0
  80. package/src/test.ts +143 -0
  81. package/src/tlkrc/index.ts +5 -0
  82. package/src/tlkrc/rotation.ts +153 -0
  83. package/src/tool-protection/index.ts +406 -0
  84. package/src/utils/validation.ts +93 -0
  85. package/src/vc/index.ts +8 -0
  86. package/src/vc/schemas.ts +277 -0
  87. package/src/vc/statuslist.ts +279 -0
  88. package/src/verifier/index.ts +2 -0
  89. package/src/verifier.ts +92 -0
  90. package/src/well-known/index.ts +237 -0
@@ -12,15 +12,15 @@ export declare const MCPClientInfoSchema: z.ZodObject<{
12
12
  persistentId: z.ZodOptional<z.ZodString>;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  name: string;
15
- title?: string | undefined;
16
15
  version?: string | undefined;
16
+ title?: string | undefined;
17
17
  platform?: string | undefined;
18
18
  vendor?: string | undefined;
19
19
  persistentId?: string | undefined;
20
20
  }, {
21
21
  name: string;
22
- title?: string | undefined;
23
22
  version?: string | undefined;
23
+ title?: string | undefined;
24
24
  platform?: string | undefined;
25
25
  vendor?: string | undefined;
26
26
  persistentId?: string | undefined;
@@ -39,8 +39,8 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
39
39
  }, "strip", z.ZodTypeAny, {
40
40
  name: string;
41
41
  clientId: string;
42
- title?: string | undefined;
43
42
  version?: string | undefined;
43
+ title?: string | undefined;
44
44
  platform?: string | undefined;
45
45
  vendor?: string | undefined;
46
46
  persistentId?: string | undefined;
@@ -49,8 +49,8 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
49
49
  }, {
50
50
  name: string;
51
51
  clientId: string;
52
- title?: string | undefined;
53
52
  version?: string | undefined;
53
+ title?: string | undefined;
54
54
  platform?: string | undefined;
55
55
  vendor?: string | undefined;
56
56
  persistentId?: string | undefined;
@@ -73,16 +73,16 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
73
73
  clientId: z.ZodOptional<z.ZodString>;
74
74
  }, "strip", z.ZodTypeAny, {
75
75
  name: string;
76
- title?: string | undefined;
77
76
  version?: string | undefined;
77
+ title?: string | undefined;
78
78
  platform?: string | undefined;
79
79
  vendor?: string | undefined;
80
80
  persistentId?: string | undefined;
81
81
  clientId?: string | undefined;
82
82
  }, {
83
83
  name: string;
84
- title?: string | undefined;
85
84
  version?: string | undefined;
85
+ title?: string | undefined;
86
86
  platform?: string | undefined;
87
87
  vendor?: string | undefined;
88
88
  persistentId?: string | undefined;
@@ -97,8 +97,8 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
97
97
  agentDid?: string | undefined;
98
98
  clientInfo?: {
99
99
  name: string;
100
- title?: string | undefined;
101
100
  version?: string | undefined;
101
+ title?: string | undefined;
102
102
  platform?: string | undefined;
103
103
  vendor?: string | undefined;
104
104
  persistentId?: string | undefined;
@@ -113,8 +113,8 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
113
113
  agentDid?: string | undefined;
114
114
  clientInfo?: {
115
115
  name: string;
116
- title?: string | undefined;
117
116
  version?: string | undefined;
117
+ title?: string | undefined;
118
118
  platform?: string | undefined;
119
119
  vendor?: string | undefined;
120
120
  persistentId?: string | undefined;
@@ -149,8 +149,8 @@ export declare const SessionContextSchema: z.ZodObject<{
149
149
  }, "strip", z.ZodTypeAny, {
150
150
  name: string;
151
151
  clientId: string;
152
- title?: string | undefined;
153
152
  version?: string | undefined;
153
+ title?: string | undefined;
154
154
  platform?: string | undefined;
155
155
  vendor?: string | undefined;
156
156
  persistentId?: string | undefined;
@@ -159,8 +159,8 @@ export declare const SessionContextSchema: z.ZodObject<{
159
159
  }, {
160
160
  name: string;
161
161
  clientId: string;
162
- title?: string | undefined;
163
162
  version?: string | undefined;
163
+ title?: string | undefined;
164
164
  platform?: string | undefined;
165
165
  vendor?: string | undefined;
166
166
  persistentId?: string | undefined;
@@ -168,19 +168,19 @@ export declare const SessionContextSchema: z.ZodObject<{
168
168
  capabilities?: Record<string, unknown> | undefined;
169
169
  }>>;
170
170
  }, "strip", z.ZodTypeAny, {
171
+ createdAt: number;
171
172
  nonce: string;
172
173
  audience: string;
173
174
  timestamp: number;
174
175
  sessionId: string;
175
- createdAt: number;
176
176
  lastActivity: number;
177
177
  ttlMinutes: number;
178
178
  agentDid?: string | undefined;
179
179
  clientInfo?: {
180
180
  name: string;
181
181
  clientId: string;
182
- title?: string | undefined;
183
182
  version?: string | undefined;
183
+ title?: string | undefined;
184
184
  platform?: string | undefined;
185
185
  vendor?: string | undefined;
186
186
  persistentId?: string | undefined;
@@ -191,18 +191,18 @@ export declare const SessionContextSchema: z.ZodObject<{
191
191
  clientDid?: string | undefined;
192
192
  userDid?: string | undefined;
193
193
  }, {
194
+ createdAt: number;
194
195
  nonce: string;
195
196
  audience: string;
196
197
  timestamp: number;
197
198
  sessionId: string;
198
- createdAt: number;
199
199
  lastActivity: number;
200
200
  agentDid?: string | undefined;
201
201
  clientInfo?: {
202
202
  name: string;
203
203
  clientId: string;
204
- title?: string | undefined;
205
204
  version?: string | undefined;
205
+ title?: string | undefined;
206
206
  platform?: string | undefined;
207
207
  vendor?: string | undefined;
208
208
  persistentId?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -21,5 +21,6 @@ export * from "./test.js";
21
21
  export * from "./utils/validation.js";
22
22
  export * from "./vc/index.js";
23
23
  export * from "./delegation/index.js";
24
+ export * from "./audit/index.js";
24
25
  export declare const CONTRACTS_VERSION = "1.2.1";
25
26
  export declare const SUPPORTED_XMCP_I_VERSION = "^1.0.0";
package/dist/index.js CHANGED
@@ -40,6 +40,8 @@ __exportStar(require("./utils/validation.js"), exports);
40
40
  // W3C VC and Delegation exports (for mcp-i-core compatibility)
41
41
  __exportStar(require("./vc/index.js"), exports);
42
42
  __exportStar(require("./delegation/index.js"), exports);
43
+ // Audit types (platform-agnostic)
44
+ __exportStar(require("./audit/index.js"), exports);
43
45
  // Version information
44
46
  exports.CONTRACTS_VERSION = "1.2.1";
45
47
  exports.SUPPORTED_XMCP_I_VERSION = "^1.0.0";