@kya-os/contracts 1.7.14 → 1.7.16

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.
@@ -1724,12 +1724,15 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1724
1724
  /** Status */
1725
1725
  status: z.ZodEnum<["active", "revoked", "expired"]>;
1726
1726
  }, "strip", z.ZodTypeAny, {
1727
+ issuerDid: string;
1728
+ subjectDid: string;
1729
+ vcId: string;
1727
1730
  status: "active" | "revoked" | "expired";
1728
1731
  constraints: {
1729
- scopes?: string[] | undefined;
1730
- audience?: string | string[] | undefined;
1731
1732
  notBefore?: number | undefined;
1732
1733
  notAfter?: number | undefined;
1734
+ scopes?: string[] | undefined;
1735
+ audience?: string | string[] | undefined;
1733
1736
  crisp?: z.objectOutputType<{
1734
1737
  budget: z.ZodOptional<z.ZodObject<{
1735
1738
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1776,18 +1779,18 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1776
1779
  } & {
1777
1780
  [k: string]: unknown;
1778
1781
  };
1779
- issuerDid: string;
1780
- subjectDid: string;
1781
- vcId: string;
1782
1782
  delegationId: string;
1783
1783
  depth: number;
1784
1784
  }, {
1785
+ issuerDid: string;
1786
+ subjectDid: string;
1787
+ vcId: string;
1785
1788
  status: "active" | "revoked" | "expired";
1786
1789
  constraints: {
1787
- scopes?: string[] | undefined;
1788
- audience?: string | string[] | undefined;
1789
1790
  notBefore?: number | undefined;
1790
1791
  notAfter?: number | undefined;
1792
+ scopes?: string[] | undefined;
1793
+ audience?: string | string[] | undefined;
1791
1794
  crisp?: z.objectInputType<{
1792
1795
  budget: z.ZodOptional<z.ZodObject<{
1793
1796
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1834,9 +1837,6 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1834
1837
  } & {
1835
1838
  [k: string]: unknown;
1836
1839
  };
1837
- issuerDid: string;
1838
- subjectDid: string;
1839
- vcId: string;
1840
1840
  delegationId: string;
1841
1841
  depth: number;
1842
1842
  }>;
@@ -2264,12 +2264,15 @@ export declare const DelegationChainSchema: z.ZodObject<{
2264
2264
  /** Status */
2265
2265
  status: z.ZodEnum<["active", "revoked", "expired"]>;
2266
2266
  }, "strip", z.ZodTypeAny, {
2267
+ issuerDid: string;
2268
+ subjectDid: string;
2269
+ vcId: string;
2267
2270
  status: "active" | "revoked" | "expired";
2268
2271
  constraints: {
2269
- scopes?: string[] | undefined;
2270
- audience?: string | string[] | undefined;
2271
2272
  notBefore?: number | undefined;
2272
2273
  notAfter?: number | undefined;
2274
+ scopes?: string[] | undefined;
2275
+ audience?: string | string[] | undefined;
2273
2276
  crisp?: z.objectOutputType<{
2274
2277
  budget: z.ZodOptional<z.ZodObject<{
2275
2278
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2316,18 +2319,18 @@ export declare const DelegationChainSchema: z.ZodObject<{
2316
2319
  } & {
2317
2320
  [k: string]: unknown;
2318
2321
  };
2319
- issuerDid: string;
2320
- subjectDid: string;
2321
- vcId: string;
2322
2322
  delegationId: string;
2323
2323
  depth: number;
2324
2324
  }, {
2325
+ issuerDid: string;
2326
+ subjectDid: string;
2327
+ vcId: string;
2325
2328
  status: "active" | "revoked" | "expired";
2326
2329
  constraints: {
2327
- scopes?: string[] | undefined;
2328
- audience?: string | string[] | undefined;
2329
2330
  notBefore?: number | undefined;
2330
2331
  notAfter?: number | undefined;
2332
+ scopes?: string[] | undefined;
2333
+ audience?: string | string[] | undefined;
2331
2334
  crisp?: z.objectInputType<{
2332
2335
  budget: z.ZodOptional<z.ZodObject<{
2333
2336
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2374,9 +2377,6 @@ export declare const DelegationChainSchema: z.ZodObject<{
2374
2377
  } & {
2375
2378
  [k: string]: unknown;
2376
2379
  };
2377
- issuerDid: string;
2378
- subjectDid: string;
2379
- vcId: string;
2380
2380
  delegationId: string;
2381
2381
  depth: number;
2382
2382
  }>, "many">;
@@ -2392,12 +2392,15 @@ export declare const DelegationChainSchema: z.ZodObject<{
2392
2392
  rootIssuer: string;
2393
2393
  leafSubject: string;
2394
2394
  chain: {
2395
+ issuerDid: string;
2396
+ subjectDid: string;
2397
+ vcId: string;
2395
2398
  status: "active" | "revoked" | "expired";
2396
2399
  constraints: {
2397
- scopes?: string[] | undefined;
2398
- audience?: string | string[] | undefined;
2399
2400
  notBefore?: number | undefined;
2400
2401
  notAfter?: number | undefined;
2402
+ scopes?: string[] | undefined;
2403
+ audience?: string | string[] | undefined;
2401
2404
  crisp?: z.objectOutputType<{
2402
2405
  budget: z.ZodOptional<z.ZodObject<{
2403
2406
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2444,9 +2447,6 @@ export declare const DelegationChainSchema: z.ZodObject<{
2444
2447
  } & {
2445
2448
  [k: string]: unknown;
2446
2449
  };
2447
- issuerDid: string;
2448
- subjectDid: string;
2449
- vcId: string;
2450
2450
  delegationId: string;
2451
2451
  depth: number;
2452
2452
  }[];
@@ -2457,12 +2457,15 @@ export declare const DelegationChainSchema: z.ZodObject<{
2457
2457
  rootIssuer: string;
2458
2458
  leafSubject: string;
2459
2459
  chain: {
2460
+ issuerDid: string;
2461
+ subjectDid: string;
2462
+ vcId: string;
2460
2463
  status: "active" | "revoked" | "expired";
2461
2464
  constraints: {
2462
- scopes?: string[] | undefined;
2463
- audience?: string | string[] | undefined;
2464
2465
  notBefore?: number | undefined;
2465
2466
  notAfter?: number | undefined;
2467
+ scopes?: string[] | undefined;
2468
+ audience?: string | string[] | undefined;
2466
2469
  crisp?: z.objectInputType<{
2467
2470
  budget: z.ZodOptional<z.ZodObject<{
2468
2471
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2509,9 +2512,6 @@ export declare const DelegationChainSchema: z.ZodObject<{
2509
2512
  } & {
2510
2513
  [k: string]: unknown;
2511
2514
  };
2512
- issuerDid: string;
2513
- subjectDid: string;
2514
- vcId: string;
2515
2515
  delegationId: string;
2516
2516
  depth: number;
2517
2517
  }[];
@@ -2933,11 +2933,13 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2933
2933
  /** Optional VC ID (if not provided, will be created) */
2934
2934
  vcId: z.ZodOptional<z.ZodString>;
2935
2935
  }, "strip", z.ZodTypeAny, {
2936
+ issuerDid: string;
2937
+ subjectDid: string;
2936
2938
  constraints: {
2937
- scopes?: string[] | undefined;
2938
- audience?: string | string[] | undefined;
2939
2939
  notBefore?: number | undefined;
2940
2940
  notAfter?: number | undefined;
2941
+ scopes?: string[] | undefined;
2942
+ audience?: string | string[] | undefined;
2941
2943
  crisp?: z.objectOutputType<{
2942
2944
  budget: z.ZodOptional<z.ZodObject<{
2943
2945
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2984,17 +2986,17 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2984
2986
  } & {
2985
2987
  [k: string]: unknown;
2986
2988
  };
2987
- issuerDid: string;
2988
- subjectDid: string;
2989
2989
  controller?: string | undefined;
2990
2990
  vcId?: string | undefined;
2991
2991
  parentId?: string | undefined;
2992
2992
  }, {
2993
+ issuerDid: string;
2994
+ subjectDid: string;
2993
2995
  constraints: {
2994
- scopes?: string[] | undefined;
2995
- audience?: string | string[] | undefined;
2996
2996
  notBefore?: number | undefined;
2997
2997
  notAfter?: number | undefined;
2998
+ scopes?: string[] | undefined;
2999
+ audience?: string | string[] | undefined;
2998
3000
  crisp?: z.objectInputType<{
2999
3001
  budget: z.ZodOptional<z.ZodObject<{
3000
3002
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3041,13 +3043,262 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
3041
3043
  } & {
3042
3044
  [k: string]: unknown;
3043
3045
  };
3044
- issuerDid: string;
3045
- subjectDid: string;
3046
3046
  controller?: string | undefined;
3047
3047
  vcId?: string | undefined;
3048
3048
  parentId?: string | undefined;
3049
3049
  }>;
3050
3050
  export type DelegationCreationRequest = z.infer<typeof DelegationCreationRequestSchema>;
3051
+ /**
3052
+ * Authorization Info Schema
3053
+ *
3054
+ * Captures HOW the user verified their identity during consent.
3055
+ * This is runtime verification metadata, separate from tool requirements.
3056
+ *
3057
+ * Note: This schema describes authorization info in verification results,
3058
+ * not tool protection requirements (which use AuthorizationRequirementSchema).
3059
+ */
3060
+ export declare const AuthorizationInfoSchema: z.ZodObject<{
3061
+ /**
3062
+ * The authorization method used during consent
3063
+ *
3064
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3065
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3066
+ * - 'password': Password/credential authentication
3067
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3068
+ * - 'verifiable_credential': W3C Verifiable Credential
3069
+ * - 'mdl': Mobile Driver's License
3070
+ * - 'idv': Identity Verification
3071
+ * - 'webauthn': WebAuthn/Passkey authentication
3072
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3073
+ * - 'none': Consent-only (no authentication)
3074
+ */
3075
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3076
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3077
+ provider: z.ZodOptional<z.ZodString>;
3078
+ /** Credential type for verifiable_credential or mdl auth */
3079
+ credentialType: z.ZodOptional<z.ZodString>;
3080
+ /** MDL issuer DID or identifier */
3081
+ issuer: z.ZodOptional<z.ZodString>;
3082
+ /** IDV verification level */
3083
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3084
+ /** WebAuthn Relying Party ID */
3085
+ rpId: z.ZodOptional<z.ZodString>;
3086
+ /** WebAuthn user verification level */
3087
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3088
+ /** SIWE Ethereum chain ID */
3089
+ chainId: z.ZodOptional<z.ZodNumber>;
3090
+ /** SIWE domain */
3091
+ domain: z.ZodOptional<z.ZodString>;
3092
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3093
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3094
+ }, "strip", z.ZodTypeAny, {
3095
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3096
+ provider?: string | undefined;
3097
+ credentialType?: string | undefined;
3098
+ issuer?: string | undefined;
3099
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3100
+ rpId?: string | undefined;
3101
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3102
+ chainId?: number | undefined;
3103
+ domain?: string | undefined;
3104
+ verifiedAt?: number | undefined;
3105
+ }, {
3106
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3107
+ provider?: string | undefined;
3108
+ credentialType?: string | undefined;
3109
+ issuer?: string | undefined;
3110
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3111
+ rpId?: string | undefined;
3112
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3113
+ chainId?: number | undefined;
3114
+ domain?: string | undefined;
3115
+ verifiedAt?: number | undefined;
3116
+ }>;
3117
+ export type AuthorizationInfo = z.infer<typeof AuthorizationInfoSchema>;
3118
+ /**
3119
+ * Delegation Verification Details Schema
3120
+ *
3121
+ * Typed details object for verification results
3122
+ */
3123
+ export declare const DelegationVerificationDetailsSchema: z.ZodObject<{
3124
+ /** Authorization info - how identity was verified during consent */
3125
+ authorization: z.ZodOptional<z.ZodObject<{
3126
+ /**
3127
+ * The authorization method used during consent
3128
+ *
3129
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3130
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3131
+ * - 'password': Password/credential authentication
3132
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3133
+ * - 'verifiable_credential': W3C Verifiable Credential
3134
+ * - 'mdl': Mobile Driver's License
3135
+ * - 'idv': Identity Verification
3136
+ * - 'webauthn': WebAuthn/Passkey authentication
3137
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3138
+ * - 'none': Consent-only (no authentication)
3139
+ */
3140
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3141
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3142
+ provider: z.ZodOptional<z.ZodString>;
3143
+ /** Credential type for verifiable_credential or mdl auth */
3144
+ credentialType: z.ZodOptional<z.ZodString>;
3145
+ /** MDL issuer DID or identifier */
3146
+ issuer: z.ZodOptional<z.ZodString>;
3147
+ /** IDV verification level */
3148
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3149
+ /** WebAuthn Relying Party ID */
3150
+ rpId: z.ZodOptional<z.ZodString>;
3151
+ /** WebAuthn user verification level */
3152
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3153
+ /** SIWE Ethereum chain ID */
3154
+ chainId: z.ZodOptional<z.ZodNumber>;
3155
+ /** SIWE domain */
3156
+ domain: z.ZodOptional<z.ZodString>;
3157
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3158
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3159
+ }, "strip", z.ZodTypeAny, {
3160
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3161
+ provider?: string | undefined;
3162
+ credentialType?: string | undefined;
3163
+ issuer?: string | undefined;
3164
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3165
+ rpId?: string | undefined;
3166
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3167
+ chainId?: number | undefined;
3168
+ domain?: string | undefined;
3169
+ verifiedAt?: number | undefined;
3170
+ }, {
3171
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3172
+ provider?: string | undefined;
3173
+ credentialType?: string | undefined;
3174
+ issuer?: string | undefined;
3175
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3176
+ rpId?: string | undefined;
3177
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3178
+ chainId?: number | undefined;
3179
+ domain?: string | undefined;
3180
+ verifiedAt?: number | undefined;
3181
+ }>>;
3182
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3183
+ /** Authorization info - how identity was verified during consent */
3184
+ authorization: z.ZodOptional<z.ZodObject<{
3185
+ /**
3186
+ * The authorization method used during consent
3187
+ *
3188
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3189
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3190
+ * - 'password': Password/credential authentication
3191
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3192
+ * - 'verifiable_credential': W3C Verifiable Credential
3193
+ * - 'mdl': Mobile Driver's License
3194
+ * - 'idv': Identity Verification
3195
+ * - 'webauthn': WebAuthn/Passkey authentication
3196
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3197
+ * - 'none': Consent-only (no authentication)
3198
+ */
3199
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3200
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3201
+ provider: z.ZodOptional<z.ZodString>;
3202
+ /** Credential type for verifiable_credential or mdl auth */
3203
+ credentialType: z.ZodOptional<z.ZodString>;
3204
+ /** MDL issuer DID or identifier */
3205
+ issuer: z.ZodOptional<z.ZodString>;
3206
+ /** IDV verification level */
3207
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3208
+ /** WebAuthn Relying Party ID */
3209
+ rpId: z.ZodOptional<z.ZodString>;
3210
+ /** WebAuthn user verification level */
3211
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3212
+ /** SIWE Ethereum chain ID */
3213
+ chainId: z.ZodOptional<z.ZodNumber>;
3214
+ /** SIWE domain */
3215
+ domain: z.ZodOptional<z.ZodString>;
3216
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3217
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3218
+ }, "strip", z.ZodTypeAny, {
3219
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3220
+ provider?: string | undefined;
3221
+ credentialType?: string | undefined;
3222
+ issuer?: string | undefined;
3223
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3224
+ rpId?: string | undefined;
3225
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3226
+ chainId?: number | undefined;
3227
+ domain?: string | undefined;
3228
+ verifiedAt?: number | undefined;
3229
+ }, {
3230
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3231
+ provider?: string | undefined;
3232
+ credentialType?: string | undefined;
3233
+ issuer?: string | undefined;
3234
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3235
+ rpId?: string | undefined;
3236
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3237
+ chainId?: number | undefined;
3238
+ domain?: string | undefined;
3239
+ verifiedAt?: number | undefined;
3240
+ }>>;
3241
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3242
+ /** Authorization info - how identity was verified during consent */
3243
+ authorization: z.ZodOptional<z.ZodObject<{
3244
+ /**
3245
+ * The authorization method used during consent
3246
+ *
3247
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3248
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3249
+ * - 'password': Password/credential authentication
3250
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3251
+ * - 'verifiable_credential': W3C Verifiable Credential
3252
+ * - 'mdl': Mobile Driver's License
3253
+ * - 'idv': Identity Verification
3254
+ * - 'webauthn': WebAuthn/Passkey authentication
3255
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3256
+ * - 'none': Consent-only (no authentication)
3257
+ */
3258
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3259
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3260
+ provider: z.ZodOptional<z.ZodString>;
3261
+ /** Credential type for verifiable_credential or mdl auth */
3262
+ credentialType: z.ZodOptional<z.ZodString>;
3263
+ /** MDL issuer DID or identifier */
3264
+ issuer: z.ZodOptional<z.ZodString>;
3265
+ /** IDV verification level */
3266
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3267
+ /** WebAuthn Relying Party ID */
3268
+ rpId: z.ZodOptional<z.ZodString>;
3269
+ /** WebAuthn user verification level */
3270
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3271
+ /** SIWE Ethereum chain ID */
3272
+ chainId: z.ZodOptional<z.ZodNumber>;
3273
+ /** SIWE domain */
3274
+ domain: z.ZodOptional<z.ZodString>;
3275
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3276
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3277
+ }, "strip", z.ZodTypeAny, {
3278
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3279
+ provider?: string | undefined;
3280
+ credentialType?: string | undefined;
3281
+ issuer?: string | undefined;
3282
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3283
+ rpId?: string | undefined;
3284
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3285
+ chainId?: number | undefined;
3286
+ domain?: string | undefined;
3287
+ verifiedAt?: number | undefined;
3288
+ }, {
3289
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3290
+ provider?: string | undefined;
3291
+ credentialType?: string | undefined;
3292
+ issuer?: string | undefined;
3293
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3294
+ rpId?: string | undefined;
3295
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3296
+ chainId?: number | undefined;
3297
+ domain?: string | undefined;
3298
+ verifiedAt?: number | undefined;
3299
+ }>>;
3300
+ }, z.ZodTypeAny, "passthrough">>;
3301
+ export type DelegationVerificationDetails = z.infer<typeof DelegationVerificationDetailsSchema>;
3051
3302
  /**
3052
3303
  * Delegation Verification Result
3053
3304
  *
@@ -3068,26 +3319,321 @@ export declare const DelegationVerificationResultSchema: z.ZodObject<{
3068
3319
  chainValid: z.ZodOptional<z.ZodBoolean>;
3069
3320
  /** Timestamp of verification */
3070
3321
  verifiedAt: z.ZodNumber;
3071
- /** Optional verification details */
3072
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3322
+ /** Verification details including authorization info */
3323
+ details: z.ZodOptional<z.ZodObject<{
3324
+ /** Authorization info - how identity was verified during consent */
3325
+ authorization: z.ZodOptional<z.ZodObject<{
3326
+ /**
3327
+ * The authorization method used during consent
3328
+ *
3329
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3330
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3331
+ * - 'password': Password/credential authentication
3332
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3333
+ * - 'verifiable_credential': W3C Verifiable Credential
3334
+ * - 'mdl': Mobile Driver's License
3335
+ * - 'idv': Identity Verification
3336
+ * - 'webauthn': WebAuthn/Passkey authentication
3337
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3338
+ * - 'none': Consent-only (no authentication)
3339
+ */
3340
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3341
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3342
+ provider: z.ZodOptional<z.ZodString>;
3343
+ /** Credential type for verifiable_credential or mdl auth */
3344
+ credentialType: z.ZodOptional<z.ZodString>;
3345
+ /** MDL issuer DID or identifier */
3346
+ issuer: z.ZodOptional<z.ZodString>;
3347
+ /** IDV verification level */
3348
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3349
+ /** WebAuthn Relying Party ID */
3350
+ rpId: z.ZodOptional<z.ZodString>;
3351
+ /** WebAuthn user verification level */
3352
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3353
+ /** SIWE Ethereum chain ID */
3354
+ chainId: z.ZodOptional<z.ZodNumber>;
3355
+ /** SIWE domain */
3356
+ domain: z.ZodOptional<z.ZodString>;
3357
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3358
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3359
+ }, "strip", z.ZodTypeAny, {
3360
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3361
+ provider?: string | undefined;
3362
+ credentialType?: string | undefined;
3363
+ issuer?: string | undefined;
3364
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3365
+ rpId?: string | undefined;
3366
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3367
+ chainId?: number | undefined;
3368
+ domain?: string | undefined;
3369
+ verifiedAt?: number | undefined;
3370
+ }, {
3371
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3372
+ provider?: string | undefined;
3373
+ credentialType?: string | undefined;
3374
+ issuer?: string | undefined;
3375
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3376
+ rpId?: string | undefined;
3377
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3378
+ chainId?: number | undefined;
3379
+ domain?: string | undefined;
3380
+ verifiedAt?: number | undefined;
3381
+ }>>;
3382
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3383
+ /** Authorization info - how identity was verified during consent */
3384
+ authorization: z.ZodOptional<z.ZodObject<{
3385
+ /**
3386
+ * The authorization method used during consent
3387
+ *
3388
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3389
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3390
+ * - 'password': Password/credential authentication
3391
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3392
+ * - 'verifiable_credential': W3C Verifiable Credential
3393
+ * - 'mdl': Mobile Driver's License
3394
+ * - 'idv': Identity Verification
3395
+ * - 'webauthn': WebAuthn/Passkey authentication
3396
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3397
+ * - 'none': Consent-only (no authentication)
3398
+ */
3399
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3400
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3401
+ provider: z.ZodOptional<z.ZodString>;
3402
+ /** Credential type for verifiable_credential or mdl auth */
3403
+ credentialType: z.ZodOptional<z.ZodString>;
3404
+ /** MDL issuer DID or identifier */
3405
+ issuer: z.ZodOptional<z.ZodString>;
3406
+ /** IDV verification level */
3407
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3408
+ /** WebAuthn Relying Party ID */
3409
+ rpId: z.ZodOptional<z.ZodString>;
3410
+ /** WebAuthn user verification level */
3411
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3412
+ /** SIWE Ethereum chain ID */
3413
+ chainId: z.ZodOptional<z.ZodNumber>;
3414
+ /** SIWE domain */
3415
+ domain: z.ZodOptional<z.ZodString>;
3416
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3417
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3418
+ }, "strip", z.ZodTypeAny, {
3419
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3420
+ provider?: string | undefined;
3421
+ credentialType?: string | undefined;
3422
+ issuer?: string | undefined;
3423
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3424
+ rpId?: string | undefined;
3425
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3426
+ chainId?: number | undefined;
3427
+ domain?: string | undefined;
3428
+ verifiedAt?: number | undefined;
3429
+ }, {
3430
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3431
+ provider?: string | undefined;
3432
+ credentialType?: string | undefined;
3433
+ issuer?: string | undefined;
3434
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3435
+ rpId?: string | undefined;
3436
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3437
+ chainId?: number | undefined;
3438
+ domain?: string | undefined;
3439
+ verifiedAt?: number | undefined;
3440
+ }>>;
3441
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3442
+ /** Authorization info - how identity was verified during consent */
3443
+ authorization: z.ZodOptional<z.ZodObject<{
3444
+ /**
3445
+ * The authorization method used during consent
3446
+ *
3447
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3448
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3449
+ * - 'password': Password/credential authentication
3450
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3451
+ * - 'verifiable_credential': W3C Verifiable Credential
3452
+ * - 'mdl': Mobile Driver's License
3453
+ * - 'idv': Identity Verification
3454
+ * - 'webauthn': WebAuthn/Passkey authentication
3455
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3456
+ * - 'none': Consent-only (no authentication)
3457
+ */
3458
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3459
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3460
+ provider: z.ZodOptional<z.ZodString>;
3461
+ /** Credential type for verifiable_credential or mdl auth */
3462
+ credentialType: z.ZodOptional<z.ZodString>;
3463
+ /** MDL issuer DID or identifier */
3464
+ issuer: z.ZodOptional<z.ZodString>;
3465
+ /** IDV verification level */
3466
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3467
+ /** WebAuthn Relying Party ID */
3468
+ rpId: z.ZodOptional<z.ZodString>;
3469
+ /** WebAuthn user verification level */
3470
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3471
+ /** SIWE Ethereum chain ID */
3472
+ chainId: z.ZodOptional<z.ZodNumber>;
3473
+ /** SIWE domain */
3474
+ domain: z.ZodOptional<z.ZodString>;
3475
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3476
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3477
+ }, "strip", z.ZodTypeAny, {
3478
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3479
+ provider?: string | undefined;
3480
+ credentialType?: string | undefined;
3481
+ issuer?: string | undefined;
3482
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3483
+ rpId?: string | undefined;
3484
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3485
+ chainId?: number | undefined;
3486
+ domain?: string | undefined;
3487
+ verifiedAt?: number | undefined;
3488
+ }, {
3489
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3490
+ provider?: string | undefined;
3491
+ credentialType?: string | undefined;
3492
+ issuer?: string | undefined;
3493
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3494
+ rpId?: string | undefined;
3495
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3496
+ chainId?: number | undefined;
3497
+ domain?: string | undefined;
3498
+ verifiedAt?: number | undefined;
3499
+ }>>;
3500
+ }, z.ZodTypeAny, "passthrough">>>;
3073
3501
  }, "strip", z.ZodTypeAny, {
3074
3502
  valid: boolean;
3075
3503
  status: "active" | "revoked" | "expired";
3076
- verifiedAt: number;
3077
3504
  delegationId: string;
3078
- details?: Record<string, any> | undefined;
3505
+ verifiedAt: number;
3079
3506
  reason?: string | undefined;
3080
3507
  credentialValid?: boolean | undefined;
3081
3508
  chainValid?: boolean | undefined;
3509
+ details?: z.objectOutputType<{
3510
+ /** Authorization info - how identity was verified during consent */
3511
+ authorization: z.ZodOptional<z.ZodObject<{
3512
+ /**
3513
+ * The authorization method used during consent
3514
+ *
3515
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3516
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3517
+ * - 'password': Password/credential authentication
3518
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3519
+ * - 'verifiable_credential': W3C Verifiable Credential
3520
+ * - 'mdl': Mobile Driver's License
3521
+ * - 'idv': Identity Verification
3522
+ * - 'webauthn': WebAuthn/Passkey authentication
3523
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3524
+ * - 'none': Consent-only (no authentication)
3525
+ */
3526
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3527
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3528
+ provider: z.ZodOptional<z.ZodString>;
3529
+ /** Credential type for verifiable_credential or mdl auth */
3530
+ credentialType: z.ZodOptional<z.ZodString>;
3531
+ /** MDL issuer DID or identifier */
3532
+ issuer: z.ZodOptional<z.ZodString>;
3533
+ /** IDV verification level */
3534
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3535
+ /** WebAuthn Relying Party ID */
3536
+ rpId: z.ZodOptional<z.ZodString>;
3537
+ /** WebAuthn user verification level */
3538
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3539
+ /** SIWE Ethereum chain ID */
3540
+ chainId: z.ZodOptional<z.ZodNumber>;
3541
+ /** SIWE domain */
3542
+ domain: z.ZodOptional<z.ZodString>;
3543
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3544
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3545
+ }, "strip", z.ZodTypeAny, {
3546
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3547
+ provider?: string | undefined;
3548
+ credentialType?: string | undefined;
3549
+ issuer?: string | undefined;
3550
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3551
+ rpId?: string | undefined;
3552
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3553
+ chainId?: number | undefined;
3554
+ domain?: string | undefined;
3555
+ verifiedAt?: number | undefined;
3556
+ }, {
3557
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3558
+ provider?: string | undefined;
3559
+ credentialType?: string | undefined;
3560
+ issuer?: string | undefined;
3561
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3562
+ rpId?: string | undefined;
3563
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3564
+ chainId?: number | undefined;
3565
+ domain?: string | undefined;
3566
+ verifiedAt?: number | undefined;
3567
+ }>>;
3568
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3082
3569
  }, {
3083
3570
  valid: boolean;
3084
3571
  status: "active" | "revoked" | "expired";
3085
- verifiedAt: number;
3086
3572
  delegationId: string;
3087
- details?: Record<string, any> | undefined;
3573
+ verifiedAt: number;
3088
3574
  reason?: string | undefined;
3089
3575
  credentialValid?: boolean | undefined;
3090
3576
  chainValid?: boolean | undefined;
3577
+ details?: z.objectInputType<{
3578
+ /** Authorization info - how identity was verified during consent */
3579
+ authorization: z.ZodOptional<z.ZodObject<{
3580
+ /**
3581
+ * The authorization method used during consent
3582
+ *
3583
+ * - 'oauth2': OAuth 2.0 provider authentication (canonical)
3584
+ * - 'oauth': Deprecated, use 'oauth2' (will be removed in v2.0.0)
3585
+ * - 'password': Password/credential authentication
3586
+ * - 'credential': Deprecated, use 'verifiable_credential' (will be removed in v2.0.0)
3587
+ * - 'verifiable_credential': W3C Verifiable Credential
3588
+ * - 'mdl': Mobile Driver's License
3589
+ * - 'idv': Identity Verification
3590
+ * - 'webauthn': WebAuthn/Passkey authentication
3591
+ * - 'siwe': Sign-In with Ethereum (EIP-4361)
3592
+ * - 'none': Consent-only (no authentication)
3593
+ */
3594
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "verifiable_credential", "mdl", "idv", "webauthn", "siwe", "none"]>;
3595
+ /** OAuth/Password/IDV provider name (e.g., 'github', 'google', 'credentials') */
3596
+ provider: z.ZodOptional<z.ZodString>;
3597
+ /** Credential type for verifiable_credential or mdl auth */
3598
+ credentialType: z.ZodOptional<z.ZodString>;
3599
+ /** MDL issuer DID or identifier */
3600
+ issuer: z.ZodOptional<z.ZodString>;
3601
+ /** IDV verification level */
3602
+ verificationLevel: z.ZodOptional<z.ZodEnum<["basic", "enhanced", "loa3"]>>;
3603
+ /** WebAuthn Relying Party ID */
3604
+ rpId: z.ZodOptional<z.ZodString>;
3605
+ /** WebAuthn user verification level */
3606
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
3607
+ /** SIWE Ethereum chain ID */
3608
+ chainId: z.ZodOptional<z.ZodNumber>;
3609
+ /** SIWE domain */
3610
+ domain: z.ZodOptional<z.ZodString>;
3611
+ /** Timestamp when authorization was verified (milliseconds since epoch) */
3612
+ verifiedAt: z.ZodOptional<z.ZodNumber>;
3613
+ }, "strip", z.ZodTypeAny, {
3614
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3615
+ provider?: string | undefined;
3616
+ credentialType?: string | undefined;
3617
+ issuer?: string | undefined;
3618
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3619
+ rpId?: string | undefined;
3620
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3621
+ chainId?: number | undefined;
3622
+ domain?: string | undefined;
3623
+ verifiedAt?: number | undefined;
3624
+ }, {
3625
+ type: "oauth" | "oauth2" | "password" | "credential" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
3626
+ provider?: string | undefined;
3627
+ credentialType?: string | undefined;
3628
+ issuer?: string | undefined;
3629
+ verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
3630
+ rpId?: string | undefined;
3631
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
3632
+ chainId?: number | undefined;
3633
+ domain?: string | undefined;
3634
+ verifiedAt?: number | undefined;
3635
+ }>>;
3636
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3091
3637
  }>;
3092
3638
  export type DelegationVerificationResult = z.infer<typeof DelegationVerificationResultSchema>;
3093
3639
  /**
@@ -3958,12 +4504,15 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
3958
4504
  rootIssuer: string;
3959
4505
  leafSubject: string;
3960
4506
  chain: {
4507
+ issuerDid: string;
4508
+ subjectDid: string;
4509
+ vcId: string;
3961
4510
  status: "active" | "revoked" | "expired";
3962
4511
  constraints: {
3963
- scopes?: string[] | undefined;
3964
- audience?: string | string[] | undefined;
3965
4512
  notBefore?: number | undefined;
3966
4513
  notAfter?: number | undefined;
4514
+ scopes?: string[] | undefined;
4515
+ audience?: string | string[] | undefined;
3967
4516
  crisp?: z.objectInputType<{
3968
4517
  budget: z.ZodOptional<z.ZodObject<{
3969
4518
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4010,9 +4559,6 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
4010
4559
  } & {
4011
4560
  [k: string]: unknown;
4012
4561
  };
4013
- issuerDid: string;
4014
- subjectDid: string;
4015
- vcId: string;
4016
4562
  delegationId: string;
4017
4563
  depth: number;
4018
4564
  }[];
@@ -4023,12 +4569,15 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
4023
4569
  rootIssuer: string;
4024
4570
  leafSubject: string;
4025
4571
  chain: {
4572
+ issuerDid: string;
4573
+ subjectDid: string;
4574
+ vcId: string;
4026
4575
  status: "active" | "revoked" | "expired";
4027
4576
  constraints: {
4028
- scopes?: string[] | undefined;
4029
- audience?: string | string[] | undefined;
4030
4577
  notBefore?: number | undefined;
4031
4578
  notAfter?: number | undefined;
4579
+ scopes?: string[] | undefined;
4580
+ audience?: string | string[] | undefined;
4032
4581
  crisp?: z.objectOutputType<{
4033
4582
  budget: z.ZodOptional<z.ZodObject<{
4034
4583
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4075,9 +4624,6 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
4075
4624
  } & {
4076
4625
  [k: string]: unknown;
4077
4626
  };
4078
- issuerDid: string;
4079
- subjectDid: string;
4080
- vcId: string;
4081
4627
  delegationId: string;
4082
4628
  depth: number;
4083
4629
  }[];
@@ -4555,13 +5101,15 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4555
5101
  /** Optional metadata */
4556
5102
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4557
5103
  }, "strip", z.ZodTypeAny, {
4558
- status: "active" | "revoked" | "expired";
4559
5104
  id: string;
5105
+ issuerDid: string;
5106
+ subjectDid: string;
5107
+ status: "active" | "revoked" | "expired";
4560
5108
  constraints: {
4561
- scopes?: string[] | undefined;
4562
- audience?: string | string[] | undefined;
4563
5109
  notBefore?: number | undefined;
4564
5110
  notAfter?: number | undefined;
5111
+ scopes?: string[] | undefined;
5112
+ audience?: string | string[] | undefined;
4565
5113
  crisp?: z.objectOutputType<{
4566
5114
  budget: z.ZodOptional<z.ZodObject<{
4567
5115
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4608,19 +5156,19 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4608
5156
  } & {
4609
5157
  [k: string]: unknown;
4610
5158
  };
4611
- issuerDid: string;
4612
- subjectDid: string;
4613
- metadata?: Record<string, any> | undefined;
4614
- createdAt?: number | undefined;
4615
5159
  controller?: string | undefined;
4616
5160
  parentId?: string | undefined;
5161
+ createdAt?: number | undefined;
5162
+ metadata?: Record<string, any> | undefined;
4617
5163
  }, {
4618
5164
  id: string;
5165
+ issuerDid: string;
5166
+ subjectDid: string;
4619
5167
  constraints: {
4620
- scopes?: string[] | undefined;
4621
- audience?: string | string[] | undefined;
4622
5168
  notBefore?: number | undefined;
4623
5169
  notAfter?: number | undefined;
5170
+ scopes?: string[] | undefined;
5171
+ audience?: string | string[] | undefined;
4624
5172
  crisp?: z.objectInputType<{
4625
5173
  budget: z.ZodOptional<z.ZodObject<{
4626
5174
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4667,23 +5215,24 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4667
5215
  } & {
4668
5216
  [k: string]: unknown;
4669
5217
  };
4670
- issuerDid: string;
4671
- subjectDid: string;
4672
- status?: "active" | "revoked" | "expired" | undefined;
4673
- metadata?: Record<string, any> | undefined;
4674
- createdAt?: number | undefined;
4675
5218
  controller?: string | undefined;
4676
5219
  parentId?: string | undefined;
5220
+ status?: "active" | "revoked" | "expired" | undefined;
5221
+ createdAt?: number | undefined;
5222
+ metadata?: Record<string, any> | undefined;
4677
5223
  }>;
4678
5224
  }, "strip", z.ZodTypeAny, {
5225
+ id: string;
4679
5226
  delegation: {
4680
- status: "active" | "revoked" | "expired";
4681
5227
  id: string;
5228
+ issuerDid: string;
5229
+ subjectDid: string;
5230
+ status: "active" | "revoked" | "expired";
4682
5231
  constraints: {
4683
- scopes?: string[] | undefined;
4684
- audience?: string | string[] | undefined;
4685
5232
  notBefore?: number | undefined;
4686
5233
  notAfter?: number | undefined;
5234
+ scopes?: string[] | undefined;
5235
+ audience?: string | string[] | undefined;
4687
5236
  crisp?: z.objectOutputType<{
4688
5237
  budget: z.ZodOptional<z.ZodObject<{
4689
5238
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4730,22 +5279,22 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4730
5279
  } & {
4731
5280
  [k: string]: unknown;
4732
5281
  };
4733
- issuerDid: string;
4734
- subjectDid: string;
4735
- metadata?: Record<string, any> | undefined;
4736
- createdAt?: number | undefined;
4737
5282
  controller?: string | undefined;
4738
5283
  parentId?: string | undefined;
5284
+ createdAt?: number | undefined;
5285
+ metadata?: Record<string, any> | undefined;
4739
5286
  };
4740
- id: string;
4741
5287
  }, {
5288
+ id: string;
4742
5289
  delegation: {
4743
5290
  id: string;
5291
+ issuerDid: string;
5292
+ subjectDid: string;
4744
5293
  constraints: {
4745
- scopes?: string[] | undefined;
4746
- audience?: string | string[] | undefined;
4747
5294
  notBefore?: number | undefined;
4748
5295
  notAfter?: number | undefined;
5296
+ scopes?: string[] | undefined;
5297
+ audience?: string | string[] | undefined;
4749
5298
  crisp?: z.objectInputType<{
4750
5299
  budget: z.ZodOptional<z.ZodObject<{
4751
5300
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4792,15 +5341,12 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4792
5341
  } & {
4793
5342
  [k: string]: unknown;
4794
5343
  };
4795
- issuerDid: string;
4796
- subjectDid: string;
4797
- status?: "active" | "revoked" | "expired" | undefined;
4798
- metadata?: Record<string, any> | undefined;
4799
- createdAt?: number | undefined;
4800
5344
  controller?: string | undefined;
4801
5345
  parentId?: string | undefined;
5346
+ status?: "active" | "revoked" | "expired" | undefined;
5347
+ createdAt?: number | undefined;
5348
+ metadata?: Record<string, any> | undefined;
4802
5349
  };
4803
- id: string;
4804
5350
  }>;
4805
5351
  export type DelegationCredentialSubject = z.infer<typeof DelegationCredentialSubjectSchema>;
4806
5352
  /**
@@ -5260,13 +5806,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5260
5806
  /** Optional metadata */
5261
5807
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5262
5808
  }, "strip", z.ZodTypeAny, {
5263
- status: "active" | "revoked" | "expired";
5264
5809
  id: string;
5810
+ issuerDid: string;
5811
+ subjectDid: string;
5812
+ status: "active" | "revoked" | "expired";
5265
5813
  constraints: {
5266
- scopes?: string[] | undefined;
5267
- audience?: string | string[] | undefined;
5268
5814
  notBefore?: number | undefined;
5269
5815
  notAfter?: number | undefined;
5816
+ scopes?: string[] | undefined;
5817
+ audience?: string | string[] | undefined;
5270
5818
  crisp?: z.objectOutputType<{
5271
5819
  budget: z.ZodOptional<z.ZodObject<{
5272
5820
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5313,19 +5861,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5313
5861
  } & {
5314
5862
  [k: string]: unknown;
5315
5863
  };
5316
- issuerDid: string;
5317
- subjectDid: string;
5318
- metadata?: Record<string, any> | undefined;
5319
- createdAt?: number | undefined;
5320
5864
  controller?: string | undefined;
5321
5865
  parentId?: string | undefined;
5866
+ createdAt?: number | undefined;
5867
+ metadata?: Record<string, any> | undefined;
5322
5868
  }, {
5323
5869
  id: string;
5870
+ issuerDid: string;
5871
+ subjectDid: string;
5324
5872
  constraints: {
5325
- scopes?: string[] | undefined;
5326
- audience?: string | string[] | undefined;
5327
5873
  notBefore?: number | undefined;
5328
5874
  notAfter?: number | undefined;
5875
+ scopes?: string[] | undefined;
5876
+ audience?: string | string[] | undefined;
5329
5877
  crisp?: z.objectInputType<{
5330
5878
  budget: z.ZodOptional<z.ZodObject<{
5331
5879
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5372,23 +5920,24 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5372
5920
  } & {
5373
5921
  [k: string]: unknown;
5374
5922
  };
5375
- issuerDid: string;
5376
- subjectDid: string;
5377
- status?: "active" | "revoked" | "expired" | undefined;
5378
- metadata?: Record<string, any> | undefined;
5379
- createdAt?: number | undefined;
5380
5923
  controller?: string | undefined;
5381
5924
  parentId?: string | undefined;
5925
+ status?: "active" | "revoked" | "expired" | undefined;
5926
+ createdAt?: number | undefined;
5927
+ metadata?: Record<string, any> | undefined;
5382
5928
  }>;
5383
5929
  }, "strip", z.ZodTypeAny, {
5930
+ id: string;
5384
5931
  delegation: {
5385
- status: "active" | "revoked" | "expired";
5386
5932
  id: string;
5933
+ issuerDid: string;
5934
+ subjectDid: string;
5935
+ status: "active" | "revoked" | "expired";
5387
5936
  constraints: {
5388
- scopes?: string[] | undefined;
5389
- audience?: string | string[] | undefined;
5390
5937
  notBefore?: number | undefined;
5391
5938
  notAfter?: number | undefined;
5939
+ scopes?: string[] | undefined;
5940
+ audience?: string | string[] | undefined;
5392
5941
  crisp?: z.objectOutputType<{
5393
5942
  budget: z.ZodOptional<z.ZodObject<{
5394
5943
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5435,22 +5984,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5435
5984
  } & {
5436
5985
  [k: string]: unknown;
5437
5986
  };
5438
- issuerDid: string;
5439
- subjectDid: string;
5440
- metadata?: Record<string, any> | undefined;
5441
- createdAt?: number | undefined;
5442
5987
  controller?: string | undefined;
5443
5988
  parentId?: string | undefined;
5989
+ createdAt?: number | undefined;
5990
+ metadata?: Record<string, any> | undefined;
5444
5991
  };
5445
- id: string;
5446
5992
  }, {
5993
+ id: string;
5447
5994
  delegation: {
5448
5995
  id: string;
5996
+ issuerDid: string;
5997
+ subjectDid: string;
5449
5998
  constraints: {
5450
- scopes?: string[] | undefined;
5451
- audience?: string | string[] | undefined;
5452
5999
  notBefore?: number | undefined;
5453
6000
  notAfter?: number | undefined;
6001
+ scopes?: string[] | undefined;
6002
+ audience?: string | string[] | undefined;
5454
6003
  crisp?: z.objectInputType<{
5455
6004
  budget: z.ZodOptional<z.ZodObject<{
5456
6005
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5497,15 +6046,12 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5497
6046
  } & {
5498
6047
  [k: string]: unknown;
5499
6048
  };
5500
- issuerDid: string;
5501
- subjectDid: string;
5502
- status?: "active" | "revoked" | "expired" | undefined;
5503
- metadata?: Record<string, any> | undefined;
5504
- createdAt?: number | undefined;
5505
6049
  controller?: string | undefined;
5506
6050
  parentId?: string | undefined;
6051
+ status?: "active" | "revoked" | "expired" | undefined;
6052
+ createdAt?: number | undefined;
6053
+ metadata?: Record<string, any> | undefined;
5507
6054
  };
5508
- id: string;
5509
6055
  }>;
5510
6056
  credentialStatus: z.ZodOptional<z.ZodObject<{
5511
6057
  id: z.ZodString;
@@ -5514,14 +6060,14 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5514
6060
  statusListIndex: z.ZodString;
5515
6061
  statusListCredential: z.ZodString;
5516
6062
  }, "strip", z.ZodTypeAny, {
5517
- type: "StatusList2021Entry";
5518
6063
  id: string;
6064
+ type: "StatusList2021Entry";
5519
6065
  statusPurpose: "revocation" | "suspension";
5520
6066
  statusListIndex: string;
5521
6067
  statusListCredential: string;
5522
6068
  }, {
5523
- type: "StatusList2021Entry";
5524
6069
  id: string;
6070
+ type: "StatusList2021Entry";
5525
6071
  statusPurpose: "revocation" | "suspension";
5526
6072
  statusListIndex: string;
5527
6073
  statusListCredential: string;
@@ -5976,13 +6522,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5976
6522
  /** Optional metadata */
5977
6523
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5978
6524
  }, "strip", z.ZodTypeAny, {
5979
- status: "active" | "revoked" | "expired";
5980
6525
  id: string;
6526
+ issuerDid: string;
6527
+ subjectDid: string;
6528
+ status: "active" | "revoked" | "expired";
5981
6529
  constraints: {
5982
- scopes?: string[] | undefined;
5983
- audience?: string | string[] | undefined;
5984
6530
  notBefore?: number | undefined;
5985
6531
  notAfter?: number | undefined;
6532
+ scopes?: string[] | undefined;
6533
+ audience?: string | string[] | undefined;
5986
6534
  crisp?: z.objectOutputType<{
5987
6535
  budget: z.ZodOptional<z.ZodObject<{
5988
6536
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6029,19 +6577,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6029
6577
  } & {
6030
6578
  [k: string]: unknown;
6031
6579
  };
6032
- issuerDid: string;
6033
- subjectDid: string;
6034
- metadata?: Record<string, any> | undefined;
6035
- createdAt?: number | undefined;
6036
6580
  controller?: string | undefined;
6037
6581
  parentId?: string | undefined;
6582
+ createdAt?: number | undefined;
6583
+ metadata?: Record<string, any> | undefined;
6038
6584
  }, {
6039
6585
  id: string;
6586
+ issuerDid: string;
6587
+ subjectDid: string;
6040
6588
  constraints: {
6041
- scopes?: string[] | undefined;
6042
- audience?: string | string[] | undefined;
6043
6589
  notBefore?: number | undefined;
6044
6590
  notAfter?: number | undefined;
6591
+ scopes?: string[] | undefined;
6592
+ audience?: string | string[] | undefined;
6045
6593
  crisp?: z.objectInputType<{
6046
6594
  budget: z.ZodOptional<z.ZodObject<{
6047
6595
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6088,23 +6636,24 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6088
6636
  } & {
6089
6637
  [k: string]: unknown;
6090
6638
  };
6091
- issuerDid: string;
6092
- subjectDid: string;
6093
- status?: "active" | "revoked" | "expired" | undefined;
6094
- metadata?: Record<string, any> | undefined;
6095
- createdAt?: number | undefined;
6096
6639
  controller?: string | undefined;
6097
6640
  parentId?: string | undefined;
6641
+ status?: "active" | "revoked" | "expired" | undefined;
6642
+ createdAt?: number | undefined;
6643
+ metadata?: Record<string, any> | undefined;
6098
6644
  }>;
6099
6645
  }, "strip", z.ZodTypeAny, {
6646
+ id: string;
6100
6647
  delegation: {
6101
- status: "active" | "revoked" | "expired";
6102
6648
  id: string;
6649
+ issuerDid: string;
6650
+ subjectDid: string;
6651
+ status: "active" | "revoked" | "expired";
6103
6652
  constraints: {
6104
- scopes?: string[] | undefined;
6105
- audience?: string | string[] | undefined;
6106
6653
  notBefore?: number | undefined;
6107
6654
  notAfter?: number | undefined;
6655
+ scopes?: string[] | undefined;
6656
+ audience?: string | string[] | undefined;
6108
6657
  crisp?: z.objectOutputType<{
6109
6658
  budget: z.ZodOptional<z.ZodObject<{
6110
6659
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6151,22 +6700,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6151
6700
  } & {
6152
6701
  [k: string]: unknown;
6153
6702
  };
6154
- issuerDid: string;
6155
- subjectDid: string;
6156
- metadata?: Record<string, any> | undefined;
6157
- createdAt?: number | undefined;
6158
6703
  controller?: string | undefined;
6159
6704
  parentId?: string | undefined;
6705
+ createdAt?: number | undefined;
6706
+ metadata?: Record<string, any> | undefined;
6160
6707
  };
6161
- id: string;
6162
6708
  }, {
6709
+ id: string;
6163
6710
  delegation: {
6164
6711
  id: string;
6712
+ issuerDid: string;
6713
+ subjectDid: string;
6165
6714
  constraints: {
6166
- scopes?: string[] | undefined;
6167
- audience?: string | string[] | undefined;
6168
6715
  notBefore?: number | undefined;
6169
6716
  notAfter?: number | undefined;
6717
+ scopes?: string[] | undefined;
6718
+ audience?: string | string[] | undefined;
6170
6719
  crisp?: z.objectInputType<{
6171
6720
  budget: z.ZodOptional<z.ZodObject<{
6172
6721
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6213,15 +6762,12 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6213
6762
  } & {
6214
6763
  [k: string]: unknown;
6215
6764
  };
6216
- issuerDid: string;
6217
- subjectDid: string;
6218
- status?: "active" | "revoked" | "expired" | undefined;
6219
- metadata?: Record<string, any> | undefined;
6220
- createdAt?: number | undefined;
6221
6765
  controller?: string | undefined;
6222
6766
  parentId?: string | undefined;
6767
+ status?: "active" | "revoked" | "expired" | undefined;
6768
+ createdAt?: number | undefined;
6769
+ metadata?: Record<string, any> | undefined;
6223
6770
  };
6224
- id: string;
6225
6771
  }>;
6226
6772
  credentialStatus: z.ZodOptional<z.ZodObject<{
6227
6773
  id: z.ZodString;
@@ -6230,14 +6776,14 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6230
6776
  statusListIndex: z.ZodString;
6231
6777
  statusListCredential: z.ZodString;
6232
6778
  }, "strip", z.ZodTypeAny, {
6233
- type: "StatusList2021Entry";
6234
6779
  id: string;
6780
+ type: "StatusList2021Entry";
6235
6781
  statusPurpose: "revocation" | "suspension";
6236
6782
  statusListIndex: string;
6237
6783
  statusListCredential: string;
6238
6784
  }, {
6239
- type: "StatusList2021Entry";
6240
6785
  id: string;
6786
+ type: "StatusList2021Entry";
6241
6787
  statusPurpose: "revocation" | "suspension";
6242
6788
  statusListIndex: string;
6243
6789
  statusListCredential: string;
@@ -6692,13 +7238,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6692
7238
  /** Optional metadata */
6693
7239
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6694
7240
  }, "strip", z.ZodTypeAny, {
6695
- status: "active" | "revoked" | "expired";
6696
7241
  id: string;
7242
+ issuerDid: string;
7243
+ subjectDid: string;
7244
+ status: "active" | "revoked" | "expired";
6697
7245
  constraints: {
6698
- scopes?: string[] | undefined;
6699
- audience?: string | string[] | undefined;
6700
7246
  notBefore?: number | undefined;
6701
7247
  notAfter?: number | undefined;
7248
+ scopes?: string[] | undefined;
7249
+ audience?: string | string[] | undefined;
6702
7250
  crisp?: z.objectOutputType<{
6703
7251
  budget: z.ZodOptional<z.ZodObject<{
6704
7252
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6745,19 +7293,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6745
7293
  } & {
6746
7294
  [k: string]: unknown;
6747
7295
  };
6748
- issuerDid: string;
6749
- subjectDid: string;
6750
- metadata?: Record<string, any> | undefined;
6751
- createdAt?: number | undefined;
6752
7296
  controller?: string | undefined;
6753
7297
  parentId?: string | undefined;
7298
+ createdAt?: number | undefined;
7299
+ metadata?: Record<string, any> | undefined;
6754
7300
  }, {
6755
7301
  id: string;
7302
+ issuerDid: string;
7303
+ subjectDid: string;
6756
7304
  constraints: {
6757
- scopes?: string[] | undefined;
6758
- audience?: string | string[] | undefined;
6759
7305
  notBefore?: number | undefined;
6760
7306
  notAfter?: number | undefined;
7307
+ scopes?: string[] | undefined;
7308
+ audience?: string | string[] | undefined;
6761
7309
  crisp?: z.objectInputType<{
6762
7310
  budget: z.ZodOptional<z.ZodObject<{
6763
7311
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6804,23 +7352,24 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6804
7352
  } & {
6805
7353
  [k: string]: unknown;
6806
7354
  };
6807
- issuerDid: string;
6808
- subjectDid: string;
6809
- status?: "active" | "revoked" | "expired" | undefined;
6810
- metadata?: Record<string, any> | undefined;
6811
- createdAt?: number | undefined;
6812
7355
  controller?: string | undefined;
6813
7356
  parentId?: string | undefined;
7357
+ status?: "active" | "revoked" | "expired" | undefined;
7358
+ createdAt?: number | undefined;
7359
+ metadata?: Record<string, any> | undefined;
6814
7360
  }>;
6815
7361
  }, "strip", z.ZodTypeAny, {
7362
+ id: string;
6816
7363
  delegation: {
6817
- status: "active" | "revoked" | "expired";
6818
7364
  id: string;
7365
+ issuerDid: string;
7366
+ subjectDid: string;
7367
+ status: "active" | "revoked" | "expired";
6819
7368
  constraints: {
6820
- scopes?: string[] | undefined;
6821
- audience?: string | string[] | undefined;
6822
7369
  notBefore?: number | undefined;
6823
7370
  notAfter?: number | undefined;
7371
+ scopes?: string[] | undefined;
7372
+ audience?: string | string[] | undefined;
6824
7373
  crisp?: z.objectOutputType<{
6825
7374
  budget: z.ZodOptional<z.ZodObject<{
6826
7375
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6867,22 +7416,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6867
7416
  } & {
6868
7417
  [k: string]: unknown;
6869
7418
  };
6870
- issuerDid: string;
6871
- subjectDid: string;
6872
- metadata?: Record<string, any> | undefined;
6873
- createdAt?: number | undefined;
6874
7419
  controller?: string | undefined;
6875
7420
  parentId?: string | undefined;
7421
+ createdAt?: number | undefined;
7422
+ metadata?: Record<string, any> | undefined;
6876
7423
  };
6877
- id: string;
6878
7424
  }, {
7425
+ id: string;
6879
7426
  delegation: {
6880
7427
  id: string;
7428
+ issuerDid: string;
7429
+ subjectDid: string;
6881
7430
  constraints: {
6882
- scopes?: string[] | undefined;
6883
- audience?: string | string[] | undefined;
6884
7431
  notBefore?: number | undefined;
6885
7432
  notAfter?: number | undefined;
7433
+ scopes?: string[] | undefined;
7434
+ audience?: string | string[] | undefined;
6886
7435
  crisp?: z.objectInputType<{
6887
7436
  budget: z.ZodOptional<z.ZodObject<{
6888
7437
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6929,15 +7478,12 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6929
7478
  } & {
6930
7479
  [k: string]: unknown;
6931
7480
  };
6932
- issuerDid: string;
6933
- subjectDid: string;
6934
- status?: "active" | "revoked" | "expired" | undefined;
6935
- metadata?: Record<string, any> | undefined;
6936
- createdAt?: number | undefined;
6937
7481
  controller?: string | undefined;
6938
7482
  parentId?: string | undefined;
7483
+ status?: "active" | "revoked" | "expired" | undefined;
7484
+ createdAt?: number | undefined;
7485
+ metadata?: Record<string, any> | undefined;
6939
7486
  };
6940
- id: string;
6941
7487
  }>;
6942
7488
  credentialStatus: z.ZodOptional<z.ZodObject<{
6943
7489
  id: z.ZodString;
@@ -6946,14 +7492,14 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6946
7492
  statusListIndex: z.ZodString;
6947
7493
  statusListCredential: z.ZodString;
6948
7494
  }, "strip", z.ZodTypeAny, {
6949
- type: "StatusList2021Entry";
6950
7495
  id: string;
7496
+ type: "StatusList2021Entry";
6951
7497
  statusPurpose: "revocation" | "suspension";
6952
7498
  statusListIndex: string;
6953
7499
  statusListCredential: string;
6954
7500
  }, {
6955
- type: "StatusList2021Entry";
6956
7501
  id: string;
7502
+ type: "StatusList2021Entry";
6957
7503
  statusPurpose: "revocation" | "suspension";
6958
7504
  statusListIndex: string;
6959
7505
  statusListCredential: string;
@@ -7416,13 +7962,15 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7416
7962
  /** Optional metadata */
7417
7963
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7418
7964
  }, "strip", z.ZodTypeAny, {
7419
- status: "active" | "revoked" | "expired";
7420
7965
  id: string;
7966
+ issuerDid: string;
7967
+ subjectDid: string;
7968
+ status: "active" | "revoked" | "expired";
7421
7969
  constraints: {
7422
- scopes?: string[] | undefined;
7423
- audience?: string | string[] | undefined;
7424
7970
  notBefore?: number | undefined;
7425
7971
  notAfter?: number | undefined;
7972
+ scopes?: string[] | undefined;
7973
+ audience?: string | string[] | undefined;
7426
7974
  crisp?: z.objectOutputType<{
7427
7975
  budget: z.ZodOptional<z.ZodObject<{
7428
7976
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7469,19 +8017,19 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7469
8017
  } & {
7470
8018
  [k: string]: unknown;
7471
8019
  };
7472
- issuerDid: string;
7473
- subjectDid: string;
7474
- metadata?: Record<string, any> | undefined;
7475
- createdAt?: number | undefined;
7476
8020
  controller?: string | undefined;
7477
8021
  parentId?: string | undefined;
8022
+ createdAt?: number | undefined;
8023
+ metadata?: Record<string, any> | undefined;
7478
8024
  }, {
7479
8025
  id: string;
8026
+ issuerDid: string;
8027
+ subjectDid: string;
7480
8028
  constraints: {
7481
- scopes?: string[] | undefined;
7482
- audience?: string | string[] | undefined;
7483
8029
  notBefore?: number | undefined;
7484
8030
  notAfter?: number | undefined;
8031
+ scopes?: string[] | undefined;
8032
+ audience?: string | string[] | undefined;
7485
8033
  crisp?: z.objectInputType<{
7486
8034
  budget: z.ZodOptional<z.ZodObject<{
7487
8035
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7528,23 +8076,24 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7528
8076
  } & {
7529
8077
  [k: string]: unknown;
7530
8078
  };
7531
- issuerDid: string;
7532
- subjectDid: string;
7533
- status?: "active" | "revoked" | "expired" | undefined;
7534
- metadata?: Record<string, any> | undefined;
7535
- createdAt?: number | undefined;
7536
8079
  controller?: string | undefined;
7537
8080
  parentId?: string | undefined;
8081
+ status?: "active" | "revoked" | "expired" | undefined;
8082
+ createdAt?: number | undefined;
8083
+ metadata?: Record<string, any> | undefined;
7538
8084
  }>;
7539
8085
  }, "strip", z.ZodTypeAny, {
8086
+ id: string;
7540
8087
  delegation: {
7541
- status: "active" | "revoked" | "expired";
7542
8088
  id: string;
8089
+ issuerDid: string;
8090
+ subjectDid: string;
8091
+ status: "active" | "revoked" | "expired";
7543
8092
  constraints: {
7544
- scopes?: string[] | undefined;
7545
- audience?: string | string[] | undefined;
7546
8093
  notBefore?: number | undefined;
7547
8094
  notAfter?: number | undefined;
8095
+ scopes?: string[] | undefined;
8096
+ audience?: string | string[] | undefined;
7548
8097
  crisp?: z.objectOutputType<{
7549
8098
  budget: z.ZodOptional<z.ZodObject<{
7550
8099
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7591,22 +8140,22 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7591
8140
  } & {
7592
8141
  [k: string]: unknown;
7593
8142
  };
7594
- issuerDid: string;
7595
- subjectDid: string;
7596
- metadata?: Record<string, any> | undefined;
7597
- createdAt?: number | undefined;
7598
8143
  controller?: string | undefined;
7599
8144
  parentId?: string | undefined;
8145
+ createdAt?: number | undefined;
8146
+ metadata?: Record<string, any> | undefined;
7600
8147
  };
7601
- id: string;
7602
8148
  }, {
8149
+ id: string;
7603
8150
  delegation: {
7604
8151
  id: string;
8152
+ issuerDid: string;
8153
+ subjectDid: string;
7605
8154
  constraints: {
7606
- scopes?: string[] | undefined;
7607
- audience?: string | string[] | undefined;
7608
8155
  notBefore?: number | undefined;
7609
8156
  notAfter?: number | undefined;
8157
+ scopes?: string[] | undefined;
8158
+ audience?: string | string[] | undefined;
7610
8159
  crisp?: z.objectInputType<{
7611
8160
  budget: z.ZodOptional<z.ZodObject<{
7612
8161
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7653,15 +8202,12 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7653
8202
  } & {
7654
8203
  [k: string]: unknown;
7655
8204
  };
7656
- issuerDid: string;
7657
- subjectDid: string;
7658
- status?: "active" | "revoked" | "expired" | undefined;
7659
- metadata?: Record<string, any> | undefined;
7660
- createdAt?: number | undefined;
7661
8205
  controller?: string | undefined;
7662
8206
  parentId?: string | undefined;
8207
+ status?: "active" | "revoked" | "expired" | undefined;
8208
+ createdAt?: number | undefined;
8209
+ metadata?: Record<string, any> | undefined;
7663
8210
  };
7664
- id: string;
7665
8211
  }>;
7666
8212
  credentialStatus: z.ZodOptional<z.ZodObject<{
7667
8213
  id: z.ZodString;
@@ -7670,14 +8216,14 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7670
8216
  statusListIndex: z.ZodString;
7671
8217
  statusListCredential: z.ZodString;
7672
8218
  }, "strip", z.ZodTypeAny, {
7673
- type: "StatusList2021Entry";
7674
8219
  id: string;
8220
+ type: "StatusList2021Entry";
7675
8221
  statusPurpose: "revocation" | "suspension";
7676
8222
  statusListIndex: string;
7677
8223
  statusListCredential: string;
7678
8224
  }, {
7679
- type: "StatusList2021Entry";
7680
8225
  id: string;
8226
+ type: "StatusList2021Entry";
7681
8227
  statusPurpose: "revocation" | "suspension";
7682
8228
  statusListIndex: string;
7683
8229
  statusListCredential: string;
@@ -8132,13 +8678,15 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8132
8678
  /** Optional metadata */
8133
8679
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8134
8680
  }, "strip", z.ZodTypeAny, {
8135
- status: "active" | "revoked" | "expired";
8136
8681
  id: string;
8682
+ issuerDid: string;
8683
+ subjectDid: string;
8684
+ status: "active" | "revoked" | "expired";
8137
8685
  constraints: {
8138
- scopes?: string[] | undefined;
8139
- audience?: string | string[] | undefined;
8140
8686
  notBefore?: number | undefined;
8141
8687
  notAfter?: number | undefined;
8688
+ scopes?: string[] | undefined;
8689
+ audience?: string | string[] | undefined;
8142
8690
  crisp?: z.objectOutputType<{
8143
8691
  budget: z.ZodOptional<z.ZodObject<{
8144
8692
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8185,19 +8733,19 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8185
8733
  } & {
8186
8734
  [k: string]: unknown;
8187
8735
  };
8188
- issuerDid: string;
8189
- subjectDid: string;
8190
- metadata?: Record<string, any> | undefined;
8191
- createdAt?: number | undefined;
8192
8736
  controller?: string | undefined;
8193
8737
  parentId?: string | undefined;
8738
+ createdAt?: number | undefined;
8739
+ metadata?: Record<string, any> | undefined;
8194
8740
  }, {
8195
8741
  id: string;
8742
+ issuerDid: string;
8743
+ subjectDid: string;
8196
8744
  constraints: {
8197
- scopes?: string[] | undefined;
8198
- audience?: string | string[] | undefined;
8199
8745
  notBefore?: number | undefined;
8200
8746
  notAfter?: number | undefined;
8747
+ scopes?: string[] | undefined;
8748
+ audience?: string | string[] | undefined;
8201
8749
  crisp?: z.objectInputType<{
8202
8750
  budget: z.ZodOptional<z.ZodObject<{
8203
8751
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8244,23 +8792,24 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8244
8792
  } & {
8245
8793
  [k: string]: unknown;
8246
8794
  };
8247
- issuerDid: string;
8248
- subjectDid: string;
8249
- status?: "active" | "revoked" | "expired" | undefined;
8250
- metadata?: Record<string, any> | undefined;
8251
- createdAt?: number | undefined;
8252
8795
  controller?: string | undefined;
8253
8796
  parentId?: string | undefined;
8797
+ status?: "active" | "revoked" | "expired" | undefined;
8798
+ createdAt?: number | undefined;
8799
+ metadata?: Record<string, any> | undefined;
8254
8800
  }>;
8255
8801
  }, "strip", z.ZodTypeAny, {
8802
+ id: string;
8256
8803
  delegation: {
8257
- status: "active" | "revoked" | "expired";
8258
8804
  id: string;
8805
+ issuerDid: string;
8806
+ subjectDid: string;
8807
+ status: "active" | "revoked" | "expired";
8259
8808
  constraints: {
8260
- scopes?: string[] | undefined;
8261
- audience?: string | string[] | undefined;
8262
8809
  notBefore?: number | undefined;
8263
8810
  notAfter?: number | undefined;
8811
+ scopes?: string[] | undefined;
8812
+ audience?: string | string[] | undefined;
8264
8813
  crisp?: z.objectOutputType<{
8265
8814
  budget: z.ZodOptional<z.ZodObject<{
8266
8815
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8307,22 +8856,22 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8307
8856
  } & {
8308
8857
  [k: string]: unknown;
8309
8858
  };
8310
- issuerDid: string;
8311
- subjectDid: string;
8312
- metadata?: Record<string, any> | undefined;
8313
- createdAt?: number | undefined;
8314
8859
  controller?: string | undefined;
8315
8860
  parentId?: string | undefined;
8861
+ createdAt?: number | undefined;
8862
+ metadata?: Record<string, any> | undefined;
8316
8863
  };
8317
- id: string;
8318
8864
  }, {
8865
+ id: string;
8319
8866
  delegation: {
8320
8867
  id: string;
8868
+ issuerDid: string;
8869
+ subjectDid: string;
8321
8870
  constraints: {
8322
- scopes?: string[] | undefined;
8323
- audience?: string | string[] | undefined;
8324
8871
  notBefore?: number | undefined;
8325
8872
  notAfter?: number | undefined;
8873
+ scopes?: string[] | undefined;
8874
+ audience?: string | string[] | undefined;
8326
8875
  crisp?: z.objectInputType<{
8327
8876
  budget: z.ZodOptional<z.ZodObject<{
8328
8877
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8369,15 +8918,12 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8369
8918
  } & {
8370
8919
  [k: string]: unknown;
8371
8920
  };
8372
- issuerDid: string;
8373
- subjectDid: string;
8374
- status?: "active" | "revoked" | "expired" | undefined;
8375
- metadata?: Record<string, any> | undefined;
8376
- createdAt?: number | undefined;
8377
8921
  controller?: string | undefined;
8378
8922
  parentId?: string | undefined;
8923
+ status?: "active" | "revoked" | "expired" | undefined;
8924
+ createdAt?: number | undefined;
8925
+ metadata?: Record<string, any> | undefined;
8379
8926
  };
8380
- id: string;
8381
8927
  }>;
8382
8928
  credentialStatus: z.ZodOptional<z.ZodObject<{
8383
8929
  id: z.ZodString;
@@ -8386,14 +8932,14 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8386
8932
  statusListIndex: z.ZodString;
8387
8933
  statusListCredential: z.ZodString;
8388
8934
  }, "strip", z.ZodTypeAny, {
8389
- type: "StatusList2021Entry";
8390
8935
  id: string;
8936
+ type: "StatusList2021Entry";
8391
8937
  statusPurpose: "revocation" | "suspension";
8392
8938
  statusListIndex: string;
8393
8939
  statusListCredential: string;
8394
8940
  }, {
8395
- type: "StatusList2021Entry";
8396
8941
  id: string;
8942
+ type: "StatusList2021Entry";
8397
8943
  statusPurpose: "revocation" | "suspension";
8398
8944
  statusListIndex: string;
8399
8945
  statusListCredential: string;