@kya-os/contracts 1.7.17 → 1.7.19
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.
- package/dist/agentshield-api/schemas.d.ts +144 -144
- package/dist/audit/index.d.ts +21 -21
- package/dist/consent/schemas.d.ts +30 -8
- package/dist/consent/schemas.js +20 -0
- package/dist/delegation/schemas.d.ts +336 -336
- package/dist/handshake.d.ts +30 -30
- package/dist/tool-protection/index.js +10 -7
- package/dist/verifier.d.ts +6 -6
- package/package.json +2 -2
|
@@ -1724,15 +1724,12 @@ 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;
|
|
1730
1727
|
status: "active" | "revoked" | "expired";
|
|
1731
1728
|
constraints: {
|
|
1732
|
-
notBefore?: number | undefined;
|
|
1733
|
-
notAfter?: number | undefined;
|
|
1734
1729
|
scopes?: string[] | undefined;
|
|
1735
1730
|
audience?: string | string[] | undefined;
|
|
1731
|
+
notBefore?: number | undefined;
|
|
1732
|
+
notAfter?: number | undefined;
|
|
1736
1733
|
crisp?: z.objectOutputType<{
|
|
1737
1734
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1738
1735
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1779,18 +1776,18 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
|
|
|
1779
1776
|
} & {
|
|
1780
1777
|
[k: string]: unknown;
|
|
1781
1778
|
};
|
|
1782
|
-
delegationId: string;
|
|
1783
|
-
depth: number;
|
|
1784
|
-
}, {
|
|
1785
1779
|
issuerDid: string;
|
|
1786
1780
|
subjectDid: string;
|
|
1787
1781
|
vcId: string;
|
|
1782
|
+
delegationId: string;
|
|
1783
|
+
depth: number;
|
|
1784
|
+
}, {
|
|
1788
1785
|
status: "active" | "revoked" | "expired";
|
|
1789
1786
|
constraints: {
|
|
1790
|
-
notBefore?: number | undefined;
|
|
1791
|
-
notAfter?: number | undefined;
|
|
1792
1787
|
scopes?: string[] | undefined;
|
|
1793
1788
|
audience?: string | string[] | undefined;
|
|
1789
|
+
notBefore?: number | undefined;
|
|
1790
|
+
notAfter?: number | undefined;
|
|
1794
1791
|
crisp?: z.objectInputType<{
|
|
1795
1792
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1796
1793
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1837,6 +1834,9 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
|
|
|
1837
1834
|
} & {
|
|
1838
1835
|
[k: string]: unknown;
|
|
1839
1836
|
};
|
|
1837
|
+
issuerDid: string;
|
|
1838
|
+
subjectDid: string;
|
|
1839
|
+
vcId: string;
|
|
1840
1840
|
delegationId: string;
|
|
1841
1841
|
depth: number;
|
|
1842
1842
|
}>;
|
|
@@ -2264,15 +2264,12 @@ 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;
|
|
2270
2267
|
status: "active" | "revoked" | "expired";
|
|
2271
2268
|
constraints: {
|
|
2272
|
-
notBefore?: number | undefined;
|
|
2273
|
-
notAfter?: number | undefined;
|
|
2274
2269
|
scopes?: string[] | undefined;
|
|
2275
2270
|
audience?: string | string[] | undefined;
|
|
2271
|
+
notBefore?: number | undefined;
|
|
2272
|
+
notAfter?: number | undefined;
|
|
2276
2273
|
crisp?: z.objectOutputType<{
|
|
2277
2274
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2278
2275
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2319,18 +2316,18 @@ export declare const DelegationChainSchema: z.ZodObject<{
|
|
|
2319
2316
|
} & {
|
|
2320
2317
|
[k: string]: unknown;
|
|
2321
2318
|
};
|
|
2322
|
-
delegationId: string;
|
|
2323
|
-
depth: number;
|
|
2324
|
-
}, {
|
|
2325
2319
|
issuerDid: string;
|
|
2326
2320
|
subjectDid: string;
|
|
2327
2321
|
vcId: string;
|
|
2322
|
+
delegationId: string;
|
|
2323
|
+
depth: number;
|
|
2324
|
+
}, {
|
|
2328
2325
|
status: "active" | "revoked" | "expired";
|
|
2329
2326
|
constraints: {
|
|
2330
|
-
notBefore?: number | undefined;
|
|
2331
|
-
notAfter?: number | undefined;
|
|
2332
2327
|
scopes?: string[] | undefined;
|
|
2333
2328
|
audience?: string | string[] | undefined;
|
|
2329
|
+
notBefore?: number | undefined;
|
|
2330
|
+
notAfter?: number | undefined;
|
|
2334
2331
|
crisp?: z.objectInputType<{
|
|
2335
2332
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2336
2333
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2377,6 +2374,9 @@ export declare const DelegationChainSchema: z.ZodObject<{
|
|
|
2377
2374
|
} & {
|
|
2378
2375
|
[k: string]: unknown;
|
|
2379
2376
|
};
|
|
2377
|
+
issuerDid: string;
|
|
2378
|
+
subjectDid: string;
|
|
2379
|
+
vcId: string;
|
|
2380
2380
|
delegationId: string;
|
|
2381
2381
|
depth: number;
|
|
2382
2382
|
}>, "many">;
|
|
@@ -2392,15 +2392,12 @@ 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;
|
|
2398
2395
|
status: "active" | "revoked" | "expired";
|
|
2399
2396
|
constraints: {
|
|
2400
|
-
notBefore?: number | undefined;
|
|
2401
|
-
notAfter?: number | undefined;
|
|
2402
2397
|
scopes?: string[] | undefined;
|
|
2403
2398
|
audience?: string | string[] | undefined;
|
|
2399
|
+
notBefore?: number | undefined;
|
|
2400
|
+
notAfter?: number | undefined;
|
|
2404
2401
|
crisp?: z.objectOutputType<{
|
|
2405
2402
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2406
2403
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2447,6 +2444,9 @@ export declare const DelegationChainSchema: z.ZodObject<{
|
|
|
2447
2444
|
} & {
|
|
2448
2445
|
[k: string]: unknown;
|
|
2449
2446
|
};
|
|
2447
|
+
issuerDid: string;
|
|
2448
|
+
subjectDid: string;
|
|
2449
|
+
vcId: string;
|
|
2450
2450
|
delegationId: string;
|
|
2451
2451
|
depth: number;
|
|
2452
2452
|
}[];
|
|
@@ -2457,15 +2457,12 @@ 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;
|
|
2463
2460
|
status: "active" | "revoked" | "expired";
|
|
2464
2461
|
constraints: {
|
|
2465
|
-
notBefore?: number | undefined;
|
|
2466
|
-
notAfter?: number | undefined;
|
|
2467
2462
|
scopes?: string[] | undefined;
|
|
2468
2463
|
audience?: string | string[] | undefined;
|
|
2464
|
+
notBefore?: number | undefined;
|
|
2465
|
+
notAfter?: number | undefined;
|
|
2469
2466
|
crisp?: z.objectInputType<{
|
|
2470
2467
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2471
2468
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2512,6 +2509,9 @@ export declare const DelegationChainSchema: z.ZodObject<{
|
|
|
2512
2509
|
} & {
|
|
2513
2510
|
[k: string]: unknown;
|
|
2514
2511
|
};
|
|
2512
|
+
issuerDid: string;
|
|
2513
|
+
subjectDid: string;
|
|
2514
|
+
vcId: string;
|
|
2515
2515
|
delegationId: string;
|
|
2516
2516
|
depth: number;
|
|
2517
2517
|
}[];
|
|
@@ -2933,13 +2933,11 @@ 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;
|
|
2938
2936
|
constraints: {
|
|
2939
|
-
notBefore?: number | undefined;
|
|
2940
|
-
notAfter?: number | undefined;
|
|
2941
2937
|
scopes?: string[] | undefined;
|
|
2942
2938
|
audience?: string | string[] | undefined;
|
|
2939
|
+
notBefore?: number | undefined;
|
|
2940
|
+
notAfter?: number | undefined;
|
|
2943
2941
|
crisp?: z.objectOutputType<{
|
|
2944
2942
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2945
2943
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2986,17 +2984,17 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
|
|
|
2986
2984
|
} & {
|
|
2987
2985
|
[k: string]: unknown;
|
|
2988
2986
|
};
|
|
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;
|
|
2995
2993
|
constraints: {
|
|
2996
|
-
notBefore?: number | undefined;
|
|
2997
|
-
notAfter?: number | undefined;
|
|
2998
2994
|
scopes?: string[] | undefined;
|
|
2999
2995
|
audience?: string | string[] | undefined;
|
|
2996
|
+
notBefore?: number | undefined;
|
|
2997
|
+
notAfter?: number | undefined;
|
|
3000
2998
|
crisp?: z.objectInputType<{
|
|
3001
2999
|
budget: z.ZodOptional<z.ZodObject<{
|
|
3002
3000
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -3043,6 +3041,8 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
|
|
|
3043
3041
|
} & {
|
|
3044
3042
|
[k: string]: unknown;
|
|
3045
3043
|
};
|
|
3044
|
+
issuerDid: string;
|
|
3045
|
+
subjectDid: string;
|
|
3046
3046
|
controller?: string | undefined;
|
|
3047
3047
|
vcId?: string | undefined;
|
|
3048
3048
|
parentId?: string | undefined;
|
|
@@ -3092,27 +3092,27 @@ export declare const AuthorizationInfoSchema: z.ZodObject<{
|
|
|
3092
3092
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3093
3093
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3094
3094
|
}, "strip", z.ZodTypeAny, {
|
|
3095
|
-
type: "
|
|
3095
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3096
3096
|
provider?: string | undefined;
|
|
3097
|
-
|
|
3097
|
+
verifiedAt?: number | undefined;
|
|
3098
3098
|
issuer?: string | undefined;
|
|
3099
|
+
credentialType?: string | undefined;
|
|
3099
3100
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3100
3101
|
rpId?: string | undefined;
|
|
3101
3102
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3102
3103
|
chainId?: number | undefined;
|
|
3103
3104
|
domain?: string | undefined;
|
|
3104
|
-
verifiedAt?: number | undefined;
|
|
3105
3105
|
}, {
|
|
3106
|
-
type: "
|
|
3106
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3107
3107
|
provider?: string | undefined;
|
|
3108
|
-
|
|
3108
|
+
verifiedAt?: number | undefined;
|
|
3109
3109
|
issuer?: string | undefined;
|
|
3110
|
+
credentialType?: string | undefined;
|
|
3110
3111
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3111
3112
|
rpId?: string | undefined;
|
|
3112
3113
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3113
3114
|
chainId?: number | undefined;
|
|
3114
3115
|
domain?: string | undefined;
|
|
3115
|
-
verifiedAt?: number | undefined;
|
|
3116
3116
|
}>;
|
|
3117
3117
|
export type AuthorizationInfo = z.infer<typeof AuthorizationInfoSchema>;
|
|
3118
3118
|
/**
|
|
@@ -3157,27 +3157,27 @@ export declare const DelegationVerificationDetailsSchema: z.ZodObject<{
|
|
|
3157
3157
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3158
3158
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3159
3159
|
}, "strip", z.ZodTypeAny, {
|
|
3160
|
-
type: "
|
|
3160
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3161
3161
|
provider?: string | undefined;
|
|
3162
|
-
|
|
3162
|
+
verifiedAt?: number | undefined;
|
|
3163
3163
|
issuer?: string | undefined;
|
|
3164
|
+
credentialType?: string | undefined;
|
|
3164
3165
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3165
3166
|
rpId?: string | undefined;
|
|
3166
3167
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3167
3168
|
chainId?: number | undefined;
|
|
3168
3169
|
domain?: string | undefined;
|
|
3169
|
-
verifiedAt?: number | undefined;
|
|
3170
3170
|
}, {
|
|
3171
|
-
type: "
|
|
3171
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3172
3172
|
provider?: string | undefined;
|
|
3173
|
-
|
|
3173
|
+
verifiedAt?: number | undefined;
|
|
3174
3174
|
issuer?: string | undefined;
|
|
3175
|
+
credentialType?: string | undefined;
|
|
3175
3176
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3176
3177
|
rpId?: string | undefined;
|
|
3177
3178
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3178
3179
|
chainId?: number | undefined;
|
|
3179
3180
|
domain?: string | undefined;
|
|
3180
|
-
verifiedAt?: number | undefined;
|
|
3181
3181
|
}>>;
|
|
3182
3182
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3183
3183
|
/** Authorization info - how identity was verified during consent */
|
|
@@ -3216,27 +3216,27 @@ export declare const DelegationVerificationDetailsSchema: z.ZodObject<{
|
|
|
3216
3216
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3217
3217
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3218
3218
|
}, "strip", z.ZodTypeAny, {
|
|
3219
|
-
type: "
|
|
3219
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3220
3220
|
provider?: string | undefined;
|
|
3221
|
-
|
|
3221
|
+
verifiedAt?: number | undefined;
|
|
3222
3222
|
issuer?: string | undefined;
|
|
3223
|
+
credentialType?: string | undefined;
|
|
3223
3224
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3224
3225
|
rpId?: string | undefined;
|
|
3225
3226
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3226
3227
|
chainId?: number | undefined;
|
|
3227
3228
|
domain?: string | undefined;
|
|
3228
|
-
verifiedAt?: number | undefined;
|
|
3229
3229
|
}, {
|
|
3230
|
-
type: "
|
|
3230
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3231
3231
|
provider?: string | undefined;
|
|
3232
|
-
|
|
3232
|
+
verifiedAt?: number | undefined;
|
|
3233
3233
|
issuer?: string | undefined;
|
|
3234
|
+
credentialType?: string | undefined;
|
|
3234
3235
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3235
3236
|
rpId?: string | undefined;
|
|
3236
3237
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3237
3238
|
chainId?: number | undefined;
|
|
3238
3239
|
domain?: string | undefined;
|
|
3239
|
-
verifiedAt?: number | undefined;
|
|
3240
3240
|
}>>;
|
|
3241
3241
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3242
3242
|
/** Authorization info - how identity was verified during consent */
|
|
@@ -3275,27 +3275,27 @@ export declare const DelegationVerificationDetailsSchema: z.ZodObject<{
|
|
|
3275
3275
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3276
3276
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3277
3277
|
}, "strip", z.ZodTypeAny, {
|
|
3278
|
-
type: "
|
|
3278
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3279
3279
|
provider?: string | undefined;
|
|
3280
|
-
|
|
3280
|
+
verifiedAt?: number | undefined;
|
|
3281
3281
|
issuer?: string | undefined;
|
|
3282
|
+
credentialType?: string | undefined;
|
|
3282
3283
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3283
3284
|
rpId?: string | undefined;
|
|
3284
3285
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3285
3286
|
chainId?: number | undefined;
|
|
3286
3287
|
domain?: string | undefined;
|
|
3287
|
-
verifiedAt?: number | undefined;
|
|
3288
3288
|
}, {
|
|
3289
|
-
type: "
|
|
3289
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3290
3290
|
provider?: string | undefined;
|
|
3291
|
-
|
|
3291
|
+
verifiedAt?: number | undefined;
|
|
3292
3292
|
issuer?: string | undefined;
|
|
3293
|
+
credentialType?: string | undefined;
|
|
3293
3294
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3294
3295
|
rpId?: string | undefined;
|
|
3295
3296
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3296
3297
|
chainId?: number | undefined;
|
|
3297
3298
|
domain?: string | undefined;
|
|
3298
|
-
verifiedAt?: number | undefined;
|
|
3299
3299
|
}>>;
|
|
3300
3300
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3301
3301
|
export type DelegationVerificationDetails = z.infer<typeof DelegationVerificationDetailsSchema>;
|
|
@@ -3357,27 +3357,27 @@ export declare const DelegationVerificationResultSchema: z.ZodObject<{
|
|
|
3357
3357
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3358
3358
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3359
3359
|
}, "strip", z.ZodTypeAny, {
|
|
3360
|
-
type: "
|
|
3360
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3361
3361
|
provider?: string | undefined;
|
|
3362
|
-
|
|
3362
|
+
verifiedAt?: number | undefined;
|
|
3363
3363
|
issuer?: string | undefined;
|
|
3364
|
+
credentialType?: string | undefined;
|
|
3364
3365
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3365
3366
|
rpId?: string | undefined;
|
|
3366
3367
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3367
3368
|
chainId?: number | undefined;
|
|
3368
3369
|
domain?: string | undefined;
|
|
3369
|
-
verifiedAt?: number | undefined;
|
|
3370
3370
|
}, {
|
|
3371
|
-
type: "
|
|
3371
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3372
3372
|
provider?: string | undefined;
|
|
3373
|
-
|
|
3373
|
+
verifiedAt?: number | undefined;
|
|
3374
3374
|
issuer?: string | undefined;
|
|
3375
|
+
credentialType?: string | undefined;
|
|
3375
3376
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3376
3377
|
rpId?: string | undefined;
|
|
3377
3378
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3378
3379
|
chainId?: number | undefined;
|
|
3379
3380
|
domain?: string | undefined;
|
|
3380
|
-
verifiedAt?: number | undefined;
|
|
3381
3381
|
}>>;
|
|
3382
3382
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3383
3383
|
/** Authorization info - how identity was verified during consent */
|
|
@@ -3416,27 +3416,27 @@ export declare const DelegationVerificationResultSchema: z.ZodObject<{
|
|
|
3416
3416
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3417
3417
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3418
3418
|
}, "strip", z.ZodTypeAny, {
|
|
3419
|
-
type: "
|
|
3419
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3420
3420
|
provider?: string | undefined;
|
|
3421
|
-
|
|
3421
|
+
verifiedAt?: number | undefined;
|
|
3422
3422
|
issuer?: string | undefined;
|
|
3423
|
+
credentialType?: string | undefined;
|
|
3423
3424
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3424
3425
|
rpId?: string | undefined;
|
|
3425
3426
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3426
3427
|
chainId?: number | undefined;
|
|
3427
3428
|
domain?: string | undefined;
|
|
3428
|
-
verifiedAt?: number | undefined;
|
|
3429
3429
|
}, {
|
|
3430
|
-
type: "
|
|
3430
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3431
3431
|
provider?: string | undefined;
|
|
3432
|
-
|
|
3432
|
+
verifiedAt?: number | undefined;
|
|
3433
3433
|
issuer?: string | undefined;
|
|
3434
|
+
credentialType?: string | undefined;
|
|
3434
3435
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3435
3436
|
rpId?: string | undefined;
|
|
3436
3437
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3437
3438
|
chainId?: number | undefined;
|
|
3438
3439
|
domain?: string | undefined;
|
|
3439
|
-
verifiedAt?: number | undefined;
|
|
3440
3440
|
}>>;
|
|
3441
3441
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3442
3442
|
/** Authorization info - how identity was verified during consent */
|
|
@@ -3475,37 +3475,34 @@ export declare const DelegationVerificationResultSchema: z.ZodObject<{
|
|
|
3475
3475
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3476
3476
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3477
3477
|
}, "strip", z.ZodTypeAny, {
|
|
3478
|
-
type: "
|
|
3478
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3479
3479
|
provider?: string | undefined;
|
|
3480
|
-
|
|
3480
|
+
verifiedAt?: number | undefined;
|
|
3481
3481
|
issuer?: string | undefined;
|
|
3482
|
+
credentialType?: string | undefined;
|
|
3482
3483
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3483
3484
|
rpId?: string | undefined;
|
|
3484
3485
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3485
3486
|
chainId?: number | undefined;
|
|
3486
3487
|
domain?: string | undefined;
|
|
3487
|
-
verifiedAt?: number | undefined;
|
|
3488
3488
|
}, {
|
|
3489
|
-
type: "
|
|
3489
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3490
3490
|
provider?: string | undefined;
|
|
3491
|
-
|
|
3491
|
+
verifiedAt?: number | undefined;
|
|
3492
3492
|
issuer?: string | undefined;
|
|
3493
|
+
credentialType?: string | undefined;
|
|
3493
3494
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3494
3495
|
rpId?: string | undefined;
|
|
3495
3496
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3496
3497
|
chainId?: number | undefined;
|
|
3497
3498
|
domain?: string | undefined;
|
|
3498
|
-
verifiedAt?: number | undefined;
|
|
3499
3499
|
}>>;
|
|
3500
3500
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
3501
3501
|
}, "strip", z.ZodTypeAny, {
|
|
3502
3502
|
valid: boolean;
|
|
3503
3503
|
status: "active" | "revoked" | "expired";
|
|
3504
|
-
delegationId: string;
|
|
3505
3504
|
verifiedAt: number;
|
|
3506
|
-
|
|
3507
|
-
credentialValid?: boolean | undefined;
|
|
3508
|
-
chainValid?: boolean | undefined;
|
|
3505
|
+
delegationId: string;
|
|
3509
3506
|
details?: z.objectOutputType<{
|
|
3510
3507
|
/** Authorization info - how identity was verified during consent */
|
|
3511
3508
|
authorization: z.ZodOptional<z.ZodObject<{
|
|
@@ -3543,37 +3540,37 @@ export declare const DelegationVerificationResultSchema: z.ZodObject<{
|
|
|
3543
3540
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3544
3541
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3545
3542
|
}, "strip", z.ZodTypeAny, {
|
|
3546
|
-
type: "
|
|
3543
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3547
3544
|
provider?: string | undefined;
|
|
3548
|
-
|
|
3545
|
+
verifiedAt?: number | undefined;
|
|
3549
3546
|
issuer?: string | undefined;
|
|
3547
|
+
credentialType?: string | undefined;
|
|
3550
3548
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3551
3549
|
rpId?: string | undefined;
|
|
3552
3550
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3553
3551
|
chainId?: number | undefined;
|
|
3554
3552
|
domain?: string | undefined;
|
|
3555
|
-
verifiedAt?: number | undefined;
|
|
3556
3553
|
}, {
|
|
3557
|
-
type: "
|
|
3554
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3558
3555
|
provider?: string | undefined;
|
|
3559
|
-
|
|
3556
|
+
verifiedAt?: number | undefined;
|
|
3560
3557
|
issuer?: string | undefined;
|
|
3558
|
+
credentialType?: string | undefined;
|
|
3561
3559
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3562
3560
|
rpId?: string | undefined;
|
|
3563
3561
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3564
3562
|
chainId?: number | undefined;
|
|
3565
3563
|
domain?: string | undefined;
|
|
3566
|
-
verifiedAt?: number | undefined;
|
|
3567
3564
|
}>>;
|
|
3568
3565
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3566
|
+
reason?: string | undefined;
|
|
3567
|
+
credentialValid?: boolean | undefined;
|
|
3568
|
+
chainValid?: boolean | undefined;
|
|
3569
3569
|
}, {
|
|
3570
3570
|
valid: boolean;
|
|
3571
3571
|
status: "active" | "revoked" | "expired";
|
|
3572
|
-
delegationId: string;
|
|
3573
3572
|
verifiedAt: number;
|
|
3574
|
-
|
|
3575
|
-
credentialValid?: boolean | undefined;
|
|
3576
|
-
chainValid?: boolean | undefined;
|
|
3573
|
+
delegationId: string;
|
|
3577
3574
|
details?: z.objectInputType<{
|
|
3578
3575
|
/** Authorization info - how identity was verified during consent */
|
|
3579
3576
|
authorization: z.ZodOptional<z.ZodObject<{
|
|
@@ -3611,29 +3608,32 @@ export declare const DelegationVerificationResultSchema: z.ZodObject<{
|
|
|
3611
3608
|
/** Timestamp when authorization was verified (milliseconds since epoch) */
|
|
3612
3609
|
verifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
3613
3610
|
}, "strip", z.ZodTypeAny, {
|
|
3614
|
-
type: "
|
|
3611
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3615
3612
|
provider?: string | undefined;
|
|
3616
|
-
|
|
3613
|
+
verifiedAt?: number | undefined;
|
|
3617
3614
|
issuer?: string | undefined;
|
|
3615
|
+
credentialType?: string | undefined;
|
|
3618
3616
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3619
3617
|
rpId?: string | undefined;
|
|
3620
3618
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3621
3619
|
chainId?: number | undefined;
|
|
3622
3620
|
domain?: string | undefined;
|
|
3623
|
-
verifiedAt?: number | undefined;
|
|
3624
3621
|
}, {
|
|
3625
|
-
type: "
|
|
3622
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "verifiable_credential" | "mdl" | "idv" | "webauthn" | "siwe" | "none";
|
|
3626
3623
|
provider?: string | undefined;
|
|
3627
|
-
|
|
3624
|
+
verifiedAt?: number | undefined;
|
|
3628
3625
|
issuer?: string | undefined;
|
|
3626
|
+
credentialType?: string | undefined;
|
|
3629
3627
|
verificationLevel?: "basic" | "enhanced" | "loa3" | undefined;
|
|
3630
3628
|
rpId?: string | undefined;
|
|
3631
3629
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
3632
3630
|
chainId?: number | undefined;
|
|
3633
3631
|
domain?: string | undefined;
|
|
3634
|
-
verifiedAt?: number | undefined;
|
|
3635
3632
|
}>>;
|
|
3636
3633
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3634
|
+
reason?: string | undefined;
|
|
3635
|
+
credentialValid?: boolean | undefined;
|
|
3636
|
+
chainValid?: boolean | undefined;
|
|
3637
3637
|
}>;
|
|
3638
3638
|
export type DelegationVerificationResult = z.infer<typeof DelegationVerificationResultSchema>;
|
|
3639
3639
|
/**
|
|
@@ -4504,15 +4504,12 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
|
|
|
4504
4504
|
rootIssuer: string;
|
|
4505
4505
|
leafSubject: string;
|
|
4506
4506
|
chain: {
|
|
4507
|
-
issuerDid: string;
|
|
4508
|
-
subjectDid: string;
|
|
4509
|
-
vcId: string;
|
|
4510
4507
|
status: "active" | "revoked" | "expired";
|
|
4511
4508
|
constraints: {
|
|
4512
|
-
notBefore?: number | undefined;
|
|
4513
|
-
notAfter?: number | undefined;
|
|
4514
4509
|
scopes?: string[] | undefined;
|
|
4515
4510
|
audience?: string | string[] | undefined;
|
|
4511
|
+
notBefore?: number | undefined;
|
|
4512
|
+
notAfter?: number | undefined;
|
|
4516
4513
|
crisp?: z.objectInputType<{
|
|
4517
4514
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4518
4515
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4559,6 +4556,9 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
|
|
|
4559
4556
|
} & {
|
|
4560
4557
|
[k: string]: unknown;
|
|
4561
4558
|
};
|
|
4559
|
+
issuerDid: string;
|
|
4560
|
+
subjectDid: string;
|
|
4561
|
+
vcId: string;
|
|
4562
4562
|
delegationId: string;
|
|
4563
4563
|
depth: number;
|
|
4564
4564
|
}[];
|
|
@@ -4569,15 +4569,12 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
|
|
|
4569
4569
|
rootIssuer: string;
|
|
4570
4570
|
leafSubject: string;
|
|
4571
4571
|
chain: {
|
|
4572
|
-
issuerDid: string;
|
|
4573
|
-
subjectDid: string;
|
|
4574
|
-
vcId: string;
|
|
4575
4572
|
status: "active" | "revoked" | "expired";
|
|
4576
4573
|
constraints: {
|
|
4577
|
-
notBefore?: number | undefined;
|
|
4578
|
-
notAfter?: number | undefined;
|
|
4579
4574
|
scopes?: string[] | undefined;
|
|
4580
4575
|
audience?: string | string[] | undefined;
|
|
4576
|
+
notBefore?: number | undefined;
|
|
4577
|
+
notAfter?: number | undefined;
|
|
4581
4578
|
crisp?: z.objectOutputType<{
|
|
4582
4579
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4583
4580
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4624,6 +4621,9 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
|
|
|
4624
4621
|
} & {
|
|
4625
4622
|
[k: string]: unknown;
|
|
4626
4623
|
};
|
|
4624
|
+
issuerDid: string;
|
|
4625
|
+
subjectDid: string;
|
|
4626
|
+
vcId: string;
|
|
4627
4627
|
delegationId: string;
|
|
4628
4628
|
depth: number;
|
|
4629
4629
|
}[];
|
|
@@ -5136,15 +5136,13 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
5136
5136
|
/** Optional metadata */
|
|
5137
5137
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5138
5138
|
}, "strip", z.ZodTypeAny, {
|
|
5139
|
-
id: string;
|
|
5140
|
-
issuerDid: string;
|
|
5141
|
-
subjectDid: string;
|
|
5142
5139
|
status: "active" | "revoked" | "expired";
|
|
5140
|
+
id: string;
|
|
5143
5141
|
constraints: {
|
|
5144
|
-
notBefore?: number | undefined;
|
|
5145
|
-
notAfter?: number | undefined;
|
|
5146
5142
|
scopes?: string[] | undefined;
|
|
5147
5143
|
audience?: string | string[] | undefined;
|
|
5144
|
+
notBefore?: number | undefined;
|
|
5145
|
+
notAfter?: number | undefined;
|
|
5148
5146
|
crisp?: z.objectOutputType<{
|
|
5149
5147
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5150
5148
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5191,23 +5189,23 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
5191
5189
|
} & {
|
|
5192
5190
|
[k: string]: unknown;
|
|
5193
5191
|
};
|
|
5194
|
-
|
|
5195
|
-
|
|
5192
|
+
issuerDid: string;
|
|
5193
|
+
subjectDid: string;
|
|
5196
5194
|
scopes?: string[] | undefined;
|
|
5197
|
-
createdAt?: number | undefined;
|
|
5198
5195
|
metadata?: Record<string, any> | undefined;
|
|
5196
|
+
createdAt?: number | undefined;
|
|
5197
|
+
sessionId?: string | undefined;
|
|
5199
5198
|
userDid?: string | undefined;
|
|
5199
|
+
controller?: string | undefined;
|
|
5200
|
+
parentId?: string | undefined;
|
|
5200
5201
|
userIdentifier?: string | undefined;
|
|
5201
|
-
sessionId?: string | undefined;
|
|
5202
5202
|
}, {
|
|
5203
5203
|
id: string;
|
|
5204
|
-
issuerDid: string;
|
|
5205
|
-
subjectDid: string;
|
|
5206
5204
|
constraints: {
|
|
5207
|
-
notBefore?: number | undefined;
|
|
5208
|
-
notAfter?: number | undefined;
|
|
5209
5205
|
scopes?: string[] | undefined;
|
|
5210
5206
|
audience?: string | string[] | undefined;
|
|
5207
|
+
notBefore?: number | undefined;
|
|
5208
|
+
notAfter?: number | undefined;
|
|
5211
5209
|
crisp?: z.objectInputType<{
|
|
5212
5210
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5213
5211
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5254,28 +5252,27 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
5254
5252
|
} & {
|
|
5255
5253
|
[k: string]: unknown;
|
|
5256
5254
|
};
|
|
5257
|
-
|
|
5258
|
-
|
|
5255
|
+
issuerDid: string;
|
|
5256
|
+
subjectDid: string;
|
|
5259
5257
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
5260
5258
|
scopes?: string[] | undefined;
|
|
5261
|
-
createdAt?: number | undefined;
|
|
5262
5259
|
metadata?: Record<string, any> | undefined;
|
|
5260
|
+
createdAt?: number | undefined;
|
|
5261
|
+
sessionId?: string | undefined;
|
|
5263
5262
|
userDid?: string | undefined;
|
|
5263
|
+
controller?: string | undefined;
|
|
5264
|
+
parentId?: string | undefined;
|
|
5264
5265
|
userIdentifier?: string | undefined;
|
|
5265
|
-
sessionId?: string | undefined;
|
|
5266
5266
|
}>;
|
|
5267
5267
|
}, "strip", z.ZodTypeAny, {
|
|
5268
|
-
id: string;
|
|
5269
5268
|
delegation: {
|
|
5270
|
-
id: string;
|
|
5271
|
-
issuerDid: string;
|
|
5272
|
-
subjectDid: string;
|
|
5273
5269
|
status: "active" | "revoked" | "expired";
|
|
5270
|
+
id: string;
|
|
5274
5271
|
constraints: {
|
|
5275
|
-
notBefore?: number | undefined;
|
|
5276
|
-
notAfter?: number | undefined;
|
|
5277
5272
|
scopes?: string[] | undefined;
|
|
5278
5273
|
audience?: string | string[] | undefined;
|
|
5274
|
+
notBefore?: number | undefined;
|
|
5275
|
+
notAfter?: number | undefined;
|
|
5279
5276
|
crisp?: z.objectOutputType<{
|
|
5280
5277
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5281
5278
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5322,26 +5319,26 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
5322
5319
|
} & {
|
|
5323
5320
|
[k: string]: unknown;
|
|
5324
5321
|
};
|
|
5325
|
-
|
|
5326
|
-
|
|
5322
|
+
issuerDid: string;
|
|
5323
|
+
subjectDid: string;
|
|
5327
5324
|
scopes?: string[] | undefined;
|
|
5328
|
-
createdAt?: number | undefined;
|
|
5329
5325
|
metadata?: Record<string, any> | undefined;
|
|
5326
|
+
createdAt?: number | undefined;
|
|
5327
|
+
sessionId?: string | undefined;
|
|
5330
5328
|
userDid?: string | undefined;
|
|
5329
|
+
controller?: string | undefined;
|
|
5330
|
+
parentId?: string | undefined;
|
|
5331
5331
|
userIdentifier?: string | undefined;
|
|
5332
|
-
sessionId?: string | undefined;
|
|
5333
5332
|
};
|
|
5334
|
-
}, {
|
|
5335
5333
|
id: string;
|
|
5334
|
+
}, {
|
|
5336
5335
|
delegation: {
|
|
5337
5336
|
id: string;
|
|
5338
|
-
issuerDid: string;
|
|
5339
|
-
subjectDid: string;
|
|
5340
5337
|
constraints: {
|
|
5341
|
-
notBefore?: number | undefined;
|
|
5342
|
-
notAfter?: number | undefined;
|
|
5343
5338
|
scopes?: string[] | undefined;
|
|
5344
5339
|
audience?: string | string[] | undefined;
|
|
5340
|
+
notBefore?: number | undefined;
|
|
5341
|
+
notAfter?: number | undefined;
|
|
5345
5342
|
crisp?: z.objectInputType<{
|
|
5346
5343
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5347
5344
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5388,16 +5385,19 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
5388
5385
|
} & {
|
|
5389
5386
|
[k: string]: unknown;
|
|
5390
5387
|
};
|
|
5391
|
-
|
|
5392
|
-
|
|
5388
|
+
issuerDid: string;
|
|
5389
|
+
subjectDid: string;
|
|
5393
5390
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
5394
5391
|
scopes?: string[] | undefined;
|
|
5395
|
-
createdAt?: number | undefined;
|
|
5396
5392
|
metadata?: Record<string, any> | undefined;
|
|
5393
|
+
createdAt?: number | undefined;
|
|
5394
|
+
sessionId?: string | undefined;
|
|
5397
5395
|
userDid?: string | undefined;
|
|
5396
|
+
controller?: string | undefined;
|
|
5397
|
+
parentId?: string | undefined;
|
|
5398
5398
|
userIdentifier?: string | undefined;
|
|
5399
|
-
sessionId?: string | undefined;
|
|
5400
5399
|
};
|
|
5400
|
+
id: string;
|
|
5401
5401
|
}>;
|
|
5402
5402
|
export type DelegationCredentialSubject = z.infer<typeof DelegationCredentialSubjectSchema>;
|
|
5403
5403
|
/**
|
|
@@ -5889,15 +5889,13 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
5889
5889
|
/** Optional metadata */
|
|
5890
5890
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5891
5891
|
}, "strip", z.ZodTypeAny, {
|
|
5892
|
-
id: string;
|
|
5893
|
-
issuerDid: string;
|
|
5894
|
-
subjectDid: string;
|
|
5895
5892
|
status: "active" | "revoked" | "expired";
|
|
5893
|
+
id: string;
|
|
5896
5894
|
constraints: {
|
|
5897
|
-
notBefore?: number | undefined;
|
|
5898
|
-
notAfter?: number | undefined;
|
|
5899
5895
|
scopes?: string[] | undefined;
|
|
5900
5896
|
audience?: string | string[] | undefined;
|
|
5897
|
+
notBefore?: number | undefined;
|
|
5898
|
+
notAfter?: number | undefined;
|
|
5901
5899
|
crisp?: z.objectOutputType<{
|
|
5902
5900
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5903
5901
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5944,23 +5942,23 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
5944
5942
|
} & {
|
|
5945
5943
|
[k: string]: unknown;
|
|
5946
5944
|
};
|
|
5947
|
-
|
|
5948
|
-
|
|
5945
|
+
issuerDid: string;
|
|
5946
|
+
subjectDid: string;
|
|
5949
5947
|
scopes?: string[] | undefined;
|
|
5950
|
-
createdAt?: number | undefined;
|
|
5951
5948
|
metadata?: Record<string, any> | undefined;
|
|
5949
|
+
createdAt?: number | undefined;
|
|
5950
|
+
sessionId?: string | undefined;
|
|
5952
5951
|
userDid?: string | undefined;
|
|
5952
|
+
controller?: string | undefined;
|
|
5953
|
+
parentId?: string | undefined;
|
|
5953
5954
|
userIdentifier?: string | undefined;
|
|
5954
|
-
sessionId?: string | undefined;
|
|
5955
5955
|
}, {
|
|
5956
5956
|
id: string;
|
|
5957
|
-
issuerDid: string;
|
|
5958
|
-
subjectDid: string;
|
|
5959
5957
|
constraints: {
|
|
5960
|
-
notBefore?: number | undefined;
|
|
5961
|
-
notAfter?: number | undefined;
|
|
5962
5958
|
scopes?: string[] | undefined;
|
|
5963
5959
|
audience?: string | string[] | undefined;
|
|
5960
|
+
notBefore?: number | undefined;
|
|
5961
|
+
notAfter?: number | undefined;
|
|
5964
5962
|
crisp?: z.objectInputType<{
|
|
5965
5963
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5966
5964
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6007,28 +6005,27 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6007
6005
|
} & {
|
|
6008
6006
|
[k: string]: unknown;
|
|
6009
6007
|
};
|
|
6010
|
-
|
|
6011
|
-
|
|
6008
|
+
issuerDid: string;
|
|
6009
|
+
subjectDid: string;
|
|
6012
6010
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
6013
6011
|
scopes?: string[] | undefined;
|
|
6014
|
-
createdAt?: number | undefined;
|
|
6015
6012
|
metadata?: Record<string, any> | undefined;
|
|
6013
|
+
createdAt?: number | undefined;
|
|
6014
|
+
sessionId?: string | undefined;
|
|
6016
6015
|
userDid?: string | undefined;
|
|
6016
|
+
controller?: string | undefined;
|
|
6017
|
+
parentId?: string | undefined;
|
|
6017
6018
|
userIdentifier?: string | undefined;
|
|
6018
|
-
sessionId?: string | undefined;
|
|
6019
6019
|
}>;
|
|
6020
6020
|
}, "strip", z.ZodTypeAny, {
|
|
6021
|
-
id: string;
|
|
6022
6021
|
delegation: {
|
|
6023
|
-
id: string;
|
|
6024
|
-
issuerDid: string;
|
|
6025
|
-
subjectDid: string;
|
|
6026
6022
|
status: "active" | "revoked" | "expired";
|
|
6023
|
+
id: string;
|
|
6027
6024
|
constraints: {
|
|
6028
|
-
notBefore?: number | undefined;
|
|
6029
|
-
notAfter?: number | undefined;
|
|
6030
6025
|
scopes?: string[] | undefined;
|
|
6031
6026
|
audience?: string | string[] | undefined;
|
|
6027
|
+
notBefore?: number | undefined;
|
|
6028
|
+
notAfter?: number | undefined;
|
|
6032
6029
|
crisp?: z.objectOutputType<{
|
|
6033
6030
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6034
6031
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6075,26 +6072,26 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6075
6072
|
} & {
|
|
6076
6073
|
[k: string]: unknown;
|
|
6077
6074
|
};
|
|
6078
|
-
|
|
6079
|
-
|
|
6075
|
+
issuerDid: string;
|
|
6076
|
+
subjectDid: string;
|
|
6080
6077
|
scopes?: string[] | undefined;
|
|
6081
|
-
createdAt?: number | undefined;
|
|
6082
6078
|
metadata?: Record<string, any> | undefined;
|
|
6079
|
+
createdAt?: number | undefined;
|
|
6080
|
+
sessionId?: string | undefined;
|
|
6083
6081
|
userDid?: string | undefined;
|
|
6082
|
+
controller?: string | undefined;
|
|
6083
|
+
parentId?: string | undefined;
|
|
6084
6084
|
userIdentifier?: string | undefined;
|
|
6085
|
-
sessionId?: string | undefined;
|
|
6086
6085
|
};
|
|
6087
|
-
}, {
|
|
6088
6086
|
id: string;
|
|
6087
|
+
}, {
|
|
6089
6088
|
delegation: {
|
|
6090
6089
|
id: string;
|
|
6091
|
-
issuerDid: string;
|
|
6092
|
-
subjectDid: string;
|
|
6093
6090
|
constraints: {
|
|
6094
|
-
notBefore?: number | undefined;
|
|
6095
|
-
notAfter?: number | undefined;
|
|
6096
6091
|
scopes?: string[] | undefined;
|
|
6097
6092
|
audience?: string | string[] | undefined;
|
|
6093
|
+
notBefore?: number | undefined;
|
|
6094
|
+
notAfter?: number | undefined;
|
|
6098
6095
|
crisp?: z.objectInputType<{
|
|
6099
6096
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6100
6097
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6141,16 +6138,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6141
6138
|
} & {
|
|
6142
6139
|
[k: string]: unknown;
|
|
6143
6140
|
};
|
|
6144
|
-
|
|
6145
|
-
|
|
6141
|
+
issuerDid: string;
|
|
6142
|
+
subjectDid: string;
|
|
6146
6143
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
6147
6144
|
scopes?: string[] | undefined;
|
|
6148
|
-
createdAt?: number | undefined;
|
|
6149
6145
|
metadata?: Record<string, any> | undefined;
|
|
6146
|
+
createdAt?: number | undefined;
|
|
6147
|
+
sessionId?: string | undefined;
|
|
6150
6148
|
userDid?: string | undefined;
|
|
6149
|
+
controller?: string | undefined;
|
|
6150
|
+
parentId?: string | undefined;
|
|
6151
6151
|
userIdentifier?: string | undefined;
|
|
6152
|
-
sessionId?: string | undefined;
|
|
6153
6152
|
};
|
|
6153
|
+
id: string;
|
|
6154
6154
|
}>;
|
|
6155
6155
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
6156
6156
|
id: z.ZodString;
|
|
@@ -6159,14 +6159,14 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6159
6159
|
statusListIndex: z.ZodString;
|
|
6160
6160
|
statusListCredential: z.ZodString;
|
|
6161
6161
|
}, "strip", z.ZodTypeAny, {
|
|
6162
|
-
id: string;
|
|
6163
6162
|
type: "StatusList2021Entry";
|
|
6163
|
+
id: string;
|
|
6164
6164
|
statusPurpose: "revocation" | "suspension";
|
|
6165
6165
|
statusListIndex: string;
|
|
6166
6166
|
statusListCredential: string;
|
|
6167
6167
|
}, {
|
|
6168
|
-
id: string;
|
|
6169
6168
|
type: "StatusList2021Entry";
|
|
6169
|
+
id: string;
|
|
6170
6170
|
statusPurpose: "revocation" | "suspension";
|
|
6171
6171
|
statusListIndex: string;
|
|
6172
6172
|
statusListCredential: string;
|
|
@@ -6653,15 +6653,13 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6653
6653
|
/** Optional metadata */
|
|
6654
6654
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
6655
6655
|
}, "strip", z.ZodTypeAny, {
|
|
6656
|
-
id: string;
|
|
6657
|
-
issuerDid: string;
|
|
6658
|
-
subjectDid: string;
|
|
6659
6656
|
status: "active" | "revoked" | "expired";
|
|
6657
|
+
id: string;
|
|
6660
6658
|
constraints: {
|
|
6661
|
-
notBefore?: number | undefined;
|
|
6662
|
-
notAfter?: number | undefined;
|
|
6663
6659
|
scopes?: string[] | undefined;
|
|
6664
6660
|
audience?: string | string[] | undefined;
|
|
6661
|
+
notBefore?: number | undefined;
|
|
6662
|
+
notAfter?: number | undefined;
|
|
6665
6663
|
crisp?: z.objectOutputType<{
|
|
6666
6664
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6667
6665
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6708,23 +6706,23 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6708
6706
|
} & {
|
|
6709
6707
|
[k: string]: unknown;
|
|
6710
6708
|
};
|
|
6711
|
-
|
|
6712
|
-
|
|
6709
|
+
issuerDid: string;
|
|
6710
|
+
subjectDid: string;
|
|
6713
6711
|
scopes?: string[] | undefined;
|
|
6714
|
-
createdAt?: number | undefined;
|
|
6715
6712
|
metadata?: Record<string, any> | undefined;
|
|
6713
|
+
createdAt?: number | undefined;
|
|
6714
|
+
sessionId?: string | undefined;
|
|
6716
6715
|
userDid?: string | undefined;
|
|
6716
|
+
controller?: string | undefined;
|
|
6717
|
+
parentId?: string | undefined;
|
|
6717
6718
|
userIdentifier?: string | undefined;
|
|
6718
|
-
sessionId?: string | undefined;
|
|
6719
6719
|
}, {
|
|
6720
6720
|
id: string;
|
|
6721
|
-
issuerDid: string;
|
|
6722
|
-
subjectDid: string;
|
|
6723
6721
|
constraints: {
|
|
6724
|
-
notBefore?: number | undefined;
|
|
6725
|
-
notAfter?: number | undefined;
|
|
6726
6722
|
scopes?: string[] | undefined;
|
|
6727
6723
|
audience?: string | string[] | undefined;
|
|
6724
|
+
notBefore?: number | undefined;
|
|
6725
|
+
notAfter?: number | undefined;
|
|
6728
6726
|
crisp?: z.objectInputType<{
|
|
6729
6727
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6730
6728
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6771,28 +6769,27 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6771
6769
|
} & {
|
|
6772
6770
|
[k: string]: unknown;
|
|
6773
6771
|
};
|
|
6774
|
-
|
|
6775
|
-
|
|
6772
|
+
issuerDid: string;
|
|
6773
|
+
subjectDid: string;
|
|
6776
6774
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
6777
6775
|
scopes?: string[] | undefined;
|
|
6778
|
-
createdAt?: number | undefined;
|
|
6779
6776
|
metadata?: Record<string, any> | undefined;
|
|
6777
|
+
createdAt?: number | undefined;
|
|
6778
|
+
sessionId?: string | undefined;
|
|
6780
6779
|
userDid?: string | undefined;
|
|
6780
|
+
controller?: string | undefined;
|
|
6781
|
+
parentId?: string | undefined;
|
|
6781
6782
|
userIdentifier?: string | undefined;
|
|
6782
|
-
sessionId?: string | undefined;
|
|
6783
6783
|
}>;
|
|
6784
6784
|
}, "strip", z.ZodTypeAny, {
|
|
6785
|
-
id: string;
|
|
6786
6785
|
delegation: {
|
|
6787
|
-
id: string;
|
|
6788
|
-
issuerDid: string;
|
|
6789
|
-
subjectDid: string;
|
|
6790
6786
|
status: "active" | "revoked" | "expired";
|
|
6787
|
+
id: string;
|
|
6791
6788
|
constraints: {
|
|
6792
|
-
notBefore?: number | undefined;
|
|
6793
|
-
notAfter?: number | undefined;
|
|
6794
6789
|
scopes?: string[] | undefined;
|
|
6795
6790
|
audience?: string | string[] | undefined;
|
|
6791
|
+
notBefore?: number | undefined;
|
|
6792
|
+
notAfter?: number | undefined;
|
|
6796
6793
|
crisp?: z.objectOutputType<{
|
|
6797
6794
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6798
6795
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6839,26 +6836,26 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6839
6836
|
} & {
|
|
6840
6837
|
[k: string]: unknown;
|
|
6841
6838
|
};
|
|
6842
|
-
|
|
6843
|
-
|
|
6839
|
+
issuerDid: string;
|
|
6840
|
+
subjectDid: string;
|
|
6844
6841
|
scopes?: string[] | undefined;
|
|
6845
|
-
createdAt?: number | undefined;
|
|
6846
6842
|
metadata?: Record<string, any> | undefined;
|
|
6843
|
+
createdAt?: number | undefined;
|
|
6844
|
+
sessionId?: string | undefined;
|
|
6847
6845
|
userDid?: string | undefined;
|
|
6846
|
+
controller?: string | undefined;
|
|
6847
|
+
parentId?: string | undefined;
|
|
6848
6848
|
userIdentifier?: string | undefined;
|
|
6849
|
-
sessionId?: string | undefined;
|
|
6850
6849
|
};
|
|
6851
|
-
}, {
|
|
6852
6850
|
id: string;
|
|
6851
|
+
}, {
|
|
6853
6852
|
delegation: {
|
|
6854
6853
|
id: string;
|
|
6855
|
-
issuerDid: string;
|
|
6856
|
-
subjectDid: string;
|
|
6857
6854
|
constraints: {
|
|
6858
|
-
notBefore?: number | undefined;
|
|
6859
|
-
notAfter?: number | undefined;
|
|
6860
6855
|
scopes?: string[] | undefined;
|
|
6861
6856
|
audience?: string | string[] | undefined;
|
|
6857
|
+
notBefore?: number | undefined;
|
|
6858
|
+
notAfter?: number | undefined;
|
|
6862
6859
|
crisp?: z.objectInputType<{
|
|
6863
6860
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6864
6861
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6905,16 +6902,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6905
6902
|
} & {
|
|
6906
6903
|
[k: string]: unknown;
|
|
6907
6904
|
};
|
|
6908
|
-
|
|
6909
|
-
|
|
6905
|
+
issuerDid: string;
|
|
6906
|
+
subjectDid: string;
|
|
6910
6907
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
6911
6908
|
scopes?: string[] | undefined;
|
|
6912
|
-
createdAt?: number | undefined;
|
|
6913
6909
|
metadata?: Record<string, any> | undefined;
|
|
6910
|
+
createdAt?: number | undefined;
|
|
6911
|
+
sessionId?: string | undefined;
|
|
6914
6912
|
userDid?: string | undefined;
|
|
6913
|
+
controller?: string | undefined;
|
|
6914
|
+
parentId?: string | undefined;
|
|
6915
6915
|
userIdentifier?: string | undefined;
|
|
6916
|
-
sessionId?: string | undefined;
|
|
6917
6916
|
};
|
|
6917
|
+
id: string;
|
|
6918
6918
|
}>;
|
|
6919
6919
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
6920
6920
|
id: z.ZodString;
|
|
@@ -6923,14 +6923,14 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6923
6923
|
statusListIndex: z.ZodString;
|
|
6924
6924
|
statusListCredential: z.ZodString;
|
|
6925
6925
|
}, "strip", z.ZodTypeAny, {
|
|
6926
|
-
id: string;
|
|
6927
6926
|
type: "StatusList2021Entry";
|
|
6927
|
+
id: string;
|
|
6928
6928
|
statusPurpose: "revocation" | "suspension";
|
|
6929
6929
|
statusListIndex: string;
|
|
6930
6930
|
statusListCredential: string;
|
|
6931
6931
|
}, {
|
|
6932
|
-
id: string;
|
|
6933
6932
|
type: "StatusList2021Entry";
|
|
6933
|
+
id: string;
|
|
6934
6934
|
statusPurpose: "revocation" | "suspension";
|
|
6935
6935
|
statusListIndex: string;
|
|
6936
6936
|
statusListCredential: string;
|
|
@@ -7417,15 +7417,13 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
7417
7417
|
/** Optional metadata */
|
|
7418
7418
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7419
7419
|
}, "strip", z.ZodTypeAny, {
|
|
7420
|
-
id: string;
|
|
7421
|
-
issuerDid: string;
|
|
7422
|
-
subjectDid: string;
|
|
7423
7420
|
status: "active" | "revoked" | "expired";
|
|
7421
|
+
id: string;
|
|
7424
7422
|
constraints: {
|
|
7425
|
-
notBefore?: number | undefined;
|
|
7426
|
-
notAfter?: number | undefined;
|
|
7427
7423
|
scopes?: string[] | undefined;
|
|
7428
7424
|
audience?: string | string[] | undefined;
|
|
7425
|
+
notBefore?: number | undefined;
|
|
7426
|
+
notAfter?: number | undefined;
|
|
7429
7427
|
crisp?: z.objectOutputType<{
|
|
7430
7428
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7431
7429
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7472,23 +7470,23 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
7472
7470
|
} & {
|
|
7473
7471
|
[k: string]: unknown;
|
|
7474
7472
|
};
|
|
7475
|
-
|
|
7476
|
-
|
|
7473
|
+
issuerDid: string;
|
|
7474
|
+
subjectDid: string;
|
|
7477
7475
|
scopes?: string[] | undefined;
|
|
7478
|
-
createdAt?: number | undefined;
|
|
7479
7476
|
metadata?: Record<string, any> | undefined;
|
|
7477
|
+
createdAt?: number | undefined;
|
|
7478
|
+
sessionId?: string | undefined;
|
|
7480
7479
|
userDid?: string | undefined;
|
|
7480
|
+
controller?: string | undefined;
|
|
7481
|
+
parentId?: string | undefined;
|
|
7481
7482
|
userIdentifier?: string | undefined;
|
|
7482
|
-
sessionId?: string | undefined;
|
|
7483
7483
|
}, {
|
|
7484
7484
|
id: string;
|
|
7485
|
-
issuerDid: string;
|
|
7486
|
-
subjectDid: string;
|
|
7487
7485
|
constraints: {
|
|
7488
|
-
notBefore?: number | undefined;
|
|
7489
|
-
notAfter?: number | undefined;
|
|
7490
7486
|
scopes?: string[] | undefined;
|
|
7491
7487
|
audience?: string | string[] | undefined;
|
|
7488
|
+
notBefore?: number | undefined;
|
|
7489
|
+
notAfter?: number | undefined;
|
|
7492
7490
|
crisp?: z.objectInputType<{
|
|
7493
7491
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7494
7492
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7535,28 +7533,27 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
7535
7533
|
} & {
|
|
7536
7534
|
[k: string]: unknown;
|
|
7537
7535
|
};
|
|
7538
|
-
|
|
7539
|
-
|
|
7536
|
+
issuerDid: string;
|
|
7537
|
+
subjectDid: string;
|
|
7540
7538
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
7541
7539
|
scopes?: string[] | undefined;
|
|
7542
|
-
createdAt?: number | undefined;
|
|
7543
7540
|
metadata?: Record<string, any> | undefined;
|
|
7541
|
+
createdAt?: number | undefined;
|
|
7542
|
+
sessionId?: string | undefined;
|
|
7544
7543
|
userDid?: string | undefined;
|
|
7544
|
+
controller?: string | undefined;
|
|
7545
|
+
parentId?: string | undefined;
|
|
7545
7546
|
userIdentifier?: string | undefined;
|
|
7546
|
-
sessionId?: string | undefined;
|
|
7547
7547
|
}>;
|
|
7548
7548
|
}, "strip", z.ZodTypeAny, {
|
|
7549
|
-
id: string;
|
|
7550
7549
|
delegation: {
|
|
7551
|
-
id: string;
|
|
7552
|
-
issuerDid: string;
|
|
7553
|
-
subjectDid: string;
|
|
7554
7550
|
status: "active" | "revoked" | "expired";
|
|
7551
|
+
id: string;
|
|
7555
7552
|
constraints: {
|
|
7556
|
-
notBefore?: number | undefined;
|
|
7557
|
-
notAfter?: number | undefined;
|
|
7558
7553
|
scopes?: string[] | undefined;
|
|
7559
7554
|
audience?: string | string[] | undefined;
|
|
7555
|
+
notBefore?: number | undefined;
|
|
7556
|
+
notAfter?: number | undefined;
|
|
7560
7557
|
crisp?: z.objectOutputType<{
|
|
7561
7558
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7562
7559
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7603,26 +7600,26 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
7603
7600
|
} & {
|
|
7604
7601
|
[k: string]: unknown;
|
|
7605
7602
|
};
|
|
7606
|
-
|
|
7607
|
-
|
|
7603
|
+
issuerDid: string;
|
|
7604
|
+
subjectDid: string;
|
|
7608
7605
|
scopes?: string[] | undefined;
|
|
7609
|
-
createdAt?: number | undefined;
|
|
7610
7606
|
metadata?: Record<string, any> | undefined;
|
|
7607
|
+
createdAt?: number | undefined;
|
|
7608
|
+
sessionId?: string | undefined;
|
|
7611
7609
|
userDid?: string | undefined;
|
|
7610
|
+
controller?: string | undefined;
|
|
7611
|
+
parentId?: string | undefined;
|
|
7612
7612
|
userIdentifier?: string | undefined;
|
|
7613
|
-
sessionId?: string | undefined;
|
|
7614
7613
|
};
|
|
7615
|
-
}, {
|
|
7616
7614
|
id: string;
|
|
7615
|
+
}, {
|
|
7617
7616
|
delegation: {
|
|
7618
7617
|
id: string;
|
|
7619
|
-
issuerDid: string;
|
|
7620
|
-
subjectDid: string;
|
|
7621
7618
|
constraints: {
|
|
7622
|
-
notBefore?: number | undefined;
|
|
7623
|
-
notAfter?: number | undefined;
|
|
7624
7619
|
scopes?: string[] | undefined;
|
|
7625
7620
|
audience?: string | string[] | undefined;
|
|
7621
|
+
notBefore?: number | undefined;
|
|
7622
|
+
notAfter?: number | undefined;
|
|
7626
7623
|
crisp?: z.objectInputType<{
|
|
7627
7624
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7628
7625
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7669,16 +7666,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
7669
7666
|
} & {
|
|
7670
7667
|
[k: string]: unknown;
|
|
7671
7668
|
};
|
|
7672
|
-
|
|
7673
|
-
|
|
7669
|
+
issuerDid: string;
|
|
7670
|
+
subjectDid: string;
|
|
7674
7671
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
7675
7672
|
scopes?: string[] | undefined;
|
|
7676
|
-
createdAt?: number | undefined;
|
|
7677
7673
|
metadata?: Record<string, any> | undefined;
|
|
7674
|
+
createdAt?: number | undefined;
|
|
7675
|
+
sessionId?: string | undefined;
|
|
7678
7676
|
userDid?: string | undefined;
|
|
7677
|
+
controller?: string | undefined;
|
|
7678
|
+
parentId?: string | undefined;
|
|
7679
7679
|
userIdentifier?: string | undefined;
|
|
7680
|
-
sessionId?: string | undefined;
|
|
7681
7680
|
};
|
|
7681
|
+
id: string;
|
|
7682
7682
|
}>;
|
|
7683
7683
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
7684
7684
|
id: z.ZodString;
|
|
@@ -7687,14 +7687,14 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
7687
7687
|
statusListIndex: z.ZodString;
|
|
7688
7688
|
statusListCredential: z.ZodString;
|
|
7689
7689
|
}, "strip", z.ZodTypeAny, {
|
|
7690
|
-
id: string;
|
|
7691
7690
|
type: "StatusList2021Entry";
|
|
7691
|
+
id: string;
|
|
7692
7692
|
statusPurpose: "revocation" | "suspension";
|
|
7693
7693
|
statusListIndex: string;
|
|
7694
7694
|
statusListCredential: string;
|
|
7695
7695
|
}, {
|
|
7696
|
-
id: string;
|
|
7697
7696
|
type: "StatusList2021Entry";
|
|
7697
|
+
id: string;
|
|
7698
7698
|
statusPurpose: "revocation" | "suspension";
|
|
7699
7699
|
statusListIndex: string;
|
|
7700
7700
|
statusListCredential: string;
|
|
@@ -8189,15 +8189,13 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8189
8189
|
/** Optional metadata */
|
|
8190
8190
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8191
8191
|
}, "strip", z.ZodTypeAny, {
|
|
8192
|
-
id: string;
|
|
8193
|
-
issuerDid: string;
|
|
8194
|
-
subjectDid: string;
|
|
8195
8192
|
status: "active" | "revoked" | "expired";
|
|
8193
|
+
id: string;
|
|
8196
8194
|
constraints: {
|
|
8197
|
-
notBefore?: number | undefined;
|
|
8198
|
-
notAfter?: number | undefined;
|
|
8199
8195
|
scopes?: string[] | undefined;
|
|
8200
8196
|
audience?: string | string[] | undefined;
|
|
8197
|
+
notBefore?: number | undefined;
|
|
8198
|
+
notAfter?: number | undefined;
|
|
8201
8199
|
crisp?: z.objectOutputType<{
|
|
8202
8200
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8203
8201
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8244,23 +8242,23 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8244
8242
|
} & {
|
|
8245
8243
|
[k: string]: unknown;
|
|
8246
8244
|
};
|
|
8247
|
-
|
|
8248
|
-
|
|
8245
|
+
issuerDid: string;
|
|
8246
|
+
subjectDid: string;
|
|
8249
8247
|
scopes?: string[] | undefined;
|
|
8250
|
-
createdAt?: number | undefined;
|
|
8251
8248
|
metadata?: Record<string, any> | undefined;
|
|
8249
|
+
createdAt?: number | undefined;
|
|
8250
|
+
sessionId?: string | undefined;
|
|
8252
8251
|
userDid?: string | undefined;
|
|
8252
|
+
controller?: string | undefined;
|
|
8253
|
+
parentId?: string | undefined;
|
|
8253
8254
|
userIdentifier?: string | undefined;
|
|
8254
|
-
sessionId?: string | undefined;
|
|
8255
8255
|
}, {
|
|
8256
8256
|
id: string;
|
|
8257
|
-
issuerDid: string;
|
|
8258
|
-
subjectDid: string;
|
|
8259
8257
|
constraints: {
|
|
8260
|
-
notBefore?: number | undefined;
|
|
8261
|
-
notAfter?: number | undefined;
|
|
8262
8258
|
scopes?: string[] | undefined;
|
|
8263
8259
|
audience?: string | string[] | undefined;
|
|
8260
|
+
notBefore?: number | undefined;
|
|
8261
|
+
notAfter?: number | undefined;
|
|
8264
8262
|
crisp?: z.objectInputType<{
|
|
8265
8263
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8266
8264
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8307,28 +8305,27 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8307
8305
|
} & {
|
|
8308
8306
|
[k: string]: unknown;
|
|
8309
8307
|
};
|
|
8310
|
-
|
|
8311
|
-
|
|
8308
|
+
issuerDid: string;
|
|
8309
|
+
subjectDid: string;
|
|
8312
8310
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
8313
8311
|
scopes?: string[] | undefined;
|
|
8314
|
-
createdAt?: number | undefined;
|
|
8315
8312
|
metadata?: Record<string, any> | undefined;
|
|
8313
|
+
createdAt?: number | undefined;
|
|
8314
|
+
sessionId?: string | undefined;
|
|
8316
8315
|
userDid?: string | undefined;
|
|
8316
|
+
controller?: string | undefined;
|
|
8317
|
+
parentId?: string | undefined;
|
|
8317
8318
|
userIdentifier?: string | undefined;
|
|
8318
|
-
sessionId?: string | undefined;
|
|
8319
8319
|
}>;
|
|
8320
8320
|
}, "strip", z.ZodTypeAny, {
|
|
8321
|
-
id: string;
|
|
8322
8321
|
delegation: {
|
|
8323
|
-
id: string;
|
|
8324
|
-
issuerDid: string;
|
|
8325
|
-
subjectDid: string;
|
|
8326
8322
|
status: "active" | "revoked" | "expired";
|
|
8323
|
+
id: string;
|
|
8327
8324
|
constraints: {
|
|
8328
|
-
notBefore?: number | undefined;
|
|
8329
|
-
notAfter?: number | undefined;
|
|
8330
8325
|
scopes?: string[] | undefined;
|
|
8331
8326
|
audience?: string | string[] | undefined;
|
|
8327
|
+
notBefore?: number | undefined;
|
|
8328
|
+
notAfter?: number | undefined;
|
|
8332
8329
|
crisp?: z.objectOutputType<{
|
|
8333
8330
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8334
8331
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8375,26 +8372,26 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8375
8372
|
} & {
|
|
8376
8373
|
[k: string]: unknown;
|
|
8377
8374
|
};
|
|
8378
|
-
|
|
8379
|
-
|
|
8375
|
+
issuerDid: string;
|
|
8376
|
+
subjectDid: string;
|
|
8380
8377
|
scopes?: string[] | undefined;
|
|
8381
|
-
createdAt?: number | undefined;
|
|
8382
8378
|
metadata?: Record<string, any> | undefined;
|
|
8379
|
+
createdAt?: number | undefined;
|
|
8380
|
+
sessionId?: string | undefined;
|
|
8383
8381
|
userDid?: string | undefined;
|
|
8382
|
+
controller?: string | undefined;
|
|
8383
|
+
parentId?: string | undefined;
|
|
8384
8384
|
userIdentifier?: string | undefined;
|
|
8385
|
-
sessionId?: string | undefined;
|
|
8386
8385
|
};
|
|
8387
|
-
}, {
|
|
8388
8386
|
id: string;
|
|
8387
|
+
}, {
|
|
8389
8388
|
delegation: {
|
|
8390
8389
|
id: string;
|
|
8391
|
-
issuerDid: string;
|
|
8392
|
-
subjectDid: string;
|
|
8393
8390
|
constraints: {
|
|
8394
|
-
notBefore?: number | undefined;
|
|
8395
|
-
notAfter?: number | undefined;
|
|
8396
8391
|
scopes?: string[] | undefined;
|
|
8397
8392
|
audience?: string | string[] | undefined;
|
|
8393
|
+
notBefore?: number | undefined;
|
|
8394
|
+
notAfter?: number | undefined;
|
|
8398
8395
|
crisp?: z.objectInputType<{
|
|
8399
8396
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8400
8397
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8441,16 +8438,19 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8441
8438
|
} & {
|
|
8442
8439
|
[k: string]: unknown;
|
|
8443
8440
|
};
|
|
8444
|
-
|
|
8445
|
-
|
|
8441
|
+
issuerDid: string;
|
|
8442
|
+
subjectDid: string;
|
|
8446
8443
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
8447
8444
|
scopes?: string[] | undefined;
|
|
8448
|
-
createdAt?: number | undefined;
|
|
8449
8445
|
metadata?: Record<string, any> | undefined;
|
|
8446
|
+
createdAt?: number | undefined;
|
|
8447
|
+
sessionId?: string | undefined;
|
|
8450
8448
|
userDid?: string | undefined;
|
|
8449
|
+
controller?: string | undefined;
|
|
8450
|
+
parentId?: string | undefined;
|
|
8451
8451
|
userIdentifier?: string | undefined;
|
|
8452
|
-
sessionId?: string | undefined;
|
|
8453
8452
|
};
|
|
8453
|
+
id: string;
|
|
8454
8454
|
}>;
|
|
8455
8455
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
8456
8456
|
id: z.ZodString;
|
|
@@ -8459,14 +8459,14 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8459
8459
|
statusListIndex: z.ZodString;
|
|
8460
8460
|
statusListCredential: z.ZodString;
|
|
8461
8461
|
}, "strip", z.ZodTypeAny, {
|
|
8462
|
-
id: string;
|
|
8463
8462
|
type: "StatusList2021Entry";
|
|
8463
|
+
id: string;
|
|
8464
8464
|
statusPurpose: "revocation" | "suspension";
|
|
8465
8465
|
statusListIndex: string;
|
|
8466
8466
|
statusListCredential: string;
|
|
8467
8467
|
}, {
|
|
8468
|
-
id: string;
|
|
8469
8468
|
type: "StatusList2021Entry";
|
|
8469
|
+
id: string;
|
|
8470
8470
|
statusPurpose: "revocation" | "suspension";
|
|
8471
8471
|
statusListIndex: string;
|
|
8472
8472
|
statusListCredential: string;
|
|
@@ -8953,15 +8953,13 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8953
8953
|
/** Optional metadata */
|
|
8954
8954
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8955
8955
|
}, "strip", z.ZodTypeAny, {
|
|
8956
|
-
id: string;
|
|
8957
|
-
issuerDid: string;
|
|
8958
|
-
subjectDid: string;
|
|
8959
8956
|
status: "active" | "revoked" | "expired";
|
|
8957
|
+
id: string;
|
|
8960
8958
|
constraints: {
|
|
8961
|
-
notBefore?: number | undefined;
|
|
8962
|
-
notAfter?: number | undefined;
|
|
8963
8959
|
scopes?: string[] | undefined;
|
|
8964
8960
|
audience?: string | string[] | undefined;
|
|
8961
|
+
notBefore?: number | undefined;
|
|
8962
|
+
notAfter?: number | undefined;
|
|
8965
8963
|
crisp?: z.objectOutputType<{
|
|
8966
8964
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8967
8965
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9008,23 +9006,23 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
9008
9006
|
} & {
|
|
9009
9007
|
[k: string]: unknown;
|
|
9010
9008
|
};
|
|
9011
|
-
|
|
9012
|
-
|
|
9009
|
+
issuerDid: string;
|
|
9010
|
+
subjectDid: string;
|
|
9013
9011
|
scopes?: string[] | undefined;
|
|
9014
|
-
createdAt?: number | undefined;
|
|
9015
9012
|
metadata?: Record<string, any> | undefined;
|
|
9013
|
+
createdAt?: number | undefined;
|
|
9014
|
+
sessionId?: string | undefined;
|
|
9016
9015
|
userDid?: string | undefined;
|
|
9016
|
+
controller?: string | undefined;
|
|
9017
|
+
parentId?: string | undefined;
|
|
9017
9018
|
userIdentifier?: string | undefined;
|
|
9018
|
-
sessionId?: string | undefined;
|
|
9019
9019
|
}, {
|
|
9020
9020
|
id: string;
|
|
9021
|
-
issuerDid: string;
|
|
9022
|
-
subjectDid: string;
|
|
9023
9021
|
constraints: {
|
|
9024
|
-
notBefore?: number | undefined;
|
|
9025
|
-
notAfter?: number | undefined;
|
|
9026
9022
|
scopes?: string[] | undefined;
|
|
9027
9023
|
audience?: string | string[] | undefined;
|
|
9024
|
+
notBefore?: number | undefined;
|
|
9025
|
+
notAfter?: number | undefined;
|
|
9028
9026
|
crisp?: z.objectInputType<{
|
|
9029
9027
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9030
9028
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9071,28 +9069,27 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
9071
9069
|
} & {
|
|
9072
9070
|
[k: string]: unknown;
|
|
9073
9071
|
};
|
|
9074
|
-
|
|
9075
|
-
|
|
9072
|
+
issuerDid: string;
|
|
9073
|
+
subjectDid: string;
|
|
9076
9074
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
9077
9075
|
scopes?: string[] | undefined;
|
|
9078
|
-
createdAt?: number | undefined;
|
|
9079
9076
|
metadata?: Record<string, any> | undefined;
|
|
9077
|
+
createdAt?: number | undefined;
|
|
9078
|
+
sessionId?: string | undefined;
|
|
9080
9079
|
userDid?: string | undefined;
|
|
9080
|
+
controller?: string | undefined;
|
|
9081
|
+
parentId?: string | undefined;
|
|
9081
9082
|
userIdentifier?: string | undefined;
|
|
9082
|
-
sessionId?: string | undefined;
|
|
9083
9083
|
}>;
|
|
9084
9084
|
}, "strip", z.ZodTypeAny, {
|
|
9085
|
-
id: string;
|
|
9086
9085
|
delegation: {
|
|
9087
|
-
id: string;
|
|
9088
|
-
issuerDid: string;
|
|
9089
|
-
subjectDid: string;
|
|
9090
9086
|
status: "active" | "revoked" | "expired";
|
|
9087
|
+
id: string;
|
|
9091
9088
|
constraints: {
|
|
9092
|
-
notBefore?: number | undefined;
|
|
9093
|
-
notAfter?: number | undefined;
|
|
9094
9089
|
scopes?: string[] | undefined;
|
|
9095
9090
|
audience?: string | string[] | undefined;
|
|
9091
|
+
notBefore?: number | undefined;
|
|
9092
|
+
notAfter?: number | undefined;
|
|
9096
9093
|
crisp?: z.objectOutputType<{
|
|
9097
9094
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9098
9095
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9139,26 +9136,26 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
9139
9136
|
} & {
|
|
9140
9137
|
[k: string]: unknown;
|
|
9141
9138
|
};
|
|
9142
|
-
|
|
9143
|
-
|
|
9139
|
+
issuerDid: string;
|
|
9140
|
+
subjectDid: string;
|
|
9144
9141
|
scopes?: string[] | undefined;
|
|
9145
|
-
createdAt?: number | undefined;
|
|
9146
9142
|
metadata?: Record<string, any> | undefined;
|
|
9143
|
+
createdAt?: number | undefined;
|
|
9144
|
+
sessionId?: string | undefined;
|
|
9147
9145
|
userDid?: string | undefined;
|
|
9146
|
+
controller?: string | undefined;
|
|
9147
|
+
parentId?: string | undefined;
|
|
9148
9148
|
userIdentifier?: string | undefined;
|
|
9149
|
-
sessionId?: string | undefined;
|
|
9150
9149
|
};
|
|
9151
|
-
}, {
|
|
9152
9150
|
id: string;
|
|
9151
|
+
}, {
|
|
9153
9152
|
delegation: {
|
|
9154
9153
|
id: string;
|
|
9155
|
-
issuerDid: string;
|
|
9156
|
-
subjectDid: string;
|
|
9157
9154
|
constraints: {
|
|
9158
|
-
notBefore?: number | undefined;
|
|
9159
|
-
notAfter?: number | undefined;
|
|
9160
9155
|
scopes?: string[] | undefined;
|
|
9161
9156
|
audience?: string | string[] | undefined;
|
|
9157
|
+
notBefore?: number | undefined;
|
|
9158
|
+
notAfter?: number | undefined;
|
|
9162
9159
|
crisp?: z.objectInputType<{
|
|
9163
9160
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9164
9161
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9205,16 +9202,19 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
9205
9202
|
} & {
|
|
9206
9203
|
[k: string]: unknown;
|
|
9207
9204
|
};
|
|
9208
|
-
|
|
9209
|
-
|
|
9205
|
+
issuerDid: string;
|
|
9206
|
+
subjectDid: string;
|
|
9210
9207
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
9211
9208
|
scopes?: string[] | undefined;
|
|
9212
|
-
createdAt?: number | undefined;
|
|
9213
9209
|
metadata?: Record<string, any> | undefined;
|
|
9210
|
+
createdAt?: number | undefined;
|
|
9211
|
+
sessionId?: string | undefined;
|
|
9214
9212
|
userDid?: string | undefined;
|
|
9213
|
+
controller?: string | undefined;
|
|
9214
|
+
parentId?: string | undefined;
|
|
9215
9215
|
userIdentifier?: string | undefined;
|
|
9216
|
-
sessionId?: string | undefined;
|
|
9217
9216
|
};
|
|
9217
|
+
id: string;
|
|
9218
9218
|
}>;
|
|
9219
9219
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
9220
9220
|
id: z.ZodString;
|
|
@@ -9223,14 +9223,14 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
9223
9223
|
statusListIndex: z.ZodString;
|
|
9224
9224
|
statusListCredential: z.ZodString;
|
|
9225
9225
|
}, "strip", z.ZodTypeAny, {
|
|
9226
|
-
id: string;
|
|
9227
9226
|
type: "StatusList2021Entry";
|
|
9227
|
+
id: string;
|
|
9228
9228
|
statusPurpose: "revocation" | "suspension";
|
|
9229
9229
|
statusListIndex: string;
|
|
9230
9230
|
statusListCredential: string;
|
|
9231
9231
|
}, {
|
|
9232
|
-
id: string;
|
|
9233
9232
|
type: "StatusList2021Entry";
|
|
9233
|
+
id: string;
|
|
9234
9234
|
statusPurpose: "revocation" | "suspension";
|
|
9235
9235
|
statusListIndex: string;
|
|
9236
9236
|
statusListCredential: string;
|