@kya-os/contracts 1.2.2 → 1.3.1-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/cli.d.ts.map +1 -0
  2. package/dist/delegation/constraints.d.ts +25 -15
  3. package/dist/delegation/constraints.d.ts.map +1 -0
  4. package/dist/delegation/constraints.js +23 -18
  5. package/dist/delegation/index.d.ts.map +1 -0
  6. package/dist/delegation/schemas.d.ts +513 -219
  7. package/dist/delegation/schemas.d.ts.map +1 -0
  8. package/dist/did/index.d.ts.map +1 -0
  9. package/dist/did/resolve-contract.d.ts.map +1 -0
  10. package/dist/did/types.d.ts.map +1 -0
  11. package/dist/env/constants.d.ts.map +1 -0
  12. package/dist/env/index.d.ts.map +1 -0
  13. package/dist/handshake.d.ts +8 -2
  14. package/dist/handshake.d.ts.map +1 -0
  15. package/dist/handshake.js +2 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/proof/index.d.ts.map +1 -0
  18. package/dist/proof/proof-record.d.ts +12 -12
  19. package/dist/proof/proof-record.d.ts.map +1 -0
  20. package/dist/proof/signing-spec.d.ts +4 -4
  21. package/dist/proof/signing-spec.d.ts.map +1 -0
  22. package/dist/proof.d.ts +24 -17
  23. package/dist/proof.d.ts.map +1 -0
  24. package/dist/proof.js +10 -3
  25. package/dist/registry.d.ts.map +1 -0
  26. package/dist/runtime/errors.d.ts.map +1 -0
  27. package/dist/runtime/headers.d.ts.map +1 -0
  28. package/dist/runtime/index.d.ts.map +1 -0
  29. package/dist/test.d.ts.map +1 -0
  30. package/dist/tlkrc/index.d.ts.map +1 -0
  31. package/dist/tlkrc/rotation.d.ts +24 -24
  32. package/dist/tlkrc/rotation.d.ts.map +1 -0
  33. package/dist/utils/validation.d.ts.map +1 -0
  34. package/dist/vc/index.d.ts.map +1 -0
  35. package/dist/vc/schemas.d.ts.map +1 -0
  36. package/dist/vc/statuslist.d.ts.map +1 -0
  37. package/dist/verifier.d.ts.map +1 -0
  38. package/package.json +4 -3
