@coinbase/cdp-sdk 1.31.1 → 1.32.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 (62) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/_cjs/client/policies/policies.js +72 -5
  3. package/_cjs/client/policies/policies.js.map +1 -1
  4. package/_cjs/index.js +3 -3
  5. package/_cjs/index.js.map +1 -1
  6. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +53 -2
  7. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  8. package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js +215 -5
  9. package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -1
  10. package/_cjs/policies/{schema.js → evmSchema.js} +11 -112
  11. package/_cjs/policies/evmSchema.js.map +1 -0
  12. package/_cjs/policies/solanaSchema.js +183 -0
  13. package/_cjs/policies/solanaSchema.js.map +1 -0
  14. package/_cjs/policies/types.js +60 -0
  15. package/_cjs/policies/types.js.map +1 -1
  16. package/_cjs/version.js +1 -1
  17. package/_esm/client/policies/policies.js +70 -3
  18. package/_esm/client/policies/policies.js.map +1 -1
  19. package/_esm/index.js +1 -1
  20. package/_esm/index.js.map +1 -1
  21. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +51 -0
  22. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  23. package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js +197 -3
  24. package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -1
  25. package/_esm/policies/{schema.js → evmSchema.js} +10 -111
  26. package/_esm/policies/evmSchema.js.map +1 -0
  27. package/_esm/policies/solanaSchema.js +180 -0
  28. package/_esm/policies/solanaSchema.js.map +1 -0
  29. package/_esm/policies/types.js +59 -1
  30. package/_esm/policies/types.js.map +1 -1
  31. package/_esm/version.js +1 -1
  32. package/_types/client/policies/policies.d.ts +69 -2
  33. package/_types/client/policies/policies.d.ts.map +1 -1
  34. package/_types/client/policies/policies.types.d.ts +1 -2
  35. package/_types/client/policies/policies.types.d.ts.map +1 -1
  36. package/_types/index.d.ts +1 -1
  37. package/_types/index.d.ts.map +1 -1
  38. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +140 -2
  39. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  40. package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts +17 -1
  41. package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts.map +1 -1
  42. package/_types/policies/evmSchema.d.ts +4367 -0
  43. package/_types/policies/evmSchema.d.ts.map +1 -0
  44. package/_types/policies/solanaSchema.d.ts +758 -0
  45. package/_types/policies/solanaSchema.d.ts.map +1 -0
  46. package/_types/policies/types.d.ts +6591 -1
  47. package/_types/policies/types.d.ts.map +1 -1
  48. package/_types/version.d.ts +1 -1
  49. package/client/policies/policies.ts +70 -4
  50. package/client/policies/policies.types.ts +1 -2
  51. package/index.ts +1 -1
  52. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +198 -1
  53. package/openapi-client/generated/policy-engine/policy-engine.msw.ts +285 -3
  54. package/package.json +1 -1
  55. package/policies/{schema.ts → evmSchema.ts} +9 -158
  56. package/policies/solanaSchema.ts +251 -0
  57. package/policies/types.ts +94 -1
  58. package/version.ts +1 -1
  59. package/_cjs/policies/schema.js.map +0 -1
  60. package/_esm/policies/schema.js.map +0 -1
  61. package/_types/policies/schema.d.ts +0 -11599
  62. 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,MAAM,MAAM,GAAG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1";
1
+ export declare const version = "1.32.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 {
@@ -1341,10 +1341,163 @@ export interface SolAddressCriterion {
1341
1341
  operator: SolAddressCriterionOperator;
1342
1342
  }
1343
1343
 
