@kya-os/contracts 1.3.0 → 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.
- package/dist/delegation/constraints.d.ts +25 -15
- package/dist/delegation/constraints.d.ts.map +1 -1
- package/dist/delegation/constraints.js +23 -18
- package/dist/delegation/schemas.d.ts +472 -178
- package/dist/delegation/schemas.d.ts.map +1 -1
- package/dist/handshake.d.ts +8 -2
- package/dist/handshake.d.ts.map +1 -1
- package/dist/handshake.js +2 -0
- package/dist/proof.d.ts +24 -17
- package/dist/proof.d.ts.map +1 -1
- package/dist/proof.js +10 -3
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,32 +1700,59 @@ 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
1708
|
status: "active" | "revoked" | "expired";
|
|
1697
1709
|
constraints: {
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
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, {
|
|
1705
1728
|
unit: "USD" | "ops" | "points";
|
|
1706
1729
|
cap: number;
|
|
1707
1730
|
window?: {
|
|
1708
1731
|
kind: "rolling" | "fixed";
|
|
1709
1732
|
durationSec: number;
|
|
1710
1733
|
} | undefined;
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
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;
|
|
1717
1756
|
} & {
|
|
1718
1757
|
[k: string]: unknown;
|
|
1719
1758
|
};
|
|
@@ -1725,25 +1764,52 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
|
|
|
1725
1764
|
}, {
|
|
1726
1765
|
status: "active" | "revoked" | "expired";
|
|
1727
1766
|
constraints: {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
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, {
|
|
1735
1785
|
unit: "USD" | "ops" | "points";
|
|
1736
1786
|
cap: number;
|
|
1737
1787
|
window?: {
|
|
1738
1788
|
kind: "rolling" | "fixed";
|
|
1739
1789
|
durationSec: number;
|
|
1740
1790
|
} | undefined;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
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;
|
|
1747
1813
|
} & {
|
|
1748
1814
|
[k: string]: unknown;
|
|
1749
1815
|
};
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,32 +2235,59 @@ 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
2243
|
status: "active" | "revoked" | "expired";
|
|
2175
2244
|
constraints: {
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
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, {
|
|
2183
2263
|
unit: "USD" | "ops" | "points";
|
|
2184
2264
|
cap: number;
|
|
2185
2265
|
window?: {
|
|
2186
2266
|
kind: "rolling" | "fixed";
|
|
2187
2267
|
durationSec: number;
|
|
2188
2268
|
} | undefined;
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
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;
|
|
2195
2291
|
} & {
|
|
2196
2292
|
[k: string]: unknown;
|
|
2197
2293
|
};
|
|
@@ -2203,25 +2299,52 @@ export declare const DelegationChainSchema: z.ZodObject<{
|
|
|
2203
2299
|
}, {
|
|
2204
2300
|
status: "active" | "revoked" | "expired";
|
|
2205
2301
|
constraints: {
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
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, {
|
|
2213
2320
|
unit: "USD" | "ops" | "points";
|
|
2214
2321
|
cap: number;
|
|
2215
2322
|
window?: {
|
|
2216
2323
|
kind: "rolling" | "fixed";
|
|
2217
2324
|
durationSec: number;
|
|
2218
2325
|
} | undefined;
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
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;
|
|
2225
2348
|
} & {
|
|
2226
2349
|
[k: string]: unknown;
|
|
2227
2350
|
};
|
|
@@ -2245,25 +2368,52 @@ export declare const DelegationChainSchema: z.ZodObject<{
|
|
|
2245
2368
|
chain: {
|
|
2246
2369
|
status: "active" | "revoked" | "expired";
|
|
2247
2370
|
constraints: {
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
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, {
|
|
2255
2389
|
unit: "USD" | "ops" | "points";
|
|
2256
2390
|
cap: number;
|
|
2257
2391
|
window?: {
|
|
2258
2392
|
kind: "rolling" | "fixed";
|
|
2259
2393
|
durationSec: number;
|
|
2260
2394
|
} | undefined;
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2395
|
+
}, {
|
|
2396
|
+
unit: "USD" | "ops" | "points";
|
|
2397
|
+
cap: number;
|
|
2398
|
+
window?: {
|
|
2399
|
+
kind: "rolling" | "fixed";
|
|
2400
|
+
durationSec: number;
|
|
2401
|
+
} | undefined;
|
|
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;
|
|
2267
2417
|
} & {
|
|
2268
2418
|
[k: string]: unknown;
|
|
2269
2419
|
};
|
|
@@ -2282,25 +2432,52 @@ export declare const DelegationChainSchema: z.ZodObject<{
|
|
|
2282
2432
|
chain: {
|
|
2283
2433
|
status: "active" | "revoked" | "expired";
|
|
2284
2434
|
constraints: {
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2435
|
+
notBefore?: number | undefined;
|
|
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, {
|
|
2292
2453
|
unit: "USD" | "ops" | "points";
|
|
2293
2454
|
cap: number;
|
|
2294
2455
|
window?: {
|
|
2295
2456
|
kind: "rolling" | "fixed";
|
|
2296
2457
|
durationSec: number;
|
|
2297
2458
|
} | undefined;
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
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;
|
|
2304
2481
|
} & {
|
|
2305
2482
|
[k: string]: unknown;
|
|
2306
2483
|
};
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,7 +2895,7 @@ 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>;
|
|
@@ -2723,25 +2903,52 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
|
|
|
2723
2903
|
vcId: z.ZodOptional<z.ZodString>;
|
|
2724
2904
|
}, "strip", z.ZodTypeAny, {
|
|
2725
2905
|
constraints: {
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
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, {
|
|
2733
2924
|
unit: "USD" | "ops" | "points";
|
|
2734
2925
|
cap: number;
|
|
2735
2926
|
window?: {
|
|
2736
2927
|
kind: "rolling" | "fixed";
|
|
2737
2928
|
durationSec: number;
|
|
2738
2929
|
} | undefined;
|
|
2739
|
-
}
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
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;
|
|
2745
2952
|
} & {
|
|
2746
2953
|
[k: string]: unknown;
|
|
2747
2954
|
};
|
|
@@ -2752,25 +2959,52 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
|
|
|
2752
2959
|
parentId?: string | undefined;
|
|
2753
2960
|
}, {
|
|
2754
2961
|
constraints: {
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
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, {
|
|
2762
2980
|
unit: "USD" | "ops" | "points";
|
|
2763
2981
|
cap: number;
|
|
2764
2982
|
window?: {
|
|
2765
2983
|
kind: "rolling" | "fixed";
|
|
2766
2984
|
durationSec: number;
|
|
2767
2985
|
} | undefined;
|
|
2768
|
-
}
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
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;
|
|
2774
3008
|
} & {
|
|
2775
3009
|
[k: string]: unknown;
|
|
2776
3010
|
};
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -3681,25 +3921,52 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
|
|
|
3681
3921
|
chain: {
|
|
3682
3922
|
status: "active" | "revoked" | "expired";
|
|
3683
3923
|
constraints: {
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
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, {
|
|
3691
3942
|
unit: "USD" | "ops" | "points";
|
|
3692
3943
|
cap: number;
|
|
3693
3944
|
window?: {
|
|
3694
3945
|
kind: "rolling" | "fixed";
|
|
3695
3946
|
durationSec: number;
|
|
3696
3947
|
} | undefined;
|
|
3697
|
-
}
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
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;
|
|
3703
3970
|
} & {
|
|
3704
3971
|
[k: string]: unknown;
|
|
3705
3972
|
};
|
|
@@ -3718,25 +3985,52 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
|
|
|
3718
3985
|
chain: {
|
|
3719
3986
|
status: "active" | "revoked" | "expired";
|
|
3720
3987
|
constraints: {
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
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, {
|
|
3728
4006
|
unit: "USD" | "ops" | "points";
|
|
3729
4007
|
cap: number;
|
|
3730
4008
|
window?: {
|
|
3731
4009
|
kind: "rolling" | "fixed";
|
|
3732
4010
|
durationSec: number;
|
|
3733
4011
|
} | undefined;
|
|
3734
|
-
}
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
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;
|
|
3740
4034
|
} & {
|
|
3741
4035
|
[k: string]: unknown;
|
|
3742
4036
|
};
|