@@ -46,7 +46,8 @@ export declare const DelegationRecordSchema: z.ZodObject<{
46
46
  constraints: z.ZodObject<{
47
47
  notBefore: z.ZodOptional<z.ZodNumber>;
48
48
  notAfter: z.ZodOptional<z.ZodNumber>;
49
- crisp: z.ZodObject<{
49
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
50
+ crisp: z.ZodOptional<z.ZodObject<{
50
51
  budget: z.ZodOptional<z.ZodObject<{
51
52
  unit: z.ZodEnum<["USD", "ops", "points"]>;
52
53
  cap: z.ZodNumber;
@@ -172,11 +173,12 @@ export declare const DelegationRecordSchema: z.ZodObject<{
172
173
  matcher: "exact" | "prefix" | "regex";
173
174
  constraints?: Record<string, any> | undefined;
174
175
  }>, "many">;
175
- }, z.ZodTypeAny, "passthrough">>;
176
+ }, z.ZodTypeAny, "passthrough">>>;
176
177
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
177
178
  notBefore: z.ZodOptional<z.ZodNumber>;
178
179
  notAfter: z.ZodOptional<z.ZodNumber>;
179
- crisp: z.ZodObject<{
180
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
181
+ crisp: z.ZodOptional<z.ZodObject<{
180
182
  budget: z.ZodOptional<z.ZodObject<{
181
183
  unit: z.ZodEnum<["USD", "ops", "points"]>;
182
184
  cap: z.ZodNumber;
@@ -302,11 +304,12 @@ export declare const DelegationRecordSchema: z.ZodObject<{
302
304
  matcher: "exact" | "prefix" | "regex";
303
305
  constraints?: Record<string, any> | undefined;
304
306
  }>, "many">;
305
- }, z.ZodTypeAny, "passthrough">>;
307
+ }, z.ZodTypeAny, "passthrough">>>;
306
308
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
307
309
  notBefore: z.ZodOptional<z.ZodNumber>;
308
310
  notAfter: z.ZodOptional<z.ZodNumber>;
309
- crisp: z.ZodObject<{
311
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
312
+ crisp: z.ZodOptional<z.ZodObject<{
310
313
  budget: z.ZodOptional<z.ZodObject<{
311
314
  unit: z.ZodEnum<["USD", "ops", "points"]>;
312
315
  cap: z.ZodNumber;
@@ -432,7 +435,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
432
435
  matcher: "exact" | "prefix" | "regex";
433
436
  constraints?: Record<string, any> | undefined;
434
437
  }>, "many">;
435
- }, z.ZodTypeAny, "passthrough">>;
438
+ }, z.ZodTypeAny, "passthrough">>>;
436
439
  }, z.ZodTypeAny, "passthrough">>;
437
440
  /** Detached JWS signature over canonical delegation document */
438
441
  signature: z.ZodString;
@@ -463,7 +466,8 @@ export declare const DelegationRecordSchema: z.ZodObject<{
463
466
  constraints: z.ZodObject<{
464
467
  notBefore: z.ZodOptional<z.ZodNumber>;
465
468
  notAfter: z.ZodOptional<z.ZodNumber>;
466
- crisp: z.ZodObject<{
469
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
470
+ crisp: z.ZodOptional<z.ZodObject<{
467
471
  budget: z.ZodOptional<z.ZodObject<{
468
472
  unit: z.ZodEnum<["USD", "ops", "points"]>;
469
473
  cap: z.ZodNumber;
@@ -589,11 +593,12 @@ export declare const DelegationRecordSchema: z.ZodObject<{
589
593
  matcher: "exact" | "prefix" | "regex";
590
594
  constraints?: Record<string, any> | undefined;
591
595
  }>, "many">;
592
- }, z.ZodTypeAny, "passthrough">>;
596
+ }, z.ZodTypeAny, "passthrough">>>;
593
597
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
594
598
  notBefore: z.ZodOptional<z.ZodNumber>;
595
599
  notAfter: z.ZodOptional<z.ZodNumber>;
596
- crisp: z.ZodObject<{
600
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
601
+ crisp: z.ZodOptional<z.ZodObject<{
597
602
  budget: z.ZodOptional<z.ZodObject<{
598
603
  unit: z.ZodEnum<["USD", "ops", "points"]>;
599
604
  cap: z.ZodNumber;
@@ -719,11 +724,12 @@ export declare const DelegationRecordSchema: z.ZodObject<{
719
724
  matcher: "exact" | "prefix" | "regex";
720
725
  constraints?: Record<string, any> | undefined;
721
726
  }>, "many">;
722
- }, z.ZodTypeAny, "passthrough">>;
727
+ }, z.ZodTypeAny, "passthrough">>>;
723
728
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
724
729
  notBefore: z.ZodOptional<z.ZodNumber>;
725
730
  notAfter: z.ZodOptional<z.ZodNumber>;
726
- crisp: z.ZodObject<{
731
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
732
+ crisp: z.ZodOptional<z.ZodObject<{
727
733
  budget: z.ZodOptional<z.ZodObject<{
728
734
  unit: z.ZodEnum<["USD", "ops", "points"]>;
729
735
  cap: z.ZodNumber;
@@ -849,7 +855,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
849
855
  matcher: "exact" | "prefix" | "regex";
850
856
  constraints?: Record<string, any> | undefined;
851
857
  }>, "many">;
852
- }, z.ZodTypeAny, "passthrough">>;
858
+ }, z.ZodTypeAny, "passthrough">>>;
853
859
  }, z.ZodTypeAny, "passthrough">>;
854
860
  /** Detached JWS signature over canonical delegation document */
855
861
  signature: z.ZodString;
@@ -880,7 +886,8 @@ export declare const DelegationRecordSchema: z.ZodObject<{
880
886
  constraints: z.ZodObject<{
881
887
  notBefore: z.ZodOptional<z.ZodNumber>;
882
888
  notAfter: z.ZodOptional<z.ZodNumber>;
883
- crisp: z.ZodObject<{
889
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
890
+ crisp: z.ZodOptional<z.ZodObject<{
884
891
  budget: z.ZodOptional<z.ZodObject<{
885
892
  unit: z.ZodEnum<["USD", "ops", "points"]>;
886
893
  cap: z.ZodNumber;
@@ -1006,11 +1013,12 @@ export declare const DelegationRecordSchema: z.ZodObject<{
1006
1013
  matcher: "exact" | "prefix" | "regex";
1007
1014
  constraints?: Record<string, any> | undefined;
1008
1015
  }>, "many">;
1009
- }, z.ZodTypeAny, "passthrough">>;
1016
+ }, z.ZodTypeAny, "passthrough">>>;
1010
1017
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1011
1018
  notBefore: z.ZodOptional<z.ZodNumber>;
1012
1019
  notAfter: z.ZodOptional<z.ZodNumber>;
1013
- crisp: z.ZodObject<{
1020
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1021
+ crisp: z.ZodOptional<z.ZodObject<{
1014
1022
  budget: z.ZodOptional<z.ZodObject<{
1015
1023
  unit: z.ZodEnum<["USD", "ops", "points"]>;
1016
1024
  cap: z.ZodNumber;
@@ -1136,11 +1144,12 @@ export declare const DelegationRecordSchema: z.ZodObject<{
1136
1144
  matcher: "exact" | "prefix" | "regex";
1137
1145
  constraints?: Record<string, any> | undefined;
1138
1146
  }>, "many">;
1139
- }, z.ZodTypeAny, "passthrough">>;
1147
+ }, z.ZodTypeAny, "passthrough">>>;
1140
1148
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1141
1149
  notBefore: z.ZodOptional<z.ZodNumber>;
1142
1150
  notAfter: z.ZodOptional<z.ZodNumber>;
1143
- crisp: z.ZodObject<{
1151
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1152
+ crisp: z.ZodOptional<z.ZodObject<{
1144
1153
  budget: z.ZodOptional<z.ZodObject<{
1145
1154
  unit: z.ZodEnum<["USD", "ops", "points"]>;
1146
1155
  cap: z.ZodNumber;
@@ -1266,7 +1275,7 @@ export declare const DelegationRecordSchema: z.ZodObject<{
1266
1275
  matcher: "exact" | "prefix" | "regex";
1267
1276
  constraints?: Record<string, any> | undefined;
1268
1277
  }>, "many">;
1269
- }, z.ZodTypeAny, "passthrough">>;
1278
+ }, z.ZodTypeAny, "passthrough">>>;
1270
1279
  }, z.ZodTypeAny, "passthrough">>;
1271
1280
  /** Detached JWS signature over canonical delegation document */
1272
1281
  signature: z.ZodString;
@@ -1302,7 +1311,8 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1302
1311
  constraints: z.ZodObject<{
1303
1312
  notBefore: z.ZodOptional<z.ZodNumber>;
1304
1313
  notAfter: z.ZodOptional<z.ZodNumber>;
1305
- crisp: z.ZodObject<{
1314
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1315
+ crisp: z.ZodOptional<z.ZodObject<{
1306
1316
  budget: z.ZodOptional<z.ZodObject<{
1307
1317
  unit: z.ZodEnum<["USD", "ops", "points"]>;
1308
1318
  cap: z.ZodNumber;
@@ -1428,11 +1438,12 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1428
1438
  matcher: "exact" | "prefix" | "regex";
1429
1439
  constraints?: Record<string, any> | undefined;
1430
1440
  }>, "many">;
1431
- }, z.ZodTypeAny, "passthrough">>;
1441
+ }, z.ZodTypeAny, "passthrough">>>;
1432
1442
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1433
1443
  notBefore: z.ZodOptional<z.ZodNumber>;
1434
1444
  notAfter: z.ZodOptional<z.ZodNumber>;
1435
- crisp: z.ZodObject<{
1445
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1446
+ crisp: z.ZodOptional<z.ZodObject<{
1436
1447
  budget: z.ZodOptional<z.ZodObject<{
1437
1448
  unit: z.ZodEnum<["USD", "ops", "points"]>;
1438
1449
  cap: z.ZodNumber;
@@ -1558,11 +1569,12 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1558
1569
  matcher: "exact" | "prefix" | "regex";
1559
1570
  constraints?: Record<string, any> | undefined;
1560
1571
  }>, "many">;
1561
- }, z.ZodTypeAny, "passthrough">>;
1572
+ }, z.ZodTypeAny, "passthrough">>>;
1562
1573
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1563
1574
  notBefore: z.ZodOptional<z.ZodNumber>;
1564
1575
  notAfter: z.ZodOptional<z.ZodNumber>;
1565
- crisp: z.ZodObject<{
1576
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1577
+ crisp: z.ZodOptional<z.ZodObject<{
1566
1578
  budget: z.ZodOptional<z.ZodObject<{
1567
1579
  unit: z.ZodEnum<["USD", "ops", "points"]>;
1568
1580
  cap: z.ZodNumber;
@@ -1688,68 +1700,122 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1688
1700
  matcher: "exact" | "prefix" | "regex";
1689
1701
  constraints?: Record<string, any> | undefined;
1690
1702
  }>, "many">;
1691
- }, z.ZodTypeAny, "passthrough">>;
1703
+ }, z.ZodTypeAny, "passthrough">>>;
1692
1704
  }, z.ZodTypeAny, "passthrough">>;
1693
1705
  /** Status */
1694
1706
  status: z.ZodEnum<["active", "revoked", "expired"]>;
1695
1707
  }, "strip", z.ZodTypeAny, {
1696
- issuerDid: string;
1697
- subjectDid: string;
1698
- vcId: string;
1699
1708
  status: "active" | "revoked" | "expired";
1700
1709
  constraints: {
1701
- crisp: {
1702
- scopes: {
1703
- resource: string;
1704
- matcher: "exact" | "prefix" | "regex";
1705
- constraints?: Record<string, any> | undefined;
1706
- }[];
1707
- budget?: {
1710
+ notBefore?: number | undefined;
1711
+ notAfter?: number | undefined;
1712
+ scopes?: string[] | undefined;
1713
+ crisp?: z.objectOutputType<{
1714
+ budget: z.ZodOptional<z.ZodObject<{
1715
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
1716
+ cap: z.ZodNumber;
1717
+ window: z.ZodOptional<z.ZodObject<{
1718
+ kind: z.ZodEnum<["rolling", "fixed"]>;
1719
+ durationSec: z.ZodNumber;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ kind: "rolling" | "fixed";
1722
+ durationSec: number;
1723
+ }, {
1724
+ kind: "rolling" | "fixed";
1725
+ durationSec: number;
1726
+ }>>;
1727
+ }, "strip", z.ZodTypeAny, {
1708
1728
  unit: "USD" | "ops" | "points";
1709
1729
  cap: number;
1710
1730
  window?: {
1711
1731
  kind: "rolling" | "fixed";
1712
1732
  durationSec: number;
1713
1733
  } | undefined;
1714
- } | undefined;
1715
- } & {
1716
- [k: string]: unknown;
1717
- };
1718
- notBefore?: number | undefined;
1719
- notAfter?: number | undefined;
1734
+ }, {
1735
+ unit: "USD" | "ops" | "points";
1736
+ cap: number;
1737
+ window?: {
1738
+ kind: "rolling" | "fixed";
1739
+ durationSec: number;
1740
+ } | undefined;
1741
+ }>>;
1742
+ scopes: z.ZodArray<z.ZodObject<{
1743
+ resource: z.ZodString;
1744
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
1745
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ resource: string;
1748
+ matcher: "exact" | "prefix" | "regex";
1749
+ constraints?: Record<string, any> | undefined;
1750
+ }, {
1751
+ resource: string;
1752
+ matcher: "exact" | "prefix" | "regex";
1753
+ constraints?: Record<string, any> | undefined;
1754
+ }>, "many">;
1755
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1720
1756
  } & {
1721
1757
  [k: string]: unknown;
1722
1758
  };
1723
- delegationId: string;
1724
- depth: number;
1725
- }, {
1726
1759
  issuerDid: string;
1727
1760
  subjectDid: string;
1728
1761
  vcId: string;
1762
+ delegationId: string;
1763
+ depth: number;
1764
+ }, {
1729
1765
  status: "active" | "revoked" | "expired";
1730
1766
  constraints: {
1731
- crisp: {
1732
- scopes: {
1733
- resource: string;
1734
- matcher: "exact" | "prefix" | "regex";
1735
- constraints?: Record<string, any> | undefined;
1736
- }[];
1737
- budget?: {
1767
+ notBefore?: number | undefined;
1768
+ notAfter?: number | undefined;
1769
+ scopes?: string[] | undefined;
1770
+ crisp?: z.objectInputType<{
1771
+ budget: z.ZodOptional<z.ZodObject<{
1772
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
1773
+ cap: z.ZodNumber;
1774
+ window: z.ZodOptional<z.ZodObject<{
1775
+ kind: z.ZodEnum<["rolling", "fixed"]>;
1776
+ durationSec: z.ZodNumber;
1777
+ }, "strip", z.ZodTypeAny, {
1778
+ kind: "rolling" | "fixed";
1779
+ durationSec: number;
1780
+ }, {
1781
+ kind: "rolling" | "fixed";
1782
+ durationSec: number;
1783
+ }>>;
1784
+ }, "strip", z.ZodTypeAny, {
1738
1785
  unit: "USD" | "ops" | "points";
1739
1786
  cap: number;
1740
1787
  window?: {
1741
1788
  kind: "rolling" | "fixed";
1742
1789
  durationSec: number;
1743
1790
  } | undefined;
1744
- } | undefined;
1745
- } & {
1746
- [k: string]: unknown;
1747
- };
1748
- notBefore?: number | undefined;
1749
- notAfter?: number | undefined;
1791
+ }, {
1792
+ unit: "USD" | "ops" | "points";
1793
+ cap: number;
1794
+ window?: {
1795
+ kind: "rolling" | "fixed";
1796
+ durationSec: number;
1797
+ } | undefined;
1798
+ }>>;
1799
+ scopes: z.ZodArray<z.ZodObject<{
1800
+ resource: z.ZodString;
1801
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
1802
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1803
+ }, "strip", z.ZodTypeAny, {
1804
+ resource: string;
1805
+ matcher: "exact" | "prefix" | "regex";
1806
+ constraints?: Record<string, any> | undefined;
1807
+ }, {
1808
+ resource: string;
1809
+ matcher: "exact" | "prefix" | "regex";
1810
+ constraints?: Record<string, any> | undefined;
1811
+ }>, "many">;
1812
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1750
1813
  } & {
1751
1814
  [k: string]: unknown;
1752
1815
  };
1816
+ issuerDid: string;
1817
+ subjectDid: string;
1818
+ vcId: string;
1753
1819
  delegationId: string;
1754
1820
  depth: number;
1755
1821
  }>;
@@ -1780,7 +1846,8 @@ export declare const DelegationChainSchema: z.ZodObject<{
1780
1846
  constraints: z.ZodObject<{
1781
1847
  notBefore: z.ZodOptional<z.ZodNumber>;
1782
1848
  notAfter: z.ZodOptional<z.ZodNumber>;
1783
- crisp: z.ZodObject<{
1849
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1850
+ crisp: z.ZodOptional<z.ZodObject<{
1784
1851
  budget: z.ZodOptional<z.ZodObject<{
1785
1852
  unit: z.ZodEnum<["USD", "ops", "points"]>;
1786
1853
  cap: z.ZodNumber;
@@ -1906,11 +1973,12 @@ export declare const DelegationChainSchema: z.ZodObject<{
1906
1973
  matcher: "exact" | "prefix" | "regex";
1907
1974
  constraints?: Record<string, any> | undefined;
1908
1975
  }>, "many">;
1909
- }, z.ZodTypeAny, "passthrough">>;
1976
+ }, z.ZodTypeAny, "passthrough">>>;
1910
1977
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1911
1978
  notBefore: z.ZodOptional<z.ZodNumber>;
1912
1979
  notAfter: z.ZodOptional<z.ZodNumber>;
1913
- crisp: z.ZodObject<{
1980
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1981
+ crisp: z.ZodOptional<z.ZodObject<{
1914
1982
  budget: z.ZodOptional<z.ZodObject<{
1915
1983
  unit: z.ZodEnum<["USD", "ops", "points"]>;
1916
1984
  cap: z.ZodNumber;
@@ -2036,11 +2104,12 @@ export declare const DelegationChainSchema: z.ZodObject<{
2036
2104
  matcher: "exact" | "prefix" | "regex";
2037
2105
  constraints?: Record<string, any> | undefined;
2038
2106
  }>, "many">;
2039
- }, z.ZodTypeAny, "passthrough">>;
2107
+ }, z.ZodTypeAny, "passthrough">>>;
2040
2108
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2041
2109
  notBefore: z.ZodOptional<z.ZodNumber>;
2042
2110
  notAfter: z.ZodOptional<z.ZodNumber>;
2043
- crisp: z.ZodObject<{
2111
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2112
+ crisp: z.ZodOptional<z.ZodObject<{
2044
2113
  budget: z.ZodOptional<z.ZodObject<{
2045
2114
  unit: z.ZodEnum<["USD", "ops", "points"]>;
2046
2115
  cap: z.ZodNumber;
@@ -2166,68 +2235,122 @@ export declare const DelegationChainSchema: z.ZodObject<{
2166
2235
  matcher: "exact" | "prefix" | "regex";
2167
2236
  constraints?: Record<string, any> | undefined;
2168
2237
  }>, "many">;
2169
- }, z.ZodTypeAny, "passthrough">>;
2238
+ }, z.ZodTypeAny, "passthrough">>>;
2170
2239
  }, z.ZodTypeAny, "passthrough">>;
2171
2240
  /** Status */
2172
2241
  status: z.ZodEnum<["active", "revoked", "expired"]>;
2173
2242
  }, "strip", z.ZodTypeAny, {
2174
- issuerDid: string;
2175
- subjectDid: string;
2176
- vcId: string;
2177
2243
  status: "active" | "revoked" | "expired";
2178
2244
  constraints: {
2179
- crisp: {
2180
- scopes: {
2181
- resource: string;
2182
- matcher: "exact" | "prefix" | "regex";
2183
- constraints?: Record<string, any> | undefined;
2184
- }[];
2185
- budget?: {
2245
+ notBefore?: number | undefined;
2246
+ notAfter?: number | undefined;
2247
+ scopes?: string[] | undefined;
2248
+ crisp?: z.objectOutputType<{
2249
+ budget: z.ZodOptional<z.ZodObject<{
2250
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
2251
+ cap: z.ZodNumber;
2252
+ window: z.ZodOptional<z.ZodObject<{
2253
+ kind: z.ZodEnum<["rolling", "fixed"]>;
2254
+ durationSec: z.ZodNumber;
2255
+ }, "strip", z.ZodTypeAny, {
2256
+ kind: "rolling" | "fixed";
2257
+ durationSec: number;
2258
+ }, {
2259
+ kind: "rolling" | "fixed";
2260
+ durationSec: number;
2261
+ }>>;
2262
+ }, "strip", z.ZodTypeAny, {
2186
2263
  unit: "USD" | "ops" | "points";
2187
2264
  cap: number;
2188
2265
  window?: {
2189
2266
  kind: "rolling" | "fixed";
2190
2267
  durationSec: number;
2191
2268
  } | undefined;
2192
- } | undefined;
2193
- } & {
2194
- [k: string]: unknown;
2195
- };
2196
- notBefore?: number | undefined;
2197
- notAfter?: number | undefined;
2269
+ }, {
2270
+ unit: "USD" | "ops" | "points";
2271
+ cap: number;
2272
+ window?: {
2273
+ kind: "rolling" | "fixed";
2274
+ durationSec: number;
2275
+ } | undefined;
2276
+ }>>;
2277
+ scopes: z.ZodArray<z.ZodObject<{
2278
+ resource: z.ZodString;
2279
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
2280
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2281
+ }, "strip", z.ZodTypeAny, {
2282
+ resource: string;
2283
+ matcher: "exact" | "prefix" | "regex";
2284
+ constraints?: Record<string, any> | undefined;
2285
+ }, {
2286
+ resource: string;
2287
+ matcher: "exact" | "prefix" | "regex";
2288
+ constraints?: Record<string, any> | undefined;
2289
+ }>, "many">;
2290
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2198
2291
  } & {
2199
2292
  [k: string]: unknown;
2200
2293
  };
2201
- delegationId: string;
2202
- depth: number;
2203
- }, {
2204
2294
  issuerDid: string;
2205
2295
  subjectDid: string;
2206
2296
  vcId: string;
2297
+ delegationId: string;
2298
+ depth: number;
2299
+ }, {
2207
2300
  status: "active" | "revoked" | "expired";
2208
2301
  constraints: {
2209
- crisp: {
2210
- scopes: {
2211
- resource: string;
2212
- matcher: "exact" | "prefix" | "regex";
2213
- constraints?: Record<string, any> | undefined;
2214
- }[];
2215
- budget?: {
2302
+ notBefore?: number | undefined;
2303
+ notAfter?: number | undefined;
2304
+ scopes?: string[] | undefined;
2305
+ crisp?: z.objectInputType<{
2306
+ budget: z.ZodOptional<z.ZodObject<{
2307
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
2308
+ cap: z.ZodNumber;
2309
+ window: z.ZodOptional<z.ZodObject<{
2310
+ kind: z.ZodEnum<["rolling", "fixed"]>;
2311
+ durationSec: z.ZodNumber;
2312
+ }, "strip", z.ZodTypeAny, {
2313
+ kind: "rolling" | "fixed";
2314
+ durationSec: number;
2315
+ }, {
2316
+ kind: "rolling" | "fixed";
2317
+ durationSec: number;
2318
+ }>>;
2319
+ }, "strip", z.ZodTypeAny, {
2216
2320
  unit: "USD" | "ops" | "points";
2217
2321
  cap: number;
2218
2322
  window?: {
2219
2323
  kind: "rolling" | "fixed";
2220
2324
  durationSec: number;
2221
2325
  } | undefined;
2222
- } | undefined;
2223
- } & {
2224
- [k: string]: unknown;
2225
- };
2226
- notBefore?: number | undefined;
2227
- notAfter?: number | undefined;
2326
+ }, {
2327
+ unit: "USD" | "ops" | "points";
2328
+ cap: number;
2329
+ window?: {
2330
+ kind: "rolling" | "fixed";
2331
+ durationSec: number;
2332
+ } | undefined;
2333
+ }>>;
2334
+ scopes: z.ZodArray<z.ZodObject<{
2335
+ resource: z.ZodString;
2336
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
2337
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2338
+ }, "strip", z.ZodTypeAny, {
2339
+ resource: string;
2340
+ matcher: "exact" | "prefix" | "regex";
2341
+ constraints?: Record<string, any> | undefined;
2342
+ }, {
2343
+ resource: string;
2344
+ matcher: "exact" | "prefix" | "regex";
2345
+ constraints?: Record<string, any> | undefined;
2346
+ }>, "many">;
2347
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2228
2348
  } & {
2229
2349
  [k: string]: unknown;
2230
2350
  };
2351
+ issuerDid: string;
2352
+ subjectDid: string;
2353
+ vcId: string;
2231
2354
  delegationId: string;
2232
2355
  depth: number;
2233
2356
  }>, "many">;
@@ -2243,70 +2366,124 @@ export declare const DelegationChainSchema: z.ZodObject<{
2243
2366
  rootIssuer: string;
2244
2367
  leafSubject: string;
2245
2368
  chain: {
2246
- issuerDid: string;
2247
- subjectDid: string;
2248
- vcId: string;
2249
2369
  status: "active" | "revoked" | "expired";
2250
2370
  constraints: {
2251
- crisp: {
2252
- scopes: {
2253
- resource: string;
2254
- matcher: "exact" | "prefix" | "regex";
2255
- constraints?: Record<string, any> | undefined;
2256
- }[];
2257
- budget?: {
2371
+ notBefore?: number | undefined;
2372
+ notAfter?: number | undefined;
2373
+ scopes?: string[] | undefined;
2374
+ crisp?: z.objectOutputType<{
2375
+ budget: z.ZodOptional<z.ZodObject<{
2376
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
2377
+ cap: z.ZodNumber;
2378
+ window: z.ZodOptional<z.ZodObject<{
2379
+ kind: z.ZodEnum<["rolling", "fixed"]>;
2380
+ durationSec: z.ZodNumber;
2381
+ }, "strip", z.ZodTypeAny, {
2382
+ kind: "rolling" | "fixed";
2383
+ durationSec: number;
2384
+ }, {
2385
+ kind: "rolling" | "fixed";
2386
+ durationSec: number;
2387
+ }>>;
2388
+ }, "strip", z.ZodTypeAny, {
2258
2389
  unit: "USD" | "ops" | "points";
2259
2390
  cap: number;
2260
2391
  window?: {
2261
2392
  kind: "rolling" | "fixed";
2262
2393
  durationSec: number;
2263
2394
  } | undefined;
2264
- } | undefined;
2265
- } & {
2266
- [k: string]: unknown;
2267
- };
2268
- notBefore?: number | undefined;
2269
- notAfter?: number | undefined;
2270
- } & {
2271
- [k: string]: unknown;
2272
- };
2273
- delegationId: string;
2274
- depth: number;
2275
- }[];
2276
- errors?: string[] | undefined;
2277
- }, {
2278
- valid: boolean;
2279
- depth: number;
2280
- rootIssuer: string;
2281
- leafSubject: string;
2282
- chain: {
2283
- issuerDid: string;
2284
- subjectDid: string;
2285
- vcId: string;
2286
- status: "active" | "revoked" | "expired";
2287
- constraints: {
2288
- crisp: {
2289
- scopes: {
2290
- resource: string;
2291
- matcher: "exact" | "prefix" | "regex";
2292
- constraints?: Record<string, any> | undefined;
2293
- }[];
2294
- budget?: {
2395
+ }, {
2295
2396
  unit: "USD" | "ops" | "points";
2296
2397
  cap: number;
2297
2398
  window?: {
2298
2399
  kind: "rolling" | "fixed";
2299
2400
  durationSec: number;
2300
2401
  } | undefined;
2301
- } | undefined;
2302
- } & {
2303
- [k: string]: unknown;
2304
- };
2402
+ }>>;
2403
+ scopes: z.ZodArray<z.ZodObject<{
2404
+ resource: z.ZodString;
2405
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
2406
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2407
+ }, "strip", z.ZodTypeAny, {
2408
+ resource: string;
2409
+ matcher: "exact" | "prefix" | "regex";
2410
+ constraints?: Record<string, any> | undefined;
2411
+ }, {
2412
+ resource: string;
2413
+ matcher: "exact" | "prefix" | "regex";
2414
+ constraints?: Record<string, any> | undefined;
2415
+ }>, "many">;
2416
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2417
+ } & {
2418
+ [k: string]: unknown;
2419
+ };
2420
+ issuerDid: string;
2421
+ subjectDid: string;
2422
+ vcId: string;
2423
+ delegationId: string;
2424
+ depth: number;
2425
+ }[];
2426
+ errors?: string[] | undefined;
2427
+ }, {
2428
+ valid: boolean;
2429
+ depth: number;
2430
+ rootIssuer: string;
2431
+ leafSubject: string;
2432
+ chain: {
2433
+ status: "active" | "revoked" | "expired";
2434
+ constraints: {
2305
2435
  notBefore?: number | undefined;
2306
2436
  notAfter?: number | undefined;
2437
+ scopes?: string[] | undefined;
2438
+ crisp?: z.objectInputType<{
2439
+ budget: z.ZodOptional<z.ZodObject<{
2440
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
2441
+ cap: z.ZodNumber;
2442
+ window: z.ZodOptional<z.ZodObject<{
2443
+ kind: z.ZodEnum<["rolling", "fixed"]>;
2444
+ durationSec: z.ZodNumber;
2445
+ }, "strip", z.ZodTypeAny, {
2446
+ kind: "rolling" | "fixed";
2447
+ durationSec: number;
2448
+ }, {
2449
+ kind: "rolling" | "fixed";
2450
+ durationSec: number;
2451
+ }>>;
2452
+ }, "strip", z.ZodTypeAny, {
2453
+ unit: "USD" | "ops" | "points";
2454
+ cap: number;
2455
+ window?: {
2456
+ kind: "rolling" | "fixed";
2457
+ durationSec: number;
2458
+ } | undefined;
2459
+ }, {
2460
+ unit: "USD" | "ops" | "points";
2461
+ cap: number;
2462
+ window?: {
2463
+ kind: "rolling" | "fixed";
2464
+ durationSec: number;
2465
+ } | undefined;
2466
+ }>>;
2467
+ scopes: z.ZodArray<z.ZodObject<{
2468
+ resource: z.ZodString;
2469
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
2470
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2471
+ }, "strip", z.ZodTypeAny, {
2472
+ resource: string;
2473
+ matcher: "exact" | "prefix" | "regex";
2474
+ constraints?: Record<string, any> | undefined;
2475
+ }, {
2476
+ resource: string;
2477
+ matcher: "exact" | "prefix" | "regex";
2478
+ constraints?: Record<string, any> | undefined;
2479
+ }>, "many">;
2480
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2307
2481
  } & {
2308
2482
  [k: string]: unknown;
2309
2483
  };
2484
+ issuerDid: string;
2485
+ subjectDid: string;
2486
+ vcId: string;
2310
2487
  delegationId: string;
2311
2488
  depth: number;
2312
2489
  }[];
@@ -2329,7 +2506,8 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2329
2506
  constraints: z.ZodObject<{
2330
2507
  notBefore: z.ZodOptional<z.ZodNumber>;
2331
2508
  notAfter: z.ZodOptional<z.ZodNumber>;
2332
- crisp: z.ZodObject<{
2509
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2510
+ crisp: z.ZodOptional<z.ZodObject<{
2333
2511
  budget: z.ZodOptional<z.ZodObject<{
2334
2512
  unit: z.ZodEnum<["USD", "ops", "points"]>;
2335
2513
  cap: z.ZodNumber;
@@ -2455,11 +2633,12 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2455
2633
  matcher: "exact" | "prefix" | "regex";
2456
2634
  constraints?: Record<string, any> | undefined;
2457
2635
  }>, "many">;
2458
- }, z.ZodTypeAny, "passthrough">>;
2636
+ }, z.ZodTypeAny, "passthrough">>>;
2459
2637
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2460
2638
  notBefore: z.ZodOptional<z.ZodNumber>;
2461
2639
  notAfter: z.ZodOptional<z.ZodNumber>;
2462
- crisp: z.ZodObject<{
2640
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2641
+ crisp: z.ZodOptional<z.ZodObject<{
2463
2642
  budget: z.ZodOptional<z.ZodObject<{
2464
2643
  unit: z.ZodEnum<["USD", "ops", "points"]>;
2465
2644
  cap: z.ZodNumber;
@@ -2585,11 +2764,12 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2585
2764
  matcher: "exact" | "prefix" | "regex";
2586
2765
  constraints?: Record<string, any> | undefined;
2587
2766
  }>, "many">;
2588
- }, z.ZodTypeAny, "passthrough">>;
2767
+ }, z.ZodTypeAny, "passthrough">>>;
2589
2768
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2590
2769
  notBefore: z.ZodOptional<z.ZodNumber>;
2591
2770
  notAfter: z.ZodOptional<z.ZodNumber>;
2592
- crisp: z.ZodObject<{
2771
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2772
+ crisp: z.ZodOptional<z.ZodObject<{
2593
2773
  budget: z.ZodOptional<z.ZodObject<{
2594
2774
  unit: z.ZodEnum<["USD", "ops", "points"]>;
2595
2775
  cap: z.ZodNumber;
@@ -2715,67 +2895,121 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2715
2895
  matcher: "exact" | "prefix" | "regex";
2716
2896
  constraints?: Record<string, any> | undefined;
2717
2897
  }>, "many">;
2718
- }, z.ZodTypeAny, "passthrough">>;
2898
+ }, z.ZodTypeAny, "passthrough">>>;
2719
2899
  }, z.ZodTypeAny, "passthrough">>;
2720
2900
  /** Optional parent delegation ID */
2721
2901
  parentId: z.ZodOptional<z.ZodString>;
2722
2902
  /** Optional VC ID (if not provided, will be created) */
2723
2903
  vcId: z.ZodOptional<z.ZodString>;
2724
2904
  }, "strip", z.ZodTypeAny, {
2725
- issuerDid: string;
2726
- subjectDid: string;
2727
2905
  constraints: {
2728
- crisp: {
2729
- scopes: {
2730
- resource: string;
2731
- matcher: "exact" | "prefix" | "regex";
2732
- constraints?: Record<string, any> | undefined;
2733
- }[];
2734
- budget?: {
2906
+ notBefore?: number | undefined;
2907
+ notAfter?: number | undefined;
2908
+ scopes?: string[] | undefined;
2909
+ crisp?: z.objectOutputType<{
2910
+ budget: z.ZodOptional<z.ZodObject<{
2911
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
2912
+ cap: z.ZodNumber;
2913
+ window: z.ZodOptional<z.ZodObject<{
2914
+ kind: z.ZodEnum<["rolling", "fixed"]>;
2915
+ durationSec: z.ZodNumber;
2916
+ }, "strip", z.ZodTypeAny, {
2917
+ kind: "rolling" | "fixed";
2918
+ durationSec: number;
2919
+ }, {
2920
+ kind: "rolling" | "fixed";
2921
+ durationSec: number;
2922
+ }>>;
2923
+ }, "strip", z.ZodTypeAny, {
2735
2924
  unit: "USD" | "ops" | "points";
2736
2925
  cap: number;
2737
2926
  window?: {
2738
2927
  kind: "rolling" | "fixed";
2739
2928
  durationSec: number;
2740
2929
  } | undefined;
2741
- } | undefined;
2742
- } & {
2743
- [k: string]: unknown;
2744
- };
2745
- notBefore?: number | undefined;
2746
- notAfter?: number | undefined;
2930
+ }, {
2931
+ unit: "USD" | "ops" | "points";
2932
+ cap: number;
2933
+ window?: {
2934
+ kind: "rolling" | "fixed";
2935
+ durationSec: number;
2936
+ } | undefined;
2937
+ }>>;
2938
+ scopes: z.ZodArray<z.ZodObject<{
2939
+ resource: z.ZodString;
2940
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
2941
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2942
+ }, "strip", z.ZodTypeAny, {
2943
+ resource: string;
2944
+ matcher: "exact" | "prefix" | "regex";
2945
+ constraints?: Record<string, any> | undefined;
2946
+ }, {
2947
+ resource: string;
2948
+ matcher: "exact" | "prefix" | "regex";
2949
+ constraints?: Record<string, any> | undefined;
2950
+ }>, "many">;
2951
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2747
2952
  } & {
2748
2953
  [k: string]: unknown;
2749
2954
  };
2955
+ issuerDid: string;
2956
+ subjectDid: string;
2750
2957
  controller?: string | undefined;
2751
2958
  vcId?: string | undefined;
2752
2959
  parentId?: string | undefined;
2753
2960
  }, {
2754
- issuerDid: string;
2755
- subjectDid: string;
2756
2961
  constraints: {
2757
- crisp: {
2758
- scopes: {
2759
- resource: string;
2760
- matcher: "exact" | "prefix" | "regex";
2761
- constraints?: Record<string, any> | undefined;
2762
- }[];
2763
- budget?: {
2962
+ notBefore?: number | undefined;
2963
+ notAfter?: number | undefined;
2964
+ scopes?: string[] | undefined;
2965
+ crisp?: z.objectInputType<{
2966
+ budget: z.ZodOptional<z.ZodObject<{
2967
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
2968
+ cap: z.ZodNumber;
2969
+ window: z.ZodOptional<z.ZodObject<{
2970
+ kind: z.ZodEnum<["rolling", "fixed"]>;
2971
+ durationSec: z.ZodNumber;
2972
+ }, "strip", z.ZodTypeAny, {
2973
+ kind: "rolling" | "fixed";
2974
+ durationSec: number;
2975
+ }, {
2976
+ kind: "rolling" | "fixed";
2977
+ durationSec: number;
2978
+ }>>;
2979
+ }, "strip", z.ZodTypeAny, {
2764
2980
  unit: "USD" | "ops" | "points";
2765
2981
  cap: number;
2766
2982
  window?: {
2767
2983
  kind: "rolling" | "fixed";
2768
2984
  durationSec: number;
2769
2985
  } | undefined;
2770
- } | undefined;
2771
- } & {
2772
- [k: string]: unknown;
2773
- };
2774
- notBefore?: number | undefined;
2775
- notAfter?: number | undefined;
2986
+ }, {
2987
+ unit: "USD" | "ops" | "points";
2988
+ cap: number;
2989
+ window?: {
2990
+ kind: "rolling" | "fixed";
2991
+ durationSec: number;
2992
+ } | undefined;
2993
+ }>>;
2994
+ scopes: z.ZodArray<z.ZodObject<{
2995
+ resource: z.ZodString;
2996
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
2997
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2998
+ }, "strip", z.ZodTypeAny, {
2999
+ resource: string;
3000
+ matcher: "exact" | "prefix" | "regex";
3001
+ constraints?: Record<string, any> | undefined;
3002
+ }, {
3003
+ resource: string;
3004
+ matcher: "exact" | "prefix" | "regex";
3005
+ constraints?: Record<string, any> | undefined;
3006
+ }>, "many">;
3007
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2776
3008
  } & {
2777
3009
  [k: string]: unknown;
2778
3010
  };
3011
+ issuerDid: string;
3012
+ subjectDid: string;
2779
3013
  controller?: string | undefined;
2780
3014
  vcId?: string | undefined;
2781
3015
  parentId?: string | undefined;
@@ -2849,7 +3083,8 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
2849
3083
  constraints: z.ZodObject<{
2850
3084
  notBefore: z.ZodOptional<z.ZodNumber>;
2851
3085
  notAfter: z.ZodOptional<z.ZodNumber>;
2852
- crisp: z.ZodObject<{
3086
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3087
+ crisp: z.ZodOptional<z.ZodObject<{
2853
3088
  budget: z.ZodOptional<z.ZodObject<{
2854
3089
  unit: z.ZodEnum<["USD", "ops", "points"]>;
2855
3090
  cap: z.ZodNumber;
@@ -2975,11 +3210,12 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
2975
3210
  matcher: "exact" | "prefix" | "regex";
2976
3211
  constraints?: Record<string, any> | undefined;
2977
3212
  }>, "many">;
2978
- }, z.ZodTypeAny, "passthrough">>;
3213
+ }, z.ZodTypeAny, "passthrough">>>;
2979
3214
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2980
3215
  notBefore: z.ZodOptional<z.ZodNumber>;
2981
3216
  notAfter: z.ZodOptional<z.ZodNumber>;
2982
- crisp: z.ZodObject<{
3217
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3218
+ crisp: z.ZodOptional<z.ZodObject<{
2983
3219
  budget: z.ZodOptional<z.ZodObject<{
2984
3220
  unit: z.ZodEnum<["USD", "ops", "points"]>;
2985
3221
  cap: z.ZodNumber;
@@ -3105,11 +3341,12 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3105
3341
  matcher: "exact" | "prefix" | "regex";
3106
3342
  constraints?: Record<string, any> | undefined;
3107
3343
  }>, "many">;
3108
- }, z.ZodTypeAny, "passthrough">>;
3344
+ }, z.ZodTypeAny, "passthrough">>>;
3109
3345
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3110
3346
  notBefore: z.ZodOptional<z.ZodNumber>;
3111
3347
  notAfter: z.ZodOptional<z.ZodNumber>;
3112
- crisp: z.ZodObject<{
3348
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3349
+ crisp: z.ZodOptional<z.ZodObject<{
3113
3350
  budget: z.ZodOptional<z.ZodObject<{
3114
3351
  unit: z.ZodEnum<["USD", "ops", "points"]>;
3115
3352
  cap: z.ZodNumber;
@@ -3235,7 +3472,7 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3235
3472
  matcher: "exact" | "prefix" | "regex";
3236
3473
  constraints?: Record<string, any> | undefined;
3237
3474
  }>, "many">;
3238
- }, z.ZodTypeAny, "passthrough">>;
3475
+ }, z.ZodTypeAny, "passthrough">>>;
3239
3476
  }, z.ZodTypeAny, "passthrough">>;
3240
3477
  /** Detached JWS signature over canonical delegation document */
3241
3478
  signature: z.ZodString;
@@ -3266,7 +3503,8 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3266
3503
  constraints: z.ZodObject<{
3267
3504
  notBefore: z.ZodOptional<z.ZodNumber>;
3268
3505
  notAfter: z.ZodOptional<z.ZodNumber>;
3269
- crisp: z.ZodObject<{
3506
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3507
+ crisp: z.ZodOptional<z.ZodObject<{
3270
3508
  budget: z.ZodOptional<z.ZodObject<{
3271
3509
  unit: z.ZodEnum<["USD", "ops", "points"]>;
3272
3510
  cap: z.ZodNumber;
@@ -3392,11 +3630,12 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3392
3630
  matcher: "exact" | "prefix" | "regex";
3393
3631
  constraints?: Record<string, any> | undefined;
3394
3632
  }>, "many">;
3395
- }, z.ZodTypeAny, "passthrough">>;
3633
+ }, z.ZodTypeAny, "passthrough">>>;
3396
3634
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3397
3635
  notBefore: z.ZodOptional<z.ZodNumber>;
3398
3636
  notAfter: z.ZodOptional<z.ZodNumber>;
3399
- crisp: z.ZodObject<{
3637
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3638
+ crisp: z.ZodOptional<z.ZodObject<{
3400
3639
  budget: z.ZodOptional<z.ZodObject<{
3401
3640
  unit: z.ZodEnum<["USD", "ops", "points"]>;
3402
3641
  cap: z.ZodNumber;
@@ -3522,11 +3761,12 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3522
3761
  matcher: "exact" | "prefix" | "regex";
3523
3762
  constraints?: Record<string, any> | undefined;
3524
3763
  }>, "many">;
3525
- }, z.ZodTypeAny, "passthrough">>;
3764
+ }, z.ZodTypeAny, "passthrough">>>;
3526
3765
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3527
3766
  notBefore: z.ZodOptional<z.ZodNumber>;
3528
3767
  notAfter: z.ZodOptional<z.ZodNumber>;
3529
- crisp: z.ZodObject<{
3768
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3769
+ crisp: z.ZodOptional<z.ZodObject<{
3530
3770
  budget: z.ZodOptional<z.ZodObject<{
3531
3771
  unit: z.ZodEnum<["USD", "ops", "points"]>;
3532
3772
  cap: z.ZodNumber;
@@ -3652,7 +3892,7 @@ export declare function validateDelegationRecord(record: unknown): z.SafeParseRe
3652
3892
  matcher: "exact" | "prefix" | "regex";
3653
3893
  constraints?: Record<string, any> | undefined;
3654
3894
  }>, "many">;
3655
- }, z.ZodTypeAny, "passthrough">>;
3895
+ }, z.ZodTypeAny, "passthrough">>>;
3656
3896
  }, z.ZodTypeAny, "passthrough">>;
3657
3897
  /** Detached JWS signature over canonical delegation document */
3658
3898
  signature: z.ZodString;
@@ -3679,33 +3919,60 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
3679
3919
  rootIssuer: string;
3680
3920
  leafSubject: string;
3681
3921
  chain: {
3682
- issuerDid: string;
3683
- subjectDid: string;
3684
- vcId: string;
3685
3922
  status: "active" | "revoked" | "expired";
3686
3923
  constraints: {
3687
- crisp: {
3688
- scopes: {
3689
- resource: string;
3690
- matcher: "exact" | "prefix" | "regex";
3691
- constraints?: Record<string, any> | undefined;
3692
- }[];
3693
- budget?: {
3924
+ notBefore?: number | undefined;
3925
+ notAfter?: number | undefined;
3926
+ scopes?: string[] | undefined;
3927
+ crisp?: z.objectInputType<{
3928
+ budget: z.ZodOptional<z.ZodObject<{
3929
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
3930
+ cap: z.ZodNumber;
3931
+ window: z.ZodOptional<z.ZodObject<{
3932
+ kind: z.ZodEnum<["rolling", "fixed"]>;
3933
+ durationSec: z.ZodNumber;
3934
+ }, "strip", z.ZodTypeAny, {
3935
+ kind: "rolling" | "fixed";
3936
+ durationSec: number;
3937
+ }, {
3938
+ kind: "rolling" | "fixed";
3939
+ durationSec: number;
3940
+ }>>;
3941
+ }, "strip", z.ZodTypeAny, {
3694
3942
  unit: "USD" | "ops" | "points";
3695
3943
  cap: number;
3696
3944
  window?: {
3697
3945
  kind: "rolling" | "fixed";
3698
3946
  durationSec: number;
3699
3947
  } | undefined;
3700
- } | undefined;
3701
- } & {
3702
- [k: string]: unknown;
3703
- };
3704
- notBefore?: number | undefined;
3705
- notAfter?: number | undefined;
3948
+ }, {
3949
+ unit: "USD" | "ops" | "points";
3950
+ cap: number;
3951
+ window?: {
3952
+ kind: "rolling" | "fixed";
3953
+ durationSec: number;
3954
+ } | undefined;
3955
+ }>>;
3956
+ scopes: z.ZodArray<z.ZodObject<{
3957
+ resource: z.ZodString;
3958
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
3959
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3960
+ }, "strip", z.ZodTypeAny, {
3961
+ resource: string;
3962
+ matcher: "exact" | "prefix" | "regex";
3963
+ constraints?: Record<string, any> | undefined;
3964
+ }, {
3965
+ resource: string;
3966
+ matcher: "exact" | "prefix" | "regex";
3967
+ constraints?: Record<string, any> | undefined;
3968
+ }>, "many">;
3969
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3706
3970
  } & {
3707
3971
  [k: string]: unknown;
3708
3972
  };
3973
+ issuerDid: string;
3974
+ subjectDid: string;
3975
+ vcId: string;
3709
3976
  delegationId: string;
3710
3977
  depth: number;
3711
3978
  }[];
@@ -3716,33 +3983,60 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
3716
3983
  rootIssuer: string;
3717
3984
  leafSubject: string;
3718
3985
  chain: {
3719
- issuerDid: string;
3720
- subjectDid: string;
3721
- vcId: string;
3722
3986
  status: "active" | "revoked" | "expired";
3723
3987
  constraints: {
3724
- crisp: {
3725
- scopes: {
3726
- resource: string;
3727
- matcher: "exact" | "prefix" | "regex";
3728
- constraints?: Record<string, any> | undefined;
3729
- }[];
3730
- budget?: {
3988
+ notBefore?: number | undefined;
3989
+ notAfter?: number | undefined;
3990
+ scopes?: string[] | undefined;
3991
+ crisp?: z.objectOutputType<{
3992
+ budget: z.ZodOptional<z.ZodObject<{
3993
+ unit: z.ZodEnum<["USD", "ops", "points"]>;
3994
+ cap: z.ZodNumber;
3995
+ window: z.ZodOptional<z.ZodObject<{
3996
+ kind: z.ZodEnum<["rolling", "fixed"]>;
3997
+ durationSec: z.ZodNumber;
3998
+ }, "strip", z.ZodTypeAny, {
3999
+ kind: "rolling" | "fixed";
4000
+ durationSec: number;
4001
+ }, {
4002
+ kind: "rolling" | "fixed";
4003
+ durationSec: number;
4004
+ }>>;
4005
+ }, "strip", z.ZodTypeAny, {
3731
4006
  unit: "USD" | "ops" | "points";
3732
4007
  cap: number;
3733
4008
  window?: {
3734
4009
  kind: "rolling" | "fixed";
3735
4010
  durationSec: number;
3736
4011
  } | undefined;
3737
- } | undefined;
3738
- } & {
3739
- [k: string]: unknown;
3740
- };
3741
- notBefore?: number | undefined;
3742
- notAfter?: number | undefined;
4012
+ }, {
4013
+ unit: "USD" | "ops" | "points";
4014
+ cap: number;
4015
+ window?: {
4016
+ kind: "rolling" | "fixed";
4017
+ durationSec: number;
4018
+ } | undefined;
4019
+ }>>;
4020
+ scopes: z.ZodArray<z.ZodObject<{
4021
+ resource: z.ZodString;
4022
+ matcher: z.ZodEnum<["exact", "prefix", "regex"]>;
4023
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4024
+ }, "strip", z.ZodTypeAny, {
4025
+ resource: string;
4026
+ matcher: "exact" | "prefix" | "regex";
4027
+ constraints?: Record<string, any> | undefined;
4028
+ }, {
4029
+ resource: string;
4030
+ matcher: "exact" | "prefix" | "regex";
4031
+ constraints?: Record<string, any> | undefined;
4032
+ }>, "many">;
4033
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3743
4034
  } & {
3744
4035
  [k: string]: unknown;
3745
4036
  };
4037
+ issuerDid: string;
4038
+ subjectDid: string;
4039
+ vcId: string;
3746
4040
  delegationId: string;
3747
4041
  depth: number;
3748
4042
  }[];