@coinbase/cdp-sdk 1.31.1 → 1.33.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 (63) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +9 -7
  3. package/_cjs/client/policies/policies.js +72 -5
  4. package/_cjs/client/policies/policies.js.map +1 -1
  5. package/_cjs/index.js +3 -3
  6. package/_cjs/index.js.map +1 -1
  7. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +65 -2
  8. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  9. package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js +259 -5
  10. package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -1
  11. package/_cjs/policies/{schema.js → evmSchema.js} +28 -112
  12. package/_cjs/policies/evmSchema.js.map +1 -0
  13. package/_cjs/policies/solanaSchema.js +183 -0
  14. package/_cjs/policies/solanaSchema.js.map +1 -0
  15. package/_cjs/policies/types.js +60 -0
  16. package/_cjs/policies/types.js.map +1 -1
  17. package/_cjs/version.js +1 -1
  18. package/_esm/client/policies/policies.js +70 -3
  19. package/_esm/client/policies/policies.js.map +1 -1
  20. package/_esm/index.js +1 -1
  21. package/_esm/index.js.map +1 -1
  22. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +63 -0
  23. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  24. package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js +237 -3
  25. package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -1
  26. package/_esm/policies/{schema.js → evmSchema.js} +27 -111
  27. package/_esm/policies/evmSchema.js.map +1 -0
  28. package/_esm/policies/solanaSchema.js +180 -0
  29. package/_esm/policies/solanaSchema.js.map +1 -0
  30. package/_esm/policies/types.js +59 -1
  31. package/_esm/policies/types.js.map +1 -1
  32. package/_esm/version.js +1 -1
  33. package/_types/client/policies/policies.d.ts +69 -2
  34. package/_types/client/policies/policies.d.ts.map +1 -1
  35. package/_types/client/policies/policies.types.d.ts +1 -2
  36. package/_types/client/policies/policies.types.d.ts.map +1 -1
  37. package/_types/index.d.ts +1 -1
  38. package/_types/index.d.ts.map +1 -1
  39. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +171 -4
  40. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  41. package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts +21 -1
  42. package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts.map +1 -1
  43. package/_types/policies/evmSchema.d.ts +4519 -0
  44. package/_types/policies/evmSchema.d.ts.map +1 -0
  45. package/_types/policies/solanaSchema.d.ts +758 -0
  46. package/_types/policies/solanaSchema.d.ts.map +1 -0
  47. package/_types/policies/types.d.ts +6743 -1
  48. package/_types/policies/types.d.ts.map +1 -1
  49. package/_types/version.d.ts +1 -1
  50. package/client/policies/policies.ts +70 -4
  51. package/client/policies/policies.types.ts +1 -2
  52. package/index.ts +1 -1
  53. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +240 -3
  54. package/openapi-client/generated/policy-engine/policy-engine.msw.ts +338 -3
  55. package/package.json +1 -1
  56. package/policies/{schema.ts → evmSchema.ts} +28 -158
  57. package/policies/solanaSchema.ts +251 -0
  58. package/policies/types.ts +94 -1
  59. package/version.ts +1 -1
  60. package/_cjs/policies/schema.js.map +0 -1
  61. package/_esm/policies/schema.js.map +0 -1
  62. package/_types/policies/schema.d.ts +0 -11599
  63. package/_types/policies/schema.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../policies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEhD;;GAEG;AACH,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPjmN,CAAC;AACH;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "1.31.1";
1
+ export declare const version = "1.33.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -13,8 +13,7 @@ import {
13
13
  CreatePolicyBody,
14
14
  UpdatePolicyBody,
15
15
  } from "../../openapi-client/index.js";
16
- import { CreatePolicyBodySchema, UpdatePolicyBodySchema } from "../../policies/schema.js";
17
- import { Policy } from "../../policies/types.js";
16
+ import { Policy, CreatePolicyBodySchema, UpdatePolicyBodySchema } from "../../policies/types.js";
18
17
 
