@coinbase/cdp-sdk 1.46.0 → 1.47.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 (94) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +50 -0
  3. package/_cjs/actions/solana/sendTransaction.js +3 -0
  4. package/_cjs/actions/solana/sendTransaction.js.map +1 -1
  5. package/_cjs/actions/webhooks/createWebhookSubscription.js +48 -0
  6. package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -0
  7. package/_cjs/actions/webhooks/index.js +6 -0
  8. package/_cjs/actions/webhooks/index.js.map +1 -0
  9. package/_cjs/client/cdp.js +4 -0
  10. package/_cjs/client/cdp.js.map +1 -1
  11. package/_cjs/client/solana/solana.js +2 -0
  12. package/_cjs/client/solana/solana.js.map +1 -1
  13. package/_cjs/client/webhooks/webhooks.js +58 -0
  14. package/_cjs/client/webhooks/webhooks.js.map +1 -0
  15. package/_cjs/index.js.map +1 -1
  16. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +39 -43
  17. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  18. package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +33 -1
  19. package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -1
  20. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
  21. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  22. package/_cjs/openapi-client/generated/sql-api/sql-api.js +12 -1
  23. package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -1
  24. package/_cjs/openapi-client/generated/webhooks/webhooks.js +28 -1
  25. package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
  26. package/_cjs/version.js +1 -1
  27. package/_esm/actions/solana/sendTransaction.js +3 -0
  28. package/_esm/actions/solana/sendTransaction.js.map +1 -1
  29. package/_esm/actions/webhooks/createWebhookSubscription.js +45 -0
  30. package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -0
  31. package/_esm/actions/webhooks/index.js +2 -0
  32. package/_esm/actions/webhooks/index.js.map +1 -0
  33. package/_esm/client/cdp.js +4 -0
  34. package/_esm/client/cdp.js.map +1 -1
  35. package/_esm/client/solana/solana.js +2 -0
  36. package/_esm/client/solana/solana.js.map +1 -1
  37. package/_esm/client/webhooks/webhooks.js +54 -0
  38. package/_esm/client/webhooks/webhooks.js.map +1 -0
  39. package/_esm/index.js.map +1 -1
  40. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +36 -40
  41. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  42. package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +32 -0
  43. package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -1
  44. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
  45. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  46. package/_esm/openapi-client/generated/sql-api/sql-api.js +10 -0
  47. package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -1
  48. package/_esm/openapi-client/generated/webhooks/webhooks.js +26 -0
  49. package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
  50. package/_esm/version.js +1 -1
  51. package/_types/actions/solana/sendTransaction.d.ts +2 -0
  52. package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
  53. package/_types/actions/webhooks/createWebhookSubscription.d.ts +68 -0
  54. package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -0
  55. package/_types/actions/webhooks/index.d.ts +2 -0
  56. package/_types/actions/webhooks/index.d.ts.map +1 -0
  57. package/_types/client/cdp.d.ts +3 -0
  58. package/_types/client/cdp.d.ts.map +1 -1
  59. package/_types/client/solana/solana.d.ts +2 -0
  60. package/_types/client/solana/solana.d.ts.map +1 -1
  61. package/_types/client/solana/solana.types.d.ts +2 -0
  62. package/_types/client/solana/solana.types.d.ts.map +1 -1
  63. package/_types/client/webhooks/webhooks.d.ts +41 -0
  64. package/_types/client/webhooks/webhooks.d.ts.map +1 -0
  65. package/_types/index.d.ts +1 -0
  66. package/_types/index.d.ts.map +1 -1
  67. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +255 -452
  68. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  69. package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +150 -1
  70. package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +1 -1
  71. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +2 -2
  72. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
  73. package/_types/openapi-client/generated/sql-api/sql-api.d.ts +10 -1
  74. package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -1
  75. package/_types/openapi-client/generated/webhooks/webhooks.d.ts +26 -1
  76. package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
  77. package/_types/openapi-client/index.d.ts +46 -16
  78. package/_types/openapi-client/index.d.ts.map +1 -1
  79. package/_types/version.d.ts +1 -1
  80. package/actions/solana/sendTransaction.ts +3 -0
  81. package/actions/webhooks/createWebhookSubscription.ts +104 -0
  82. package/actions/webhooks/index.ts +6 -0
  83. package/client/cdp.ts +5 -0
  84. package/client/solana/solana.ts +2 -0
  85. package/client/solana/solana.types.ts +2 -0
  86. package/client/webhooks/webhooks.ts +61 -0
  87. package/index.ts +6 -0
  88. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +293 -505
  89. package/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts +154 -26
  90. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +3 -3
  91. package/openapi-client/generated/sql-api/sql-api.ts +19 -0
  92. package/openapi-client/generated/webhooks/webhooks.ts +38 -0
  93. package/package.json +2 -2
  94. package/version.ts +1 -1
@@ -121,6 +121,34 @@ export interface TelegramAuthentication {
121
121
  username?: string;
122
122
  }
123
123
 
