@kya-os/cli 2.0.0 → 2.0.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 (945) hide show
  1. package/README.md +167 -231
  2. package/bin/__tests__/kya-os-shim.e2e.test.js +160 -0
  3. package/bin/__tests__/resolve-binary.test.js +54 -0
  4. package/bin/dco.js +17 -0
  5. package/bin/kya-os.js +135 -0
  6. package/bin/resolve-binary.js +98 -0
  7. package/bin/run-compile.mjs +29 -0
  8. package/dist/sidecar/sidecar/src/conformance/pins.js +54 -0
  9. package/dist/sidecar/sidecar/src/conformance/pins.js.map +1 -0
  10. package/dist/sidecar/sidecar/src/conformance/reference/adapter-helpers.js +117 -0
  11. package/dist/sidecar/sidecar/src/conformance/reference/adapter-helpers.js.map +1 -0
  12. package/dist/sidecar/sidecar/src/conformance/reference/crypto-kit.js +101 -0
  13. package/dist/sidecar/sidecar/src/conformance/reference/crypto-kit.js.map +1 -0
  14. package/dist/sidecar/sidecar/src/conformance/reference/reference-adapter.js +326 -0
  15. package/dist/sidecar/sidecar/src/conformance/reference/reference-adapter.js.map +1 -0
  16. package/dist/sidecar/sidecar/src/conformance/reference/runner.js +126 -0
  17. package/dist/sidecar/sidecar/src/conformance/reference/runner.js.map +1 -0
  18. package/dist/sidecar/sidecar/src/conformance/reference/types.js +40 -0
  19. package/dist/sidecar/sidecar/src/conformance/reference/types.js.map +1 -0
  20. package/dist/sidecar/sidecar/src/daemon.js +151 -0
  21. package/dist/sidecar/sidecar/src/daemon.js.map +1 -0
  22. package/dist/sidecar/sidecar/src/framing.js +36 -0
  23. package/dist/sidecar/sidecar/src/framing.js.map +1 -0
  24. package/dist/sidecar/sidecar/src/identity-manager.js +73 -0
  25. package/dist/sidecar/sidecar/src/identity-manager.js.map +1 -0
  26. package/dist/sidecar/sidecar/src/index.js +80 -0
  27. package/dist/sidecar/sidecar/src/index.js.map +1 -0
  28. package/dist/sidecar/sidecar/src/ops/convert-to-ssh.js +11 -0
  29. package/dist/sidecar/sidecar/src/ops/convert-to-ssh.js.map +1 -0
  30. package/dist/sidecar/sidecar/src/ops/echo.js +5 -0
  31. package/dist/sidecar/sidecar/src/ops/echo.js.map +1 -0
  32. package/dist/sidecar/sidecar/src/ops/ensure-identity.js +36 -0
  33. package/dist/sidecar/sidecar/src/ops/ensure-identity.js.map +1 -0
  34. package/dist/sidecar/sidecar/src/ops/resolve-identity.js +233 -0
  35. package/dist/sidecar/sidecar/src/ops/resolve-identity.js.map +1 -0
  36. package/dist/sidecar/sidecar/src/ops/rotate-identity.js +37 -0
  37. package/dist/sidecar/sidecar/src/ops/rotate-identity.js.map +1 -0
  38. package/dist/sidecar/sidecar/src/ops/run-conformance.js +78 -0
  39. package/dist/sidecar/sidecar/src/ops/run-conformance.js.map +1 -0
  40. package/dist/sidecar/sidecar/src/ops/sign-with-ed25519-seed.js +12 -0
  41. package/dist/sidecar/sidecar/src/ops/sign-with-ed25519-seed.js.map +1 -0
  42. package/dist/sidecar/sidecar/src/ops/sign.js +24 -0
  43. package/dist/sidecar/sidecar/src/ops/sign.js.map +1 -0
  44. package/dist/sidecar/sidecar/src/ops/verify-audit-bundle.js +139 -0
  45. package/dist/sidecar/sidecar/src/ops/verify-audit-bundle.js.map +1 -0
  46. package/dist/sidecar/sidecar/src/ssh-key.js +297 -0
  47. package/dist/sidecar/sidecar/src/ssh-key.js.map +1 -0
  48. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.d.ts +62 -0
  49. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.js +92 -0
  50. package/node_modules/@kya-os/contracts/dist/agent-deployment.d.ts +723 -0
  51. package/node_modules/@kya-os/contracts/dist/agent-deployment.js +270 -0
  52. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-schemas.d.ts +49 -0
  53. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-schemas.js +30 -0
  54. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.d.ts +37 -0
  55. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.js +10 -0
  56. package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.d.ts +53 -0
  57. package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.js +49 -0
  58. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.d.ts +15 -0
  59. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.js +46 -0
  60. package/node_modules/@kya-os/contracts/dist/agentshield-api/schemas.d.ts +6583 -0
  61. package/node_modules/@kya-os/contracts/dist/agentshield-api/schemas.js +340 -0
  62. package/node_modules/@kya-os/contracts/dist/agentshield-api/types.d.ts +344 -0
  63. package/node_modules/@kya-os/contracts/dist/agentshield-api/types.js +26 -0
  64. package/node_modules/@kya-os/contracts/dist/attribution/index.d.ts +80 -0
  65. package/node_modules/@kya-os/contracts/dist/attribution/index.js +74 -0
  66. package/node_modules/@kya-os/contracts/dist/audit/index.d.ts +147 -0
  67. package/node_modules/@kya-os/contracts/dist/audit/index.js +51 -0
  68. package/node_modules/@kya-os/contracts/dist/cli-read/analyze.d.ts +162 -0
  69. package/node_modules/@kya-os/contracts/dist/cli-read/analyze.js +38 -0
  70. package/node_modules/@kya-os/contracts/dist/cli-read/common.d.ts +70 -0
  71. package/node_modules/@kya-os/contracts/dist/cli-read/common.js +55 -0
  72. package/node_modules/@kya-os/contracts/dist/cli-read/index.d.ts +5 -0
  73. package/node_modules/@kya-os/contracts/dist/cli-read/index.js +21 -0
  74. package/node_modules/@kya-os/contracts/dist/cli-read/monitor.d.ts +241 -0
  75. package/node_modules/@kya-os/contracts/dist/cli-read/monitor.js +70 -0
  76. package/node_modules/@kya-os/contracts/dist/cli-read/projects.d.ts +195 -0
  77. package/node_modules/@kya-os/contracts/dist/cli-read/projects.js +48 -0
  78. package/node_modules/@kya-os/contracts/dist/cli-read/settings.d.ts +274 -0
  79. package/node_modules/@kya-os/contracts/dist/cli-read/settings.js +56 -0
  80. package/node_modules/@kya-os/contracts/dist/cli.d.ts +542 -0
  81. package/node_modules/@kya-os/contracts/dist/cli.js +266 -0
  82. package/node_modules/@kya-os/contracts/dist/compute-binding.d.ts +48 -0
  83. package/node_modules/@kya-os/contracts/dist/compute-binding.js +42 -0
  84. package/node_modules/@kya-os/contracts/dist/compute.d.ts +474 -0
  85. package/node_modules/@kya-os/contracts/dist/compute.js +213 -0
  86. package/node_modules/@kya-os/contracts/dist/config/base.d.ts +76 -0
  87. package/node_modules/@kya-os/contracts/dist/config/base.js +11 -0
  88. package/node_modules/@kya-os/contracts/dist/config/builder.d.ts +33 -0
  89. package/node_modules/@kya-os/contracts/dist/config/builder.js +71 -0
  90. package/node_modules/@kya-os/contracts/dist/config/checkpoint-env.d.ts +25 -0
  91. package/node_modules/@kya-os/contracts/dist/config/checkpoint-env.js +38 -0
  92. package/node_modules/@kya-os/contracts/dist/config/client-messages.d.ts +216 -0
  93. package/node_modules/@kya-os/contracts/dist/config/client-messages.js +50 -0
  94. package/node_modules/@kya-os/contracts/dist/config/delegation-denial.d.ts +14 -0
  95. package/node_modules/@kya-os/contracts/dist/config/delegation-denial.js +30 -0
  96. package/node_modules/@kya-os/contracts/dist/config/delegation.d.ts +194 -0
  97. package/node_modules/@kya-os/contracts/dist/config/delegation.js +10 -0
  98. package/node_modules/@kya-os/contracts/dist/config/identity.d.ts +1164 -0
  99. package/node_modules/@kya-os/contracts/dist/config/identity.js +155 -0
  100. package/node_modules/@kya-os/contracts/dist/config/index.d.ts +45 -0
  101. package/node_modules/@kya-os/contracts/dist/config/index.js +41 -0
  102. package/node_modules/@kya-os/contracts/dist/config/proofing.d.ts +120 -0
  103. package/node_modules/@kya-os/contracts/dist/config/proofing.js +10 -0
  104. package/node_modules/@kya-os/contracts/dist/config/tool-context.d.ts +94 -0
  105. package/node_modules/@kya-os/contracts/dist/config/tool-context.js +13 -0
  106. package/node_modules/@kya-os/contracts/dist/config/tool-protection.d.ts +164 -0
  107. package/node_modules/@kya-os/contracts/dist/config/tool-protection.js +10 -0
  108. package/node_modules/@kya-os/contracts/dist/config/tool-refusal.d.ts +54 -0
  109. package/node_modules/@kya-os/contracts/dist/config/tool-refusal.js +82 -0
  110. package/node_modules/@kya-os/contracts/dist/consent/authorization-progress.d.ts +163 -0
  111. package/node_modules/@kya-os/contracts/dist/consent/authorization-progress.js +42 -0
  112. package/node_modules/@kya-os/contracts/dist/consent/index.d.ts +14 -0
  113. package/node_modules/@kya-os/contracts/dist/consent/index.js +94 -0
  114. package/node_modules/@kya-os/contracts/dist/consent/schemas.d.ts +965 -0
  115. package/node_modules/@kya-os/contracts/dist/consent/schemas.js +335 -0
  116. package/node_modules/@kya-os/contracts/dist/consent/types.d.ts +155 -0
  117. package/node_modules/@kya-os/contracts/dist/consent/types.js +10 -0
  118. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.d.ts +49 -0
  119. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.js +235 -0
  120. package/node_modules/@kya-os/contracts/dist/dashboard-config/index.d.ts +10 -0
  121. package/node_modules/@kya-os/contracts/dist/dashboard-config/index.js +37 -0
  122. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.d.ts +13351 -0
  123. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.js +267 -0
  124. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.d.ts +359 -0
  125. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.js +10 -0
  126. package/node_modules/@kya-os/contracts/dist/delegation/constraints.d.ts +1021 -0
  127. package/node_modules/@kya-os/contracts/dist/delegation/constraints.js +218 -0
  128. package/node_modules/@kya-os/contracts/dist/delegation/index.d.ts +7 -0
  129. package/node_modules/@kya-os/contracts/dist/delegation/index.js +23 -0
  130. package/node_modules/@kya-os/contracts/dist/delegation/schemas.d.ts +9302 -0
  131. package/node_modules/@kya-os/contracts/dist/delegation/schemas.js +585 -0
  132. package/node_modules/@kya-os/contracts/dist/deploy/index.d.ts +27 -0
  133. package/node_modules/@kya-os/contracts/dist/deploy/index.js +62 -0
  134. package/node_modules/@kya-os/contracts/dist/deploy/schemas.d.ts +1001 -0
  135. package/node_modules/@kya-os/contracts/dist/deploy/schemas.js +284 -0
  136. package/node_modules/@kya-os/contracts/dist/deploy/types.d.ts +256 -0
  137. package/node_modules/@kya-os/contracts/dist/deploy/types.js +10 -0
  138. package/node_modules/@kya-os/contracts/dist/did/index.d.ts +8 -0
  139. package/node_modules/@kya-os/contracts/dist/did/index.js +24 -0
  140. package/node_modules/@kya-os/contracts/dist/did/resolve-contract.d.ts +219 -0
  141. package/node_modules/@kya-os/contracts/dist/did/resolve-contract.js +31 -0
  142. package/node_modules/@kya-os/contracts/dist/did/schemas.d.ts +112 -0
  143. package/node_modules/@kya-os/contracts/dist/did/schemas.js +172 -0
  144. package/node_modules/@kya-os/contracts/dist/did/types.d.ts +163 -0
  145. package/node_modules/@kya-os/contracts/dist/did/types.js +70 -0
  146. package/node_modules/@kya-os/contracts/dist/env/constants.d.ts +57 -0
  147. package/node_modules/@kya-os/contracts/dist/env/constants.js +59 -0
  148. package/node_modules/@kya-os/contracts/dist/env/index.d.ts +4 -0
  149. package/node_modules/@kya-os/contracts/dist/env/index.js +20 -0
  150. package/node_modules/@kya-os/contracts/dist/fleet/index.d.ts +17 -0
  151. package/node_modules/@kya-os/contracts/dist/fleet/index.js +69 -0
  152. package/node_modules/@kya-os/contracts/dist/gateway/agents.d.ts +21 -0
  153. package/node_modules/@kya-os/contracts/dist/gateway/agents.js +12 -0
  154. package/node_modules/@kya-os/contracts/dist/gateway/cron.d.ts +33 -0
  155. package/node_modules/@kya-os/contracts/dist/gateway/cron.js +16 -0
  156. package/node_modules/@kya-os/contracts/dist/gateway/index.d.ts +20 -0
  157. package/node_modules/@kya-os/contracts/dist/gateway/index.js +37 -0
  158. package/node_modules/@kya-os/contracts/dist/gateway/sessions.d.ts +30 -0
  159. package/node_modules/@kya-os/contracts/dist/gateway/sessions.js +15 -0
  160. package/node_modules/@kya-os/contracts/dist/gateway/skills.d.ts +445 -0
  161. package/node_modules/@kya-os/contracts/dist/gateway/skills.js +47 -0
  162. package/node_modules/@kya-os/contracts/dist/gateway/usage.d.ts +43 -0
  163. package/node_modules/@kya-os/contracts/dist/gateway/usage.js +18 -0
  164. package/node_modules/@kya-os/contracts/dist/handshake/github-credential-anchor.d.ts +299 -0
  165. package/node_modules/@kya-os/contracts/dist/handshake/github-credential-anchor.js +200 -0
  166. package/node_modules/@kya-os/contracts/dist/handshake/index.d.ts +16 -0
  167. package/node_modules/@kya-os/contracts/dist/handshake/index.js +32 -0
  168. package/node_modules/@kya-os/contracts/dist/handshake/schemas.d.ts +557 -0
  169. package/node_modules/@kya-os/contracts/dist/handshake/schemas.js +282 -0
  170. package/node_modules/@kya-os/contracts/dist/handshake/verify.d.ts +36 -0
  171. package/node_modules/@kya-os/contracts/dist/handshake/verify.js +58 -0
  172. package/node_modules/@kya-os/contracts/dist/handshake.d.ts +12 -0
  173. package/node_modules/@kya-os/contracts/dist/handshake.js +28 -0
  174. package/node_modules/@kya-os/contracts/dist/identity/index.d.ts +10 -0
  175. package/node_modules/@kya-os/contracts/dist/identity/index.js +30 -0
  176. package/node_modules/@kya-os/contracts/dist/identity/schemas.d.ts +250 -0
  177. package/node_modules/@kya-os/contracts/dist/identity/schemas.js +115 -0
  178. package/node_modules/@kya-os/contracts/dist/index.d.ts +28 -0
  179. package/node_modules/@kya-os/contracts/dist/index.js +66 -0
  180. package/node_modules/@kya-os/contracts/dist/molti/admin-ws.d.ts +1871 -0
  181. package/node_modules/@kya-os/contracts/dist/molti/admin-ws.js +177 -0
  182. package/node_modules/@kya-os/contracts/dist/molti/index.d.ts +30 -0
  183. package/node_modules/@kya-os/contracts/dist/molti/index.js +86 -0
  184. package/node_modules/@kya-os/contracts/dist/molti/schemas.d.ts +837 -0
  185. package/node_modules/@kya-os/contracts/dist/molti/schemas.js +267 -0
  186. package/node_modules/@kya-os/contracts/dist/molti/types.d.ts +216 -0
  187. package/node_modules/@kya-os/contracts/dist/molti/types.js +25 -0
  188. package/node_modules/@kya-os/contracts/dist/pairing/index.d.ts +44 -0
  189. package/node_modules/@kya-os/contracts/dist/pairing/index.js +11 -0
  190. package/node_modules/@kya-os/contracts/dist/policy/index.d.ts +8 -0
  191. package/node_modules/@kya-os/contracts/dist/policy/index.js +41 -0
  192. package/node_modules/@kya-os/contracts/dist/policy/schemas.d.ts +3839 -0
  193. package/node_modules/@kya-os/contracts/dist/policy/schemas.js +424 -0
  194. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.d.ts +476 -0
  195. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.js +116 -0
  196. package/node_modules/@kya-os/contracts/dist/proof/index.d.ts +15 -0
  197. package/node_modules/@kya-os/contracts/dist/proof/index.js +32 -0
  198. package/node_modules/@kya-os/contracts/dist/proof/proof-record.d.ts +837 -0
  199. package/node_modules/@kya-os/contracts/dist/proof/proof-record.js +133 -0
  200. package/node_modules/@kya-os/contracts/dist/proof/signing-spec.d.ts +146 -0
  201. package/node_modules/@kya-os/contracts/dist/proof/signing-spec.js +122 -0
  202. package/node_modules/@kya-os/contracts/dist/proof.d.ts +12 -0
  203. package/node_modules/@kya-os/contracts/dist/proof.js +28 -0
  204. package/node_modules/@kya-os/contracts/dist/registry.d.ts +342 -0
  205. package/node_modules/@kya-os/contracts/dist/registry.js +118 -0
  206. package/node_modules/@kya-os/contracts/dist/reputation/api.d.ts +2866 -0
  207. package/node_modules/@kya-os/contracts/dist/reputation/api.js +397 -0
  208. package/node_modules/@kya-os/contracts/dist/reputation/constants.d.ts +242 -0
  209. package/node_modules/@kya-os/contracts/dist/reputation/constants.js +259 -0
  210. package/node_modules/@kya-os/contracts/dist/reputation/credentials.d.ts +1493 -0
  211. package/node_modules/@kya-os/contracts/dist/reputation/credentials.js +302 -0
  212. package/node_modules/@kya-os/contracts/dist/reputation/index.d.ts +21 -0
  213. package/node_modules/@kya-os/contracts/dist/reputation/index.js +42 -0
  214. package/node_modules/@kya-os/contracts/dist/reputation/interactions.d.ts +146 -0
  215. package/node_modules/@kya-os/contracts/dist/reputation/interactions.js +82 -0
  216. package/node_modules/@kya-os/contracts/dist/reputation/schemas.d.ts +1600 -0
  217. package/node_modules/@kya-os/contracts/dist/reputation/schemas.js +499 -0
  218. package/node_modules/@kya-os/contracts/dist/review/canonicalize.d.ts +87 -0
  219. package/node_modules/@kya-os/contracts/dist/review/canonicalize.js +122 -0
  220. package/node_modules/@kya-os/contracts/dist/review/fix-attestation.d.ts +151 -0
  221. package/node_modules/@kya-os/contracts/dist/review/fix-attestation.js +105 -0
  222. package/node_modules/@kya-os/contracts/dist/review/index.d.ts +9 -0
  223. package/node_modules/@kya-os/contracts/dist/review/index.js +25 -0
  224. package/node_modules/@kya-os/contracts/dist/review/registry.d.ts +349 -0
  225. package/node_modules/@kya-os/contracts/dist/review/registry.js +293 -0
  226. package/node_modules/@kya-os/contracts/dist/review/schemas.d.ts +249 -0
  227. package/node_modules/@kya-os/contracts/dist/review/schemas.js +102 -0
  228. package/node_modules/@kya-os/contracts/dist/review/verify.d.ts +72 -0
  229. package/node_modules/@kya-os/contracts/dist/review/verify.js +111 -0
  230. package/node_modules/@kya-os/contracts/dist/runtime/errors.d.ts +347 -0
  231. package/node_modules/@kya-os/contracts/dist/runtime/errors.js +119 -0
  232. package/node_modules/@kya-os/contracts/dist/runtime/headers.d.ts +87 -0
  233. package/node_modules/@kya-os/contracts/dist/runtime/headers.js +85 -0
  234. package/node_modules/@kya-os/contracts/dist/runtime/index.d.ts +5 -0
  235. package/node_modules/@kya-os/contracts/dist/runtime/index.js +21 -0
  236. package/node_modules/@kya-os/contracts/dist/skills/index.d.ts +8 -0
  237. package/node_modules/@kya-os/contracts/dist/skills/index.js +24 -0
  238. package/node_modules/@kya-os/contracts/dist/skills/schemas.d.ts +92 -0
  239. package/node_modules/@kya-os/contracts/dist/skills/schemas.js +82 -0
  240. package/node_modules/@kya-os/contracts/dist/test.d.ts +251 -0
  241. package/node_modules/@kya-os/contracts/dist/test.js +119 -0
  242. package/node_modules/@kya-os/contracts/dist/tlkrc/index.d.ts +4 -0
  243. package/node_modules/@kya-os/contracts/dist/tlkrc/index.js +20 -0
  244. package/node_modules/@kya-os/contracts/dist/tlkrc/rotation.d.ts +245 -0
  245. package/node_modules/@kya-os/contracts/dist/tlkrc/rotation.js +126 -0
  246. package/node_modules/@kya-os/contracts/dist/tool-protection/index.d.ts +1369 -0
  247. package/node_modules/@kya-os/contracts/dist/tool-protection/index.js +499 -0
  248. package/node_modules/@kya-os/contracts/dist/utils/validation.d.ts +30 -0
  249. package/node_modules/@kya-os/contracts/dist/utils/validation.js +69 -0
  250. package/node_modules/@kya-os/contracts/dist/vault/index.d.ts +9 -0
  251. package/node_modules/@kya-os/contracts/dist/vault/index.js +16 -0
  252. package/node_modules/@kya-os/contracts/dist/vault/schemas.d.ts +71 -0
  253. package/node_modules/@kya-os/contracts/dist/vault/schemas.js +52 -0
  254. package/node_modules/@kya-os/contracts/dist/vault/types.d.ts +15 -0
  255. package/node_modules/@kya-os/contracts/dist/vault/types.js +9 -0
  256. package/node_modules/@kya-os/contracts/dist/vc/index.d.ts +7 -0
  257. package/node_modules/@kya-os/contracts/dist/vc/index.js +23 -0
  258. package/node_modules/@kya-os/contracts/dist/vc/schemas.d.ts +2483 -0
  259. package/node_modules/@kya-os/contracts/dist/vc/schemas.js +224 -0
  260. package/node_modules/@kya-os/contracts/dist/vc/statuslist.d.ts +493 -0
  261. package/node_modules/@kya-os/contracts/dist/vc/statuslist.js +132 -0
  262. package/node_modules/@kya-os/contracts/dist/verifier/index.d.ts +8 -0
  263. package/node_modules/@kya-os/contracts/dist/verifier/index.js +24 -0
  264. package/node_modules/@kya-os/contracts/dist/verifier/schemas.d.ts +216 -0
  265. package/node_modules/@kya-os/contracts/dist/verifier/schemas.js +94 -0
  266. package/node_modules/@kya-os/contracts/dist/verifier.d.ts +11 -0
  267. package/node_modules/@kya-os/contracts/dist/verifier.js +27 -0
  268. package/node_modules/@kya-os/contracts/dist/well-known/index.d.ts +1013 -0
  269. package/node_modules/@kya-os/contracts/dist/well-known/index.js +302 -0
  270. package/node_modules/@kya-os/contracts/dist/workbench/a2a.d.ts +267 -0
  271. package/node_modules/@kya-os/contracts/dist/workbench/a2a.js +124 -0
  272. package/node_modules/@kya-os/contracts/dist/workbench/artifact-bindings.d.ts +1448 -0
  273. package/node_modules/@kya-os/contracts/dist/workbench/artifact-bindings.js +233 -0
  274. package/node_modules/@kya-os/contracts/dist/workbench/cache.d.ts +461 -0
  275. package/node_modules/@kya-os/contracts/dist/workbench/cache.js +165 -0
  276. package/node_modules/@kya-os/contracts/dist/workbench/economics.d.ts +1097 -0
  277. package/node_modules/@kya-os/contracts/dist/workbench/economics.js +87 -0
  278. package/node_modules/@kya-os/contracts/dist/workbench/execution.d.ts +594 -0
  279. package/node_modules/@kya-os/contracts/dist/workbench/execution.js +76 -0
  280. package/node_modules/@kya-os/contracts/dist/workbench/governed.d.ts +4323 -0
  281. package/node_modules/@kya-os/contracts/dist/workbench/governed.js +37 -0
  282. package/node_modules/@kya-os/contracts/dist/workbench/graph-interfaces.d.ts +1330 -0
  283. package/node_modules/@kya-os/contracts/dist/workbench/graph-interfaces.js +302 -0
  284. package/node_modules/@kya-os/contracts/dist/workbench/index.d.ts +17 -0
  285. package/node_modules/@kya-os/contracts/dist/workbench/index.js +33 -0
  286. package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.d.ts +7603 -0
  287. package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.js +20 -0
  288. package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.d.ts +797 -0
  289. package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.js +80 -0
  290. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.d.ts +3245 -0
  291. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.js +475 -0
  292. package/node_modules/@kya-os/contracts/dist/workbench/managed-worker.d.ts +199 -0
  293. package/node_modules/@kya-os/contracts/dist/workbench/managed-worker.js +49 -0
  294. package/node_modules/@kya-os/contracts/dist/workbench/review.d.ts +1585 -0
  295. package/node_modules/@kya-os/contracts/dist/workbench/review.js +84 -0
  296. package/node_modules/@kya-os/contracts/dist/workbench/routing.d.ts +1200 -0
  297. package/node_modules/@kya-os/contracts/dist/workbench/routing.js +93 -0
  298. package/node_modules/@kya-os/contracts/dist/workbench/task-status-projection.d.ts +190 -0
  299. package/node_modules/@kya-os/contracts/dist/workbench/task-status-projection.js +49 -0
  300. package/node_modules/@kya-os/contracts/dist/workbench/tracking.d.ts +3364 -0
  301. package/node_modules/@kya-os/contracts/dist/workbench/tracking.js +221 -0
  302. package/node_modules/@kya-os/contracts/dist/workbench/usage.d.ts +62 -0
  303. package/node_modules/@kya-os/contracts/dist/workbench/usage.js +57 -0
  304. package/node_modules/@kya-os/contracts/package.json +185 -0
  305. package/node_modules/@kya-os/contracts/parity-vectors/delegation-conformance.json +265 -0
  306. package/node_modules/@kya-os/contracts/parity-vectors/did-key.json +134 -0
  307. package/node_modules/@kya-os/contracts/parity-vectors/index.ts +253 -0
  308. package/node_modules/@kya-os/contracts/parity-vectors/scope-matching.json +330 -0
  309. package/node_modules/@kya-os/contracts/parity-vectors/vc-jwt.json +210 -0
  310. package/node_modules/@kya-os/contracts/parity-vectors/workbench/artifact-bindings.v1.json +1005 -0
  311. package/node_modules/@kya-os/contracts/parity-vectors/workbench/graph-interfaces.v1.json +1967 -0
  312. package/node_modules/@kya-os/contracts/parity-vectors/workbench/linear-installation.v1.json +75 -0
  313. package/node_modules/@kya-os/contracts/parity-vectors/workbench/task-status-projection.v1.json +591 -0
  314. package/node_modules/@kya-os/contracts/parity-vectors/workbench/tracker-document-upgrade.v1.json +516 -0
  315. package/node_modules/zod/LICENSE +21 -0
  316. package/node_modules/zod/README.md +208 -0
  317. package/node_modules/zod/dist/cjs/index.js +22 -0
  318. package/node_modules/zod/dist/cjs/package.json +3 -0
  319. package/node_modules/zod/dist/cjs/v3/ZodError.js +137 -0
  320. package/node_modules/zod/dist/cjs/v3/benchmarks/datetime.js +54 -0
  321. package/node_modules/zod/dist/cjs/v3/benchmarks/discriminatedUnion.js +79 -0
  322. package/node_modules/zod/dist/cjs/v3/benchmarks/index.js +59 -0
  323. package/node_modules/zod/dist/cjs/v3/benchmarks/ipv4.js +54 -0
  324. package/node_modules/zod/dist/cjs/v3/benchmarks/object.js +70 -0
  325. package/node_modules/zod/dist/cjs/v3/benchmarks/primitives.js +159 -0
  326. package/node_modules/zod/dist/cjs/v3/benchmarks/realworld.js +56 -0
  327. package/node_modules/zod/dist/cjs/v3/benchmarks/string.js +55 -0
  328. package/node_modules/zod/dist/cjs/v3/benchmarks/union.js +79 -0
  329. package/node_modules/zod/dist/cjs/v3/errors.js +17 -0
  330. package/node_modules/zod/dist/cjs/v3/external.js +22 -0
  331. package/node_modules/zod/dist/cjs/v3/helpers/enumUtil.js +2 -0
  332. package/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js +9 -0
  333. package/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js +124 -0
  334. package/node_modules/zod/dist/cjs/v3/helpers/partialUtil.js +2 -0
  335. package/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js +2 -0
  336. package/node_modules/zod/dist/cjs/v3/helpers/util.js +137 -0
  337. package/node_modules/zod/dist/cjs/v3/index.js +33 -0
  338. package/node_modules/zod/dist/cjs/v3/locales/en.js +109 -0
  339. package/node_modules/zod/dist/cjs/v3/standard-schema.js +2 -0
  340. package/node_modules/zod/dist/cjs/v3/tests/Mocker.js +57 -0
  341. package/node_modules/zod/dist/cjs/v3/types.js +3773 -0
  342. package/node_modules/zod/dist/cjs/v4/classic/checks.js +32 -0
  343. package/node_modules/zod/dist/cjs/v4/classic/coerce.js +47 -0
  344. package/node_modules/zod/dist/cjs/v4/classic/compat.js +63 -0
  345. package/node_modules/zod/dist/cjs/v4/classic/errors.js +67 -0
  346. package/node_modules/zod/dist/cjs/v4/classic/external.js +69 -0
  347. package/node_modules/zod/dist/cjs/v4/classic/index.js +33 -0
  348. package/node_modules/zod/dist/cjs/v4/classic/iso.js +60 -0
  349. package/node_modules/zod/dist/cjs/v4/classic/parse.js +32 -0
  350. package/node_modules/zod/dist/cjs/v4/classic/schemas.js +1100 -0
  351. package/node_modules/zod/dist/cjs/v4/core/api.js +1021 -0
  352. package/node_modules/zod/dist/cjs/v4/core/checks.js +580 -0
  353. package/node_modules/zod/dist/cjs/v4/core/config.js +10 -0
  354. package/node_modules/zod/dist/cjs/v4/core/core.js +63 -0
  355. package/node_modules/zod/dist/cjs/v4/core/doc.js +39 -0
  356. package/node_modules/zod/dist/cjs/v4/core/errors.js +222 -0
  357. package/node_modules/zod/dist/cjs/v4/core/function.js +102 -0
  358. package/node_modules/zod/dist/cjs/v4/core/index.js +44 -0
  359. package/node_modules/zod/dist/cjs/v4/core/json-schema.js +2 -0
  360. package/node_modules/zod/dist/cjs/v4/core/parse.js +87 -0
  361. package/node_modules/zod/dist/cjs/v4/core/regexes.js +103 -0
  362. package/node_modules/zod/dist/cjs/v4/core/registries.js +47 -0
  363. package/node_modules/zod/dist/cjs/v4/core/schemas.js +1719 -0
  364. package/node_modules/zod/dist/cjs/v4/core/standard-schema.js +2 -0
  365. package/node_modules/zod/dist/cjs/v4/core/to-json-schema.js +833 -0
  366. package/node_modules/zod/dist/cjs/v4/core/util.js +537 -0
  367. package/node_modules/zod/dist/cjs/v4/core/versions.js +8 -0
  368. package/node_modules/zod/dist/cjs/v4/core/zsf.js +172 -0
  369. package/node_modules/zod/dist/cjs/v4/index.js +22 -0
  370. package/node_modules/zod/dist/cjs/v4/locales/ar.js +142 -0
  371. package/node_modules/zod/dist/cjs/v4/locales/az.js +141 -0
  372. package/node_modules/zod/dist/cjs/v4/locales/be.js +190 -0
  373. package/node_modules/zod/dist/cjs/v4/locales/ca.js +144 -0
  374. package/node_modules/zod/dist/cjs/v4/locales/cs.js +161 -0
  375. package/node_modules/zod/dist/cjs/v4/locales/de.js +142 -0
  376. package/node_modules/zod/dist/cjs/v4/locales/en.js +145 -0
  377. package/node_modules/zod/dist/cjs/v4/locales/es.js +143 -0
  378. package/node_modules/zod/dist/cjs/v4/locales/fa.js +148 -0
  379. package/node_modules/zod/dist/cjs/v4/locales/fi.js +148 -0
  380. package/node_modules/zod/dist/cjs/v4/locales/fr-CA.js +143 -0
  381. package/node_modules/zod/dist/cjs/v4/locales/fr.js +142 -0
  382. package/node_modules/zod/dist/cjs/v4/locales/he.js +143 -0
  383. package/node_modules/zod/dist/cjs/v4/locales/hu.js +143 -0
  384. package/node_modules/zod/dist/cjs/v4/locales/id.js +142 -0
  385. package/node_modules/zod/dist/cjs/v4/locales/index.js +82 -0
  386. package/node_modules/zod/dist/cjs/v4/locales/it.js +143 -0
  387. package/node_modules/zod/dist/cjs/v4/locales/ja.js +141 -0
  388. package/node_modules/zod/dist/cjs/v4/locales/kh.js +143 -0
  389. package/node_modules/zod/dist/cjs/v4/locales/ko.js +147 -0
  390. package/node_modules/zod/dist/cjs/v4/locales/mk.js +144 -0
  391. package/node_modules/zod/dist/cjs/v4/locales/ms.js +142 -0
  392. package/node_modules/zod/dist/cjs/v4/locales/nl.js +143 -0
  393. package/node_modules/zod/dist/cjs/v4/locales/no.js +142 -0
  394. package/node_modules/zod/dist/cjs/v4/locales/ota.js +143 -0
  395. package/node_modules/zod/dist/cjs/v4/locales/pl.js +143 -0
  396. package/node_modules/zod/dist/cjs/v4/locales/ps.js +148 -0
  397. package/node_modules/zod/dist/cjs/v4/locales/pt.js +142 -0
  398. package/node_modules/zod/dist/cjs/v4/locales/ru.js +190 -0
  399. package/node_modules/zod/dist/cjs/v4/locales/sl.js +143 -0
  400. package/node_modules/zod/dist/cjs/v4/locales/sv.js +144 -0
  401. package/node_modules/zod/dist/cjs/v4/locales/ta.js +143 -0
  402. package/node_modules/zod/dist/cjs/v4/locales/th.js +143 -0
  403. package/node_modules/zod/dist/cjs/v4/locales/tr.js +143 -0
  404. package/node_modules/zod/dist/cjs/v4/locales/ua.js +143 -0
  405. package/node_modules/zod/dist/cjs/v4/locales/ur.js +143 -0
  406. package/node_modules/zod/dist/cjs/v4/locales/vi.js +142 -0
  407. package/node_modules/zod/dist/cjs/v4/locales/zh-CN.js +142 -0
  408. package/node_modules/zod/dist/cjs/v4/locales/zh-TW.js +143 -0
  409. package/node_modules/zod/dist/cjs/v4/mini/checks.js +34 -0
  410. package/node_modules/zod/dist/cjs/v4/mini/coerce.js +47 -0
  411. package/node_modules/zod/dist/cjs/v4/mini/external.js +61 -0
  412. package/node_modules/zod/dist/cjs/v4/mini/index.js +32 -0
  413. package/node_modules/zod/dist/cjs/v4/mini/iso.js +60 -0
  414. package/node_modules/zod/dist/cjs/v4/mini/parse.js +8 -0
  415. package/node_modules/zod/dist/cjs/v4/mini/schemas.js +831 -0
  416. package/node_modules/zod/dist/esm/index.js +3 -0
  417. package/node_modules/zod/dist/esm/package.json +3 -0
  418. package/node_modules/zod/dist/esm/v3/ZodError.js +132 -0
  419. package/node_modules/zod/dist/esm/v3/benchmarks/datetime.js +49 -0
  420. package/node_modules/zod/dist/esm/v3/benchmarks/discriminatedUnion.js +74 -0
  421. package/node_modules/zod/dist/esm/v3/benchmarks/index.js +54 -0
  422. package/node_modules/zod/dist/esm/v3/benchmarks/ipv4.js +49 -0
  423. package/node_modules/zod/dist/esm/v3/benchmarks/object.js +65 -0
  424. package/node_modules/zod/dist/esm/v3/benchmarks/primitives.js +154 -0
  425. package/node_modules/zod/dist/esm/v3/benchmarks/realworld.js +51 -0
  426. package/node_modules/zod/dist/esm/v3/benchmarks/string.js +50 -0
  427. package/node_modules/zod/dist/esm/v3/benchmarks/union.js +74 -0
  428. package/node_modules/zod/dist/esm/v3/errors.js +9 -0
  429. package/node_modules/zod/dist/esm/v3/external.js +6 -0
  430. package/node_modules/zod/dist/esm/v3/helpers/enumUtil.js +1 -0
  431. package/node_modules/zod/dist/esm/v3/helpers/errorUtil.js +6 -0
  432. package/node_modules/zod/dist/esm/v3/helpers/parseUtil.js +109 -0
  433. package/node_modules/zod/dist/esm/v3/helpers/partialUtil.js +1 -0
  434. package/node_modules/zod/dist/esm/v3/helpers/typeAliases.js +1 -0
  435. package/node_modules/zod/dist/esm/v3/helpers/util.js +133 -0
  436. package/node_modules/zod/dist/esm/v3/index.js +4 -0
  437. package/node_modules/zod/dist/esm/v3/locales/en.js +107 -0
  438. package/node_modules/zod/dist/esm/v3/standard-schema.js +1 -0
  439. package/node_modules/zod/dist/esm/v3/tests/Mocker.js +53 -0
  440. package/node_modules/zod/dist/esm/v3/types.js +3691 -0
  441. package/node_modules/zod/dist/esm/v4/classic/checks.js +1 -0
  442. package/node_modules/zod/dist/esm/v4/classic/coerce.js +17 -0
  443. package/node_modules/zod/dist/esm/v4/classic/compat.js +33 -0
  444. package/node_modules/zod/dist/esm/v4/classic/errors.js +41 -0
  445. package/node_modules/zod/dist/esm/v4/classic/external.js +18 -0
  446. package/node_modules/zod/dist/esm/v4/classic/index.js +4 -0
  447. package/node_modules/zod/dist/esm/v4/classic/iso.js +30 -0
  448. package/node_modules/zod/dist/esm/v4/classic/parse.js +6 -0
  449. package/node_modules/zod/dist/esm/v4/classic/schemas.js +998 -0
  450. package/node_modules/zod/dist/esm/v4/core/api.js +889 -0
  451. package/node_modules/zod/dist/esm/v4/core/checks.js +554 -0
  452. package/node_modules/zod/dist/esm/v4/core/config.js +6 -0
  453. package/node_modules/zod/dist/esm/v4/core/core.js +57 -0
  454. package/node_modules/zod/dist/esm/v4/core/doc.js +35 -0
  455. package/node_modules/zod/dist/esm/v4/core/errors.js +191 -0
  456. package/node_modules/zod/dist/esm/v4/core/function.js +75 -0
  457. package/node_modules/zod/dist/esm/v4/core/index.js +15 -0
  458. package/node_modules/zod/dist/esm/v4/core/json-schema.js +1 -0
  459. package/node_modules/zod/dist/esm/v4/core/parse.js +57 -0
  460. package/node_modules/zod/dist/esm/v4/core/regexes.js +95 -0
  461. package/node_modules/zod/dist/esm/v4/core/registries.js +42 -0
  462. package/node_modules/zod/dist/esm/v4/core/schemas.js +1688 -0
  463. package/node_modules/zod/dist/esm/v4/core/standard-schema.js +1 -0
  464. package/node_modules/zod/dist/esm/v4/core/to-json-schema.js +828 -0
  465. package/node_modules/zod/dist/esm/v4/core/util.js +491 -0
  466. package/node_modules/zod/dist/esm/v4/core/versions.js +5 -0
  467. package/node_modules/zod/dist/esm/v4/core/zsf.js +171 -0
  468. package/node_modules/zod/dist/esm/v4/index.js +3 -0
  469. package/node_modules/zod/dist/esm/v4/locales/ar.js +116 -0
  470. package/node_modules/zod/dist/esm/v4/locales/az.js +115 -0
  471. package/node_modules/zod/dist/esm/v4/locales/be.js +164 -0
  472. package/node_modules/zod/dist/esm/v4/locales/ca.js +118 -0
  473. package/node_modules/zod/dist/esm/v4/locales/cs.js +135 -0
  474. package/node_modules/zod/dist/esm/v4/locales/de.js +116 -0
  475. package/node_modules/zod/dist/esm/v4/locales/en.js +117 -0
  476. package/node_modules/zod/dist/esm/v4/locales/es.js +117 -0
  477. package/node_modules/zod/dist/esm/v4/locales/fa.js +122 -0
  478. package/node_modules/zod/dist/esm/v4/locales/fi.js +122 -0
  479. package/node_modules/zod/dist/esm/v4/locales/fr-CA.js +117 -0
  480. package/node_modules/zod/dist/esm/v4/locales/fr.js +116 -0
  481. package/node_modules/zod/dist/esm/v4/locales/he.js +117 -0
  482. package/node_modules/zod/dist/esm/v4/locales/hu.js +117 -0
  483. package/node_modules/zod/dist/esm/v4/locales/id.js +116 -0
  484. package/node_modules/zod/dist/esm/v4/locales/index.js +38 -0
  485. package/node_modules/zod/dist/esm/v4/locales/it.js +117 -0
  486. package/node_modules/zod/dist/esm/v4/locales/ja.js +115 -0
  487. package/node_modules/zod/dist/esm/v4/locales/kh.js +117 -0
  488. package/node_modules/zod/dist/esm/v4/locales/ko.js +121 -0
  489. package/node_modules/zod/dist/esm/v4/locales/mk.js +118 -0
  490. package/node_modules/zod/dist/esm/v4/locales/ms.js +116 -0
  491. package/node_modules/zod/dist/esm/v4/locales/nl.js +117 -0
  492. package/node_modules/zod/dist/esm/v4/locales/no.js +116 -0
  493. package/node_modules/zod/dist/esm/v4/locales/ota.js +117 -0
  494. package/node_modules/zod/dist/esm/v4/locales/pl.js +117 -0
  495. package/node_modules/zod/dist/esm/v4/locales/ps.js +122 -0
  496. package/node_modules/zod/dist/esm/v4/locales/pt.js +116 -0
  497. package/node_modules/zod/dist/esm/v4/locales/ru.js +164 -0
  498. package/node_modules/zod/dist/esm/v4/locales/sl.js +117 -0
  499. package/node_modules/zod/dist/esm/v4/locales/sv.js +118 -0
  500. package/node_modules/zod/dist/esm/v4/locales/ta.js +117 -0
  501. package/node_modules/zod/dist/esm/v4/locales/th.js +117 -0
  502. package/node_modules/zod/dist/esm/v4/locales/tr.js +115 -0
  503. package/node_modules/zod/dist/esm/v4/locales/ua.js +117 -0
  504. package/node_modules/zod/dist/esm/v4/locales/ur.js +117 -0
  505. package/node_modules/zod/dist/esm/v4/locales/vi.js +116 -0
  506. package/node_modules/zod/dist/esm/v4/locales/zh-CN.js +116 -0
  507. package/node_modules/zod/dist/esm/v4/locales/zh-TW.js +117 -0
  508. package/node_modules/zod/dist/esm/v4/mini/checks.js +1 -0
  509. package/node_modules/zod/dist/esm/v4/mini/coerce.js +17 -0
  510. package/node_modules/zod/dist/esm/v4/mini/external.js +13 -0
  511. package/node_modules/zod/dist/esm/v4/mini/index.js +3 -0
  512. package/node_modules/zod/dist/esm/v4/mini/iso.js +30 -0
  513. package/node_modules/zod/dist/esm/v4/mini/parse.js +1 -0
  514. package/node_modules/zod/dist/esm/v4/mini/schemas.js +725 -0
  515. package/node_modules/zod/dist/types/index.d.ts +3 -0
  516. package/node_modules/zod/dist/types/package.json +3 -0
  517. package/node_modules/zod/dist/types/v3/ZodError.d.ts +164 -0
  518. package/node_modules/zod/dist/types/v3/benchmarks/datetime.d.ts +5 -0
  519. package/node_modules/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +5 -0
  520. package/node_modules/zod/dist/types/v3/benchmarks/index.d.ts +1 -0
  521. package/node_modules/zod/dist/types/v3/benchmarks/ipv4.d.ts +5 -0
  522. package/node_modules/zod/dist/types/v3/benchmarks/object.d.ts +5 -0
  523. package/node_modules/zod/dist/types/v3/benchmarks/primitives.d.ts +5 -0
  524. package/node_modules/zod/dist/types/v3/benchmarks/realworld.d.ts +5 -0
  525. package/node_modules/zod/dist/types/v3/benchmarks/string.d.ts +5 -0
  526. package/node_modules/zod/dist/types/v3/benchmarks/union.d.ts +5 -0
  527. package/node_modules/zod/dist/types/v3/errors.d.ts +5 -0
  528. package/node_modules/zod/dist/types/v3/external.d.ts +6 -0
  529. package/node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts +8 -0
  530. package/node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts +9 -0
  531. package/node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts +78 -0
  532. package/node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts +8 -0
  533. package/node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts +2 -0
  534. package/node_modules/zod/dist/types/v3/helpers/util.d.ts +85 -0
  535. package/node_modules/zod/dist/types/v3/index.d.ts +4 -0
  536. package/node_modules/zod/dist/types/v3/locales/en.d.ts +3 -0
  537. package/node_modules/zod/dist/types/v3/standard-schema.d.ts +102 -0
  538. package/node_modules/zod/dist/types/v3/tests/Mocker.d.ts +17 -0
  539. package/node_modules/zod/dist/types/v3/types.d.ts +1031 -0
  540. package/node_modules/zod/dist/types/v4/classic/checks.d.ts +1 -0
  541. package/node_modules/zod/dist/types/v4/classic/coerce.d.ts +17 -0
  542. package/node_modules/zod/dist/types/v4/classic/compat.d.ts +48 -0
  543. package/node_modules/zod/dist/types/v4/classic/errors.d.ts +30 -0
  544. package/node_modules/zod/dist/types/v4/classic/external.d.ts +13 -0
  545. package/node_modules/zod/dist/types/v4/classic/index.d.ts +4 -0
  546. package/node_modules/zod/dist/types/v4/classic/iso.d.ts +22 -0
  547. package/node_modules/zod/dist/types/v4/classic/parse.d.ts +23 -0
  548. package/node_modules/zod/dist/types/v4/classic/schemas.d.ts +624 -0
  549. package/node_modules/zod/dist/types/v4/core/api.d.ts +281 -0
  550. package/node_modules/zod/dist/types/v4/core/checks.d.ts +277 -0
  551. package/node_modules/zod/dist/types/v4/core/config.d.ts +9 -0
  552. package/node_modules/zod/dist/types/v4/core/core.d.ts +47 -0
  553. package/node_modules/zod/dist/types/v4/core/doc.d.ts +14 -0
  554. package/node_modules/zod/dist/types/v4/core/errors.d.ts +204 -0
  555. package/node_modules/zod/dist/types/v4/core/function.d.ts +52 -0
  556. package/node_modules/zod/dist/types/v4/core/index.d.ts +15 -0
  557. package/node_modules/zod/dist/types/v4/core/json-schema.d.ts +87 -0
  558. package/node_modules/zod/dist/types/v4/core/parse.d.ts +25 -0
  559. package/node_modules/zod/dist/types/v4/core/regexes.d.ts +62 -0
  560. package/node_modules/zod/dist/types/v4/core/registries.d.ts +39 -0
  561. package/node_modules/zod/dist/types/v4/core/schemas.d.ts +1005 -0
  562. package/node_modules/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
  563. package/node_modules/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
  564. package/node_modules/zod/dist/types/v4/core/util.d.ts +183 -0
  565. package/node_modules/zod/dist/types/v4/core/versions.d.ts +5 -0
  566. package/node_modules/zod/dist/types/v4/core/zsf.d.ts +91 -0
  567. package/node_modules/zod/dist/types/v4/index.d.ts +3 -0
  568. package/node_modules/zod/dist/types/v4/locales/ar.d.ts +4 -0
  569. package/node_modules/zod/dist/types/v4/locales/az.d.ts +4 -0
  570. package/node_modules/zod/dist/types/v4/locales/be.d.ts +4 -0
  571. package/node_modules/zod/dist/types/v4/locales/ca.d.ts +4 -0
  572. package/node_modules/zod/dist/types/v4/locales/cs.d.ts +4 -0
  573. package/node_modules/zod/dist/types/v4/locales/de.d.ts +4 -0
  574. package/node_modules/zod/dist/types/v4/locales/en.d.ts +5 -0
  575. package/node_modules/zod/dist/types/v4/locales/es.d.ts +4 -0
  576. package/node_modules/zod/dist/types/v4/locales/fa.d.ts +4 -0
  577. package/node_modules/zod/dist/types/v4/locales/fi.d.ts +4 -0
  578. package/node_modules/zod/dist/types/v4/locales/fr-CA.d.ts +4 -0
  579. package/node_modules/zod/dist/types/v4/locales/fr.d.ts +4 -0
  580. package/node_modules/zod/dist/types/v4/locales/he.d.ts +4 -0
  581. package/node_modules/zod/dist/types/v4/locales/hu.d.ts +4 -0
  582. package/node_modules/zod/dist/types/v4/locales/id.d.ts +4 -0
  583. package/node_modules/zod/dist/types/v4/locales/index.d.ts +38 -0
  584. package/node_modules/zod/dist/types/v4/locales/it.d.ts +4 -0
  585. package/node_modules/zod/dist/types/v4/locales/ja.d.ts +4 -0
  586. package/node_modules/zod/dist/types/v4/locales/kh.d.ts +4 -0
  587. package/node_modules/zod/dist/types/v4/locales/ko.d.ts +4 -0
  588. package/node_modules/zod/dist/types/v4/locales/mk.d.ts +4 -0
  589. package/node_modules/zod/dist/types/v4/locales/ms.d.ts +4 -0
  590. package/node_modules/zod/dist/types/v4/locales/nl.d.ts +4 -0
  591. package/node_modules/zod/dist/types/v4/locales/no.d.ts +4 -0
  592. package/node_modules/zod/dist/types/v4/locales/ota.d.ts +4 -0
  593. package/node_modules/zod/dist/types/v4/locales/pl.d.ts +4 -0
  594. package/node_modules/zod/dist/types/v4/locales/ps.d.ts +4 -0
  595. package/node_modules/zod/dist/types/v4/locales/pt.d.ts +4 -0
  596. package/node_modules/zod/dist/types/v4/locales/ru.d.ts +4 -0
  597. package/node_modules/zod/dist/types/v4/locales/sl.d.ts +4 -0
  598. package/node_modules/zod/dist/types/v4/locales/sv.d.ts +4 -0
  599. package/node_modules/zod/dist/types/v4/locales/ta.d.ts +4 -0
  600. package/node_modules/zod/dist/types/v4/locales/th.d.ts +4 -0
  601. package/node_modules/zod/dist/types/v4/locales/tr.d.ts +5 -0
  602. package/node_modules/zod/dist/types/v4/locales/ua.d.ts +4 -0
  603. package/node_modules/zod/dist/types/v4/locales/ur.d.ts +4 -0
  604. package/node_modules/zod/dist/types/v4/locales/vi.d.ts +4 -0
  605. package/node_modules/zod/dist/types/v4/locales/zh-CN.d.ts +4 -0
  606. package/node_modules/zod/dist/types/v4/locales/zh-TW.d.ts +4 -0
  607. package/node_modules/zod/dist/types/v4/mini/checks.d.ts +1 -0
  608. package/node_modules/zod/dist/types/v4/mini/coerce.d.ts +7 -0
  609. package/node_modules/zod/dist/types/v4/mini/external.d.ts +11 -0
  610. package/node_modules/zod/dist/types/v4/mini/index.d.ts +3 -0
  611. package/node_modules/zod/dist/types/v4/mini/iso.d.ts +22 -0
  612. package/node_modules/zod/dist/types/v4/mini/parse.d.ts +1 -0
  613. package/node_modules/zod/dist/types/v4/mini/schemas.d.ts +351 -0
  614. package/node_modules/zod/package.json +120 -0
  615. package/node_modules/zod/v3/index.d.ts +3 -0
  616. package/node_modules/zod/v3/index.js +1 -0
  617. package/node_modules/zod/v4/core/index.d.ts +1 -0
  618. package/node_modules/zod/v4/core/index.js +1 -0
  619. package/node_modules/zod/v4/index.d.ts +3 -0
  620. package/node_modules/zod/v4/index.js +1 -0
  621. package/node_modules/zod/v4/locales/en.d.ts +2 -0
  622. package/node_modules/zod/v4/locales/en.js +2 -0
  623. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  624. package/node_modules/zod/v4/locales/index.js +1 -0
  625. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  626. package/node_modules/zod/v4-mini/index.js +1 -0
  627. package/package.json +31 -33
  628. package/skills/fix/INSTRUCTIONS.md +40 -0
  629. package/skills/fix/skill.json +8 -0
  630. package/skills/review/INSTRUCTIONS.md +49 -0
  631. package/skills/review/skill.json +8 -0
  632. package/dist/commands/build.d.ts +0 -5
  633. package/dist/commands/build.d.ts.map +0 -1
  634. package/dist/commands/build.js +0 -173
  635. package/dist/commands/build.js.map +0 -1
  636. package/dist/commands/check.d.ts +0 -6
  637. package/dist/commands/check.d.ts.map +0 -1
  638. package/dist/commands/check.js +0 -145
  639. package/dist/commands/check.js.map +0 -1
  640. package/dist/commands/checkpoint-init.d.ts +0 -32
  641. package/dist/commands/checkpoint-init.d.ts.map +0 -1
  642. package/dist/commands/checkpoint-init.js +0 -521
  643. package/dist/commands/checkpoint-init.js.map +0 -1
  644. package/dist/commands/claim.d.ts +0 -22
  645. package/dist/commands/claim.d.ts.map +0 -1
  646. package/dist/commands/claim.js +0 -315
  647. package/dist/commands/claim.js.map +0 -1
  648. package/dist/commands/dco.d.ts +0 -55
  649. package/dist/commands/dco.d.ts.map +0 -1
  650. package/dist/commands/dco.js +0 -280
  651. package/dist/commands/dco.js.map +0 -1
  652. package/dist/commands/demo.d.ts +0 -10
  653. package/dist/commands/demo.d.ts.map +0 -1
  654. package/dist/commands/demo.js +0 -584
  655. package/dist/commands/demo.js.map +0 -1
  656. package/dist/commands/dev.d.ts +0 -5
  657. package/dist/commands/dev.d.ts.map +0 -1
  658. package/dist/commands/dev.js +0 -77
  659. package/dist/commands/dev.js.map +0 -1
  660. package/dist/commands/doctor.d.ts +0 -11
  661. package/dist/commands/doctor.d.ts.map +0 -1
  662. package/dist/commands/doctor.js +0 -524
  663. package/dist/commands/doctor.js.map +0 -1
  664. package/dist/commands/env.d.ts +0 -2
  665. package/dist/commands/env.d.ts.map +0 -1
  666. package/dist/commands/env.js +0 -320
  667. package/dist/commands/env.js.map +0 -1
  668. package/dist/commands/identity.d.ts +0 -14
  669. package/dist/commands/identity.d.ts.map +0 -1
  670. package/dist/commands/identity.js +0 -204
  671. package/dist/commands/identity.js.map +0 -1
  672. package/dist/commands/init.d.ts +0 -21
  673. package/dist/commands/init.d.ts.map +0 -1
  674. package/dist/commands/init.js +0 -358
  675. package/dist/commands/init.js.map +0 -1
  676. package/dist/commands/receipts.d.ts +0 -22
  677. package/dist/commands/receipts.d.ts.map +0 -1
  678. package/dist/commands/receipts.js +0 -189
  679. package/dist/commands/receipts.js.map +0 -1
  680. package/dist/commands/register.d.ts +0 -34
  681. package/dist/commands/register.d.ts.map +0 -1
  682. package/dist/commands/register.js +0 -463
  683. package/dist/commands/register.js.map +0 -1
  684. package/dist/commands/rotate.d.ts +0 -13
  685. package/dist/commands/rotate.d.ts.map +0 -1
  686. package/dist/commands/rotate.js +0 -167
  687. package/dist/commands/rotate.js.map +0 -1
  688. package/dist/commands/start.d.ts +0 -5
  689. package/dist/commands/start.d.ts.map +0 -1
  690. package/dist/commands/start.js +0 -129
  691. package/dist/commands/start.js.map +0 -1
  692. package/dist/commands/status.d.ts +0 -9
  693. package/dist/commands/status.d.ts.map +0 -1
  694. package/dist/commands/status.js +0 -199
  695. package/dist/commands/status.js.map +0 -1
  696. package/dist/commands/verify.d.ts +0 -22
  697. package/dist/commands/verify.d.ts.map +0 -1
  698. package/dist/commands/verify.js +0 -491
  699. package/dist/commands/verify.js.map +0 -1
  700. package/dist/components/agent-avatar.d.ts +0 -87
  701. package/dist/components/agent-avatar.d.ts.map +0 -1
  702. package/dist/components/agent-avatar.js +0 -257
  703. package/dist/components/agent-avatar.js.map +0 -1
  704. package/dist/components/agent-card.d.ts +0 -14
  705. package/dist/components/agent-card.d.ts.map +0 -1
  706. package/dist/components/agent-card.js +0 -167
  707. package/dist/components/agent-card.js.map +0 -1
  708. package/dist/components/agent-table.d.ts +0 -31
  709. package/dist/components/agent-table.d.ts.map +0 -1
  710. package/dist/components/agent-table.js +0 -341
  711. package/dist/components/agent-table.js.map +0 -1
  712. package/dist/components/box.d.ts +0 -14
  713. package/dist/components/box.d.ts.map +0 -1
  714. package/dist/components/box.js +0 -222
  715. package/dist/components/box.js.map +0 -1
  716. package/dist/components/claim-experience.d.ts +0 -21
  717. package/dist/components/claim-experience.d.ts.map +0 -1
  718. package/dist/components/claim-experience.js +0 -138
  719. package/dist/components/claim-experience.js.map +0 -1
  720. package/dist/components/index.d.ts +0 -17
  721. package/dist/components/index.d.ts.map +0 -1
  722. package/dist/components/index.js +0 -18
  723. package/dist/components/index.js.map +0 -1
  724. package/dist/components/messages.d.ts +0 -62
  725. package/dist/components/messages.d.ts.map +0 -1
  726. package/dist/components/messages.js +0 -146
  727. package/dist/components/messages.js.map +0 -1
  728. package/dist/components/types.d.ts +0 -51
  729. package/dist/components/types.d.ts.map +0 -1
  730. package/dist/components/types.js +0 -5
  731. package/dist/components/types.js.map +0 -1
  732. package/dist/components/welcome.d.ts +0 -46
  733. package/dist/components/welcome.d.ts.map +0 -1
  734. package/dist/components/welcome.js +0 -182
  735. package/dist/components/welcome.js.map +0 -1
  736. package/dist/dco.d.ts +0 -4
  737. package/dist/dco.d.ts.map +0 -1
  738. package/dist/dco.js +0 -21
  739. package/dist/dco.js.map +0 -1
  740. package/dist/effects/animation-engine.d.ts +0 -173
  741. package/dist/effects/animation-engine.d.ts.map +0 -1
  742. package/dist/effects/animation-engine.js +0 -254
  743. package/dist/effects/animation-engine.js.map +0 -1
  744. package/dist/effects/cli-integration.d.ts +0 -86
  745. package/dist/effects/cli-integration.d.ts.map +0 -1
  746. package/dist/effects/cli-integration.js +0 -310
  747. package/dist/effects/cli-integration.js.map +0 -1
  748. package/dist/effects/config.d.ts +0 -95
  749. package/dist/effects/config.d.ts.map +0 -1
  750. package/dist/effects/config.js +0 -216
  751. package/dist/effects/config.js.map +0 -1
  752. package/dist/effects/effect-runner.d.ts +0 -69
  753. package/dist/effects/effect-runner.d.ts.map +0 -1
  754. package/dist/effects/effect-runner.js +0 -255
  755. package/dist/effects/effect-runner.js.map +0 -1
  756. package/dist/effects/gradient.d.ts +0 -131
  757. package/dist/effects/gradient.d.ts.map +0 -1
  758. package/dist/effects/gradient.js +0 -236
  759. package/dist/effects/gradient.js.map +0 -1
  760. package/dist/effects/implementations/beams.d.ts +0 -80
  761. package/dist/effects/implementations/beams.d.ts.map +0 -1
  762. package/dist/effects/implementations/beams.js +0 -221
  763. package/dist/effects/implementations/beams.js.map +0 -1
  764. package/dist/effects/implementations/blackhole.d.ts +0 -98
  765. package/dist/effects/implementations/blackhole.d.ts.map +0 -1
  766. package/dist/effects/implementations/blackhole.js +0 -421
  767. package/dist/effects/implementations/blackhole.js.map +0 -1
  768. package/dist/effects/implementations/burn.d.ts +0 -74
  769. package/dist/effects/implementations/burn.d.ts.map +0 -1
  770. package/dist/effects/implementations/burn.js +0 -234
  771. package/dist/effects/implementations/burn.js.map +0 -1
  772. package/dist/effects/implementations/decrypt.d.ts +0 -115
  773. package/dist/effects/implementations/decrypt.d.ts.map +0 -1
  774. package/dist/effects/implementations/decrypt.js +0 -394
  775. package/dist/effects/implementations/decrypt.js.map +0 -1
  776. package/dist/effects/implementations/waves.d.ts +0 -78
  777. package/dist/effects/implementations/waves.d.ts.map +0 -1
  778. package/dist/effects/implementations/waves.js +0 -278
  779. package/dist/effects/implementations/waves.js.map +0 -1
  780. package/dist/effects/index.d.ts +0 -34
  781. package/dist/effects/index.d.ts.map +0 -1
  782. package/dist/effects/index.js +0 -114
  783. package/dist/effects/index.js.map +0 -1
  784. package/dist/effects/motion-engine.d.ts +0 -168
  785. package/dist/effects/motion-engine.d.ts.map +0 -1
  786. package/dist/effects/motion-engine.js +0 -353
  787. package/dist/effects/motion-engine.js.map +0 -1
  788. package/dist/effects/safe-executor.d.ts +0 -55
  789. package/dist/effects/safe-executor.d.ts.map +0 -1
  790. package/dist/effects/safe-executor.js +0 -210
  791. package/dist/effects/safe-executor.js.map +0 -1
  792. package/dist/effects/types.d.ts +0 -199
  793. package/dist/effects/types.d.ts.map +0 -1
  794. package/dist/effects/types.js +0 -80
  795. package/dist/effects/types.js.map +0 -1
  796. package/dist/effects/utils.d.ts +0 -104
  797. package/dist/effects/utils.d.ts.map +0 -1
  798. package/dist/effects/utils.js +0 -280
  799. package/dist/effects/utils.js.map +0 -1
  800. package/dist/index.d.ts +0 -4
  801. package/dist/index.js +0 -213
  802. package/dist/utils/api-response.d.ts +0 -96
  803. package/dist/utils/api-response.d.ts.map +0 -1
  804. package/dist/utils/api-response.js +0 -86
  805. package/dist/utils/api-response.js.map +0 -1
  806. package/dist/utils/checkpoint-api.d.ts +0 -86
  807. package/dist/utils/checkpoint-api.d.ts.map +0 -1
  808. package/dist/utils/checkpoint-api.js +0 -196
  809. package/dist/utils/checkpoint-api.js.map +0 -1
  810. package/dist/utils/checkpoint-env.d.ts +0 -23
  811. package/dist/utils/checkpoint-env.d.ts.map +0 -1
  812. package/dist/utils/checkpoint-env.js +0 -59
  813. package/dist/utils/checkpoint-env.js.map +0 -1
  814. package/dist/utils/checkpoint-scaffold.d.ts +0 -61
  815. package/dist/utils/checkpoint-scaffold.d.ts.map +0 -1
  816. package/dist/utils/checkpoint-scaffold.js +0 -268
  817. package/dist/utils/checkpoint-scaffold.js.map +0 -1
  818. package/dist/utils/cli-kit/browser.d.ts +0 -24
  819. package/dist/utils/cli-kit/browser.d.ts.map +0 -1
  820. package/dist/utils/cli-kit/browser.js +0 -58
  821. package/dist/utils/cli-kit/browser.js.map +0 -1
  822. package/dist/utils/cli-kit/claim-polling.d.ts +0 -18
  823. package/dist/utils/cli-kit/claim-polling.d.ts.map +0 -1
  824. package/dist/utils/cli-kit/claim-polling.js +0 -90
  825. package/dist/utils/cli-kit/claim-polling.js.map +0 -1
  826. package/dist/utils/cli-kit/diagnostics.d.ts +0 -9
  827. package/dist/utils/cli-kit/diagnostics.d.ts.map +0 -1
  828. package/dist/utils/cli-kit/diagnostics.js +0 -11
  829. package/dist/utils/cli-kit/diagnostics.js.map +0 -1
  830. package/dist/utils/cli-kit/fs-safe.d.ts +0 -14
  831. package/dist/utils/cli-kit/fs-safe.d.ts.map +0 -1
  832. package/dist/utils/cli-kit/fs-safe.js +0 -20
  833. package/dist/utils/cli-kit/fs-safe.js.map +0 -1
  834. package/dist/utils/cli-kit/index.d.ts +0 -15
  835. package/dist/utils/cli-kit/index.d.ts.map +0 -1
  836. package/dist/utils/cli-kit/index.js +0 -10
  837. package/dist/utils/cli-kit/index.js.map +0 -1
  838. package/dist/utils/cli-kit/json-file.d.ts +0 -21
  839. package/dist/utils/cli-kit/json-file.d.ts.map +0 -1
  840. package/dist/utils/cli-kit/json-file.js +0 -51
  841. package/dist/utils/cli-kit/json-file.js.map +0 -1
  842. package/dist/utils/cli-kit/marker-block.d.ts +0 -26
  843. package/dist/utils/cli-kit/marker-block.d.ts.map +0 -1
  844. package/dist/utils/cli-kit/marker-block.js +0 -61
  845. package/dist/utils/cli-kit/marker-block.js.map +0 -1
  846. package/dist/utils/cli-kit/paths.d.ts +0 -15
  847. package/dist/utils/cli-kit/paths.d.ts.map +0 -1
  848. package/dist/utils/cli-kit/paths.js +0 -21
  849. package/dist/utils/cli-kit/paths.js.map +0 -1
  850. package/dist/utils/cli-kit/secure-storage.d.ts +0 -14
  851. package/dist/utils/cli-kit/secure-storage.d.ts.map +0 -1
  852. package/dist/utils/cli-kit/secure-storage.js +0 -20
  853. package/dist/utils/cli-kit/secure-storage.js.map +0 -1
  854. package/dist/utils/cli-kit/step-report.d.ts +0 -16
  855. package/dist/utils/cli-kit/step-report.d.ts.map +0 -1
  856. package/dist/utils/cli-kit/step-report.js +0 -36
  857. package/dist/utils/cli-kit/step-report.js.map +0 -1
  858. package/dist/utils/dco/agent-metadata.d.ts +0 -24
  859. package/dist/utils/dco/agent-metadata.d.ts.map +0 -1
  860. package/dist/utils/dco/agent-metadata.js +0 -46
  861. package/dist/utils/dco/agent-metadata.js.map +0 -1
  862. package/dist/utils/dco/claude-config.d.ts +0 -55
  863. package/dist/utils/dco/claude-config.d.ts.map +0 -1
  864. package/dist/utils/dco/claude-config.js +0 -66
  865. package/dist/utils/dco/claude-config.js.map +0 -1
  866. package/dist/utils/dco/dispatch.d.ts +0 -59
  867. package/dist/utils/dco/dispatch.d.ts.map +0 -1
  868. package/dist/utils/dco/dispatch.js +0 -332
  869. package/dist/utils/dco/dispatch.js.map +0 -1
  870. package/dist/utils/dco/git-config.d.ts +0 -47
  871. package/dist/utils/dco/git-config.d.ts.map +0 -1
  872. package/dist/utils/dco/git-config.js +0 -161
  873. package/dist/utils/dco/git-config.js.map +0 -1
  874. package/dist/utils/dco/github.d.ts +0 -57
  875. package/dist/utils/dco/github.d.ts.map +0 -1
  876. package/dist/utils/dco/github.js +0 -165
  877. package/dist/utils/dco/github.js.map +0 -1
  878. package/dist/utils/dco/paths.d.ts +0 -9
  879. package/dist/utils/dco/paths.d.ts.map +0 -1
  880. package/dist/utils/dco/paths.js +0 -18
  881. package/dist/utils/dco/paths.js.map +0 -1
  882. package/dist/utils/dco/render.d.ts +0 -4
  883. package/dist/utils/dco/render.d.ts.map +0 -1
  884. package/dist/utils/dco/render.js +0 -35
  885. package/dist/utils/dco/render.js.map +0 -1
  886. package/dist/utils/dco/resolve-agent.d.ts +0 -54
  887. package/dist/utils/dco/resolve-agent.d.ts.map +0 -1
  888. package/dist/utils/dco/resolve-agent.js +0 -164
  889. package/dist/utils/dco/resolve-agent.js.map +0 -1
  890. package/dist/utils/dco/setup.d.ts +0 -50
  891. package/dist/utils/dco/setup.d.ts.map +0 -1
  892. package/dist/utils/dco/setup.js +0 -842
  893. package/dist/utils/dco/setup.js.map +0 -1
  894. package/dist/utils/dco/ssh-key.d.ts +0 -56
  895. package/dist/utils/dco/ssh-key.d.ts.map +0 -1
  896. package/dist/utils/dco/ssh-key.js +0 -197
  897. package/dist/utils/dco/ssh-key.js.map +0 -1
  898. package/dist/utils/dco/status.d.ts +0 -12
  899. package/dist/utils/dco/status.d.ts.map +0 -1
  900. package/dist/utils/dco/status.js +0 -238
  901. package/dist/utils/dco/status.js.map +0 -1
  902. package/dist/utils/dco/verify.d.ts +0 -114
  903. package/dist/utils/dco/verify.d.ts.map +0 -1
  904. package/dist/utils/dco/verify.js +0 -383
  905. package/dist/utils/dco/verify.js.map +0 -1
  906. package/dist/utils/env-manager.d.ts +0 -122
  907. package/dist/utils/env-manager.d.ts.map +0 -1
  908. package/dist/utils/env-manager.js +0 -514
  909. package/dist/utils/env-manager.js.map +0 -1
  910. package/dist/utils/gitignore.d.ts +0 -17
  911. package/dist/utils/gitignore.d.ts.map +0 -1
  912. package/dist/utils/gitignore.js +0 -40
  913. package/dist/utils/gitignore.js.map +0 -1
  914. package/dist/utils/identity-heal.d.ts +0 -16
  915. package/dist/utils/identity-heal.d.ts.map +0 -1
  916. package/dist/utils/identity-heal.js +0 -37
  917. package/dist/utils/identity-heal.js.map +0 -1
  918. package/dist/utils/identity-manager.d.ts +0 -41
  919. package/dist/utils/identity-manager.d.ts.map +0 -1
  920. package/dist/utils/identity-manager.js +0 -159
  921. package/dist/utils/identity-manager.js.map +0 -1
  922. package/dist/utils/kta-api.d.ts +0 -103
  923. package/dist/utils/kta-api.d.ts.map +0 -1
  924. package/dist/utils/kta-api.js +0 -149
  925. package/dist/utils/kta-api.js.map +0 -1
  926. package/dist/utils/platform-detector.d.ts +0 -54
  927. package/dist/utils/platform-detector.d.ts.map +0 -1
  928. package/dist/utils/platform-detector.js +0 -197
  929. package/dist/utils/platform-detector.js.map +0 -1
  930. package/dist/utils/poll.d.ts +0 -50
  931. package/dist/utils/poll.d.ts.map +0 -1
  932. package/dist/utils/poll.js +0 -73
  933. package/dist/utils/poll.js.map +0 -1
  934. package/dist/utils/prompts.d.ts +0 -24
  935. package/dist/utils/prompts.d.ts.map +0 -1
  936. package/dist/utils/prompts.js +0 -160
  937. package/dist/utils/prompts.js.map +0 -1
  938. package/dist/utils/screen-manager.d.ts +0 -10
  939. package/dist/utils/screen-manager.d.ts.map +0 -1
  940. package/dist/utils/screen-manager.js +0 -54
  941. package/dist/utils/screen-manager.js.map +0 -1
  942. package/dist/utils/time.d.ts +0 -19
  943. package/dist/utils/time.d.ts.map +0 -1
  944. package/dist/utils/time.js +0 -30
  945. package/dist/utils/time.js.map +0 -1
