@kya-os/contracts 1.7.32 → 1.8.0

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 (335) hide show
  1. package/dist/__fixtures__/index.d.ts +8 -0
  2. package/dist/__fixtures__/index.d.ts.map +1 -0
  3. package/dist/__fixtures__/index.js +29 -0
  4. package/dist/__fixtures__/index.js.map +1 -0
  5. package/dist/__fixtures__/proof/ed25519-fixtures.d.ts +253 -0
  6. package/dist/__fixtures__/proof/ed25519-fixtures.d.ts.map +1 -0
  7. package/dist/__fixtures__/proof/ed25519-fixtures.js +247 -0
  8. package/dist/__fixtures__/proof/ed25519-fixtures.js.map +1 -0
  9. package/dist/__fixtures__/proof/keys-and-payloads.json +103 -0
  10. package/dist/agent-deployment-utils.d.ts +1 -0
  11. package/dist/agent-deployment-utils.d.ts.map +1 -0
  12. package/dist/agent-deployment-utils.js +1 -0
  13. package/dist/agent-deployment-utils.js.map +1 -0
  14. package/dist/agent-deployment.d.ts +19 -18
  15. package/dist/agent-deployment.d.ts.map +1 -0
  16. package/dist/agent-deployment.js +1 -0
  17. package/dist/agent-deployment.js.map +1 -0
  18. package/dist/agentshield-api/admin-schemas.d.ts +3 -2
  19. package/dist/agentshield-api/admin-schemas.d.ts.map +1 -0
  20. package/dist/agentshield-api/admin-schemas.js +1 -0
  21. package/dist/agentshield-api/admin-schemas.js.map +1 -0
  22. package/dist/agentshield-api/admin-types.d.ts +1 -0
  23. package/dist/agentshield-api/admin-types.d.ts.map +1 -0
  24. package/dist/agentshield-api/admin-types.js +1 -0
  25. package/dist/agentshield-api/admin-types.js.map +1 -0
  26. package/dist/agentshield-api/endpoints.d.ts +1 -0
  27. package/dist/agentshield-api/endpoints.d.ts.map +1 -0
  28. package/dist/agentshield-api/endpoints.js +1 -0
  29. package/dist/agentshield-api/endpoints.js.map +1 -0
  30. package/dist/agentshield-api/index.d.ts +1 -0
  31. package/dist/agentshield-api/index.d.ts.map +1 -0
  32. package/dist/agentshield-api/index.js +1 -0
  33. package/dist/agentshield-api/index.js.map +1 -0
  34. package/dist/agentshield-api/schemas.d.ts +463 -462
  35. package/dist/agentshield-api/schemas.d.ts.map +1 -0
  36. package/dist/agentshield-api/schemas.js +1 -0
  37. package/dist/agentshield-api/schemas.js.map +1 -0
  38. package/dist/agentshield-api/types.d.ts +1 -0
  39. package/dist/agentshield-api/types.d.ts.map +1 -0
  40. package/dist/agentshield-api/types.js +1 -0
  41. package/dist/agentshield-api/types.js.map +1 -0
  42. package/dist/audit/index.d.ts +4 -4
  43. package/dist/audit/index.d.ts.map +1 -0
  44. package/dist/audit/index.js.map +1 -0
  45. package/dist/cli.d.ts +45 -44
  46. package/dist/cli.d.ts.map +1 -0
  47. package/dist/cli.js +1 -0
  48. package/dist/cli.js.map +1 -0
  49. package/dist/compute-binding.d.ts +7 -6
  50. package/dist/compute-binding.d.ts.map +1 -0
  51. package/dist/compute-binding.js +1 -0
  52. package/dist/compute-binding.js.map +1 -0
  53. package/dist/compute.d.ts +9 -8
  54. package/dist/compute.d.ts.map +1 -0
  55. package/dist/compute.js +1 -0
  56. package/dist/compute.js.map +1 -0
  57. package/dist/config/base.d.ts +1 -0
  58. package/dist/config/base.d.ts.map +1 -0
  59. package/dist/config/base.js +1 -0
  60. package/dist/config/base.js.map +1 -0
  61. package/dist/config/builder.d.ts +1 -0
  62. package/dist/config/builder.d.ts.map +1 -0
  63. package/dist/config/builder.js +1 -0
  64. package/dist/config/builder.js.map +1 -0
  65. package/dist/config/client-messages.d.ts +1 -0
  66. package/dist/config/client-messages.d.ts.map +1 -0
  67. package/dist/config/client-messages.js +1 -0
  68. package/dist/config/client-messages.js.map +1 -0
  69. package/dist/config/delegation.d.ts +1 -0
  70. package/dist/config/delegation.d.ts.map +1 -0
  71. package/dist/config/delegation.js +1 -0
  72. package/dist/config/delegation.js.map +1 -0
  73. package/dist/config/identity.d.ts +99 -98
  74. package/dist/config/identity.d.ts.map +1 -0
  75. package/dist/config/identity.js +1 -0
  76. package/dist/config/identity.js.map +1 -0
  77. package/dist/config/index.d.ts +1 -0
  78. package/dist/config/index.d.ts.map +1 -0
  79. package/dist/config/index.js +1 -0
  80. package/dist/config/index.js.map +1 -0
  81. package/dist/config/proofing.d.ts +1 -0
  82. package/dist/config/proofing.d.ts.map +1 -0
  83. package/dist/config/proofing.js +1 -0
  84. package/dist/config/proofing.js.map +1 -0
  85. package/dist/config/tool-context.d.ts +1 -0
  86. package/dist/config/tool-context.d.ts.map +1 -0
  87. package/dist/config/tool-context.js +1 -0
  88. package/dist/config/tool-context.js.map +1 -0
  89. package/dist/config/tool-protection.d.ts +1 -0
  90. package/dist/config/tool-protection.d.ts.map +1 -0
  91. package/dist/config/tool-protection.js.map +1 -0
  92. package/dist/consent/index.d.ts +1 -0
  93. package/dist/consent/index.d.ts.map +1 -0
  94. package/dist/consent/index.js +1 -0
  95. package/dist/consent/index.js.map +1 -0
  96. package/dist/consent/schemas.d.ts +73 -72
  97. package/dist/consent/schemas.d.ts.map +1 -0
  98. package/dist/consent/schemas.js +1 -0
  99. package/dist/consent/schemas.js.map +1 -0
  100. package/dist/consent/types.d.ts +1 -0
  101. package/dist/consent/types.d.ts.map +1 -0
  102. package/dist/consent/types.js +1 -0
  103. package/dist/consent/types.js.map +1 -0
  104. package/dist/dashboard-config/default-config.d.ts +1 -0
  105. package/dist/dashboard-config/default-config.d.ts.map +1 -0
  106. package/dist/dashboard-config/default-config.js.map +1 -0
  107. package/dist/dashboard-config/index.d.ts +1 -0
  108. package/dist/dashboard-config/index.d.ts.map +1 -0
  109. package/dist/dashboard-config/index.js.map +1 -0
  110. package/dist/dashboard-config/schemas.d.ts +2905 -2381
  111. package/dist/dashboard-config/schemas.d.ts.map +1 -0
  112. package/dist/dashboard-config/schemas.js.map +1 -0
  113. package/dist/dashboard-config/types.d.ts +1 -0
  114. package/dist/dashboard-config/types.d.ts.map +1 -0
  115. package/dist/dashboard-config/types.js.map +1 -0
  116. package/dist/delegation/constraints.d.ts +33 -32
  117. package/dist/delegation/constraints.d.ts.map +1 -0
  118. package/dist/delegation/constraints.js +1 -0
  119. package/dist/delegation/constraints.js.map +1 -0
  120. package/dist/delegation/index.d.ts +1 -0
  121. package/dist/delegation/index.d.ts.map +1 -0
  122. package/dist/delegation/index.js +1 -0
  123. package/dist/delegation/index.js.map +1 -0
  124. package/dist/delegation/schemas.d.ts +611 -610
  125. package/dist/delegation/schemas.d.ts.map +1 -0
  126. package/dist/delegation/schemas.js +1 -0
  127. package/dist/delegation/schemas.js.map +1 -0
  128. package/dist/deploy/index.d.ts +1 -0
  129. package/dist/deploy/index.d.ts.map +1 -0
  130. package/dist/deploy/index.js +1 -0
  131. package/dist/deploy/index.js.map +1 -0
  132. package/dist/deploy/schemas.d.ts +85 -84
  133. package/dist/deploy/schemas.d.ts.map +1 -0
  134. package/dist/deploy/schemas.js +1 -0
  135. package/dist/deploy/schemas.js.map +1 -0
  136. package/dist/deploy/types.d.ts +1 -0
  137. package/dist/deploy/types.d.ts.map +1 -0
  138. package/dist/deploy/types.js +1 -0
  139. package/dist/deploy/types.js.map +1 -0
  140. package/dist/did/index.d.ts +1 -0
  141. package/dist/did/index.d.ts.map +1 -0
  142. package/dist/did/index.js +1 -0
  143. package/dist/did/index.js.map +1 -0
  144. package/dist/did/resolve-contract.d.ts +1 -0
  145. package/dist/did/resolve-contract.d.ts.map +1 -0
  146. package/dist/did/resolve-contract.js +1 -0
  147. package/dist/did/resolve-contract.js.map +1 -0
  148. package/dist/did/schemas.d.ts +1 -0
  149. package/dist/did/schemas.d.ts.map +1 -0
  150. package/dist/did/schemas.js +1 -0
  151. package/dist/did/schemas.js.map +1 -0
  152. package/dist/did/types.d.ts +1 -0
  153. package/dist/did/types.d.ts.map +1 -0
  154. package/dist/did/types.js +1 -0
  155. package/dist/did/types.js.map +1 -0
  156. package/dist/env/constants.d.ts +1 -0
  157. package/dist/env/constants.d.ts.map +1 -0
  158. package/dist/env/constants.js +1 -0
  159. package/dist/env/constants.js.map +1 -0
  160. package/dist/env/index.d.ts +1 -0
  161. package/dist/env/index.d.ts.map +1 -0
  162. package/dist/env/index.js +1 -0
  163. package/dist/env/index.js.map +1 -0
  164. package/dist/gateway/agents.d.ts +22 -0
  165. package/dist/gateway/agents.d.ts.map +1 -0
  166. package/dist/gateway/agents.js +13 -0
  167. package/dist/gateway/agents.js.map +1 -0
  168. package/dist/gateway/cron.d.ts +34 -0
  169. package/dist/gateway/cron.d.ts.map +1 -0
  170. package/dist/gateway/cron.js +17 -0
  171. package/dist/gateway/cron.js.map +1 -0
  172. package/dist/gateway/index.d.ts +16 -574
  173. package/dist/gateway/index.d.ts.map +1 -0
  174. package/dist/gateway/index.js +30 -95
  175. package/dist/gateway/index.js.map +1 -0
  176. package/dist/gateway/sessions.d.ts +31 -0
  177. package/dist/gateway/sessions.d.ts.map +1 -0
  178. package/dist/gateway/sessions.js +16 -0
  179. package/dist/gateway/sessions.js.map +1 -0
  180. package/dist/gateway/skills.d.ts +446 -0
  181. package/dist/gateway/skills.d.ts.map +1 -0
  182. package/dist/gateway/skills.js +48 -0
  183. package/dist/gateway/skills.js.map +1 -0
  184. package/dist/gateway/usage.d.ts +44 -0
  185. package/dist/gateway/usage.d.ts.map +1 -0
  186. package/dist/gateway/usage.js +19 -0
  187. package/dist/gateway/usage.js.map +1 -0
  188. package/dist/handshake.d.ts +79 -56
  189. package/dist/handshake.d.ts.map +1 -0
  190. package/dist/handshake.js +17 -0
  191. package/dist/handshake.js.map +1 -0
  192. package/dist/identity/index.d.ts +1 -0
  193. package/dist/identity/index.d.ts.map +1 -0
  194. package/dist/identity/index.js +1 -0
  195. package/dist/identity/index.js.map +1 -0
  196. package/dist/identity/schemas.d.ts +1 -0
  197. package/dist/identity/schemas.d.ts.map +1 -0
  198. package/dist/identity/schemas.js +1 -0
  199. package/dist/identity/schemas.js.map +1 -0
  200. package/dist/index.d.ts +1 -0
  201. package/dist/index.d.ts.map +1 -0
  202. package/dist/index.js.map +1 -0
  203. package/dist/molti/admin-ws.d.ts +117 -116
  204. package/dist/molti/admin-ws.d.ts.map +1 -0
  205. package/dist/molti/admin-ws.js +1 -0
  206. package/dist/molti/admin-ws.js.map +1 -0
  207. package/dist/molti/index.d.ts +1 -0
  208. package/dist/molti/index.d.ts.map +1 -0
  209. package/dist/molti/index.js +1 -0
  210. package/dist/molti/index.js.map +1 -0
  211. package/dist/molti/schemas.d.ts +99 -98
  212. package/dist/molti/schemas.d.ts.map +1 -0
  213. package/dist/molti/schemas.js +1 -0
  214. package/dist/molti/schemas.js.map +1 -0
  215. package/dist/molti/types.d.ts +1 -0
  216. package/dist/molti/types.d.ts.map +1 -0
  217. package/dist/molti/types.js +1 -0
  218. package/dist/molti/types.js.map +1 -0
  219. package/dist/org-secret-definitions.d.ts +18 -0
  220. package/dist/org-secret-definitions.js +72 -0
  221. package/dist/pairing/index.d.ts +1 -0
  222. package/dist/pairing/index.d.ts.map +1 -0
  223. package/dist/pairing/index.js +1 -0
  224. package/dist/pairing/index.js.map +1 -0
  225. package/dist/policy/index.d.ts +1 -0
  226. package/dist/policy/index.d.ts.map +1 -0
  227. package/dist/policy/index.js +1 -0
  228. package/dist/policy/index.js.map +1 -0
  229. package/dist/policy/schemas.d.ts +554 -553
  230. package/dist/policy/schemas.d.ts.map +1 -0
  231. package/dist/policy/schemas.js +1 -0
  232. package/dist/policy/schemas.js.map +1 -0
  233. package/dist/proof/index.d.ts +1 -0
  234. package/dist/proof/index.d.ts.map +1 -0
  235. package/dist/proof/index.js +1 -0
  236. package/dist/proof/index.js.map +1 -0
  237. package/dist/proof/proof-record.d.ts +49 -48
  238. package/dist/proof/proof-record.d.ts.map +1 -0
  239. package/dist/proof/proof-record.js +1 -0
  240. package/dist/proof/proof-record.js.map +1 -0
  241. package/dist/proof/signing-spec.d.ts +9 -8
  242. package/dist/proof/signing-spec.d.ts.map +1 -0
  243. package/dist/proof/signing-spec.js +1 -0
  244. package/dist/proof/signing-spec.js.map +1 -0
  245. package/dist/proof.d.ts +69 -68
  246. package/dist/proof.d.ts.map +1 -0
  247. package/dist/proof.js +1 -0
  248. package/dist/proof.js.map +1 -0
  249. package/dist/registry.d.ts +25 -24
  250. package/dist/registry.d.ts.map +1 -0
  251. package/dist/registry.js +1 -0
  252. package/dist/registry.js.map +1 -0
  253. package/dist/reputation/api.d.ts +157 -156
  254. package/dist/reputation/api.d.ts.map +1 -0
  255. package/dist/reputation/api.js +1 -0
  256. package/dist/reputation/api.js.map +1 -0
  257. package/dist/reputation/constants.d.ts +1 -0
  258. package/dist/reputation/constants.d.ts.map +1 -0
  259. package/dist/reputation/constants.js +1 -0
  260. package/dist/reputation/constants.js.map +1 -0
  261. package/dist/reputation/credentials.d.ts +49 -48
  262. package/dist/reputation/credentials.d.ts.map +1 -0
  263. package/dist/reputation/credentials.js +1 -0
  264. package/dist/reputation/credentials.js.map +1 -0
  265. package/dist/reputation/index.d.ts +1 -0
  266. package/dist/reputation/index.d.ts.map +1 -0
  267. package/dist/reputation/index.js +1 -0
  268. package/dist/reputation/index.js.map +1 -0
  269. package/dist/reputation/schemas.d.ts +49 -48
  270. package/dist/reputation/schemas.d.ts.map +1 -0
  271. package/dist/reputation/schemas.js +1 -0
  272. package/dist/reputation/schemas.js.map +1 -0
  273. package/dist/runtime/errors.d.ts +1 -0
  274. package/dist/runtime/errors.d.ts.map +1 -0
  275. package/dist/runtime/errors.js +1 -0
  276. package/dist/runtime/errors.js.map +1 -0
  277. package/dist/runtime/headers.d.ts +15 -15
  278. package/dist/runtime/headers.d.ts.map +1 -0
  279. package/dist/runtime/headers.js +14 -14
  280. package/dist/runtime/headers.js.map +1 -0
  281. package/dist/runtime/index.d.ts +1 -0
  282. package/dist/runtime/index.d.ts.map +1 -0
  283. package/dist/runtime/index.js.map +1 -0
  284. package/dist/test.d.ts +23 -22
  285. package/dist/test.d.ts.map +1 -0
  286. package/dist/test.js +1 -0
  287. package/dist/test.js.map +1 -0
  288. package/dist/tlkrc/index.d.ts +1 -0
  289. package/dist/tlkrc/index.d.ts.map +1 -0
  290. package/dist/tlkrc/index.js +1 -0
  291. package/dist/tlkrc/index.js.map +1 -0
  292. package/dist/tlkrc/rotation.d.ts +13 -12
  293. package/dist/tlkrc/rotation.d.ts.map +1 -0
  294. package/dist/tlkrc/rotation.js +1 -0
  295. package/dist/tlkrc/rotation.js.map +1 -0
  296. package/dist/tool-protection/index.d.ts +203 -48
  297. package/dist/tool-protection/index.d.ts.map +1 -0
  298. package/dist/tool-protection/index.js +58 -1
  299. package/dist/tool-protection/index.js.map +1 -0
  300. package/dist/utils/validation.d.ts +1 -0
  301. package/dist/utils/validation.d.ts.map +1 -0
  302. package/dist/utils/validation.js +1 -0
  303. package/dist/utils/validation.js.map +1 -0
  304. package/dist/vault/audit-events.d.ts +21 -0
  305. package/dist/vault/audit-events.js +23 -0
  306. package/dist/vault/index.d.ts +10 -0
  307. package/dist/vault/index.js +18 -0
  308. package/dist/vault/schemas.d.ts +71 -0
  309. package/dist/vault/schemas.js +52 -0
  310. package/dist/vault/types.d.ts +15 -0
  311. package/dist/vault/types.js +9 -0
  312. package/dist/vc/index.d.ts +1 -0
  313. package/dist/vc/index.d.ts.map +1 -0
  314. package/dist/vc/index.js +1 -0
  315. package/dist/vc/index.js.map +1 -0
  316. package/dist/vc/schemas.d.ts +1 -0
  317. package/dist/vc/schemas.d.ts.map +1 -0
  318. package/dist/vc/schemas.js +1 -0
  319. package/dist/vc/schemas.js.map +1 -0
  320. package/dist/vc/statuslist.d.ts +1 -0
  321. package/dist/vc/statuslist.d.ts.map +1 -0
  322. package/dist/vc/statuslist.js +1 -0
  323. package/dist/vc/statuslist.js.map +1 -0
  324. package/dist/verifier/index.d.ts +1 -0
  325. package/dist/verifier/index.d.ts.map +1 -0
  326. package/dist/verifier/index.js.map +1 -0
  327. package/dist/verifier.d.ts +36 -36
  328. package/dist/verifier.d.ts.map +1 -0
  329. package/dist/verifier.js +9 -9
  330. package/dist/verifier.js.map +1 -0
  331. package/dist/well-known/index.d.ts +73 -72
  332. package/dist/well-known/index.d.ts.map +1 -0
  333. package/dist/well-known/index.js +1 -0
  334. package/dist/well-known/index.js.map +1 -0
  335. package/package.json +8 -4
