@vorionsys/contracts 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/README.md +146 -0
  2. package/dist/aci/aci-string.d.ts +7 -7
  3. package/dist/aci/aci-string.js +87 -69
  4. package/dist/aci/aci-string.js.map +1 -1
  5. package/dist/aci/attestation.d.ts +71 -71
  6. package/dist/aci/attestation.js +67 -57
  7. package/dist/aci/attestation.js.map +1 -1
  8. package/dist/aci/domains.d.ts +1 -1
  9. package/dist/aci/domains.js +55 -37
  10. package/dist/aci/domains.js.map +1 -1
  11. package/dist/aci/effective-permission.d.ts +6 -6
  12. package/dist/aci/effective-permission.js +59 -46
  13. package/dist/aci/effective-permission.js.map +1 -1
  14. package/dist/aci/identity.d.ts +99 -99
  15. package/dist/aci/identity.js +95 -85
  16. package/dist/aci/identity.js.map +1 -1
  17. package/dist/aci/index.d.ts +13 -3
  18. package/dist/aci/index.d.ts.map +1 -1
  19. package/dist/aci/index.js +268 -43
  20. package/dist/aci/index.js.map +1 -1
  21. package/dist/aci/jwt-claims.d.ts +29 -29
  22. package/dist/aci/jwt-claims.js +72 -62
  23. package/dist/aci/jwt-claims.js.map +1 -1
  24. package/dist/aci/levels.d.ts +3 -3
  25. package/dist/aci/levels.js +79 -60
  26. package/dist/aci/levels.js.map +1 -1
  27. package/dist/aci/mapping.d.ts +3 -3
  28. package/dist/aci/mapping.js +94 -74
  29. package/dist/aci/mapping.js.map +1 -1
  30. package/dist/aci/skills.d.ts +3 -3
  31. package/dist/aci/skills.js +71 -49
  32. package/dist/aci/skills.js.map +1 -1
  33. package/dist/aci/tiers.d.ts +1 -1
  34. package/dist/aci/tiers.js +144 -117
  35. package/dist/aci/tiers.js.map +1 -1
  36. package/dist/canonical/agent.d.ts +1 -1
  37. package/dist/canonical/agent.js +146 -130
  38. package/dist/canonical/agent.js.map +1 -1
  39. package/dist/canonical/governance.d.ts +1 -1
  40. package/dist/canonical/governance.js +134 -120
  41. package/dist/canonical/governance.js.map +1 -1
  42. package/dist/canonical/index.d.ts +1 -0
  43. package/dist/canonical/index.d.ts.map +1 -1
  44. package/dist/canonical/index.js +26 -8
  45. package/dist/canonical/index.js.map +1 -1
  46. package/dist/canonical/intent.d.ts +8 -15
  47. package/dist/canonical/intent.d.ts.map +1 -1
  48. package/dist/canonical/intent.js +91 -82
  49. package/dist/canonical/intent.js.map +1 -1
  50. package/dist/canonical/middleware.d.ts +513 -0
  51. package/dist/canonical/middleware.d.ts.map +1 -0
  52. package/dist/canonical/middleware.js +218 -0
  53. package/dist/canonical/middleware.js.map +1 -0
  54. package/dist/canonical/risk-level.d.ts +1 -1
  55. package/dist/canonical/risk-level.js +66 -46
  56. package/dist/canonical/risk-level.js.map +1 -1
  57. package/dist/canonical/trust-band.d.ts +1 -1
  58. package/dist/canonical/trust-band.js +39 -28
  59. package/dist/canonical/trust-band.js.map +1 -1
  60. package/dist/canonical/trust-score.d.ts +1 -1
  61. package/dist/canonical/trust-score.js +46 -29
  62. package/dist/canonical/trust-score.js.map +1 -1
  63. package/dist/canonical/trust-signal.d.ts +13 -13
  64. package/dist/canonical/trust-signal.js +91 -78
  65. package/dist/canonical/trust-signal.js.map +1 -1
  66. package/dist/canonical/validation.js +148 -102
  67. package/dist/canonical/validation.js.map +1 -1
  68. package/dist/car/attestation.d.ts +648 -0
  69. package/dist/car/attestation.d.ts.map +1 -0
  70. package/dist/car/attestation.js +299 -0
  71. package/dist/car/attestation.js.map +1 -0
  72. package/dist/car/car-string.d.ts +846 -0
  73. package/dist/car/car-string.d.ts.map +1 -0
  74. package/dist/car/car-string.js +734 -0
  75. package/dist/car/car-string.js.map +1 -0
  76. package/dist/car/domains.d.ts +260 -0
  77. package/dist/car/domains.d.ts.map +1 -0
  78. package/dist/car/domains.js +340 -0
  79. package/dist/car/domains.js.map +1 -0
  80. package/dist/car/effective-permission.d.ts +371 -0
  81. package/dist/car/effective-permission.d.ts.map +1 -0
  82. package/dist/car/effective-permission.js +364 -0
  83. package/dist/car/effective-permission.js.map +1 -0
  84. package/dist/car/identity.d.ts +1206 -0
  85. package/dist/car/identity.d.ts.map +1 -0
  86. package/dist/car/identity.js +348 -0
  87. package/dist/car/identity.js.map +1 -0
  88. package/dist/car/index.d.ts +104 -0
  89. package/dist/car/index.d.ts.map +1 -0
  90. package/dist/car/index.js +401 -0
  91. package/dist/car/index.js.map +1 -0
  92. package/dist/car/jwt-claims.d.ts +1364 -0
  93. package/dist/car/jwt-claims.d.ts.map +1 -0
  94. package/dist/car/jwt-claims.js +388 -0
  95. package/dist/car/jwt-claims.js.map +1 -0
  96. package/dist/car/levels.d.ts +279 -0
  97. package/dist/car/levels.d.ts.map +1 -0
  98. package/dist/car/levels.js +486 -0
  99. package/dist/car/levels.js.map +1 -0
  100. package/dist/car/mapping.d.ts +291 -0
  101. package/dist/car/mapping.d.ts.map +1 -0
  102. package/dist/car/mapping.js +447 -0
  103. package/dist/car/mapping.js.map +1 -0
  104. package/dist/car/skills.d.ts +314 -0
  105. package/dist/car/skills.d.ts.map +1 -0
  106. package/dist/car/skills.js +426 -0
  107. package/dist/car/skills.js.map +1 -0
  108. package/dist/car/tiers.d.ts +403 -0
  109. package/dist/car/tiers.d.ts.map +1 -0
  110. package/dist/car/tiers.js +686 -0
  111. package/dist/car/tiers.js.map +1 -0
  112. package/dist/common/index.d.ts +1 -0
  113. package/dist/common/index.d.ts.map +1 -1
  114. package/dist/common/index.js +18 -1
  115. package/dist/common/index.js.map +1 -1
  116. package/dist/common/primitives.d.ts +9 -7
  117. package/dist/common/primitives.d.ts.map +1 -1
  118. package/dist/common/primitives.js +30 -25
  119. package/dist/common/primitives.js.map +1 -1
  120. package/dist/common/types.d.ts +328 -0
  121. package/dist/common/types.d.ts.map +1 -0
  122. package/dist/common/types.js +61 -0
  123. package/dist/common/types.js.map +1 -0
  124. package/dist/db/agents.d.ts +1374 -0
  125. package/dist/db/agents.d.ts.map +1 -0
  126. package/dist/db/agents.js +283 -0
  127. package/dist/db/agents.js.map +1 -0
  128. package/dist/db/api-keys.d.ts +365 -0
  129. package/dist/db/api-keys.d.ts.map +1 -0
  130. package/dist/db/api-keys.js +101 -0
  131. package/dist/db/api-keys.js.map +1 -0
  132. package/dist/db/escalations.d.ts +400 -0
  133. package/dist/db/escalations.d.ts.map +1 -0
  134. package/dist/db/escalations.js +100 -0
  135. package/dist/db/escalations.js.map +1 -0
  136. package/dist/db/index.d.ts +20 -0
  137. package/dist/db/index.d.ts.map +1 -0
  138. package/dist/db/index.js +47 -0
  139. package/dist/db/index.js.map +1 -0
  140. package/dist/db/intents.d.ts +384 -0
  141. package/dist/db/intents.d.ts.map +1 -0
  142. package/dist/db/intents.js +93 -0
  143. package/dist/db/intents.js.map +1 -0
  144. package/dist/db/merkle.d.ts +344 -0
  145. package/dist/db/merkle.d.ts.map +1 -0
  146. package/dist/db/merkle.js +103 -0
  147. package/dist/db/merkle.js.map +1 -0
  148. package/dist/db/operations.d.ts +187 -0
  149. package/dist/db/operations.d.ts.map +1 -0
  150. package/dist/db/operations.js +68 -0
  151. package/dist/db/operations.js.map +1 -0
  152. package/dist/db/policy-versions.d.ts +112 -0
  153. package/dist/db/policy-versions.d.ts.map +1 -0
  154. package/dist/db/policy-versions.js +44 -0
  155. package/dist/db/policy-versions.js.map +1 -0
  156. package/dist/db/proofs.d.ts +296 -0
  157. package/dist/db/proofs.d.ts.map +1 -0
  158. package/dist/db/proofs.js +66 -0
  159. package/dist/db/proofs.js.map +1 -0
  160. package/dist/db/rbac.d.ts +655 -0
  161. package/dist/db/rbac.d.ts.map +1 -0
  162. package/dist/db/rbac.js +189 -0
  163. package/dist/db/rbac.js.map +1 -0
  164. package/dist/db/service-accounts.d.ts +571 -0
  165. package/dist/db/service-accounts.d.ts.map +1 -0
  166. package/dist/db/service-accounts.js +179 -0
  167. package/dist/db/service-accounts.js.map +1 -0
  168. package/dist/db/trust.d.ts +437 -0
  169. package/dist/db/trust.d.ts.map +1 -0
  170. package/dist/db/trust.js +111 -0
  171. package/dist/db/trust.js.map +1 -0
  172. package/dist/db/webhooks.d.ts +280 -0
  173. package/dist/db/webhooks.d.ts.map +1 -0
  174. package/dist/db/webhooks.js +94 -0
  175. package/dist/db/webhooks.js.map +1 -0
  176. package/dist/flags.d.ts +214 -0
  177. package/dist/flags.d.ts.map +1 -0
  178. package/dist/flags.js +443 -0
  179. package/dist/flags.js.map +1 -0
  180. package/dist/index.d.ts +3 -1
  181. package/dist/index.d.ts.map +1 -1
  182. package/dist/index.js +47 -4
  183. package/dist/index.js.map +1 -1
  184. package/dist/v2/canary-probe.js +10 -7
  185. package/dist/v2/canary-probe.js.map +1 -1
  186. package/dist/v2/component.js +2 -1
  187. package/dist/v2/component.js.map +1 -1
  188. package/dist/v2/decision.js +5 -2
  189. package/dist/v2/decision.js.map +1 -1
  190. package/dist/v2/enums.js +28 -25
  191. package/dist/v2/enums.js.map +1 -1
  192. package/dist/v2/evidence.js +75 -72
  193. package/dist/v2/evidence.js.map +1 -1
  194. package/dist/v2/execution.js +2 -1
  195. package/dist/v2/execution.js.map +1 -1
  196. package/dist/v2/index.js +29 -13
  197. package/dist/v2/index.js.map +1 -1
  198. package/dist/v2/intent.js +2 -1
  199. package/dist/v2/intent.js.map +1 -1
  200. package/dist/v2/policy-bundle.js +5 -2
  201. package/dist/v2/policy-bundle.js.map +1 -1
  202. package/dist/v2/pre-action-gate.js +10 -7
  203. package/dist/v2/pre-action-gate.js.map +1 -1
  204. package/dist/v2/proof-event.js +2 -1
  205. package/dist/v2/proof-event.js.map +1 -1
  206. package/dist/v2/retention.js +104 -101
  207. package/dist/v2/retention.js.map +1 -1
  208. package/dist/v2/trust-delta.js +5 -2
  209. package/dist/v2/trust-delta.js.map +1 -1
  210. package/dist/v2/trust-profile.js +12 -9
  211. package/dist/v2/trust-profile.js.map +1 -1
  212. package/dist/validators/decision.d.ts +2 -2
  213. package/dist/validators/decision.js +49 -46
  214. package/dist/validators/decision.js.map +1 -1
  215. package/dist/validators/enums.js +14 -11
  216. package/dist/validators/enums.js.map +1 -1
  217. package/dist/validators/index.js +30 -9
  218. package/dist/validators/index.js.map +1 -1
  219. package/dist/validators/intent.js +40 -37
  220. package/dist/validators/intent.js.map +1 -1
  221. package/dist/validators/proof-event.js +101 -98
  222. package/dist/validators/proof-event.js.map +1 -1
  223. package/dist/validators/trust-profile.js +40 -37
  224. package/dist/validators/trust-profile.js.map +1 -1
  225. package/package.json +65 -13