124
+ /**
125
+ * A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
126
+ * @minLength 1
127
+ * @maxLength 128
128
+ */
129
+ export type BlockchainAddress = string;
130
+
131
+ /**
132
+ * The type of authentication information.
133
+ */
134
+ export type SiweAuthenticationType =
135
+ (typeof SiweAuthenticationType)[keyof typeof SiweAuthenticationType];
136
+
137
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
138
+ export const SiweAuthenticationType = {
139
+ siwe: "siwe",
140
+ } as const;
141
+
142
+ /**
143
+ * Information about an end user who authenticates using Sign In With Ethereum (EIP-4361).
144
+ */
145
+ export interface SiweAuthentication {
146
+ /** The type of authentication information. */
147
+ type: SiweAuthenticationType;
148
+ /** The ERC-55 checksummed Ethereum address of the end user. */
149
+ address: BlockchainAddress;
150
+ }
151
+
124
152
  /**
125
153
  * Information about how the end user is authenticated.
126
154
  */
@@ -129,7 +157,8 @@ export type AuthenticationMethod =
129
157
  | SmsAuthentication
130
158
  | DeveloperJWTAuthentication
131
159
  | OAuth2Authentication
132
- | TelegramAuthentication;
160
+ | TelegramAuthentication
161
+ | SiweAuthentication;
133
162
 
134
163
  /**
135
164
  * The list of valid authentication methods linked to the end user.
@@ -338,19 +367,26 @@ export interface Error {
338
367
  errorLink?: Url;
339
368
  }
340
369
 
341
- /**
342
- * A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
343
- * @minLength 1
344
- * @maxLength 128
345
- */
346
- export type BlockchainAddress = string;
347
-
348
- /**
349
- * The symbol of the asset (e.g., eth, usd, usdc, usdt).
350
- * @minLength 1
351
- * @maxLength 42
352
- */
353
- export type Asset = string;
370
+ export interface EvmAccount {
371
+ /**
372
+ * The 0x-prefixed, checksum EVM address.
373
+ * @pattern ^0x[0-9a-fA-F]{40}$
374
+ */
375
+ address: string;
376
+ /**
377
+ * An optional name for the account.
378
+ Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
379
+ Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
380
+ * @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
381
+ */
382
+ name?: string;
383
+ /** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
384
+ policies?: string[];
385
+ /** The UTC ISO 8601 timestamp at which the account was created. */
386
+ createdAt?: string;
387
+ /** The UTC ISO 8601 timestamp at which the account was last updated. */
388
+ updatedAt?: string;
389
+ }
354
390
 