1344
+ /**
1345
+ * The type of criterion to use. This should be `solValue`.
1346
+ */
1347
+ export type SolValueCriterionType =
1348
+ (typeof SolValueCriterionType)[keyof typeof SolValueCriterionType];
1349
+
1350
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1351
+ export const SolValueCriterionType = {
1352
+ solValue: "solValue",
1353
+ } as const;
1354
+
1355
+ /**
1356
+ * 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.
1357
+ */
1358
+ export type SolValueCriterionOperator =
1359
+ (typeof SolValueCriterionOperator)[keyof typeof SolValueCriterionOperator];
1360
+
1361
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1362
+ export const SolValueCriterionOperator = {
1363
+ ">": ">",
1364
+ ">=": ">=",
1365
+ "<": "<",
1366
+ "<=": "<=",
1367
+ "==": "==",
1368
+ } as const;
1369
+
1370
+ /**
1371
+ * The criterion for the SOL value in lamports of a native transfer instruction in a Solana transaction.
1372
+ */
1373
+ export interface SolValueCriterion {
1374
+ /** The type of criterion to use. This should be `solValue`. */
1375
+ type: SolValueCriterionType;
1376
+ /** The amount of SOL in lamports that the transaction instruction's `value` field should be compared to. */
1377
+ solValue: string;
1378
+ /** 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. */
1379
+ operator: SolValueCriterionOperator;
1380
+ }
1381
+
1382
+ /**
1383
+ * The type of criterion to use. This should be `splAddress`.
1384
+ */
1385
+ export type SplAddressCriterionType =
1386
+ (typeof SplAddressCriterionType)[keyof typeof SplAddressCriterionType];
1387
+
1388
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1389
+ export const SplAddressCriterionType = {
1390
+ splAddress: "splAddress",
1391
+ } as const;
1392
+
1393
+ /**
1394
+ * 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.
1395
+ */
1396
+ export type SplAddressCriterionOperator =
1397
+ (typeof SplAddressCriterionOperator)[keyof typeof SplAddressCriterionOperator];
1398
+
1399
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1400
+ export const SplAddressCriterionOperator = {
1401
+ in: "in",
1402
+ not_in: "not in",
1403
+ } as const;
1404
+
1405
+ /**
1406
+ * The criterion for the recipient addresses of a Solana transaction's SPL token transfer instructions.
1407
+ */
1408
+ export interface SplAddressCriterion {
1409
+ /** The type of criterion to use. This should be `splAddress`. */
1410
+ type: SplAddressCriterionType;
1411
+ /** 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. */
1412
+ addresses: string[];
1413
+ /** 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. */
1414
+ operator: SplAddressCriterionOperator;
1415
+ }
1416
+
1417
+ /**
1418
+ * The type of criterion to use. This should be `splValue`.
1419
+ */
1420
+ export type SplValueCriterionType =
1421
+ (typeof SplValueCriterionType)[keyof typeof SplValueCriterionType];
1422
+
1423
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1424
+ export const SplValueCriterionType = {
1425
+ splValue: "splValue",
1426
+ } as const;
1427
+
1428
+ /**
1429
+ * 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.
1430
+ */
1431
+ export type SplValueCriterionOperator =
1432
+ (typeof SplValueCriterionOperator)[keyof typeof SplValueCriterionOperator];
1433
+
1434
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1435
+ export const SplValueCriterionOperator = {
1436
+ ">": ">",
1437
+ ">=": ">=",
1438
+ "<": "<",
1439
+ "<=": "<=",
1440
+ "==": "==",
1441
+ } as const;
1442
+
1443
+ /**
1444
+ * The criterion for the SPL token value of a SPL token transfer instruction in a Solana transaction.
1445
+ */
1446
+ export interface SplValueCriterion {
1447
+ /** The type of criterion to use. This should be `splValue`. */
1448
+ type: SplValueCriterionType;
1449
+ /** The amount of the SPL token that the transaction instruction's `value` field should be compared to. */
1450
+ splValue: string;
1451
+ /** 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. */
1452
+ operator: SplValueCriterionOperator;
1453
+ }
1454
+
1455
+ /**
1456
+ * The type of criterion to use. This should be `mintAddress`.
1457
+ */
1458
+ export type MintAddressCriterionType =
1459
+ (typeof MintAddressCriterionType)[keyof typeof MintAddressCriterionType];
1460
+
1461
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1462
+ export const MintAddressCriterionType = {
1463
+ mintAddress: "mintAddress",
1464
+ } as const;
1465
+
1466
+ /**
1467
+ * 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.
1468
+ */
1469
+ export type MintAddressCriterionOperator =
1470
+ (typeof MintAddressCriterionOperator)[keyof typeof MintAddressCriterionOperator];
1471
+
1472
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1473
+ export const MintAddressCriterionOperator = {
1474
+ in: "in",
1475
+ not_in: "not in",
1476
+ } as const;
1477
+
1478
+ /**
1479
+ * The criterion for the token mint addresses of a Solana transaction's SPL token transfer instructions.
1480
+ */
1481
+ export interface MintAddressCriterion {
1482
+ /** The type of criterion to use. This should be `mintAddress`. */
1483
+ type: MintAddressCriterionType;
1484
+ /** 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. */
1485
+ addresses: string[];
1486
+ /** 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. */
1487
+ operator: MintAddressCriterionOperator;
1488
+ }
1489
+
1490
+ export type SignSolTransactionCriteriaItem =
1491
+ | SolAddressCriterion
1492
+ | SolValueCriterion
1493
+ | SplAddressCriterion
1494
+ | SplValueCriterion
1495
+ | MintAddressCriterion;
1496
+
1344
1497
  /**
1345
1498
  * A schema for specifying criteria for the SignSolTransaction operation.
1346
1499
  */