@@ -0,0 +1,1364 @@
1
+ /**
2
+ * @fileoverview CAR JWT Claims for OpenID Connect
3
+ *
4
+ * Defines JWT claim structures for CAR-aware authentication and authorization.
5
+ * These claims extend standard OIDC claims with CAR-specific information,
6
+ * enabling capability-based access control in JWT tokens.
7
+ *
8
+ * @module @vorionsys/contracts/car/jwt-claims
9
+ */
10
+ import { z } from 'zod';
11
+ import { type DomainCode } from './domains.js';
12
+ import { CapabilityLevel } from './levels.js';
13
+ import { CertificationTier, RuntimeTier } from './tiers.js';
14
+ import { type ParsedCAR } from './car-string.js';
15
+ /**
16
+ * Standard JWT claims (RFC 7519).
17
+ */
18
+ export interface StandardJWTClaims {
19
+ /** Issuer */
20
+ iss?: string;
21
+ /** Subject */
22
+ sub?: string;
23
+ /** Audience */
24
+ aud?: string | string[];
25
+ /** Expiration time (Unix timestamp) */
26
+ exp?: number;
27
+ /** Not before (Unix timestamp) */
28
+ nbf?: number;
29
+ /** Issued at (Unix timestamp) */
30
+ iat?: number;
31
+ /** JWT ID */
32
+ jti?: string;
33
+ }
34
+ /**
35
+ * Zod schema for StandardJWTClaims.
36
+ */
37
+ export declare const standardJWTClaimsSchema: z.ZodObject<{
38
+ iss: z.ZodOptional<z.ZodString>;
39
+ sub: z.ZodOptional<z.ZodString>;
40
+ aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
41
+ exp: z.ZodOptional<z.ZodNumber>;
42
+ nbf: z.ZodOptional<z.ZodNumber>;
43
+ iat: z.ZodOptional<z.ZodNumber>;
44
+ jti: z.ZodOptional<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ sub?: string | undefined;
47
+ jti?: string | undefined;
48
+ iss?: string | undefined;
49
+ aud?: string | string[] | undefined;
50
+ exp?: number | undefined;
51
+ nbf?: number | undefined;
52
+ iat?: number | undefined;
53
+ }, {
54
+ sub?: string | undefined;
55
+ jti?: string | undefined;
56
+ iss?: string | undefined;
57
+ aud?: string | string[] | undefined;
58
+ exp?: number | undefined;
59
+ nbf?: number | undefined;
60
+ iat?: number | undefined;
61
+ }>;
62
+ /**
63
+ * CAR-specific JWT claims.
64
+ *
65
+ * These claims encode agent capabilities in JWT tokens for use in
66
+ * authentication and authorization flows.
67
+ *
68
+ * NOTE: `car_trust` is OPTIONAL because trust tier is NOT embedded in the CAR.
69
+ * Trust comes from attestations at runtime. If attestations are included,
70
+ * the highest valid attestation tier should be used for `car_trust`.
71
+ */
72
+ export interface CARJWTClaims extends StandardJWTClaims {
73
+ /** Full CAR string (immutable identifier, no trust info) */
74
+ car: string;
75
+ /** @deprecated Use car instead */
76
+ aci?: string;
77
+ /** Domain bitmask for efficient validation */
78
+ car_domains: number;
79
+ /** @deprecated Use car_domains instead */
80
+ aci_domains?: number;
81
+ /** Domain codes array for readability */
82
+ car_domains_list: DomainCode[];
83
+ /** @deprecated Use car_domains_list instead */
84
+ aci_domains_list?: DomainCode[];
85
+ /** Capability level */
86
+ car_level: CapabilityLevel;
87
+ /** @deprecated Use car_level instead */
88
+ aci_level?: CapabilityLevel;
89
+ /**
90
+ * Certification tier from attestations (OPTIONAL).
91
+ * This is NOT from the CAR itself - it comes from valid attestations.
92
+ * Defaults to T0 if no attestations exist.
93
+ */
94
+ car_trust?: CertificationTier;
95
+ /** @deprecated Use car_trust instead */
96
+ aci_trust?: CertificationTier;
97
+ /** Registry */
98
+ car_registry: string;
99
+ /** @deprecated Use car_registry instead */
100
+ aci_registry?: string;
101
+ /** Organization */
102
+ car_org: string;
103
+ /** @deprecated Use car_org instead */
104
+ aci_org?: string;
105
+ /** Agent class */
106
+ car_class: string;
107
+ /** @deprecated Use car_class instead */
108
+ aci_class?: string;
109
+ /** CAR version */
110
+ car_version: string;
111
+ /** @deprecated Use car_version instead */
112
+ aci_version?: string;
113
+ /** Agent DID (optional) */
114
+ car_did?: string;
115
+ /** @deprecated Use car_did instead */
116
+ aci_did?: string;
117
+ /** Runtime tier in current context (optional) */
118
+ car_runtime_tier?: RuntimeTier;
119
+ /** @deprecated Use car_runtime_tier instead */
120
+ aci_runtime_tier?: RuntimeTier;
121
+ /** Attestation summaries - source of car_trust value */
122
+ car_attestations?: CARAttestationClaim[];
123
+ /** @deprecated Use car_attestations instead */
124
+ aci_attestations?: CARAttestationClaim[];
125
+ /** Effective permission ceiling (optional) */
126
+ car_permission_ceiling?: number;
127
+ /** @deprecated Use car_permission_ceiling instead */
128
+ aci_permission_ceiling?: number;
129
+ /** Session-specific constraints (optional) */
130
+ car_constraints?: CARConstraintsClaim;
131
+ /** @deprecated Use car_constraints instead */
132
+ aci_constraints?: CARConstraintsClaim;
133
+ }
134
+ /** @deprecated Use CARJWTClaims instead */
135
+ export type ACIJWTClaims = CARJWTClaims;
136
+ /**
137
+ * Attestation claim for JWT.
138
+ * Attestations are the SOURCE of trust tier, not the CAR.
139
+ */
140
+ export interface CARAttestationClaim {
141
+ /** Issuer DID */
142
+ iss: string;
143
+ /** Certified trust tier from this attestation */
144
+ tier: CertificationTier;
145
+ /** Attestation scope (domains covered) */
146
+ scope: string;
147
+ /** Issued at (Unix timestamp) */
148
+ iat: number;
149
+ /** Expiration (Unix timestamp) */
150
+ exp: number;
151
+ /** Evidence URL (optional) */
152
+ evidence?: string;
153
+ }
154
+ /** @deprecated Use CARAttestationClaim instead */
155
+ export type ACIAttestationClaim = CARAttestationClaim;
156
+ /**
157
+ * Constraints claim for session-specific limitations.
158
+ */
159
+ export interface CARConstraintsClaim {
160
+ /** Maximum operations allowed in this session */
161
+ max_operations?: number;
162
+ /** Allowed resource patterns */
163
+ allowed_resources?: string[];
164
+ /** Blocked resource patterns */
165
+ blocked_resources?: string[];
166
+ /** Time window end (Unix timestamp) */
167
+ valid_until?: number;
168
+ /** Required human approval for actions */
169
+ requires_approval?: boolean;
170
+ /** Custom constraints */
171
+ custom?: Record<string, unknown>;
172
+ }
173
+ /** @deprecated Use CARConstraintsClaim instead */
174
+ export type ACIConstraintsClaim = CARConstraintsClaim;
175
+ /**
176
+ * Zod schema for CARAttestationClaim.
177
+ */
178
+ export declare const carAttestationClaimSchema: z.ZodObject<{
179
+ iss: z.ZodString;
180
+ tier: z.ZodNativeEnum<typeof CertificationTier>;
181
+ scope: z.ZodString;
182
+ iat: z.ZodNumber;
183
+ exp: z.ZodNumber;
184
+ evidence: z.ZodOptional<z.ZodString>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ scope: string;
187
+ tier: CertificationTier;
188
+ iss: string;
189
+ exp: number;
190
+ iat: number;
191
+ evidence?: string | undefined;
192
+ }, {
193
+ scope: string;
194
+ tier: CertificationTier;
195
+ iss: string;
196
+ exp: number;
197
+ iat: number;
198
+ evidence?: string | undefined;
199
+ }>;
200
+ /** @deprecated Use carAttestationClaimSchema instead */
201
+ export declare const aciAttestationClaimSchema: z.ZodObject<{
202
+ iss: z.ZodString;
203
+ tier: z.ZodNativeEnum<typeof CertificationTier>;
204
+ scope: z.ZodString;
205
+ iat: z.ZodNumber;
206
+ exp: z.ZodNumber;
207
+ evidence: z.ZodOptional<z.ZodString>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ scope: string;
210
+ tier: CertificationTier;
211
+ iss: string;
212
+ exp: number;
213
+ iat: number;
214
+ evidence?: string | undefined;
215
+ }, {
216
+ scope: string;
217
+ tier: CertificationTier;
218
+ iss: string;
219
+ exp: number;
220
+ iat: number;
221
+ evidence?: string | undefined;
222
+ }>;
223
+ /**
224
+ * Zod schema for CARConstraintsClaim.
225
+ */
226
+ export declare const carConstraintsClaimSchema: z.ZodObject<{
227
+ max_operations: z.ZodOptional<z.ZodNumber>;
228
+ allowed_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
229
+ blocked_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
230
+ valid_until: z.ZodOptional<z.ZodNumber>;
231
+ requires_approval: z.ZodOptional<z.ZodBoolean>;
232
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ custom?: Record<string, unknown> | undefined;
235
+ requires_approval?: boolean | undefined;
236
+ max_operations?: number | undefined;
237
+ allowed_resources?: string[] | undefined;
238
+ blocked_resources?: string[] | undefined;
239
+ valid_until?: number | undefined;
240
+ }, {
241
+ custom?: Record<string, unknown> | undefined;
242
+ requires_approval?: boolean | undefined;
243
+ max_operations?: number | undefined;
244
+ allowed_resources?: string[] | undefined;
245
+ blocked_resources?: string[] | undefined;
246
+ valid_until?: number | undefined;
247
+ }>;
248
+ /** @deprecated Use carConstraintsClaimSchema instead */
249
+ export declare const aciConstraintsClaimSchema: z.ZodObject<{
250
+ max_operations: z.ZodOptional<z.ZodNumber>;
251
+ allowed_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
252
+ blocked_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
253
+ valid_until: z.ZodOptional<z.ZodNumber>;
254
+ requires_approval: z.ZodOptional<z.ZodBoolean>;
255
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ custom?: Record<string, unknown> | undefined;
258
+ requires_approval?: boolean | undefined;
259
+ max_operations?: number | undefined;
260
+ allowed_resources?: string[] | undefined;
261
+ blocked_resources?: string[] | undefined;
262
+ valid_until?: number | undefined;
263
+ }, {
264
+ custom?: Record<string, unknown> | undefined;
265
+ requires_approval?: boolean | undefined;
266
+ max_operations?: number | undefined;
267
+ allowed_resources?: string[] | undefined;
268
+ blocked_resources?: string[] | undefined;
269
+ valid_until?: number | undefined;
270
+ }>;
271
+ /**
272
+ * Zod schema for CARJWTClaims validation.
273
+ */
274
+ export declare const carJWTClaimsSchema: z.ZodObject<{
275
+ iss: z.ZodOptional<z.ZodString>;
276
+ sub: z.ZodOptional<z.ZodString>;
277
+ aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
278
+ exp: z.ZodOptional<z.ZodNumber>;
279
+ nbf: z.ZodOptional<z.ZodNumber>;
280
+ iat: z.ZodOptional<z.ZodNumber>;
281
+ jti: z.ZodOptional<z.ZodString>;
282
+ } & {
283
+ car: z.ZodString;
284
+ aci: z.ZodOptional<z.ZodString>;
285
+ car_domains: z.ZodNumber;
286
+ aci_domains: z.ZodOptional<z.ZodNumber>;
287
+ car_domains_list: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "S"]>, "many">;
288
+ aci_domains_list: z.ZodOptional<z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "S"]>, "many">>;
289
+ car_level: z.ZodNativeEnum<typeof CapabilityLevel>;
290
+ aci_level: z.ZodOptional<z.ZodNativeEnum<typeof CapabilityLevel>>;
291
+ car_trust: z.ZodOptional<z.ZodNativeEnum<typeof CertificationTier>>;
292
+ aci_trust: z.ZodOptional<z.ZodNativeEnum<typeof CertificationTier>>;
293
+ car_registry: z.ZodString;
294
+ aci_registry: z.ZodOptional<z.ZodString>;
295
+ car_org: z.ZodString;
296
+ aci_org: z.ZodOptional<z.ZodString>;
297
+ car_class: z.ZodString;
298
+ aci_class: z.ZodOptional<z.ZodString>;
299
+ car_version: z.ZodString;
300
+ aci_version: z.ZodOptional<z.ZodString>;
301
+ car_did: z.ZodOptional<z.ZodString>;
302
+ aci_did: z.ZodOptional<z.ZodString>;
303
+ car_runtime_tier: z.ZodOptional<z.ZodNativeEnum<typeof RuntimeTier>>;
304
+ aci_runtime_tier: z.ZodOptional<z.ZodNativeEnum<typeof RuntimeTier>>;
305
+ car_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
+ iss: z.ZodString;
307
+ tier: z.ZodNativeEnum<typeof CertificationTier>;
308
+ scope: z.ZodString;
309
+ iat: z.ZodNumber;
310
+ exp: z.ZodNumber;
311
+ evidence: z.ZodOptional<z.ZodString>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ scope: string;
314
+ tier: CertificationTier;
315
+ iss: string;
316
+ exp: number;
317
+ iat: number;
318
+ evidence?: string | undefined;
319
+ }, {
320
+ scope: string;
321
+ tier: CertificationTier;
322
+ iss: string;
323
+ exp: number;
324
+ iat: number;
325
+ evidence?: string | undefined;
326
+ }>, "many">>;
327
+ aci_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
328
+ iss: z.ZodString;
329
+ tier: z.ZodNativeEnum<typeof CertificationTier>;
330
+ scope: z.ZodString;
331
+ iat: z.ZodNumber;
332
+ exp: z.ZodNumber;
333
+ evidence: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ scope: string;
336
+ tier: CertificationTier;
337
+ iss: string;
338
+ exp: number;
339
+ iat: number;
340
+ evidence?: string | undefined;
341
+ }, {
342
+ scope: string;
343
+ tier: CertificationTier;
344
+ iss: string;
345
+ exp: number;
346
+ iat: number;
347
+ evidence?: string | undefined;
348
+ }>, "many">>;
349
+ car_permission_ceiling: z.ZodOptional<z.ZodNumber>;
350
+ aci_permission_ceiling: z.ZodOptional<z.ZodNumber>;
351
+ car_constraints: z.ZodOptional<z.ZodObject<{
352
+ max_operations: z.ZodOptional<z.ZodNumber>;
353
+ allowed_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
354
+ blocked_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
355
+ valid_until: z.ZodOptional<z.ZodNumber>;
356
+ requires_approval: z.ZodOptional<z.ZodBoolean>;
357
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ custom?: Record<string, unknown> | undefined;
360
+ requires_approval?: boolean | undefined;
361
+ max_operations?: number | undefined;
362
+ allowed_resources?: string[] | undefined;
363
+ blocked_resources?: string[] | undefined;
364
+ valid_until?: number | undefined;
365
+ }, {
366
+ custom?: Record<string, unknown> | undefined;
367
+ requires_approval?: boolean | undefined;
368
+ max_operations?: number | undefined;
369
+ allowed_resources?: string[] | undefined;
370
+ blocked_resources?: string[] | undefined;
371
+ valid_until?: number | undefined;
372
+ }>>;
373
+ aci_constraints: z.ZodOptional<z.ZodObject<{
374
+ max_operations: z.ZodOptional<z.ZodNumber>;
375
+ allowed_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
376
+ blocked_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
377
+ valid_until: z.ZodOptional<z.ZodNumber>;
378
+ requires_approval: z.ZodOptional<z.ZodBoolean>;
379
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ custom?: Record<string, unknown> | undefined;
382
+ requires_approval?: boolean | undefined;
383
+ max_operations?: number | undefined;
384
+ allowed_resources?: string[] | undefined;
385
+ blocked_resources?: string[] | undefined;
386
+ valid_until?: number | undefined;
387
+ }, {
388
+ custom?: Record<string, unknown> | undefined;
389
+ requires_approval?: boolean | undefined;
390
+ max_operations?: number | undefined;
391
+ allowed_resources?: string[] | undefined;
392
+ blocked_resources?: string[] | undefined;
393
+ valid_until?: number | undefined;
394
+ }>>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ car: string;
397
+ car_domains: number;
398
+ car_domains_list: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[];
399
+ car_level: CapabilityLevel;
400
+ car_registry: string;
401
+ car_org: string;
402
+ car_class: string;
403
+ car_version: string;
404
+ aci?: string | undefined;
405
+ sub?: string | undefined;
406
+ jti?: string | undefined;
407
+ iss?: string | undefined;
408
+ aud?: string | string[] | undefined;
409
+ exp?: number | undefined;
410
+ nbf?: number | undefined;
411
+ iat?: number | undefined;
412
+ aci_domains?: number | undefined;
413
+ aci_domains_list?: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[] | undefined;
414
+ aci_level?: CapabilityLevel | undefined;
415
+ aci_trust?: CertificationTier | undefined;
416
+ aci_registry?: string | undefined;
417
+ aci_org?: string | undefined;
418
+ aci_class?: string | undefined;
419
+ aci_version?: string | undefined;
420
+ aci_did?: string | undefined;
421
+ aci_runtime_tier?: RuntimeTier | undefined;
422
+ aci_attestations?: {
423
+ scope: string;
424
+ tier: CertificationTier;
425
+ iss: string;
426
+ exp: number;
427
+ iat: number;
428
+ evidence?: string | undefined;
429
+ }[] | undefined;
430
+ aci_permission_ceiling?: number | undefined;
431
+ aci_constraints?: {
432
+ custom?: Record<string, unknown> | undefined;
433
+ requires_approval?: boolean | undefined;
434
+ max_operations?: number | undefined;
435
+ allowed_resources?: string[] | undefined;
436
+ blocked_resources?: string[] | undefined;
437
+ valid_until?: number | undefined;
438
+ } | undefined;
439
+ car_trust?: CertificationTier | undefined;
440
+ car_did?: string | undefined;
441
+ car_runtime_tier?: RuntimeTier | undefined;
442
+ car_attestations?: {
443
+ scope: string;
444
+ tier: CertificationTier;
445
+ iss: string;
446
+ exp: number;
447
+ iat: number;
448
+ evidence?: string | undefined;
449
+ }[] | undefined;
450
+ car_permission_ceiling?: number | undefined;
451
+ car_constraints?: {
452
+ custom?: Record<string, unknown> | undefined;
453
+ requires_approval?: boolean | undefined;
454
+ max_operations?: number | undefined;
455
+ allowed_resources?: string[] | undefined;
456
+ blocked_resources?: string[] | undefined;
457
+ valid_until?: number | undefined;
458
+ } | undefined;
459
+ }, {
460
+ car: string;
461
+ car_domains: number;
462
+ car_domains_list: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[];
463
+ car_level: CapabilityLevel;
464
+ car_registry: string;
465
+ car_org: string;
466
+ car_class: string;
467
+ car_version: string;
468
+ aci?: string | undefined;
469
+ sub?: string | undefined;
470
+ jti?: string | undefined;
471
+ iss?: string | undefined;
472
+ aud?: string | string[] | undefined;
473
+ exp?: number | undefined;
474
+ nbf?: number | undefined;
475
+ iat?: number | undefined;
476
+ aci_domains?: number | undefined;
477
+ aci_domains_list?: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[] | undefined;
478
+ aci_level?: CapabilityLevel | undefined;
479
+ aci_trust?: CertificationTier | undefined;
480
+ aci_registry?: string | undefined;
481
+ aci_org?: string | undefined;
482
+ aci_class?: string | undefined;
483
+ aci_version?: string | undefined;
484
+ aci_did?: string | undefined;
485
+ aci_runtime_tier?: RuntimeTier | undefined;
486
+ aci_attestations?: {
487
+ scope: string;
488
+ tier: CertificationTier;
489
+ iss: string;
490
+ exp: number;
491
+ iat: number;
492
+ evidence?: string | undefined;
493
+ }[] | undefined;
494
+ aci_permission_ceiling?: number | undefined;
495
+ aci_constraints?: {
496
+ custom?: Record<string, unknown> | undefined;
497
+ requires_approval?: boolean | undefined;
498
+ max_operations?: number | undefined;
499
+ allowed_resources?: string[] | undefined;
500
+ blocked_resources?: string[] | undefined;
501
+ valid_until?: number | undefined;
502
+ } | undefined;
503
+ car_trust?: CertificationTier | undefined;
504
+ car_did?: string | undefined;
505
+ car_runtime_tier?: RuntimeTier | undefined;
506
+ car_attestations?: {
507
+ scope: string;
508
+ tier: CertificationTier;
509
+ iss: string;
510
+ exp: number;
511
+ iat: number;
512
+ evidence?: string | undefined;
513
+ }[] | undefined;
514
+ car_permission_ceiling?: number | undefined;
515
+ car_constraints?: {
516
+ custom?: Record<string, unknown> | undefined;
517
+ requires_approval?: boolean | undefined;
518
+ max_operations?: number | undefined;
519
+ allowed_resources?: string[] | undefined;
520
+ blocked_resources?: string[] | undefined;
521
+ valid_until?: number | undefined;
522
+ } | undefined;
523
+ }>;
524
+ /** @deprecated Use carJWTClaimsSchema instead */
525
+ export declare const aciJWTClaimsSchema: z.ZodObject<{
526
+ iss: z.ZodOptional<z.ZodString>;
527
+ sub: z.ZodOptional<z.ZodString>;
528
+ aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
529
+ exp: z.ZodOptional<z.ZodNumber>;
530
+ nbf: z.ZodOptional<z.ZodNumber>;
531
+ iat: z.ZodOptional<z.ZodNumber>;
532
+ jti: z.ZodOptional<z.ZodString>;
533
+ } & {
534
+ car: z.ZodString;
535
+ aci: z.ZodOptional<z.ZodString>;
536
+ car_domains: z.ZodNumber;
537
+ aci_domains: z.ZodOptional<z.ZodNumber>;
538
+ car_domains_list: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "S"]>, "many">;
539
+ aci_domains_list: z.ZodOptional<z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "S"]>, "many">>;
540
+ car_level: z.ZodNativeEnum<typeof CapabilityLevel>;
541
+ aci_level: z.ZodOptional<z.ZodNativeEnum<typeof CapabilityLevel>>;
542
+ car_trust: z.ZodOptional<z.ZodNativeEnum<typeof CertificationTier>>;
543
+ aci_trust: z.ZodOptional<z.ZodNativeEnum<typeof CertificationTier>>;
544
+ car_registry: z.ZodString;
545
+ aci_registry: z.ZodOptional<z.ZodString>;
546
+ car_org: z.ZodString;
547
+ aci_org: z.ZodOptional<z.ZodString>;
548
+ car_class: z.ZodString;
549
+ aci_class: z.ZodOptional<z.ZodString>;
550
+ car_version: z.ZodString;
551
+ aci_version: z.ZodOptional<z.ZodString>;
552
+ car_did: z.ZodOptional<z.ZodString>;
553
+ aci_did: z.ZodOptional<z.ZodString>;
554
+ car_runtime_tier: z.ZodOptional<z.ZodNativeEnum<typeof RuntimeTier>>;
555
+ aci_runtime_tier: z.ZodOptional<z.ZodNativeEnum<typeof RuntimeTier>>;
556
+ car_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
557
+ iss: z.ZodString;
558
+ tier: z.ZodNativeEnum<typeof CertificationTier>;
559
+ scope: z.ZodString;
560
+ iat: z.ZodNumber;
561
+ exp: z.ZodNumber;
562
+ evidence: z.ZodOptional<z.ZodString>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ scope: string;
565
+ tier: CertificationTier;
566
+ iss: string;
567
+ exp: number;
568
+ iat: number;
569
+ evidence?: string | undefined;
570
+ }, {
571
+ scope: string;
572
+ tier: CertificationTier;
573
+ iss: string;
574
+ exp: number;
575
+ iat: number;
576
+ evidence?: string | undefined;
577
+ }>, "many">>;
578
+ aci_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
579
+ iss: z.ZodString;
580
+ tier: z.ZodNativeEnum<typeof CertificationTier>;
581
+ scope: z.ZodString;
582
+ iat: z.ZodNumber;
583
+ exp: z.ZodNumber;
584
+ evidence: z.ZodOptional<z.ZodString>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ scope: string;
587
+ tier: CertificationTier;
588
+ iss: string;
589
+ exp: number;
590
+ iat: number;
591
+ evidence?: string | undefined;
592
+ }, {
593
+ scope: string;
594
+ tier: CertificationTier;
595
+ iss: string;
596
+ exp: number;
597
+ iat: number;
598
+ evidence?: string | undefined;
599
+ }>, "many">>;
600
+ car_permission_ceiling: z.ZodOptional<z.ZodNumber>;
601
+ aci_permission_ceiling: z.ZodOptional<z.ZodNumber>;
602
+ car_constraints: z.ZodOptional<z.ZodObject<{
603
+ max_operations: z.ZodOptional<z.ZodNumber>;
604
+ allowed_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
605
+ blocked_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
606
+ valid_until: z.ZodOptional<z.ZodNumber>;
607
+ requires_approval: z.ZodOptional<z.ZodBoolean>;
608
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ custom?: Record<string, unknown> | undefined;
611
+ requires_approval?: boolean | undefined;
612
+ max_operations?: number | undefined;
613
+ allowed_resources?: string[] | undefined;
614
+ blocked_resources?: string[] | undefined;
615
+ valid_until?: number | undefined;
616
+ }, {
617
+ custom?: Record<string, unknown> | undefined;
618
+ requires_approval?: boolean | undefined;
619
+ max_operations?: number | undefined;
620
+ allowed_resources?: string[] | undefined;
621
+ blocked_resources?: string[] | undefined;
622
+ valid_until?: number | undefined;
623
+ }>>;
624
+ aci_constraints: z.ZodOptional<z.ZodObject<{
625
+ max_operations: z.ZodOptional<z.ZodNumber>;
626
+ allowed_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
627
+ blocked_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
628
+ valid_until: z.ZodOptional<z.ZodNumber>;
629
+ requires_approval: z.ZodOptional<z.ZodBoolean>;
630
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ custom?: Record<string, unknown> | undefined;
633
+ requires_approval?: boolean | undefined;
634
+ max_operations?: number | undefined;
635
+ allowed_resources?: string[] | undefined;
636
+ blocked_resources?: string[] | undefined;
637
+ valid_until?: number | undefined;
638
+ }, {
639
+ custom?: Record<string, unknown> | undefined;
640
+ requires_approval?: boolean | undefined;
641
+ max_operations?: number | undefined;
642
+ allowed_resources?: string[] | undefined;
643
+ blocked_resources?: string[] | undefined;
644
+ valid_until?: number | undefined;
645
+ }>>;
646
+ }, "strip", z.ZodTypeAny, {
647
+ car: string;
648
+ car_domains: number;
649
+ car_domains_list: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[];
650
+ car_level: CapabilityLevel;
651
+ car_registry: string;
652
+ car_org: string;
653
+ car_class: string;
654
+ car_version: string;
655
+ aci?: string | undefined;
656
+ sub?: string | undefined;
657
+ jti?: string | undefined;
658
+ iss?: string | undefined;
659
+ aud?: string | string[] | undefined;
660
+ exp?: number | undefined;
661
+ nbf?: number | undefined;
662
+ iat?: number | undefined;
663
+ aci_domains?: number | undefined;
664
+ aci_domains_list?: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[] | undefined;
665
+ aci_level?: CapabilityLevel | undefined;
666
+ aci_trust?: CertificationTier | undefined;
667
+ aci_registry?: string | undefined;
668
+ aci_org?: string | undefined;
669
+ aci_class?: string | undefined;
670
+ aci_version?: string | undefined;
671
+ aci_did?: string | undefined;
672
+ aci_runtime_tier?: RuntimeTier | undefined;
673
+ aci_attestations?: {
674
+ scope: string;
675
+ tier: CertificationTier;
676
+ iss: string;
677
+ exp: number;
678
+ iat: number;
679
+ evidence?: string | undefined;
680
+ }[] | undefined;
681
+ aci_permission_ceiling?: number | undefined;
682
+ aci_constraints?: {
683
+ custom?: Record<string, unknown> | undefined;
684
+ requires_approval?: boolean | undefined;
685
+ max_operations?: number | undefined;
686
+ allowed_resources?: string[] | undefined;
687
+ blocked_resources?: string[] | undefined;
688
+ valid_until?: number | undefined;
689
+ } | undefined;
690
+ car_trust?: CertificationTier | undefined;
691
+ car_did?: string | undefined;
692
+ car_runtime_tier?: RuntimeTier | undefined;
693
+ car_attestations?: {
694
+ scope: string;
695
+ tier: CertificationTier;
696
+ iss: string;
697
+ exp: number;
698
+ iat: number;
699
+ evidence?: string | undefined;
700
+ }[] | undefined;
701
+ car_permission_ceiling?: number | undefined;
702
+ car_constraints?: {
703
+ custom?: Record<string, unknown> | undefined;
704
+ requires_approval?: boolean | undefined;
705
+ max_operations?: number | undefined;
706
+ allowed_resources?: string[] | undefined;
707
+ blocked_resources?: string[] | undefined;
708
+ valid_until?: number | undefined;
709
+ } | undefined;
710
+ }, {
711
+ car: string;
712
+ car_domains: number;
713
+ car_domains_list: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[];
714
+ car_level: CapabilityLevel;
715
+ car_registry: string;
716
+ car_org: string;
717
+ car_class: string;
718
+ car_version: string;
719
+ aci?: string | undefined;
720
+ sub?: string | undefined;
721
+ jti?: string | undefined;
722
+ iss?: string | undefined;
723
+ aud?: string | string[] | undefined;
724
+ exp?: number | undefined;
725
+ nbf?: number | undefined;
726
+ iat?: number | undefined;
727
+ aci_domains?: number | undefined;
728
+ aci_domains_list?: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[] | undefined;
729
+ aci_level?: CapabilityLevel | undefined;
730
+ aci_trust?: CertificationTier | undefined;
731
+ aci_registry?: string | undefined;
732
+ aci_org?: string | undefined;
733
+ aci_class?: string | undefined;
734
+ aci_version?: string | undefined;
735
+ aci_did?: string | undefined;
736
+ aci_runtime_tier?: RuntimeTier | undefined;
737
+ aci_attestations?: {
738
+ scope: string;
739
+ tier: CertificationTier;
740
+ iss: string;
741
+ exp: number;
742
+ iat: number;
743
+ evidence?: string | undefined;
744
+ }[] | undefined;
745
+ aci_permission_ceiling?: number | undefined;
746
+ aci_constraints?: {
747
+ custom?: Record<string, unknown> | undefined;
748
+ requires_approval?: boolean | undefined;
749
+ max_operations?: number | undefined;
750
+ allowed_resources?: string[] | undefined;
751
+ blocked_resources?: string[] | undefined;
752
+ valid_until?: number | undefined;
753
+ } | undefined;
754
+ car_trust?: CertificationTier | undefined;
755
+ car_did?: string | undefined;
756
+ car_runtime_tier?: RuntimeTier | undefined;
757
+ car_attestations?: {
758
+ scope: string;
759
+ tier: CertificationTier;
760
+ iss: string;
761
+ exp: number;
762
+ iat: number;
763
+ evidence?: string | undefined;
764
+ }[] | undefined;
765
+ car_permission_ceiling?: number | undefined;
766
+ car_constraints?: {
767
+ custom?: Record<string, unknown> | undefined;
768
+ requires_approval?: boolean | undefined;
769
+ max_operations?: number | undefined;
770
+ allowed_resources?: string[] | undefined;
771
+ blocked_resources?: string[] | undefined;
772
+ valid_until?: number | undefined;
773
+ } | undefined;
774
+ }>;
775
+ /**
776
+ * Options for generating JWT claims.
777
+ */
778
+ export interface GenerateJWTClaimsOptions {
779
+ /** Parsed CAR */
780
+ parsed: ParsedCAR;
781
+ /** Agent DID (optional) */
782
+ did?: string;
783
+ /** Issuer (optional) */
784
+ issuer?: string;
785
+ /** Audience (optional) */
786
+ audience?: string | string[];
787
+ /** Validity duration in seconds (default: 1 hour) */
788
+ validitySeconds?: number;
789
+ /** Runtime tier (optional) */
790
+ runtimeTier?: RuntimeTier;
791
+ /** Attestation claims (optional) */
792
+ attestations?: CARAttestationClaim[];
793
+ /** Permission ceiling (optional) */
794
+ permissionCeiling?: number;
795
+ /** Constraints (optional) */
796
+ constraints?: CARConstraintsClaim;
797
+ }
798
+ /**
799
+ * Generates JWT claims from a parsed CAR.
800
+ *
801
+ * @param options - Generation options
802
+ * @returns CAR JWT claims
803
+ *
804
+ * @example
805
+ * ```typescript
806
+ * const claims = generateJWTClaims({
807
+ * parsed: parseCAR('a3i.acme-corp.invoice-bot:ABF-L3@1.0.0'),
808
+ * did: 'did:web:agent.acme.com',
809
+ * issuer: 'did:web:auth.acme.com',
810
+ * validitySeconds: 3600,
811
+ * });
812
+ * ```
813
+ */
814
+ export declare function generateJWTClaims(options: GenerateJWTClaimsOptions): CARJWTClaims;
815
+ /**
816
+ * Generates minimal JWT claims from a parsed CAR.
817
+ *
818
+ * NOTE: car_trust is NOT included because trust comes from attestations,
819
+ * not the CAR itself. Use generateJWTClaims with attestations for full claims.
820
+ *
821
+ * @param parsed - Parsed CAR
822
+ * @param did - Optional agent DID
823
+ * @returns Minimal CAR JWT claims (without trust tier)
824
+ */
825
+ export declare function generateMinimalJWTClaims(parsed: ParsedCAR, did?: string): CARJWTClaims;
826
+ /**
827
+ * Validation error for JWT claims.
828
+ */
829
+ export interface JWTClaimsValidationError {
830
+ /** Error code */
831
+ code: JWTClaimsErrorCode;
832
+ /** Human-readable message */
833
+ message: string;
834
+ /** Claim path (if applicable) */
835
+ path?: string;
836
+ }
837
+ /**
838
+ * Error codes for JWT claims validation.
839
+ */
840
+ export type JWTClaimsErrorCode = 'MISSING_CAR' | 'INVALID_CAR' | 'EXPIRED' | 'NOT_YET_VALID' | 'INVALID_DOMAINS' | 'INVALID_LEVEL' | 'INVALID_TIER' | 'DOMAINS_MISMATCH' | 'INVALID_FORMAT';
841
+ /**
842
+ * Result of JWT claims validation.
843
+ */
844
+ export interface JWTClaimsValidationResult {
845
+ /** Whether the claims are valid */
846
+ valid: boolean;
847
+ /** Validation errors */
848
+ errors: JWTClaimsValidationError[];
849
+ /** Validated claims (if valid) */
850
+ claims?: CARJWTClaims;
851
+ }
852
+ /**
853
+ * Validates CAR JWT claims.
854
+ *
855
+ * @param claims - Claims to validate
856
+ * @param options - Validation options
857
+ * @returns Validation result
858
+ *
859
+ * @example
860
+ * ```typescript
861
+ * const result = validateJWTClaims(claims, {
862
+ * checkExpiry: true,
863
+ * validateDomainsMismatch: true,
864
+ * });
865
+ * ```
866
+ */
867
+ export declare function validateJWTClaims(claims: unknown, options?: {
868
+ checkExpiry?: boolean;
869
+ validateDomainsMismatch?: boolean;
870
+ }): JWTClaimsValidationResult;
871
+ /**
872
+ * Extracts capability information from JWT claims.
873
+ *
874
+ * NOTE: certificationTier is optional because it comes from attestations,
875
+ * not the CAR. If no attestations are present, it will be undefined.
876
+ *
877
+ * @param claims - CAR JWT claims
878
+ * @returns Capability information
879
+ */
880
+ export declare function extractCapabilityFromClaims(claims: CARJWTClaims): {
881
+ domains: DomainCode[];
882
+ domainsBitmask: number;
883
+ level: CapabilityLevel;
884
+ certificationTier?: CertificationTier;
885
+ runtimeTier?: RuntimeTier;
886
+ };
887
+ /**
888
+ * Extracts identity information from JWT claims.
889
+ *
890
+ * @param claims - CAR JWT claims
891
+ * @returns Identity information
892
+ */
893
+ export declare function extractIdentityFromClaims(claims: CARJWTClaims): {
894
+ car: string;
895
+ did?: string;
896
+ registry: string;
897
+ organization: string;
898
+ agentClass: string;
899
+ version: string;
900
+ };
901
+ /**
902
+ * Checks if claims have specific domain capability.
903
+ *
904
+ * @param claims - CAR JWT claims
905
+ * @param domain - Domain to check
906
+ * @returns True if the domain is present
907
+ */
908
+ export declare function claimsHaveDomain(claims: CARJWTClaims, domain: DomainCode): boolean;
909
+ /**
910
+ * Checks if claims meet minimum capability requirements.
911
+ *
912
+ * @param claims - CAR JWT claims
913
+ * @param requirements - Minimum requirements
914
+ * @returns True if requirements are met
915
+ */
916
+ export declare function claimsMeetRequirements(claims: CARJWTClaims, requirements: {
917
+ domains?: DomainCode[];
918
+ minLevel?: CapabilityLevel;
919
+ minCertificationTier?: CertificationTier;
920
+ minRuntimeTier?: RuntimeTier;
921
+ }): boolean;
922
+ /**
923
+ * Zod schema for JWT claims validation options.
924
+ */
925
+ export declare const jwtClaimsValidationOptionsSchema: z.ZodObject<{
926
+ checkExpiry: z.ZodOptional<z.ZodBoolean>;
927
+ validateDomainsMismatch: z.ZodOptional<z.ZodBoolean>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ checkExpiry?: boolean | undefined;
930
+ validateDomainsMismatch?: boolean | undefined;
931
+ }, {
932
+ checkExpiry?: boolean | undefined;
933
+ validateDomainsMismatch?: boolean | undefined;
934
+ }>;
935
+ /**
936
+ * Zod schema for JWTClaimsValidationError.
937
+ */
938
+ export declare const jwtClaimsValidationErrorSchema: z.ZodObject<{
939
+ code: z.ZodEnum<["MISSING_CAR", "INVALID_CAR", "EXPIRED", "NOT_YET_VALID", "INVALID_DOMAINS", "INVALID_LEVEL", "INVALID_TIER", "DOMAINS_MISMATCH", "INVALID_FORMAT"]>;
940
+ message: z.ZodString;
941
+ path: z.ZodOptional<z.ZodString>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ code: "EXPIRED" | "INVALID_FORMAT" | "INVALID_DOMAINS" | "INVALID_LEVEL" | "NOT_YET_VALID" | "INVALID_TIER" | "DOMAINS_MISMATCH" | "MISSING_CAR" | "INVALID_CAR";
944
+ message: string;
945
+ path?: string | undefined;
946
+ }, {
947
+ code: "EXPIRED" | "INVALID_FORMAT" | "INVALID_DOMAINS" | "INVALID_LEVEL" | "NOT_YET_VALID" | "INVALID_TIER" | "DOMAINS_MISMATCH" | "MISSING_CAR" | "INVALID_CAR";
948
+ message: string;
949
+ path?: string | undefined;
950
+ }>;
951
+ /**
952
+ * Zod schema for JWTClaimsValidationResult.
953
+ */
954
+ export declare const jwtClaimsValidationResultSchema: z.ZodObject<{
955
+ valid: z.ZodBoolean;
956
+ errors: z.ZodArray<z.ZodObject<{
957
+ code: z.ZodEnum<["MISSING_CAR", "INVALID_CAR", "EXPIRED", "NOT_YET_VALID", "INVALID_DOMAINS", "INVALID_LEVEL", "INVALID_TIER", "DOMAINS_MISMATCH", "INVALID_FORMAT"]>;
958
+ message: z.ZodString;
959
+ path: z.ZodOptional<z.ZodString>;
960
+ }, "strip", z.ZodTypeAny, {
961
+ code: "EXPIRED" | "INVALID_FORMAT" | "INVALID_DOMAINS" | "INVALID_LEVEL" | "NOT_YET_VALID" | "INVALID_TIER" | "DOMAINS_MISMATCH" | "MISSING_CAR" | "INVALID_CAR";
962
+ message: string;
963
+ path?: string | undefined;
964
+ }, {
965
+ code: "EXPIRED" | "INVALID_FORMAT" | "INVALID_DOMAINS" | "INVALID_LEVEL" | "NOT_YET_VALID" | "INVALID_TIER" | "DOMAINS_MISMATCH" | "MISSING_CAR" | "INVALID_CAR";
966
+ message: string;
967
+ path?: string | undefined;
968
+ }>, "many">;
969
+ claims: z.ZodOptional<z.ZodObject<{
970
+ iss: z.ZodOptional<z.ZodString>;
971
+ sub: z.ZodOptional<z.ZodString>;
972
+ aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
973
+ exp: z.ZodOptional<z.ZodNumber>;
974
+ nbf: z.ZodOptional<z.ZodNumber>;
975
+ iat: z.ZodOptional<z.ZodNumber>;
976
+ jti: z.ZodOptional<z.ZodString>;
977
+ } & {
978
+ car: z.ZodString;
979
+ aci: z.ZodOptional<z.ZodString>;
980
+ car_domains: z.ZodNumber;
981
+ aci_domains: z.ZodOptional<z.ZodNumber>;
982
+ car_domains_list: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "S"]>, "many">;
983
+ aci_domains_list: z.ZodOptional<z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "S"]>, "many">>;
984
+ car_level: z.ZodNativeEnum<typeof CapabilityLevel>;
985
+ aci_level: z.ZodOptional<z.ZodNativeEnum<typeof CapabilityLevel>>;
986
+ car_trust: z.ZodOptional<z.ZodNativeEnum<typeof CertificationTier>>;
987
+ aci_trust: z.ZodOptional<z.ZodNativeEnum<typeof CertificationTier>>;
988
+ car_registry: z.ZodString;
989
+ aci_registry: z.ZodOptional<z.ZodString>;
990
+ car_org: z.ZodString;
991
+ aci_org: z.ZodOptional<z.ZodString>;
992
+ car_class: z.ZodString;
993
+ aci_class: z.ZodOptional<z.ZodString>;
994
+ car_version: z.ZodString;
995
+ aci_version: z.ZodOptional<z.ZodString>;
996
+ car_did: z.ZodOptional<z.ZodString>;
997
+ aci_did: z.ZodOptional<z.ZodString>;
998
+ car_runtime_tier: z.ZodOptional<z.ZodNativeEnum<typeof RuntimeTier>>;
999
+ aci_runtime_tier: z.ZodOptional<z.ZodNativeEnum<typeof RuntimeTier>>;
1000
+ car_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1001
+ iss: z.ZodString;
1002
+ tier: z.ZodNativeEnum<typeof CertificationTier>;
1003
+ scope: z.ZodString;
1004
+ iat: z.ZodNumber;
1005
+ exp: z.ZodNumber;
1006
+ evidence: z.ZodOptional<z.ZodString>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ scope: string;
1009
+ tier: CertificationTier;
1010
+ iss: string;
1011
+ exp: number;
1012
+ iat: number;
1013
+ evidence?: string | undefined;
1014
+ }, {
1015
+ scope: string;
1016
+ tier: CertificationTier;
1017
+ iss: string;
1018
+ exp: number;
1019
+ iat: number;
1020
+ evidence?: string | undefined;
1021
+ }>, "many">>;
1022
+ aci_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1023
+ iss: z.ZodString;
1024
+ tier: z.ZodNativeEnum<typeof CertificationTier>;
1025
+ scope: z.ZodString;
1026
+ iat: z.ZodNumber;
1027
+ exp: z.ZodNumber;
1028
+ evidence: z.ZodOptional<z.ZodString>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ scope: string;
1031
+ tier: CertificationTier;
1032
+ iss: string;
1033
+ exp: number;
1034
+ iat: number;
1035
+ evidence?: string | undefined;
1036
+ }, {
1037
+ scope: string;
1038
+ tier: CertificationTier;
1039
+ iss: string;
1040
+ exp: number;
1041
+ iat: number;
1042
+ evidence?: string | undefined;
1043
+ }>, "many">>;
1044
+ car_permission_ceiling: z.ZodOptional<z.ZodNumber>;
1045
+ aci_permission_ceiling: z.ZodOptional<z.ZodNumber>;
1046
+ car_constraints: z.ZodOptional<z.ZodObject<{
1047
+ max_operations: z.ZodOptional<z.ZodNumber>;
1048
+ allowed_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1049
+ blocked_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1050
+ valid_until: z.ZodOptional<z.ZodNumber>;
1051
+ requires_approval: z.ZodOptional<z.ZodBoolean>;
1052
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ custom?: Record<string, unknown> | undefined;
1055
+ requires_approval?: boolean | undefined;
1056
+ max_operations?: number | undefined;
1057
+ allowed_resources?: string[] | undefined;
1058
+ blocked_resources?: string[] | undefined;
1059
+ valid_until?: number | undefined;
1060
+ }, {
1061
+ custom?: Record<string, unknown> | undefined;
1062
+ requires_approval?: boolean | undefined;
1063
+ max_operations?: number | undefined;
1064
+ allowed_resources?: string[] | undefined;
1065
+ blocked_resources?: string[] | undefined;
1066
+ valid_until?: number | undefined;
1067
+ }>>;
1068
+ aci_constraints: z.ZodOptional<z.ZodObject<{
1069
+ max_operations: z.ZodOptional<z.ZodNumber>;
1070
+ allowed_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1071
+ blocked_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1072
+ valid_until: z.ZodOptional<z.ZodNumber>;
1073
+ requires_approval: z.ZodOptional<z.ZodBoolean>;
1074
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ custom?: Record<string, unknown> | undefined;
1077
+ requires_approval?: boolean | undefined;
1078
+ max_operations?: number | undefined;
1079
+ allowed_resources?: string[] | undefined;
1080
+ blocked_resources?: string[] | undefined;
1081
+ valid_until?: number | undefined;
1082
+ }, {
1083
+ custom?: Record<string, unknown> | undefined;
1084
+ requires_approval?: boolean | undefined;
1085
+ max_operations?: number | undefined;
1086
+ allowed_resources?: string[] | undefined;
1087
+ blocked_resources?: string[] | undefined;
1088
+ valid_until?: number | undefined;
1089
+ }>>;
1090
+ }, "strip", z.ZodTypeAny, {
1091
+ car: string;
1092
+ car_domains: number;
1093
+ car_domains_list: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[];
1094
+ car_level: CapabilityLevel;
1095
+ car_registry: string;
1096
+ car_org: string;
1097
+ car_class: string;
1098
+ car_version: string;
1099
+ aci?: string | undefined;
1100
+ sub?: string | undefined;
1101
+ jti?: string | undefined;
1102
+ iss?: string | undefined;
1103
+ aud?: string | string[] | undefined;
1104
+ exp?: number | undefined;
1105
+ nbf?: number | undefined;
1106
+ iat?: number | undefined;
1107
+ aci_domains?: number | undefined;
1108
+ aci_domains_list?: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[] | undefined;
1109
+ aci_level?: CapabilityLevel | undefined;
1110
+ aci_trust?: CertificationTier | undefined;
1111
+ aci_registry?: string | undefined;
1112
+ aci_org?: string | undefined;
1113
+ aci_class?: string | undefined;
1114
+ aci_version?: string | undefined;
1115
+ aci_did?: string | undefined;
1116
+ aci_runtime_tier?: RuntimeTier | undefined;
1117
+ aci_attestations?: {
1118
+ scope: string;
1119
+ tier: CertificationTier;
1120
+ iss: string;
1121
+ exp: number;
1122
+ iat: number;
1123
+ evidence?: string | undefined;
1124
+ }[] | undefined;
1125
+ aci_permission_ceiling?: number | undefined;
1126
+ aci_constraints?: {
1127
+ custom?: Record<string, unknown> | undefined;
1128
+ requires_approval?: boolean | undefined;
1129
+ max_operations?: number | undefined;
1130
+ allowed_resources?: string[] | undefined;
1131
+ blocked_resources?: string[] | undefined;
1132
+ valid_until?: number | undefined;
1133
+ } | undefined;
1134
+ car_trust?: CertificationTier | undefined;
1135
+ car_did?: string | undefined;
1136
+ car_runtime_tier?: RuntimeTier | undefined;
1137
+ car_attestations?: {
1138
+ scope: string;
1139
+ tier: CertificationTier;
1140
+ iss: string;
1141
+ exp: number;
1142
+ iat: number;
1143
+ evidence?: string | undefined;
1144
+ }[] | undefined;
1145
+ car_permission_ceiling?: number | undefined;
1146
+ car_constraints?: {
1147
+ custom?: Record<string, unknown> | undefined;
1148
+ requires_approval?: boolean | undefined;
1149
+ max_operations?: number | undefined;
1150
+ allowed_resources?: string[] | undefined;
1151
+ blocked_resources?: string[] | undefined;
1152
+ valid_until?: number | undefined;
1153
+ } | undefined;
1154
+ }, {
1155
+ car: string;
1156
+ car_domains: number;
1157
+ car_domains_list: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[];
1158
+ car_level: CapabilityLevel;
1159
+ car_registry: string;
1160
+ car_org: string;
1161
+ car_class: string;
1162
+ car_version: string;
1163
+ aci?: string | undefined;
1164
+ sub?: string | undefined;
1165
+ jti?: string | undefined;
1166
+ iss?: string | undefined;
1167
+ aud?: string | string[] | undefined;
1168
+ exp?: number | undefined;
1169
+ nbf?: number | undefined;
1170
+ iat?: number | undefined;
1171
+ aci_domains?: number | undefined;
1172
+ aci_domains_list?: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[] | undefined;
1173
+ aci_level?: CapabilityLevel | undefined;
1174
+ aci_trust?: CertificationTier | undefined;
1175
+ aci_registry?: string | undefined;
1176
+ aci_org?: string | undefined;
1177
+ aci_class?: string | undefined;
1178
+ aci_version?: string | undefined;
1179
+ aci_did?: string | undefined;
1180
+ aci_runtime_tier?: RuntimeTier | undefined;
1181
+ aci_attestations?: {
1182
+ scope: string;
1183
+ tier: CertificationTier;
1184
+ iss: string;
1185
+ exp: number;
1186
+ iat: number;
1187
+ evidence?: string | undefined;
1188
+ }[] | undefined;
1189
+ aci_permission_ceiling?: number | undefined;
1190
+ aci_constraints?: {
1191
+ custom?: Record<string, unknown> | undefined;
1192
+ requires_approval?: boolean | undefined;
1193
+ max_operations?: number | undefined;
1194
+ allowed_resources?: string[] | undefined;
1195
+ blocked_resources?: string[] | undefined;
1196
+ valid_until?: number | undefined;
1197
+ } | undefined;
1198
+ car_trust?: CertificationTier | undefined;
1199
+ car_did?: string | undefined;
1200
+ car_runtime_tier?: RuntimeTier | undefined;
1201
+ car_attestations?: {
1202
+ scope: string;
1203
+ tier: CertificationTier;
1204
+ iss: string;
1205
+ exp: number;
1206
+ iat: number;
1207
+ evidence?: string | undefined;
1208
+ }[] | undefined;
1209
+ car_permission_ceiling?: number | undefined;
1210
+ car_constraints?: {
1211
+ custom?: Record<string, unknown> | undefined;
1212
+ requires_approval?: boolean | undefined;
1213
+ max_operations?: number | undefined;
1214
+ allowed_resources?: string[] | undefined;
1215
+ blocked_resources?: string[] | undefined;
1216
+ valid_until?: number | undefined;
1217
+ } | undefined;
1218
+ }>>;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ valid: boolean;
1221
+ errors: {
1222
+ code: "EXPIRED" | "INVALID_FORMAT" | "INVALID_DOMAINS" | "INVALID_LEVEL" | "NOT_YET_VALID" | "INVALID_TIER" | "DOMAINS_MISMATCH" | "MISSING_CAR" | "INVALID_CAR";
1223
+ message: string;
1224
+ path?: string | undefined;
1225
+ }[];
1226
+ claims?: {
1227
+ car: string;
1228
+ car_domains: number;
1229
+ car_domains_list: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[];
1230
+ car_level: CapabilityLevel;
1231
+ car_registry: string;
1232
+ car_org: string;
1233
+ car_class: string;
1234
+ car_version: string;
1235
+ aci?: string | undefined;
1236
+ sub?: string | undefined;
1237
+ jti?: string | undefined;
1238
+ iss?: string | undefined;
1239
+ aud?: string | string[] | undefined;
1240
+ exp?: number | undefined;
1241
+ nbf?: number | undefined;
1242
+ iat?: number | undefined;
1243
+ aci_domains?: number | undefined;
1244
+ aci_domains_list?: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[] | undefined;
1245
+ aci_level?: CapabilityLevel | undefined;
1246
+ aci_trust?: CertificationTier | undefined;
1247
+ aci_registry?: string | undefined;
1248
+ aci_org?: string | undefined;
1249
+ aci_class?: string | undefined;
1250
+ aci_version?: string | undefined;
1251
+ aci_did?: string | undefined;
1252
+ aci_runtime_tier?: RuntimeTier | undefined;
1253
+ aci_attestations?: {
1254
+ scope: string;
1255
+ tier: CertificationTier;
1256
+ iss: string;
1257
+ exp: number;
1258
+ iat: number;
1259
+ evidence?: string | undefined;
1260
+ }[] | undefined;
1261
+ aci_permission_ceiling?: number | undefined;
1262
+ aci_constraints?: {
1263
+ custom?: Record<string, unknown> | undefined;
1264
+ requires_approval?: boolean | undefined;
1265
+ max_operations?: number | undefined;
1266
+ allowed_resources?: string[] | undefined;
1267
+ blocked_resources?: string[] | undefined;
1268
+ valid_until?: number | undefined;
1269
+ } | undefined;
1270
+ car_trust?: CertificationTier | undefined;
1271
+ car_did?: string | undefined;
1272
+ car_runtime_tier?: RuntimeTier | undefined;
1273
+ car_attestations?: {
1274
+ scope: string;
1275
+ tier: CertificationTier;
1276
+ iss: string;
1277
+ exp: number;
1278
+ iat: number;
1279
+ evidence?: string | undefined;
1280
+ }[] | undefined;
1281
+ car_permission_ceiling?: number | undefined;
1282
+ car_constraints?: {
1283
+ custom?: Record<string, unknown> | undefined;
1284
+ requires_approval?: boolean | undefined;
1285
+ max_operations?: number | undefined;
1286
+ allowed_resources?: string[] | undefined;
1287
+ blocked_resources?: string[] | undefined;
1288
+ valid_until?: number | undefined;
1289
+ } | undefined;
1290
+ } | undefined;
1291
+ }, {
1292
+ valid: boolean;
1293
+ errors: {
1294
+ code: "EXPIRED" | "INVALID_FORMAT" | "INVALID_DOMAINS" | "INVALID_LEVEL" | "NOT_YET_VALID" | "INVALID_TIER" | "DOMAINS_MISMATCH" | "MISSING_CAR" | "INVALID_CAR";
1295
+ message: string;
1296
+ path?: string | undefined;
1297
+ }[];
1298
+ claims?: {
1299
+ car: string;
1300
+ car_domains: number;
1301
+ car_domains_list: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[];
1302
+ car_level: CapabilityLevel;
1303
+ car_registry: string;
1304
+ car_org: string;
1305
+ car_class: string;
1306
+ car_version: string;
1307
+ aci?: string | undefined;
1308
+ sub?: string | undefined;
1309
+ jti?: string | undefined;
1310
+ iss?: string | undefined;
1311
+ aud?: string | string[] | undefined;
1312
+ exp?: number | undefined;
1313
+ nbf?: number | undefined;
1314
+ iat?: number | undefined;
1315
+ aci_domains?: number | undefined;
1316
+ aci_domains_list?: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "S")[] | undefined;
1317
+ aci_level?: CapabilityLevel | undefined;
1318
+ aci_trust?: CertificationTier | undefined;
1319
+ aci_registry?: string | undefined;
1320
+ aci_org?: string | undefined;
1321
+ aci_class?: string | undefined;
1322
+ aci_version?: string | undefined;
1323
+ aci_did?: string | undefined;
1324
+ aci_runtime_tier?: RuntimeTier | undefined;
1325
+ aci_attestations?: {
1326
+ scope: string;
1327
+ tier: CertificationTier;
1328
+ iss: string;
1329
+ exp: number;
1330
+ iat: number;
1331
+ evidence?: string | undefined;
1332
+ }[] | undefined;
1333
+ aci_permission_ceiling?: number | undefined;
1334
+ aci_constraints?: {
1335
+ custom?: Record<string, unknown> | undefined;
1336
+ requires_approval?: boolean | undefined;
1337
+ max_operations?: number | undefined;
1338
+ allowed_resources?: string[] | undefined;
1339
+ blocked_resources?: string[] | undefined;
1340
+ valid_until?: number | undefined;
1341
+ } | undefined;
1342
+ car_trust?: CertificationTier | undefined;
1343
+ car_did?: string | undefined;
1344
+ car_runtime_tier?: RuntimeTier | undefined;
1345
+ car_attestations?: {
1346
+ scope: string;
1347
+ tier: CertificationTier;
1348
+ iss: string;
1349
+ exp: number;
1350
+ iat: number;
1351
+ evidence?: string | undefined;
1352
+ }[] | undefined;
1353
+ car_permission_ceiling?: number | undefined;
1354
+ car_constraints?: {
1355
+ custom?: Record<string, unknown> | undefined;
1356
+ requires_approval?: boolean | undefined;
1357
+ max_operations?: number | undefined;
1358
+ allowed_resources?: string[] | undefined;
1359
+ blocked_resources?: string[] | undefined;
1360
+ valid_until?: number | undefined;
1361
+ } | undefined;
1362
+ } | undefined;
1363
+ }>;
1364
+ //# sourceMappingURL=jwt-claims.d.ts.map