@@ -88,58 +88,58 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
88
88
  clientDid: z.ZodOptional<z.ZodString>;
89
89
  }, "strip", z.ZodTypeAny, {
90
90
  did: string;
91
+ kid: string;
91
92
  nonce: string;
92
- sessionId: string;
93
93
  audience: string;
94
- kid: string;
94
+ sessionId: string;
95
95
  ts: number;
96
96
  requestHash: string;
97
97
  responseHash: string;
98
+ clientDid?: string | undefined;
98
99
  scopeId?: string | undefined;
99
100
  delegationRef?: string | undefined;
100
- clientDid?: string | undefined;
101
101
  }, {
102
102
  did: string;
103
+ kid: string;
103
104
  nonce: string;
104
- sessionId: string;
105
105
  audience: string;
106
- kid: string;
106
+ sessionId: string;
107
107
  ts: number;
108
108
  requestHash: string;
109
109
  responseHash: string;
110
+ clientDid?: string | undefined;
110
111
  scopeId?: string | undefined;
111
112
  delegationRef?: string | undefined;
112
- clientDid?: string | undefined;
113
113
  }>;
114
114
  }, "strip", z.ZodTypeAny, {
115
115
  jws: string;
116
116
  meta: {
117
117
  did: string;
118
+ kid: string;
118
119
  nonce: string;
119
- sessionId: string;
120
120
  audience: string;
121
- kid: string;
121
+ sessionId: string;
122
122
  ts: number;
123
123
  requestHash: string;
124
124
  responseHash: string;
125
+ clientDid?: string | undefined;
125
126
  scopeId?: string | undefined;
126
127
  delegationRef?: string | undefined;
127
- clientDid?: string | undefined;
128
128
  };
129
129
  }, {
130
130
  jws: string;
131
131
  meta: {
132
132
  did: string;
133
+ kid: string;
133
134
  nonce: string;
134
- sessionId: string;
135
135
  audience: string;
136
- kid: string;
136
+ sessionId: string;
137
137
  ts: number;
138
138
  requestHash: string;
139
139
  responseHash: string;
140
+ clientDid?: string | undefined;
140
141
  scopeId?: string | undefined;
141
142
  delegationRef?: string | undefined;
142
- clientDid?: string | undefined;
143
143
  };
144
144
  }>, "many">;
145
145
  context: z.ZodOptional<z.ZodObject<{
@@ -150,14 +150,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
150
150
  scopeId: z.ZodString;
151
151
  userIdentifier: z.ZodOptional<z.ZodString>;
152
152
  }, "strip", z.ZodTypeAny, {
153
- tool: string;
154
153
  scopeId: string;
154
+ tool: string;
155
155
  args: Record<string, unknown>;
156
156
  result?: unknown;
157
157
  userIdentifier?: string | undefined;
158
158
  }, {
159
- tool: string;
160
159
  scopeId: string;
160
+ tool: string;
161
161
  args: Record<string, unknown>;
162
162
  result?: unknown;
163
163
  userIdentifier?: string | undefined;
@@ -185,91 +185,91 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
185
185
  identifier: string;
186
186
  }>>;
187
187
  }, "strip", z.ZodTypeAny, {
188
- timestamp: number;
189
188
  agentDid: string;
189
+ projectId: string;
190
+ timestamp: number;
190
191
  scopes: string[];
191
192
  sessionId: string;
192
- projectId: string;
193
193
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
194
194
  targetTools: string[];
195
- credentialStatus?: "required" | "present" | "obtained" | undefined;
196
- delegationId?: string | undefined;
197
- termsAccepted?: boolean | undefined;
198
195
  userDid?: string | undefined;
199
196
  oauthIdentity?: {
200
197
  provider: string;
201
198
  identifier: string;
202
199
  } | undefined;
200
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
201
+ delegationId?: string | undefined;
202
+ termsAccepted?: boolean | undefined;
203
203
  }, {
204
- timestamp: number;
205
204
  agentDid: string;
205
+ projectId: string;
206
+ timestamp: number;
206
207
  scopes: string[];
207
208
  sessionId: string;
208
- projectId: string;
209
209
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
210
210
  targetTools: string[];
211
- credentialStatus?: "required" | "present" | "obtained" | undefined;
212
- delegationId?: string | undefined;
213
- termsAccepted?: boolean | undefined;
214
211
  userDid?: string | undefined;
215
212
  oauthIdentity?: {
216
213
  provider: string;
217
214
  identifier: string;
218
215
  } | undefined;
216
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
217
+ delegationId?: string | undefined;
218
+ termsAccepted?: boolean | undefined;
219
219
  }>, "many">>;
220
220
  mcpServerUrl: z.ZodOptional<z.ZodString>;
221
221
  }, "strip", z.ZodTypeAny, {
222
222
  toolCalls?: {
223
- tool: string;
224
223
  scopeId: string;
224
+ tool: string;
225
225
  args: Record<string, unknown>;
226
226
  result?: unknown;
227
227
  userIdentifier?: string | undefined;
228
228
  }[] | undefined;
229
+ mcpServerUrl?: string | undefined;
229
230
  consentEvents?: {
230
- timestamp: number;
231
231
  agentDid: string;
232
+ projectId: string;
233
+ timestamp: number;
232
234
  scopes: string[];
233
235
  sessionId: string;
234
- projectId: string;
235
236
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
236
237
  targetTools: string[];
237
- credentialStatus?: "required" | "present" | "obtained" | undefined;
238
- delegationId?: string | undefined;
239
- termsAccepted?: boolean | undefined;
240
238
  userDid?: string | undefined;
241
239
  oauthIdentity?: {
242
240
  provider: string;
243
241
  identifier: string;
244
242
  } | undefined;
243
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
244
+ delegationId?: string | undefined;
245
+ termsAccepted?: boolean | undefined;
245
246
  }[] | undefined;
246
- mcpServerUrl?: string | undefined;
247
247
  }, {
248
248
  toolCalls?: {
249
- tool: string;
250
249
  scopeId: string;
250
+ tool: string;
251
251
  args: Record<string, unknown>;
252
252
  result?: unknown;
253
253
  userIdentifier?: string | undefined;
254
254
  }[] | undefined;
255
+ mcpServerUrl?: string | undefined;
255
256
  consentEvents?: {
256
- timestamp: number;
257
257
  agentDid: string;
258
+ projectId: string;
259
+ timestamp: number;
258
260
  scopes: string[];
259
261
  sessionId: string;
260
- projectId: string;
261
262
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
262
263
  targetTools: string[];
263
- credentialStatus?: "required" | "present" | "obtained" | undefined;
264
- delegationId?: string | undefined;
265
- termsAccepted?: boolean | undefined;
266
264
  userDid?: string | undefined;
267
265
  oauthIdentity?: {
268
266
  provider: string;
269
267
  identifier: string;
270
268
  } | undefined;
269
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
270
+ delegationId?: string | undefined;
271
+ termsAccepted?: boolean | undefined;
271
272
  }[] | undefined;
272
- mcpServerUrl?: string | undefined;
273
273
  }>>;
274
274
  }, "strip", z.ZodTypeAny, {
275
275
  session_id: string;
@@ -277,92 +277,92 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
277
277
  jws: string;
278
278
  meta: {
279
279
  did: string;
280
+ kid: string;
280
281
  nonce: string;
281
- sessionId: string;
282
282
  audience: string;
283
- kid: string;
283
+ sessionId: string;
284
284
  ts: number;
285
285
  requestHash: string;
286
286
  responseHash: string;
287
+ clientDid?: string | undefined;
287
288
  scopeId?: string | undefined;
288
289
  delegationRef?: string | undefined;
289
- clientDid?: string | undefined;
290
290
  };
291
291
  }[];
292
+ delegation_id?: string | null | undefined;
292
293
  context?: {
293
294
  toolCalls?: {
294
- tool: string;
295
295
  scopeId: string;
296
+ tool: string;
296
297
  args: Record<string, unknown>;
297
298
  result?: unknown;
298
299
  userIdentifier?: string | undefined;
299
300
  }[] | undefined;
301
+ mcpServerUrl?: string | undefined;
300
302
  consentEvents?: {
301
- timestamp: number;
302
303
  agentDid: string;
304
+ projectId: string;
305
+ timestamp: number;
303
306
  scopes: string[];
304
307
  sessionId: string;
305
- projectId: string;
306
308
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
307
309
  targetTools: string[];
308
- credentialStatus?: "required" | "present" | "obtained" | undefined;
309
- delegationId?: string | undefined;
310
- termsAccepted?: boolean | undefined;
311
310
  userDid?: string | undefined;
312
311
  oauthIdentity?: {
313
312
  provider: string;
314
313
  identifier: string;
315
314
  } | undefined;
315
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
316
+ delegationId?: string | undefined;
317
+ termsAccepted?: boolean | undefined;
316
318
  }[] | undefined;
317
- mcpServerUrl?: string | undefined;
318
319
  } | undefined;
319
- delegation_id?: string | null | undefined;
320
320
  }, {
321
321
  session_id: string;
322
322
  proofs: {
323
323
  jws: string;
324
324
  meta: {
325
325
  did: string;
326
+ kid: string;
326
327
  nonce: string;
327
- sessionId: string;
328
328
  audience: string;
329
- kid: string;
329
+ sessionId: string;
330
330
  ts: number;
331
331
  requestHash: string;
332
332
  responseHash: string;
333
+ clientDid?: string | undefined;
333
334
  scopeId?: string | undefined;
334
335
  delegationRef?: string | undefined;
335
- clientDid?: string | undefined;
336
336
  };
337
337
  }[];
338
+ delegation_id?: string | null | undefined;
338
339
  context?: {
339
340
  toolCalls?: {
340
- tool: string;
341
341
  scopeId: string;
342
+ tool: string;
342
343
  args: Record<string, unknown>;
343
344
  result?: unknown;
344
345
  userIdentifier?: string | undefined;
345
346
  }[] | undefined;
347
+ mcpServerUrl?: string | undefined;
346
348
  consentEvents?: {
347
- timestamp: number;
348
349
  agentDid: string;
350
+ projectId: string;
351
+ timestamp: number;
349
352
  scopes: string[];
350
353
  sessionId: string;
351
- projectId: string;
352
354
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
353
355
  targetTools: string[];
354
- credentialStatus?: "required" | "present" | "obtained" | undefined;
355
- delegationId?: string | undefined;
356
- termsAccepted?: boolean | undefined;
357
356
  userDid?: string | undefined;
358
357
  oauthIdentity?: {
359
358
  provider: string;
360
359
  identifier: string;
361
360
  } | undefined;
361
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
362
+ delegationId?: string | undefined;
363
+ termsAccepted?: boolean | undefined;
362
364
  }[] | undefined;
363
- mcpServerUrl?: string | undefined;
364
365
  } | undefined;
365
- delegation_id?: string | null | undefined;
366
366
  }>;