19
18
  /**
20
19
  * The namespace containing all Policy methods.
@@ -80,7 +79,7 @@ export class PoliciesClient implements PoliciesClientInterface {
80
79
  * @returns {Promise<Policy>} The created policy
81
80
  * @throws {ZodError<typeof CreatePolicyBodySchema>} When the policy is invalid
82
81
  *
83
- * @example **Creating a new policy**
82
+ * @example **Creating a new EVM policy**
84
83
  * ```ts
85
84
  * const policy = await cdp.policies.createPolicy({
86
85
  * policy: {
@@ -103,6 +102,45 @@ export class PoliciesClient implements PoliciesClientInterface {
103
102
  * });
104
103
  * ```
105
104
  *
105
+ * @example **Creating a new Solana policy**
106
+ * ```ts
107
+ * const policy = await cdp.policies.createPolicy({
108
+ * policy: {
109
+ * scope: "account",
110
+ * description: "Limits SOL transfers and SPL token operations",
111
+ * rules: [
112
+ * {
113
+ * action: "reject",
114
+ * operation: "signSolTransaction",
115
+ * criteria: [
116
+ * {
117
+ * type: "solValue",
118
+ * solValue: "1000000000", // 1 SOL in lamports
119
+ * operator: ">",
120
+ * },
121
+ * {
122
+ * type: "solAddress",
123
+ * addresses: ["9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"],
124
+ * operator: "in",
125
+ * },
126
+ * ],
127
+ * },
128
+ * {
129
+ * action: "accept",
130
+ * operation: "sendSolTransaction",
131
+ * criteria: [
132
+ * {
133
+ * type: "mintAddress",
134
+ * addresses: ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"], // USDC mint
135
+ * operator: "in",
136
+ * },
137
+ * ],
138
+ * },
139
+ * ],
140
+ * }
141
+ * });
142
+ * ```
143
+ *
106
144
  * @example **With idempotency key**
107
145
  * ```ts
108
146
  * const idempotencyKey = uuidv4();
@@ -229,7 +267,7 @@ export class PoliciesClient implements PoliciesClientInterface {
229
267
  * @returns {Promise<Policy>} The updated policy
230
268
  * @throws {ZodError<typeof UpdatePolicyBodySchema>} When the updated policy is invalid
231
269
  *
232
- * @example **Updating a policy**
270
+ * @example **Updating an EVM policy**
233
271
  * ```ts
234
272
  * const updatedPolicy = await cdp.policies.updatePolicy({
235
273
  * id: "__ID__",
@@ -252,6 +290,34 @@ export class PoliciesClient implements PoliciesClientInterface {
252
290
  * });
253
291
  * ```
254
292
  *
293
+ * @example **Updating a Solana policy**
294
+ * ```ts
295
+ * const updatedPolicy = await cdp.policies.updatePolicy({
296
+ * id: "__ID__",
297
+ * policy: {
298
+ * description: "Updated Solana transaction limits",
299
+ * rules: [
300
+ * {
301
+ * action: "reject",
302
+ * operation: "signSolTransaction",
303
+ * criteria: [
304
+ * {
305
+ * type: "splValue",
306
+ * splValue: "1000000", // SPL token amount
307
+ * operator: ">=",
308
+ * },
309
+ * {
310
+ * type: "mintAddress",
311
+ * addresses: ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"], // USDC mint
312
+ * operator: "in",
313
+ * },
314
+ * ],
315
+ * },
316
+ * ],
317
+ * },
318
+ * });
319
+ * ```
320
+ *
255
321
  * @example **With idempotency key**
256
322
  * ```ts
257
323
  * const idempotencyKey = uuidv4();
@@ -1,6 +1,5 @@
1
1
  import { OpenApiPoliciesMethods } from "../../openapi-client/index.js";
2
- import { CreatePolicyBody, PolicyScope, UpdatePolicyBody } from "../../policies/schema.js";
3
- import { Policy } from "../../policies/types.js";
2
+ import { CreatePolicyBody, Policy, PolicyScope, UpdatePolicyBody } from "../../policies/types.js";
4
3
 
5
4
  /**
6
5
  * The PoliciesClient type, where all OpenApiPoliciesMethods methods are wrapped.
package/index.ts CHANGED
@@ -6,7 +6,7 @@ export {
6
6
  UpdatePolicyBodySchema,
7
7
  type CreatePolicyBody,
8
8
  type UpdatePolicyBody,
9
- } from "./policies/schema.js";
9
+ } from "./policies/types.js";
10
10
  export { NetworkError } from "./openapi-client/errors.js";
11
11
  export type { SpendPermission } from "./spend-permissions/types.js";
12
12
  export {
@@ -931,10 +931,49 @@ export interface EvmDataCriterion {
931
931
  conditions: EvmDataCondition[];
932
932
  }
933
933
 
934
+ /**
935
+ * The type of criterion to use. This should be `netUSDChange`.
936
+ */
937
+ export type NetUSDChangeCriterionType =
938
+ (typeof NetUSDChangeCriterionType)[keyof typeof NetUSDChangeCriterionType];
939
+
940
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
941
+ export const NetUSDChangeCriterionType = {
942
+ netUSDChange: "netUSDChange",
943
+ } as const;
944
+
945
+ /**
946
+ * The operator to use for the comparison. The total value of a transaction's asset transfer will be on the left-hand side of the operator, and the `changeCents` field will be on the right-hand side.
947
+ */
948
+ export type NetUSDChangeCriterionOperator =
949
+ (typeof NetUSDChangeCriterionOperator)[keyof typeof NetUSDChangeCriterionOperator];
950
+
951
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
952
+ export const NetUSDChangeCriterionOperator = {
953
+ ">": ">",
954
+ ">=": ">=",
955
+ "<": "<",
956
+ "<=": "<=",
957
+ "==": "==",
958
+ } as const;
959
+
960
+ /**
961
+ * A schema for specifying a criterion for the USD denominated asset transfer or exposure for a transaction. This includes native transfers, as well as token transfers.
962
+ */
963
+ export interface NetUSDChangeCriterion {
964
+ /** The type of criterion to use. This should be `netUSDChange`. */
965
+ type: NetUSDChangeCriterionType;
966
+ /** The amount of USD, in cents, that the total value of a transaction's asset transfer should be compared to. */
967
+ changeCents: number;
968
+ /** The operator to use for the comparison. The total value of a transaction's asset transfer will be on the left-hand side of the operator, and the `changeCents` field will be on the right-hand side. */
969
+ operator: NetUSDChangeCriterionOperator;
970
+ }
971
+
934
972
  export type SignEvmTransactionCriteriaItem =
