@kya-os/contracts 1.9.0 → 1.9.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 (320) hide show
  1. package/dist/agent-deployment-utils.d.ts +0 -1
  2. package/dist/agent-deployment-utils.js +0 -1
  3. package/dist/agent-deployment.d.ts +0 -1
  4. package/dist/agent-deployment.js +0 -1
  5. package/dist/agentshield-api/admin-schemas.d.ts +0 -1
  6. package/dist/agentshield-api/admin-schemas.js +0 -1
  7. package/dist/agentshield-api/admin-types.d.ts +0 -1
  8. package/dist/agentshield-api/admin-types.js +0 -1
  9. package/dist/agentshield-api/endpoints.d.ts +0 -1
  10. package/dist/agentshield-api/endpoints.js +0 -1
  11. package/dist/agentshield-api/index.d.ts +0 -1
  12. package/dist/agentshield-api/schemas.d.ts +186 -186
  13. package/dist/agentshield-api/types.d.ts +0 -1
  14. package/dist/audit/index.d.ts +21 -21
  15. package/dist/cli.d.ts +0 -1
  16. package/dist/cli.js +0 -1
  17. package/dist/compute-binding.d.ts +0 -1
  18. package/dist/compute-binding.js +0 -1
  19. package/dist/compute.d.ts +19 -19
  20. package/dist/config/base.d.ts +0 -1
  21. package/dist/config/base.js +0 -1
  22. package/dist/config/builder.d.ts +0 -1
  23. package/dist/config/builder.js +0 -1
  24. package/dist/config/client-messages.d.ts +0 -1
  25. package/dist/config/client-messages.js +0 -1
  26. package/dist/config/delegation.d.ts +0 -1
  27. package/dist/config/delegation.js +0 -1
  28. package/dist/config/identity.d.ts +0 -1
  29. package/dist/config/identity.js +0 -1
  30. package/dist/config/index.d.ts +0 -1
  31. package/dist/config/index.js +0 -1
  32. package/dist/config/proofing.d.ts +0 -1
  33. package/dist/config/proofing.js +0 -1
  34. package/dist/config/tool-context.d.ts +0 -1
  35. package/dist/config/tool-context.js +0 -1
  36. package/dist/config/tool-protection.d.ts +0 -1
  37. package/dist/consent/schemas.d.ts +0 -1
  38. package/dist/consent/schemas.js +0 -1
  39. package/dist/consent/types.d.ts +0 -1
  40. package/dist/consent/types.js +0 -1
  41. package/dist/dashboard-config/default-config.d.ts +0 -1
  42. package/dist/dashboard-config/index.d.ts +0 -1
  43. package/dist/dashboard-config/schemas.d.ts +2436 -2436
  44. package/dist/dashboard-config/types.d.ts +0 -1
  45. package/dist/delegation/constraints.d.ts +0 -1
  46. package/dist/delegation/constraints.js +0 -1
  47. package/dist/delegation/index.d.ts +0 -1
  48. package/dist/delegation/index.js +0 -1
  49. package/dist/delegation/schemas.d.ts +0 -1
  50. package/dist/delegation/schemas.js +0 -1
  51. package/dist/deploy/index.d.ts +0 -1
  52. package/dist/deploy/index.js +0 -1
  53. package/dist/deploy/schemas.d.ts +0 -1
  54. package/dist/deploy/schemas.js +0 -1
  55. package/dist/deploy/types.d.ts +0 -1
  56. package/dist/deploy/types.js +0 -1
  57. package/dist/did/index.d.ts +0 -1
  58. package/dist/did/index.js +0 -1
  59. package/dist/did/resolve-contract.d.ts +0 -1
  60. package/dist/did/resolve-contract.js +0 -1
  61. package/dist/did/schemas.d.ts +0 -1
  62. package/dist/did/schemas.js +0 -1
  63. package/dist/did/types.d.ts +0 -1
  64. package/dist/did/types.js +0 -1
  65. package/dist/env/constants.d.ts +0 -1
  66. package/dist/env/constants.js +0 -1
  67. package/dist/env/index.d.ts +0 -1
  68. package/dist/env/index.js +0 -1
  69. package/dist/gateway/agents.d.ts +0 -1
  70. package/dist/gateway/agents.js +0 -1
  71. package/dist/gateway/cron.d.ts +0 -1
  72. package/dist/gateway/cron.js +0 -1
  73. package/dist/gateway/index.d.ts +0 -1
  74. package/dist/gateway/index.js +0 -1
  75. package/dist/gateway/sessions.d.ts +0 -1
  76. package/dist/gateway/sessions.js +0 -1
  77. package/dist/gateway/skills.d.ts +0 -1
  78. package/dist/gateway/skills.js +0 -1
  79. package/dist/gateway/usage.d.ts +0 -1
  80. package/dist/gateway/usage.js +0 -1
  81. package/dist/handshake.d.ts +24 -24
  82. package/dist/identity/index.d.ts +0 -1
  83. package/dist/identity/index.js +0 -1
  84. package/dist/identity/schemas.d.ts +0 -1
  85. package/dist/identity/schemas.js +0 -1
  86. package/dist/index.d.ts +0 -1
  87. package/dist/molti/admin-ws.d.ts +0 -1
  88. package/dist/molti/admin-ws.js +0 -1
  89. package/dist/molti/index.d.ts +0 -1
  90. package/dist/molti/index.js +0 -1
  91. package/dist/molti/schemas.d.ts +0 -1
  92. package/dist/molti/schemas.js +0 -1
  93. package/dist/molti/types.d.ts +0 -1
  94. package/dist/molti/types.js +0 -1
  95. package/dist/pairing/index.d.ts +0 -1
  96. package/dist/pairing/index.js +0 -1
  97. package/dist/policy/index.d.ts +0 -1
  98. package/dist/policy/index.js +0 -1
  99. package/dist/policy/schemas.d.ts +0 -1
  100. package/dist/policy/schemas.js +0 -1
  101. package/dist/proof/proof-record.d.ts +0 -1
  102. package/dist/proof/proof-record.js +0 -1
  103. package/dist/proof/signing-spec.d.ts +0 -1
  104. package/dist/proof/signing-spec.js +0 -1
  105. package/dist/proof.d.ts +66 -66
  106. package/dist/registry.d.ts +0 -1
  107. package/dist/registry.js +0 -1
  108. package/dist/reputation/api.d.ts +0 -1
  109. package/dist/reputation/api.js +0 -1
  110. package/dist/reputation/constants.d.ts +0 -1
  111. package/dist/reputation/constants.js +0 -1
  112. package/dist/reputation/credentials.d.ts +0 -1
  113. package/dist/reputation/credentials.js +0 -1
  114. package/dist/reputation/index.d.ts +1 -1
  115. package/dist/reputation/index.js +2 -1
  116. package/dist/reputation/interactions.d.ts +146 -0
  117. package/dist/reputation/interactions.js +82 -0
  118. package/dist/reputation/schemas.d.ts +0 -1
  119. package/dist/reputation/schemas.js +0 -1
  120. package/dist/runtime/errors.d.ts +0 -1
  121. package/dist/runtime/errors.js +0 -1
  122. package/dist/runtime/index.d.ts +0 -1
  123. package/dist/test.d.ts +0 -1
  124. package/dist/test.js +0 -1
  125. package/dist/tlkrc/index.d.ts +0 -1
  126. package/dist/tlkrc/index.js +0 -1
  127. package/dist/tlkrc/rotation.d.ts +0 -1
  128. package/dist/tlkrc/rotation.js +0 -1
  129. package/dist/tool-protection/index.d.ts +36 -36
  130. package/dist/utils/validation.d.ts +0 -1
  131. package/dist/utils/validation.js +0 -1
  132. package/dist/vault/schemas.d.ts +2 -2
  133. package/dist/vc/index.d.ts +0 -1
  134. package/dist/vc/index.js +0 -1
  135. package/dist/vc/schemas.d.ts +0 -1
  136. package/dist/vc/schemas.js +0 -1
  137. package/dist/vc/statuslist.d.ts +0 -1
  138. package/dist/vc/statuslist.js +0 -1
  139. package/dist/verifier/index.d.ts +0 -1
  140. package/dist/verifier.d.ts +6 -6
  141. package/dist/well-known/index.d.ts +0 -1
  142. package/dist/well-known/index.js +0 -1
  143. package/package.json +1 -1
  144. package/dist/__fixtures__/index.d.ts +0 -8
  145. package/dist/__fixtures__/index.d.ts.map +0 -1
  146. package/dist/__fixtures__/index.js +0 -29
  147. package/dist/__fixtures__/index.js.map +0 -1
  148. package/dist/__fixtures__/proof/ed25519-fixtures.d.ts +0 -253
  149. package/dist/__fixtures__/proof/ed25519-fixtures.d.ts.map +0 -1
  150. package/dist/__fixtures__/proof/ed25519-fixtures.js +0 -247
  151. package/dist/__fixtures__/proof/ed25519-fixtures.js.map +0 -1
  152. package/dist/__fixtures__/proof/keys-and-payloads.json +0 -103
  153. package/dist/agent-deployment-utils.d.ts.map +0 -1
  154. package/dist/agent-deployment-utils.js.map +0 -1
  155. package/dist/agent-deployment.d.ts.map +0 -1
  156. package/dist/agent-deployment.js.map +0 -1
  157. package/dist/agentshield-api/admin-schemas.d.ts.map +0 -1
  158. package/dist/agentshield-api/admin-schemas.js.map +0 -1
  159. package/dist/agentshield-api/admin-types.d.ts.map +0 -1
  160. package/dist/agentshield-api/admin-types.js.map +0 -1
  161. package/dist/agentshield-api/endpoints.d.ts.map +0 -1
  162. package/dist/agentshield-api/endpoints.js.map +0 -1
  163. package/dist/agentshield-api/index.d.ts.map +0 -1
  164. package/dist/agentshield-api/index.js.map +0 -1
  165. package/dist/agentshield-api/schemas.d.ts.map +0 -1
  166. package/dist/agentshield-api/schemas.js.map +0 -1
  167. package/dist/agentshield-api/types.d.ts.map +0 -1
  168. package/dist/agentshield-api/types.js.map +0 -1
  169. package/dist/audit/index.d.ts.map +0 -1
  170. package/dist/audit/index.js.map +0 -1
  171. package/dist/cli.d.ts.map +0 -1
  172. package/dist/cli.js.map +0 -1
  173. package/dist/compute-binding.d.ts.map +0 -1
  174. package/dist/compute-binding.js.map +0 -1
  175. package/dist/compute.d.ts.map +0 -1
  176. package/dist/compute.js.map +0 -1
  177. package/dist/config/base.d.ts.map +0 -1
  178. package/dist/config/base.js.map +0 -1
  179. package/dist/config/builder.d.ts.map +0 -1
  180. package/dist/config/builder.js.map +0 -1
  181. package/dist/config/client-messages.d.ts.map +0 -1
  182. package/dist/config/client-messages.js.map +0 -1
  183. package/dist/config/delegation.d.ts.map +0 -1
  184. package/dist/config/delegation.js.map +0 -1
  185. package/dist/config/identity.d.ts.map +0 -1
  186. package/dist/config/identity.js.map +0 -1
  187. package/dist/config/index.d.ts.map +0 -1
  188. package/dist/config/index.js.map +0 -1
  189. package/dist/config/proofing.d.ts.map +0 -1
  190. package/dist/config/proofing.js.map +0 -1
  191. package/dist/config/tool-context.d.ts.map +0 -1
  192. package/dist/config/tool-context.js.map +0 -1
  193. package/dist/config/tool-protection.d.ts.map +0 -1
  194. package/dist/config/tool-protection.js.map +0 -1
  195. package/dist/consent/index.d.ts.map +0 -1
  196. package/dist/consent/index.js.map +0 -1
  197. package/dist/consent/schemas.d.ts.map +0 -1
  198. package/dist/consent/schemas.js.map +0 -1
  199. package/dist/consent/types.d.ts.map +0 -1
  200. package/dist/consent/types.js.map +0 -1
  201. package/dist/dashboard-config/default-config.d.ts.map +0 -1
  202. package/dist/dashboard-config/default-config.js.map +0 -1
  203. package/dist/dashboard-config/index.d.ts.map +0 -1
  204. package/dist/dashboard-config/index.js.map +0 -1
  205. package/dist/dashboard-config/schemas.d.ts.map +0 -1
  206. package/dist/dashboard-config/schemas.js.map +0 -1
  207. package/dist/dashboard-config/types.d.ts.map +0 -1
  208. package/dist/dashboard-config/types.js.map +0 -1
  209. package/dist/delegation/constraints.d.ts.map +0 -1
  210. package/dist/delegation/constraints.js.map +0 -1
  211. package/dist/delegation/index.d.ts.map +0 -1
  212. package/dist/delegation/index.js.map +0 -1
  213. package/dist/delegation/schemas.d.ts.map +0 -1
  214. package/dist/delegation/schemas.js.map +0 -1
  215. package/dist/deploy/index.d.ts.map +0 -1
  216. package/dist/deploy/index.js.map +0 -1
  217. package/dist/deploy/schemas.d.ts.map +0 -1
  218. package/dist/deploy/schemas.js.map +0 -1
  219. package/dist/deploy/types.d.ts.map +0 -1
  220. package/dist/deploy/types.js.map +0 -1
  221. package/dist/did/index.d.ts.map +0 -1
  222. package/dist/did/index.js.map +0 -1
  223. package/dist/did/resolve-contract.d.ts.map +0 -1
  224. package/dist/did/resolve-contract.js.map +0 -1
  225. package/dist/did/schemas.d.ts.map +0 -1
  226. package/dist/did/schemas.js.map +0 -1
  227. package/dist/did/types.d.ts.map +0 -1
  228. package/dist/did/types.js.map +0 -1
  229. package/dist/env/constants.d.ts.map +0 -1
  230. package/dist/env/constants.js.map +0 -1
  231. package/dist/env/index.d.ts.map +0 -1
  232. package/dist/env/index.js.map +0 -1
  233. package/dist/gateway/agents.d.ts.map +0 -1
  234. package/dist/gateway/agents.js.map +0 -1
  235. package/dist/gateway/cron.d.ts.map +0 -1
  236. package/dist/gateway/cron.js.map +0 -1
  237. package/dist/gateway/index.d.ts.map +0 -1
  238. package/dist/gateway/index.js.map +0 -1
  239. package/dist/gateway/sessions.d.ts.map +0 -1
  240. package/dist/gateway/sessions.js.map +0 -1
  241. package/dist/gateway/skills.d.ts.map +0 -1
  242. package/dist/gateway/skills.js.map +0 -1
  243. package/dist/gateway/usage.d.ts.map +0 -1
  244. package/dist/gateway/usage.js.map +0 -1
  245. package/dist/handshake.d.ts.map +0 -1
  246. package/dist/handshake.js.map +0 -1
  247. package/dist/identity/index.d.ts.map +0 -1
  248. package/dist/identity/index.js.map +0 -1
  249. package/dist/identity/schemas.d.ts.map +0 -1
  250. package/dist/identity/schemas.js.map +0 -1
  251. package/dist/index.d.ts.map +0 -1
  252. package/dist/index.js.map +0 -1
  253. package/dist/molti/admin-ws.d.ts.map +0 -1
  254. package/dist/molti/admin-ws.js.map +0 -1
  255. package/dist/molti/index.d.ts.map +0 -1
  256. package/dist/molti/index.js.map +0 -1
  257. package/dist/molti/schemas.d.ts.map +0 -1
  258. package/dist/molti/schemas.js.map +0 -1
  259. package/dist/molti/types.d.ts.map +0 -1
  260. package/dist/molti/types.js.map +0 -1
  261. package/dist/openclaw/index.d.ts +0 -20
  262. package/dist/openclaw/index.js +0 -28
  263. package/dist/openclaw/types.d.ts +0 -714
  264. package/dist/openclaw/types.js +0 -122
  265. package/dist/org-secret-definitions.d.ts +0 -18
  266. package/dist/org-secret-definitions.js +0 -72
  267. package/dist/pairing/index.d.ts.map +0 -1
  268. package/dist/pairing/index.js.map +0 -1
  269. package/dist/policy/index.d.ts.map +0 -1
  270. package/dist/policy/index.js.map +0 -1
  271. package/dist/policy/schemas.d.ts.map +0 -1
  272. package/dist/policy/schemas.js.map +0 -1
  273. package/dist/proof/index.d.ts.map +0 -1
  274. package/dist/proof/index.js.map +0 -1
  275. package/dist/proof/proof-record.d.ts.map +0 -1
  276. package/dist/proof/proof-record.js.map +0 -1
  277. package/dist/proof/signing-spec.d.ts.map +0 -1
  278. package/dist/proof/signing-spec.js.map +0 -1
  279. package/dist/proof.d.ts.map +0 -1
  280. package/dist/proof.js.map +0 -1
  281. package/dist/registry.d.ts.map +0 -1
  282. package/dist/registry.js.map +0 -1
  283. package/dist/reputation/api.d.ts.map +0 -1
  284. package/dist/reputation/api.js.map +0 -1
  285. package/dist/reputation/constants.d.ts.map +0 -1
  286. package/dist/reputation/constants.js.map +0 -1
  287. package/dist/reputation/credentials.d.ts.map +0 -1
  288. package/dist/reputation/credentials.js.map +0 -1
  289. package/dist/reputation/index.d.ts.map +0 -1
  290. package/dist/reputation/index.js.map +0 -1
  291. package/dist/reputation/schemas.d.ts.map +0 -1
  292. package/dist/reputation/schemas.js.map +0 -1
  293. package/dist/runtime/errors.d.ts.map +0 -1
  294. package/dist/runtime/errors.js.map +0 -1
  295. package/dist/runtime/headers.d.ts.map +0 -1
  296. package/dist/runtime/headers.js.map +0 -1
  297. package/dist/runtime/index.d.ts.map +0 -1
  298. package/dist/runtime/index.js.map +0 -1
  299. package/dist/test.d.ts.map +0 -1
  300. package/dist/test.js.map +0 -1
  301. package/dist/tlkrc/index.d.ts.map +0 -1
  302. package/dist/tlkrc/index.js.map +0 -1
  303. package/dist/tlkrc/rotation.d.ts.map +0 -1
  304. package/dist/tlkrc/rotation.js.map +0 -1
  305. package/dist/tool-protection/index.d.ts.map +0 -1
  306. package/dist/tool-protection/index.js.map +0 -1
  307. package/dist/utils/validation.d.ts.map +0 -1
  308. package/dist/utils/validation.js.map +0 -1
  309. package/dist/vc/index.d.ts.map +0 -1
  310. package/dist/vc/index.js.map +0 -1
  311. package/dist/vc/schemas.d.ts.map +0 -1
  312. package/dist/vc/schemas.js.map +0 -1
  313. package/dist/vc/statuslist.d.ts.map +0 -1
  314. package/dist/vc/statuslist.js.map +0 -1
  315. package/dist/verifier/index.d.ts.map +0 -1
  316. package/dist/verifier/index.js.map +0 -1
  317. package/dist/verifier.d.ts.map +0 -1
  318. package/dist/verifier.js.map +0 -1
  319. package/dist/well-known/index.d.ts.map +0 -1
  320. package/dist/well-known/index.js.map +0 -1
