@kya-os/contracts 1.5.1 → 1.5.2-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,6 +54,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
54
54
  notBefore: z.ZodOptional<z.ZodNumber>;
55
55
  notAfter: z.ZodOptional<z.ZodNumber>;
56
56
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
57
58
  crisp: z.ZodOptional<z.ZodObject<{
58
59
  budget: z.ZodOptional<z.ZodObject<{
59
60
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -185,6 +186,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
185
186
  notBefore: z.ZodOptional<z.ZodNumber>;
186
187
  notAfter: z.ZodOptional<z.ZodNumber>;
187
188
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
188
190
  crisp: z.ZodOptional<z.ZodObject<{
189
191
  budget: z.ZodOptional<z.ZodObject<{
190
192
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -316,6 +318,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
316
318
  notBefore: z.ZodOptional<z.ZodNumber>;
317
319
  notAfter: z.ZodOptional<z.ZodNumber>;
318
320
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
321
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
319
322
  crisp: z.ZodOptional<z.ZodObject<{
320
323
  budget: z.ZodOptional<z.ZodObject<{
321
324
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -474,6 +477,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
474
477
  notBefore: z.ZodOptional<z.ZodNumber>;
475
478
  notAfter: z.ZodOptional<z.ZodNumber>;
476
479
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
480
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
477
481
  crisp: z.ZodOptional<z.ZodObject<{
478
482
  budget: z.ZodOptional<z.ZodObject<{
479
483
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -605,6 +609,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
605
609
  notBefore: z.ZodOptional<z.ZodNumber>;
606
610
  notAfter: z.ZodOptional<z.ZodNumber>;
607
611
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
612
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
608
613
  crisp: z.ZodOptional<z.ZodObject<{
609
614
  budget: z.ZodOptional<z.ZodObject<{
610
615
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -736,6 +741,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
736
741
  notBefore: z.ZodOptional<z.ZodNumber>;
737
742
  notAfter: z.ZodOptional<z.ZodNumber>;
738
743
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
744
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
739
745
  crisp: z.ZodOptional<z.ZodObject<{
740
746
  budget: z.ZodOptional<z.ZodObject<{
741
747
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -894,6 +900,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
894
900
  notBefore: z.ZodOptional<z.ZodNumber>;
895
901
  notAfter: z.ZodOptional<z.ZodNumber>;
896
902
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
903
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
897
904
  crisp: z.ZodOptional<z.ZodObject<{
898
905
  budget: z.ZodOptional<z.ZodObject<{
899
906
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1025,6 +1032,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
1025
1032
  notBefore: z.ZodOptional<z.ZodNumber>;
1026
1033
  notAfter: z.ZodOptional<z.ZodNumber>;
1027
1034
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1028
1036
  crisp: z.ZodOptional<z.ZodObject<{
1029
1037
  budget: z.ZodOptional<z.ZodObject<{
1030
1038
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1156,6 +1164,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
1156
1164
  notBefore: z.ZodOptional<z.ZodNumber>;
1157
1165
  notAfter: z.ZodOptional<z.ZodNumber>;
1158
1166
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1167
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1159
1168
  crisp: z.ZodOptional<z.ZodObject<{
1160
1169
  budget: z.ZodOptional<z.ZodObject<{
1161
1170
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1319,6 +1328,7 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1319
1328
  notBefore: z.ZodOptional<z.ZodNumber>;
1320
1329
  notAfter: z.ZodOptional<z.ZodNumber>;
1321
1330
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1331
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1322
1332
  crisp: z.ZodOptional<z.ZodObject<{
1323
1333
  budget: z.ZodOptional<z.ZodObject<{
1324
1334
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1450,6 +1460,7 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1450
1460
  notBefore: z.ZodOptional<z.ZodNumber>;
1451
1461
  notAfter: z.ZodOptional<z.ZodNumber>;
1452
1462
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1463
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1453
1464
  crisp: z.ZodOptional<z.ZodObject<{
1454
1465
  budget: z.ZodOptional<z.ZodObject<{
1455
1466
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1581,6 +1592,7 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1581
1592
  notBefore: z.ZodOptional<z.ZodNumber>;
1582
1593
  notAfter: z.ZodOptional<z.ZodNumber>;
1583
1594
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1595
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1584
1596
  crisp: z.ZodOptional<z.ZodObject<{
1585
1597
  budget: z.ZodOptional<z.ZodObject<{
1586
1598
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1714,9 +1726,10 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1714
1726
  }, "strip", z.ZodTypeAny, {
1715
1727
  status: "active" | "revoked" | "expired";
1716
1728
  constraints: {
1717
- scopes?: string[] | undefined;
1729
+ audience?: string | string[] | undefined;
1718
1730
  notBefore?: number | undefined;
1719
1731
  notAfter?: number | undefined;
1732
+ scopes?: string[] | undefined;
1720
1733
  crisp?: z.objectOutputType<{
1721
1734
  budget: z.ZodOptional<z.ZodObject<{
1722
1735
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1771,9 +1784,10 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1771
1784
  }, {
1772
1785
  status: "active" | "revoked" | "expired";
1773
1786
  constraints: {
1774
- scopes?: string[] | undefined;
1787
+ audience?: string | string[] | undefined;
1775
1788
  notBefore?: number | undefined;
1776
1789
  notAfter?: number | undefined;
1790
+ scopes?: string[] | undefined;
1777
1791
  crisp?: z.objectInputType<{
1778
1792
  budget: z.ZodOptional<z.ZodObject<{
1779
1793
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1854,6 +1868,7 @@ export declare const DelegationChainSchema: z.ZodObject<{
1854
1868
  notBefore: z.ZodOptional<z.ZodNumber>;
1855
1869
  notAfter: z.ZodOptional<z.ZodNumber>;
1856
1870
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1871
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1857
1872
  crisp: z.ZodOptional<z.ZodObject<{
1858
1873
  budget: z.ZodOptional<z.ZodObject<{
1859
1874
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1985,6 +2000,7 @@ export declare const DelegationChainSchema: z.ZodObject<{
1985
2000
  notBefore: z.ZodOptional<z.ZodNumber>;
1986
2001
  notAfter: z.ZodOptional<z.ZodNumber>;
1987
2002
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2003
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1988
2004
  crisp: z.ZodOptional<z.ZodObject<{
1989
2005
  budget: z.ZodOptional<z.ZodObject<{
1990
2006
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2116,6 +2132,7 @@ export declare const DelegationChainSchema: z.ZodObject<{
2116
2132
  notBefore: z.ZodOptional<z.ZodNumber>;
2117
2133
  notAfter: z.ZodOptional<z.ZodNumber>;
2118
2134
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2135
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2119
2136
  crisp: z.ZodOptional<z.ZodObject<{
2120
2137
  budget: z.ZodOptional<z.ZodObject<{
2121
2138
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2249,9 +2266,10 @@ export declare const DelegationChainSchema: z.ZodObject<{
2249
2266
  }, "strip", z.ZodTypeAny, {
2250
2267
  status: "active" | "revoked" | "expired";
2251
2268
  constraints: {
2252
- scopes?: string[] | undefined;
2269
+ audience?: string | string[] | undefined;
2253
2270
  notBefore?: number | undefined;
2254
2271
  notAfter?: number | undefined;
2272
+ scopes?: string[] | undefined;
2255
2273
  crisp?: z.objectOutputType<{
2256
2274
  budget: z.ZodOptional<z.ZodObject<{
2257
2275
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2306,9 +2324,10 @@ export declare const DelegationChainSchema: z.ZodObject<{
2306
2324
  }, {
2307
2325
  status: "active" | "revoked" | "expired";
2308
2326
  constraints: {
2309
- scopes?: string[] | undefined;
2327
+ audience?: string | string[] | undefined;
2310
2328
  notBefore?: number | undefined;
2311
2329
  notAfter?: number | undefined;
2330
+ scopes?: string[] | undefined;
2312
2331
  crisp?: z.objectInputType<{
2313
2332
  budget: z.ZodOptional<z.ZodObject<{
2314
2333
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2375,9 +2394,10 @@ export declare const DelegationChainSchema: z.ZodObject<{
2375
2394
  chain: {
2376
2395
  status: "active" | "revoked" | "expired";
2377
2396
  constraints: {
2378
- scopes?: string[] | undefined;
2397
+ audience?: string | string[] | undefined;
2379
2398
  notBefore?: number | undefined;
2380
2399
  notAfter?: number | undefined;
2400
+ scopes?: string[] | undefined;
2381
2401
  crisp?: z.objectOutputType<{
2382
2402
  budget: z.ZodOptional<z.ZodObject<{
2383
2403
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2439,9 +2459,10 @@ export declare const DelegationChainSchema: z.ZodObject<{
2439
2459
  chain: {
2440
2460
  status: "active" | "revoked" | "expired";
2441
2461
  constraints: {
2442
- scopes?: string[] | undefined;
2462
+ audience?: string | string[] | undefined;
2443
2463
  notBefore?: number | undefined;
2444
2464
  notAfter?: number | undefined;
2465
+ scopes?: string[] | undefined;
2445
2466
  crisp?: z.objectInputType<{
2446
2467
  budget: z.ZodOptional<z.ZodObject<{
2447
2468
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2514,6 +2535,7 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2514
2535
  notBefore: z.ZodOptional<z.ZodNumber>;
2515
2536
  notAfter: z.ZodOptional<z.ZodNumber>;
2516
2537
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2538
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2517
2539
  crisp: z.ZodOptional<z.ZodObject<{
2518
2540
  budget: z.ZodOptional<z.ZodObject<{
2519
2541
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2645,6 +2667,7 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2645
2667
  notBefore: z.ZodOptional<z.ZodNumber>;
2646
2668
  notAfter: z.ZodOptional<z.ZodNumber>;
2647
2669
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2670
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2648
2671
  crisp: z.ZodOptional<z.ZodObject<{
2649
2672
  budget: z.ZodOptional<z.ZodObject<{
2650
2673
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2776,6 +2799,7 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2776
2799
  notBefore: z.ZodOptional<z.ZodNumber>;
2777
2800
  notAfter: z.ZodOptional<z.ZodNumber>;
2778
2801
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2802
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2779
2803
  crisp: z.ZodOptional<z.ZodObject<{
2780
2804
  budget: z.ZodOptional<z.ZodObject<{
2781
2805
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2910,9 +2934,10 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2910
2934
  vcId: z.ZodOptional<z.ZodString>;
2911
2935
  }, "strip", z.ZodTypeAny, {
2912
2936
  constraints: {
2913
- scopes?: string[] | undefined;
2937
+ audience?: string | string[] | undefined;
2914
2938
  notBefore?: number | undefined;
2915
2939
  notAfter?: number | undefined;
2940
+ scopes?: string[] | undefined;
2916
2941
  crisp?: z.objectOutputType<{
2917
2942
  budget: z.ZodOptional<z.ZodObject<{
2918
2943
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2966,9 +2991,10 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2966
2991
  parentId?: string | undefined;
2967
2992
  }, {
2968
2993
  constraints: {
2969
- scopes?: string[] | undefined;
2994
+ audience?: string | string[] | undefined;
2970
2995
  notBefore?: number | undefined;
2971
2996
  notAfter?: number | undefined;
2997
+ scopes?: string[] | undefined;
2972
2998
  crisp?: z.objectInputType<{
2973
2999
  budget: z.ZodOptional<z.ZodObject<{
2974
3000
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3047,21 +3073,21 @@ export declare const DelegationVerificationResultSchema: z.ZodObject<{
3047
3073
  }, "strip", z.ZodTypeAny, {
3048
3074
  valid: boolean;
3049
3075
  status: "active" | "revoked" | "expired";
3050
- verifiedAt: number;
3051
3076
  delegationId: string;
3052
- details?: Record<string, any> | undefined;
3077
+ verifiedAt: number;
3053
3078
  reason?: string | undefined;
3054
3079
  credentialValid?: boolean | undefined;
3055
3080
  chainValid?: boolean | undefined;
3081
+ details?: Record<string, any> | undefined;
3056
3082
  }, {
3057
3083
  valid: boolean;
3058
3084
  status: "active" | "revoked" | "expired";
3059
- verifiedAt: number;
3060
3085
  delegationId: string;
3061
- details?: Record<string, any> | undefined;
3086
+ verifiedAt: number;
3062
3087
  reason?: string | undefined;
3063
3088
  credentialValid?: boolean | undefined;
3064
3089
  chainValid?: boolean | undefined;
3090
+ details?: Record<string, any> | undefined;
3065
3091
  }>;
3066
3092
  export type DelegationVerificationResult = z.infer<typeof DelegationVerificationResultSchema>;
3067
3093
  /**
@@ -3091,6 +3117,7 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3091
3117
  notBefore: z.ZodOptional<z.ZodNumber>;
3092
3118
  notAfter: z.ZodOptional<z.ZodNumber>;
3093
3119
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3120
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
3094
3121
  crisp: z.ZodOptional<z.ZodObject<{
3095
3122
  budget: z.ZodOptional<z.ZodObject<{
3096
3123
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3222,6 +3249,7 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3222
3249
  notBefore: z.ZodOptional<z.ZodNumber>;
3223
3250
  notAfter: z.ZodOptional<z.ZodNumber>;
3224
3251
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3252
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
3225
3253
  crisp: z.ZodOptional<z.ZodObject<{
3226
3254
  budget: z.ZodOptional<z.ZodObject<{
3227
3255
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3353,6 +3381,7 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3353
3381
  notBefore: z.ZodOptional<z.ZodNumber>;
3354
3382
  notAfter: z.ZodOptional<z.ZodNumber>;
3355
3383
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3384
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
3356
3385
  crisp: z.ZodOptional<z.ZodObject<{
3357
3386
  budget: z.ZodOptional<z.ZodObject<{
3358
3387
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3511,6 +3540,7 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3511
3540
  notBefore: z.ZodOptional<z.ZodNumber>;
3512
3541
  notAfter: z.ZodOptional<z.ZodNumber>;
3513
3542
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3543
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
3514
3544
  crisp: z.ZodOptional<z.ZodObject<{
3515
3545
  budget: z.ZodOptional<z.ZodObject<{
3516
3546
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3642,6 +3672,7 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3642
3672
  notBefore: z.ZodOptional<z.ZodNumber>;
3643
3673
  notAfter: z.ZodOptional<z.ZodNumber>;
3644
3674
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3675
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
3645
3676
  crisp: z.ZodOptional<z.ZodObject<{
3646
3677
  budget: z.ZodOptional<z.ZodObject<{
3647
3678
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3773,6 +3804,7 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3773
3804
  notBefore: z.ZodOptional<z.ZodNumber>;
3774
3805
  notAfter: z.ZodOptional<z.ZodNumber>;
3775
3806
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3807
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
3776
3808
  crisp: z.ZodOptional<z.ZodObject<{
3777
3809
  budget: z.ZodOptional<z.ZodObject<{
3778
3810
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3928,9 +3960,10 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
3928
3960
  chain: {
3929
3961
  status: "active" | "revoked" | "expired";
3930
3962
  constraints: {
3931
- scopes?: string[] | undefined;
3963
+ audience?: string | string[] | undefined;
3932
3964
  notBefore?: number | undefined;
3933
3965
  notAfter?: number | undefined;
3966
+ scopes?: string[] | undefined;
3934
3967
  crisp?: z.objectInputType<{
3935
3968
  budget: z.ZodOptional<z.ZodObject<{
3936
3969
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3992,9 +4025,10 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
3992
4025
  chain: {
3993
4026
  status: "active" | "revoked" | "expired";
3994
4027
  constraints: {
3995
- scopes?: string[] | undefined;
4028
+ audience?: string | string[] | undefined;
3996
4029
  notBefore?: number | undefined;
3997
4030
  notAfter?: number | undefined;
4031
+ scopes?: string[] | undefined;
3998
4032
  crisp?: z.objectOutputType<{
3999
4033
  budget: z.ZodOptional<z.ZodObject<{
4000
4034
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4121,6 +4155,7 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4121
4155
  notBefore: z.ZodOptional<z.ZodNumber>;
4122
4156
  notAfter: z.ZodOptional<z.ZodNumber>;
4123
4157
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4158
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
4124
4159
  crisp: z.ZodOptional<z.ZodObject<{
4125
4160
  budget: z.ZodOptional<z.ZodObject<{
4126
4161
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4252,6 +4287,7 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4252
4287
  notBefore: z.ZodOptional<z.ZodNumber>;
4253
4288
  notAfter: z.ZodOptional<z.ZodNumber>;
4254
4289
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4290
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
4255
4291
  crisp: z.ZodOptional<z.ZodObject<{
4256
4292
  budget: z.ZodOptional<z.ZodObject<{
4257
4293
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4383,6 +4419,7 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4383
4419
  notBefore: z.ZodOptional<z.ZodNumber>;
4384
4420
  notAfter: z.ZodOptional<z.ZodNumber>;
4385
4421
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4422
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
4386
4423
  crisp: z.ZodOptional<z.ZodObject<{
4387
4424
  budget: z.ZodOptional<z.ZodObject<{
4388
4425
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4519,11 +4556,11 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4519
4556
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4520
4557
  }, "strip", z.ZodTypeAny, {
4521
4558
  status: "active" | "revoked" | "expired";
4522
- id: string;
4523
4559
  constraints: {
4524
- scopes?: string[] | undefined;
4560
+ audience?: string | string[] | undefined;
4525
4561
  notBefore?: number | undefined;
4526
4562
  notAfter?: number | undefined;
4563
+ scopes?: string[] | undefined;
4527
4564
  crisp?: z.objectOutputType<{
4528
4565
  budget: z.ZodOptional<z.ZodObject<{
4529
4566
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4570,18 +4607,19 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4570
4607
  } & {
4571
4608
  [k: string]: unknown;
4572
4609
  };
4610
+ id: string;
4573
4611
  issuerDid: string;
4574
4612
  subjectDid: string;
4575
4613
  createdAt?: number | undefined;
4576
- metadata?: Record<string, any> | undefined;
4577
4614
  controller?: string | undefined;
4578
4615
  parentId?: string | undefined;
4616
+ metadata?: Record<string, any> | undefined;
4579
4617
  }, {
4580
- id: string;
4581
4618
  constraints: {
4582
- scopes?: string[] | undefined;
4619
+ audience?: string | string[] | undefined;
4583
4620
  notBefore?: number | undefined;
4584
4621
  notAfter?: number | undefined;
4622
+ scopes?: string[] | undefined;
4585
4623
  crisp?: z.objectInputType<{
4586
4624
  budget: z.ZodOptional<z.ZodObject<{
4587
4625
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4628,22 +4666,24 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4628
4666
  } & {
4629
4667
  [k: string]: unknown;
4630
4668
  };
4669
+ id: string;
4631
4670
  issuerDid: string;
4632
4671
  subjectDid: string;
4633
4672
  status?: "active" | "revoked" | "expired" | undefined;
4634
4673
  createdAt?: number | undefined;
4635
- metadata?: Record<string, any> | undefined;
4636
4674
  controller?: string | undefined;
4637
4675
  parentId?: string | undefined;
4676
+ metadata?: Record<string, any> | undefined;
4638
4677
  }>;
4639
4678
  }, "strip", z.ZodTypeAny, {
4679
+ id: string;
4640
4680
  delegation: {
4641
4681
  status: "active" | "revoked" | "expired";
4642
- id: string;
4643
4682
  constraints: {
4644
- scopes?: string[] | undefined;
4683
+ audience?: string | string[] | undefined;
4645
4684
  notBefore?: number | undefined;
4646
4685
  notAfter?: number | undefined;
4686
+ scopes?: string[] | undefined;
4647
4687
  crisp?: z.objectOutputType<{
4648
4688
  budget: z.ZodOptional<z.ZodObject<{
4649
4689
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4690,21 +4730,22 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4690
4730
  } & {
4691
4731
  [k: string]: unknown;
4692
4732
  };
4733
+ id: string;
4693
4734
  issuerDid: string;
4694
4735
  subjectDid: string;
4695
4736
  createdAt?: number | undefined;
4696
- metadata?: Record<string, any> | undefined;
4697
4737
  controller?: string | undefined;
4698
4738
  parentId?: string | undefined;
4739
+ metadata?: Record<string, any> | undefined;
4699
4740
  };
4700
- id: string;
4701
4741
  }, {
4742
+ id: string;
4702
4743
  delegation: {
4703
- id: string;
4704
4744
  constraints: {
4705
- scopes?: string[] | undefined;
4745
+ audience?: string | string[] | undefined;
4706
4746
  notBefore?: number | undefined;
4707
4747
  notAfter?: number | undefined;
4748
+ scopes?: string[] | undefined;
4708
4749
  crisp?: z.objectInputType<{
4709
4750
  budget: z.ZodOptional<z.ZodObject<{
4710
4751
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4751,15 +4792,15 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4751
4792
  } & {
4752
4793
  [k: string]: unknown;
4753
4794
  };
4795
+ id: string;
4754
4796
  issuerDid: string;
4755
4797
  subjectDid: string;
4756
4798
  status?: "active" | "revoked" | "expired" | undefined;
4757
4799
  createdAt?: number | undefined;
4758
- metadata?: Record<string, any> | undefined;
4759
4800
  controller?: string | undefined;
4760
4801
  parentId?: string | undefined;
4802
+ metadata?: Record<string, any> | undefined;
4761
4803
  };
4762
- id: string;
4763
4804
  }>;
4764
4805
  export type DelegationCredentialSubject = z.infer<typeof DelegationCredentialSubjectSchema>;
4765
4806
  /**
@@ -4819,6 +4860,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
4819
4860
  notBefore: z.ZodOptional<z.ZodNumber>;
4820
4861
  notAfter: z.ZodOptional<z.ZodNumber>;
4821
4862
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4863
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
4822
4864
  crisp: z.ZodOptional<z.ZodObject<{
4823
4865
  budget: z.ZodOptional<z.ZodObject<{
4824
4866
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4950,6 +4992,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
4950
4992
  notBefore: z.ZodOptional<z.ZodNumber>;
4951
4993
  notAfter: z.ZodOptional<z.ZodNumber>;
4952
4994
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4995
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
4953
4996
  crisp: z.ZodOptional<z.ZodObject<{
4954
4997
  budget: z.ZodOptional<z.ZodObject<{
4955
4998
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5081,6 +5124,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5081
5124
  notBefore: z.ZodOptional<z.ZodNumber>;
5082
5125
  notAfter: z.ZodOptional<z.ZodNumber>;
5083
5126
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5127
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
5084
5128
  crisp: z.ZodOptional<z.ZodObject<{
5085
5129
  budget: z.ZodOptional<z.ZodObject<{
5086
5130
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5217,11 +5261,11 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5217
5261
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5218
5262
  }, "strip", z.ZodTypeAny, {
5219
5263
  status: "active" | "revoked" | "expired";
5220
- id: string;
5221
5264
  constraints: {
5222
- scopes?: string[] | undefined;
5265
+ audience?: string | string[] | undefined;
5223
5266
  notBefore?: number | undefined;
5224
5267
  notAfter?: number | undefined;
5268
+ scopes?: string[] | undefined;
5225
5269
  crisp?: z.objectOutputType<{
5226
5270
  budget: z.ZodOptional<z.ZodObject<{
5227
5271
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5268,18 +5312,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5268
5312
  } & {
5269
5313
  [k: string]: unknown;
5270
5314
  };
5315
+ id: string;
5271
5316
  issuerDid: string;
5272
5317
  subjectDid: string;
5273
5318
  createdAt?: number | undefined;
5274
- metadata?: Record<string, any> | undefined;
5275
5319
  controller?: string | undefined;
5276
5320
  parentId?: string | undefined;
5321
+ metadata?: Record<string, any> | undefined;
5277
5322
  }, {
5278
- id: string;
5279
5323
  constraints: {
5280
- scopes?: string[] | undefined;
5324
+ audience?: string | string[] | undefined;
5281
5325
  notBefore?: number | undefined;
5282
5326
  notAfter?: number | undefined;
5327
+ scopes?: string[] | undefined;
5283
5328
  crisp?: z.objectInputType<{
5284
5329
  budget: z.ZodOptional<z.ZodObject<{
5285
5330
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5326,22 +5371,24 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5326
5371
  } & {
5327
5372
  [k: string]: unknown;
5328
5373
  };
5374
+ id: string;
5329
5375
  issuerDid: string;
5330
5376
  subjectDid: string;
5331
5377
  status?: "active" | "revoked" | "expired" | undefined;
5332
5378
  createdAt?: number | undefined;
5333
- metadata?: Record<string, any> | undefined;
5334
5379
  controller?: string | undefined;
5335
5380
  parentId?: string | undefined;
5381
+ metadata?: Record<string, any> | undefined;
5336
5382
  }>;
5337
5383
  }, "strip", z.ZodTypeAny, {
5384
+ id: string;
5338
5385
  delegation: {
5339
5386
  status: "active" | "revoked" | "expired";
5340
- id: string;
5341
5387
  constraints: {
5342
- scopes?: string[] | undefined;
5388
+ audience?: string | string[] | undefined;
5343
5389
  notBefore?: number | undefined;
5344
5390
  notAfter?: number | undefined;
5391
+ scopes?: string[] | undefined;
5345
5392
  crisp?: z.objectOutputType<{
5346
5393
  budget: z.ZodOptional<z.ZodObject<{
5347
5394
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5388,21 +5435,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5388
5435
  } & {
5389
5436
  [k: string]: unknown;
5390
5437
  };
5438
+ id: string;
5391
5439
  issuerDid: string;
5392
5440
  subjectDid: string;
5393
5441
  createdAt?: number | undefined;
5394
- metadata?: Record<string, any> | undefined;
5395
5442
  controller?: string | undefined;
5396
5443
  parentId?: string | undefined;
5444
+ metadata?: Record<string, any> | undefined;
5397
5445
  };
5398
- id: string;
5399
5446
  }, {
5447
+ id: string;
5400
5448
  delegation: {
5401
- id: string;
5402
5449
  constraints: {
5403
- scopes?: string[] | undefined;
5450
+ audience?: string | string[] | undefined;
5404
5451
  notBefore?: number | undefined;
5405
5452
  notAfter?: number | undefined;
5453
+ scopes?: string[] | undefined;
5406
5454
  crisp?: z.objectInputType<{
5407
5455
  budget: z.ZodOptional<z.ZodObject<{
5408
5456
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5449,15 +5497,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5449
5497
  } & {
5450
5498
  [k: string]: unknown;
5451
5499
  };
5500
+ id: string;
5452
5501
  issuerDid: string;
5453
5502
  subjectDid: string;
5454
5503
  status?: "active" | "revoked" | "expired" | undefined;
5455
5504
  createdAt?: number | undefined;
5456
- metadata?: Record<string, any> | undefined;
5457
5505
  controller?: string | undefined;
5458
5506
  parentId?: string | undefined;
5507
+ metadata?: Record<string, any> | undefined;
5459
5508
  };
5460
- id: string;
5461
5509
  }>;
5462
5510
  credentialStatus: z.ZodOptional<z.ZodObject<{
5463
5511
  id: z.ZodString;
@@ -5528,6 +5576,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5528
5576
  notBefore: z.ZodOptional<z.ZodNumber>;
5529
5577
  notAfter: z.ZodOptional<z.ZodNumber>;
5530
5578
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5579
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
5531
5580
  crisp: z.ZodOptional<z.ZodObject<{
5532
5581
  budget: z.ZodOptional<z.ZodObject<{
5533
5582
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5659,6 +5708,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5659
5708
  notBefore: z.ZodOptional<z.ZodNumber>;
5660
5709
  notAfter: z.ZodOptional<z.ZodNumber>;
5661
5710
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5711
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
5662
5712
  crisp: z.ZodOptional<z.ZodObject<{
5663
5713
  budget: z.ZodOptional<z.ZodObject<{
5664
5714
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5790,6 +5840,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5790
5840
  notBefore: z.ZodOptional<z.ZodNumber>;
5791
5841
  notAfter: z.ZodOptional<z.ZodNumber>;
5792
5842
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5843
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
5793
5844
  crisp: z.ZodOptional<z.ZodObject<{
5794
5845
  budget: z.ZodOptional<z.ZodObject<{
5795
5846
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5926,11 +5977,11 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5926
5977
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5927
5978
  }, "strip", z.ZodTypeAny, {
5928
5979
  status: "active" | "revoked" | "expired";
5929
- id: string;
5930
5980
  constraints: {
5931
- scopes?: string[] | undefined;
5981
+ audience?: string | string[] | undefined;
5932
5982
  notBefore?: number | undefined;
5933
5983
  notAfter?: number | undefined;
5984
+ scopes?: string[] | undefined;
5934
5985
  crisp?: z.objectOutputType<{
5935
5986
  budget: z.ZodOptional<z.ZodObject<{
5936
5987
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5977,18 +6028,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5977
6028
  } & {
5978
6029
  [k: string]: unknown;
5979
6030
  };
6031
+ id: string;
5980
6032
  issuerDid: string;
5981
6033
  subjectDid: string;
5982
6034
  createdAt?: number | undefined;
5983
- metadata?: Record<string, any> | undefined;
5984
6035
  controller?: string | undefined;
5985
6036
  parentId?: string | undefined;
6037
+ metadata?: Record<string, any> | undefined;
5986
6038
  }, {
5987
- id: string;
5988
6039
  constraints: {
5989
- scopes?: string[] | undefined;
6040
+ audience?: string | string[] | undefined;
5990
6041
  notBefore?: number | undefined;
5991
6042
  notAfter?: number | undefined;
6043
+ scopes?: string[] | undefined;
5992
6044
  crisp?: z.objectInputType<{
5993
6045
  budget: z.ZodOptional<z.ZodObject<{
5994
6046
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6035,22 +6087,24 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6035
6087
  } & {
6036
6088
  [k: string]: unknown;
6037
6089
  };
6090
+ id: string;
6038
6091
  issuerDid: string;
6039
6092
  subjectDid: string;
6040
6093
  status?: "active" | "revoked" | "expired" | undefined;
6041
6094
  createdAt?: number | undefined;
6042
- metadata?: Record<string, any> | undefined;
6043
6095
  controller?: string | undefined;
6044
6096
  parentId?: string | undefined;
6097
+ metadata?: Record<string, any> | undefined;
6045
6098
  }>;
6046
6099
  }, "strip", z.ZodTypeAny, {
6100
+ id: string;
6047
6101
  delegation: {
6048
6102
  status: "active" | "revoked" | "expired";
6049
- id: string;
6050
6103
  constraints: {
6051
- scopes?: string[] | undefined;
6104
+ audience?: string | string[] | undefined;
6052
6105
  notBefore?: number | undefined;
6053
6106
  notAfter?: number | undefined;
6107
+ scopes?: string[] | undefined;
6054
6108
  crisp?: z.objectOutputType<{
6055
6109
  budget: z.ZodOptional<z.ZodObject<{
6056
6110
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6097,21 +6151,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6097
6151
  } & {
6098
6152
  [k: string]: unknown;
6099
6153
  };
6154
+ id: string;
6100
6155
  issuerDid: string;
6101
6156
  subjectDid: string;
6102
6157
  createdAt?: number | undefined;
6103
- metadata?: Record<string, any> | undefined;
6104
6158
  controller?: string | undefined;
6105
6159
  parentId?: string | undefined;
6160
+ metadata?: Record<string, any> | undefined;
6106
6161
  };
6107
- id: string;
6108
6162
  }, {
6163
+ id: string;
6109
6164
  delegation: {
6110
- id: string;
6111
6165
  constraints: {
6112
- scopes?: string[] | undefined;
6166
+ audience?: string | string[] | undefined;
6113
6167
  notBefore?: number | undefined;
6114
6168
  notAfter?: number | undefined;
6169
+ scopes?: string[] | undefined;
6115
6170
  crisp?: z.objectInputType<{
6116
6171
  budget: z.ZodOptional<z.ZodObject<{
6117
6172
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6158,15 +6213,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6158
6213
  } & {
6159
6214
  [k: string]: unknown;
6160
6215
  };
6216
+ id: string;
6161
6217
  issuerDid: string;
6162
6218
  subjectDid: string;
6163
6219
  status?: "active" | "revoked" | "expired" | undefined;
6164
6220
  createdAt?: number | undefined;
6165
- metadata?: Record<string, any> | undefined;
6166
6221
  controller?: string | undefined;
6167
6222
  parentId?: string | undefined;
6223
+ metadata?: Record<string, any> | undefined;
6168
6224
  };
6169
- id: string;
6170
6225
  }>;
6171
6226
  credentialStatus: z.ZodOptional<z.ZodObject<{
6172
6227
  id: z.ZodString;
@@ -6237,6 +6292,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6237
6292
  notBefore: z.ZodOptional<z.ZodNumber>;
6238
6293
  notAfter: z.ZodOptional<z.ZodNumber>;
6239
6294
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6295
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
6240
6296
  crisp: z.ZodOptional<z.ZodObject<{
6241
6297
  budget: z.ZodOptional<z.ZodObject<{
6242
6298
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6368,6 +6424,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6368
6424
  notBefore: z.ZodOptional<z.ZodNumber>;
6369
6425
  notAfter: z.ZodOptional<z.ZodNumber>;
6370
6426
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6427
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
6371
6428
  crisp: z.ZodOptional<z.ZodObject<{
6372
6429
  budget: z.ZodOptional<z.ZodObject<{
6373
6430
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6499,6 +6556,7 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6499
6556
  notBefore: z.ZodOptional<z.ZodNumber>;
6500
6557
  notAfter: z.ZodOptional<z.ZodNumber>;
6501
6558
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6559
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
6502
6560
  crisp: z.ZodOptional<z.ZodObject<{
6503
6561
  budget: z.ZodOptional<z.ZodObject<{
6504
6562
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6635,11 +6693,11 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6635
6693
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6636
6694
  }, "strip", z.ZodTypeAny, {
6637
6695
  status: "active" | "revoked" | "expired";
6638
- id: string;
6639
6696
  constraints: {
6640
- scopes?: string[] | undefined;
6697
+ audience?: string | string[] | undefined;
6641
6698
  notBefore?: number | undefined;
6642
6699
  notAfter?: number | undefined;
6700
+ scopes?: string[] | undefined;
6643
6701
  crisp?: z.objectOutputType<{
6644
6702
  budget: z.ZodOptional<z.ZodObject<{
6645
6703
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6686,18 +6744,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6686
6744
  } & {
6687
6745
  [k: string]: unknown;
6688
6746
  };
6747
+ id: string;
6689
6748
  issuerDid: string;
6690
6749
  subjectDid: string;
6691
6750
  createdAt?: number | undefined;
6692
- metadata?: Record<string, any> | undefined;
6693
6751
  controller?: string | undefined;
6694
6752
  parentId?: string | undefined;
6753
+ metadata?: Record<string, any> | undefined;
6695
6754
  }, {
6696
- id: string;
6697
6755
  constraints: {
6698
- scopes?: string[] | undefined;
6756
+ audience?: string | string[] | undefined;
6699
6757
  notBefore?: number | undefined;
6700
6758
  notAfter?: number | undefined;
6759
+ scopes?: string[] | undefined;
6701
6760
  crisp?: z.objectInputType<{
6702
6761
  budget: z.ZodOptional<z.ZodObject<{
6703
6762
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6744,22 +6803,24 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6744
6803
  } & {
6745
6804
  [k: string]: unknown;
6746
6805
  };
6806
+ id: string;
6747
6807
  issuerDid: string;
6748
6808
  subjectDid: string;
6749
6809
  status?: "active" | "revoked" | "expired" | undefined;
6750
6810
  createdAt?: number | undefined;
6751
- metadata?: Record<string, any> | undefined;
6752
6811
  controller?: string | undefined;
6753
6812
  parentId?: string | undefined;
6813
+ metadata?: Record<string, any> | undefined;
6754
6814
  }>;
6755
6815
  }, "strip", z.ZodTypeAny, {
6816
+ id: string;
6756
6817
  delegation: {
6757
6818
  status: "active" | "revoked" | "expired";
6758
- id: string;
6759
6819
  constraints: {
6760
- scopes?: string[] | undefined;
6820
+ audience?: string | string[] | undefined;
6761
6821
  notBefore?: number | undefined;
6762
6822
  notAfter?: number | undefined;
6823
+ scopes?: string[] | undefined;
6763
6824
  crisp?: z.objectOutputType<{
6764
6825
  budget: z.ZodOptional<z.ZodObject<{
6765
6826
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6806,21 +6867,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6806
6867
  } & {
6807
6868
  [k: string]: unknown;
6808
6869
  };
6870
+ id: string;
6809
6871
  issuerDid: string;
6810
6872
  subjectDid: string;
6811
6873
  createdAt?: number | undefined;
6812
- metadata?: Record<string, any> | undefined;
6813
6874
  controller?: string | undefined;
6814
6875
  parentId?: string | undefined;
6876
+ metadata?: Record<string, any> | undefined;
6815
6877
  };
6816
- id: string;
6817
6878
  }, {
6879
+ id: string;
6818
6880
  delegation: {
6819
- id: string;
6820
6881
  constraints: {
6821
- scopes?: string[] | undefined;
6882
+ audience?: string | string[] | undefined;
6822
6883
  notBefore?: number | undefined;
6823
6884
  notAfter?: number | undefined;
6885
+ scopes?: string[] | undefined;
6824
6886
  crisp?: z.objectInputType<{
6825
6887
  budget: z.ZodOptional<z.ZodObject<{
6826
6888
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6867,15 +6929,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6867
6929
  } & {
6868
6930
  [k: string]: unknown;
6869
6931
  };
6932
+ id: string;
6870
6933
  issuerDid: string;
6871
6934
  subjectDid: string;
6872
6935
  status?: "active" | "revoked" | "expired" | undefined;
6873
6936
  createdAt?: number | undefined;
6874
- metadata?: Record<string, any> | undefined;
6875
6937
  controller?: string | undefined;
6876
6938
  parentId?: string | undefined;
6939
+ metadata?: Record<string, any> | undefined;
6877
6940
  };
6878
- id: string;
6879
6941
  }>;
6880
6942
  credentialStatus: z.ZodOptional<z.ZodObject<{
6881
6943
  id: z.ZodString;
@@ -6954,6 +7016,7 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
6954
7016
  notBefore: z.ZodOptional<z.ZodNumber>;
6955
7017
  notAfter: z.ZodOptional<z.ZodNumber>;
6956
7018
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7019
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
6957
7020
  crisp: z.ZodOptional<z.ZodObject<{
6958
7021
  budget: z.ZodOptional<z.ZodObject<{
6959
7022
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7085,6 +7148,7 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7085
7148
  notBefore: z.ZodOptional<z.ZodNumber>;
7086
7149
  notAfter: z.ZodOptional<z.ZodNumber>;
7087
7150
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7151
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
7088
7152
  crisp: z.ZodOptional<z.ZodObject<{
7089
7153
  budget: z.ZodOptional<z.ZodObject<{
7090
7154
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7216,6 +7280,7 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7216
7280
  notBefore: z.ZodOptional<z.ZodNumber>;
7217
7281
  notAfter: z.ZodOptional<z.ZodNumber>;
7218
7282
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7283
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
7219
7284
  crisp: z.ZodOptional<z.ZodObject<{
7220
7285
  budget: z.ZodOptional<z.ZodObject<{
7221
7286
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7352,11 +7417,11 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7352
7417
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7353
7418
  }, "strip", z.ZodTypeAny, {
7354
7419
  status: "active" | "revoked" | "expired";
7355
- id: string;
7356
7420
  constraints: {
7357
- scopes?: string[] | undefined;
7421
+ audience?: string | string[] | undefined;
7358
7422
  notBefore?: number | undefined;
7359
7423
  notAfter?: number | undefined;
7424
+ scopes?: string[] | undefined;
7360
7425
  crisp?: z.objectOutputType<{
7361
7426
  budget: z.ZodOptional<z.ZodObject<{
7362
7427
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7403,18 +7468,19 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7403
7468
  } & {
7404
7469
  [k: string]: unknown;
7405
7470
  };
7471
+ id: string;
7406
7472
  issuerDid: string;
7407
7473
  subjectDid: string;
7408
7474
  createdAt?: number | undefined;
7409
- metadata?: Record<string, any> | undefined;
7410
7475
  controller?: string | undefined;
7411
7476
  parentId?: string | undefined;
7477
+ metadata?: Record<string, any> | undefined;
7412
7478
  }, {
7413
- id: string;
7414
7479
  constraints: {
7415
- scopes?: string[] | undefined;
7480
+ audience?: string | string[] | undefined;
7416
7481
  notBefore?: number | undefined;
7417
7482
  notAfter?: number | undefined;
7483
+ scopes?: string[] | undefined;
7418
7484
  crisp?: z.objectInputType<{
7419
7485
  budget: z.ZodOptional<z.ZodObject<{
7420
7486
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7461,22 +7527,24 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7461
7527
  } & {
7462
7528
  [k: string]: unknown;
7463
7529
  };
7530
+ id: string;
7464
7531
  issuerDid: string;
7465
7532
  subjectDid: string;
7466
7533
  status?: "active" | "revoked" | "expired" | undefined;
7467
7534
  createdAt?: number | undefined;
7468
- metadata?: Record<string, any> | undefined;
7469
7535
  controller?: string | undefined;
7470
7536
  parentId?: string | undefined;
7537
+ metadata?: Record<string, any> | undefined;
7471
7538
  }>;
7472
7539
  }, "strip", z.ZodTypeAny, {
7540
+ id: string;
7473
7541
  delegation: {
7474
7542
  status: "active" | "revoked" | "expired";
7475
- id: string;
7476
7543
  constraints: {
7477
- scopes?: string[] | undefined;
7544
+ audience?: string | string[] | undefined;
7478
7545
  notBefore?: number | undefined;
7479
7546
  notAfter?: number | undefined;
7547
+ scopes?: string[] | undefined;
7480
7548
  crisp?: z.objectOutputType<{
7481
7549
  budget: z.ZodOptional<z.ZodObject<{
7482
7550
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7523,21 +7591,22 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7523
7591
  } & {
7524
7592
  [k: string]: unknown;
7525
7593
  };
7594
+ id: string;
7526
7595
  issuerDid: string;
7527
7596
  subjectDid: string;
7528
7597
  createdAt?: number | undefined;
7529
- metadata?: Record<string, any> | undefined;
7530
7598
  controller?: string | undefined;
7531
7599
  parentId?: string | undefined;
7600
+ metadata?: Record<string, any> | undefined;
7532
7601
  };
7533
- id: string;
7534
7602
  }, {
7603
+ id: string;
7535
7604
  delegation: {
7536
- id: string;
7537
7605
  constraints: {
7538
- scopes?: string[] | undefined;
7606
+ audience?: string | string[] | undefined;
7539
7607
  notBefore?: number | undefined;
7540
7608
  notAfter?: number | undefined;
7609
+ scopes?: string[] | undefined;
7541
7610
  crisp?: z.objectInputType<{
7542
7611
  budget: z.ZodOptional<z.ZodObject<{
7543
7612
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7584,15 +7653,15 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7584
7653
  } & {
7585
7654
  [k: string]: unknown;
7586
7655
  };
7656
+ id: string;
7587
7657
  issuerDid: string;
7588
7658
  subjectDid: string;
7589
7659
  status?: "active" | "revoked" | "expired" | undefined;
7590
7660
  createdAt?: number | undefined;
7591
- metadata?: Record<string, any> | undefined;
7592
7661
  controller?: string | undefined;
7593
7662
  parentId?: string | undefined;
7663
+ metadata?: Record<string, any> | undefined;
7594
7664
  };
7595
- id: string;
7596
7665
  }>;
7597
7666
  credentialStatus: z.ZodOptional<z.ZodObject<{
7598
7667
  id: z.ZodString;
@@ -7663,6 +7732,7 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7663
7732
  notBefore: z.ZodOptional<z.ZodNumber>;
7664
7733
  notAfter: z.ZodOptional<z.ZodNumber>;
7665
7734
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7735
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
7666
7736
  crisp: z.ZodOptional<z.ZodObject<{
7667
7737
  budget: z.ZodOptional<z.ZodObject<{
7668
7738
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7794,6 +7864,7 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7794
7864
  notBefore: z.ZodOptional<z.ZodNumber>;
7795
7865
  notAfter: z.ZodOptional<z.ZodNumber>;
7796
7866
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7867
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
7797
7868
  crisp: z.ZodOptional<z.ZodObject<{
7798
7869
  budget: z.ZodOptional<z.ZodObject<{
7799
7870
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7925,6 +7996,7 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7925
7996
  notBefore: z.ZodOptional<z.ZodNumber>;
7926
7997
  notAfter: z.ZodOptional<z.ZodNumber>;
7927
7998
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7999
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
7928
8000
  crisp: z.ZodOptional<z.ZodObject<{
7929
8001
  budget: z.ZodOptional<z.ZodObject<{
7930
8002
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8061,11 +8133,11 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8061
8133
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8062
8134
  }, "strip", z.ZodTypeAny, {
8063
8135
  status: "active" | "revoked" | "expired";
8064
- id: string;
8065
8136
  constraints: {
8066
- scopes?: string[] | undefined;
8137
+ audience?: string | string[] | undefined;
8067
8138
  notBefore?: number | undefined;
8068
8139
  notAfter?: number | undefined;
8140
+ scopes?: string[] | undefined;
8069
8141
  crisp?: z.objectOutputType<{
8070
8142
  budget: z.ZodOptional<z.ZodObject<{
8071
8143
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8112,18 +8184,19 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8112
8184
  } & {
8113
8185
  [k: string]: unknown;
8114
8186
  };
8187
+ id: string;
8115
8188
  issuerDid: string;
8116
8189
  subjectDid: string;
8117
8190
  createdAt?: number | undefined;
8118
- metadata?: Record<string, any> | undefined;
8119
8191
  controller?: string | undefined;
8120
8192
  parentId?: string | undefined;
8193
+ metadata?: Record<string, any> | undefined;
8121
8194
  }, {
8122
- id: string;
8123
8195
  constraints: {
8124
- scopes?: string[] | undefined;
8196
+ audience?: string | string[] | undefined;
8125
8197
  notBefore?: number | undefined;
8126
8198
  notAfter?: number | undefined;
8199
+ scopes?: string[] | undefined;
8127
8200
  crisp?: z.objectInputType<{
8128
8201
  budget: z.ZodOptional<z.ZodObject<{
8129
8202
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8170,22 +8243,24 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8170
8243
  } & {
8171
8244
  [k: string]: unknown;
8172
8245
  };
8246
+ id: string;
8173
8247
  issuerDid: string;
8174
8248
  subjectDid: string;
8175
8249
  status?: "active" | "revoked" | "expired" | undefined;
8176
8250
  createdAt?: number | undefined;
8177
- metadata?: Record<string, any> | undefined;
8178
8251
  controller?: string | undefined;
8179
8252
  parentId?: string | undefined;
8253
+ metadata?: Record<string, any> | undefined;
8180
8254
  }>;
8181
8255
  }, "strip", z.ZodTypeAny, {
8256
+ id: string;
8182
8257
  delegation: {
8183
8258
  status: "active" | "revoked" | "expired";
8184
- id: string;
8185
8259
  constraints: {
8186
- scopes?: string[] | undefined;
8260
+ audience?: string | string[] | undefined;
8187
8261
  notBefore?: number | undefined;
8188
8262
  notAfter?: number | undefined;
8263
+ scopes?: string[] | undefined;
8189
8264
  crisp?: z.objectOutputType<{
8190
8265
  budget: z.ZodOptional<z.ZodObject<{
8191
8266
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8232,21 +8307,22 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8232
8307
  } & {
8233
8308
  [k: string]: unknown;
8234
8309
  };
8310
+ id: string;
8235
8311
  issuerDid: string;
8236
8312
  subjectDid: string;
8237
8313
  createdAt?: number | undefined;
8238
- metadata?: Record<string, any> | undefined;
8239
8314
  controller?: string | undefined;
8240
8315
  parentId?: string | undefined;
8316
+ metadata?: Record<string, any> | undefined;
8241
8317
  };
8242
- id: string;
8243
8318
  }, {
8319
+ id: string;
8244
8320
  delegation: {
8245
- id: string;
8246
8321
  constraints: {
8247
- scopes?: string[] | undefined;
8322
+ audience?: string | string[] | undefined;
8248
8323
  notBefore?: number | undefined;
8249
8324
  notAfter?: number | undefined;
8325
+ scopes?: string[] | undefined;
8250
8326
  crisp?: z.objectInputType<{
8251
8327
  budget: z.ZodOptional<z.ZodObject<{
8252
8328
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8293,15 +8369,15 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8293
8369
  } & {
8294
8370
  [k: string]: unknown;
8295
8371
  };
8372
+ id: string;
8296
8373
  issuerDid: string;
8297
8374
  subjectDid: string;
8298
8375
  status?: "active" | "revoked" | "expired" | undefined;
8299
8376
  createdAt?: number | undefined;
8300
- metadata?: Record<string, any> | undefined;
8301
8377
  controller?: string | undefined;
8302
8378
  parentId?: string | undefined;
8379
+ metadata?: Record<string, any> | undefined;
8303
8380
  };
8304
- id: string;
8305
8381
  }>;
8306
8382
  credentialStatus: z.ZodOptional<z.ZodObject<{
8307
8383
  id: z.ZodString;
@@ -8379,3 +8455,4 @@ export declare function isDelegationCredentialExpired(vc: DelegationCredential):
8379
8455
  * @returns true if not yet valid
8380
8456
  */
8381
8457
  export declare function isDelegationCredentialNotYetValid(vc: DelegationCredential): boolean;
8458
+ //# sourceMappingURL=schemas.d.ts.map