1347
- export type SignSolTransactionCriteria = SolAddressCriterion[];
1500
+ export type SignSolTransactionCriteria = SignSolTransactionCriteriaItem[];
1348
1501
 
1349
1502
  /**
1350
1503
  * Whether matching the rule will cause the request to be rejected or accepted.
@@ -1377,6 +1530,49 @@ export interface SignSolTransactionRule {
1377
1530
  criteria: SignSolTransactionCriteria;
1378
1531
  }
1379
1532
 
1533
+ export type SendSolTransactionCriteriaItem =
1534
+ | SolAddressCriterion
1535
+ | SolValueCriterion
1536
+ | SplAddressCriterion
1537
+ | SplValueCriterion
1538
+ | MintAddressCriterion;
1539
+
1540
+ /**
1541
+ * A schema for specifying criteria for the SendSolTransaction operation.
1542
+ */
1543
+ export type SendSolTransactionCriteria = SendSolTransactionCriteriaItem[];
1544
+
1545
+ /**
1546
+ * Whether matching the rule will cause the request to be rejected or accepted.
1547
+ */
1548
+ export type SendSolTransactionRuleAction =
1549
+ (typeof SendSolTransactionRuleAction)[keyof typeof SendSolTransactionRuleAction];
1550
+
1551
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1552
+ export const SendSolTransactionRuleAction = {
1553
+ reject: "reject",
1554
+ accept: "accept",
1555
+ } as const;
1556
+
1557
+ /**
1558
+ * The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
1559
+ */
1560
+ export type SendSolTransactionRuleOperation =
1561
+ (typeof SendSolTransactionRuleOperation)[keyof typeof SendSolTransactionRuleOperation];
1562
+
1563
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1564
+ export const SendSolTransactionRuleOperation = {
1565
+ sendSolTransaction: "sendSolTransaction",
1566
+ } as const;
1567
+
1568
+ export interface SendSolTransactionRule {
1569
+ /** Whether matching the rule will cause the request to be rejected or accepted. */
1570
+ action: SendSolTransactionRuleAction;
1571
+ /** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
1572
+ operation: SendSolTransactionRuleOperation;
1573
+ criteria: SendSolTransactionCriteria;
1574
+ }
1575
+
1380
1576
  /**
1381
1577
  * Whether any attempts to sign a hash will be accepted or rejected. This rule does not accept any criteria.
1382
1578
  */
@@ -1499,6 +1695,7 @@ export type Rule =
1499
1695
  | SignEvmMessageRule
1500
1696
  | SignEvmTypedDataRule
1501
1697
  | SignSolTransactionRule
1698
+ | SendSolTransactionRule
1502
1699
  | SignEvmHashRule
1503
1700
  | PrepareUserOperationRule
1504
1701
  | SendUserOperationRule;