@@ -1598,4 +1598,3 @@ export declare function calculateConfidence(interactionCount: number, kValue?: n
1598
1598
  * @returns true if score should be marked provisional
1599
1599
  */
1600
1600
  export declare function isProvisionalScore(data: AgentData): boolean;
1601
- //# sourceMappingURL=schemas.d.ts.map
@@ -497,4 +497,3 @@ function isProvisionalScore(data) {
497
497
  // Provisional if less than 5 interactions AND less than 3 reviews
498
498
  return interactions < 5 && reviews < 3;
499
499
  }
500
- //# sourceMappingURL=schemas.js.map
@@ -345,4 +345,3 @@ export declare const ERROR_CODES: Readonly<{
345
345
  readonly CREDENTIAL_REVOKED: "credential_revoked";
346
346
  }>;
347
347
  export type ErrorCode = typeof ERROR_CODES[keyof typeof ERROR_CODES];
348
- //# sourceMappingURL=errors.d.ts.map
@@ -117,4 +117,3 @@ exports.ERROR_CODES = Object.freeze({
117
117
  DELEGATION_REVOKED: 'delegation_revoked',
118
118
  CREDENTIAL_REVOKED: 'credential_revoked',
119
119
  });
120
- //# sourceMappingURL=errors.js.map
@@ -3,4 +3,3 @@
3
3
  */
4
4
  export * from './errors.js';
5
5
  export * from './headers.js';
6
- //# sourceMappingURL=index.d.ts.map
package/dist/test.d.ts CHANGED
@@ -249,4 +249,3 @@ export declare const TEST_ERROR_CODES: {
249
249
  readonly INVALID_TEST_CONFIGURATION: "XMCP_I_TEST_INVALID_CONFIG";
250
250
  };
251
251
  export type TestErrorCode = (typeof TEST_ERROR_CODES)[keyof typeof TEST_ERROR_CODES];
252
- //# sourceMappingURL=test.d.ts.map
package/dist/test.js CHANGED
@@ -117,4 +117,3 @@ exports.TEST_ERROR_CODES = {
117
117
  LOCAL_VERIFICATION_FAILED: "XMCP_I_TEST_LOCAL_VERIFICATION_FAILED",
118
118
  INVALID_TEST_CONFIGURATION: "XMCP_I_TEST_INVALID_CONFIG",
119
119
  };
120
- //# sourceMappingURL=test.js.map
@@ -2,4 +2,3 @@
2
2
  * TLKRC Module Exports
3
3
  */
4
4
  export * from './rotation.js';
5
- //# sourceMappingURL=index.d.ts.map
@@ -18,4 +18,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  __exportStar(require("./rotation.js"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -243,4 +243,3 @@ export declare const DEFAULT_GRACE_PERIOD_SEC: number;
243
243
  * Maximum reasonable grace period (30 days)
244
244
  */
245
245
  export declare const MAX_GRACE_PERIOD_SEC: number;
246
- //# sourceMappingURL=rotation.d.ts.map
@@ -124,4 +124,3 @@ exports.DEFAULT_GRACE_PERIOD_SEC = 24 * 60 * 60;
124
124
  * Maximum reasonable grace period (30 days)
125
125
  */
126
126
  exports.MAX_GRACE_PERIOD_SEC = 30 * 24 * 60 * 60;
127
- //# sourceMappingURL=rotation.js.map
@@ -233,15 +233,15 @@ export declare const AuthRequiredErrorDataSchema: z.ZodObject<{
233
233
  configUrl: z.ZodString;
234
234
  message: z.ZodString;
235
235
  }, "strip", z.ZodTypeAny, {
236
- error: "auth_required";
237
236
  message: string;
238
- type: "oauth" | "apikey" | "credential";
237
+ type: "credential" | "oauth" | "apikey";
238
+ error: "auth_required";
239
239
  configUrl: string;
240
240
  envVarNames?: string[] | undefined;
241
241
  }, {
242
- error: "auth_required";
243
242
  message: string;
244
- type: "oauth" | "apikey" | "credential";
243
+ type: "credential" | "oauth" | "apikey";
244
+ error: "auth_required";
245
245
  configUrl: string;
246
246
  envVarNames?: string[] | undefined;
247
247
  }>;
@@ -533,10 +533,8 @@ export declare const ToolProtectionSchema: z.ZodObject<{
533
533
  type: "none";
534
534
  }>]>>;
535
535
  }, "strip", z.ZodTypeAny, {
536
- requiredScopes: string[];
537
536
  requiresDelegation: boolean;
538
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
539
- oauthProvider?: string | undefined;
537
+ requiredScopes: string[];
540
538
  authorization?: {
541
539
  type: "oauth";
542
540
  provider: string;
@@ -579,11 +577,11 @@ export declare const ToolProtectionSchema: z.ZodObject<{
579
577
  } | {
580
578
  type: "none";
581
579
  } | undefined;
582
- }, {
583
- requiredScopes: string[];
584
- requiresDelegation: boolean;
585
580
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
586
581
  oauthProvider?: string | undefined;
582
+ }, {
583
+ requiresDelegation: boolean;
584
+ requiredScopes: string[];
587
585
  authorization?: {
588
586
  type: "oauth";
589
587
  provider: string;
@@ -626,6 +624,8 @@ export declare const ToolProtectionSchema: z.ZodObject<{
626
624
  } | {
627
625
  type: "none";
628
626
  } | undefined;
627
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
628
+ oauthProvider?: string | undefined;
629
629
  }>;
630
630
  export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
631
631
  requiresDelegation: z.ZodBoolean;
@@ -757,10 +757,8 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
757
757
  type: "none";
758
758
  }>]>>;
759
759
  }, "strip", z.ZodTypeAny, {
760
- requiredScopes: string[];
761
760
  requiresDelegation: boolean;
762
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
763
- oauthProvider?: string | undefined;
761
+ requiredScopes: string[];
764
762
  authorization?: {
765
763
  type: "oauth";
766
764
  provider: string;
@@ -803,11 +801,11 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
803
801
  } | {
804
802
  type: "none";
805
803
  } | undefined;
806
- }, {
807
- requiredScopes: string[];
808
- requiresDelegation: boolean;
809
804
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
810
805
  oauthProvider?: string | undefined;
806
+ }, {
807
+ requiresDelegation: boolean;
808
+ requiredScopes: string[];
811
809
  authorization?: {
812
810
  type: "oauth";
813
811
  provider: string;
@@ -850,6 +848,8 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
850
848
  } | {
851
849
  type: "none";
852
850
  } | undefined;
851
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
852
+ oauthProvider?: string | undefined;
853
853
  }>>;