935
973
  | EthValueCriterion
936
974
  | EvmAddressCriterion
937
- | EvmDataCriterion;
975
+ | EvmDataCriterion
976
+ | NetUSDChangeCriterion;
938
977
 
939
978
  /**
940
979
  * A schema for specifying criteria for the SignEvmTransaction operation.
@@ -1023,7 +1062,8 @@ export type SendEvmTransactionCriteriaItem =
1023
1062
  | EthValueCriterion
1024
1063
  | EvmAddressCriterion
1025
1064
  | EvmNetworkCriterion
1026
- | EvmDataCriterion;
1065
+ | EvmDataCriterion
1066
+ | NetUSDChangeCriterion;
1027
1067
 
1028
1068
  /**
1029
1069
  * A schema for specifying criteria for the SignEvmTransaction operation.
@@ -1341,10 +1381,163 @@ export interface SolAddressCriterion {
1341
1381
  operator: SolAddressCriterionOperator;
1342
1382
  }
1343
1383
 
1384
+ /**
1385
+ * The type of criterion to use. This should be `solValue`.
1386
+ */
1387
+ export type SolValueCriterionType =
1388
+ (typeof SolValueCriterionType)[keyof typeof SolValueCriterionType];
1389
+
1390
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1391
+ export const SolValueCriterionType = {
1392
+ solValue: "solValue",
1393
+ } as const;
1394
+
1395
+ /**
1396
+ * The operator to use for the comparison. The transaction instruction's `value` field will be on the left-hand side of the operator, and the `solValue` field will be on the right-hand side.
1397
+ */
1398
+ export type SolValueCriterionOperator =
1399
+ (typeof SolValueCriterionOperator)[keyof typeof SolValueCriterionOperator];
1400
+
1401
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1402
+ export const SolValueCriterionOperator = {
1403
+ ">": ">",
1404
+ ">=": ">=",
1405
+ "<": "<",
1406
+ "<=": "<=",
1407
+ "==": "==",
1408
+ } as const;
1409
+
1410
+ /**
1411
+ * The criterion for the SOL value in lamports of a native transfer instruction in a Solana transaction.
1412
+ */
1413
+ export interface SolValueCriterion {
1414
+ /** The type of criterion to use. This should be `solValue`. */
1415
+ type: SolValueCriterionType;
1416
+ /** The amount of SOL in lamports that the transaction instruction's `value` field should be compared to. */
1417
+ solValue: string;
1418
+ /** The operator to use for the comparison. The transaction instruction's `value` field will be on the left-hand side of the operator, and the `solValue` field will be on the right-hand side. */
1419
+ operator: SolValueCriterionOperator;
1420
+ }
1421
+
1422
+ /**
1423
+ * The type of criterion to use. This should be `splAddress`.
1424
+ */
1425
+ export type SplAddressCriterionType =
1426
+ (typeof SplAddressCriterionType)[keyof typeof SplAddressCriterionType];
1427
+
1428
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1429
+ export const SplAddressCriterionType = {
1430
+ splAddress: "splAddress",
1431
+ } as const;
1432
+
1433
+ /**
1434
+ * The operator to use for the comparison. Each of the SPL token transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
1435
+ */
1436
+ export type SplAddressCriterionOperator =
1437
+ (typeof SplAddressCriterionOperator)[keyof typeof SplAddressCriterionOperator];
1438
+
1439
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1440
+ export const SplAddressCriterionOperator = {
1441
+ in: "in",
1442
+ not_in: "not in",
1443
+ } as const;
1444
+
1445
+ /**
1446
+ * The criterion for the recipient addresses of a Solana transaction's SPL token transfer instructions.
1447
+ */
1448
+ export interface SplAddressCriterion {
1449
+ /** The type of criterion to use. This should be `splAddress`. */
1450
+ type: SplAddressCriterionType;
1451
+ /** The Solana addresses that are compared to the list of SPL token transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array. */
1452
+ addresses: string[];
1453
+ /** The operator to use for the comparison. Each of the SPL token transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side. */
1454
+ operator: SplAddressCriterionOperator;
1455
+ }
1456
+
1457
+ /**
1458
+ * The type of criterion to use. This should be `splValue`.
1459
+ */
1460
+ export type SplValueCriterionType =
1461
+ (typeof SplValueCriterionType)[keyof typeof SplValueCriterionType];
1462
+
1463
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1464
+ export const SplValueCriterionType = {
1465
+ splValue: "splValue",
1466
+ } as const;
1467
+
1468
+ /**
1469
+ * The operator to use for the comparison. The transaction instruction's `value` field will be on the left-hand side of the operator, and the `splValue` field will be on the right-hand side.
1470
+ */
1471
+ export type SplValueCriterionOperator =
1472
+ (typeof SplValueCriterionOperator)[keyof typeof SplValueCriterionOperator];
1473
+
1474
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1475
+ export const SplValueCriterionOperator = {
1476
+ ">": ">",
1477
+ ">=": ">=",
1478
+ "<": "<",
1479
+ "<=": "<=",
1480
+ "==": "==",
1481
+ } as const;
1482
+
1483
+ /**
1484
+ * The criterion for the SPL token value of a SPL token transfer instruction in a Solana transaction.
1485
+ */
1486
+ export interface SplValueCriterion {
1487
+ /** The type of criterion to use. This should be `splValue`. */
1488
+ type: SplValueCriterionType;
1489
+ /** The amount of the SPL token that the transaction instruction's `value` field should be compared to. */
1490
+ splValue: string;
1491
+ /** The operator to use for the comparison. The transaction instruction's `value` field will be on the left-hand side of the operator, and the `splValue` field will be on the right-hand side. */
1492
+ operator: SplValueCriterionOperator;
1493
+ }
1494
+
1495
+ /**
1496
+ * The type of criterion to use. This should be `mintAddress`.
1497
+ */
1498
+ export type MintAddressCriterionType =
1499
+ (typeof MintAddressCriterionType)[keyof typeof MintAddressCriterionType];
1500
+
1501
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1502
+ export const MintAddressCriterionType = {
1503
+ mintAddress: "mintAddress",
1504
+ } as const;
1505
+
1506
+ /**
1507
+ * The operator to use for the comparison. Each of the token mint addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
1508
+ */
1509
+ export type MintAddressCriterionOperator =
1510
+ (typeof MintAddressCriterionOperator)[keyof typeof MintAddressCriterionOperator];
1511
+
1512
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1513
+ export const MintAddressCriterionOperator = {
1514
+ in: "in",
1515
+ not_in: "not in",
1516
+ } as const;
1517
+
1518
+ /**
1519
+ * The criterion for the token mint addresses of a Solana transaction's SPL token transfer instructions.
1520
+ */
1521
+ export interface MintAddressCriterion {
1522
+ /** The type of criterion to use. This should be `mintAddress`. */
1523
+ type: MintAddressCriterionType;
1524
+ /** The Solana addresses that are compared to the list of token mint addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array. */
1525
+ addresses: string[];
1526
+ /** The operator to use for the comparison. Each of the token mint addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side. */
1527
+ operator: MintAddressCriterionOperator;
1528
+ }
1529
+
1530
+ export type SignSolTransactionCriteriaItem =
1531
+ | SolAddressCriterion
1532
+ | SolValueCriterion
1533
+ | SplAddressCriterion
1534
+ | SplValueCriterion
1535
+ | MintAddressCriterion;
1536
+
1344
1537
  /**
1345
1538
  * A schema for specifying criteria for the SignSolTransaction operation.
1346
1539
  */