367
367
  /**
368
368
  * Proof submission response schema
@@ -451,59 +451,59 @@ export declare const delegationCredentialSchema: z.ZodObject<{
451
451
  chainId: z.ZodOptional<z.ZodNumber>;
452
452
  domain: z.ZodOptional<z.ZodString>;
453
453
  }, "strip", z.ZodTypeAny, {
454
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
455
- domain?: string | undefined;
454
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
456
455
  provider?: string | undefined;
457
456
  credentialType?: string | undefined;
458
457
  rpId?: string | undefined;
459
458
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
460
459
  chainId?: number | undefined;
461
- }, {
462
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
463
460
  domain?: string | undefined;
461
+ }, {
462
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
464
463
  provider?: string | undefined;
465
464
  credentialType?: string | undefined;
466
465
  rpId?: string | undefined;
467
466
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
468
467
  chainId?: number | undefined;
468
+ domain?: string | undefined;
469
469
  }>;
470
470
  }, "strip", z.ZodTypeAny, {
471
471
  scopes: string[];
472
- user_did: string;
473
472
  authorization: {
474
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
475
- domain?: string | undefined;
473
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
476
474
  provider?: string | undefined;
477
475
  credentialType?: string | undefined;
478
476
  rpId?: string | undefined;
479
477
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
480
478
  chainId?: number | undefined;
479
+ domain?: string | undefined;
481
480
  };
482
481
  agent_did: string;
482
+ user_did: string;
483
483
  issued_at: number;
484
484
  created_at: number;
485
+ constraints?: Record<string, unknown> | undefined;
485
486
  user_id?: string | undefined;
486
487
  user_identifier?: string | undefined;
487
- constraints?: Record<string, unknown> | undefined;
488
488
  credential_jwt?: string | undefined;
489
489
  }, {
490
490
  scopes: string[];
491
- user_did: string;
492
491
  authorization: {
493
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
494
- domain?: string | undefined;
492
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
495
493
  provider?: string | undefined;
496
494
  credentialType?: string | undefined;
497
495
  rpId?: string | undefined;
498
496
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
499
497
  chainId?: number | undefined;
498
+ domain?: string | undefined;
500
499
  };
501
500
  agent_did: string;
501
+ user_did: string;
502
502
  issued_at: number;
503
503
  created_at: number;
504
+ constraints?: Record<string, unknown> | undefined;
504
505
  user_id?: string | undefined;
505
506
  user_identifier?: string | undefined;
506
- constraints?: Record<string, unknown> | undefined;
507
507
  credential_jwt?: string | undefined;
508
508
  }>;
509
509
  /**
@@ -512,21 +512,21 @@ export declare const delegationCredentialSchema: z.ZodObject<{
512
512
  export declare const verifyDelegationRequestSchema: z.ZodObject<{
513
513
  timestamp: z.ZodOptional<z.ZodNumber>;
514
514
  scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
515
- user_did: z.ZodOptional<z.ZodString>;
516
515
  agent_did: z.ZodString;
517
- delegation_token: z.ZodOptional<z.ZodString>;
516
+ user_did: z.ZodOptional<z.ZodString>;
518
517
  credential_jwt: z.ZodOptional<z.ZodString>;
518
+ delegation_token: z.ZodOptional<z.ZodString>;
519
519
  client_info: z.ZodOptional<z.ZodObject<{
520
520
  ip_address: z.ZodOptional<z.ZodString>;
521
521
  origin: z.ZodOptional<z.ZodString>;
522
522
  user_agent: z.ZodOptional<z.ZodString>;
523
523
  }, "strip", z.ZodTypeAny, {
524
- ip_address?: string | undefined;
525
524
  origin?: string | undefined;
525
+ ip_address?: string | undefined;
526
526
  user_agent?: string | undefined;
527
527
  }, {
528
- ip_address?: string | undefined;
529
528
  origin?: string | undefined;
529
+ ip_address?: string | undefined;
530
530
  user_agent?: string | undefined;
531
531
  }>>;
532
532
  }, "strip", z.ZodTypeAny, {
@@ -534,11 +534,11 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
534
534
  timestamp?: number | undefined;
535
535
  scopes?: string[] | undefined;
536
536
  user_did?: string | undefined;
537
- delegation_token?: string | undefined;
538
537
  credential_jwt?: string | undefined;
538
+ delegation_token?: string | undefined;
539
539
  client_info?: {
540
- ip_address?: string | undefined;
541
540
  origin?: string | undefined;
541
+ ip_address?: string | undefined;
542
542
  user_agent?: string | undefined;
543
543
  } | undefined;
544
544
  }, {
@@ -546,11 +546,11 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
546
546
  timestamp?: number | undefined;
547
547
  scopes?: string[] | undefined;
548
548
  user_did?: string | undefined;
549
- delegation_token?: string | undefined;
550
549
  credential_jwt?: string | undefined;
550
+ delegation_token?: string | undefined;
551
551
  client_info?: {
552
- ip_address?: string | undefined;
553
552
  origin?: string | undefined;
553
+ ip_address?: string | undefined;
554
554
  user_agent?: string | undefined;
555
555
  } | undefined;
556
556
  }>;
@@ -606,11 +606,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
606
606
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
607
607
  }, "strip", z.ZodTypeAny, {
608
608
  resource: string;
609
- matcher: "exact" | "regex" | "prefix";
609
+ matcher: "exact" | "prefix" | "regex";
610
610
  constraints?: Record<string, any> | undefined;
611
611
  }, {
612
612
  resource: string;
613
- matcher: "exact" | "regex" | "prefix";
613
+ matcher: "exact" | "prefix" | "regex";
614
614
  constraints?: Record<string, any> | undefined;
615
615
  }>, "many">;
616
616
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -648,11 +648,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
648
648
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
649
649
  }, "strip", z.ZodTypeAny, {
650
650
  resource: string;
651
- matcher: "exact" | "regex" | "prefix";
651
+ matcher: "exact" | "prefix" | "regex";
652
652
  constraints?: Record<string, any> | undefined;
653
653
  }, {
654
654
  resource: string;
655
- matcher: "exact" | "regex" | "prefix";
655
+ matcher: "exact" | "prefix" | "regex";
656
656
  constraints?: Record<string, any> | undefined;
657
657
  }>, "many">;
658
658
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -690,11 +690,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
690
690
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
691
691
  }, "strip", z.ZodTypeAny, {
692
692
  resource: string;
693
- matcher: "exact" | "regex" | "prefix";
693
+ matcher: "exact" | "prefix" | "regex";
694
694
  constraints?: Record<string, any> | undefined;
695
695
  }, {
696
696
  resource: string;
697
- matcher: "exact" | "regex" | "prefix";
697
+ matcher: "exact" | "prefix" | "regex";
698
698
  constraints?: Record<string, any> | undefined;
699
699
  }>, "many">;
700
700
  }, z.ZodTypeAny, "passthrough">>>;
@@ -738,11 +738,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
738
738
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
739
739
  }, "strip", z.ZodTypeAny, {
740
740
  resource: string;
741
- matcher: "exact" | "regex" | "prefix";
741
+ matcher: "exact" | "prefix" | "regex";
742
742
  constraints?: Record<string, any> | undefined;
743
743
  }, {
744
744
  resource: string;
745
- matcher: "exact" | "regex" | "prefix";
745
+ matcher: "exact" | "prefix" | "regex";
746
746
  constraints?: Record<string, any> | undefined;
747
747
  }>, "many">;
748
748
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -780,11 +780,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
780
780
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
781
781
  }, "strip", z.ZodTypeAny, {
782
782
  resource: string;
783
- matcher: "exact" | "regex" | "prefix";
783
+ matcher: "exact" | "prefix" | "regex";
784
784
  constraints?: Record<string, any> | undefined;
785
785
  }, {
786
786
  resource: string;
787
- matcher: "exact" | "regex" | "prefix";
787
+ matcher: "exact" | "prefix" | "regex";
788
788
  constraints?: Record<string, any> | undefined;
789
789
  }>, "many">;
790
790
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -822,11 +822,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
822
822
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
823
823
  }, "strip", z.ZodTypeAny, {
824
824
  resource: string;
825
- matcher: "exact" | "regex" | "prefix";
825
+ matcher: "exact" | "prefix" | "regex";
826
826
  constraints?: Record<string, any> | undefined;
827
827
  }, {
828
828
  resource: string;
829
- matcher: "exact" | "regex" | "prefix";
829
+ matcher: "exact" | "prefix" | "regex";
830
830
  constraints?: Record<string, any> | undefined;
831
831
  }>, "many">;
832
832
  }, z.ZodTypeAny, "passthrough">>>;
@@ -870,11 +870,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
870
870
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
871
871
  }, "strip", z.ZodTypeAny, {
872
872
  resource: string;
873
- matcher: "exact" | "regex" | "prefix";
873
+ matcher: "exact" | "prefix" | "regex";
874
874
  constraints?: Record<string, any> | undefined;
875
875
  }, {
876
876
  resource: string;
877
- matcher: "exact" | "regex" | "prefix";
877
+ matcher: "exact" | "prefix" | "regex";
878
878
  constraints?: Record<string, any> | undefined;
879
879
  }>, "many">;
880
880
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -912,11 +912,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
912
912
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
913
913
  }, "strip", z.ZodTypeAny, {
914
914
  resource: string;
915
- matcher: "exact" | "regex" | "prefix";
915
+ matcher: "exact" | "prefix" | "regex";
916
916
  constraints?: Record<string, any> | undefined;
917
917
  }, {
918
918
  resource: string;
919
- matcher: "exact" | "regex" | "prefix";
919
+ matcher: "exact" | "prefix" | "regex";
920
920
  constraints?: Record<string, any> | undefined;
921
921
  }>, "many">;
922
922
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -954,11 +954,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
954
954
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
955
955
  }, "strip", z.ZodTypeAny, {
956
956
  resource: string;
957
- matcher: "exact" | "regex" | "prefix";
957
+ matcher: "exact" | "prefix" | "regex";
958
958
  constraints?: Record<string, any> | undefined;
959
959
  }, {
960
960
  resource: string;
961
- matcher: "exact" | "regex" | "prefix";
961
+ matcher: "exact" | "prefix" | "regex";
962
962
  constraints?: Record<string, any> | undefined;
963
963
  }>, "many">;
964
964
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1016,11 +1016,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1016
1016
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
1018
  resource: string;
1019
- matcher: "exact" | "regex" | "prefix";
1019
+ matcher: "exact" | "prefix" | "regex";
1020
1020
  constraints?: Record<string, any> | undefined;
1021
1021
  }, {
1022
1022
  resource: string;
1023
- matcher: "exact" | "regex" | "prefix";
1023
+ matcher: "exact" | "prefix" | "regex";
1024
1024
  constraints?: Record<string, any> | undefined;
1025
1025
  }>, "many">;
1026
1026
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1058,11 +1058,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1058
1058
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1059
1059
  }, "strip", z.ZodTypeAny, {
1060
1060
  resource: string;
1061
- matcher: "exact" | "regex" | "prefix";
1061
+ matcher: "exact" | "prefix" | "regex";
1062
1062
  constraints?: Record<string, any> | undefined;
1063
1063
  }, {
1064
1064
  resource: string;
1065
- matcher: "exact" | "regex" | "prefix";
1065
+ matcher: "exact" | "prefix" | "regex";
1066
1066
  constraints?: Record<string, any> | undefined;
1067
1067
  }>, "many">;
1068
1068
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1100,11 +1100,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1100
1100
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1101
1101
  }, "strip", z.ZodTypeAny, {
1102
1102
  resource: string;
1103
- matcher: "exact" | "regex" | "prefix";
1103
+ matcher: "exact" | "prefix" | "regex";
1104
1104
  constraints?: Record<string, any> | undefined;
1105
1105
  }, {
1106
1106
  resource: string;
1107
- matcher: "exact" | "regex" | "prefix";
1107
+ matcher: "exact" | "prefix" | "regex";
1108
1108
  constraints?: Record<string, any> | undefined;
1109
1109
  }>, "many">;
1110
1110
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1148,11 +1148,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1148
1148
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1149
1149
  }, "strip", z.ZodTypeAny, {
1150
1150
  resource: string;
1151
- matcher: "exact" | "regex" | "prefix";
1151
+ matcher: "exact" | "prefix" | "regex";
1152
1152
  constraints?: Record<string, any> | undefined;
1153
1153
  }, {
1154
1154
  resource: string;
1155
- matcher: "exact" | "regex" | "prefix";
1155
+ matcher: "exact" | "prefix" | "regex";
1156
1156
  constraints?: Record<string, any> | undefined;
1157
1157
  }>, "many">;
1158
1158
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1190,11 +1190,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1190
1190
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1191
1191
  }, "strip", z.ZodTypeAny, {
1192
1192
  resource: string;
1193
- matcher: "exact" | "regex" | "prefix";
1193
+ matcher: "exact" | "prefix" | "regex";
1194
1194
  constraints?: Record<string, any> | undefined;
1195
1195
  }, {
1196
1196
  resource: string;
1197
- matcher: "exact" | "regex" | "prefix";
1197
+ matcher: "exact" | "prefix" | "regex";
1198
1198
  constraints?: Record<string, any> | undefined;
1199
1199
  }>, "many">;
1200
1200
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1232,11 +1232,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1232
1232
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1233
1233
  }, "strip", z.ZodTypeAny, {
1234
1234
  resource: string;
1235
- matcher: "exact" | "regex" | "prefix";
1235
+ matcher: "exact" | "prefix" | "regex";
1236
1236
  constraints?: Record<string, any> | undefined;
1237
1237
  }, {
1238
1238
  resource: string;
1239
- matcher: "exact" | "regex" | "prefix";
1239
+ matcher: "exact" | "prefix" | "regex";
1240
1240
  constraints?: Record<string, any> | undefined;
1241
1241
  }>, "many">;
1242
1242
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1280,11 +1280,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1280
1280
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1281
1281
  }, "strip", z.ZodTypeAny, {
1282
1282
  resource: string;
1283
- matcher: "exact" | "regex" | "prefix";
1283
+ matcher: "exact" | "prefix" | "regex";
1284
1284
  constraints?: Record<string, any> | undefined;
1285
1285
  }, {
1286
1286
  resource: string;
1287
- matcher: "exact" | "regex" | "prefix";
1287
+ matcher: "exact" | "prefix" | "regex";
1288
1288
  constraints?: Record<string, any> | undefined;
1289
1289
  }>, "many">;
1290
1290
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1322,11 +1322,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1322
1322
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1323
1323
  }, "strip", z.ZodTypeAny, {
1324
1324
  resource: string;
1325
- matcher: "exact" | "regex" | "prefix";
1325
+ matcher: "exact" | "prefix" | "regex";
1326
1326
  constraints?: Record<string, any> | undefined;
1327
1327
  }, {
1328
1328
  resource: string;
1329
- matcher: "exact" | "regex" | "prefix";
1329
+ matcher: "exact" | "prefix" | "regex";
1330
1330
  constraints?: Record<string, any> | undefined;
1331
1331
  }>, "many">;
1332
1332
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1364,11 +1364,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1364
1364
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1365
1365
  }, "strip", z.ZodTypeAny, {
1366
1366
  resource: string;
1367
- matcher: "exact" | "regex" | "prefix";
1367
+ matcher: "exact" | "prefix" | "regex";
1368
1368
  constraints?: Record<string, any> | undefined;
1369
1369
  }, {
1370
1370
  resource: string;
1371
- matcher: "exact" | "regex" | "prefix";
1371
+ matcher: "exact" | "prefix" | "regex";
1372
1372
  constraints?: Record<string, any> | undefined;
1373
1373
  }>, "many">;
1374
1374
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1426,11 +1426,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1426
1426
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1427
1427
  }, "strip", z.ZodTypeAny, {
1428
1428
  resource: string;
1429
- matcher: "exact" | "regex" | "prefix";
1429
+ matcher: "exact" | "prefix" | "regex";
1430
1430
  constraints?: Record<string, any> | undefined;
1431
1431
  }, {
1432
1432
  resource: string;
1433
- matcher: "exact" | "regex" | "prefix";
1433
+ matcher: "exact" | "prefix" | "regex";
1434
1434
  constraints?: Record<string, any> | undefined;
1435
1435
  }>, "many">;
1436
1436
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1468,11 +1468,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1468
1468
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1469
1469
  }, "strip", z.ZodTypeAny, {
1470
1470
  resource: string;
1471
- matcher: "exact" | "regex" | "prefix";
1471
+ matcher: "exact" | "prefix" | "regex";
1472
1472
  constraints?: Record<string, any> | undefined;
1473
1473
  }, {
1474
1474
  resource: string;
1475
- matcher: "exact" | "regex" | "prefix";
1475
+ matcher: "exact" | "prefix" | "regex";
1476
1476
  constraints?: Record<string, any> | undefined;
1477
1477
  }>, "many">;
1478
1478
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1510,11 +1510,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1510
1510
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1511
1511
  }, "strip", z.ZodTypeAny, {
1512
1512
  resource: string;
1513
- matcher: "exact" | "regex" | "prefix";
1513
+ matcher: "exact" | "prefix" | "regex";
1514
1514
  constraints?: Record<string, any> | undefined;
1515
1515
  }, {
1516
1516
  resource: string;
1517
- matcher: "exact" | "regex" | "prefix";
1517
+ matcher: "exact" | "prefix" | "regex";
1518
1518
  constraints?: Record<string, any> | undefined;
1519
1519
  }>, "many">;
1520
1520
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1558,11 +1558,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1558
1558
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1559
1559
  }, "strip", z.ZodTypeAny, {
1560
1560
  resource: string;
1561
- matcher: "exact" | "regex" | "prefix";
1561
+ matcher: "exact" | "prefix" | "regex";
1562
1562
  constraints?: Record<string, any> | undefined;
1563
1563
  }, {
1564
1564
  resource: string;
1565
- matcher: "exact" | "regex" | "prefix";
1565
+ matcher: "exact" | "prefix" | "regex";
1566
1566
  constraints?: Record<string, any> | undefined;
1567
1567
  }>, "many">;
1568
1568
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1600,11 +1600,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1600
1600
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1601
1601
  }, "strip", z.ZodTypeAny, {
1602
1602
  resource: string;
1603
- matcher: "exact" | "regex" | "prefix";
1603
+ matcher: "exact" | "prefix" | "regex";
1604
1604
  constraints?: Record<string, any> | undefined;
1605
1605
  }, {
1606
1606
  resource: string;
1607
- matcher: "exact" | "regex" | "prefix";
1607
+ matcher: "exact" | "prefix" | "regex";
1608
1608
  constraints?: Record<string, any> | undefined;
1609
1609
  }>, "many">;
1610
1610
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1642,11 +1642,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1642
1642
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1643
1643
  }, "strip", z.ZodTypeAny, {
1644
1644
  resource: string;
1645
- matcher: "exact" | "regex" | "prefix";
1645
+ matcher: "exact" | "prefix" | "regex";
1646
1646
  constraints?: Record<string, any> | undefined;
1647
1647
  }, {
1648
1648
  resource: string;
1649
- matcher: "exact" | "regex" | "prefix";
1649
+ matcher: "exact" | "prefix" | "regex";
1650
1650
  constraints?: Record<string, any> | undefined;
1651
1651
  }>, "many">;
1652
1652
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1690,11 +1690,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1690
1690
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1691
1691
  }, "strip", z.ZodTypeAny, {
1692
1692
  resource: string;
1693
- matcher: "exact" | "regex" | "prefix";
1693
+ matcher: "exact" | "prefix" | "regex";
1694
1694
  constraints?: Record<string, any> | undefined;
1695
1695
  }, {
1696
1696
  resource: string;
1697
- matcher: "exact" | "regex" | "prefix";
1697
+ matcher: "exact" | "prefix" | "regex";
1698
1698
  constraints?: Record<string, any> | undefined;
1699
1699
  }>, "many">;
1700
1700
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1732,11 +1732,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1732
1732
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1733
1733
  }, "strip", z.ZodTypeAny, {
1734
1734
  resource: string;
1735
- matcher: "exact" | "regex" | "prefix";
1735
+ matcher: "exact" | "prefix" | "regex";
1736
1736
  constraints?: Record<string, any> | undefined;
1737
1737
  }, {
1738
1738
  resource: string;
1739
- matcher: "exact" | "regex" | "prefix";
1739
+ matcher: "exact" | "prefix" | "regex";
1740
1740
  constraints?: Record<string, any> | undefined;
1741
1741
  }>, "many">;
1742
1742
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1774,11 +1774,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1774
1774
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1775
1775
  }, "strip", z.ZodTypeAny, {
1776
1776
  resource: string;
1777
- matcher: "exact" | "regex" | "prefix";
1777
+ matcher: "exact" | "prefix" | "regex";
1778
1778
  constraints?: Record<string, any> | undefined;
1779
1779
  }, {
1780
1780
  resource: string;
1781
- matcher: "exact" | "regex" | "prefix";
1781
+ matcher: "exact" | "prefix" | "regex";
1782
1782
  constraints?: Record<string, any> | undefined;
1783
1783
  }>, "many">;
1784
1784
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1810,59 +1810,59 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1810
1810
  chainId: z.ZodOptional<z.ZodNumber>;
1811
1811
  domain: z.ZodOptional<z.ZodString>;
1812
1812
  }, "strip", z.ZodTypeAny, {
1813
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1814
- domain?: string | undefined;
1813
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
1815
1814
  provider?: string | undefined;
1816
1815
  credentialType?: string | undefined;
1817
1816
  rpId?: string | undefined;
1818
1817
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
1819
1818
  chainId?: number | undefined;
1820
- }, {
1821
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1822
1819
  domain?: string | undefined;
1820
+ }, {
1821
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
1823
1822
  provider?: string | undefined;
1824
1823
  credentialType?: string | undefined;
1825
1824
  rpId?: string | undefined;
1826
1825
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
1827
1826
  chainId?: number | undefined;
1827
+ domain?: string | undefined;
1828
1828
  }>;
1829
1829
  }, "strip", z.ZodTypeAny, {
1830
1830
  scopes: string[];
1831
- user_did: string;
1832
1831
  authorization: {
1833
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1834
- domain?: string | undefined;
1832
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
1835
1833
  provider?: string | undefined;
1836
1834
  credentialType?: string | undefined;
1837
1835
  rpId?: string | undefined;
1838
1836
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
1839
1837
  chainId?: number | undefined;
1838
+ domain?: string | undefined;
1840
1839
  };
1841
1840
  agent_did: string;
1841
+ user_did: string;
1842
1842
  issued_at: number;
1843
1843
  created_at: number;
1844
+ constraints?: Record<string, unknown> | undefined;
1844
1845
  user_id?: string | undefined;
1845
1846
  user_identifier?: string | undefined;
1846
- constraints?: Record<string, unknown> | undefined;
1847
1847
  credential_jwt?: string | undefined;
1848
1848
  }, {
1849
1849
  scopes: string[];
1850
- user_did: string;
1851
1850
  authorization: {
1852
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1853
- domain?: string | undefined;
1851
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
1854
1852
  provider?: string | undefined;
1855
1853
  credentialType?: string | undefined;
1856
1854
  rpId?: string | undefined;
1857
1855
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
1858
1856
  chainId?: number | undefined;
1857
+ domain?: string | undefined;
1859
1858
  };
1860
1859
  agent_did: string;
1860
+ user_did: string;
1861
1861
  issued_at: number;
1862
1862
  created_at: number;
1863
+ constraints?: Record<string, unknown> | undefined;
1863
1864
  user_id?: string | undefined;
1864
1865
  user_identifier?: string | undefined;
1865
- constraints?: Record<string, unknown> | undefined;
1866
1866
  credential_jwt?: string | undefined;
1867
1867
  }>>;
1868
1868
  error: z.ZodOptional<z.ZodObject<{
@@ -1881,6 +1881,33 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1881
1881
  reason: z.ZodOptional<z.ZodString>;
1882
1882
  }, "strip", z.ZodTypeAny, {
1883
1883
  valid: boolean;
1884
+ error?: {
1885
+ code: string;
1886
+ message: string;
1887
+ details?: Record<string, unknown> | undefined;
1888
+ } | undefined;
1889
+ credential?: {
1890
+ scopes: string[];
1891
+ authorization: {
1892
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
1893
+ provider?: string | undefined;
1894
+ credentialType?: string | undefined;
1895
+ rpId?: string | undefined;
1896
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1897
+ chainId?: number | undefined;
1898
+ domain?: string | undefined;
1899
+ };
1900
+ agent_did: string;
1901
+ user_did: string;
1902
+ issued_at: number;
1903
+ created_at: number;
1904
+ constraints?: Record<string, unknown> | undefined;
1905
+ user_id?: string | undefined;
1906
+ user_identifier?: string | undefined;
1907
+ credential_jwt?: string | undefined;
1908
+ } | undefined;
1909
+ delegation_id?: string | undefined;
1910
+ reason?: string | undefined;
1884
1911
  delegation?: z.objectOutputType<{
1885
1912
  id: z.ZodString;
1886
1913
  issuerDid: z.ZodString;
@@ -1928,11 +1955,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1928
1955
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1929
1956
  }, "strip", z.ZodTypeAny, {
1930
1957
  resource: string;
1931
- matcher: "exact" | "regex" | "prefix";
1958
+ matcher: "exact" | "prefix" | "regex";
1932
1959
  constraints?: Record<string, any> | undefined;
1933
1960
  }, {
1934
1961
  resource: string;
1935
- matcher: "exact" | "regex" | "prefix";
1962
+ matcher: "exact" | "prefix" | "regex";
1936
1963
  constraints?: Record<string, any> | undefined;
1937
1964
  }>, "many">;
1938
1965
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1970,11 +1997,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1970
1997
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1971
1998
  }, "strip", z.ZodTypeAny, {
1972
1999
  resource: string;
1973
- matcher: "exact" | "regex" | "prefix";
2000
+ matcher: "exact" | "prefix" | "regex";
1974
2001
  constraints?: Record<string, any> | undefined;
1975
2002
  }, {
1976
2003
  resource: string;
1977
- matcher: "exact" | "regex" | "prefix";
2004
+ matcher: "exact" | "prefix" | "regex";
1978
2005
  constraints?: Record<string, any> | undefined;
1979
2006
  }>, "many">;
1980
2007
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2012,11 +2039,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2012
2039
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2013
2040
  }, "strip", z.ZodTypeAny, {
2014
2041
  resource: string;
2015
- matcher: "exact" | "regex" | "prefix";
2042
+ matcher: "exact" | "prefix" | "regex";
2016
2043
  constraints?: Record<string, any> | undefined;
2017
2044
  }, {
2018
2045
  resource: string;
2019
- matcher: "exact" | "regex" | "prefix";
2046
+ matcher: "exact" | "prefix" | "regex";
2020
2047
  constraints?: Record<string, any> | undefined;
2021
2048
  }>, "many">;
2022
2049
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2060,11 +2087,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2060
2087
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2061
2088
  }, "strip", z.ZodTypeAny, {
2062
2089
  resource: string;
2063
- matcher: "exact" | "regex" | "prefix";
2090
+ matcher: "exact" | "prefix" | "regex";
2064
2091
  constraints?: Record<string, any> | undefined;
2065
2092
  }, {
2066
2093
  resource: string;
2067
- matcher: "exact" | "regex" | "prefix";
2094
+ matcher: "exact" | "prefix" | "regex";
2068
2095
  constraints?: Record<string, any> | undefined;
2069
2096
  }>, "many">;
2070
2097
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2102,11 +2129,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2102
2129
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2103
2130
  }, "strip", z.ZodTypeAny, {
2104
2131
  resource: string;
2105
- matcher: "exact" | "regex" | "prefix";
2132
+ matcher: "exact" | "prefix" | "regex";
2106
2133
  constraints?: Record<string, any> | undefined;
2107
2134
  }, {
2108
2135
  resource: string;
2109
- matcher: "exact" | "regex" | "prefix";
2136
+ matcher: "exact" | "prefix" | "regex";
2110
2137
  constraints?: Record<string, any> | undefined;
2111
2138
  }>, "many">;
2112
2139
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2144,11 +2171,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2144
2171
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2145
2172
  }, "strip", z.ZodTypeAny, {
2146
2173
  resource: string;
2147
- matcher: "exact" | "regex" | "prefix";
2174
+ matcher: "exact" | "prefix" | "regex";
2148
2175
  constraints?: Record<string, any> | undefined;
2149
2176
  }, {
2150
2177
  resource: string;
2151
- matcher: "exact" | "regex" | "prefix";
2178
+ matcher: "exact" | "prefix" | "regex";
2152
2179
  constraints?: Record<string, any> | undefined;
2153
2180
  }>, "many">;
2154
2181
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2192,11 +2219,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2192
2219
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2193
2220
  }, "strip", z.ZodTypeAny, {
2194
2221
  resource: string;
2195
- matcher: "exact" | "regex" | "prefix";
2222
+ matcher: "exact" | "prefix" | "regex";
2196
2223
  constraints?: Record<string, any> | undefined;
2197
2224
  }, {
2198
2225
  resource: string;
2199
- matcher: "exact" | "regex" | "prefix";
2226
+ matcher: "exact" | "prefix" | "regex";
2200
2227
  constraints?: Record<string, any> | undefined;
2201
2228
  }>, "many">;
2202
2229
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2234,11 +2261,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2234
2261
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2235
2262
  }, "strip", z.ZodTypeAny, {
2236
2263
  resource: string;
2237
- matcher: "exact" | "regex" | "prefix";
2264
+ matcher: "exact" | "prefix" | "regex";
2238
2265
  constraints?: Record<string, any> | undefined;
2239
2266
  }, {
2240
2267
  resource: string;
2241
- matcher: "exact" | "regex" | "prefix";
2268
+ matcher: "exact" | "prefix" | "regex";
2242
2269
  constraints?: Record<string, any> | undefined;
2243
2270
  }>, "many">;
2244
2271
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2276,11 +2303,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2276
2303
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2277
2304
  }, "strip", z.ZodTypeAny, {
2278
2305
  resource: string;
2279
- matcher: "exact" | "regex" | "prefix";
2306
+ matcher: "exact" | "prefix" | "regex";
2280
2307
  constraints?: Record<string, any> | undefined;
2281
2308
  }, {
2282
2309
  resource: string;
2283
- matcher: "exact" | "regex" | "prefix";
2310
+ matcher: "exact" | "prefix" | "regex";
2284
2311
  constraints?: Record<string, any> | undefined;
2285
2312
  }>, "many">;
2286
2313
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2292,35 +2319,35 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2292
2319
  revokedReason: z.ZodOptional<z.ZodString>;
2293
2320
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2294
2321
  }, z.ZodTypeAny, "passthrough"> | undefined;
2322
+ }, {
2323
+ valid: boolean;
2295
2324
  error?: {
2296
2325
  code: string;
2297
2326
  message: string;
2298
2327
  details?: Record<string, unknown> | undefined;
2299
2328
  } | undefined;
2300
- reason?: string | undefined;
2301
2329
  credential?: {
2302
2330
  scopes: string[];
2303
- user_did: string;
2304
2331
  authorization: {
2305
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
2306
- domain?: string | undefined;
2332
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
2307
2333
  provider?: string | undefined;
2308
2334
  credentialType?: string | undefined;
2309
2335
  rpId?: string | undefined;
2310
2336
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
2311
2337
  chainId?: number | undefined;
2338
+ domain?: string | undefined;
2312
2339
  };
2313
2340
  agent_did: string;
2341
+ user_did: string;
2314
2342
  issued_at: number;
2315
2343
  created_at: number;
2344
+ constraints?: Record<string, unknown> | undefined;
2316
2345
  user_id?: string | undefined;
2317
2346
  user_identifier?: string | undefined;
2318
- constraints?: Record<string, unknown> | undefined;
2319
2347
  credential_jwt?: string | undefined;
2320
2348
  } | undefined;
2321
2349
  delegation_id?: string | undefined;
2322
- }, {
2323
- valid: boolean;
2350
+ reason?: string | undefined;
2324
2351
  delegation?: z.objectInputType<{
2325
2352
  id: z.ZodString;
2326
2353
  issuerDid: z.ZodString;
@@ -2368,11 +2395,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2368
2395
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2369
2396
  }, "strip", z.ZodTypeAny, {
2370
2397
  resource: string;
2371
- matcher: "exact" | "regex" | "prefix";
2398
+ matcher: "exact" | "prefix" | "regex";
2372
2399
  constraints?: Record<string, any> | undefined;
2373
2400
  }, {
2374
2401
  resource: string;
2375
- matcher: "exact" | "regex" | "prefix";
2402
+ matcher: "exact" | "prefix" | "regex";
2376
2403
  constraints?: Record<string, any> | undefined;
2377
2404
  }>, "many">;
2378
2405
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2410,11 +2437,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2410
2437
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2411
2438
  }, "strip", z.ZodTypeAny, {
2412
2439
  resource: string;
2413
- matcher: "exact" | "regex" | "prefix";
2440
+ matcher: "exact" | "prefix" | "regex";
2414
2441
  constraints?: Record<string, any> | undefined;
2415
2442
  }, {
2416
2443
  resource: string;
2417
- matcher: "exact" | "regex" | "prefix";
2444
+ matcher: "exact" | "prefix" | "regex";
2418
2445
  constraints?: Record<string, any> | undefined;
2419
2446
  }>, "many">;
2420
2447
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2452,11 +2479,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2452
2479
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2453
2480
  }, "strip", z.ZodTypeAny, {
2454
2481
  resource: string;
2455
- matcher: "exact" | "regex" | "prefix";
2482
+ matcher: "exact" | "prefix" | "regex";
2456
2483
  constraints?: Record<string, any> | undefined;
2457
2484
  }, {
2458
2485
  resource: string;
2459
- matcher: "exact" | "regex" | "prefix";
2486
+ matcher: "exact" | "prefix" | "regex";
2460
2487
  constraints?: Record<string, any> | undefined;
2461
2488
  }>, "many">;
2462
2489
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2500,11 +2527,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2500
2527
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2501
2528
  }, "strip", z.ZodTypeAny, {
2502
2529
  resource: string;
2503
- matcher: "exact" | "regex" | "prefix";
2530
+ matcher: "exact" | "prefix" | "regex";
2504
2531
  constraints?: Record<string, any> | undefined;
2505
2532
  }, {
2506
2533
  resource: string;
2507
- matcher: "exact" | "regex" | "prefix";
2534
+ matcher: "exact" | "prefix" | "regex";
2508
2535
  constraints?: Record<string, any> | undefined;
2509
2536
  }>, "many">;
2510
2537
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2542,11 +2569,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2542
2569
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2543
2570
  }, "strip", z.ZodTypeAny, {
2544
2571
  resource: string;
2545
- matcher: "exact" | "regex" | "prefix";
2572
+ matcher: "exact" | "prefix" | "regex";
2546
2573
  constraints?: Record<string, any> | undefined;
2547
2574
  }, {
2548
2575
  resource: string;
2549
- matcher: "exact" | "regex" | "prefix";
2576
+ matcher: "exact" | "prefix" | "regex";
2550
2577
  constraints?: Record<string, any> | undefined;
2551
2578
  }>, "many">;
2552
2579
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2584,11 +2611,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2584
2611
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2585
2612
  }, "strip", z.ZodTypeAny, {
2586
2613
  resource: string;
2587
- matcher: "exact" | "regex" | "prefix";
2614
+ matcher: "exact" | "prefix" | "regex";
2588
2615
  constraints?: Record<string, any> | undefined;
2589
2616
  }, {
2590
2617
  resource: string;
2591
- matcher: "exact" | "regex" | "prefix";
2618
+ matcher: "exact" | "prefix" | "regex";
2592
2619
  constraints?: Record<string, any> | undefined;
2593
2620
  }>, "many">;
2594
2621
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2632,11 +2659,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2632
2659
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2633
2660
  }, "strip", z.ZodTypeAny, {
2634
2661
  resource: string;
2635
- matcher: "exact" | "regex" | "prefix";
2662
+ matcher: "exact" | "prefix" | "regex";
2636
2663
  constraints?: Record<string, any> | undefined;
2637
2664
  }, {
2638
2665
  resource: string;
2639
- matcher: "exact" | "regex" | "prefix";
2666
+ matcher: "exact" | "prefix" | "regex";
2640
2667
  constraints?: Record<string, any> | undefined;
2641
2668
  }>, "many">;
2642
2669
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2674,11 +2701,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2674
2701
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2675
2702
  }, "strip", z.ZodTypeAny, {
2676
2703
  resource: string;
2677
- matcher: "exact" | "regex" | "prefix";
2704
+ matcher: "exact" | "prefix" | "regex";
2678
2705
  constraints?: Record<string, any> | undefined;
2679
2706
  }, {
2680
2707
  resource: string;
2681
- matcher: "exact" | "regex" | "prefix";
2708
+ matcher: "exact" | "prefix" | "regex";
2682
2709
  constraints?: Record<string, any> | undefined;
2683
2710
  }>, "many">;
2684
2711
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2716,11 +2743,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2716
2743
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2717
2744
  }, "strip", z.ZodTypeAny, {
2718
2745
  resource: string;
2719
- matcher: "exact" | "regex" | "prefix";
2746
+ matcher: "exact" | "prefix" | "regex";
2720
2747
  constraints?: Record<string, any> | undefined;
2721
2748
  }, {
2722
2749
  resource: string;
2723
- matcher: "exact" | "regex" | "prefix";
2750
+ matcher: "exact" | "prefix" | "regex";
2724
2751
  constraints?: Record<string, any> | undefined;
2725
2752
  }>, "many">;
2726
2753
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2732,33 +2759,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2732
2759
  revokedReason: z.ZodOptional<z.ZodString>;
2733
2760
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2734
2761
  }, z.ZodTypeAny, "passthrough"> | undefined;
2735
- error?: {
2736
- code: string;
2737
- message: string;
2738
- details?: Record<string, unknown> | undefined;
2739
- } | undefined;
2740
- reason?: string | undefined;
2741
- credential?: {
2742
- scopes: string[];
2743
- user_did: string;
2744
- authorization: {
2745
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
2746
- domain?: string | undefined;
2747
- provider?: string | undefined;
2748
- credentialType?: string | undefined;
2749
- rpId?: string | undefined;
2750
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
2751
- chainId?: number | undefined;
2752
- };
2753
- agent_did: string;
2754
- issued_at: number;
2755
- created_at: number;
2756
- user_id?: string | undefined;
2757
- user_identifier?: string | undefined;
2758
- constraints?: Record<string, unknown> | undefined;
2759
- credential_jwt?: string | undefined;
2760
- } | undefined;
2761
- delegation_id?: string | undefined;
2762
2762
  }>;
2763
2763
  /**
2764
2764
  * Wrapped verification response schema
@@ -2814,11 +2814,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
2814
2814
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2815
2815
  }, "strip", z.ZodTypeAny, {
2816
2816
  resource: string;
2817
- matcher: "exact" | "regex" | "prefix";
2817
+ matcher: "exact" | "prefix" | "regex";
2818
2818
  constraints?: Record<string, any> | undefined;
2819
2819
  }, {
2820
2820
  resource: string;
2821
- matcher: "exact" | "regex" | "prefix";
2821
+ matcher: "exact" | "prefix" | "regex";
2822
2822
  constraints?: Record<string, any> | undefined;
2823
2823
  }>, "many">;
2824
2824
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2856,11 +2856,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
2856
2856
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2857
2857
  }, "strip", z.ZodTypeAny, {
2858
2858
  resource: string;
2859
- matcher: "exact" | "regex" | "prefix";
2859
+ matcher: "exact" | "prefix" | "regex";
2860
2860
  constraints?: Record<string, any> | undefined;
2861
2861
  }, {
2862
2862
  resource: string;
2863
- matcher: "exact" | "regex" | "prefix";
2863
+ matcher: "exact" | "prefix" | "regex";
2864
2864
  constraints?: Record<string, any> | undefined;
2865
2865
  }>, "many">;
2866
2866
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2898,11 +2898,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
2898
2898
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2899
2899
  }, "strip", z.ZodTypeAny, {
2900
2900
  resource: string;
2901
- matcher: "exact" | "regex" | "prefix";
2901
+ matcher: "exact" | "prefix" | "regex";
2902
2902
  constraints?: Record<string, any> | undefined;
2903
2903
  }, {
2904
2904
  resource: string;
2905
- matcher: "exact" | "regex" | "prefix";
2905
+ matcher: "exact" | "prefix" | "regex";
2906
2906
  constraints?: Record<string, any> | undefined;
2907
2907
  }>, "many">;
2908
2908
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2946,11 +2946,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
2946
2946
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2947
2947
  }, "strip", z.ZodTypeAny, {
2948
2948
  resource: string;
2949
- matcher: "exact" | "regex" | "prefix";
2949
+ matcher: "exact" | "prefix" | "regex";
2950
2950
  constraints?: Record<string, any> | undefined;
2951
2951
  }, {
2952
2952
  resource: string;
2953
- matcher: "exact" | "regex" | "prefix";
2953
+ matcher: "exact" | "prefix" | "regex";
2954
2954
  constraints?: Record<string, any> | undefined;
2955
2955
  }>, "many">;
2956
2956
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2988,11 +2988,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
2988
2988
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2989
2989
  }, "strip", z.ZodTypeAny, {
2990
2990
  resource: string;
2991
- matcher: "exact" | "regex" | "prefix";
2991
+ matcher: "exact" | "prefix" | "regex";
2992
2992
  constraints?: Record<string, any> | undefined;
2993
2993
  }, {
2994
2994
  resource: string;
2995
- matcher: "exact" | "regex" | "prefix";
2995
+ matcher: "exact" | "prefix" | "regex";
2996
2996
  constraints?: Record<string, any> | undefined;
2997
2997
  }>, "many">;
2998
2998
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3030,11 +3030,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3030
3030
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3031
3031
  }, "strip", z.ZodTypeAny, {
3032
3032
  resource: string;
3033
- matcher: "exact" | "regex" | "prefix";
3033
+ matcher: "exact" | "prefix" | "regex";
3034
3034
  constraints?: Record<string, any> | undefined;
3035
3035
  }, {
3036
3036
  resource: string;
3037
- matcher: "exact" | "regex" | "prefix";
3037
+ matcher: "exact" | "prefix" | "regex";
3038
3038
  constraints?: Record<string, any> | undefined;
3039
3039
  }>, "many">;
3040
3040
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3078,11 +3078,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3078
3078
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3079
3079
  }, "strip", z.ZodTypeAny, {
3080
3080
  resource: string;
3081
- matcher: "exact" | "regex" | "prefix";
3081
+ matcher: "exact" | "prefix" | "regex";
3082
3082
  constraints?: Record<string, any> | undefined;
3083
3083
  }, {
3084
3084
  resource: string;
3085
- matcher: "exact" | "regex" | "prefix";
3085
+ matcher: "exact" | "prefix" | "regex";
3086
3086
  constraints?: Record<string, any> | undefined;
3087
3087
  }>, "many">;
3088
3088
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3120,11 +3120,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3120
3120
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3121
3121
  }, "strip", z.ZodTypeAny, {
3122
3122
  resource: string;
3123
- matcher: "exact" | "regex" | "prefix";
3123
+ matcher: "exact" | "prefix" | "regex";
3124
3124
  constraints?: Record<string, any> | undefined;
3125
3125
  }, {
3126
3126
  resource: string;
3127
- matcher: "exact" | "regex" | "prefix";
3127
+ matcher: "exact" | "prefix" | "regex";
3128
3128
  constraints?: Record<string, any> | undefined;
3129
3129
  }>, "many">;
3130
3130
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3162,11 +3162,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3162
3162
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3163
3163
  }, "strip", z.ZodTypeAny, {
3164
3164
  resource: string;
3165
- matcher: "exact" | "regex" | "prefix";
3165
+ matcher: "exact" | "prefix" | "regex";
3166
3166
  constraints?: Record<string, any> | undefined;
3167
3167
  }, {
3168
3168
  resource: string;
3169
- matcher: "exact" | "regex" | "prefix";
3169
+ matcher: "exact" | "prefix" | "regex";
3170
3170
  constraints?: Record<string, any> | undefined;
3171
3171
  }>, "many">;
3172
3172
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3224,11 +3224,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3224
3224
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3225
3225
  }, "strip", z.ZodTypeAny, {
3226
3226
  resource: string;
3227
- matcher: "exact" | "regex" | "prefix";
3227
+ matcher: "exact" | "prefix" | "regex";
3228
3228
  constraints?: Record<string, any> | undefined;
3229
3229
  }, {
3230
3230
  resource: string;
3231
- matcher: "exact" | "regex" | "prefix";
3231
+ matcher: "exact" | "prefix" | "regex";
3232
3232
  constraints?: Record<string, any> | undefined;
3233
3233
  }>, "many">;
3234
3234
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3266,11 +3266,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3266
3266
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3267
3267
  }, "strip", z.ZodTypeAny, {
3268
3268
  resource: string;
3269
- matcher: "exact" | "regex" | "prefix";
3269
+ matcher: "exact" | "prefix" | "regex";
3270
3270
  constraints?: Record<string, any> | undefined;
3271
3271
  }, {
3272
3272
  resource: string;
3273
- matcher: "exact" | "regex" | "prefix";
3273
+ matcher: "exact" | "prefix" | "regex";
3274
3274
  constraints?: Record<string, any> | undefined;
3275
3275
  }>, "many">;
3276
3276
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3308,11 +3308,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3308
3308
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3309
3309
  }, "strip", z.ZodTypeAny, {
3310
3310
  resource: string;
3311
- matcher: "exact" | "regex" | "prefix";
3311
+ matcher: "exact" | "prefix" | "regex";
3312
3312
  constraints?: Record<string, any> | undefined;
3313
3313
  }, {
3314
3314
  resource: string;
3315
- matcher: "exact" | "regex" | "prefix";
3315
+ matcher: "exact" | "prefix" | "regex";
3316
3316
  constraints?: Record<string, any> | undefined;
3317
3317
  }>, "many">;
3318
3318
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3356,11 +3356,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3356
3356
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3357
3357
  }, "strip", z.ZodTypeAny, {
3358
3358
  resource: string;
3359
- matcher: "exact" | "regex" | "prefix";
3359
+ matcher: "exact" | "prefix" | "regex";
3360
3360
  constraints?: Record<string, any> | undefined;
3361
3361
  }, {
3362
3362
  resource: string;
3363
- matcher: "exact" | "regex" | "prefix";
3363
+ matcher: "exact" | "prefix" | "regex";
3364
3364
  constraints?: Record<string, any> | undefined;
3365
3365
  }>, "many">;
3366
3366
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3398,11 +3398,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3398
3398
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3399
3399
  }, "strip", z.ZodTypeAny, {
3400
3400
  resource: string;
3401
- matcher: "exact" | "regex" | "prefix";
3401
+ matcher: "exact" | "prefix" | "regex";
3402
3402
  constraints?: Record<string, any> | undefined;
3403
3403
  }, {
3404
3404
  resource: string;
3405
- matcher: "exact" | "regex" | "prefix";
3405
+ matcher: "exact" | "prefix" | "regex";
3406
3406
  constraints?: Record<string, any> | undefined;
3407
3407
  }>, "many">;
3408
3408
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3440,11 +3440,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3440
3440
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3441
3441
  }, "strip", z.ZodTypeAny, {
3442
3442
  resource: string;
3443
- matcher: "exact" | "regex" | "prefix";
3443
+ matcher: "exact" | "prefix" | "regex";
3444
3444
  constraints?: Record<string, any> | undefined;
3445
3445
  }, {
3446
3446
  resource: string;
3447
- matcher: "exact" | "regex" | "prefix";
3447
+ matcher: "exact" | "prefix" | "regex";
3448
3448
  constraints?: Record<string, any> | undefined;
3449
3449
  }>, "many">;
3450
3450
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3488,11 +3488,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3488
3488
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3489
3489
  }, "strip", z.ZodTypeAny, {
3490
3490
  resource: string;
3491
- matcher: "exact" | "regex" | "prefix";
3491
+ matcher: "exact" | "prefix" | "regex";
3492
3492
  constraints?: Record<string, any> | undefined;
3493
3493
  }, {
3494
3494
  resource: string;
3495
- matcher: "exact" | "regex" | "prefix";
3495
+ matcher: "exact" | "prefix" | "regex";
3496
3496
  constraints?: Record<string, any> | undefined;
3497
3497
  }>, "many">;
3498
3498
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3530,11 +3530,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3530
3530
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3531
3531
  }, "strip", z.ZodTypeAny, {
3532
3532
  resource: string;
3533
- matcher: "exact" | "regex" | "prefix";
3533
+ matcher: "exact" | "prefix" | "regex";
3534
3534
  constraints?: Record<string, any> | undefined;
3535
3535
  }, {
3536
3536
  resource: string;
3537
- matcher: "exact" | "regex" | "prefix";
3537
+ matcher: "exact" | "prefix" | "regex";
3538
3538
  constraints?: Record<string, any> | undefined;
3539
3539
  }>, "many">;
3540
3540
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3572,11 +3572,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3572
3572
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3573
3573
  }, "strip", z.ZodTypeAny, {
3574
3574
  resource: string;
3575
- matcher: "exact" | "regex" | "prefix";
3575
+ matcher: "exact" | "prefix" | "regex";
3576
3576
  constraints?: Record<string, any> | undefined;
3577
3577
  }, {
3578
3578
  resource: string;
3579
- matcher: "exact" | "regex" | "prefix";
3579
+ matcher: "exact" | "prefix" | "regex";
3580
3580
  constraints?: Record<string, any> | undefined;
3581
3581
  }>, "many">;
3582
3582
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3634,11 +3634,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3634
3634
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3635
3635
  }, "strip", z.ZodTypeAny, {
3636
3636
  resource: string;
3637
- matcher: "exact" | "regex" | "prefix";
3637
+ matcher: "exact" | "prefix" | "regex";
3638
3638
  constraints?: Record<string, any> | undefined;
3639
3639
  }, {
3640
3640
  resource: string;
3641
- matcher: "exact" | "regex" | "prefix";
3641
+ matcher: "exact" | "prefix" | "regex";
3642
3642
  constraints?: Record<string, any> | undefined;
3643
3643
  }>, "many">;
3644
3644
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3676,11 +3676,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3676
3676
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3677
3677
  }, "strip", z.ZodTypeAny, {
3678
3678
  resource: string;
3679
- matcher: "exact" | "regex" | "prefix";
3679
+ matcher: "exact" | "prefix" | "regex";
3680
3680
  constraints?: Record<string, any> | undefined;
3681
3681
  }, {
3682
3682
  resource: string;
3683
- matcher: "exact" | "regex" | "prefix";
3683
+ matcher: "exact" | "prefix" | "regex";
3684
3684
  constraints?: Record<string, any> | undefined;
3685
3685
  }>, "many">;
3686
3686
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3718,11 +3718,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3718
3718
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3719
3719
  }, "strip", z.ZodTypeAny, {
3720
3720
  resource: string;
3721
- matcher: "exact" | "regex" | "prefix";
3721
+ matcher: "exact" | "prefix" | "regex";
3722
3722
  constraints?: Record<string, any> | undefined;
3723
3723
  }, {
3724
3724
  resource: string;
3725
- matcher: "exact" | "regex" | "prefix";
3725
+ matcher: "exact" | "prefix" | "regex";
3726
3726
  constraints?: Record<string, any> | undefined;
3727
3727
  }>, "many">;
3728
3728
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3766,11 +3766,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3766
3766
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3767
3767
  }, "strip", z.ZodTypeAny, {
3768
3768
  resource: string;
3769
- matcher: "exact" | "regex" | "prefix";
3769
+ matcher: "exact" | "prefix" | "regex";
3770
3770
  constraints?: Record<string, any> | undefined;
3771
3771
  }, {
3772
3772
  resource: string;
3773
- matcher: "exact" | "regex" | "prefix";
3773
+ matcher: "exact" | "prefix" | "regex";
3774
3774
  constraints?: Record<string, any> | undefined;
3775
3775
  }>, "many">;
3776
3776
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3808,11 +3808,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3808
3808
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3809
3809
  }, "strip", z.ZodTypeAny, {
3810
3810
  resource: string;
3811
- matcher: "exact" | "regex" | "prefix";
3811
+ matcher: "exact" | "prefix" | "regex";
3812
3812
  constraints?: Record<string, any> | undefined;
3813
3813
  }, {
3814
3814
  resource: string;
3815
- matcher: "exact" | "regex" | "prefix";
3815
+ matcher: "exact" | "prefix" | "regex";
3816
3816
  constraints?: Record<string, any> | undefined;
3817
3817
  }>, "many">;
3818
3818
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3850,11 +3850,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3850
3850
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3851
3851
  }, "strip", z.ZodTypeAny, {
3852
3852
  resource: string;
3853
- matcher: "exact" | "regex" | "prefix";
3853
+ matcher: "exact" | "prefix" | "regex";
3854
3854
  constraints?: Record<string, any> | undefined;
3855
3855
  }, {
3856
3856
  resource: string;
3857
- matcher: "exact" | "regex" | "prefix";
3857
+ matcher: "exact" | "prefix" | "regex";
3858
3858
  constraints?: Record<string, any> | undefined;
3859
3859
  }>, "many">;
3860
3860
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3898,11 +3898,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3898
3898
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3899
3899
  }, "strip", z.ZodTypeAny, {
3900
3900
  resource: string;
3901
- matcher: "exact" | "regex" | "prefix";
3901
+ matcher: "exact" | "prefix" | "regex";
3902
3902
  constraints?: Record<string, any> | undefined;
3903
3903
  }, {
3904
3904
  resource: string;
3905
- matcher: "exact" | "regex" | "prefix";
3905
+ matcher: "exact" | "prefix" | "regex";
3906
3906
  constraints?: Record<string, any> | undefined;
3907
3907
  }>, "many">;
3908
3908
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3940,11 +3940,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3940
3940
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3941
3941
  }, "strip", z.ZodTypeAny, {
3942
3942
  resource: string;
3943
- matcher: "exact" | "regex" | "prefix";
3943
+ matcher: "exact" | "prefix" | "regex";
3944
3944
  constraints?: Record<string, any> | undefined;
3945
3945
  }, {
3946
3946
  resource: string;
3947
- matcher: "exact" | "regex" | "prefix";
3947
+ matcher: "exact" | "prefix" | "regex";
3948
3948
  constraints?: Record<string, any> | undefined;
3949
3949
  }>, "many">;
3950
3950
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3982,11 +3982,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3982
3982
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3983
3983
  }, "strip", z.ZodTypeAny, {
3984
3984
  resource: string;
3985
- matcher: "exact" | "regex" | "prefix";
3985
+ matcher: "exact" | "prefix" | "regex";
3986
3986
  constraints?: Record<string, any> | undefined;
3987
3987
  }, {
3988
3988
  resource: string;
3989
- matcher: "exact" | "regex" | "prefix";
3989
+ matcher: "exact" | "prefix" | "regex";
3990
3990
  constraints?: Record<string, any> | undefined;
3991
3991
  }>, "many">;
3992
3992
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4018,59 +4018,59 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4018
4018
  chainId: z.ZodOptional<z.ZodNumber>;
4019
4019
  domain: z.ZodOptional<z.ZodString>;
4020
4020
  }, "strip", z.ZodTypeAny, {
4021
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4022
- domain?: string | undefined;
4021
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
4023
4022
  provider?: string | undefined;
4024
4023
  credentialType?: string | undefined;
4025
4024
  rpId?: string | undefined;
4026
4025
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
4027
4026
  chainId?: number | undefined;
4028
- }, {
4029
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4030
4027
  domain?: string | undefined;
4028
+ }, {
4029
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
4031
4030
  provider?: string | undefined;
4032
4031
  credentialType?: string | undefined;
4033
4032
  rpId?: string | undefined;
4034
4033
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
4035
4034
  chainId?: number | undefined;
4035
+ domain?: string | undefined;
4036
4036
  }>;
4037
4037
  }, "strip", z.ZodTypeAny, {
4038
4038
  scopes: string[];
4039
- user_did: string;
4040
4039
  authorization: {
4041
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4042
- domain?: string | undefined;
4040
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
4043
4041
  provider?: string | undefined;
4044
4042
  credentialType?: string | undefined;
4045
4043
  rpId?: string | undefined;
4046
4044
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
4047
4045
  chainId?: number | undefined;
4046
+ domain?: string | undefined;
4048
4047
  };
4049
4048
  agent_did: string;
4049
+ user_did: string;
4050
4050
  issued_at: number;
4051
4051
  created_at: number;
4052
+ constraints?: Record<string, unknown> | undefined;
4052
4053
  user_id?: string | undefined;
4053
4054
  user_identifier?: string | undefined;
4054
- constraints?: Record<string, unknown> | undefined;
4055
4055
  credential_jwt?: string | undefined;
4056
4056
  }, {
4057
4057
  scopes: string[];
4058
- user_did: string;
4059
4058
  authorization: {
4060
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4061
- domain?: string | undefined;
4059
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
4062
4060
  provider?: string | undefined;
4063
4061
  credentialType?: string | undefined;
4064
4062
  rpId?: string | undefined;
4065
4063
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
4066
4064
  chainId?: number | undefined;
4065
+ domain?: string | undefined;
4067
4066
  };
4068
4067
  agent_did: string;
4068
+ user_did: string;
4069
4069
  issued_at: number;
4070
4070
  created_at: number;
4071
+ constraints?: Record<string, unknown> | undefined;
4071
4072
  user_id?: string | undefined;
4072
4073
  user_identifier?: string | undefined;
4073
- constraints?: Record<string, unknown> | undefined;
4074
4074
  credential_jwt?: string | undefined;
4075
4075
  }>>;
4076
4076
  error: z.ZodOptional<z.ZodObject<{
@@ -4089,6 +4089,33 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4089
4089
  reason: z.ZodOptional<z.ZodString>;
4090
4090
  }, "strip", z.ZodTypeAny, {
4091
4091
  valid: boolean;
4092
+ error?: {
4093
+ code: string;
4094
+ message: string;
4095
+ details?: Record<string, unknown> | undefined;
4096
+ } | undefined;
4097
+ credential?: {
4098
+ scopes: string[];
4099
+ authorization: {
4100
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
4101
+ provider?: string | undefined;
4102
+ credentialType?: string | undefined;
4103
+ rpId?: string | undefined;
4104
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
4105
+ chainId?: number | undefined;
4106
+ domain?: string | undefined;
4107
+ };
4108
+ agent_did: string;
4109
+ user_did: string;
4110
+ issued_at: number;
4111
+ created_at: number;
4112
+ constraints?: Record<string, unknown> | undefined;
4113
+ user_id?: string | undefined;
4114
+ user_identifier?: string | undefined;
4115
+ credential_jwt?: string | undefined;
4116
+ } | undefined;
4117
+ delegation_id?: string | undefined;
4118
+ reason?: string | undefined;
4092
4119
  delegation?: z.objectOutputType<{
4093
4120
  id: z.ZodString;
4094
4121
  issuerDid: z.ZodString;
@@ -4136,11 +4163,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4136
4163
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4137
4164
  }, "strip", z.ZodTypeAny, {
4138
4165
  resource: string;
4139
- matcher: "exact" | "regex" | "prefix";
4166
+ matcher: "exact" | "prefix" | "regex";
4140
4167
  constraints?: Record<string, any> | undefined;
4141
4168
  }, {
4142
4169
  resource: string;
4143
- matcher: "exact" | "regex" | "prefix";
4170
+ matcher: "exact" | "prefix" | "regex";
4144
4171
  constraints?: Record<string, any> | undefined;
4145
4172
  }>, "many">;
4146
4173
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4178,11 +4205,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4178
4205
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4179
4206
  }, "strip", z.ZodTypeAny, {
4180
4207
  resource: string;
4181
- matcher: "exact" | "regex" | "prefix";
4208
+ matcher: "exact" | "prefix" | "regex";
4182
4209
  constraints?: Record<string, any> | undefined;
4183
4210
  }, {
4184
4211
  resource: string;
4185
- matcher: "exact" | "regex" | "prefix";
4212
+ matcher: "exact" | "prefix" | "regex";
4186
4213
  constraints?: Record<string, any> | undefined;
4187
4214
  }>, "many">;
4188
4215
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4220,11 +4247,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4220
4247
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4221
4248
  }, "strip", z.ZodTypeAny, {
4222
4249
  resource: string;
4223
- matcher: "exact" | "regex" | "prefix";
4250
+ matcher: "exact" | "prefix" | "regex";
4224
4251
  constraints?: Record<string, any> | undefined;
4225
4252
  }, {
4226
4253
  resource: string;
4227
- matcher: "exact" | "regex" | "prefix";
4254
+ matcher: "exact" | "prefix" | "regex";
4228
4255
  constraints?: Record<string, any> | undefined;
4229
4256
  }>, "many">;
4230
4257
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4268,11 +4295,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4268
4295
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4269
4296
  }, "strip", z.ZodTypeAny, {
4270
4297
  resource: string;
4271
- matcher: "exact" | "regex" | "prefix";
4298
+ matcher: "exact" | "prefix" | "regex";
4272
4299
  constraints?: Record<string, any> | undefined;
4273
4300
  }, {
4274
4301
  resource: string;
4275
- matcher: "exact" | "regex" | "prefix";
4302
+ matcher: "exact" | "prefix" | "regex";
4276
4303
  constraints?: Record<string, any> | undefined;
4277
4304
  }>, "many">;
4278
4305
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4310,11 +4337,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4310
4337
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4311
4338
  }, "strip", z.ZodTypeAny, {
4312
4339
  resource: string;
4313
- matcher: "exact" | "regex" | "prefix";
4340
+ matcher: "exact" | "prefix" | "regex";
4314
4341
  constraints?: Record<string, any> | undefined;
4315
4342
  }, {
4316
4343
  resource: string;
4317
- matcher: "exact" | "regex" | "prefix";
4344
+ matcher: "exact" | "prefix" | "regex";
4318
4345
  constraints?: Record<string, any> | undefined;
4319
4346
  }>, "many">;
4320
4347
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4352,11 +4379,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4352
4379
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4353
4380
  }, "strip", z.ZodTypeAny, {
4354
4381
  resource: string;
4355
- matcher: "exact" | "regex" | "prefix";
4382
+ matcher: "exact" | "prefix" | "regex";
4356
4383
  constraints?: Record<string, any> | undefined;
4357
4384
  }, {
4358
4385
  resource: string;
4359
- matcher: "exact" | "regex" | "prefix";
4386
+ matcher: "exact" | "prefix" | "regex";
4360
4387
  constraints?: Record<string, any> | undefined;
4361
4388
  }>, "many">;
4362
4389
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4400,11 +4427,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4400
4427
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4401
4428
  }, "strip", z.ZodTypeAny, {
4402
4429
  resource: string;
4403
- matcher: "exact" | "regex" | "prefix";
4430
+ matcher: "exact" | "prefix" | "regex";
4404
4431
  constraints?: Record<string, any> | undefined;
4405
4432
  }, {
4406
4433
  resource: string;
4407
- matcher: "exact" | "regex" | "prefix";
4434
+ matcher: "exact" | "prefix" | "regex";
4408
4435
  constraints?: Record<string, any> | undefined;
4409
4436
  }>, "many">;
4410
4437
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4442,11 +4469,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4442
4469
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4443
4470
  }, "strip", z.ZodTypeAny, {
4444
4471
  resource: string;
4445
- matcher: "exact" | "regex" | "prefix";
4472
+ matcher: "exact" | "prefix" | "regex";
4446
4473
  constraints?: Record<string, any> | undefined;
4447
4474
  }, {
4448
4475
  resource: string;
4449
- matcher: "exact" | "regex" | "prefix";
4476
+ matcher: "exact" | "prefix" | "regex";
4450
4477
  constraints?: Record<string, any> | undefined;
4451
4478
  }>, "many">;
4452
4479
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4484,11 +4511,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4484
4511
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4485
4512
  }, "strip", z.ZodTypeAny, {
4486
4513
  resource: string;
4487
- matcher: "exact" | "regex" | "prefix";
4514
+ matcher: "exact" | "prefix" | "regex";
4488
4515
  constraints?: Record<string, any> | undefined;
4489
4516
  }, {
4490
4517
  resource: string;
4491
- matcher: "exact" | "regex" | "prefix";
4518
+ matcher: "exact" | "prefix" | "regex";
4492
4519
  constraints?: Record<string, any> | undefined;
4493
4520
  }>, "many">;
4494
4521
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4500,35 +4527,35 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4500
4527
  revokedReason: z.ZodOptional<z.ZodString>;
4501
4528
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4502
4529
  }, z.ZodTypeAny, "passthrough"> | undefined;
4530
+ }, {
4531
+ valid: boolean;
4503
4532
  error?: {
4504
4533
  code: string;
4505
4534
  message: string;
4506
4535
  details?: Record<string, unknown> | undefined;
4507
4536
  } | undefined;
4508
- reason?: string | undefined;
4509
4537
  credential?: {
4510
4538
  scopes: string[];
4511
- user_did: string;
4512
4539
  authorization: {
4513
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4514
- domain?: string | undefined;
4540
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
4515
4541
  provider?: string | undefined;
4516
4542
  credentialType?: string | undefined;
4517
4543
  rpId?: string | undefined;
4518
4544
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
4519
4545
  chainId?: number | undefined;
4546
+ domain?: string | undefined;
4520
4547
  };
4521
4548
  agent_did: string;
4549
+ user_did: string;
4522
4550
  issued_at: number;
4523
4551
  created_at: number;
4552
+ constraints?: Record<string, unknown> | undefined;
4524
4553
  user_id?: string | undefined;
4525
4554
  user_identifier?: string | undefined;
4526
- constraints?: Record<string, unknown> | undefined;
4527
4555
  credential_jwt?: string | undefined;
4528
4556
  } | undefined;
4529
4557
  delegation_id?: string | undefined;
4530
- }, {
4531
- valid: boolean;
4558
+ reason?: string | undefined;
4532
4559
  delegation?: z.objectInputType<{
4533
4560
  id: z.ZodString;
4534
4561
  issuerDid: z.ZodString;
@@ -4576,11 +4603,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4576
4603
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4577
4604
  }, "strip", z.ZodTypeAny, {
4578
4605
  resource: string;
4579
- matcher: "exact" | "regex" | "prefix";
4606
+ matcher: "exact" | "prefix" | "regex";
4580
4607
  constraints?: Record<string, any> | undefined;
4581
4608
  }, {
4582
4609
  resource: string;
4583
- matcher: "exact" | "regex" | "prefix";
4610
+ matcher: "exact" | "prefix" | "regex";
4584
4611
  constraints?: Record<string, any> | undefined;
4585
4612
  }>, "many">;
4586
4613
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4618,11 +4645,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4618
4645
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4619
4646
  }, "strip", z.ZodTypeAny, {
4620
4647
  resource: string;
4621
- matcher: "exact" | "regex" | "prefix";
4648
+ matcher: "exact" | "prefix" | "regex";
4622
4649
  constraints?: Record<string, any> | undefined;
4623
4650
  }, {
4624
4651
  resource: string;
4625
- matcher: "exact" | "regex" | "prefix";
4652
+ matcher: "exact" | "prefix" | "regex";
4626
4653
  constraints?: Record<string, any> | undefined;
4627
4654
  }>, "many">;
4628
4655
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4660,11 +4687,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4660
4687
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4661
4688
  }, "strip", z.ZodTypeAny, {
4662
4689
  resource: string;
4663
- matcher: "exact" | "regex" | "prefix";
4690
+ matcher: "exact" | "prefix" | "regex";
4664
4691
  constraints?: Record<string, any> | undefined;
4665
4692
  }, {
4666
4693
  resource: string;
4667
- matcher: "exact" | "regex" | "prefix";
4694
+ matcher: "exact" | "prefix" | "regex";
4668
4695
  constraints?: Record<string, any> | undefined;
4669
4696
  }>, "many">;
4670
4697
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4708,11 +4735,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4708
4735
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4709
4736
  }, "strip", z.ZodTypeAny, {
4710
4737
  resource: string;
4711
- matcher: "exact" | "regex" | "prefix";
4738
+ matcher: "exact" | "prefix" | "regex";
4712
4739
  constraints?: Record<string, any> | undefined;
4713
4740
  }, {
4714
4741
  resource: string;
4715
- matcher: "exact" | "regex" | "prefix";
4742
+ matcher: "exact" | "prefix" | "regex";
4716
4743
  constraints?: Record<string, any> | undefined;
4717
4744
  }>, "many">;
4718
4745
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4750,11 +4777,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4750
4777
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4751
4778
  }, "strip", z.ZodTypeAny, {
4752
4779
  resource: string;
4753
- matcher: "exact" | "regex" | "prefix";
4780
+ matcher: "exact" | "prefix" | "regex";
4754
4781
  constraints?: Record<string, any> | undefined;
4755
4782
  }, {
4756
4783
  resource: string;
4757
- matcher: "exact" | "regex" | "prefix";
4784
+ matcher: "exact" | "prefix" | "regex";
4758
4785
  constraints?: Record<string, any> | undefined;
4759
4786
  }>, "many">;
4760
4787
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4792,11 +4819,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4792
4819
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4793
4820
  }, "strip", z.ZodTypeAny, {
4794
4821
  resource: string;
4795
- matcher: "exact" | "regex" | "prefix";
4822
+ matcher: "exact" | "prefix" | "regex";
4796
4823
  constraints?: Record<string, any> | undefined;
4797
4824
  }, {
4798
4825
  resource: string;
4799
- matcher: "exact" | "regex" | "prefix";
4826
+ matcher: "exact" | "prefix" | "regex";
4800
4827
  constraints?: Record<string, any> | undefined;
4801
4828
  }>, "many">;
4802
4829
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4840,11 +4867,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4840
4867
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4841
4868
  }, "strip", z.ZodTypeAny, {
4842
4869
  resource: string;
4843
- matcher: "exact" | "regex" | "prefix";
4870
+ matcher: "exact" | "prefix" | "regex";
4844
4871
  constraints?: Record<string, any> | undefined;
4845
4872
  }, {
4846
4873
  resource: string;
4847
- matcher: "exact" | "regex" | "prefix";
4874
+ matcher: "exact" | "prefix" | "regex";
4848
4875
  constraints?: Record<string, any> | undefined;
4849
4876
  }>, "many">;
4850
4877
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4882,11 +4909,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4882
4909
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4883
4910
  }, "strip", z.ZodTypeAny, {
4884
4911
  resource: string;
4885
- matcher: "exact" | "regex" | "prefix";
4912
+ matcher: "exact" | "prefix" | "regex";
4886
4913
  constraints?: Record<string, any> | undefined;
4887
4914
  }, {
4888
4915
  resource: string;
4889
- matcher: "exact" | "regex" | "prefix";
4916
+ matcher: "exact" | "prefix" | "regex";
4890
4917
  constraints?: Record<string, any> | undefined;
4891
4918
  }>, "many">;
4892
4919
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4924,11 +4951,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4924
4951
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4925
4952
  }, "strip", z.ZodTypeAny, {
4926
4953
  resource: string;
4927
- matcher: "exact" | "regex" | "prefix";
4954
+ matcher: "exact" | "prefix" | "regex";
4928
4955
  constraints?: Record<string, any> | undefined;
4929
4956
  }, {
4930
4957
  resource: string;
4931
- matcher: "exact" | "regex" | "prefix";
4958
+ matcher: "exact" | "prefix" | "regex";
4932
4959
  constraints?: Record<string, any> | undefined;
4933
4960
  }>, "many">;
4934
4961
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4940,48 +4967,48 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4940
4967
  revokedReason: z.ZodOptional<z.ZodString>;
4941
4968
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4942
4969
  }, z.ZodTypeAny, "passthrough"> | undefined;
4970
+ }>;
4971
+ metadata: z.ZodOptional<z.ZodObject<{
4972
+ requestId: z.ZodString;
4973
+ timestamp: z.ZodString;
4974
+ }, "strip", z.ZodTypeAny, {
4975
+ timestamp: string;
4976
+ requestId: string;
4977
+ }, {
4978
+ timestamp: string;
4979
+ requestId: string;
4980
+ }>>;
4981
+ }, "strip", z.ZodTypeAny, {
4982
+ success: boolean;
4983
+ data: {
4984
+ valid: boolean;
4943
4985
  error?: {
4944
4986
  code: string;
4945
4987
  message: string;
4946
4988
  details?: Record<string, unknown> | undefined;
4947
4989
  } | undefined;
4948
- reason?: string | undefined;
4949
4990
  credential?: {
4950
4991
  scopes: string[];
4951
- user_did: string;
4952
4992
  authorization: {
4953
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4954
- domain?: string | undefined;
4993
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
4955
4994
  provider?: string | undefined;
4956
4995
  credentialType?: string | undefined;
4957
4996
  rpId?: string | undefined;
4958
4997
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
4959
4998
  chainId?: number | undefined;
4999
+ domain?: string | undefined;
4960
5000
  };
4961
5001
  agent_did: string;
5002
+ user_did: string;
4962
5003
  issued_at: number;
4963
5004
  created_at: number;
5005
+ constraints?: Record<string, unknown> | undefined;
4964
5006
  user_id?: string | undefined;
4965
5007
  user_identifier?: string | undefined;
4966
- constraints?: Record<string, unknown> | undefined;
4967
5008
  credential_jwt?: string | undefined;
4968
5009
  } | undefined;
4969
5010
  delegation_id?: string | undefined;
4970
- }>;
4971
- metadata: z.ZodOptional<z.ZodObject<{
4972
- requestId: z.ZodString;
4973
- timestamp: z.ZodString;
4974
- }, "strip", z.ZodTypeAny, {
4975
- timestamp: string;
4976
- requestId: string;
4977
- }, {
4978
- timestamp: string;
4979
- requestId: string;
4980
- }>>;
4981
- }, "strip", z.ZodTypeAny, {
4982
- success: boolean;
4983
- data: {
4984
- valid: boolean;
5011
+ reason?: string | undefined;
4985
5012
  delegation?: z.objectOutputType<{
4986
5013
  id: z.ZodString;
4987
5014
  issuerDid: z.ZodString;
@@ -5029,11 +5056,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5029
5056
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5030
5057
  }, "strip", z.ZodTypeAny, {
5031
5058
  resource: string;
5032
- matcher: "exact" | "regex" | "prefix";
5059
+ matcher: "exact" | "prefix" | "regex";
5033
5060
  constraints?: Record<string, any> | undefined;
5034
5061
  }, {
5035
5062
  resource: string;
5036
- matcher: "exact" | "regex" | "prefix";
5063
+ matcher: "exact" | "prefix" | "regex";
5037
5064
  constraints?: Record<string, any> | undefined;
5038
5065
  }>, "many">;
5039
5066
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5071,11 +5098,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5071
5098
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5072
5099
  }, "strip", z.ZodTypeAny, {
5073
5100
  resource: string;
5074
- matcher: "exact" | "regex" | "prefix";
5101
+ matcher: "exact" | "prefix" | "regex";
5075
5102
  constraints?: Record<string, any> | undefined;
5076
5103
  }, {
5077
5104
  resource: string;
5078
- matcher: "exact" | "regex" | "prefix";
5105
+ matcher: "exact" | "prefix" | "regex";
5079
5106
  constraints?: Record<string, any> | undefined;
5080
5107
  }>, "many">;
5081
5108
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5113,11 +5140,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5113
5140
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5114
5141
  }, "strip", z.ZodTypeAny, {
5115
5142
  resource: string;
5116
- matcher: "exact" | "regex" | "prefix";
5143
+ matcher: "exact" | "prefix" | "regex";
5117
5144
  constraints?: Record<string, any> | undefined;
5118
5145
  }, {
5119
5146
  resource: string;
5120
- matcher: "exact" | "regex" | "prefix";
5147
+ matcher: "exact" | "prefix" | "regex";
5121
5148
  constraints?: Record<string, any> | undefined;
5122
5149
  }>, "many">;
5123
5150
  }, z.ZodTypeAny, "passthrough">>>;
@@ -5161,11 +5188,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5161
5188
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5162
5189
  }, "strip", z.ZodTypeAny, {
5163
5190
  resource: string;
5164
- matcher: "exact" | "regex" | "prefix";
5191
+ matcher: "exact" | "prefix" | "regex";
5165
5192
  constraints?: Record<string, any> | undefined;
5166
5193
  }, {
5167
5194
  resource: string;
5168
- matcher: "exact" | "regex" | "prefix";
5195
+ matcher: "exact" | "prefix" | "regex";
5169
5196
  constraints?: Record<string, any> | undefined;
5170
5197
  }>, "many">;
5171
5198
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5203,11 +5230,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5203
5230
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5204
5231
  }, "strip", z.ZodTypeAny, {
5205
5232
  resource: string;
5206
- matcher: "exact" | "regex" | "prefix";
5233
+ matcher: "exact" | "prefix" | "regex";
5207
5234
  constraints?: Record<string, any> | undefined;
5208
5235
  }, {
5209
5236
  resource: string;
5210
- matcher: "exact" | "regex" | "prefix";
5237
+ matcher: "exact" | "prefix" | "regex";
5211
5238
  constraints?: Record<string, any> | undefined;
5212
5239
  }>, "many">;
5213
5240
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5245,11 +5272,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5245
5272
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5246
5273
  }, "strip", z.ZodTypeAny, {
5247
5274
  resource: string;
5248
- matcher: "exact" | "regex" | "prefix";
5275
+ matcher: "exact" | "prefix" | "regex";
5249
5276
  constraints?: Record<string, any> | undefined;
5250
5277
  }, {
5251
5278
  resource: string;
5252
- matcher: "exact" | "regex" | "prefix";
5279
+ matcher: "exact" | "prefix" | "regex";
5253
5280
  constraints?: Record<string, any> | undefined;
5254
5281
  }>, "many">;
5255
5282
  }, z.ZodTypeAny, "passthrough">>>;
@@ -5293,11 +5320,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5293
5320
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5294
5321
  }, "strip", z.ZodTypeAny, {
5295
5322
  resource: string;
5296
- matcher: "exact" | "regex" | "prefix";
5323
+ matcher: "exact" | "prefix" | "regex";
5297
5324
  constraints?: Record<string, any> | undefined;
5298
5325
  }, {
5299
5326
  resource: string;
5300
- matcher: "exact" | "regex" | "prefix";
5327
+ matcher: "exact" | "prefix" | "regex";
5301
5328
  constraints?: Record<string, any> | undefined;
5302
5329
  }>, "many">;
5303
5330
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5335,11 +5362,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5335
5362
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5336
5363
  }, "strip", z.ZodTypeAny, {
5337
5364
  resource: string;
5338
- matcher: "exact" | "regex" | "prefix";
5365
+ matcher: "exact" | "prefix" | "regex";
5339
5366
  constraints?: Record<string, any> | undefined;
5340
5367
  }, {
5341
5368
  resource: string;
5342
- matcher: "exact" | "regex" | "prefix";
5369
+ matcher: "exact" | "prefix" | "regex";
5343
5370
  constraints?: Record<string, any> | undefined;
5344
5371
  }>, "many">;
5345
5372
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5377,11 +5404,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5377
5404
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5378
5405
  }, "strip", z.ZodTypeAny, {
5379
5406
  resource: string;
5380
- matcher: "exact" | "regex" | "prefix";
5407
+ matcher: "exact" | "prefix" | "regex";
5381
5408
  constraints?: Record<string, any> | undefined;
5382
5409
  }, {
5383
5410
  resource: string;
5384
- matcher: "exact" | "regex" | "prefix";
5411
+ matcher: "exact" | "prefix" | "regex";
5385
5412
  constraints?: Record<string, any> | undefined;
5386
5413
  }>, "many">;
5387
5414
  }, z.ZodTypeAny, "passthrough">>>;
@@ -5393,42 +5420,42 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5393
5420
  revokedReason: z.ZodOptional<z.ZodString>;
5394
5421
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5395
5422
  }, z.ZodTypeAny, "passthrough"> | undefined;
5423
+ };
5424
+ metadata?: {
5425
+ timestamp: string;
5426
+ requestId: string;
5427
+ } | undefined;
5428
+ }, {
5429
+ success: boolean;
5430
+ data: {
5431
+ valid: boolean;
5396
5432
  error?: {
5397
5433
  code: string;
5398
5434
  message: string;
5399
5435
  details?: Record<string, unknown> | undefined;
5400
5436
  } | undefined;
5401
- reason?: string | undefined;
5402
5437
  credential?: {
5403
5438
  scopes: string[];
5404
- user_did: string;
5405
5439
  authorization: {
5406
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
5407
- domain?: string | undefined;
5440
+ type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
5408
5441
  provider?: string | undefined;
5409
5442
  credentialType?: string | undefined;
5410
5443
  rpId?: string | undefined;
5411
5444
  userVerification?: "required" | "preferred" | "discouraged" | undefined;
5412
5445
  chainId?: number | undefined;
5446
+ domain?: string | undefined;
5413
5447
  };
5414
5448
  agent_did: string;
5449
+ user_did: string;
5415
5450
  issued_at: number;
5416
5451
  created_at: number;
5452
+ constraints?: Record<string, unknown> | undefined;
5417
5453
  user_id?: string | undefined;
5418
5454
  user_identifier?: string | undefined;
5419
- constraints?: Record<string, unknown> | undefined;
5420
5455
  credential_jwt?: string | undefined;
5421
5456
  } | undefined;
5422
5457
  delegation_id?: string | undefined;
5423
- };
5424
- metadata?: {
5425
- timestamp: string;
5426
- requestId: string;
5427
- } | undefined;
5428
- }, {
5429
- success: boolean;
5430
- data: {
5431
- valid: boolean;
5458
+ reason?: string | undefined;
5432
5459
  delegation?: z.objectInputType<{
5433
5460
  id: z.ZodString;
5434
5461
  issuerDid: z.ZodString;
@@ -5476,11 +5503,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5476
5503
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5477
5504
  }, "strip", z.ZodTypeAny, {
5478
5505
  resource: string;
5479
- matcher: "exact" | "regex" | "prefix";
5506
+ matcher: "exact" | "prefix" | "regex";
5480
5507
  constraints?: Record<string, any> | undefined;
5481
5508
  }, {
5482
5509
  resource: string;
5483
- matcher: "exact" | "regex" | "prefix";
5510
+ matcher: "exact" | "prefix" | "regex";
5484
5511
  constraints?: Record<string, any> | undefined;
5485
5512
  }>, "many">;
5486
5513
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5518,11 +5545,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5518
5545
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5519
5546
  }, "strip", z.ZodTypeAny, {
5520
5547
  resource: string;
5521
- matcher: "exact" | "regex" | "prefix";
5548
+ matcher: "exact" | "prefix" | "regex";
5522
5549
  constraints?: Record<string, any> | undefined;
5523
5550
  }, {
5524
5551
  resource: string;
5525
- matcher: "exact" | "regex" | "prefix";
5552
+ matcher: "exact" | "prefix" | "regex";
5526
5553
  constraints?: Record<string, any> | undefined;
5527
5554
  }>, "many">;
5528
5555
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5560,11 +5587,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5560
5587
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5561
5588
  }, "strip", z.ZodTypeAny, {
5562
5589
  resource: string;
5563
- matcher: "exact" | "regex" | "prefix";
5590
+ matcher: "exact" | "prefix" | "regex";
5564
5591
  constraints?: Record<string, any> | undefined;
5565
5592
  }, {
5566
5593
  resource: string;
5567
- matcher: "exact" | "regex" | "prefix";
5594
+ matcher: "exact" | "prefix" | "regex";
5568
5595
  constraints?: Record<string, any> | undefined;
5569
5596
  }>, "many">;
5570
5597
  }, z.ZodTypeAny, "passthrough">>>;
@@ -5608,11 +5635,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5608
5635
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5609
5636
  }, "strip", z.ZodTypeAny, {
5610
5637
  resource: string;
5611
- matcher: "exact" | "regex" | "prefix";
5638
+ matcher: "exact" | "prefix" | "regex";
5612
5639
  constraints?: Record<string, any> | undefined;
5613
5640
  }, {
5614
5641
  resource: string;
5615
- matcher: "exact" | "regex" | "prefix";
5642
+ matcher: "exact" | "prefix" | "regex";
5616
5643
  constraints?: Record<string, any> | undefined;
5617
5644
  }>, "many">;
5618
5645
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5650,11 +5677,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5650
5677
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5651
5678
  }, "strip", z.ZodTypeAny, {
5652
5679
  resource: string;
5653
- matcher: "exact" | "regex" | "prefix";
5680
+ matcher: "exact" | "prefix" | "regex";
5654
5681
  constraints?: Record<string, any> | undefined;
5655
5682
  }, {
5656
5683
  resource: string;
5657
- matcher: "exact" | "regex" | "prefix";
5684
+ matcher: "exact" | "prefix" | "regex";
5658
5685
  constraints?: Record<string, any> | undefined;
5659
5686
  }>, "many">;
5660
5687
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5692,11 +5719,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5692
5719
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5693
5720
  }, "strip", z.ZodTypeAny, {
5694
5721
  resource: string;
5695
- matcher: "exact" | "regex" | "prefix";
5722
+ matcher: "exact" | "prefix" | "regex";
5696
5723
  constraints?: Record<string, any> | undefined;
5697
5724
  }, {
5698
5725
  resource: string;
5699
- matcher: "exact" | "regex" | "prefix";
5726
+ matcher: "exact" | "prefix" | "regex";
5700
5727
  constraints?: Record<string, any> | undefined;
5701
5728
  }>, "many">;
5702
5729
  }, z.ZodTypeAny, "passthrough">>>;
@@ -5740,11 +5767,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5740
5767
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5741
5768
  }, "strip", z.ZodTypeAny, {
5742
5769
  resource: string;
5743
- matcher: "exact" | "regex" | "prefix";
5770
+ matcher: "exact" | "prefix" | "regex";
5744
5771
  constraints?: Record<string, any> | undefined;
5745
5772
  }, {
5746
5773
  resource: string;
5747
- matcher: "exact" | "regex" | "prefix";
5774
+ matcher: "exact" | "prefix" | "regex";
5748
5775
  constraints?: Record<string, any> | undefined;
5749
5776
  }>, "many">;
5750
5777
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5782,11 +5809,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5782
5809
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5783
5810
  }, "strip", z.ZodTypeAny, {
5784
5811
  resource: string;
5785
- matcher: "exact" | "regex" | "prefix";
5812
+ matcher: "exact" | "prefix" | "regex";
5786
5813
  constraints?: Record<string, any> | undefined;
5787
5814
  }, {
5788
5815
  resource: string;
5789
- matcher: "exact" | "regex" | "prefix";
5816
+ matcher: "exact" | "prefix" | "regex";
5790
5817
  constraints?: Record<string, any> | undefined;
5791
5818
  }>, "many">;
5792
5819
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5824,11 +5851,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5824
5851
  constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5825
5852
  }, "strip", z.ZodTypeAny, {
5826
5853
  resource: string;
5827
- matcher: "exact" | "regex" | "prefix";
5854
+ matcher: "exact" | "prefix" | "regex";
5828
5855
  constraints?: Record<string, any> | undefined;
5829
5856
  }, {
5830
5857
  resource: string;
5831
- matcher: "exact" | "regex" | "prefix";
5858
+ matcher: "exact" | "prefix" | "regex";
5832
5859
  constraints?: Record<string, any> | undefined;
5833
5860
  }>, "many">;
5834
5861
  }, z.ZodTypeAny, "passthrough">>>;
@@ -5840,33 +5867,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5840
5867
  revokedReason: z.ZodOptional<z.ZodString>;
5841
5868
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5842
5869
  }, z.ZodTypeAny, "passthrough"> | undefined;
5843
- error?: {
5844
- code: string;
5845
- message: string;
5846
- details?: Record<string, unknown> | undefined;
5847
- } | undefined;
5848
- reason?: string | undefined;
5849
- credential?: {
5850
- scopes: string[];
5851
- user_did: string;
5852
- authorization: {
5853
- type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
5854
- domain?: string | undefined;
5855
- provider?: string | undefined;
5856
- credentialType?: string | undefined;
5857
- rpId?: string | undefined;
5858
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
5859
- chainId?: number | undefined;
5860
- };
5861
- agent_did: string;
5862
- issued_at: number;
5863
- created_at: number;
5864
- user_id?: string | undefined;
5865
- user_identifier?: string | undefined;
5866
- constraints?: Record<string, unknown> | undefined;
5867
- credential_jwt?: string | undefined;
5868
- } | undefined;
5869
- delegation_id?: string | undefined;
5870
5870
  };
5871
5871
  metadata?: {
5872
5872
  timestamp: string;
@@ -6172,28 +6172,28 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
6172
6172
  token_type: z.ZodOptional<z.ZodString>;
6173
6173
  expires_in: z.ZodOptional<z.ZodNumber>;
6174
6174
  }, "strip", z.ZodTypeAny, {
6175
- status: "active" | "revoked" | "expired";
6175
+ status: "revoked" | "active" | "expired";
6176
6176
  scopes: string[];
6177
- agent_did: string;
6178
6177
  delegation_id: string;
6178
+ agent_did: string;
6179
6179
  issued_at: string;
6180
6180
  created_at: string;
6181
- delegation_token?: string | undefined;
6182
6181
  user_id?: string | undefined;
6183
6182
  user_identifier?: string | undefined;
6183
+ delegation_token?: string | undefined;
6184
6184
  expires_at?: string | null | undefined;
6185
6185
  token_type?: string | undefined;
6186
6186
  expires_in?: number | undefined;
6187
6187
  }, {
6188
- status: "active" | "revoked" | "expired";
6188
+ status: "revoked" | "active" | "expired";
6189
6189
  scopes: string[];
6190
- agent_did: string;
6191
6190
  delegation_id: string;
6191
+ agent_did: string;
6192
6192
  issued_at: string;
6193
6193
  created_at: string;
6194
- delegation_token?: string | undefined;
6195
6194
  user_id?: string | undefined;
6196
6195
  user_identifier?: string | undefined;
6196
+ delegation_token?: string | undefined;
6197
6197
  expires_at?: string | null | undefined;
6198
6198
  token_type?: string | undefined;
6199
6199
  expires_in?: number | undefined;
@@ -6217,28 +6217,28 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6217
6217
  token_type: z.ZodOptional<z.ZodString>;
6218
6218
  expires_in: z.ZodOptional<z.ZodNumber>;
6219
6219
  }, "strip", z.ZodTypeAny, {
6220
- status: "active" | "revoked" | "expired";
6220
+ status: "revoked" | "active" | "expired";
6221
6221
  scopes: string[];
6222
- agent_did: string;
6223
6222
  delegation_id: string;
6223
+ agent_did: string;
6224
6224
  issued_at: string;
6225
6225
  created_at: string;
6226
- delegation_token?: string | undefined;
6227
6226
  user_id?: string | undefined;
6228
6227
  user_identifier?: string | undefined;
6228
+ delegation_token?: string | undefined;
6229
6229
  expires_at?: string | null | undefined;
6230
6230
  token_type?: string | undefined;
6231
6231
  expires_in?: number | undefined;
6232
6232
  }, {
6233
- status: "active" | "revoked" | "expired";
6233
+ status: "revoked" | "active" | "expired";
6234
6234
  scopes: string[];
6235
- agent_did: string;
6236
6235
  delegation_id: string;
6236
+ agent_did: string;
6237
6237
  issued_at: string;
6238
6238
  created_at: string;
6239
- delegation_token?: string | undefined;
6240
6239
  user_id?: string | undefined;
6241
6240
  user_identifier?: string | undefined;
6241
+ delegation_token?: string | undefined;
6242
6242
  expires_at?: string | null | undefined;
6243
6243
  token_type?: string | undefined;
6244
6244
  expires_in?: number | undefined;
@@ -6256,15 +6256,15 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6256
6256
  }, "strip", z.ZodTypeAny, {
6257
6257
  success: boolean;
6258
6258
  data: {
6259
- status: "active" | "revoked" | "expired";
6259
+ status: "revoked" | "active" | "expired";
6260
6260
  scopes: string[];
6261
- agent_did: string;
6262
6261
  delegation_id: string;
6262
+ agent_did: string;
6263
6263
  issued_at: string;
6264
6264
  created_at: string;
6265
- delegation_token?: string | undefined;
6266
6265
  user_id?: string | undefined;
6267
6266
  user_identifier?: string | undefined;
6267
+ delegation_token?: string | undefined;
6268
6268
  expires_at?: string | null | undefined;
6269
6269
  token_type?: string | undefined;
6270
6270
  expires_in?: number | undefined;
@@ -6276,15 +6276,15 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6276
6276
  }, {
6277
6277
  success: boolean;
6278
6278
  data: {
6279
- status: "active" | "revoked" | "expired";
6279
+ status: "revoked" | "active" | "expired";
6280
6280
  scopes: string[];
6281
- agent_did: string;
6282
6281
  delegation_id: string;
6282
+ agent_did: string;
6283
6283
  issued_at: string;
6284
6284
  created_at: string;
6285
- delegation_token?: string | undefined;
6286
6285
  user_id?: string | undefined;
6287
6286
  user_identifier?: string | undefined;
6287
+ delegation_token?: string | undefined;
6288
6288
  expires_at?: string | null | undefined;
6289
6289
  token_type?: string | undefined;
6290
6290
  expires_in?: number | undefined;
@@ -6312,12 +6312,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
6312
6312
  revoked: z.ZodBoolean;
6313
6313
  revoked_at: z.ZodNumber;
6314
6314
  }, "strip", z.ZodTypeAny, {
6315
- delegation_id: string;
6316
6315
  revoked: boolean;
6316
+ delegation_id: string;
6317
6317
  revoked_at: number;
6318
6318
  }, {
6319
- delegation_id: string;
6320
6319
  revoked: boolean;
6320
+ delegation_id: string;
6321
6321
  revoked_at: number;
6322
6322
  }>;
6323
6323
  /**
@@ -6330,12 +6330,12 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6330
6330
  revoked: z.ZodBoolean;
6331
6331
  revoked_at: z.ZodNumber;
6332
6332
  }, "strip", z.ZodTypeAny, {
6333
- delegation_id: string;
6334
6333
  revoked: boolean;
6334
+ delegation_id: string;
6335
6335
  revoked_at: number;
6336
6336
  }, {
6337
- delegation_id: string;
6338
6337
  revoked: boolean;
6338
+ delegation_id: string;
6339
6339
  revoked_at: number;
6340
6340
  }>;
6341
6341
  metadata: z.ZodOptional<z.ZodObject<{
@@ -6351,8 +6351,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6351
6351
  }, "strip", z.ZodTypeAny, {
6352
6352
  success: boolean;
6353
6353
  data: {
6354
- delegation_id: string;
6355
6354
  revoked: boolean;
6355
+ delegation_id: string;
6356
6356
  revoked_at: number;
6357
6357
  };
6358
6358
  metadata?: {
@@ -6362,8 +6362,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6362
6362
  }, {
6363
6363
  success: boolean;
6364
6364
  data: {
6365
- delegation_id: string;
6366
6365
  revoked: boolean;
6366
+ delegation_id: string;
6367
6367
  revoked_at: number;
6368
6368
  };
6369
6369
  metadata?: {
@@ -6384,14 +6384,14 @@ export declare const sessionClientInfoSchema: z.ZodObject<{
6384
6384
  name: string;
6385
6385
  version?: string | undefined;
6386
6386
  platform?: string | undefined;
6387
- protocol_version?: string | undefined;
6388
6387
  vendor?: string | undefined;
6388
+ protocol_version?: string | undefined;
6389
6389
  }, {
6390
6390
  name: string;
6391
6391
  version?: string | undefined;
6392
6392
  platform?: string | undefined;
6393
- protocol_version?: string | undefined;
6394
6393
  vendor?: string | undefined;
6394
+ protocol_version?: string | undefined;
6395
6395
  }>;
6396
6396
  /**
6397
6397
  * Session client identity schema
@@ -6401,12 +6401,12 @@ export declare const sessionClientIdentitySchema: z.ZodObject<{
6401
6401
  source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
6402
6402
  registered: z.ZodBoolean;
6403
6403
  }, "strip", z.ZodTypeAny, {
6404
- did: string;
6405
6404
  registered: boolean;
6405
+ did: string;
6406
6406
  source: "knowthat.ai" | "kta-lookup" | "generated";
6407
6407
  }, {
6408
- did: string;
6409
6408
  registered: boolean;
6409
+ did: string;
6410
6410
  source: "knowthat.ai" | "kta-lookup" | "generated";
6411
6411
  }>;
6412
6412
  /**
@@ -6428,66 +6428,66 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6428
6428
  name: string;
6429
6429
  version?: string | undefined;
6430
6430
  platform?: string | undefined;
6431
- protocol_version?: string | undefined;
6432
6431
  vendor?: string | undefined;
6432
+ protocol_version?: string | undefined;
6433
6433
  }, {
6434
6434
  name: string;
6435
6435
  version?: string | undefined;
6436
6436
  platform?: string | undefined;
6437
- protocol_version?: string | undefined;
6438
6437
  vendor?: string | undefined;
6438
+ protocol_version?: string | undefined;
6439
6439
  }>;
6440
6440
  client_identity: z.ZodOptional<z.ZodObject<{
6441
6441
  did: z.ZodString;
6442
6442
  source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
6443
6443
  registered: z.ZodBoolean;
6444
6444
  }, "strip", z.ZodTypeAny, {
6445
- did: string;
6446
6445
  registered: boolean;
6446
+ did: string;
6447
6447
  source: "knowthat.ai" | "kta-lookup" | "generated";
6448
6448
  }, {
6449
- did: string;
6450
6449
  registered: boolean;
6450
+ did: string;
6451
6451
  source: "knowthat.ai" | "kta-lookup" | "generated";
6452
6452
  }>>;
6453
6453
  server_did: z.ZodOptional<z.ZodString>;
6454
6454
  ttl_minutes: z.ZodOptional<z.ZodNumber>;
6455
6455
  }, "strip", z.ZodTypeAny, {
6456
- project_id: string;
6457
- agent_did: string;
6458
6456
  session_id: string;
6457
+ agent_did: string;
6458
+ project_id: string;
6459
6459
  created_at: number;
6460
6460
  client_info: {
6461
6461
  name: string;
6462
6462
  version?: string | undefined;
6463
6463
  platform?: string | undefined;
6464
- protocol_version?: string | undefined;
6465
6464
  vendor?: string | undefined;
6465
+ protocol_version?: string | undefined;
6466
6466
  };
6467
6467
  agent_name?: string | undefined;
6468
6468
  client_identity?: {
6469
- did: string;
6470
6469
  registered: boolean;
6470
+ did: string;
6471
6471
  source: "knowthat.ai" | "kta-lookup" | "generated";
6472
6472
  } | undefined;
6473
6473
  server_did?: string | undefined;
6474
6474
  ttl_minutes?: number | undefined;
6475
6475
  }, {
6476
- project_id: string;
6477
- agent_did: string;
6478
6476
  session_id: string;
6477
+ agent_did: string;
6478
+ project_id: string;
6479
6479
  created_at: number;
6480
6480
  client_info: {
6481
6481
  name: string;
6482
6482
  version?: string | undefined;
6483
6483
  platform?: string | undefined;
6484
- protocol_version?: string | undefined;
6485
6484
  vendor?: string | undefined;
6485
+ protocol_version?: string | undefined;
6486
6486
  };
6487
6487
  agent_name?: string | undefined;
6488
6488
  client_identity?: {
6489
- did: string;
6490
6489
  registered: boolean;
6490
+ did: string;
6491
6491
  source: "knowthat.ai" | "kta-lookup" | "generated";
6492
6492
  } | undefined;
6493
6493
  server_did?: string | undefined;
@@ -6560,3 +6560,4 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
6560
6560
  requestId: string;
6561
6561
  } | undefined;
6562
6562
  }>;
6563
+ //# sourceMappingURL=schemas.d.ts.map