854
854
  export declare const ToolProtectionResponseSchema: z.ZodObject<{
855
855
  toolProtections: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -982,10 +982,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
982
982
  type: "none";
983
983
  }>]>>;
984
984
  }, "strip", z.ZodTypeAny, {
985
- requiredScopes: string[];
986
985
  requiresDelegation: boolean;
987
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
988
- oauthProvider?: string | undefined;
986
+ requiredScopes: string[];
989
987
  authorization?: {
990
988
  type: "oauth";
991
989
  provider: string;
@@ -1028,11 +1026,11 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
1028
1026
  } | {
1029
1027
  type: "none";
1030
1028
  } | undefined;
1031
- }, {
1032
- requiredScopes: string[];
1033
- requiresDelegation: boolean;
1034
1029
  riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1035
1030
  oauthProvider?: string | undefined;
1031
+ }, {
1032
+ requiresDelegation: boolean;
1033
+ requiredScopes: string[];
1036
1034
  authorization?: {
1037
1035
  type: "oauth";
1038
1036
  provider: string;
@@ -1075,26 +1073,26 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
1075
1073
  } | {
1076
1074
  type: "none";
1077
1075
  } | undefined;
1076
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1077
+ oauthProvider?: string | undefined;
1078
1078
  }>>;
1079
1079
  metadata: z.ZodOptional<z.ZodObject<{
1080
1080
  lastUpdated: z.ZodOptional<z.ZodString>;
1081
1081
  version: z.ZodOptional<z.ZodString>;
1082
1082
  source: z.ZodOptional<z.ZodString>;
1083
1083
  }, "strip", z.ZodTypeAny, {
1084
- lastUpdated?: string | undefined;
1085
1084
  version?: string | undefined;
1085
+ lastUpdated?: string | undefined;
1086
1086
  source?: string | undefined;
1087
1087
  }, {
1088
- lastUpdated?: string | undefined;
1089
1088
  version?: string | undefined;
1089
+ lastUpdated?: string | undefined;
1090
1090
  source?: string | undefined;
1091
1091
  }>>;