355
391
  /**
356
392
  * The domain of the EIP-712 typed data.
@@ -417,6 +453,67 @@ export const EvmEip7702DelegationNetwork = {
417
453
  "ethereum-sepolia": "ethereum-sepolia",
418
454
  } as const;
419
455
 
456
+ /**
457
+ * The current status of the delegation operation.
458
+ UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed.
459
+ */
460
+ export type EvmEip7702DelegationOperationStatus =
461
+ (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
462
+
463
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
464
+ export const EvmEip7702DelegationOperationStatus = {
465
+ UNSPECIFIED: "UNSPECIFIED",
466
+ PENDING: "PENDING",
467
+ SUBMITTED: "SUBMITTED",
468
+ COMPLETED: "COMPLETED",
469
+ FAILED: "FAILED",
470
+ } as const;
471
+
472
+ /**
473
+ * The status of an EIP-7702 delegation operation.
474
+ */
475
+ export interface EvmEip7702DelegationOperation {
476
+ /** The unique identifier for the delegation operation. */
477
+ delegationOperationId: string;
478
+ /** The current status of the delegation operation.
479
+ UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed. */
480
+ status: EvmEip7702DelegationOperationStatus;
481
+ /**
482
+ * The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
483
+ * @pattern ^0x[0-9a-fA-F]{64}$
484
+ */
485
+ transactionHash?: string;
486
+ network: EvmEip7702DelegationNetwork;
487
+ /**
488
+ * The address the account has delegated to, if any. Only present when the account has an active delegation.
489
+ * @pattern ^0x[0-9a-fA-F]{40}$
490
+ */
491
+ delegateAddress?: string;
492
+ }
493
+
494
+ export interface EvmSmartAccount {
495
+ /**
496
+ * The 0x-prefixed, checksum address of the Smart Account.
497
+ * @pattern ^0x[0-9a-fA-F]{40}$
498
+ */
499
+ address: string;
500
+ /** Today, only a single owner can be set for a Smart Account, but this is an array to allow having multiple owners in the future. The address is a 0x-prefixed, checksum address. */
501
+ owners: string[];
502
+ /**
503
+ * An optional name for the account.
504
+ Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
505
+ Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
506
+ * @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
507
+ */
508
+ name?: string;
509
+ /** The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists. */
510
+ policies?: string[];
511
+ /** The UTC ISO 8601 timestamp at which the account was created. */
512
+ createdAt?: string;
513
+ /** The UTC ISO 8601 timestamp at which the account was last updated. */
514
+ updatedAt?: string;
515
+ }
516
+
420
517
  /**
421
518
  * The network the user operation is for.
422
519
  */
@@ -542,106 +639,6 @@ export const SpendPermissionNetwork = {
542
639
  polygon: "polygon",
543
640
  } as const;
544
641
 
545
- /**
546
- * Request parameters for revoking a Spend Permission.
547
- */
548
- export interface RevokeSpendPermissionRequest {
549
- /**
550
- * The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
551
- * @pattern ^[a-zA-Z0-9-]{1,100}$
552
- */
553
- walletSecretId: string;
554
- network: SpendPermissionNetwork;
555
- /** The hash of the spend permission to revoke. */
556
- permissionHash: string;
557
- /** Whether to use the CDP Paymaster for the user operation. */
558
- useCdpPaymaster: boolean;
559
- /** The paymaster URL of the spend permission. */
560
- paymasterUrl?: Url;
561
- }
562
-
563
- export interface EvmAccount {
564
- /**
565
- * The 0x-prefixed, checksum EVM address.
566
- * @pattern ^0x[0-9a-fA-F]{40}$
567
- */
568
- address: string;
569
- /**
570
- * An optional name for the account.
571
- Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
572
- Account names are guaranteed to be unique across all EVM accounts in the developer's CDP Project.
573
- * @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
574
- */
575
- name?: string;
576
- /** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
577
- policies?: string[];
578
- /** The UTC ISO 8601 timestamp at which the account was created. */
579
- createdAt?: string;
580
- /** The UTC ISO 8601 timestamp at which the account was last updated. */
581
- updatedAt?: string;
582
- }
583
-
584
- /**
585
- * The current status of the delegation operation.
586
- UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed.
587
- */
588
- export type EvmEip7702DelegationOperationStatus =
589
- (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
590
-
591
- // eslint-disable-next-line @typescript-eslint/no-redeclare
592
- export const EvmEip7702DelegationOperationStatus = {
593
- UNSPECIFIED: "UNSPECIFIED",
594
- PENDING: "PENDING",
595
- SUBMITTED: "SUBMITTED",
596
- COMPLETED: "COMPLETED",
597
- FAILED: "FAILED",
598
- } as const;
599
-
600
- /**
601
- * The status of an EIP-7702 delegation operation.
602
- */
603
- export interface EvmEip7702DelegationOperation {
604
- /** The unique identifier for the delegation operation. */
605
- delegationOperationId: string;
606
- /** The current status of the delegation operation.
607
- UNSPECIFIED means the status has not been set. PENDING means the operation has been created but not yet submitted. SUBMITTED means the operation has been submitted to the network. COMPLETED means the operation has completed successfully. FAILED means the operation has failed. */
608
- status: EvmEip7702DelegationOperationStatus;
609
- /**
610
- * The hash of the delegation transaction, if available. Present once the transaction has been submitted to the network.
611
- * @pattern ^0x[0-9a-fA-F]{64}$
612
- */
613
- transactionHash?: string;
614
- network: EvmEip7702DelegationNetwork;
615
- /**
616
- * The address the account has delegated to, if any. Only present when the account has an active delegation.
617
- * @pattern ^0x[0-9a-fA-F]{40}$
618
- */
619
- delegateAddress?: string;
620
- }
621
-
622
- export interface EvmSmartAccount {
623
- /**
624
- * The 0x-prefixed, checksum address of the Smart Account.
625
- * @pattern ^0x[0-9a-fA-F]{40}$
626
- */
627
- address: string;
628
- /** Today, only a single owner can be set for a Smart Account, but this is an array to allow having multiple owners in the future. The address is a 0x-prefixed, checksum address. */
629
- owners: string[];
630
- /**
631
- * An optional name for the account.
632
- Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
633
- Account names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.
634
- * @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
635
- */
636
- name?: string;
637
- /** The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists. */
638
- policies?: string[];
639
- /** The UTC ISO 8601 timestamp at which the account was created. */
640
- createdAt?: string;
641
- /** The UTC ISO 8601 timestamp at which the account was last updated. */
642
- updatedAt?: string;
643
- }
644
-
645
642
  /**
646
643
  * Request parameters for creating a Spend Permission.
647
644
  */
@@ -722,7 +719,7 @@ export interface SpendPermissionResponseObject {
722
719
  /**
723
720
  * Request parameters for revoking a Spend Permission.
724
721
  */
725
- export interface EvmSpendPermissionsRevokeSpendPermissionRequest {
722
+ export interface RevokeSpendPermissionRequest {
726
723
  network: SpendPermissionNetwork;
727
724
  /** The hash of the spend permission to revoke. */
728
725
  permissionHash: string;
@@ -2609,6 +2606,36 @@ export interface SignEndUserEvmTypedDataRule {
2609
2606
  criteria: SignEndUserEvmTypedDataCriteria;
2610
2607
  }
2611
2608
 
2609
+ /**
2610
+ * Whether any attempts to sign a hash will be accepted or rejected. This rule does not accept any criteria.
2611
+ */
2612
+ export type SignEndUserEvmHashRuleAction =
2613
+ (typeof SignEndUserEvmHashRuleAction)[keyof typeof SignEndUserEvmHashRuleAction];
2614
+
2615
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
2616
+ export const SignEndUserEvmHashRuleAction = {
2617
+ reject: "reject",
2618
+ accept: "accept",
2619
+ } as const;
2620
+
2621
+ /**
2622
+ * The operation to which the rule applies.
2623
+ */
2624
+ export type SignEndUserEvmHashRuleOperation =
2625
+ (typeof SignEndUserEvmHashRuleOperation)[keyof typeof SignEndUserEvmHashRuleOperation];
2626
+
2627
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
2628
+ export const SignEndUserEvmHashRuleOperation = {
2629
+ signEndUserEvmHash: "signEndUserEvmHash",
2630
+ } as const;
2631
+
2632
+ export interface SignEndUserEvmHashRule {
2633
+ /** Whether any attempts to sign a hash will be accepted or rejected. This rule does not accept any criteria. */
2634
+ action: SignEndUserEvmHashRuleAction;
2635
+ /** The operation to which the rule applies. */
2636
+ operation: SignEndUserEvmHashRuleOperation;
2637
+ }
2638
+
2612
2639
  export type SignEndUserSolTransactionCriteriaItem =
2613
2640
  | SolAddressCriterion
2614
2641
  | SolValueCriterion
@@ -2754,6 +2781,7 @@ export type Rule =
2754
2781
  | SendEndUserEvmTransactionRule
2755
2782
  | SignEndUserEvmMessageRule
2756
2783
  | SignEndUserEvmTypedDataRule
2784
+ | SignEndUserEvmHashRule
2757
2785
  | SignEndUserSolTransactionRule
2758
2786
  | SendEndUserSolTransactionRule
2759
2787
  | SignEndUserSolMessageRule;
@@ -2975,6 +3003,49 @@ export interface OnchainDataResult {
2975
3003
  metadata?: OnchainDataResultMetadata;
2976
3004
  }
2977
3005
 
3006
+ /**
3007
+ * A human-readable description.
3008
+ * @minLength 0
3009
+ * @maxLength 500
3010
+ */
3011
+ export type Description = string;
3012
+
3013
+ /**
3014
+ * Schema definition for a table column.
3015
+ */
3016
+ export interface OnchainDataColumnSchema {
3017
+ /** Column name. */
3018
+ name?: string;
3019
+ /** Column data type. */
3020
+ type?: string;
3021
+ /** Whether this column can contain NULL values. */
3022
+ nullable?: boolean;
3023
+ /** Human-readable description of the column. */
3024
+ description?: Description;
3025
+ /** The order of the column in the index. A lower number means the column is more important for the index and should be first in the query. */
3026
+ indexOrder?: number;
3027
+ }
3028
+
3029
+ /**
3030
+ * Schema definition for a data table.
3031
+ */
3032
+ export interface OnchainDataTableSchema {
3033
+ /** The blockchain network database this table belongs to. */
3034
+ database?: string;
3035
+ /** Table name. */
3036
+ table?: string;
3037
+ /** Column definitions for this table. */
3038
+ columns?: OnchainDataColumnSchema[];
3039
+ }
3040
+
3041
+ /**
3042
+ * Schema information for available blockchain data tables.
3043
+ */
3044
+ export interface OnchainDataSchemaResponse {
3045
+ /** List of available tables. */
3046
+ tables?: OnchainDataTableSchema[];
3047
+ }
3048
+
2978
3049
  /**
2979
3050
  * Response containing token addresses that an account has received.
2980
3051
  */
@@ -2991,14 +3062,7 @@ export interface AccountTokenAddressesResponse {
2991
3062
  }
2992
3063
 
2993
3064
  /**
2994
- * A human-readable description.
2995
- * @minLength 0
2996
- * @maxLength 500
2997
- */
2998
- export type Description = string;
2999
-
3000
- /**
3001
- * Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 50 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
3065
+ * Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
3002
3066
  */
3003
3067
  export interface Metadata {
3004
3068
  [key: string]: string;
@@ -3053,7 +3117,8 @@ export interface WebhookSubscriptionResponse {
3053
3117
  /** Description of the webhook subscription. */
3054
3118
  description?: Description;
3055
3119
  /** Types of events to subscribe to. Event types follow a three-part dot-separated format:
3056
- service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created").
3120
+ service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created",
3121
+ "acceptance.payment_session").
3057
3122
  */
3058
3123
  eventTypes: string[];
3059
3124
  /** Whether the subscription is enabled. */
@@ -3101,7 +3166,8 @@ export interface WebhookSubscriptionRequest {
3101
3166
  /** Description of the webhook subscription. */
3102
3167
  description?: Description;
3103
3168
  /** Types of events to subscribe to. Event types follow a three-part dot-separated format:
3104
- service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created").
3169
+ service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created",
3170
+ "acceptance.payment_session").
3105
3171
  The subscription will only receive events matching these types AND the label filter(s).
3106
3172
  */
3107
3173
  eventTypes: string[];
@@ -3156,6 +3222,62 @@ Omit to receive all events for the selected event types.
3156
3222
  labels?: WebhookSubscriptionUpdateRequestLabels;
3157
3223
  }
3158
3224
 
3225
+ /**
3226
+ * Details of the HTTP response received from the webhook target.
3227
+ */
3228
+ export interface WebhookEventResponseDetail {
3229
+ /** HTTP status code returned by the webhook target. */
3230
+ httpCode?: number;
3231
+ /** Round-trip time of the webhook delivery in milliseconds. */
3232
+ elapsedTimeMs?: number;
3233
+ /** Response body returned by the webhook target. */
3234
+ body?: string;
3235
+ /** Error name if the delivery failed (e.g., timeout, connection_refused). */
3236
+ errorName?: string;
3237
+ }
3238
+
3239
+ /**
3240
+ * Current delivery status of the event.
3241
+ */
3242
+ export type WebhookEventResponseStatus =
3243
+ (typeof WebhookEventResponseStatus)[keyof typeof WebhookEventResponseStatus];
3244
+
3245
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
3246
+ export const WebhookEventResponseStatus = {
3247
+ pending: "pending",
3248
+ processing: "processing",
3249
+ succeeded: "succeeded",
3250
+ failed: "failed",
3251
+ retrying: "retrying",
3252
+ } as const;
3253
+
3254
+ /**
3255
+ * Details of a webhook event delivery attempt for a subscription.
3256
+ */
3257
+ export interface WebhookEventResponse {
3258
+ /** Unique identifier for the webhook event. */
3259
+ eventId: string;
3260
+ /** The type of event that was delivered (e.g., "onchain.activity.detected"). */
3261
+ eventTypeName: string;
3262
+ /** Current delivery status of the event. */
3263
+ status: WebhookEventResponseStatus;
3264
+ /** Timestamp when the event delivery attempt was created. */
3265
+ createdAt: string;
3266
+ /** Timestamp when the event was successfully delivered. Only present if status is "succeeded". */
3267
+ succeededAt?: string;
3268
+ /** Number of delivery retry attempts so far. */
3269
+ retryCount: number;
3270
+ response?: WebhookEventResponseDetail;
3271
+ }
3272
+
3273
+ /**
3274
+ * Response containing a list of webhook event delivery attempts.
3275
+ */
3276
+ export interface WebhookEventListResponse {
3277
+ /** The list of webhook event delivery attempts. */
3278
+ events: WebhookEventResponse[];
3279
+ }
3280
+
3159
3281
  /**
3160
3282
  * The version of the x402 protocol.
3161
3283
  */
@@ -3287,7 +3409,7 @@ export interface X402ExactSolanaPayload {
3287
3409
  }
3288
3410
 
3289
3411
  /**
3290
- * The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
3412
+ * The scheme of the payment protocol to use. Supported schemes are `exact` and `upto`.
3291
3413
  */
3292
3414
  export type X402V2PaymentRequirementsScheme =
3293
3415
  (typeof X402V2PaymentRequirementsScheme)[keyof typeof X402V2PaymentRequirementsScheme];
@@ -3295,6 +3417,7 @@ export type X402V2PaymentRequirementsScheme =
3295
3417
  // eslint-disable-next-line @typescript-eslint/no-redeclare
3296
3418
  export const X402V2PaymentRequirementsScheme = {
3297
3419
  exact: "exact",
3420
+ upto: "upto",
3298
3421
  } as const;
3299
3422
 
3300
3423
  /**
@@ -3306,7 +3429,7 @@ export type X402V2PaymentRequirementsExtra = { [key: string]: unknown };
3306
3429
  * The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
3307
3430
  */
3308
3431
  export interface X402V2PaymentRequirements {
3309
- /** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
3432
+ /** The scheme of the payment protocol to use. Supported schemes are `exact` and `upto`. */
3310
3433
  scheme: X402V2PaymentRequirementsScheme;
3311
3434
  /** The network of the blockchain to send payment on in caip2 format. */
3312
3435
  network: string;
@@ -3733,6 +3856,7 @@ export type X402SupportedPaymentKindScheme =
3733
3856
  // eslint-disable-next-line @typescript-eslint/no-redeclare
3734
3857
  export const X402SupportedPaymentKindScheme = {
3735
3858
  exact: "exact",
3859
+ upto: "upto",
3736
3860
  } as const;
3737
3861
 
3738
3862
  /**
@@ -4073,6 +4197,8 @@ For Solana-based networks, the transaction will be a base58-encoded Solana signa
4073
4197
  transaction: string;
4074
4198
  /** The network where the settlement occurred. */
4075
4199
  network: string;
4200
+ /** The amount that was settled, in atomic units. */
4201
+ amount?: string;
4076
4202
  };
4077
4203
 
4078
4204
  /**
@@ -4115,22 +4241,6 @@ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/i
4115
4241
  */
4116
4242
  export type IdempotencyKeyParameter = string;
4117
4243
 
4118
- /**
4119
- * A JWT signed using your Wallet Secret, encoded in base64. Refer to the
4120
- [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
4121
- section of our Authentication docs for more details on how to generate your Wallet Token.
4122
-
4123
- */
4124
- export type XDeveloperAuthParameter = string;
4125
-
4126
- /**
4127
- * A JWT signed using your Wallet Secret, encoded in base64. Refer to the
4128
- [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
4129
- section of our Authentication docs for more details on how to generate your Wallet Token.
4130
-
4131
- */
4132
- export type XWalletAuthOptionalParameter = string;
4133
-
4134
4244
  /**
4135
4245
  * The number of resources to return per page.
4136
4246
  */
@@ -4260,368 +4370,6 @@ export type ImportEndUserBody = {
4260
4370
  keyType: ImportEndUserBodyKeyType;
4261
4371
  };
4262
4372
 
4263
- export type SignEvmHashWithEndUserAccountBody = {
4264
- /** The arbitrary 32 byte hash to sign. */
4265
- hash: string;
4266
- /**
4267
- * The 0x-prefixed address of the EVM account belonging to the end user.
4268
- * @pattern ^0x[0-9a-fA-F]{40}$
4269
- */
4270
- address: string;
4271
- /**
4272
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4273
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4274
- */
4275
- walletSecretId?: string;
4276
- };
4277
-
4278
- export type SignEvmHashWithEndUserAccount200 = {
4279
- /** The signature of the hash, as a 0x-prefixed hex string. */
4280
- signature: string;
4281
- };
4282
-
4283
- export type SignEvmTransactionWithEndUserAccountBody = {
4284
- /**
4285
- * The 0x-prefixed address of the EVM account belonging to the end user.
4286
- * @pattern ^0x[0-9a-fA-F]{40}$
4287
- */
4288
- address: string;
4289
- /** The RLP-encoded transaction to sign, as a 0x-prefixed hex string. */
4290
- transaction: string;
4291
- /**
4292
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4293
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4294
- */
4295
- walletSecretId?: string;
4296
- };
4297
-
4298
- export type SignEvmTransactionWithEndUserAccount200 = {
4299
- /** The RLP-encoded signed transaction, as a 0x-prefixed hex string. */
4300
- signedTransaction: string;
4301
- };
4302
-
4303
- /**
4304
- * The network to send the transaction to.
4305
- */
4306
- export type SendEvmTransactionWithEndUserAccountBodyNetwork =
4307
- (typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
4308
-
4309
- // eslint-disable-next-line @typescript-eslint/no-redeclare
4310
- export const SendEvmTransactionWithEndUserAccountBodyNetwork = {
4311
- base: "base",
4312
- "base-sepolia": "base-sepolia",
4313
- ethereum: "ethereum",
4314
- "ethereum-sepolia": "ethereum-sepolia",
4315
- avalanche: "avalanche",
4316
- polygon: "polygon",
4317
- optimism: "optimism",
4318
- arbitrum: "arbitrum",
4319
- } as const;
4320
-
4321
- export type SendEvmTransactionWithEndUserAccountBody = {
4322
- /**
4323
- * The 0x-prefixed address of the EVM account belonging to the end user.
4324
- * @pattern ^0x[0-9a-fA-F]{40}$
4325
- */
4326
- address: string;
4327
- /** The network to send the transaction to. */
4328
- network: SendEvmTransactionWithEndUserAccountBodyNetwork;
4329
- /**
4330
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4331
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4332
- */
4333
- walletSecretId?: string;
4334
- /** The RLP-encoded transaction to sign and send, as a 0x-prefixed hex string. */
4335
- transaction: string;
4336
- };
4337
-
4338
- export type SendEvmTransactionWithEndUserAccount200 = {
4339
- /** The hash of the transaction, as a 0x-prefixed hex string. */
4340
- transactionHash: string;
4341
- };
4342
-
4343
- /**
4344
- * The EVM network to send USDC on.
4345
- */
4346
- export type SendEvmAssetWithEndUserAccountBodyNetwork =
4347
- (typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
4348
-
4349
- // eslint-disable-next-line @typescript-eslint/no-redeclare
4350
- export const SendEvmAssetWithEndUserAccountBodyNetwork = {
4351
- base: "base",
4352
- "base-sepolia": "base-sepolia",
4353
- ethereum: "ethereum",
4354
- "ethereum-sepolia": "ethereum-sepolia",
4355
- avalanche: "avalanche",
4356
- polygon: "polygon",
4357
- optimism: "optimism",
4358
- arbitrum: "arbitrum",
4359
- } as const;
4360
-
4361
- export type SendEvmAssetWithEndUserAccountBody = {
4362
- /**
4363
- * The 0x-prefixed address of the recipient.
4364
- * @pattern ^0x[0-9a-fA-F]{40}$
4365
- */
4366
- to: BlockchainAddress;
4367
- /**
4368
- * The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
4369
- * @minLength 1
4370
- * @maxLength 32
4371
- */
4372
- amount: string;
4373
- /** The EVM network to send USDC on. */
4374
- network: SendEvmAssetWithEndUserAccountBodyNetwork;
4375
- /** Whether to use CDP Paymaster to sponsor gas fees. Only applicable for EVM Smart Accounts. When true, the transaction gas will be paid by the Paymaster, allowing users to send USDC without holding native gas tokens. Ignored for EOA accounts. Cannot be used together with `paymasterUrl`. */
4376
- useCdpPaymaster?: boolean;
4377
- /** Optional custom Paymaster URL to use for gas sponsorship. Only applicable for EVM Smart Accounts. This allows you to use your own Paymaster service instead of CDP's Paymaster. Cannot be used together with `useCdpPaymaster`. */
4378
- paymasterUrl?: Url;
4379
- /**
4380
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4381
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4382
- */
4383
- walletSecretId?: string;
4384
- };
4385
-
4386
- export type SendEvmAssetWithEndUserAccount200 = {
4387
- /**
4388
- * The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead).
4389
- * @nullable
4390
- */
4391
- transactionHash?: string | null;
4392
- /**
4393
- * The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead).
4394
- * @nullable
4395
- */
4396
- userOpHash?: string | null;
4397
- };
4398
-
4399
- export type SignEvmMessageWithEndUserAccountBody = {
4400
- /**
4401
- * The 0x-prefixed address of the EVM account belonging to the end user.
4402
- * @pattern ^0x[0-9a-fA-F]{40}$
4403
- */
4404
- address: string;
4405
- /** The message to sign. */
4406
- message: string;
4407
- /**
4408
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4409
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4410
- */
4411
- walletSecretId?: string;
4412
- };
4413
-
4414
- export type SignEvmMessageWithEndUserAccount200 = {
4415
- /** The signature of the message, as a 0x-prefixed hex string. */
4416
- signature: string;
4417
- };
4418
-
4419
- export type SignEvmTypedDataWithEndUserAccountBody = {
4420
- /**
4421
- * The 0x-prefixed address of the EVM account belonging to the end user.
4422
- * @pattern ^0x[0-9a-fA-F]{40}$
4423
- */
4424
- address: string;
4425
- typedData: EIP712Message;
4426
- /**
4427
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4428
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4429
- */
4430
- walletSecretId?: string;
4431
- };
4432
-
4433
- export type SignEvmTypedDataWithEndUserAccount200 = {
4434
- /** The signature of the typed data, as a 0x-prefixed hex string. */
4435
- signature: string;
4436
- };
4437
-
4438
- export type RevokeDelegationForEndUserBody = {
4439
- /**
4440
- * When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4441
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4442
- */
4443
- walletSecretId?: string;
4444
- };
4445
-
4446
- export type CreateEvmEip7702DelegationWithEndUserAccountBody = {
4447
- /**
4448
- * The 0x-prefixed address of the EVM account to delegate.
4449
- * @pattern ^0x[0-9a-fA-F]{40}$
4450
- */
4451
- address: string;
4452
- network: EvmEip7702DelegationNetwork;
4453
- /** Whether to configure spend permissions for the upgraded, delegated account. When enabled, the account can grant permissions for third parties to spend on its behalf. */
4454
- enableSpendPermissions?: boolean;
4455
- /**
4456
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4457
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4458
- */
4459
- walletSecretId?: string;
4460
- };
4461
-
4462
- export type CreateEvmEip7702DelegationWithEndUserAccount201 = {
4463
- /** The unique identifier for the delegation operation. Use this to poll the operation status. */
4464
- delegationOperationId: string;
4465
- };
4466
-
4467
- export type SendUserOperationWithEndUserAccountBody = {
4468
- network: EvmUserOperationNetwork;
4469
- /** The list of calls to make from the Smart Account. */
4470
- calls: EvmCall[];
4471
- /** Whether to use the CDP Paymaster for the user operation. */
4472
- useCdpPaymaster: boolean;
4473
- /** The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the `useCdpPaymaster` option. */
4474
- paymasterUrl?: Url;
4475
- /**
4476
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4477
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4478
- */
4479
- walletSecretId?: string;
4480
- /**
4481
- * The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
4482
- * @pattern ^0x[0-9a-fA-F]+$
4483
- */
4484
- dataSuffix?: string;
4485
- };
4486
-
4487
- export type SignSolanaHashWithEndUserAccountBody = {
4488
- /** The arbitrary 32 byte hash to sign as base58 encoded string. */
4489
- hash: string;
4490
- /**
4491
- * The base58 encoded address of the Solana account belonging to the end user.
4492
- * @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
4493
- */
4494
- address: string;
4495
- /**
4496
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4497
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4498
- */
4499
- walletSecretId?: string;
4500
- };
4501
-
4502
- export type SignSolanaHashWithEndUserAccount200 = {
4503
- /** The signature of the hash, as a base58 encoded string. */
4504
- signature: string;
4505
- };
4506
-
4507
- export type SignSolanaMessageWithEndUserAccountBody = {
4508
- /**
4509
- * The base58 encoded address of the Solana account belonging to the end user.
4510
- * @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
4511
- */
4512
- address: string;
4513
- /** The base64 encoded arbitrary message to sign. */
4514
- message: string;
4515
- /**
4516
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4517
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4518
- */
4519
- walletSecretId?: string;
4520
- };
4521
-
4522
- export type SignSolanaMessageWithEndUserAccount200 = {
4523
- /** The signature of the message, as a base58 encoded string. */
4524
- signature: string;
4525
- };
4526
-
4527
- export type SignSolanaTransactionWithEndUserAccountBody = {
4528
- /**
4529
- * The base58 encoded address of the Solana account belonging to the end user.
4530
- * @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
4531
- */
4532
- address: string;
4533
- /** The base64 encoded transaction to sign. */
4534
- transaction: string;
4535
- /**
4536
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4537
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4538
- */
4539
- walletSecretId?: string;
4540
- };
4541
-
4542
- export type SignSolanaTransactionWithEndUserAccount200 = {
4543
- /** The base64 encoded signed transaction. */
4544
- signedTransaction: string;
4545
- };
4546
-
4547
- /**
4548
- * The Solana network to send the transaction to.
4549
- */
4550
- export type SendSolanaTransactionWithEndUserAccountBodyNetwork =
4551
- (typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
4552
-
4553
- // eslint-disable-next-line @typescript-eslint/no-redeclare
4554
- export const SendSolanaTransactionWithEndUserAccountBodyNetwork = {
4555
- solana: "solana",
4556
- "solana-devnet": "solana-devnet",
4557
- } as const;
4558
-
4559
- export type SendSolanaTransactionWithEndUserAccountBody = {
4560
- /**
4561
- * The base58 encoded address of the Solana account belonging to the end user.
4562
- * @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
4563
- */
4564
- address: string;
4565
- /** The Solana network to send the transaction to. */
4566
- network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
4567
- /**
4568
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4569
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4570
- */
4571
- walletSecretId?: string;
4572
- /** The base64 encoded transaction to sign and send. This transaction can contain multiple instructions for native Solana batching. */
4573
- transaction: string;
4574
- /** Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees. */
4575
- useCdpSponsor?: boolean;
4576
- };
4577
-
4578
- export type SendSolanaTransactionWithEndUserAccount200 = {
4579
- /** The base58 encoded transaction signature. */
4580
- transactionSignature: string;
4581
- };
4582
-
4583
- /**
4584
- * The Solana network to send USDC on.
4585
- */
4586
- export type SendSolanaAssetWithEndUserAccountBodyNetwork =
4587
- (typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
4588
-
4589
- // eslint-disable-next-line @typescript-eslint/no-redeclare
4590
- export const SendSolanaAssetWithEndUserAccountBodyNetwork = {
4591
- solana: "solana",
4592
- "solana-devnet": "solana-devnet",
4593
- } as const;
4594
-
4595
- export type SendSolanaAssetWithEndUserAccountBody = {
4596
- /**
4597
- * The base58 encoded address of the recipient.
4598
- * @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
4599
- */
4600
- to: BlockchainAddress;
4601
- /**
4602
- * The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").
4603
- * @minLength 1
4604
- * @maxLength 32
4605
- */
4606
- amount: string;
4607
- /** The Solana network to send USDC on. */
4608
- network: SendSolanaAssetWithEndUserAccountBodyNetwork;
4609
- /** Whether to automatically create an Associated Token Account (ATA) for the recipient if it doesn't exist. When true, the sender pays the rent-exempt minimum to create the recipient's USDC ATA. When false, the transaction will fail if the recipient doesn't have a USDC ATA. */
4610
- createRecipientAta?: boolean;
4611
- /**
4612
- * Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
4613
- * @pattern ^[a-zA-Z0-9-]{1,100}$
4614
- */
4615
- walletSecretId?: string;
4616
- /** Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees. */
4617
- useCdpSponsor?: boolean;
4618
- };
4619
-
4620
- export type SendSolanaAssetWithEndUserAccount200 = {
4621
- /** The base58 encoded transaction signature. */
4622
- transactionSignature: string;
4623
- };
4624
-
4625
4373
  export type ListEvmAccountsParams = {
4626
4374
  /**
4627
4375
  * The number of resources to return per page.
@@ -5163,6 +4911,8 @@ export type SendSolanaTransactionBody = {
5163
4911
  network: SendSolanaTransactionBodyNetwork;
5164
4912
  /** The base64 encoded transaction to sign and send. This transaction can contain multiple instructions for native Solana batching. */
5165
4913
  transaction: string;
4914
+ /** Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the server wallet. When false, the server wallet is responsible for paying the transaction fees. */
4915
+ useCdpSponsor?: boolean;
5166
4916
  };
5167
4917
 
5168
4918
  export type SendSolanaTransaction200 = {
@@ -5216,6 +4966,25 @@ export type ListSolanaTokenBalances200AllOf = {
5216
4966
 
5217
4967
  export type ListSolanaTokenBalances200 = ListSolanaTokenBalances200AllOf & ListResponse;
5218
4968
 
4969
+ export type GetSQLSchemaParams = {
4970
+ /**
4971
+ * The name of the database to query. Defaults to "base" when not specified.
4972
+ */
4973
+ database?: GetSQLSchemaDatabase;
4974
+ /**
4975
+ * Get the schema for a specific table.
4976
+ */
4977
+ table?: string;
4978
+ };
4979
+
4980
+ export type GetSQLSchemaDatabase = (typeof GetSQLSchemaDatabase)[keyof typeof GetSQLSchemaDatabase];
4981
+
4982
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
4983
+ export const GetSQLSchemaDatabase = {
4984
+ base: "base",
4985
+ base_sepolia: "base_sepolia",
4986
+ } as const;
4987
+
5219
4988
  export type ListDataTokenBalancesParams = {
5220
4989
  /**
5221
4990
  * The number of resources to return per page.
@@ -5247,6 +5016,25 @@ export type ListWebhookSubscriptionsParams = {
5247
5016
  pageToken?: string;
5248
5017
  };
5249
5018
 
5019
+ export type ListWebhookSubscriptionEventsParams = {
5020
+ /**
5021
+ * Filter by a specific event ID.
5022
+ */
5023
+ eventId?: string;
5024
+ /**
5025
+ * Filter events created at or after this timestamp (RFC 3339 format).
5026
+ */
5027
+ minCreatedAt?: string;
5028
+ /**
5029
+ * Filter events created at or before this timestamp (RFC 3339 format).
5030
+ */
5031
+ maxCreatedAt?: string;
5032
+ /**
5033
+ * Filter by event type names (comma-separated).
5034
+ */
5035
+ eventTypeNames?: string;
5036
+ };
5037
+
5250
5038
  export type VerifyX402PaymentBody = {
5251
5039
  x402Version: X402Version;
5252
5040
  paymentPayload: X402PaymentPayload;