@coinbase/cdp-sdk 1.36.1 → 1.38.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/CHANGELOG.md +12 -0
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +73 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.js +1 -39
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js +29 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +43 -0
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +1 -0
- package/_cjs/openapi-client/index.js +1 -0
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/evmSchema.js +2 -0
- package/_cjs/policies/evmSchema.js.map +1 -1
- package/_cjs/policies/solanaSchema.js +92 -2
- package/_cjs/policies/solanaSchema.js.map +1 -1
- package/_cjs/policies/types.js +1 -0
- package/_cjs/policies/types.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +71 -0
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.js +0 -37
- package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_esm/openapi-client/generated/onramp/onramp.js +27 -0
- package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +39 -0
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +1 -0
- package/_esm/openapi-client/index.js +1 -0
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/evmSchema.js +2 -0
- package/_esm/policies/evmSchema.js.map +1 -1
- package/_esm/policies/solanaSchema.js +91 -1
- package/_esm/policies/solanaSchema.js.map +1 -1
- package/_esm/policies/types.js +2 -1
- package/_esm/policies/types.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +226 -6
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts +1 -32
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
- package/_types/openapi-client/generated/onramp/onramp.d.ts +22 -1
- package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts +43 -0
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts.map +1 -0
- package/_types/openapi-client/index.d.ts +1 -1
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +92 -0
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/solanaSchema.d.ts +325 -3
- package/_types/policies/solanaSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +489 -0
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +295 -5
- package/openapi-client/generated/onchain-data/onchain-data.ts +0 -46
- package/openapi-client/generated/onramp/onramp.ts +38 -0
- package/openapi-client/generated/sql-api-alpha/sql-api-alpha.ts +60 -0
- package/openapi-client/index.ts +1 -0
- package/package.json +1 -1
- package/policies/evmSchema.ts +2 -0
- package/policies/solanaSchema.ts +124 -3
- package/policies/types.ts +6 -1
- package/version.ts +1 -1
|
@@ -1134,6 +1134,18 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1134
1134
|
address: z.ZodString;
|
|
1135
1135
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1136
1136
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
1137
|
+
}>, z.ZodObject<{
|
|
1138
|
+
type: z.ZodLiteral<"programId">;
|
|
1139
|
+
programIds: z.ZodArray<z.ZodString, "many">;
|
|
1140
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
1141
|
+
}, "strip", z.ZodTypeAny, {
|
|
1142
|
+
type: "programId";
|
|
1143
|
+
operator: "in" | "not in";
|
|
1144
|
+
programIds: string[];
|
|
1145
|
+
}, {
|
|
1146
|
+
type: "programId";
|
|
1147
|
+
operator: "in" | "not in";
|
|
1148
|
+
programIds: string[];
|
|
1137
1149
|
}>]>, "many">;
|
|
1138
1150
|
}, "strip", z.ZodTypeAny, {
|
|
1139
1151
|
action: "reject" | "accept";
|
|
@@ -1176,6 +1188,10 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1176
1188
|
address: z.ZodString;
|
|
1177
1189
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1178
1190
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
1191
|
+
} | {
|
|
1192
|
+
type: "programId";
|
|
1193
|
+
operator: "in" | "not in";
|
|
1194
|
+
programIds: string[];
|
|
1179
1195
|
})[];
|
|
1180
1196
|
}, {
|
|
1181
1197
|
action: "reject" | "accept";
|
|
@@ -1218,6 +1234,10 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1218
1234
|
address: z.ZodString;
|
|
1219
1235
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1220
1236
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
1237
|
+
} | {
|
|
1238
|
+
type: "programId";
|
|
1239
|
+
operator: "in" | "not in";
|
|
1240
|
+
programIds: string[];
|
|
1221
1241
|
})[];
|
|
1222
1242
|
}>, z.ZodObject<{
|
|
1223
1243
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
@@ -1380,6 +1400,30 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1380
1400
|
address: z.ZodString;
|
|
1381
1401
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1382
1402
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
1403
|
+
}>, z.ZodObject<{
|
|
1404
|
+
type: z.ZodLiteral<"programId">;
|
|
1405
|
+
programIds: z.ZodArray<z.ZodString, "many">;
|
|
1406
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
1407
|
+
}, "strip", z.ZodTypeAny, {
|
|
1408
|
+
type: "programId";
|
|
1409
|
+
operator: "in" | "not in";
|
|
1410
|
+
programIds: string[];
|
|
1411
|
+
}, {
|
|
1412
|
+
type: "programId";
|
|
1413
|
+
operator: "in" | "not in";
|
|
1414
|
+
programIds: string[];
|
|
1415
|
+
}>, z.ZodObject<{
|
|
1416
|
+
type: z.ZodLiteral<"solNetwork">;
|
|
1417
|
+
networks: z.ZodArray<z.ZodEnum<["solana-devnet", "solana"]>, "many">;
|
|
1418
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
1419
|
+
}, "strip", z.ZodTypeAny, {
|
|
1420
|
+
type: "solNetwork";
|
|
1421
|
+
operator: "in" | "not in";
|
|
1422
|
+
networks: ("solana-devnet" | "solana")[];
|
|
1423
|
+
}, {
|
|
1424
|
+
type: "solNetwork";
|
|
1425
|
+
operator: "in" | "not in";
|
|
1426
|
+
networks: ("solana-devnet" | "solana")[];
|
|
1383
1427
|
}>]>, "many">;
|
|
1384
1428
|
}, "strip", z.ZodTypeAny, {
|
|
1385
1429
|
action: "reject" | "accept";
|
|
@@ -1422,6 +1466,14 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1422
1466
|
address: z.ZodString;
|
|
1423
1467
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1424
1468
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
1469
|
+
} | {
|
|
1470
|
+
type: "programId";
|
|
1471
|
+
operator: "in" | "not in";
|
|
1472
|
+
programIds: string[];
|
|
1473
|
+
} | {
|
|
1474
|
+
type: "solNetwork";
|
|
1475
|
+
operator: "in" | "not in";
|
|
1476
|
+
networks: ("solana-devnet" | "solana")[];
|
|
1425
1477
|
})[];
|
|
1426
1478
|
}, {
|
|
1427
1479
|
action: "reject" | "accept";
|
|
@@ -1464,7 +1516,42 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1464
1516
|
address: z.ZodString;
|
|
1465
1517
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
1466
1518
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
1519
|
+
} | {
|
|
1520
|
+
type: "programId";
|
|
1521
|
+
operator: "in" | "not in";
|
|
1522
|
+
programIds: string[];
|
|
1523
|
+
} | {
|
|
1524
|
+
type: "solNetwork";
|
|
1525
|
+
operator: "in" | "not in";
|
|
1526
|
+
networks: ("solana-devnet" | "solana")[];
|
|
1467
1527
|
})[];
|
|
1528
|
+
}>, z.ZodObject<{
|
|
1529
|
+
action: z.ZodEnum<["reject", "accept"]>;
|
|
1530
|
+
operation: z.ZodLiteral<"signSolMessage">;
|
|
1531
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
1532
|
+
type: z.ZodLiteral<"solMessage">;
|
|
1533
|
+
match: z.ZodString;
|
|
1534
|
+
}, "strip", z.ZodTypeAny, {
|
|
1535
|
+
match: string;
|
|
1536
|
+
type: "solMessage";
|
|
1537
|
+
}, {
|
|
1538
|
+
match: string;
|
|
1539
|
+
type: "solMessage";
|
|
1540
|
+
}>, "many">;
|
|
1541
|
+
}, "strip", z.ZodTypeAny, {
|
|
1542
|
+
action: "reject" | "accept";
|
|
1543
|
+
operation: "signSolMessage";
|
|
1544
|
+
criteria: {
|
|
1545
|
+
match: string;
|
|
1546
|
+
type: "solMessage";
|
|
1547
|
+
}[];
|
|
1548
|
+
}, {
|
|
1549
|
+
action: "reject" | "accept";
|
|
1550
|
+
operation: "signSolMessage";
|
|
1551
|
+
criteria: {
|
|
1552
|
+
match: string;
|
|
1553
|
+
type: "solMessage";
|
|
1554
|
+
}[];
|
|
1468
1555
|
}>, z.ZodObject<{
|
|
1469
1556
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
1470
1557
|
operation: z.ZodLiteral<"prepareUserOperation">;
|
|
@@ -1728,6 +1815,18 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1728
1815
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1729
1816
|
})[] | undefined;
|
|
1730
1817
|
}[];
|
|
1818
|
+
}>, z.ZodObject<{
|
|
1819
|
+
type: z.ZodLiteral<"netUSDChange">;
|
|
1820
|
+
changeCents: z.ZodNumber;
|
|
1821
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
1822
|
+
}, "strip", z.ZodTypeAny, {
|
|
1823
|
+
type: "netUSDChange";
|
|
1824
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1825
|
+
changeCents: number;
|
|
1826
|
+
}, {
|
|
1827
|
+
type: "netUSDChange";
|
|
1828
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1829
|
+
changeCents: number;
|
|
1731
1830
|
}>]>, "many">;
|
|
1732
1831
|
}, "strip", z.ZodTypeAny, {
|
|
1733
1832
|
action: "reject" | "accept";
|
|
@@ -1744,6 +1843,10 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1744
1843
|
type: "evmNetwork";
|
|
1745
1844
|
operator: "in" | "not in";
|
|
1746
1845
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
1846
|
+
} | {
|
|
1847
|
+
type: "netUSDChange";
|
|
1848
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1849
|
+
changeCents: number;
|
|
1747
1850
|
} | {
|
|
1748
1851
|
type: "evmData";
|
|
1749
1852
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -1805,6 +1908,10 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
1805
1908
|
type: "evmNetwork";
|
|
1806
1909
|
operator: "in" | "not in";
|
|
1807
1910
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
1911
|
+
} | {
|
|
1912
|
+
type: "netUSDChange";
|
|
1913
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
1914
|
+
changeCents: number;
|
|
1808
1915
|
} | {
|
|
1809
1916
|
type: "evmData";
|
|
1810
1917
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -2072,6 +2179,18 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
2072
2179
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
2073
2180
|
})[] | undefined;
|
|
2074
2181
|
}[];
|
|
2182
|
+
}>, z.ZodObject<{
|
|
2183
|
+
type: z.ZodLiteral<"netUSDChange">;
|
|
2184
|
+
changeCents: z.ZodNumber;
|
|
2185
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
2186
|
+
}, "strip", z.ZodTypeAny, {
|
|
2187
|
+
type: "netUSDChange";
|
|
2188
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
2189
|
+
changeCents: number;
|
|
2190
|
+
}, {
|
|
2191
|
+
type: "netUSDChange";
|
|
2192
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
2193
|
+
changeCents: number;
|
|
2075
2194
|
}>]>, "many">;
|
|
2076
2195
|
}, "strip", z.ZodTypeAny, {
|
|
2077
2196
|
action: "reject" | "accept";
|
|
@@ -2084,6 +2203,10 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
2084
2203
|
type: "evmAddress";
|
|
2085
2204
|
operator: "in" | "not in";
|
|
2086
2205
|
addresses: `0x${string}`[];
|
|
2206
|
+
} | {
|
|
2207
|
+
type: "netUSDChange";
|
|
2208
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
2209
|
+
changeCents: number;
|
|
2087
2210
|
} | {
|
|
2088
2211
|
type: "evmData";
|
|
2089
2212
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -2141,6 +2264,10 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
|
|
|
2141
2264
|
type: "evmAddress";
|
|
2142
2265
|
operator: "in" | "not in";
|
|
2143
2266
|
addresses: string[];
|
|
2267
|
+
} | {
|
|
2268
|
+
type: "netUSDChange";
|
|
2269
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
2270
|
+
changeCents: number;
|
|
2144
2271
|
} | {
|
|
2145
2272
|
type: "evmData";
|
|
2146
2273
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -3287,6 +3414,18 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3287
3414
|
address: z.ZodString;
|
|
3288
3415
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
3289
3416
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3417
|
+
}>, z.ZodObject<{
|
|
3418
|
+
type: z.ZodLiteral<"programId">;
|
|
3419
|
+
programIds: z.ZodArray<z.ZodString, "many">;
|
|
3420
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
3421
|
+
}, "strip", z.ZodTypeAny, {
|
|
3422
|
+
type: "programId";
|
|
3423
|
+
operator: "in" | "not in";
|
|
3424
|
+
programIds: string[];
|
|
3425
|
+
}, {
|
|
3426
|
+
type: "programId";
|
|
3427
|
+
operator: "in" | "not in";
|
|
3428
|
+
programIds: string[];
|
|
3290
3429
|
}>]>, "many">;
|
|
3291
3430
|
}, "strip", z.ZodTypeAny, {
|
|
3292
3431
|
action: "reject" | "accept";
|
|
@@ -3329,6 +3468,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3329
3468
|
address: z.ZodString;
|
|
3330
3469
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
3331
3470
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3471
|
+
} | {
|
|
3472
|
+
type: "programId";
|
|
3473
|
+
operator: "in" | "not in";
|
|
3474
|
+
programIds: string[];
|
|
3332
3475
|
})[];
|
|
3333
3476
|
}, {
|
|
3334
3477
|
action: "reject" | "accept";
|
|
@@ -3371,6 +3514,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3371
3514
|
address: z.ZodString;
|
|
3372
3515
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
3373
3516
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3517
|
+
} | {
|
|
3518
|
+
type: "programId";
|
|
3519
|
+
operator: "in" | "not in";
|
|
3520
|
+
programIds: string[];
|
|
3374
3521
|
})[];
|
|
3375
3522
|
}>, z.ZodObject<{
|
|
3376
3523
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
@@ -3533,6 +3680,30 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3533
3680
|
address: z.ZodString;
|
|
3534
3681
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
3535
3682
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3683
|
+
}>, z.ZodObject<{
|
|
3684
|
+
type: z.ZodLiteral<"programId">;
|
|
3685
|
+
programIds: z.ZodArray<z.ZodString, "many">;
|
|
3686
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
3687
|
+
}, "strip", z.ZodTypeAny, {
|
|
3688
|
+
type: "programId";
|
|
3689
|
+
operator: "in" | "not in";
|
|
3690
|
+
programIds: string[];
|
|
3691
|
+
}, {
|
|
3692
|
+
type: "programId";
|
|
3693
|
+
operator: "in" | "not in";
|
|
3694
|
+
programIds: string[];
|
|
3695
|
+
}>, z.ZodObject<{
|
|
3696
|
+
type: z.ZodLiteral<"solNetwork">;
|
|
3697
|
+
networks: z.ZodArray<z.ZodEnum<["solana-devnet", "solana"]>, "many">;
|
|
3698
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
3699
|
+
}, "strip", z.ZodTypeAny, {
|
|
3700
|
+
type: "solNetwork";
|
|
3701
|
+
operator: "in" | "not in";
|
|
3702
|
+
networks: ("solana-devnet" | "solana")[];
|
|
3703
|
+
}, {
|
|
3704
|
+
type: "solNetwork";
|
|
3705
|
+
operator: "in" | "not in";
|
|
3706
|
+
networks: ("solana-devnet" | "solana")[];
|
|
3536
3707
|
}>]>, "many">;
|
|
3537
3708
|
}, "strip", z.ZodTypeAny, {
|
|
3538
3709
|
action: "reject" | "accept";
|
|
@@ -3575,6 +3746,14 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3575
3746
|
address: z.ZodString;
|
|
3576
3747
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
3577
3748
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3749
|
+
} | {
|
|
3750
|
+
type: "programId";
|
|
3751
|
+
operator: "in" | "not in";
|
|
3752
|
+
programIds: string[];
|
|
3753
|
+
} | {
|
|
3754
|
+
type: "solNetwork";
|
|
3755
|
+
operator: "in" | "not in";
|
|
3756
|
+
networks: ("solana-devnet" | "solana")[];
|
|
3578
3757
|
})[];
|
|
3579
3758
|
}, {
|
|
3580
3759
|
action: "reject" | "accept";
|
|
@@ -3617,7 +3796,42 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3617
3796
|
address: z.ZodString;
|
|
3618
3797
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
3619
3798
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3799
|
+
} | {
|
|
3800
|
+
type: "programId";
|
|
3801
|
+
operator: "in" | "not in";
|
|
3802
|
+
programIds: string[];
|
|
3803
|
+
} | {
|
|
3804
|
+
type: "solNetwork";
|
|
3805
|
+
operator: "in" | "not in";
|
|
3806
|
+
networks: ("solana-devnet" | "solana")[];
|
|
3620
3807
|
})[];
|
|
3808
|
+
}>, z.ZodObject<{
|
|
3809
|
+
action: z.ZodEnum<["reject", "accept"]>;
|
|
3810
|
+
operation: z.ZodLiteral<"signSolMessage">;
|
|
3811
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
3812
|
+
type: z.ZodLiteral<"solMessage">;
|
|
3813
|
+
match: z.ZodString;
|
|
3814
|
+
}, "strip", z.ZodTypeAny, {
|
|
3815
|
+
match: string;
|
|
3816
|
+
type: "solMessage";
|
|
3817
|
+
}, {
|
|
3818
|
+
match: string;
|
|
3819
|
+
type: "solMessage";
|
|
3820
|
+
}>, "many">;
|
|
3821
|
+
}, "strip", z.ZodTypeAny, {
|
|
3822
|
+
action: "reject" | "accept";
|
|
3823
|
+
operation: "signSolMessage";
|
|
3824
|
+
criteria: {
|
|
3825
|
+
match: string;
|
|
3826
|
+
type: "solMessage";
|
|
3827
|
+
}[];
|
|
3828
|
+
}, {
|
|
3829
|
+
action: "reject" | "accept";
|
|
3830
|
+
operation: "signSolMessage";
|
|
3831
|
+
criteria: {
|
|
3832
|
+
match: string;
|
|
3833
|
+
type: "solMessage";
|
|
3834
|
+
}[];
|
|
3621
3835
|
}>, z.ZodObject<{
|
|
3622
3836
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
3623
3837
|
operation: z.ZodLiteral<"prepareUserOperation">;
|
|
@@ -3881,6 +4095,18 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3881
4095
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
3882
4096
|
})[] | undefined;
|
|
3883
4097
|
}[];
|
|
4098
|
+
}>, z.ZodObject<{
|
|
4099
|
+
type: z.ZodLiteral<"netUSDChange">;
|
|
4100
|
+
changeCents: z.ZodNumber;
|
|
4101
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
4102
|
+
}, "strip", z.ZodTypeAny, {
|
|
4103
|
+
type: "netUSDChange";
|
|
4104
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4105
|
+
changeCents: number;
|
|
4106
|
+
}, {
|
|
4107
|
+
type: "netUSDChange";
|
|
4108
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4109
|
+
changeCents: number;
|
|
3884
4110
|
}>]>, "many">;
|
|
3885
4111
|
}, "strip", z.ZodTypeAny, {
|
|
3886
4112
|
action: "reject" | "accept";
|
|
@@ -3897,6 +4123,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3897
4123
|
type: "evmNetwork";
|
|
3898
4124
|
operator: "in" | "not in";
|
|
3899
4125
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
4126
|
+
} | {
|
|
4127
|
+
type: "netUSDChange";
|
|
4128
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4129
|
+
changeCents: number;
|
|
3900
4130
|
} | {
|
|
3901
4131
|
type: "evmData";
|
|
3902
4132
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -3958,6 +4188,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
3958
4188
|
type: "evmNetwork";
|
|
3959
4189
|
operator: "in" | "not in";
|
|
3960
4190
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
4191
|
+
} | {
|
|
4192
|
+
type: "netUSDChange";
|
|
4193
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4194
|
+
changeCents: number;
|
|
3961
4195
|
} | {
|
|
3962
4196
|
type: "evmData";
|
|
3963
4197
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -4225,6 +4459,18 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4225
4459
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4226
4460
|
})[] | undefined;
|
|
4227
4461
|
}[];
|
|
4462
|
+
}>, z.ZodObject<{
|
|
4463
|
+
type: z.ZodLiteral<"netUSDChange">;
|
|
4464
|
+
changeCents: z.ZodNumber;
|
|
4465
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
4466
|
+
}, "strip", z.ZodTypeAny, {
|
|
4467
|
+
type: "netUSDChange";
|
|
4468
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4469
|
+
changeCents: number;
|
|
4470
|
+
}, {
|
|
4471
|
+
type: "netUSDChange";
|
|
4472
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4473
|
+
changeCents: number;
|
|
4228
4474
|
}>]>, "many">;
|
|
4229
4475
|
}, "strip", z.ZodTypeAny, {
|
|
4230
4476
|
action: "reject" | "accept";
|
|
@@ -4237,6 +4483,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4237
4483
|
type: "evmAddress";
|
|
4238
4484
|
operator: "in" | "not in";
|
|
4239
4485
|
addresses: `0x${string}`[];
|
|
4486
|
+
} | {
|
|
4487
|
+
type: "netUSDChange";
|
|
4488
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4489
|
+
changeCents: number;
|
|
4240
4490
|
} | {
|
|
4241
4491
|
type: "evmData";
|
|
4242
4492
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -4294,6 +4544,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4294
4544
|
type: "evmAddress";
|
|
4295
4545
|
operator: "in" | "not in";
|
|
4296
4546
|
addresses: string[];
|
|
4547
|
+
} | {
|
|
4548
|
+
type: "netUSDChange";
|
|
4549
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4550
|
+
changeCents: number;
|
|
4297
4551
|
} | {
|
|
4298
4552
|
type: "evmData";
|
|
4299
4553
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -4493,6 +4747,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4493
4747
|
type: "evmNetwork";
|
|
4494
4748
|
operator: "in" | "not in";
|
|
4495
4749
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
4750
|
+
} | {
|
|
4751
|
+
type: "netUSDChange";
|
|
4752
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4753
|
+
changeCents: number;
|
|
4496
4754
|
} | {
|
|
4497
4755
|
type: "evmData";
|
|
4498
4756
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -4550,6 +4808,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4550
4808
|
type: "evmAddress";
|
|
4551
4809
|
operator: "in" | "not in";
|
|
4552
4810
|
addresses: `0x${string}`[];
|
|
4811
|
+
} | {
|
|
4812
|
+
type: "netUSDChange";
|
|
4813
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
4814
|
+
changeCents: number;
|
|
4553
4815
|
} | {
|
|
4554
4816
|
type: "evmData";
|
|
4555
4817
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -4637,6 +4899,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4637
4899
|
address: z.ZodString;
|
|
4638
4900
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
4639
4901
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
4902
|
+
} | {
|
|
4903
|
+
type: "programId";
|
|
4904
|
+
operator: "in" | "not in";
|
|
4905
|
+
programIds: string[];
|
|
4640
4906
|
})[];
|
|
4641
4907
|
} | {
|
|
4642
4908
|
action: "reject" | "accept";
|
|
@@ -4679,7 +4945,22 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4679
4945
|
address: z.ZodString;
|
|
4680
4946
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
4681
4947
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
4948
|
+
} | {
|
|
4949
|
+
type: "programId";
|
|
4950
|
+
operator: "in" | "not in";
|
|
4951
|
+
programIds: string[];
|
|
4952
|
+
} | {
|
|
4953
|
+
type: "solNetwork";
|
|
4954
|
+
operator: "in" | "not in";
|
|
4955
|
+
networks: ("solana-devnet" | "solana")[];
|
|
4682
4956
|
})[];
|
|
4957
|
+
} | {
|
|
4958
|
+
action: "reject" | "accept";
|
|
4959
|
+
operation: "signSolMessage";
|
|
4960
|
+
criteria: {
|
|
4961
|
+
match: string;
|
|
4962
|
+
type: "solMessage";
|
|
4963
|
+
}[];
|
|
4683
4964
|
})[];
|
|
4684
4965
|
description?: string | undefined;
|
|
4685
4966
|
}, {
|
|
@@ -4804,6 +5085,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4804
5085
|
type: "evmNetwork";
|
|
4805
5086
|
operator: "in" | "not in";
|
|
4806
5087
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
5088
|
+
} | {
|
|
5089
|
+
type: "netUSDChange";
|
|
5090
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
5091
|
+
changeCents: number;
|
|
4807
5092
|
} | {
|
|
4808
5093
|
type: "evmData";
|
|
4809
5094
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -4831,6 +5116,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4831
5116
|
type: "evmAddress";
|
|
4832
5117
|
operator: "in" | "not in";
|
|
4833
5118
|
addresses: string[];
|
|
5119
|
+
} | {
|
|
5120
|
+
type: "netUSDChange";
|
|
5121
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
5122
|
+
changeCents: number;
|
|
4834
5123
|
} | {
|
|
4835
5124
|
type: "evmData";
|
|
4836
5125
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -4888,6 +5177,10 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4888
5177
|
address: z.ZodString;
|
|
4889
5178
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
4890
5179
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
5180
|
+
} | {
|
|
5181
|
+
type: "programId";
|
|
5182
|
+
operator: "in" | "not in";
|
|
5183
|
+
programIds: string[];
|
|
4891
5184
|
})[];
|
|
4892
5185
|
} | {
|
|
4893
5186
|
action: "reject" | "accept";
|
|
@@ -4930,7 +5223,22 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
4930
5223
|
address: z.ZodString;
|
|
4931
5224
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
4932
5225
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
5226
|
+
} | {
|
|
5227
|
+
type: "programId";
|
|
5228
|
+
operator: "in" | "not in";
|
|
5229
|
+
programIds: string[];
|
|
5230
|
+
} | {
|
|
5231
|
+
type: "solNetwork";
|
|
5232
|
+
operator: "in" | "not in";
|
|
5233
|
+
networks: ("solana-devnet" | "solana")[];
|
|
4933
5234
|
})[];
|
|
5235
|
+
} | {
|
|
5236
|
+
action: "reject" | "accept";
|
|
5237
|
+
operation: "signSolMessage";
|
|
5238
|
+
criteria: {
|
|
5239
|
+
match: string;
|
|
5240
|
+
type: "solMessage";
|
|
5241
|
+
}[];
|
|
4934
5242
|
})[];
|
|
4935
5243
|
description?: string | undefined;
|
|
4936
5244
|
}>;
|
|
@@ -6055,6 +6363,18 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6055
6363
|
address: z.ZodString;
|
|
6056
6364
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
6057
6365
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
6366
|
+
}>, z.ZodObject<{
|
|
6367
|
+
type: z.ZodLiteral<"programId">;
|
|
6368
|
+
programIds: z.ZodArray<z.ZodString, "many">;
|
|
6369
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
6370
|
+
}, "strip", z.ZodTypeAny, {
|
|
6371
|
+
type: "programId";
|
|
6372
|
+
operator: "in" | "not in";
|
|
6373
|
+
programIds: string[];
|
|
6374
|
+
}, {
|
|
6375
|
+
type: "programId";
|
|
6376
|
+
operator: "in" | "not in";
|
|
6377
|
+
programIds: string[];
|
|
6058
6378
|
}>]>, "many">;
|
|
6059
6379
|
}, "strip", z.ZodTypeAny, {
|
|
6060
6380
|
action: "reject" | "accept";
|
|
@@ -6097,6 +6417,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6097
6417
|
address: z.ZodString;
|
|
6098
6418
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
6099
6419
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
6420
|
+
} | {
|
|
6421
|
+
type: "programId";
|
|
6422
|
+
operator: "in" | "not in";
|
|
6423
|
+
programIds: string[];
|
|
6100
6424
|
})[];
|
|
6101
6425
|
}, {
|
|
6102
6426
|
action: "reject" | "accept";
|
|
@@ -6139,6 +6463,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6139
6463
|
address: z.ZodString;
|
|
6140
6464
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
6141
6465
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
6466
|
+
} | {
|
|
6467
|
+
type: "programId";
|
|
6468
|
+
operator: "in" | "not in";
|
|
6469
|
+
programIds: string[];
|
|
6142
6470
|
})[];
|
|
6143
6471
|
}>, z.ZodObject<{
|
|
6144
6472
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
@@ -6301,6 +6629,30 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6301
6629
|
address: z.ZodString;
|
|
6302
6630
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
6303
6631
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
6632
|
+
}>, z.ZodObject<{
|
|
6633
|
+
type: z.ZodLiteral<"programId">;
|
|
6634
|
+
programIds: z.ZodArray<z.ZodString, "many">;
|
|
6635
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
6636
|
+
}, "strip", z.ZodTypeAny, {
|
|
6637
|
+
type: "programId";
|
|
6638
|
+
operator: "in" | "not in";
|
|
6639
|
+
programIds: string[];
|
|
6640
|
+
}, {
|
|
6641
|
+
type: "programId";
|
|
6642
|
+
operator: "in" | "not in";
|
|
6643
|
+
programIds: string[];
|
|
6644
|
+
}>, z.ZodObject<{
|
|
6645
|
+
type: z.ZodLiteral<"solNetwork">;
|
|
6646
|
+
networks: z.ZodArray<z.ZodEnum<["solana-devnet", "solana"]>, "many">;
|
|
6647
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
6648
|
+
}, "strip", z.ZodTypeAny, {
|
|
6649
|
+
type: "solNetwork";
|
|
6650
|
+
operator: "in" | "not in";
|
|
6651
|
+
networks: ("solana-devnet" | "solana")[];
|
|
6652
|
+
}, {
|
|
6653
|
+
type: "solNetwork";
|
|
6654
|
+
operator: "in" | "not in";
|
|
6655
|
+
networks: ("solana-devnet" | "solana")[];
|
|
6304
6656
|
}>]>, "many">;
|
|
6305
6657
|
}, "strip", z.ZodTypeAny, {
|
|
6306
6658
|
action: "reject" | "accept";
|
|
@@ -6343,6 +6695,14 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6343
6695
|
address: z.ZodString;
|
|
6344
6696
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
6345
6697
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
6698
|
+
} | {
|
|
6699
|
+
type: "programId";
|
|
6700
|
+
operator: "in" | "not in";
|
|
6701
|
+
programIds: string[];
|
|
6702
|
+
} | {
|
|
6703
|
+
type: "solNetwork";
|
|
6704
|
+
operator: "in" | "not in";
|
|
6705
|
+
networks: ("solana-devnet" | "solana")[];
|
|
6346
6706
|
})[];
|
|
6347
6707
|
}, {
|
|
6348
6708
|
action: "reject" | "accept";
|
|
@@ -6385,7 +6745,42 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6385
6745
|
address: z.ZodString;
|
|
6386
6746
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
6387
6747
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
6748
|
+
} | {
|
|
6749
|
+
type: "programId";
|
|
6750
|
+
operator: "in" | "not in";
|
|
6751
|
+
programIds: string[];
|
|
6752
|
+
} | {
|
|
6753
|
+
type: "solNetwork";
|
|
6754
|
+
operator: "in" | "not in";
|
|
6755
|
+
networks: ("solana-devnet" | "solana")[];
|
|
6388
6756
|
})[];
|
|
6757
|
+
}>, z.ZodObject<{
|
|
6758
|
+
action: z.ZodEnum<["reject", "accept"]>;
|
|
6759
|
+
operation: z.ZodLiteral<"signSolMessage">;
|
|
6760
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
6761
|
+
type: z.ZodLiteral<"solMessage">;
|
|
6762
|
+
match: z.ZodString;
|
|
6763
|
+
}, "strip", z.ZodTypeAny, {
|
|
6764
|
+
match: string;
|
|
6765
|
+
type: "solMessage";
|
|
6766
|
+
}, {
|
|
6767
|
+
match: string;
|
|
6768
|
+
type: "solMessage";
|
|
6769
|
+
}>, "many">;
|
|
6770
|
+
}, "strip", z.ZodTypeAny, {
|
|
6771
|
+
action: "reject" | "accept";
|
|
6772
|
+
operation: "signSolMessage";
|
|
6773
|
+
criteria: {
|
|
6774
|
+
match: string;
|
|
6775
|
+
type: "solMessage";
|
|
6776
|
+
}[];
|
|
6777
|
+
}, {
|
|
6778
|
+
action: "reject" | "accept";
|
|
6779
|
+
operation: "signSolMessage";
|
|
6780
|
+
criteria: {
|
|
6781
|
+
match: string;
|
|
6782
|
+
type: "solMessage";
|
|
6783
|
+
}[];
|
|
6389
6784
|
}>, z.ZodObject<{
|
|
6390
6785
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
6391
6786
|
operation: z.ZodLiteral<"prepareUserOperation">;
|
|
@@ -6649,6 +7044,18 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6649
7044
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
6650
7045
|
})[] | undefined;
|
|
6651
7046
|
}[];
|
|
7047
|
+
}>, z.ZodObject<{
|
|
7048
|
+
type: z.ZodLiteral<"netUSDChange">;
|
|
7049
|
+
changeCents: z.ZodNumber;
|
|
7050
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
7051
|
+
}, "strip", z.ZodTypeAny, {
|
|
7052
|
+
type: "netUSDChange";
|
|
7053
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7054
|
+
changeCents: number;
|
|
7055
|
+
}, {
|
|
7056
|
+
type: "netUSDChange";
|
|
7057
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7058
|
+
changeCents: number;
|
|
6652
7059
|
}>]>, "many">;
|
|
6653
7060
|
}, "strip", z.ZodTypeAny, {
|
|
6654
7061
|
action: "reject" | "accept";
|
|
@@ -6665,6 +7072,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6665
7072
|
type: "evmNetwork";
|
|
6666
7073
|
operator: "in" | "not in";
|
|
6667
7074
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
7075
|
+
} | {
|
|
7076
|
+
type: "netUSDChange";
|
|
7077
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7078
|
+
changeCents: number;
|
|
6668
7079
|
} | {
|
|
6669
7080
|
type: "evmData";
|
|
6670
7081
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -6726,6 +7137,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6726
7137
|
type: "evmNetwork";
|
|
6727
7138
|
operator: "in" | "not in";
|
|
6728
7139
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
7140
|
+
} | {
|
|
7141
|
+
type: "netUSDChange";
|
|
7142
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7143
|
+
changeCents: number;
|
|
6729
7144
|
} | {
|
|
6730
7145
|
type: "evmData";
|
|
6731
7146
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -6993,6 +7408,18 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
6993
7408
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
6994
7409
|
})[] | undefined;
|
|
6995
7410
|
}[];
|
|
7411
|
+
}>, z.ZodObject<{
|
|
7412
|
+
type: z.ZodLiteral<"netUSDChange">;
|
|
7413
|
+
changeCents: z.ZodNumber;
|
|
7414
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
7415
|
+
}, "strip", z.ZodTypeAny, {
|
|
7416
|
+
type: "netUSDChange";
|
|
7417
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7418
|
+
changeCents: number;
|
|
7419
|
+
}, {
|
|
7420
|
+
type: "netUSDChange";
|
|
7421
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7422
|
+
changeCents: number;
|
|
6996
7423
|
}>]>, "many">;
|
|
6997
7424
|
}, "strip", z.ZodTypeAny, {
|
|
6998
7425
|
action: "reject" | "accept";
|
|
@@ -7005,6 +7432,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7005
7432
|
type: "evmAddress";
|
|
7006
7433
|
operator: "in" | "not in";
|
|
7007
7434
|
addresses: `0x${string}`[];
|
|
7435
|
+
} | {
|
|
7436
|
+
type: "netUSDChange";
|
|
7437
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7438
|
+
changeCents: number;
|
|
7008
7439
|
} | {
|
|
7009
7440
|
type: "evmData";
|
|
7010
7441
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -7062,6 +7493,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7062
7493
|
type: "evmAddress";
|
|
7063
7494
|
operator: "in" | "not in";
|
|
7064
7495
|
addresses: string[];
|
|
7496
|
+
} | {
|
|
7497
|
+
type: "netUSDChange";
|
|
7498
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7499
|
+
changeCents: number;
|
|
7065
7500
|
} | {
|
|
7066
7501
|
type: "evmData";
|
|
7067
7502
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -7260,6 +7695,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7260
7695
|
type: "evmNetwork";
|
|
7261
7696
|
operator: "in" | "not in";
|
|
7262
7697
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
7698
|
+
} | {
|
|
7699
|
+
type: "netUSDChange";
|
|
7700
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7701
|
+
changeCents: number;
|
|
7263
7702
|
} | {
|
|
7264
7703
|
type: "evmData";
|
|
7265
7704
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -7317,6 +7756,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7317
7756
|
type: "evmAddress";
|
|
7318
7757
|
operator: "in" | "not in";
|
|
7319
7758
|
addresses: `0x${string}`[];
|
|
7759
|
+
} | {
|
|
7760
|
+
type: "netUSDChange";
|
|
7761
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7762
|
+
changeCents: number;
|
|
7320
7763
|
} | {
|
|
7321
7764
|
type: "evmData";
|
|
7322
7765
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -7404,6 +7847,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7404
7847
|
address: z.ZodString;
|
|
7405
7848
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
7406
7849
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
7850
|
+
} | {
|
|
7851
|
+
type: "programId";
|
|
7852
|
+
operator: "in" | "not in";
|
|
7853
|
+
programIds: string[];
|
|
7407
7854
|
})[];
|
|
7408
7855
|
} | {
|
|
7409
7856
|
action: "reject" | "accept";
|
|
@@ -7446,7 +7893,22 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7446
7893
|
address: z.ZodString;
|
|
7447
7894
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
7448
7895
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
7896
|
+
} | {
|
|
7897
|
+
type: "programId";
|
|
7898
|
+
operator: "in" | "not in";
|
|
7899
|
+
programIds: string[];
|
|
7900
|
+
} | {
|
|
7901
|
+
type: "solNetwork";
|
|
7902
|
+
operator: "in" | "not in";
|
|
7903
|
+
networks: ("solana-devnet" | "solana")[];
|
|
7449
7904
|
})[];
|
|
7905
|
+
} | {
|
|
7906
|
+
action: "reject" | "accept";
|
|
7907
|
+
operation: "signSolMessage";
|
|
7908
|
+
criteria: {
|
|
7909
|
+
match: string;
|
|
7910
|
+
type: "solMessage";
|
|
7911
|
+
}[];
|
|
7450
7912
|
})[];
|
|
7451
7913
|
description?: string | undefined;
|
|
7452
7914
|
}, {
|
|
@@ -7570,6 +8032,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7570
8032
|
type: "evmNetwork";
|
|
7571
8033
|
operator: "in" | "not in";
|
|
7572
8034
|
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
8035
|
+
} | {
|
|
8036
|
+
type: "netUSDChange";
|
|
8037
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
8038
|
+
changeCents: number;
|
|
7573
8039
|
} | {
|
|
7574
8040
|
type: "evmData";
|
|
7575
8041
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -7597,6 +8063,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7597
8063
|
type: "evmAddress";
|
|
7598
8064
|
operator: "in" | "not in";
|
|
7599
8065
|
addresses: string[];
|
|
8066
|
+
} | {
|
|
8067
|
+
type: "netUSDChange";
|
|
8068
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
8069
|
+
changeCents: number;
|
|
7600
8070
|
} | {
|
|
7601
8071
|
type: "evmData";
|
|
7602
8072
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -7654,6 +8124,10 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7654
8124
|
address: z.ZodString;
|
|
7655
8125
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
7656
8126
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
8127
|
+
} | {
|
|
8128
|
+
type: "programId";
|
|
8129
|
+
operator: "in" | "not in";
|
|
8130
|
+
programIds: string[];
|
|
7657
8131
|
})[];
|
|
7658
8132
|
} | {
|
|
7659
8133
|
action: "reject" | "accept";
|
|
@@ -7696,7 +8170,22 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
7696
8170
|
address: z.ZodString;
|
|
7697
8171
|
instructions: z.ZodArray<z.ZodAny, "many">;
|
|
7698
8172
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
8173
|
+
} | {
|
|
8174
|
+
type: "programId";
|
|
8175
|
+
operator: "in" | "not in";
|
|
8176
|
+
programIds: string[];
|
|
8177
|
+
} | {
|
|
8178
|
+
type: "solNetwork";
|
|
8179
|
+
operator: "in" | "not in";
|
|
8180
|
+
networks: ("solana-devnet" | "solana")[];
|
|
7699
8181
|
})[];
|
|
8182
|
+
} | {
|
|
8183
|
+
action: "reject" | "accept";
|
|
8184
|
+
operation: "signSolMessage";
|
|
8185
|
+
criteria: {
|
|
8186
|
+
match: string;
|
|
8187
|
+
type: "solMessage";
|
|
8188
|
+
}[];
|
|
7700
8189
|
})[];
|
|
7701
8190
|
description?: string | undefined;
|
|
7702
8191
|
}>;
|