1092
1092
  }, "strip", z.ZodTypeAny, {
1093
1093
  toolProtections: Record<string, {
1094
- requiredScopes: string[];
1095
1094
  requiresDelegation: boolean;
1096
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1097
- oauthProvider?: string | undefined;
1095
+ requiredScopes: string[];
1098
1096
  authorization?: {
1099
1097
  type: "oauth";
1100
1098
  provider: string;
@@ -1137,18 +1135,18 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
1137
1135
  } | {
1138
1136
  type: "none";
1139
1137
  } | undefined;
1138
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1139
+ oauthProvider?: string | undefined;
1140
1140
  }>;
1141
1141
  metadata?: {
1142
- lastUpdated?: string | undefined;
1143
1142
  version?: string | undefined;
1143
+ lastUpdated?: string | undefined;
1144
1144
  source?: string | undefined;
1145
1145
  } | undefined;
1146
1146
  }, {
1147
1147
  toolProtections: Record<string, {
1148
- requiredScopes: string[];
1149
1148
  requiresDelegation: boolean;
1150
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1151
- oauthProvider?: string | undefined;
1149
+ requiredScopes: string[];
1152
1150
  authorization?: {
1153
1151
  type: "oauth";
1154
1152
  provider: string;
@@ -1191,10 +1189,12 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
1191
1189
  } | {
1192
1190
  type: "none";
1193
1191
  } | undefined;
1192
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1193
+ oauthProvider?: string | undefined;
1194
1194
  }>;
1195
1195
  metadata?: {
1196
- lastUpdated?: string | undefined;
1197
1196
  version?: string | undefined;
1197
+ lastUpdated?: string | undefined;
1198
1198
  source?: string | undefined;
1199
1199
  } | undefined;
1200
1200
  }>;