@@ -0,0 +1,1369 @@
1
+ /**
2
+ * MCP-I Tool Protection Specification
3
+ *
4
+ * Core types for tool protection with delegation requirements.
5
+ *
6
+ * Consent Flow: type='none' → 2 screens, others → 3 screens (Auth→Consent→Success).
7
+ * DelegationCredential (VC) is created when user confirms on Consent Screen.
8
+ *
9
+ * @module @kya-os/contracts/tool-protection
10
+ */
11
+ import { z } from 'zod';
12
+ /**
13
+ * Authorization Requirement - what auth is needed BEFORE consent screen.
14
+ *
15
+ * Types: none (2 screens), oauth/password/mdl/idv (3 screens), verifiable_credential (future).
16
+ * The VC output is always a DelegationCredential created on consent confirmation.
17
+ */
18
+ export type AuthorizationRequirement = {
19
+ /**
20
+ * @deprecated Use 'oauth2' instead. Will be removed in v2.0.0.
21
+ */
22
+ type: 'oauth';
23
+ provider: string;
24
+ requiredScopes?: string[];
25
+ } | {
26
+ /** OAuth 2.0 provider authentication (canonical) */
27
+ type: 'oauth2';
28
+ provider: string;
29
+ requiredScopes?: string[];
30
+ } | {
31
+ type: 'password';
32
+ provider: string;
33
+ } | {
34
+ type: 'mdl';
35
+ issuer: string;
36
+ credentialType?: string;
37
+ } | {
38
+ type: 'idv';
39
+ provider: string;
40
+ verificationLevel?: 'basic' | 'enhanced' | 'loa3';
41
+ } | {
42
+ /** Require user to present an existing VC */
43
+ type: 'verifiable_credential';
44
+ credentialType: string;
45
+ issuer?: string;
46
+ } | {
47
+ /**
48
+ * @deprecated Use 'verifiable_credential' instead. Will be removed in v2.0.0.
49
+ * This is an alias for 'verifiable_credential' for backward compatibility.
50
+ */
51
+ type: 'credential';
52
+ credentialType: string;
53
+ issuer?: string;
54
+ } | {
55
+ /** WebAuthn/Passkey authentication */
56
+ type: 'webauthn';
57
+ rpId?: string;
58
+ userVerification?: 'required' | 'preferred' | 'discouraged';
59
+ } | {
60
+ /** Sign-In with Ethereum (EIP-4361) */
61
+ type: 'siwe';
62
+ chainId?: number;
63
+ domain?: string;
64
+ } | {
65
+ /** API Key from per-user vault */
66
+ type: 'apikey';
67
+ envVarNames: string[];
68
+ headerMapping: Record<string, string>;
69
+ } | {
70
+ type: 'none';
71
+ };
72
+ /** Canonical authorization type values for type safety */
73
+ export declare const AUTHORIZATION_TYPES: {
74
+ /** @deprecated Use OAUTH2 instead. Will be removed in v2.0.0. */
75
+ readonly OAUTH: "oauth";
76
+ /** OAuth 2.0 provider authentication (canonical) */
77
+ readonly OAUTH2: "oauth2";
78
+ readonly PASSWORD: "password";
79
+ readonly MDL: "mdl";
80
+ readonly IDV: "idv";
81
+ readonly VERIFIABLE_CREDENTIAL: "verifiable_credential";
82
+ /** WebAuthn/Passkey authentication */
83
+ readonly WEBAUTHN: "webauthn";
84
+ /** Sign-In with Ethereum (EIP-4361) */
85
+ readonly SIWE: "siwe";
86
+ /** API Key from per-user vault */
87
+ readonly APIKEY: "apikey";
88
+ readonly NONE: "none";
89
+ };
90
+ export type AuthorizationType = (typeof AUTHORIZATION_TYPES)[keyof typeof AUTHORIZATION_TYPES];
91
+ /**
92
+ * Tool Protection Definition
93
+ *
94
+ * Defines the protection requirements for a tool as per MCP-I spec.
95
+ * This is the canonical definition that all implementations must follow.
96
+ */
97
+ export interface ToolProtection {
98
+ /**
99
+ * Whether this tool requires explicit delegation from the user
100
+ */
101
+ requiresDelegation: boolean;
102
+ /**
103
+ * The scopes required to execute this tool
104
+ * Format: "resource:action" (e.g., "files:read", "payment:send")
105
+ */
106
+ requiredScopes: string[];
107
+ /**
108
+ * Risk level classification for the tool
109
+ * Used to determine appropriate authorization flows
110
+ */
111
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
112
+ /**
113
+ * OAuth provider name for this tool (Phase 2+)
114
+ * If specified, this tool will use the specified OAuth provider.
115
+ * If not specified, provider will be resolved via fallback strategies.
116
+ * @example "github", "google", "microsoft"
117
+ * @deprecated Use `authorization` field instead. Will be removed in Phase 3.
118
+ */
119
+ oauthProvider?: string;
120
+ /**
121
+ * Authorization requirement for this tool
122
+ * If requiresDelegation=true, authorization must be specified (or inferred from legacy fields)
123
+ */
124
+ authorization?: AuthorizationRequirement;
125
+ }
126
+ /**
127
+ * Tool Protection Map
128
+ *
129
+ * A mapping of tool names to their protection configurations.
130
+ * This is how tool protections are typically stored and transmitted.
131
+ */
132
+ export type ToolProtectionMap = Record<string, ToolProtection>;
133
+ /**
134
+ * Partial tool protection for updates (all fields optional)
135
+ * Use this when accepting partial updates to tool protection settings
136
+ */
137
+ export type PartialToolProtection = Partial<ToolProtection>;
138
+ /**
139
+ * Tool protection with explicit optional fields
140
+ * Useful when TypeScript's Partial<T> doesn't preserve optional property access
141
+ * Supports explicit null values to clear fields
142
+ */
143
+ export type ToolProtectionUpdate = {
144
+ requiresDelegation?: boolean;
145
+ requiredScopes?: string[];
146
+ riskLevel?: 'low' | 'medium' | 'high' | 'critical';
147
+ oauthProvider?: string | null;
148
+ authorization?: AuthorizationRequirement | null;
149
+ };
150
+ /**
151
+ * Tool Protection Response
152
+ *
153
+ * The response format when querying for tool protections.
154
+ * Used by tool protection services and APIs.
155
+ */
156
+ export interface ToolProtectionResponse {
157
+ /**
158
+ * The tool protections keyed by tool name
159
+ */
160
+ toolProtections: ToolProtectionMap;
161
+ /**
162
+ * Optional metadata about the response
163
+ */
164
+ metadata?: {
165
+ /**
166
+ * When this configuration was last updated
167
+ */
168
+ lastUpdated?: string;
169
+ /**
170
+ * Version of the configuration
171
+ */
172
+ version?: string;
173
+ /**
174
+ * Source of the configuration
175
+ */
176
+ source?: string;
177
+ };
178
+ }
179
+ /**
180
+ * Delegation Required Error Data
181
+ *
182
+ * The standardized error data returned when a tool requires delegation
183
+ * but none was provided. This is part of the MCP-I error protocol.
184
+ */
185
+ export interface DelegationRequiredErrorData {
186
+ /**
187
+ * The name of the tool that requires delegation
188
+ */
189
+ toolName: string;
190
+ /**
191
+ * The scopes required for this tool
192
+ */
193
+ requiredScopes: string[];
194
+ /**
195
+ * URL where the user can provide consent/delegation
196
+ */
197
+ consentUrl?: string;
198
+ /**
199
+ * Alternative field for consent URL (for compatibility)
200
+ */
201
+ authorizationUrl?: string;
202
+ /**
203
+ * Additional context about why delegation is required
204
+ */
205
+ reason?: string;
206
+ }
207
+ /**
208
+ * Auth Required Error Data
209
+ *
210
+ * Machine-readable error returned when a tool requires per-user auth
211
+ * (vault secret, OAuth, credential) but none is configured and no
212
+ * static env fallback exists. MCP clients use this to present
213
+ * actionable guidance (e.g., "Add your PulseMCP API key" with a link).
214
+ *
215
+ * Closes VAULT-11
216
+ */
217
+ export interface AuthRequiredErrorData {
218
+ /** Discriminator — always "auth_required" */
219
+ error: 'auth_required';
220
+ /** Which auth mechanism is missing */
221
+ type: 'apikey' | 'oauth' | 'credential';
222
+ /** For apikey: which env vars are missing */
223
+ envVarNames?: string[];
224
+ /** Dashboard URL where the user can configure the missing auth */
225
+ configUrl: string;
226
+ /** Human-readable fallback message */
227
+ message: string;
228
+ }
229
+ export declare const AuthRequiredErrorDataSchema: z.ZodObject<{
230
+ error: z.ZodLiteral<"auth_required">;
231
+ type: z.ZodEnum<["apikey", "oauth", "credential"]>;
232
+ envVarNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
233
+ configUrl: z.ZodString;
234
+ message: z.ZodString;
235
+ }, "strip", z.ZodTypeAny, {
236
+ message: string;
237
+ type: "credential" | "oauth" | "apikey";
238
+ error: "auth_required";
239
+ configUrl: string;
240
+ envVarNames?: string[] | undefined;
241
+ }, {
242
+ message: string;
243
+ type: "credential" | "oauth" | "apikey";
244
+ error: "auth_required";
245
+ configUrl: string;
246
+ envVarNames?: string[] | undefined;
247
+ }>;
248
+ /**
249
+ * Error class thrown when required auth is missing and no fallback exists.
250
+ *
251
+ * Caught by the tool-call handler in agent.ts and serialized as a
252
+ * machine-readable MCP tool result so clients can present actionable UI.
253
+ */
254
+ export declare class AuthRequiredError extends Error {
255
+ readonly type: AuthRequiredErrorData['type'];
256
+ readonly envVarNames?: string[];
257
+ readonly configUrl: string;
258
+ constructor(opts: {
259
+ type: AuthRequiredErrorData['type'];
260
+ envVarNames?: string[];
261
+ configUrl: string;
262
+ message?: string;
263
+ });
264
+ /** Serialize to the wire format MCP clients expect */
265
+ toJSON(): AuthRequiredErrorData;
266
+ }
267
+ /**
268
+ * Legacy tool protection format (pre-authorization field)
269
+ * Used during migration period to support both old and new formats
270
+ */
271
+ export type LegacyToolProtection = Omit<ToolProtection, 'authorization'> & {
272
+ oauthProvider?: string;
273
+ };
274
+ /**
275
+ * Union type for both legacy and new formats
276
+ * Useful during migration period when accepting tool protection input
277
+ */
278
+ export type ToolProtectionInput = ToolProtection | LegacyToolProtection;
279
+ /**
280
+ * Zod Schemas for Validation
281
+ */
282
+ export declare const AuthorizationRequirementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
283
+ type: z.ZodLiteral<"oauth">;
284
+ provider: z.ZodString;
285
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ type: "oauth";
288
+ provider: string;
289
+ requiredScopes?: string[] | undefined;
290
+ }, {
291
+ type: "oauth";
292
+ provider: string;
293
+ requiredScopes?: string[] | undefined;
294
+ }>, z.ZodObject<{
295
+ type: z.ZodLiteral<"oauth2">;
296
+ provider: z.ZodString;
297
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ type: "oauth2";
300
+ provider: string;
301
+ requiredScopes?: string[] | undefined;
302
+ }, {
303
+ type: "oauth2";
304
+ provider: string;
305
+ requiredScopes?: string[] | undefined;
306
+ }>, z.ZodObject<{
307
+ type: z.ZodLiteral<"password">;
308
+ provider: z.ZodString;
309
+ }, "strip", z.ZodTypeAny, {
310
+ type: "password";
311
+ provider: string;
312
+ }, {
313
+ type: "password";
314
+ provider: string;
315
+ }>, z.ZodObject<{
316
+ type: z.ZodLiteral<"mdl">;
317
+ issuer: z.ZodString;
318
+ credentialType: z.ZodOptional<z.ZodString>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ type: "mdl";
321
+ issuer: string;
322
+ credentialType?: string | undefined;
323
+ }, {
324
+ type: "mdl";
325
+ issuer: string;
326
+ credentialType?: string | undefined;
327
+ }>, z.ZodObject<{
328
+ type: z.ZodLiteral<"idv">;
329
+ provider: z.ZodString;
330
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: "idv";
333
+ provider: string;
334
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
335
+ }, {
336
+ type: "idv";
337
+ provider: string;
338
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
339
+ }>, z.ZodObject<{
340
+ type: z.ZodLiteral<"verifiable_credential">;
341
+ credentialType: z.ZodString;
342
+ issuer: z.ZodOptional<z.ZodString>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ type: "verifiable_credential";
345
+ credentialType: string;
346
+ issuer?: string | undefined;
347
+ }, {
348
+ type: "verifiable_credential";
349
+ credentialType: string;
350
+ issuer?: string | undefined;
351
+ }>, z.ZodObject<{
352
+ type: z.ZodLiteral<"credential">;
353
+ credentialType: z.ZodString;
354
+ issuer: z.ZodOptional<z.ZodString>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ type: "credential";
357
+ credentialType: string;
358
+ issuer?: string | undefined;
359
+ }, {
360
+ type: "credential";
361
+ credentialType: string;
362
+ issuer?: string | undefined;
363
+ }>, z.ZodObject<{
364
+ type: z.ZodLiteral<"webauthn">;
365
+ rpId: z.ZodOptional<z.ZodString>;
366
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ type: "webauthn";
369
+ rpId?: string | undefined;
370
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
371
+ }, {
372
+ type: "webauthn";
373
+ rpId?: string | undefined;
374
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
375
+ }>, z.ZodObject<{
376
+ type: z.ZodLiteral<"siwe">;
377
+ chainId: z.ZodOptional<z.ZodNumber>;
378
+ domain: z.ZodOptional<z.ZodString>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ type: "siwe";
381
+ chainId?: number | undefined;
382
+ domain?: string | undefined;
383
+ }, {
384
+ type: "siwe";
385
+ chainId?: number | undefined;
386
+ domain?: string | undefined;
387
+ }>, z.ZodObject<{
388
+ type: z.ZodLiteral<"apikey">;
389
+ envVarNames: z.ZodArray<z.ZodString, "many">;
390
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ type: "apikey";
393
+ envVarNames: string[];
394
+ headerMapping: Record<string, string>;
395
+ }, {
396
+ type: "apikey";
397
+ envVarNames: string[];
398
+ headerMapping: Record<string, string>;
399
+ }>, z.ZodObject<{
400
+ type: z.ZodLiteral<"none">;
401
+ }, "strip", z.ZodTypeAny, {
402
+ type: "none";
403
+ }, {
404
+ type: "none";
405
+ }>]>;
406
+ export declare const ToolProtectionSchema: z.ZodObject<{
407
+ requiresDelegation: z.ZodBoolean;
408
+ requiredScopes: z.ZodArray<z.ZodString, "many">;
409
+ riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
410
+ oauthProvider: z.ZodOptional<z.ZodString>;
411
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
412
+ type: z.ZodLiteral<"oauth">;
413
+ provider: z.ZodString;
414
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
+ }, "strip", z.ZodTypeAny, {
416
+ type: "oauth";
417
+ provider: string;
418
+ requiredScopes?: string[] | undefined;
419
+ }, {
420
+ type: "oauth";
421
+ provider: string;
422
+ requiredScopes?: string[] | undefined;
423
+ }>, z.ZodObject<{
424
+ type: z.ZodLiteral<"oauth2">;
425
+ provider: z.ZodString;
426
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ type: "oauth2";
429
+ provider: string;
430
+ requiredScopes?: string[] | undefined;
431
+ }, {
432
+ type: "oauth2";
433
+ provider: string;
434
+ requiredScopes?: string[] | undefined;
435
+ }>, z.ZodObject<{
436
+ type: z.ZodLiteral<"password">;
437
+ provider: z.ZodString;
438
+ }, "strip", z.ZodTypeAny, {
439
+ type: "password";
440
+ provider: string;
441
+ }, {
442
+ type: "password";
443
+ provider: string;
444
+ }>, z.ZodObject<{
445
+ type: z.ZodLiteral<"mdl">;
446
+ issuer: z.ZodString;
447
+ credentialType: z.ZodOptional<z.ZodString>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ type: "mdl";
450
+ issuer: string;
451
+ credentialType?: string | undefined;
452
+ }, {
453
+ type: "mdl";
454
+ issuer: string;
455
+ credentialType?: string | undefined;
456
+ }>, z.ZodObject<{
457
+ type: z.ZodLiteral<"idv">;
458
+ provider: z.ZodString;
459
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ type: "idv";
462
+ provider: string;
463
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
464
+ }, {
465
+ type: "idv";
466
+ provider: string;
467
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
468
+ }>, z.ZodObject<{
469
+ type: z.ZodLiteral<"verifiable_credential">;
470
+ credentialType: z.ZodString;
471
+ issuer: z.ZodOptional<z.ZodString>;
472
+ }, "strip", z.ZodTypeAny, {
473
+ type: "verifiable_credential";
474
+ credentialType: string;
475
+ issuer?: string | undefined;
476
+ }, {
477
+ type: "verifiable_credential";
478
+ credentialType: string;
479
+ issuer?: string | undefined;
480
+ }>, z.ZodObject<{
481
+ type: z.ZodLiteral<"credential">;
482
+ credentialType: z.ZodString;
483
+ issuer: z.ZodOptional<z.ZodString>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ type: "credential";
486
+ credentialType: string;
487
+ issuer?: string | undefined;
488
+ }, {
489
+ type: "credential";
490
+ credentialType: string;
491
+ issuer?: string | undefined;
492
+ }>, z.ZodObject<{
493
+ type: z.ZodLiteral<"webauthn">;
494
+ rpId: z.ZodOptional<z.ZodString>;
495
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ type: "webauthn";
498
+ rpId?: string | undefined;
499
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
500
+ }, {
501
+ type: "webauthn";
502
+ rpId?: string | undefined;
503
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
504
+ }>, z.ZodObject<{
505
+ type: z.ZodLiteral<"siwe">;
506
+ chainId: z.ZodOptional<z.ZodNumber>;
507
+ domain: z.ZodOptional<z.ZodString>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ type: "siwe";
510
+ chainId?: number | undefined;
511
+ domain?: string | undefined;
512
+ }, {
513
+ type: "siwe";
514
+ chainId?: number | undefined;
515
+ domain?: string | undefined;
516
+ }>, z.ZodObject<{
517
+ type: z.ZodLiteral<"apikey">;
518
+ envVarNames: z.ZodArray<z.ZodString, "many">;
519
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ type: "apikey";
522
+ envVarNames: string[];
523
+ headerMapping: Record<string, string>;
524
+ }, {
525
+ type: "apikey";
526
+ envVarNames: string[];
527
+ headerMapping: Record<string, string>;
528
+ }>, z.ZodObject<{
529
+ type: z.ZodLiteral<"none">;
530
+ }, "strip", z.ZodTypeAny, {
531
+ type: "none";
532
+ }, {
533
+ type: "none";
534
+ }>]>>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ requiresDelegation: boolean;
537
+ requiredScopes: string[];
538
+ authorization?: {
539
+ type: "oauth";
540
+ provider: string;
541
+ requiredScopes?: string[] | undefined;
542
+ } | {
543
+ type: "oauth2";
544
+ provider: string;
545
+ requiredScopes?: string[] | undefined;
546
+ } | {
547
+ type: "password";
548
+ provider: string;
549
+ } | {
550
+ type: "mdl";
551
+ issuer: string;
552
+ credentialType?: string | undefined;
553
+ } | {
554
+ type: "idv";
555
+ provider: string;
556
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
557
+ } | {
558
+ type: "verifiable_credential";
559
+ credentialType: string;
560
+ issuer?: string | undefined;
561
+ } | {
562
+ type: "credential";
563
+ credentialType: string;
564
+ issuer?: string | undefined;
565
+ } | {
566
+ type: "webauthn";
567
+ rpId?: string | undefined;
568
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
569
+ } | {
570
+ type: "siwe";
571
+ chainId?: number | undefined;
572
+ domain?: string | undefined;
573
+ } | {
574
+ type: "apikey";
575
+ envVarNames: string[];
576
+ headerMapping: Record<string, string>;
577
+ } | {
578
+ type: "none";
579
+ } | undefined;
580
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
581
+ oauthProvider?: string | undefined;
582
+ }, {
583
+ requiresDelegation: boolean;
584
+ requiredScopes: string[];
585
+ authorization?: {
586
+ type: "oauth";
587
+ provider: string;
588
+ requiredScopes?: string[] | undefined;
589
+ } | {
590
+ type: "oauth2";
591
+ provider: string;
592
+ requiredScopes?: string[] | undefined;
593
+ } | {
594
+ type: "password";
595
+ provider: string;
596
+ } | {
597
+ type: "mdl";
598
+ issuer: string;
599
+ credentialType?: string | undefined;
600
+ } | {
601
+ type: "idv";
602
+ provider: string;
603
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
604
+ } | {
605
+ type: "verifiable_credential";
606
+ credentialType: string;
607
+ issuer?: string | undefined;
608
+ } | {
609
+ type: "credential";
610
+ credentialType: string;
611
+ issuer?: string | undefined;
612
+ } | {
613
+ type: "webauthn";
614
+ rpId?: string | undefined;
615
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
616
+ } | {
617
+ type: "siwe";
618
+ chainId?: number | undefined;
619
+ domain?: string | undefined;
620
+ } | {
621
+ type: "apikey";
622
+ envVarNames: string[];
623
+ headerMapping: Record<string, string>;
624
+ } | {
625
+ type: "none";
626
+ } | undefined;
627
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
628
+ oauthProvider?: string | undefined;
629
+ }>;
630
+ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
631
+ requiresDelegation: z.ZodBoolean;
632
+ requiredScopes: z.ZodArray<z.ZodString, "many">;
633
+ riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
634
+ oauthProvider: z.ZodOptional<z.ZodString>;
635
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
636
+ type: z.ZodLiteral<"oauth">;
637
+ provider: z.ZodString;
638
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ type: "oauth";
641
+ provider: string;
642
+ requiredScopes?: string[] | undefined;
643
+ }, {
644
+ type: "oauth";
645
+ provider: string;
646
+ requiredScopes?: string[] | undefined;
647
+ }>, z.ZodObject<{
648
+ type: z.ZodLiteral<"oauth2">;
649
+ provider: z.ZodString;
650
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ type: "oauth2";
653
+ provider: string;
654
+ requiredScopes?: string[] | undefined;
655
+ }, {
656
+ type: "oauth2";
657
+ provider: string;
658
+ requiredScopes?: string[] | undefined;
659
+ }>, z.ZodObject<{
660
+ type: z.ZodLiteral<"password">;
661
+ provider: z.ZodString;
662
+ }, "strip", z.ZodTypeAny, {
663
+ type: "password";
664
+ provider: string;
665
+ }, {
666
+ type: "password";
667
+ provider: string;
668
+ }>, z.ZodObject<{
669
+ type: z.ZodLiteral<"mdl">;
670
+ issuer: z.ZodString;
671
+ credentialType: z.ZodOptional<z.ZodString>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ type: "mdl";
674
+ issuer: string;
675
+ credentialType?: string | undefined;
676
+ }, {
677
+ type: "mdl";
678
+ issuer: string;
679
+ credentialType?: string | undefined;
680
+ }>, z.ZodObject<{
681
+ type: z.ZodLiteral<"idv">;
682
+ provider: z.ZodString;
683
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
684
+ }, "strip", z.ZodTypeAny, {
685
+ type: "idv";
686
+ provider: string;
687
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
688
+ }, {
689
+ type: "idv";
690
+ provider: string;
691
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
692
+ }>, z.ZodObject<{
693
+ type: z.ZodLiteral<"verifiable_credential">;
694
+ credentialType: z.ZodString;
695
+ issuer: z.ZodOptional<z.ZodString>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ type: "verifiable_credential";
698
+ credentialType: string;
699
+ issuer?: string | undefined;
700
+ }, {
701
+ type: "verifiable_credential";
702
+ credentialType: string;
703
+ issuer?: string | undefined;
704
+ }>, z.ZodObject<{
705
+ type: z.ZodLiteral<"credential">;
706
+ credentialType: z.ZodString;
707
+ issuer: z.ZodOptional<z.ZodString>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ type: "credential";
710
+ credentialType: string;
711
+ issuer?: string | undefined;
712
+ }, {
713
+ type: "credential";
714
+ credentialType: string;
715
+ issuer?: string | undefined;
716
+ }>, z.ZodObject<{
717
+ type: z.ZodLiteral<"webauthn">;
718
+ rpId: z.ZodOptional<z.ZodString>;
719
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ type: "webauthn";
722
+ rpId?: string | undefined;
723
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
724
+ }, {
725
+ type: "webauthn";
726
+ rpId?: string | undefined;
727
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
728
+ }>, z.ZodObject<{
729
+ type: z.ZodLiteral<"siwe">;
730
+ chainId: z.ZodOptional<z.ZodNumber>;
731
+ domain: z.ZodOptional<z.ZodString>;
732
+ }, "strip", z.ZodTypeAny, {
733
+ type: "siwe";
734
+ chainId?: number | undefined;
735
+ domain?: string | undefined;
736
+ }, {
737
+ type: "siwe";
738
+ chainId?: number | undefined;
739
+ domain?: string | undefined;
740
+ }>, z.ZodObject<{
741
+ type: z.ZodLiteral<"apikey">;
742
+ envVarNames: z.ZodArray<z.ZodString, "many">;
743
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ type: "apikey";
746
+ envVarNames: string[];
747
+ headerMapping: Record<string, string>;
748
+ }, {
749
+ type: "apikey";
750
+ envVarNames: string[];
751
+ headerMapping: Record<string, string>;
752
+ }>, z.ZodObject<{
753
+ type: z.ZodLiteral<"none">;
754
+ }, "strip", z.ZodTypeAny, {
755
+ type: "none";
756
+ }, {
757
+ type: "none";
758
+ }>]>>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ requiresDelegation: boolean;
761
+ requiredScopes: string[];
762
+ authorization?: {
763
+ type: "oauth";
764
+ provider: string;
765
+ requiredScopes?: string[] | undefined;
766
+ } | {
767
+ type: "oauth2";
768
+ provider: string;
769
+ requiredScopes?: string[] | undefined;
770
+ } | {
771
+ type: "password";
772
+ provider: string;
773
+ } | {
774
+ type: "mdl";
775
+ issuer: string;
776
+ credentialType?: string | undefined;
777
+ } | {
778
+ type: "idv";
779
+ provider: string;
780
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
781
+ } | {
782
+ type: "verifiable_credential";
783
+ credentialType: string;
784
+ issuer?: string | undefined;
785
+ } | {
786
+ type: "credential";
787
+ credentialType: string;
788
+ issuer?: string | undefined;
789
+ } | {
790
+ type: "webauthn";
791
+ rpId?: string | undefined;
792
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
793
+ } | {
794
+ type: "siwe";
795
+ chainId?: number | undefined;
796
+ domain?: string | undefined;
797
+ } | {
798
+ type: "apikey";
799
+ envVarNames: string[];
800
+ headerMapping: Record<string, string>;
801
+ } | {
802
+ type: "none";
803
+ } | undefined;
804
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
805
+ oauthProvider?: string | undefined;
806
+ }, {
807
+ requiresDelegation: boolean;
808
+ requiredScopes: string[];
809
+ authorization?: {
810
+ type: "oauth";
811
+ provider: string;
812
+ requiredScopes?: string[] | undefined;
813
+ } | {
814
+ type: "oauth2";
815
+ provider: string;
816
+ requiredScopes?: string[] | undefined;
817
+ } | {
818
+ type: "password";
819
+ provider: string;
820
+ } | {
821
+ type: "mdl";
822
+ issuer: string;
823
+ credentialType?: string | undefined;
824
+ } | {
825
+ type: "idv";
826
+ provider: string;
827
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
828
+ } | {
829
+ type: "verifiable_credential";
830
+ credentialType: string;
831
+ issuer?: string | undefined;
832
+ } | {
833
+ type: "credential";
834
+ credentialType: string;
835
+ issuer?: string | undefined;
836
+ } | {
837
+ type: "webauthn";
838
+ rpId?: string | undefined;
839
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
840
+ } | {
841
+ type: "siwe";
842
+ chainId?: number | undefined;
843
+ domain?: string | undefined;
844
+ } | {
845
+ type: "apikey";
846
+ envVarNames: string[];
847
+ headerMapping: Record<string, string>;
848
+ } | {
849
+ type: "none";
850
+ } | undefined;
851
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
852
+ oauthProvider?: string | undefined;
853
+ }>>;
854
+ export declare const ToolProtectionResponseSchema: z.ZodObject<{
855
+ toolProtections: z.ZodRecord<z.ZodString, z.ZodObject<{
856
+ requiresDelegation: z.ZodBoolean;
857
+ requiredScopes: z.ZodArray<z.ZodString, "many">;
858
+ riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
859
+ oauthProvider: z.ZodOptional<z.ZodString>;
860
+ authorization: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
861
+ type: z.ZodLiteral<"oauth">;
862
+ provider: z.ZodString;
863
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ type: "oauth";
866
+ provider: string;
867
+ requiredScopes?: string[] | undefined;
868
+ }, {
869
+ type: "oauth";
870
+ provider: string;
871
+ requiredScopes?: string[] | undefined;
872
+ }>, z.ZodObject<{
873
+ type: z.ZodLiteral<"oauth2">;
874
+ provider: z.ZodString;
875
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ type: "oauth2";
878
+ provider: string;
879
+ requiredScopes?: string[] | undefined;
880
+ }, {
881
+ type: "oauth2";
882
+ provider: string;
883
+ requiredScopes?: string[] | undefined;
884
+ }>, z.ZodObject<{
885
+ type: z.ZodLiteral<"password">;
886
+ provider: z.ZodString;
887
+ }, "strip", z.ZodTypeAny, {
888
+ type: "password";
889
+ provider: string;
890
+ }, {
891
+ type: "password";
892
+ provider: string;
893
+ }>, z.ZodObject<{
894
+ type: z.ZodLiteral<"mdl">;
895
+ issuer: z.ZodString;
896
+ credentialType: z.ZodOptional<z.ZodString>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ type: "mdl";
899
+ issuer: string;
900
+ credentialType?: string | undefined;
901
+ }, {
902
+ type: "mdl";
903
+ issuer: string;
904
+ credentialType?: string | undefined;
905
+ }>, z.ZodObject<{
906
+ type: z.ZodLiteral<"idv">;
907
+ provider: z.ZodString;
908
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ type: "idv";
911
+ provider: string;
912
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
913
+ }, {
914
+ type: "idv";
915
+ provider: string;
916
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
917
+ }>, z.ZodObject<{
918
+ type: z.ZodLiteral<"verifiable_credential">;
919
+ credentialType: z.ZodString;
920
+ issuer: z.ZodOptional<z.ZodString>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ type: "verifiable_credential";
923
+ credentialType: string;
924
+ issuer?: string | undefined;
925
+ }, {
926
+ type: "verifiable_credential";
927
+ credentialType: string;
928
+ issuer?: string | undefined;
929
+ }>, z.ZodObject<{
930
+ type: z.ZodLiteral<"credential">;
931
+ credentialType: z.ZodString;
932
+ issuer: z.ZodOptional<z.ZodString>;
933
+ }, "strip", z.ZodTypeAny, {
934
+ type: "credential";
935
+ credentialType: string;
936
+ issuer?: string | undefined;
937
+ }, {
938
+ type: "credential";
939
+ credentialType: string;
940
+ issuer?: string | undefined;
941
+ }>, z.ZodObject<{
942
+ type: z.ZodLiteral<"webauthn">;
943
+ rpId: z.ZodOptional<z.ZodString>;
944
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
945
+ }, "strip", z.ZodTypeAny, {
946
+ type: "webauthn";
947
+ rpId?: string | undefined;
948
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
949
+ }, {
950
+ type: "webauthn";
951
+ rpId?: string | undefined;
952
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
953
+ }>, z.ZodObject<{
954
+ type: z.ZodLiteral<"siwe">;
955
+ chainId: z.ZodOptional<z.ZodNumber>;
956
+ domain: z.ZodOptional<z.ZodString>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ type: "siwe";
959
+ chainId?: number | undefined;
960
+ domain?: string | undefined;
961
+ }, {
962
+ type: "siwe";
963
+ chainId?: number | undefined;
964
+ domain?: string | undefined;
965
+ }>, z.ZodObject<{
966
+ type: z.ZodLiteral<"apikey">;
967
+ envVarNames: z.ZodArray<z.ZodString, "many">;
968
+ headerMapping: z.ZodRecord<z.ZodString, z.ZodString>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ type: "apikey";
971
+ envVarNames: string[];
972
+ headerMapping: Record<string, string>;
973
+ }, {
974
+ type: "apikey";
975
+ envVarNames: string[];
976
+ headerMapping: Record<string, string>;
977
+ }>, z.ZodObject<{
978
+ type: z.ZodLiteral<"none">;
979
+ }, "strip", z.ZodTypeAny, {
980
+ type: "none";
981
+ }, {
982
+ type: "none";
983
+ }>]>>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ requiresDelegation: boolean;
986
+ requiredScopes: string[];
987
+ authorization?: {
988
+ type: "oauth";
989
+ provider: string;
990
+ requiredScopes?: string[] | undefined;
991
+ } | {
992
+ type: "oauth2";
993
+ provider: string;
994
+ requiredScopes?: string[] | undefined;
995
+ } | {
996
+ type: "password";
997
+ provider: string;
998
+ } | {
999
+ type: "mdl";
1000
+ issuer: string;
1001
+ credentialType?: string | undefined;
1002
+ } | {
1003
+ type: "idv";
1004
+ provider: string;
1005
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1006
+ } | {
1007
+ type: "verifiable_credential";
1008
+ credentialType: string;
1009
+ issuer?: string | undefined;
1010
+ } | {
1011
+ type: "credential";
1012
+ credentialType: string;
1013
+ issuer?: string | undefined;
1014
+ } | {
1015
+ type: "webauthn";
1016
+ rpId?: string | undefined;
1017
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1018
+ } | {
1019
+ type: "siwe";
1020
+ chainId?: number | undefined;
1021
+ domain?: string | undefined;
1022
+ } | {
1023
+ type: "apikey";
1024
+ envVarNames: string[];
1025
+ headerMapping: Record<string, string>;
1026
+ } | {
1027
+ type: "none";
1028
+ } | undefined;
1029
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1030
+ oauthProvider?: string | undefined;
1031
+ }, {
1032
+ requiresDelegation: boolean;
1033
+ requiredScopes: string[];
1034
+ authorization?: {
1035
+ type: "oauth";
1036
+ provider: string;
1037
+ requiredScopes?: string[] | undefined;
1038
+ } | {
1039
+ type: "oauth2";
1040
+ provider: string;
1041
+ requiredScopes?: string[] | undefined;
1042
+ } | {
1043
+ type: "password";
1044
+ provider: string;
1045
+ } | {
1046
+ type: "mdl";
1047
+ issuer: string;
1048
+ credentialType?: string | undefined;
1049
+ } | {
1050
+ type: "idv";
1051
+ provider: string;
1052
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1053
+ } | {
1054
+ type: "verifiable_credential";
1055
+ credentialType: string;
1056
+ issuer?: string | undefined;
1057
+ } | {
1058
+ type: "credential";
1059
+ credentialType: string;
1060
+ issuer?: string | undefined;
1061
+ } | {
1062
+ type: "webauthn";
1063
+ rpId?: string | undefined;
1064
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1065
+ } | {
1066
+ type: "siwe";
1067
+ chainId?: number | undefined;
1068
+ domain?: string | undefined;
1069
+ } | {
1070
+ type: "apikey";
1071
+ envVarNames: string[];
1072
+ headerMapping: Record<string, string>;
1073
+ } | {
1074
+ type: "none";
1075
+ } | undefined;
1076
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1077
+ oauthProvider?: string | undefined;
1078
+ }>>;
1079
+ metadata: z.ZodOptional<z.ZodObject<{
1080
+ lastUpdated: z.ZodOptional<z.ZodString>;
1081
+ version: z.ZodOptional<z.ZodString>;
1082
+ source: z.ZodOptional<z.ZodString>;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ version?: string | undefined;
1085
+ lastUpdated?: string | undefined;
1086
+ source?: string | undefined;
1087
+ }, {
1088
+ version?: string | undefined;
1089
+ lastUpdated?: string | undefined;
1090
+ source?: string | undefined;
1091
+ }>>;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ toolProtections: Record<string, {
1094
+ requiresDelegation: boolean;
1095
+ requiredScopes: string[];
1096
+ authorization?: {
1097
+ type: "oauth";
1098
+ provider: string;
1099
+ requiredScopes?: string[] | undefined;
1100
+ } | {
1101
+ type: "oauth2";
1102
+ provider: string;
1103
+ requiredScopes?: string[] | undefined;
1104
+ } | {
1105
+ type: "password";
1106
+ provider: string;
1107
+ } | {
1108
+ type: "mdl";
1109
+ issuer: string;
1110
+ credentialType?: string | undefined;
1111
+ } | {
1112
+ type: "idv";
1113
+ provider: string;
1114
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1115
+ } | {
1116
+ type: "verifiable_credential";
1117
+ credentialType: string;
1118
+ issuer?: string | undefined;
1119
+ } | {
1120
+ type: "credential";
1121
+ credentialType: string;
1122
+ issuer?: string | undefined;
1123
+ } | {
1124
+ type: "webauthn";
1125
+ rpId?: string | undefined;
1126
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1127
+ } | {
1128
+ type: "siwe";
1129
+ chainId?: number | undefined;
1130
+ domain?: string | undefined;
1131
+ } | {
1132
+ type: "apikey";
1133
+ envVarNames: string[];
1134
+ headerMapping: Record<string, string>;
1135
+ } | {
1136
+ type: "none";
1137
+ } | undefined;
1138
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1139
+ oauthProvider?: string | undefined;
1140
+ }>;
1141
+ metadata?: {
1142
+ version?: string | undefined;
1143
+ lastUpdated?: string | undefined;
1144
+ source?: string | undefined;
1145
+ } | undefined;
1146
+ }, {
1147
+ toolProtections: Record<string, {
1148
+ requiresDelegation: boolean;
1149
+ requiredScopes: string[];
1150
+ authorization?: {
1151
+ type: "oauth";
1152
+ provider: string;
1153
+ requiredScopes?: string[] | undefined;
1154
+ } | {
1155
+ type: "oauth2";
1156
+ provider: string;
1157
+ requiredScopes?: string[] | undefined;
1158
+ } | {
1159
+ type: "password";
1160
+ provider: string;
1161
+ } | {
1162
+ type: "mdl";
1163
+ issuer: string;
1164
+ credentialType?: string | undefined;
1165
+ } | {
1166
+ type: "idv";
1167
+ provider: string;
1168
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
1169
+ } | {
1170
+ type: "verifiable_credential";
1171
+ credentialType: string;
1172
+ issuer?: string | undefined;
1173
+ } | {
1174
+ type: "credential";
1175
+ credentialType: string;
1176
+ issuer?: string | undefined;
1177
+ } | {
1178
+ type: "webauthn";
1179
+ rpId?: string | undefined;
1180
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1181
+ } | {
1182
+ type: "siwe";
1183
+ chainId?: number | undefined;
1184
+ domain?: string | undefined;
1185
+ } | {
1186
+ type: "apikey";
1187
+ envVarNames: string[];
1188
+ headerMapping: Record<string, string>;
1189
+ } | {
1190
+ type: "none";
1191
+ } | undefined;
1192
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
1193
+ oauthProvider?: string | undefined;
1194
+ }>;
1195
+ metadata?: {
1196
+ version?: string | undefined;
1197
+ lastUpdated?: string | undefined;
1198
+ source?: string | undefined;
1199
+ } | undefined;
1200
+ }>;
1201
+ export declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
1202
+ toolName: z.ZodString;
1203
+ requiredScopes: z.ZodArray<z.ZodString, "many">;
1204
+ consentUrl: z.ZodOptional<z.ZodString>;
1205
+ authorizationUrl: z.ZodOptional<z.ZodString>;
1206
+ reason: z.ZodOptional<z.ZodString>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ toolName: string;
1209
+ requiredScopes: string[];
1210
+ authorizationUrl?: string | undefined;
1211
+ reason?: string | undefined;
1212
+ consentUrl?: string | undefined;
1213
+ }, {
1214
+ toolName: string;
1215
+ requiredScopes: string[];
1216
+ authorizationUrl?: string | undefined;
1217
+ reason?: string | undefined;
1218
+ consentUrl?: string | undefined;
1219
+ }>;
1220
+ /**
1221
+ * Type Guards
1222
+ */
1223
+ export declare function isToolProtection(obj: any): obj is ToolProtection;
1224
+ export declare function isToolProtectionMap(obj: any): obj is ToolProtectionMap;
1225
+ export declare function isToolProtectionResponse(obj: any): obj is ToolProtectionResponse;
1226
+ export declare function isDelegationRequiredErrorData(obj: any): obj is DelegationRequiredErrorData;
1227
+ /**
1228
+ * Type guard to check if an object is a valid AuthorizationRequirement
1229
+ */
1230
+ export declare function isAuthorizationRequirement(obj: unknown): obj is AuthorizationRequirement;
1231
+ /**
1232
+ * Type guard to check if a ToolProtection has OAuth authorization
1233
+ * Checks for both 'oauth' (deprecated) and 'oauth2' (canonical)
1234
+ */
1235
+ export declare function hasOAuthAuthorization(protection: ToolProtection): protection is ToolProtection & {
1236
+ authorization: {
1237
+ type: 'oauth' | 'oauth2';
1238
+ };
1239
+ };
1240
+ /**
1241
+ * Type guard to check if a ToolProtection has password authorization
1242
+ */
1243
+ export declare function hasPasswordAuthorization(protection: ToolProtection): protection is ToolProtection & {
1244
+ authorization: {
1245
+ type: 'password';
1246
+ };
1247
+ };
1248
+ /**
1249
+ * Type guard to check if a ToolProtection requires a Verifiable Credential
1250
+ *
1251
+ * Note: Also returns true for deprecated 'credential' type (normalized to verifiable_credential)
1252
+ */
1253
+ export declare function hasVerifiableCredentialAuthorization(protection: ToolProtection): protection is ToolProtection & {
1254
+ authorization: {
1255
+ type: 'verifiable_credential' | 'credential';
1256
+ };
1257
+ };
1258
+ /**
1259
+ * Type guard to check if a ToolProtection has API Key (vault) authorization
1260
+ */
1261
+ export declare function hasApiKeyAuthorization(protection: ToolProtection): protection is ToolProtection & {
1262
+ authorization: {
1263
+ type: 'apikey';
1264
+ };
1265
+ };
1266
+ /**
1267
+ * Validation Functions
1268
+ */
1269
+ export declare function validateToolProtection(obj: any): ToolProtection;
1270
+ export declare function validateToolProtectionMap(obj: any): ToolProtectionMap;
1271
+ export declare function validateToolProtectionResponse(obj: any): ToolProtectionResponse;
1272
+ export declare function validateDelegationRequiredErrorData(obj: any): DelegationRequiredErrorData;
1273
+ /**
1274
+ * Utility Functions
1275
+ */
1276
+ /**
1277
+ * Check if a tool requires delegation
1278
+ */
1279
+ export declare function toolRequiresDelegation(toolName: string, protections: ToolProtectionMap): boolean;
1280
+ /**
1281
+ * Get required scopes for a tool
1282
+ */
1283
+ export declare function getToolRequiredScopes(toolName: string, protections: ToolProtectionMap): string[];
1284
+ /**
1285
+ * Get risk level for a tool
1286
+ */
1287
+ export declare function getToolRiskLevel(toolName: string, protections: ToolProtectionMap): ToolProtection['riskLevel'] | undefined;
1288
+ /**
1289
+ * Create a delegation required error
1290
+ */
1291
+ export declare function createDelegationRequiredError(toolName: string, requiredScopes: string[], consentUrl?: string): DelegationRequiredErrorData;
1292
+ /**
1293
+ * Normalize tool protection configuration
1294
+ * Migrates legacy oauthProvider field to authorization object
1295
+ *
1296
+ * - Migrates `oauthProvider` → `authorization: { type: 'oauth', provider: ... }`
1297
+ * - Ensures `authorization` field is present when `requiresDelegation=true`
1298
+ * - Returns fully normalized ToolProtection object
1299
+ *
1300
+ * @param raw - Raw tool protection data (may have legacy fields or be partial)
1301
+ * @returns Normalized ToolProtection object
1302
+ *
1303
+ * // TODO: Remove normalizeToolProtection() when all tools migrated (target: Phase 3)
1304
+ */
1305
+ export declare function normalizeToolProtection(raw: ToolProtection | PartialToolProtection): ToolProtection;
1306
+ /** Consent provider types - stored in delegation metadata to track auth method used */
1307
+ export declare const CONSENT_PROVIDER_TYPES: {
1308
+ /** Consent-only mode - no authentication, just clickwrap agreement */
1309
+ readonly NONE: "none";
1310
+ /** OAuth2 provider authentication */
1311
+ readonly OAUTH2: "oauth2";
1312
+ /** Password-based authentication (email/password, username/password) */
1313
+ readonly PASSWORD: "password";
1314
+ /** @deprecated Use PASSWORD instead. Alias for backward compatibility */
1315
+ readonly CREDENTIAL: "credential";
1316
+ /** Email magic link authentication */
1317
+ readonly MAGIC_LINK: "magic_link";
1318
+ /** One-time password (SMS/email code) */
1319
+ readonly OTP: "otp";
1320
+ };
1321
+ export type ConsentProviderType = (typeof CONSENT_PROVIDER_TYPES)[keyof typeof CONSENT_PROVIDER_TYPES];
1322
+ /**
1323
+ * Determine consent provider type based on available identity information
1324
+ *
1325
+ * This is the single source of truth for consent provider type determination.
1326
+ *
1327
+ * @param hasOAuthIdentity - Whether OAuth identity is available
1328
+ * @param isPasswordFlow - Whether this is a password/credential flow
1329
+ * @param isMagicLinkFlow - Whether this is a magic link flow
1330
+ * @param isOtpFlow - Whether this is an OTP flow
1331
+ * @returns The consent provider type
1332
+ */
1333
+ export declare function determineConsentProviderType(hasOAuthIdentity: boolean, isPasswordFlow?: boolean, isMagicLinkFlow?: boolean, isOtpFlow?: boolean): ConsentProviderType;
1334
+ /**
1335
+ * Get a human-readable label for an authorization requirement type
1336
+ */
1337
+ export declare function getAuthorizationTypeLabel(auth: AuthorizationRequirement): string;
1338
+ /**
1339
+ * Get a unique key for an authorization requirement (for React keys, caching, etc.)
1340
+ */
1341
+ export declare function getAuthorizationTypeKey(auth: AuthorizationRequirement): string;
1342
+ /**
1343
+ * Normalize authorization requirement type
1344
+ *
1345
+ * Normalizes deprecated types to their canonical equivalents:
1346
+ * - 'oauth' → 'oauth2'
1347
+ * - 'credential' → 'verifiable_credential'
1348
+ *
1349
+ * This function should be called at runtime boundaries when processing
1350
+ * authorization requirements.
1351
+ *
1352
+ * @param auth - Authorization requirement (may contain deprecated types)
1353
+ * @param options - Normalization options
1354
+ * @returns Normalized authorization requirement
1355
+ *
1356
+ * @example
1357
+ * ```typescript
1358
+ * const normalized = normalizeAuthorizationType(
1359
+ * { type: 'oauth', provider: 'github' },
1360
+ * { warn: true }
1361
+ * );
1362
+ * // Returns: { type: 'oauth2', provider: 'github' }
1363
+ * // Logs: DEPRECATION warning
1364
+ * ```
1365
+ */
1366
+ export declare function normalizeAuthorizationType(auth: AuthorizationRequirement, options?: {
1367
+ warn?: boolean;
1368
+ logger?: (message: string) => void;
1369
+ }): AuthorizationRequirement;