@coinbase/cdp-sdk 1.40.0 → 1.40.2
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/accounts/evm/toEvmServerAccount.js +8 -2
- package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +14 -9
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/toEvmServerAccount.js +9 -3
- package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +13 -8
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +192 -41
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/toEvmServerAccount.ts +10 -2
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +230 -68
- package/openapi-client/generated/onchain-data/onchain-data.ts +1 -1
- package/package.json +4 -4
- package/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oCAAoC,CAAC;AACnD,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4DAA4D,CAAC;AAC3E,cAAc,gCAA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,iGAAoC,EAAC,4BACX;CAHhC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,gBAAgB,CAAC"}
|
package/_types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.40.
|
|
1
|
+
export declare const version = "1.40.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
type HashTypedDataParameters,
|
|
6
6
|
getTypesForEIP712Domain,
|
|
7
7
|
serializeTransaction,
|
|
8
|
+
hashMessage,
|
|
8
9
|
} from "viem";
|
|
9
10
|
|
|
10
11
|
import { toNetworkScopedEvmServerAccount } from "./toNetworkScopedEvmServerAccount.js";
|
|
@@ -70,8 +71,15 @@ export function toEvmServerAccount(
|
|
|
70
71
|
accountType: "evm_server",
|
|
71
72
|
});
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
if (typeof message === "string") {
|
|
75
|
+
const result = await apiClient.signEvmMessage(options.account.address, {
|
|
76
|
+
message,
|
|
77
|
+
});
|
|
78
|
+
return result.signature as Hex;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const result = await apiClient.signEvmHash(options.account.address, {
|
|
82
|
+
hash: hashMessage(message),
|
|
75
83
|
});
|
|
76
84
|
return result.signature as Hex;
|
|
77
85
|
},
|
|
@@ -114,6 +114,47 @@ export type AuthenticationMethod =
|
|
|
114
114
|
*/
|
|
115
115
|
export type AuthenticationMethods = AuthenticationMethod[];
|
|
116
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Information about an EVM account associated with an end user.
|
|
119
|
+
*/
|
|
120
|
+
export interface EndUserEvmAccount {
|
|
121
|
+
/**
|
|
122
|
+
* The address of the EVM account.
|
|
123
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
124
|
+
*/
|
|
125
|
+
address: string;
|
|
126
|
+
/** The date and time when the account was created, in ISO 8601 format. */
|
|
127
|
+
createdAt: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Information about an EVM smart account associated with an end user.
|
|
132
|
+
*/
|
|
133
|
+
export interface EndUserEvmSmartAccount {
|
|
134
|
+
/**
|
|
135
|
+
* The address of the EVM smart account.
|
|
136
|
+
* @pattern ^0x[0-9a-fA-F]{40}$
|
|
137
|
+
*/
|
|
138
|
+
address: string;
|
|
139
|
+
/** The addresses of the EVM EOA accounts that own this smart account. Smart accounts can have multiple owners, such as when spend permissions are enabled. */
|
|
140
|
+
ownerAddresses: string[];
|
|
141
|
+
/** The date and time when the account was created, in ISO 8601 format. */
|
|
142
|
+
createdAt: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Information about a Solana account associated with an end user.
|
|
147
|
+
*/
|
|
148
|
+
export interface EndUserSolanaAccount {
|
|
149
|
+
/**
|
|
150
|
+
* The base58 encoded address of the Solana account.
|
|
151
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]{32,44}$
|
|
152
|
+
*/
|
|
153
|
+
address: string;
|
|
154
|
+
/** The date and time when the account was created, in ISO 8601 format. */
|
|
155
|
+
createdAt: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
117
158
|
/**
|
|
118
159
|
* Information about the end user.
|
|
119
160
|
*/
|
|
@@ -129,16 +170,22 @@ export interface EndUser {
|
|
|
129
170
|
* @deprecated
|
|
130
171
|
*/
|
|
131
172
|
evmAccounts: string[];
|
|
173
|
+
/** The list of EVM accounts associated with the end user. End users can have up to 10 EVM accounts. */
|
|
174
|
+
evmAccountObjects: EndUserEvmAccount[];
|
|
132
175
|
/**
|
|
133
176
|
* **DEPRECATED**: Use `evmSmartAccountObjects` instead for richer account information including owner relationships. The list of EVM smart account addresses associated with the end user. Each EVM EOA can own one smart account.
|
|
134
177
|
* @deprecated
|
|
135
178
|
*/
|
|
136
179
|
evmSmartAccounts: string[];
|
|
180
|
+
/** The list of EVM smart accounts associated with the end user. Each EVM EOA can own one smart account. */
|
|
181
|
+
evmSmartAccountObjects: EndUserEvmSmartAccount[];
|
|
137
182
|
/**
|
|
138
183
|
* **DEPRECATED**: Use `solanaAccountObjects` instead for richer account information. The list of Solana account addresses associated with the end user. End users can have up to 10 Solana accounts.
|
|
139
184
|
* @deprecated
|
|
140
185
|
*/
|
|
141
186
|
solanaAccounts: string[];
|
|
187
|
+
/** The list of Solana accounts associated with the end user. End users can have up to 10 Solana accounts. */
|
|
188
|
+
solanaAccountObjects: EndUserSolanaAccount[];
|
|
142
189
|
/** The date and time when the end user was created, in ISO 8601 format. */
|
|
143
190
|
createdAt: string;
|
|
144
191
|
}
|
|
@@ -2505,10 +2552,10 @@ export interface WebhookTarget {
|
|
|
2505
2552
|
* Additional metadata for the subscription.
|
|
2506
2553
|
*/
|
|
2507
2554
|
export type WebhookSubscriptionResponseMetadata = {
|
|
2508
|
-
/**
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2555
|
+
/**
|
|
2556
|
+
* Use the root-level `secret` field instead. Maintained for backward compatibility only.
|
|
2557
|
+
* @deprecated
|
|
2558
|
+
*/
|
|
2512
2559
|
secret?: string;
|
|
2513
2560
|
};
|
|
2514
2561
|
|
|
@@ -2527,7 +2574,7 @@ export interface WebhookSubscriptionResponse {
|
|
|
2527
2574
|
createdAt: string;
|
|
2528
2575
|
/** Description of the webhook subscription. */
|
|
2529
2576
|
description?: string;
|
|
2530
|
-
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2577
|
+
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2531
2578
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created").
|
|
2532
2579
|
*/
|
|
2533
2580
|
eventTypes: string[];
|
|
@@ -2535,6 +2582,8 @@ service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detec
|
|
|
2535
2582
|
isEnabled: boolean;
|
|
2536
2583
|
/** Additional metadata for the subscription. */
|
|
2537
2584
|
metadata?: WebhookSubscriptionResponseMetadata;
|
|
2585
|
+
/** Secret for webhook signature validation. */
|
|
2586
|
+
secret: string;
|
|
2538
2587
|
/** Unique identifier for the subscription. */
|
|
2539
2588
|
subscriptionId: string;
|
|
2540
2589
|
target: WebhookTarget;
|
|
@@ -2566,8 +2615,8 @@ export type WebhookSubscriptionListResponse = WebhookSubscriptionListResponseAll
|
|
|
2566
2615
|
export type WebhookSubscriptionRequestMetadata = { [key: string]: unknown };
|
|
2567
2616
|
|
|
2568
2617
|
/**
|
|
2569
|
-
* Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2570
|
-
an event contains ALL the key-value pairs specified here. Additional labels on
|
|
2618
|
+
* Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2619
|
+
an event contains ALL the key-value pairs specified here. Additional labels on
|
|
2571
2620
|
the event are allowed and will not prevent matching.
|
|
2572
2621
|
NOTE: Use either labels OR (labelKey + labelValue), not both.
|
|
2573
2622
|
|
|
@@ -2575,7 +2624,7 @@ NOTE: Use either labels OR (labelKey + labelValue), not both.
|
|
|
2575
2624
|
export type WebhookSubscriptionRequestLabels = { [key: string]: string };
|
|
2576
2625
|
|
|
2577
2626
|
/**
|
|
2578
|
-
* Request to create a new webhook subscription with support for both traditional single-label
|
|
2627
|
+
* Request to create a new webhook subscription with support for both traditional single-label
|
|
2579
2628
|
and multi-label filtering formats.
|
|
2580
2629
|
|
|
2581
2630
|
*/
|
|
@@ -2583,7 +2632,7 @@ export type WebhookSubscriptionRequest =
|
|
|
2583
2632
|
| (unknown & {
|
|
2584
2633
|
/** Description of the webhook subscription. */
|
|
2585
2634
|
description?: string;
|
|
2586
|
-
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2635
|
+
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2587
2636
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created").
|
|
2588
2637
|
The subscription will only receive events matching these types AND the label filter(s).
|
|
2589
2638
|
*/
|
|
@@ -2593,7 +2642,7 @@ The subscription will only receive events matching these types AND the label fil
|
|
|
2593
2642
|
target?: WebhookTarget;
|
|
2594
2643
|
/** Additional metadata for the subscription. */
|
|
2595
2644
|
metadata?: WebhookSubscriptionRequestMetadata;
|
|
2596
|
-
/** Label key for filtering events. Each subscription filters on exactly one (labelKey, labelValue) pair
|
|
2645
|
+
/** Label key for filtering events. Each subscription filters on exactly one (labelKey, labelValue) pair
|
|
2597
2646
|
in addition to the event types. Only events matching both the event types AND this label filter will be delivered.
|
|
2598
2647
|
NOTE: Use either (labelKey + labelValue) OR labels, not both.
|
|
2599
2648
|
*/
|
|
@@ -2603,8 +2652,8 @@ Only events with this exact label value will be delivered.
|
|
|
2603
2652
|
NOTE: Use either (labelKey + labelValue) OR labels, not both.
|
|
2604
2653
|
*/
|
|
2605
2654
|
labelValue?: string;
|
|
2606
|
-
/** Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2607
|
-
an event contains ALL the key-value pairs specified here. Additional labels on
|
|
2655
|
+
/** Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2656
|
+
an event contains ALL the key-value pairs specified here. Additional labels on
|
|
2608
2657
|
the event are allowed and will not prevent matching.
|
|
2609
2658
|
NOTE: Use either labels OR (labelKey + labelValue), not both.
|
|
2610
2659
|
*/
|
|
@@ -2613,7 +2662,7 @@ NOTE: Use either labels OR (labelKey + labelValue), not both.
|
|
|
2613
2662
|
| (unknown & {
|
|
2614
2663
|
/** Description of the webhook subscription. */
|
|
2615
2664
|
description?: string;
|
|
2616
|
-
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2665
|
+
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2617
2666
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created").
|
|
2618
2667
|
The subscription will only receive events matching these types AND the label filter(s).
|
|
2619
2668
|
*/
|
|
@@ -2623,7 +2672,7 @@ The subscription will only receive events matching these types AND the label fil
|
|
|
2623
2672
|
target?: WebhookTarget;
|
|
2624
2673
|
/** Additional metadata for the subscription. */
|
|
2625
2674
|
metadata?: WebhookSubscriptionRequestMetadata;
|
|
2626
|
-
/** Label key for filtering events. Each subscription filters on exactly one (labelKey, labelValue) pair
|
|
2675
|
+
/** Label key for filtering events. Each subscription filters on exactly one (labelKey, labelValue) pair
|
|
2627
2676
|
in addition to the event types. Only events matching both the event types AND this label filter will be delivered.
|
|
2628
2677
|
NOTE: Use either (labelKey + labelValue) OR labels, not both.
|
|
2629
2678
|
*/
|
|
@@ -2633,8 +2682,8 @@ Only events with this exact label value will be delivered.
|
|
|
2633
2682
|
NOTE: Use either (labelKey + labelValue) OR labels, not both.
|
|
2634
2683
|
*/
|
|
2635
2684
|
labelValue?: string;
|
|
2636
|
-
/** Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2637
|
-
an event contains ALL the key-value pairs specified here. Additional labels on
|
|
2685
|
+
/** Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2686
|
+
an event contains ALL the key-value pairs specified here. Additional labels on
|
|
2638
2687
|
the event are allowed and will not prevent matching.
|
|
2639
2688
|
NOTE: Use either labels OR (labelKey + labelValue), not both.
|
|
2640
2689
|
*/
|
|
@@ -2647,14 +2696,14 @@ NOTE: Use either labels OR (labelKey + labelValue), not both.
|
|
|
2647
2696
|
export type WebhookSubscriptionUpdateRequestMetadata = { [key: string]: unknown };
|
|
2648
2697
|
|
|
2649
2698
|
/**
|
|
2650
|
-
* Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2699
|
+
* Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2651
2700
|
an event contains ALL the key-value pairs specified here. Use either labels OR (labelKey + labelValue), not both.
|
|
2652
2701
|
|
|
2653
2702
|
*/
|
|
2654
2703
|
export type WebhookSubscriptionUpdateRequestLabels = { [key: string]: string };
|
|
2655
2704
|
|
|
2656
2705
|
/**
|
|
2657
|
-
* Request to update an existing webhook subscription. The update format must match
|
|
2706
|
+
* Request to update an existing webhook subscription. The update format must match
|
|
2658
2707
|
the original subscription format (traditional or multi-label).
|
|
2659
2708
|
|
|
2660
2709
|
*/
|
|
@@ -2662,7 +2711,7 @@ export type WebhookSubscriptionUpdateRequest =
|
|
|
2662
2711
|
| (unknown & {
|
|
2663
2712
|
/** Description of the webhook subscription. */
|
|
2664
2713
|
description?: string;
|
|
2665
|
-
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2714
|
+
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2666
2715
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created").
|
|
2667
2716
|
*/
|
|
2668
2717
|
eventTypes?: string[];
|
|
@@ -2677,7 +2726,7 @@ service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detec
|
|
|
2677
2726
|
/** Label value for filtering events. Use either (labelKey + labelValue) OR labels, not both.
|
|
2678
2727
|
*/
|
|
2679
2728
|
labelValue?: string;
|
|
2680
|
-
/** Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2729
|
+
/** Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2681
2730
|
an event contains ALL the key-value pairs specified here. Use either labels OR (labelKey + labelValue), not both.
|
|
2682
2731
|
*/
|
|
2683
2732
|
labels?: WebhookSubscriptionUpdateRequestLabels;
|
|
@@ -2685,7 +2734,7 @@ an event contains ALL the key-value pairs specified here. Use either labels OR (
|
|
|
2685
2734
|
| (unknown & {
|
|
2686
2735
|
/** Description of the webhook subscription. */
|
|
2687
2736
|
description?: string;
|
|
2688
|
-
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2737
|
+
/** Types of events to subscribe to. Event types follow a three-part dot-separated format:
|
|
2689
2738
|
service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created").
|
|
2690
2739
|
*/
|
|
2691
2740
|
eventTypes?: string[];
|
|
@@ -2700,7 +2749,7 @@ service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detec
|
|
|
2700
2749
|
/** Label value for filtering events. Use either (labelKey + labelValue) OR labels, not both.
|
|
2701
2750
|
*/
|
|
2702
2751
|
labelValue?: string;
|
|
2703
|
-
/** Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2752
|
+
/** Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when
|
|
2704
2753
|
an event contains ALL the key-value pairs specified here. Use either labels OR (labelKey + labelValue), not both.
|
|
2705
2754
|
*/
|
|
2706
2755
|
labels?: WebhookSubscriptionUpdateRequestLabels;
|
|
@@ -2714,6 +2763,7 @@ export type X402Version = (typeof X402Version)[keyof typeof X402Version];
|
|
|
2714
2763
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2715
2764
|
export const X402Version = {
|
|
2716
2765
|
NUMBER_1: 1,
|
|
2766
|
+
NUMBER_2: 2,
|
|
2717
2767
|
} as const;
|
|
2718
2768
|
|
|
2719
2769
|
/**
|
|
@@ -2761,22 +2811,22 @@ export interface X402ExactSolanaPayload {
|
|
|
2761
2811
|
/**
|
|
2762
2812
|
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2763
2813
|
*/
|
|
2764
|
-
export type
|
|
2765
|
-
(typeof
|
|
2814
|
+
export type X402V1PaymentPayloadScheme =
|
|
2815
|
+
(typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
2766
2816
|
|
|
2767
2817
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2768
|
-
export const
|
|
2818
|
+
export const X402V1PaymentPayloadScheme = {
|
|
2769
2819
|
exact: "exact",
|
|
2770
2820
|
} as const;
|
|
2771
2821
|
|
|
2772
2822
|
/**
|
|
2773
2823
|
* The network of the blockchain to send payment on.
|
|
2774
2824
|
*/
|
|
2775
|
-
export type
|
|
2776
|
-
(typeof
|
|
2825
|
+
export type X402V1PaymentPayloadNetwork =
|
|
2826
|
+
(typeof X402V1PaymentPayloadNetwork)[keyof typeof X402V1PaymentPayloadNetwork];
|
|
2777
2827
|
|
|
2778
2828
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2779
|
-
export const
|
|
2829
|
+
export const X402V1PaymentPayloadNetwork = {
|
|
2780
2830
|
"base-sepolia": "base-sepolia",
|
|
2781
2831
|
base: "base",
|
|
2782
2832
|
"solana-devnet": "solana-devnet",
|
|
@@ -2786,40 +2836,130 @@ export const X402PaymentPayloadNetwork = {
|
|
|
2786
2836
|
/**
|
|
2787
2837
|
* The payload of the payment depending on the x402Version, scheme, and network.
|
|
2788
2838
|
*/
|
|
2789
|
-
export type
|
|
2839
|
+
export type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
2790
2840
|
|
|
2791
2841
|
/**
|
|
2792
2842
|
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
2793
2843
|
*/
|
|
2794
|
-
export interface
|
|
2844
|
+
export interface X402V1PaymentPayload {
|
|
2795
2845
|
x402Version: X402Version;
|
|
2796
2846
|
/** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
|
|
2797
|
-
scheme:
|
|
2847
|
+
scheme: X402V1PaymentPayloadScheme;
|
|
2798
2848
|
/** The network of the blockchain to send payment on. */
|
|
2799
|
-
network:
|
|
2849
|
+
network: X402V1PaymentPayloadNetwork;
|
|
2800
2850
|
/** The payload of the payment depending on the x402Version, scheme, and network. */
|
|
2801
|
-
payload:
|
|
2851
|
+
payload: X402V1PaymentPayloadPayload;
|
|
2802
2852
|
}
|
|
2803
2853
|
|
|
2804
2854
|
/**
|
|
2805
2855
|
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2806
2856
|
*/
|
|
2807
|
-
export type
|
|
2808
|
-
(typeof
|
|
2857
|
+
export type X402V2PaymentRequirementsScheme =
|
|
2858
|
+
(typeof X402V2PaymentRequirementsScheme)[keyof typeof X402V2PaymentRequirementsScheme];
|
|
2809
2859
|
|
|
2810
2860
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2811
|
-
export const
|
|
2861
|
+
export const X402V2PaymentRequirementsScheme = {
|
|
2862
|
+
exact: "exact",
|
|
2863
|
+
} as const;
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* The optional additional scheme-specific payment info.
|
|
2867
|
+
*/
|
|
2868
|
+
export type X402V2PaymentRequirementsExtra = { [key: string]: unknown };
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
|
|
2872
|
+
*/
|
|
2873
|
+
export interface X402V2PaymentRequirements {
|
|
2874
|
+
/** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
|
|
2875
|
+
scheme: X402V2PaymentRequirementsScheme;
|
|
2876
|
+
/** The network of the blockchain to send payment on in caip2 format. */
|
|
2877
|
+
network: string;
|
|
2878
|
+
/**
|
|
2879
|
+
* The asset to pay with.
|
|
2880
|
+
|
|
2881
|
+
For EVM networks, the asset will be a 0x-prefixed, checksum EVM address.
|
|
2882
|
+
|
|
2883
|
+
For Solana-based networks, the asset will be a base58-encoded Solana address.
|
|
2884
|
+
* @pattern ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
|
|
2885
|
+
*/
|
|
2886
|
+
asset: string;
|
|
2887
|
+
/** The amount to pay for the resource in atomic units of the payment asset. */
|
|
2888
|
+
amount: string;
|
|
2889
|
+
/**
|
|
2890
|
+
* The destination to pay value to.
|
|
2891
|
+
|
|
2892
|
+
For EVM networks, payTo will be a 0x-prefixed, checksum EVM address.
|
|
2893
|
+
|
|
2894
|
+
For Solana-based networks, payTo will be a base58-encoded Solana address.
|
|
2895
|
+
* @pattern ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
|
|
2896
|
+
*/
|
|
2897
|
+
payTo: string;
|
|
2898
|
+
/** The maximum time in seconds for the resource server to respond. */
|
|
2899
|
+
maxTimeoutSeconds: number;
|
|
2900
|
+
/** The optional additional scheme-specific payment info. */
|
|
2901
|
+
extra?: X402V2PaymentRequirementsExtra;
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
/**
|
|
2905
|
+
* Describes the resource being accessed in x402 protocol.
|
|
2906
|
+
*/
|
|
2907
|
+
export interface X402ResourceInfo {
|
|
2908
|
+
/** The URL of the resource. */
|
|
2909
|
+
url?: string;
|
|
2910
|
+
/** The description of the resource. */
|
|
2911
|
+
description?: string;
|
|
2912
|
+
/** The MIME type of the resource response. */
|
|
2913
|
+
mimeType?: string;
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* The payload of the payment depending on the x402Version, scheme, and network.
|
|
2918
|
+
*/
|
|
2919
|
+
export type X402V2PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* Optional protocol extensions.
|
|
2923
|
+
*/
|
|
2924
|
+
export type X402V2PaymentPayloadExtensions = { [key: string]: unknown };
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
2928
|
+
*/
|
|
2929
|
+
export interface X402V2PaymentPayload {
|
|
2930
|
+
x402Version: X402Version;
|
|
2931
|
+
/** The payload of the payment depending on the x402Version, scheme, and network. */
|
|
2932
|
+
payload: X402V2PaymentPayloadPayload;
|
|
2933
|
+
accepted: X402V2PaymentRequirements;
|
|
2934
|
+
resource?: X402ResourceInfo;
|
|
2935
|
+
/** Optional protocol extensions. */
|
|
2936
|
+
extensions?: X402V2PaymentPayloadExtensions;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
|
|
2941
|
+
*/
|
|
2942
|
+
export type X402PaymentPayload = X402V1PaymentPayload | X402V2PaymentPayload;
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
|
|
2946
|
+
*/
|
|
2947
|
+
export type X402V1PaymentRequirementsScheme =
|
|
2948
|
+
(typeof X402V1PaymentRequirementsScheme)[keyof typeof X402V1PaymentRequirementsScheme];
|
|
2949
|
+
|
|
2950
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2951
|
+
export const X402V1PaymentRequirementsScheme = {
|
|
2812
2952
|
exact: "exact",
|
|
2813
2953
|
} as const;
|
|
2814
2954
|
|
|
2815
2955
|
/**
|
|
2816
2956
|
* The network of the blockchain to send payment on.
|
|
2817
2957
|
*/
|
|
2818
|
-
export type
|
|
2819
|
-
(typeof
|
|
2958
|
+
export type X402V1PaymentRequirementsNetwork =
|
|
2959
|
+
(typeof X402V1PaymentRequirementsNetwork)[keyof typeof X402V1PaymentRequirementsNetwork];
|
|
2820
2960
|
|
|
2821
2961
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2822
|
-
export const
|
|
2962
|
+
export const X402V1PaymentRequirementsNetwork = {
|
|
2823
2963
|
"base-sepolia": "base-sepolia",
|
|
2824
2964
|
base: "base",
|
|
2825
2965
|
"solana-devnet": "solana-devnet",
|
|
@@ -2829,38 +2969,38 @@ export const X402PaymentRequirementsNetwork = {
|
|
|
2829
2969
|
/**
|
|
2830
2970
|
* The optional JSON schema describing the resource output.
|
|
2831
2971
|
*/
|
|
2832
|
-
export type
|
|
2972
|
+
export type X402V1PaymentRequirementsOutputSchema = { [key: string]: unknown };
|
|
2833
2973
|
|
|
2834
2974
|
/**
|
|
2835
2975
|
* The optional additional scheme-specific payment info.
|
|
2836
2976
|
*/
|
|
2837
|
-
export type
|
|
2977
|
+
export type X402V1PaymentRequirementsExtra = { [key: string]: unknown };
|
|
2838
2978
|
|
|
2839
2979
|
/**
|
|
2840
2980
|
* The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
|
|
2841
2981
|
*/
|
|
2842
|
-
export interface
|
|
2982
|
+
export interface X402V1PaymentRequirements {
|
|
2843
2983
|
/** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
|
|
2844
|
-
scheme:
|
|
2984
|
+
scheme: X402V1PaymentRequirementsScheme;
|
|
2845
2985
|
/** The network of the blockchain to send payment on. */
|
|
2846
|
-
network:
|
|
2986
|
+
network: X402V1PaymentRequirementsNetwork;
|
|
2847
2987
|
/** The maximum amount required to pay for the resource in atomic units of the payment asset. */
|
|
2848
2988
|
maxAmountRequired: string;
|
|
2849
2989
|
/** The URL of the resource to pay for. */
|
|
2850
|
-
resource:
|
|
2990
|
+
resource: string;
|
|
2851
2991
|
/** The description of the resource. */
|
|
2852
2992
|
description: string;
|
|
2853
2993
|
/** The MIME type of the resource response. */
|
|
2854
2994
|
mimeType: string;
|
|
2855
2995
|
/** The optional JSON schema describing the resource output. */
|
|
2856
|
-
outputSchema?:
|
|
2996
|
+
outputSchema?: X402V1PaymentRequirementsOutputSchema;
|
|
2857
2997
|
/**
|
|
2858
2998
|
* The destination to pay value to.
|
|
2859
2999
|
|
|
2860
3000
|
For EVM networks, payTo will be a 0x-prefixed, checksum EVM address.
|
|
2861
3001
|
|
|
2862
3002
|
For Solana-based networks, payTo will be a base58-encoded Solana address.
|
|
2863
|
-
* @pattern ^0x[a-fA-F0-9]{40}|[
|
|
3003
|
+
* @pattern ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
|
|
2864
3004
|
*/
|
|
2865
3005
|
payTo: string;
|
|
2866
3006
|
/** The maximum time in seconds for the resource server to respond. */
|
|
@@ -2871,13 +3011,18 @@ For Solana-based networks, payTo will be a base58-encoded Solana address.
|
|
|
2871
3011
|
For EVM networks, the asset will be a 0x-prefixed, checksum EVM address.
|
|
2872
3012
|
|
|
2873
3013
|
For Solana-based networks, the asset will be a base58-encoded Solana address.
|
|
2874
|
-
* @pattern ^0x[a-fA-F0-9]{40}|[
|
|
3014
|
+
* @pattern ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
|
|
2875
3015
|
*/
|
|
2876
3016
|
asset: string;
|
|
2877
3017
|
/** The optional additional scheme-specific payment info. */
|
|
2878
|
-
extra?:
|
|
3018
|
+
extra?: X402V1PaymentRequirementsExtra;
|
|
2879
3019
|
}
|
|
2880
3020
|
|
|
3021
|
+
/**
|
|
3022
|
+
* The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
|
|
3023
|
+
*/
|
|
3024
|
+
export type X402PaymentRequirements = X402V1PaymentRequirements | X402V2PaymentRequirements;
|
|
3025
|
+
|
|
2881
3026
|
/**
|
|
2882
3027
|
* The reason the payment is invalid on the x402 protocol.
|
|
2883
3028
|
*/
|
|
@@ -2979,17 +3124,6 @@ export const X402SettleErrorReason = {
|
|
|
2979
3124
|
"settle_exact_svm_transaction_confirmation_timed_out",
|
|
2980
3125
|
} as const;
|
|
2981
3126
|
|
|
2982
|
-
/**
|
|
2983
|
-
* The scheme of the payment protocol.
|
|
2984
|
-
*/
|
|
2985
|
-
export type X402SupportedPaymentKindScheme =
|
|
2986
|
-
(typeof X402SupportedPaymentKindScheme)[keyof typeof X402SupportedPaymentKindScheme];
|
|
2987
|
-
|
|
2988
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2989
|
-
export const X402SupportedPaymentKindScheme = {
|
|
2990
|
-
exact: "exact",
|
|
2991
|
-
} as const;
|
|
2992
|
-
|
|
2993
3127
|
/**
|
|
2994
3128
|
* The network of the blockchain.
|
|
2995
3129
|
*/
|
|
@@ -3004,6 +3138,17 @@ export const X402SupportedPaymentKindNetwork = {
|
|
|
3004
3138
|
solana: "solana",
|
|
3005
3139
|
} as const;
|
|
3006
3140
|
|
|
3141
|
+
/**
|
|
3142
|
+
* The scheme of the payment protocol.
|
|
3143
|
+
*/
|
|
3144
|
+
export type X402SupportedPaymentKindScheme =
|
|
3145
|
+
(typeof X402SupportedPaymentKindScheme)[keyof typeof X402SupportedPaymentKindScheme];
|
|
3146
|
+
|
|
3147
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
3148
|
+
export const X402SupportedPaymentKindScheme = {
|
|
3149
|
+
exact: "exact",
|
|
3150
|
+
} as const;
|
|
3151
|
+
|
|
3007
3152
|
/**
|
|
3008
3153
|
* The optional additional scheme-specific payment info.
|
|
3009
3154
|
*/
|
|
@@ -3017,7 +3162,7 @@ export interface X402SupportedPaymentKind {
|
|
|
3017
3162
|
/** The scheme of the payment protocol. */
|
|
3018
3163
|
scheme: X402SupportedPaymentKindScheme;
|
|
3019
3164
|
/** The network of the blockchain. */
|
|
3020
|
-
network:
|
|
3165
|
+
network: string;
|
|
3021
3166
|
/** The optional additional scheme-specific payment info. */
|
|
3022
3167
|
extra?: X402SupportedPaymentKindExtra;
|
|
3023
3168
|
}
|
|
@@ -3144,6 +3289,14 @@ export const OnrampQuotePaymentMethodTypeId = {
|
|
|
3144
3289
|
CRYPTO_WALLET: "CRYPTO_WALLET",
|
|
3145
3290
|
} as const;
|
|
3146
3291
|
|
|
3292
|
+
/**
|
|
3293
|
+
* A valid URI.
|
|
3294
|
+
* @minLength 5
|
|
3295
|
+
* @maxLength 2048
|
|
3296
|
+
* @pattern ^.*://.*$
|
|
3297
|
+
*/
|
|
3298
|
+
export type Uri = string;
|
|
3299
|
+
|
|
3147
3300
|
/**
|
|
3148
3301
|
* An onramp session containing a ready-to-use onramp URL.
|
|
3149
3302
|
*/
|
|
@@ -3229,7 +3382,7 @@ export type X402VerifyResponseResponse = {
|
|
|
3229
3382
|
For EVM networks, the payer will be a 0x-prefixed, checksum EVM address.
|
|
3230
3383
|
|
|
3231
3384
|
For Solana-based networks, the payer will be a base58-encoded Solana address.
|
|
3232
|
-
* @pattern ^0x[a-fA-F0-9]{40}|[
|
|
3385
|
+
* @pattern ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
|
|
3233
3386
|
*/
|
|
3234
3387
|
payer: string;
|
|
3235
3388
|
};
|
|
@@ -3244,23 +3397,32 @@ export type X402SettleResponseResponse = {
|
|
|
3244
3397
|
For EVM networks, the payer will be a 0x-prefixed, checksum EVM address.
|
|
3245
3398
|
|
|
3246
3399
|
For Solana-based networks, the payer will be a base58-encoded Solana address.
|
|
3247
|
-
* @pattern ^0x[a-fA-F0-9]{40}|[
|
|
3400
|
+
* @pattern ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
|
|
3248
3401
|
*/
|
|
3249
3402
|
payer: string;
|
|
3250
3403
|
/**
|
|
3251
3404
|
* The transaction of the settlement.
|
|
3252
3405
|
For EVM networks, the transaction will be a 0x-prefixed, EVM transaction hash.
|
|
3253
3406
|
For Solana-based networks, the transaction will be a base58-encoded Solana signature.
|
|
3254
|
-
* @pattern ^0x[a-fA-F0-9]{
|
|
3407
|
+
* @pattern ^(0x[a-fA-F0-9]{64}|[1-9A-HJ-NP-Za-km-z]{87,88})$
|
|
3255
3408
|
*/
|
|
3256
3409
|
transaction: string;
|
|
3257
3410
|
/** The network where the settlement occurred. */
|
|
3258
3411
|
network: string;
|
|
3259
3412
|
};
|
|
3260
3413
|
|
|
3414
|
+
/**
|
|
3415
|
+
* A map of CAIP-2 network or protocol family patterns to their supported signer addresses.
|
|
3416
|
+
*/
|
|
3417
|
+
export type X402SupportedPaymentKindsResponseResponseSigners = { [key: string]: string[] };
|
|
3418
|
+
|
|
3261
3419
|
export type X402SupportedPaymentKindsResponseResponse = {
|
|
3262
3420
|
/** The list of supported payment kinds. */
|
|
3263
3421
|
kinds: X402SupportedPaymentKind[];
|
|
3422
|
+
/** The list of supported x402 extensions. */
|
|
3423
|
+
extensions: string[];
|
|
3424
|
+
/** A map of CAIP-2 network or protocol family patterns to their supported signer addresses. */
|
|
3425
|
+
signers: X402SupportedPaymentKindsResponseResponseSigners;
|
|
3264
3426
|
};
|
|
3265
3427
|
|
|
3266
3428
|
/**
|
|
@@ -3278,7 +3440,7 @@ export type XWalletAuthParameter = string;
|
|
|
3278
3440
|
|
|
3279
3441
|
/**
|
|
3280
3442
|
* An optional [UUID v4](https://www.uuidgenerator.net/version4) request header for making requests safely retryable.
|
|
3281
|
-
When included, duplicate requests with the same key will return identical responses.
|
|
3443
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
3282
3444
|
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
3283
3445
|
|
|
3284
3446
|
*/
|
|
@@ -4057,11 +4219,11 @@ Use the [Onramp Buy Options API](https://docs.cdp.coinbase.com/api-reference/res
|
|
|
4057
4219
|
country?: string;
|
|
4058
4220
|
/** The ISO 3166-2 two letter state code (e.g. NY). Only required for US. */
|
|
4059
4221
|
subdivision?: string;
|
|
4060
|
-
/**
|
|
4061
|
-
redirectUrl?:
|
|
4222
|
+
/** URI to redirect the user to when they successfully complete a transaction. This URI will be embedded in the returned onramp URI as a query parameter. */
|
|
4223
|
+
redirectUrl?: Uri;
|
|
4062
4224
|
/** The IP address of the end user requesting the onramp transaction. */
|
|
4063
4225
|
clientIp?: string;
|
|
4064
|
-
/** A unique string that represents the user in your app. This can be used to link individual transactions
|
|
4226
|
+
/** A unique string that represents the user in your app. This can be used to link individual transactions together so you can retrieve the transaction history for your users. Prefix this string with “sandbox-” (e.g. "sandbox-user-1234") to perform a sandbox transaction which will allow you to test your integration without any real transfer of funds.
|
|
4065
4227
|
|
|
4066
4228
|
This value can be used with with [Onramp User Transactions API](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-onramp-transactions-by-id) to retrieve all transactions created by the user. */
|
|
4067
4229
|
partnerUserRef?: string;
|
|
@@ -17,7 +17,7 @@ import { cdpApiClient } from "../../cdpApiClient.js";
|
|
|
17
17
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Retrieve all ERC-20 token contract addresses that an account has ever received tokens from.
|
|
20
|
+
* Retrieve all ERC-20 token contract addresses that an account has ever received tokens from.
|
|
21
21
|
Analyzes transaction history to discover token interactions.
|
|
22
22
|
|
|
23
23
|
* @summary List token addresses for account
|