@@ -1205,17 +1205,17 @@ export declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
1205
1205
  authorizationUrl: z.ZodOptional<z.ZodString>;
1206
1206
  reason: z.ZodOptional<z.ZodString>;
1207
1207
  }, "strip", z.ZodTypeAny, {
1208
- requiredScopes: string[];
1209
1208
  toolName: string;
1210
- consentUrl?: string | undefined;
1209
+ requiredScopes: string[];
1211
1210
  authorizationUrl?: string | undefined;
1212
1211
  reason?: string | undefined;
1212
+ consentUrl?: string | undefined;
1213
1213
  }, {
1214
- requiredScopes: string[];
1215
1214
  toolName: string;
1216
- consentUrl?: string | undefined;
1215
+ requiredScopes: string[];
1217
1216
  authorizationUrl?: string | undefined;
1218
1217
  reason?: string | undefined;
1218
+ consentUrl?: string | undefined;
1219
1219
  }>;
1220
1220
  /**
1221
1221
  * Type Guards
@@ -28,4 +28,3 @@ export declare const StringValidators: {
28
28
  url: (value: string) => boolean;
29
29
  projectName: (value: string) => boolean;
30
30
  };
31
- //# sourceMappingURL=validation.d.ts.map
@@ -67,4 +67,3 @@ exports.StringValidators = {
67
67
  },
68
68
  projectName: (value) => /^[a-z0-9-]+$/.test(value) && value.length >= 1 && value.length <= 214,
69
69
  };
70
- //# sourceMappingURL=validation.js.map
@@ -21,12 +21,12 @@ export declare const upsertSecretSchema: z.ZodObject<{
21
21
  /** Optional human-readable label */