1347
- export type SignSolTransactionCriteria = SolAddressCriterion[];
1540
+ export type SignSolTransactionCriteria = SignSolTransactionCriteriaItem[];
1348
1541
 
1349
1542
  /**
1350
1543
  * Whether matching the rule will cause the request to be rejected or accepted.
@@ -1377,6 +1570,49 @@ export interface SignSolTransactionRule {
1377
1570
  criteria: SignSolTransactionCriteria;
1378
1571
  }
1379
1572
 
1573
+ export type SendSolTransactionCriteriaItem =
1574
+ | SolAddressCriterion
1575
+ | SolValueCriterion
1576
+ | SplAddressCriterion
1577
+ | SplValueCriterion
1578
+ | MintAddressCriterion;
1579
+
1580
+ /**
1581
+ * A schema for specifying criteria for the SendSolTransaction operation.
1582
+ */
1583
+ export type SendSolTransactionCriteria = SendSolTransactionCriteriaItem[];
1584
+
1585
+ /**
1586
+ * Whether matching the rule will cause the request to be rejected or accepted.
1587
+ */
1588
+ export type SendSolTransactionRuleAction =
1589
+ (typeof SendSolTransactionRuleAction)[keyof typeof SendSolTransactionRuleAction];
1590
+
1591
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1592
+ export const SendSolTransactionRuleAction = {
1593
+ reject: "reject",
1594
+ accept: "accept",
1595
+ } as const;
1596
+
1597
+ /**
1598
+ * The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
1599
+ */
1600
+ export type SendSolTransactionRuleOperation =
1601
+ (typeof SendSolTransactionRuleOperation)[keyof typeof SendSolTransactionRuleOperation];
1602
+
1603
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1604
+ export const SendSolTransactionRuleOperation = {
1605
+ sendSolTransaction: "sendSolTransaction",
1606
+ } as const;
1607
+
1608
+ export interface SendSolTransactionRule {
1609
+ /** Whether matching the rule will cause the request to be rejected or accepted. */
1610
+ action: SendSolTransactionRuleAction;
1611
+ /** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
1612
+ operation: SendSolTransactionRuleOperation;
1613
+ criteria: SendSolTransactionCriteria;
1614
+ }
1615
+
1380
1616
  /**
1381
1617
  * Whether any attempts to sign a hash will be accepted or rejected. This rule does not accept any criteria.
1382
1618
  */
@@ -1499,6 +1735,7 @@ export type Rule =
1499
1735
  | SignEvmMessageRule
1500
1736
  | SignEvmTypedDataRule
1501
1737
  | SignSolTransactionRule
1738
+ | SendSolTransactionRule
1502
1739
  | SignEvmHashRule
1503
1740
  | PrepareUserOperationRule
1504
1741
  | SendUserOperationRule;