22
22
  label: z.ZodOptional<z.ZodString>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- envVarName: string;
25
24
  value: string;
25
+ envVarName: string;
26
26
  label?: string | undefined;
27
27
  }, {
28
- envVarName: string;
29
28
  value: string;
29
+ envVarName: string;
30
30
  label?: string | undefined;
31
31
  }>;
32
32
  /**
@@ -5,4 +5,3 @@
5
5
  */
6
6
  export * from './schemas.js';
7
7
  export * from './statuslist.js';
8
- //# sourceMappingURL=index.d.ts.map
package/dist/vc/index.js CHANGED
@@ -21,4 +21,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  __exportStar(require("./schemas.js"), exports);
23
23
  __exportStar(require("./statuslist.js"), exports);
24
- //# sourceMappingURL=index.js.map
@@ -2481,4 +2481,3 @@ export declare function getIssuerDid(credential: VerifiableCredential): string;
2481
2481
  * @returns The subject DID or null if not present
2482
2482
  */
2483
2483
  export declare function getSubjectDid(credential: VerifiableCredential): string | null;
2484
- //# sourceMappingURL=schemas.d.ts.map
@@ -222,4 +222,3 @@ function getSubjectDid(credential) {
222
222
  : credential.credentialSubject;
223
223
  return subject?.id || null;
224
224
  }
225
- //# sourceMappingURL=schemas.js.map
@@ -491,4 +491,3 @@ export declare const MAX_STATUSLIST_SIZE = 1000000;
491
491
  * StatusList2021 context URL
492
492
  */
493
493
  export declare const STATUSLIST_2021_CONTEXT = "https://w3id.org/vc/status-list/2021/v1";
494
- //# sourceMappingURL=statuslist.d.ts.map
@@ -130,4 +130,3 @@ exports.MAX_STATUSLIST_SIZE = 1000000; // 1 million entries
130
130
  * StatusList2021 context URL
131
131
  */
132
132
  exports.STATUSLIST_2021_CONTEXT = 'https://w3id.org/vc/status-list/2021/v1';
133
- //# sourceMappingURL=statuslist.js.map
@@ -1,2 +1 @@
1
1
  export * from "../verifier";
2
- //# sourceMappingURL=index.d.ts.map
@@ -14,10 +14,10 @@ export declare const AgentContextSchema: z.ZodObject<{
14
14
  registry: z.ZodString;
15
15
  verifiedAt: z.ZodNumber;
16
16
  }, "strip", z.ZodTypeAny, {
17
+ scopes: string[];
17
18
  did: string;
18
19
  kid: string;
19
20
  session: string;
20
- scopes: string[];
21
21
  confidence: "verified";
22
22
  registry: string;
23
23
  verifiedAt: number;
@@ -31,10 +31,10 @@ export declare const AgentContextSchema: z.ZodObject<{
31
31
  confidence: "verified";
32
32
  registry: string;
33
33
  verifiedAt: number;
34
+ scopes?: string[] | undefined;
34
35
  subject?: string | undefined;
35
36
  delegationRef?: string | undefined;
36
37
  outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
37
- scopes?: string[] | undefined;
38
38
  }>;
39
39
  export declare const VerifierResultSchema: z.ZodObject<{
40
40
  success: z.ZodBoolean;
@@ -51,10 +51,10 @@ export declare const VerifierResultSchema: z.ZodObject<{
51
51
  registry: z.ZodString;
52
52
  verifiedAt: z.ZodNumber;
53
53
  }, "strip", z.ZodTypeAny, {
54
+ scopes: string[];
54
55
  did: string;
55
56
  kid: string;
56
57
  session: string;
57
- scopes: string[];
58
58
  confidence: "verified";
59
59
  registry: string;
60
60
  verifiedAt: number;
@@ -68,10 +68,10 @@ export declare const VerifierResultSchema: z.ZodObject<{
68
68
  confidence: "verified";
69
69
  registry: string;
70
70
  verifiedAt: number;
71
+ scopes?: string[] | undefined;
71
72
  subject?: string | undefined;
72
73
  delegationRef?: string | undefined;
73
74
  outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
74
- scopes?: string[] | undefined;
75
75
  }>>;
76
76
  error: z.ZodOptional<z.ZodObject<{
77
77
  code: z.ZodString;
@@ -99,10 +99,10 @@ export declare const VerifierResultSchema: z.ZodObject<{
99
99
  } | undefined;
100
100
  headers?: Record<string, string> | undefined;
101
101
  agentContext?: {
102
+ scopes: string[];
102
103
  did: string;
103
104
  kid: string;
104
105
  session: string;
105
- scopes: string[];
106
106
  confidence: "verified";
107
107
  registry: string;
108
108
  verifiedAt: number;
@@ -126,10 +126,10 @@ export declare const VerifierResultSchema: z.ZodObject<{
126
126
  confidence: "verified";
127
127
  registry: string;
128
128
  verifiedAt: number;
129
+ scopes?: string[] | undefined;
129
130
  subject?: string | undefined;
130
131
  delegationRef?: string | undefined;
131
132
  outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
132
- scopes?: string[] | undefined;
133
133
  } | undefined;
134
134
  }>;
135
135
  export declare const StructuredErrorSchema: z.ZodObject<{
@@ -1011,4 +1011,3 @@ export declare function isMCPClientConfig(obj: any): obj is MCPClientConfig;
1011
1011
  * Validation function for MCPClientConfig
1012
1012
  */
1013
1013
  export declare function validateMCPClientConfig(obj: any): MCPClientConfig;
1014
- //# sourceMappingURL=index.d.ts.map
@@ -300,4 +300,3 @@ function isMCPClientConfig(obj) {
300
300
  function validateMCPClientConfig(obj) {
301
301
  return exports.MCPClientConfigSchema.parse(obj);
302
302
  }
303
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Shared contracts, types, and schemas for MCP-I framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- /**
2
- * Test Fixtures Export
3
- *
4
- * Exports all test fixtures for use in test suites across packages.
5
- */
6
- export * from './proof/ed25519-fixtures.js';
7
- export { default as keysAndPayloads } from './proof/keys-and-payloads.json';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/__fixtures__/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAyB"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- /**
3
- * Test Fixtures Export
4
- *
5
- * Exports all test fixtures for use in test suites across packages.
6
- */
7
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
- if (k2 === undefined) k2 = k;
9
- var desc = Object.getOwnPropertyDescriptor(m, k);
10
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
- desc = { enumerable: true, get: function() { return m[k]; } };
12
- }
13
- Object.defineProperty(o, k2, desc);
14
- }) : (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- o[k2] = m[k];
17
- }));
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.keysAndPayloads = void 0;
26
- __exportStar(require("./proof/ed25519-fixtures.js"), exports);
27
- var keys_and_payloads_json_1 = require("./proof/keys-and-payloads.json");
28
- Object.defineProperty(exports, "keysAndPayloads", { enumerable: true, get: function () { return __importDefault(keys_and_payloads_json_1).default; } });
29
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/__fixtures__/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;AAEH,8DAA4C;AAC5C,yEAAoG;AAA3F,0IAAA,OAAO,OAAmB"}