@coinbase/cdp-sdk 1.47.0 → 1.48.1
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 +14 -0
- package/README.md +287 -0
- package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_cjs/client/cdp.js +1 -4
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +42 -89
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +17 -43
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js +0 -32
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +57 -10
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.js → embedded-wallets/embedded-wallets.js} +45 -97
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js +6 -6
- package/_cjs/openapi-client/index.js +2 -2
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_esm/client/cdp.js +2 -5
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +40 -87
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +17 -43
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js +0 -32
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +55 -8
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.js → embedded-wallets/embedded-wallets.js} +43 -93
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js +6 -6
- package/_esm/openapi-client/index.js +2 -2
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -1
- package/_types/client/cdp.d.ts +2 -6
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +19 -52
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +26 -61
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts +0 -2
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +490 -79
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +151 -0
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
- package/_types/openapi-client/index.d.ts +14 -45
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/actions/webhooks/createWebhookSubscription.ts +6 -1
- package/client/cdp.ts +3 -8
- package/client/end-user/endUser.ts +85 -187
- package/client/end-user/endUser.types.ts +28 -69
- package/client/end-user/toEndUserAccount.ts +63 -152
- package/index.ts +0 -4
- package/openapi-client/cdpApiClient.ts +0 -34
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +551 -85
- package/openapi-client/generated/{embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts → embedded-wallets/embedded-wallets.ts} +86 -249
- package/openapi-client/generated/webhooks/webhooks.ts +6 -6
- package/openapi-client/index.ts +2 -2
- package/package.json +1 -1
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +0 -1
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +0 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +0 -312
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +0 -1
|
@@ -7,188 +7,48 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type {
|
|
9
9
|
BlockchainAddress,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
CreateEvmEip7702DelegationWithEndUserAccount201,
|
|
11
|
+
CreateEvmEip7702DelegationWithEndUserAccountBody,
|
|
12
|
+
CreateEvmEip7702DelegationWithEndUserAccountParams,
|
|
13
13
|
EvmUserOperation,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
GetDelegationForEndUser200,
|
|
15
|
+
GetDelegationForEndUserParams,
|
|
16
|
+
RevokeDelegationForEndUserBody,
|
|
17
|
+
SendEvmAssetWithEndUserAccount200,
|
|
18
|
+
SendEvmAssetWithEndUserAccountBody,
|
|
19
|
+
SendEvmAssetWithEndUserAccountParams,
|
|
20
|
+
SendEvmTransactionWithEndUserAccount200,
|
|
21
|
+
SendEvmTransactionWithEndUserAccountBody,
|
|
22
|
+
SendEvmTransactionWithEndUserAccountParams,
|
|
23
|
+
SendSolanaAssetWithEndUserAccount200,
|
|
24
|
+
SendSolanaAssetWithEndUserAccountBody,
|
|
25
|
+
SendSolanaAssetWithEndUserAccountParams,
|
|
26
|
+
SendSolanaTransactionWithEndUserAccount200,
|
|
27
|
+
SendSolanaTransactionWithEndUserAccountBody,
|
|
28
|
+
SendSolanaTransactionWithEndUserAccountParams,
|
|
29
|
+
SendUserOperationWithEndUserAccountBody,
|
|
30
|
+
SendUserOperationWithEndUserAccountParams,
|
|
31
|
+
SignEvmMessageWithEndUserAccount200,
|
|
32
|
+
SignEvmMessageWithEndUserAccountBody,
|
|
33
|
+
SignEvmMessageWithEndUserAccountParams,
|
|
34
|
+
SignEvmTransactionWithEndUserAccount200,
|
|
35
|
+
SignEvmTransactionWithEndUserAccountBody,
|
|
36
|
+
SignEvmTransactionWithEndUserAccountParams,
|
|
37
|
+
SignEvmTypedDataWithEndUserAccount200,
|
|
38
|
+
SignEvmTypedDataWithEndUserAccountBody,
|
|
39
|
+
SignEvmTypedDataWithEndUserAccountParams,
|
|
40
|
+
SignSolanaMessageWithEndUserAccount200,
|
|
41
|
+
SignSolanaMessageWithEndUserAccountBody,
|
|
42
|
+
SignSolanaMessageWithEndUserAccountParams,
|
|
43
|
+
SignSolanaTransactionWithEndUserAccount200,
|
|
44
|
+
SignSolanaTransactionWithEndUserAccountBody,
|
|
45
|
+
SignSolanaTransactionWithEndUserAccountParams,
|
|
16
46
|
} from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
17
47
|
|
|
18
|
-
// These types were removed from the shared schemas when the embedded-wallet-api
|
|
19
|
-
// paths were temporarily pulled from the public spec. Defined inline until restored.
|
|
20
|
-
type Url = string;
|
|
21
|
-
|
|
22
|
-
export type SignEvmHashWithEndUserAccountBody = {
|
|
23
|
-
hash: string;
|
|
24
|
-
address: string;
|
|
25
|
-
walletSecretId?: string;
|
|
26
|
-
};
|
|
27
|
-
export type SignEvmHashWithEndUserAccount200 = { signature: string };
|
|
28
|
-
|
|
29
|
-
export type SignEvmTransactionWithEndUserAccountBody = {
|
|
30
|
-
address: string;
|
|
31
|
-
transaction: string;
|
|
32
|
-
walletSecretId?: string;
|
|
33
|
-
};
|
|
34
|
-
export type SignEvmTransactionWithEndUserAccount200 = { signedTransaction: string };
|
|
35
|
-
|
|
36
|
-
export type SendEvmTransactionWithEndUserAccountBodyNetwork =
|
|
37
|
-
(typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
39
|
-
export const SendEvmTransactionWithEndUserAccountBodyNetwork = {
|
|
40
|
-
base: "base",
|
|
41
|
-
"base-sepolia": "base-sepolia",
|
|
42
|
-
ethereum: "ethereum",
|
|
43
|
-
"ethereum-sepolia": "ethereum-sepolia",
|
|
44
|
-
avalanche: "avalanche",
|
|
45
|
-
polygon: "polygon",
|
|
46
|
-
optimism: "optimism",
|
|
47
|
-
arbitrum: "arbitrum",
|
|
48
|
-
} as const;
|
|
49
|
-
export type SendEvmTransactionWithEndUserAccountBody = {
|
|
50
|
-
address: string;
|
|
51
|
-
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
52
|
-
transaction: string;
|
|
53
|
-
walletSecretId?: string;
|
|
54
|
-
};
|
|
55
|
-
export type SendEvmTransactionWithEndUserAccount200 = { transactionHash: string };
|
|
56
|
-
|
|
57
|
-
export type SendEvmAssetWithEndUserAccountBodyNetwork =
|
|
58
|
-
(typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
59
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
60
|
-
export const SendEvmAssetWithEndUserAccountBodyNetwork = {
|
|
61
|
-
base: "base",
|
|
62
|
-
"base-sepolia": "base-sepolia",
|
|
63
|
-
ethereum: "ethereum",
|
|
64
|
-
"ethereum-sepolia": "ethereum-sepolia",
|
|
65
|
-
avalanche: "avalanche",
|
|
66
|
-
polygon: "polygon",
|
|
67
|
-
optimism: "optimism",
|
|
68
|
-
arbitrum: "arbitrum",
|
|
69
|
-
} as const;
|
|
70
|
-
export type SendEvmAssetWithEndUserAccountBody = {
|
|
71
|
-
to: BlockchainAddress;
|
|
72
|
-
amount: string;
|
|
73
|
-
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
74
|
-
useCdpPaymaster?: boolean;
|
|
75
|
-
paymasterUrl?: Url;
|
|
76
|
-
walletSecretId?: string;
|
|
77
|
-
};
|
|
78
|
-
export type SendEvmAssetWithEndUserAccount200 = {
|
|
79
|
-
transactionHash?: string | null;
|
|
80
|
-
userOpHash?: string | null;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export type SignEvmMessageWithEndUserAccountBody = {
|
|
84
|
-
address: string;
|
|
85
|
-
message: string;
|
|
86
|
-
walletSecretId?: string;
|
|
87
|
-
};
|
|
88
|
-
export type SignEvmMessageWithEndUserAccount200 = { signature: string };
|
|
89
|
-
|
|
90
|
-
export type SignEvmTypedDataWithEndUserAccountBody = {
|
|
91
|
-
address: string;
|
|
92
|
-
typedData: EIP712Message;
|
|
93
|
-
walletSecretId?: string;
|
|
94
|
-
};
|
|
95
|
-
export type SignEvmTypedDataWithEndUserAccount200 = { signature: string };
|
|
96
|
-
|
|
97
|
-
export type RevokeDelegationForEndUserBody = { walletSecretId?: string };
|
|
98
|
-
|
|
99
|
-
export type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
100
|
-
address: string;
|
|
101
|
-
network: EvmEip7702DelegationNetwork;
|
|
102
|
-
enableSpendPermissions?: boolean;
|
|
103
|
-
walletSecretId?: string;
|
|
104
|
-
};
|
|
105
|
-
export type CreateEvmEip7702DelegationWithEndUserAccount201 = { delegationOperationId: string };
|
|
106
|
-
|
|
107
|
-
export type SendUserOperationWithEndUserAccountBody = {
|
|
108
|
-
network: EvmUserOperationNetwork;
|
|
109
|
-
calls: EvmCall[];
|
|
110
|
-
useCdpPaymaster: boolean;
|
|
111
|
-
paymasterUrl?: Url;
|
|
112
|
-
walletSecretId?: string;
|
|
113
|
-
dataSuffix?: string;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export type SignSolanaHashWithEndUserAccountBody = {
|
|
117
|
-
hash: string;
|
|
118
|
-
address: string;
|
|
119
|
-
walletSecretId?: string;
|
|
120
|
-
};
|
|
121
|
-
export type SignSolanaHashWithEndUserAccount200 = { signature: string };
|
|
122
|
-
|
|
123
|
-
export type SignSolanaMessageWithEndUserAccountBody = {
|
|
124
|
-
address: string;
|
|
125
|
-
message: string;
|
|
126
|
-
walletSecretId?: string;
|
|
127
|
-
};
|
|
128
|
-
export type SignSolanaMessageWithEndUserAccount200 = { signature: string };
|
|
129
|
-
|
|
130
|
-
export type SignSolanaTransactionWithEndUserAccountBody = {
|
|
131
|
-
address: string;
|
|
132
|
-
transaction: string;
|
|
133
|
-
walletSecretId?: string;
|
|
134
|
-
};
|
|
135
|
-
export type SignSolanaTransactionWithEndUserAccount200 = { signedTransaction: string };
|
|
136
|
-
|
|
137
|
-
export type SendSolanaTransactionWithEndUserAccountBodyNetwork =
|
|
138
|
-
(typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
|
|
139
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
140
|
-
export const SendSolanaTransactionWithEndUserAccountBodyNetwork = {
|
|
141
|
-
solana: "solana",
|
|
142
|
-
"solana-devnet": "solana-devnet",
|
|
143
|
-
} as const;
|
|
144
|
-
export type SendSolanaTransactionWithEndUserAccountBody = {
|
|
145
|
-
address: string;
|
|
146
|
-
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
147
|
-
transaction: string;
|
|
148
|
-
walletSecretId?: string;
|
|
149
|
-
};
|
|
150
|
-
export type SendSolanaTransactionWithEndUserAccount200 = { transactionSignature: string };
|
|
151
|
-
|
|
152
|
-
export type SendSolanaAssetWithEndUserAccountBodyNetwork =
|
|
153
|
-
(typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
154
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
155
|
-
export const SendSolanaAssetWithEndUserAccountBodyNetwork = {
|
|
156
|
-
solana: "solana",
|
|
157
|
-
"solana-devnet": "solana-devnet",
|
|
158
|
-
} as const;
|
|
159
|
-
export type SendSolanaAssetWithEndUserAccountBody = {
|
|
160
|
-
to: BlockchainAddress;
|
|
161
|
-
amount: string;
|
|
162
|
-
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
163
|
-
createRecipientAta?: boolean;
|
|
164
|
-
walletSecretId?: string;
|
|
165
|
-
};
|
|
166
|
-
export type SendSolanaAssetWithEndUserAccount200 = { transactionSignature: string };
|
|
167
|
-
|
|
168
48
|
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
169
49
|
|
|
170
50
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
171
51
|
|
|
172
|
-
/**
|
|
173
|
-
* Signs an arbitrary 32 byte hash with the end user's given EVM account.
|
|
174
|
-
* @summary Sign a hash with end user EVM account
|
|
175
|
-
*/
|
|
176
|
-
export const signEvmHashWithEndUserAccount = (
|
|
177
|
-
projectId: string,
|
|
178
|
-
userId: string,
|
|
179
|
-
signEvmHashWithEndUserAccountBody: SignEvmHashWithEndUserAccountBody,
|
|
180
|
-
options?: SecondParameter<typeof cdpApiClient<SignEvmHashWithEndUserAccount200>>,
|
|
181
|
-
) => {
|
|
182
|
-
return cdpApiClient<SignEvmHashWithEndUserAccount200>(
|
|
183
|
-
{
|
|
184
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/sign`,
|
|
185
|
-
method: "POST",
|
|
186
|
-
headers: { "Content-Type": "application/json" },
|
|
187
|
-
data: signEvmHashWithEndUserAccountBody,
|
|
188
|
-
},
|
|
189
|
-
options,
|
|
190
|
-
);
|
|
191
|
-
};
|
|
192
52
|
/**
|
|
193
53
|
* Signs a transaction with the given end user EVM account.
|
|
194
54
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
@@ -197,17 +57,18 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
197
57
|
* @summary Sign a transaction with end user EVM account
|
|
198
58
|
*/
|
|
199
59
|
export const signEvmTransactionWithEndUserAccount = (
|
|
200
|
-
projectId: string,
|
|
201
60
|
userId: string,
|
|
202
61
|
signEvmTransactionWithEndUserAccountBody: SignEvmTransactionWithEndUserAccountBody,
|
|
62
|
+
params?: SignEvmTransactionWithEndUserAccountParams,
|
|
203
63
|
options?: SecondParameter<typeof cdpApiClient<SignEvmTransactionWithEndUserAccount200>>,
|
|
204
64
|
) => {
|
|
205
65
|
return cdpApiClient<SignEvmTransactionWithEndUserAccount200>(
|
|
206
66
|
{
|
|
207
|
-
url: `/v2/embedded-wallet-api/
|
|
67
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
|
|
208
68
|
method: "POST",
|
|
209
69
|
headers: { "Content-Type": "application/json" },
|
|
210
70
|
data: signEvmTransactionWithEndUserAccountBody,
|
|
71
|
+
params,
|
|
211
72
|
},
|
|
212
73
|
options,
|
|
213
74
|
);
|
|
@@ -242,17 +103,18 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
242
103
|
* @summary Send a transaction with end user EVM account
|
|
243
104
|
*/
|
|
244
105
|
export const sendEvmTransactionWithEndUserAccount = (
|
|
245
|
-
projectId: string,
|
|
246
106
|
userId: string,
|
|
247
107
|
sendEvmTransactionWithEndUserAccountBody: SendEvmTransactionWithEndUserAccountBody,
|
|
108
|
+
params?: SendEvmTransactionWithEndUserAccountParams,
|
|
248
109
|
options?: SecondParameter<typeof cdpApiClient<SendEvmTransactionWithEndUserAccount200>>,
|
|
249
110
|
) => {
|
|
250
111
|
return cdpApiClient<SendEvmTransactionWithEndUserAccount200>(
|
|
251
112
|
{
|
|
252
|
-
url: `/v2/embedded-wallet-api/
|
|
113
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/send/transaction`,
|
|
253
114
|
method: "POST",
|
|
254
115
|
headers: { "Content-Type": "application/json" },
|
|
255
116
|
data: sendEvmTransactionWithEndUserAccountBody,
|
|
117
|
+
params,
|
|
256
118
|
},
|
|
257
119
|
options,
|
|
258
120
|
);
|
|
@@ -263,19 +125,20 @@ The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5
|
|
|
263
125
|
* @summary Send USDC on EVM
|
|
264
126
|
*/
|
|
265
127
|
export const sendEvmAssetWithEndUserAccount = (
|
|
266
|
-
projectId: string,
|
|
267
128
|
userId: string,
|
|
268
129
|
address: BlockchainAddress,
|
|
269
130
|
asset: "usdc",
|
|
270
131
|
sendEvmAssetWithEndUserAccountBody: SendEvmAssetWithEndUserAccountBody,
|
|
132
|
+
params?: SendEvmAssetWithEndUserAccountParams,
|
|
271
133
|
options?: SecondParameter<typeof cdpApiClient<SendEvmAssetWithEndUserAccount200>>,
|
|
272
134
|
) => {
|
|
273
135
|
return cdpApiClient<SendEvmAssetWithEndUserAccount200>(
|
|
274
136
|
{
|
|
275
|
-
url: `/v2/embedded-wallet-api/
|
|
137
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
|
|
276
138
|
method: "POST",
|
|
277
139
|
headers: { "Content-Type": "application/json" },
|
|
278
140
|
data: sendEvmAssetWithEndUserAccountBody,
|
|
141
|
+
params,
|
|
279
142
|
},
|
|
280
143
|
options,
|
|
281
144
|
);
|
|
@@ -287,17 +150,18 @@ Per the specification, the message in the request body is prepended with `0x19 <
|
|
|
287
150
|
* @summary Sign an EIP-191 message with end user EVM account
|
|
288
151
|
*/
|
|
289
152
|
export const signEvmMessageWithEndUserAccount = (
|
|
290
|
-
projectId: string,
|
|
291
153
|
userId: string,
|
|
292
154
|
signEvmMessageWithEndUserAccountBody: SignEvmMessageWithEndUserAccountBody,
|
|
155
|
+
params?: SignEvmMessageWithEndUserAccountParams,
|
|
293
156
|
options?: SecondParameter<typeof cdpApiClient<SignEvmMessageWithEndUserAccount200>>,
|
|
294
157
|
) => {
|
|
295
158
|
return cdpApiClient<SignEvmMessageWithEndUserAccount200>(
|
|
296
159
|
{
|
|
297
|
-
url: `/v2/embedded-wallet-api/
|
|
160
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/message`,
|
|
298
161
|
method: "POST",
|
|
299
162
|
headers: { "Content-Type": "application/json" },
|
|
300
163
|
data: signEvmMessageWithEndUserAccountBody,
|
|
164
|
+
params,
|
|
301
165
|
},
|
|
302
166
|
options,
|
|
303
167
|
);
|
|
@@ -307,34 +171,48 @@ export const signEvmMessageWithEndUserAccount = (
|
|
|
307
171
|
* @summary Sign EIP-712 typed data with end user EVM account
|
|
308
172
|
*/
|
|
309
173
|
export const signEvmTypedDataWithEndUserAccount = (
|
|
310
|
-
projectId: string,
|
|
311
174
|
userId: string,
|
|
312
175
|
signEvmTypedDataWithEndUserAccountBody: SignEvmTypedDataWithEndUserAccountBody,
|
|
176
|
+
params?: SignEvmTypedDataWithEndUserAccountParams,
|
|
313
177
|
options?: SecondParameter<typeof cdpApiClient<SignEvmTypedDataWithEndUserAccount200>>,
|
|
314
178
|
) => {
|
|
315
179
|
return cdpApiClient<SignEvmTypedDataWithEndUserAccount200>(
|
|
316
180
|
{
|
|
317
|
-
url: `/v2/embedded-wallet-api/
|
|
181
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/typed-data`,
|
|
318
182
|
method: "POST",
|
|
319
183
|
headers: { "Content-Type": "application/json" },
|
|
320
184
|
data: signEvmTypedDataWithEndUserAccountBody,
|
|
185
|
+
params,
|
|
321
186
|
},
|
|
322
187
|
options,
|
|
323
188
|
);
|
|
324
189
|
};
|
|
190
|
+
/**
|
|
191
|
+
* Returns the active delegation for the specified end user, if one exists. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
192
|
+
* @summary Get delegation for end user
|
|
193
|
+
*/
|
|
194
|
+
export const getDelegationForEndUser = (
|
|
195
|
+
userId: string,
|
|
196
|
+
params?: GetDelegationForEndUserParams,
|
|
197
|
+
options?: SecondParameter<typeof cdpApiClient<GetDelegationForEndUser200>>,
|
|
198
|
+
) => {
|
|
199
|
+
return cdpApiClient<GetDelegationForEndUser200>(
|
|
200
|
+
{ url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`, method: "GET", params },
|
|
201
|
+
options,
|
|
202
|
+
);
|
|
203
|
+
};
|
|
325
204
|
/**
|
|
326
205
|
* Revokes all active delegations for the specified end user. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
327
206
|
* @summary Revoke delegation for end user
|
|
328
207
|
*/
|
|
329
208
|
export const revokeDelegationForEndUser = (
|
|
330
|
-
projectId: string,
|
|
331
209
|
userId: string,
|
|
332
210
|
revokeDelegationForEndUserBody: RevokeDelegationForEndUserBody,
|
|
333
211
|
options?: SecondParameter<typeof cdpApiClient<void>>,
|
|
334
212
|
) => {
|
|
335
213
|
return cdpApiClient<void>(
|
|
336
214
|
{
|
|
337
|
-
url: `/v2/embedded-wallet-api/
|
|
215
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`,
|
|
338
216
|
method: "DELETE",
|
|
339
217
|
headers: { "Content-Type": "application/json" },
|
|
340
218
|
data: revokeDelegationForEndUserBody,
|
|
@@ -355,17 +233,18 @@ The delegation allows the EVM EOA to be used as a smart account, which enables b
|
|
|
355
233
|
* @summary Create EIP-7702 delegation for end user EVM account
|
|
356
234
|
*/
|
|
357
235
|
export const createEvmEip7702DelegationWithEndUserAccount = (
|
|
358
|
-
projectId: string,
|
|
359
236
|
userId: string,
|
|
360
237
|
createEvmEip7702DelegationWithEndUserAccountBody: CreateEvmEip7702DelegationWithEndUserAccountBody,
|
|
238
|
+
params?: CreateEvmEip7702DelegationWithEndUserAccountParams,
|
|
361
239
|
options?: SecondParameter<typeof cdpApiClient<CreateEvmEip7702DelegationWithEndUserAccount201>>,
|
|
362
240
|
) => {
|
|
363
241
|
return cdpApiClient<CreateEvmEip7702DelegationWithEndUserAccount201>(
|
|
364
242
|
{
|
|
365
|
-
url: `/v2/embedded-wallet-api/
|
|
243
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/eip7702/delegation`,
|
|
366
244
|
method: "POST",
|
|
367
245
|
headers: { "Content-Type": "application/json" },
|
|
368
246
|
data: createEvmEip7702DelegationWithEndUserAccountBody,
|
|
247
|
+
params,
|
|
369
248
|
},
|
|
370
249
|
options,
|
|
371
250
|
);
|
|
@@ -375,59 +254,19 @@ export const createEvmEip7702DelegationWithEndUserAccount = (
|
|
|
375
254
|
* @summary Send a user operation for end user Smart Account
|
|
376
255
|
*/
|
|
377
256
|
export const sendUserOperationWithEndUserAccount = (
|
|
378
|
-
projectId: string,
|
|
379
257
|
userId: string,
|
|
380
258
|
address: string,
|
|
381
259
|
sendUserOperationWithEndUserAccountBody: SendUserOperationWithEndUserAccountBody,
|
|
260
|
+
params?: SendUserOperationWithEndUserAccountParams,
|
|
382
261
|
options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>,
|
|
383
262
|
) => {
|
|
384
263
|
return cdpApiClient<EvmUserOperation>(
|
|
385
264
|
{
|
|
386
|
-
url: `/v2/embedded-wallet-api/
|
|
265
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
|
|
387
266
|
method: "POST",
|
|
388
267
|
headers: { "Content-Type": "application/json" },
|
|
389
268
|
data: sendUserOperationWithEndUserAccountBody,
|
|
390
|
-
|
|
391
|
-
options,
|
|
392
|
-
);
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* Revokes an existing spend permission.
|
|
396
|
-
* @summary Revoke a spend permission
|
|
397
|
-
*/
|
|
398
|
-
export const revokeSpendPermissionWithEndUserAccount = (
|
|
399
|
-
projectId: string,
|
|
400
|
-
userId: string,
|
|
401
|
-
address: string,
|
|
402
|
-
revokeSpendPermissionRequest: RevokeSpendPermissionRequest,
|
|
403
|
-
options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>,
|
|
404
|
-
) => {
|
|
405
|
-
return cdpApiClient<EvmUserOperation>(
|
|
406
|
-
{
|
|
407
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/evm/smart-accounts/${address}/spend-permissions/revoke`,
|
|
408
|
-
method: "POST",
|
|
409
|
-
headers: { "Content-Type": "application/json" },
|
|
410
|
-
data: revokeSpendPermissionRequest,
|
|
411
|
-
},
|
|
412
|
-
options,
|
|
413
|
-
);
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* Signs an arbitrary 32 byte hash with the end user's given Solana account.
|
|
417
|
-
* @summary Sign a hash with end user Solana account
|
|
418
|
-
*/
|
|
419
|
-
export const signSolanaHashWithEndUserAccount = (
|
|
420
|
-
projectId: string,
|
|
421
|
-
userId: string,
|
|
422
|
-
signSolanaHashWithEndUserAccountBody: SignSolanaHashWithEndUserAccountBody,
|
|
423
|
-
options?: SecondParameter<typeof cdpApiClient<SignSolanaHashWithEndUserAccount200>>,
|
|
424
|
-
) => {
|
|
425
|
-
return cdpApiClient<SignSolanaHashWithEndUserAccount200>(
|
|
426
|
-
{
|
|
427
|
-
url: `/v2/embedded-wallet-api/projects/${projectId}/end-users/${userId}/solana/sign`,
|
|
428
|
-
method: "POST",
|
|
429
|
-
headers: { "Content-Type": "application/json" },
|
|
430
|
-
data: signSolanaHashWithEndUserAccountBody,
|
|
269
|
+
params,
|
|
431
270
|
},
|
|
432
271
|
options,
|
|
433
272
|
);
|
|
@@ -438,17 +277,18 @@ export const signSolanaHashWithEndUserAccount = (
|
|
|
438
277
|
* @summary Sign a Base64 encoded message
|
|
439
278
|
*/
|
|
440
279
|
export const signSolanaMessageWithEndUserAccount = (
|
|
441
|
-
projectId: string,
|
|
442
280
|
userId: string,
|
|
443
281
|
signSolanaMessageWithEndUserAccountBody: SignSolanaMessageWithEndUserAccountBody,
|
|
282
|
+
params?: SignSolanaMessageWithEndUserAccountParams,
|
|
444
283
|
options?: SecondParameter<typeof cdpApiClient<SignSolanaMessageWithEndUserAccount200>>,
|
|
445
284
|
) => {
|
|
446
285
|
return cdpApiClient<SignSolanaMessageWithEndUserAccount200>(
|
|
447
286
|
{
|
|
448
|
-
url: `/v2/embedded-wallet-api/
|
|
287
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
|
|
449
288
|
method: "POST",
|
|
450
289
|
headers: { "Content-Type": "application/json" },
|
|
451
290
|
data: signSolanaMessageWithEndUserAccountBody,
|
|
291
|
+
params,
|
|
452
292
|
},
|
|
453
293
|
options,
|
|
454
294
|
);
|
|
@@ -464,17 +304,18 @@ The developer is responsible for ensuring that the unsigned transaction is valid
|
|
|
464
304
|
* @summary Sign a transaction with end user Solana account
|
|
465
305
|
*/
|
|
466
306
|
export const signSolanaTransactionWithEndUserAccount = (
|
|
467
|
-
projectId: string,
|
|
468
307
|
userId: string,
|
|
469
308
|
signSolanaTransactionWithEndUserAccountBody: SignSolanaTransactionWithEndUserAccountBody,
|
|
309
|
+
params?: SignSolanaTransactionWithEndUserAccountParams,
|
|
470
310
|
options?: SecondParameter<typeof cdpApiClient<SignSolanaTransactionWithEndUserAccount200>>,
|
|
471
311
|
) => {
|
|
472
312
|
return cdpApiClient<SignSolanaTransactionWithEndUserAccount200>(
|
|
473
313
|
{
|
|
474
|
-
url: `/v2/embedded-wallet-api/
|
|
314
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
|
|
475
315
|
method: "POST",
|
|
476
316
|
headers: { "Content-Type": "application/json" },
|
|
477
317
|
data: signSolanaTransactionWithEndUserAccountBody,
|
|
318
|
+
params,
|
|
478
319
|
},
|
|
479
320
|
options,
|
|
480
321
|
);
|
|
@@ -497,17 +338,18 @@ The developer is responsible for ensuring that the unsigned transaction is valid
|
|
|
497
338
|
* @summary Send a transaction with end user Solana account
|
|
498
339
|
*/
|
|
499
340
|
export const sendSolanaTransactionWithEndUserAccount = (
|
|
500
|
-
projectId: string,
|
|
501
341
|
userId: string,
|
|
502
342
|
sendSolanaTransactionWithEndUserAccountBody: SendSolanaTransactionWithEndUserAccountBody,
|
|
343
|
+
params?: SendSolanaTransactionWithEndUserAccountParams,
|
|
503
344
|
options?: SecondParameter<typeof cdpApiClient<SendSolanaTransactionWithEndUserAccount200>>,
|
|
504
345
|
) => {
|
|
505
346
|
return cdpApiClient<SendSolanaTransactionWithEndUserAccount200>(
|
|
506
347
|
{
|
|
507
|
-
url: `/v2/embedded-wallet-api/
|
|
348
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/send/transaction`,
|
|
508
349
|
method: "POST",
|
|
509
350
|
headers: { "Content-Type": "application/json" },
|
|
510
351
|
data: sendSolanaTransactionWithEndUserAccountBody,
|
|
352
|
+
params,
|
|
511
353
|
},
|
|
512
354
|
options,
|
|
513
355
|
);
|
|
@@ -519,26 +361,24 @@ Use the optional `createRecipientAta` parameter to control whether the sender pa
|
|
|
519
361
|
* @summary Send USDC on Solana
|
|
520
362
|
*/
|
|
521
363
|
export const sendSolanaAssetWithEndUserAccount = (
|
|
522
|
-
projectId: string,
|
|
523
364
|
userId: string,
|
|
524
365
|
address: BlockchainAddress,
|
|
525
366
|
asset: "usdc",
|
|
526
367
|
sendSolanaAssetWithEndUserAccountBody: SendSolanaAssetWithEndUserAccountBody,
|
|
368
|
+
params?: SendSolanaAssetWithEndUserAccountParams,
|
|
527
369
|
options?: SecondParameter<typeof cdpApiClient<SendSolanaAssetWithEndUserAccount200>>,
|
|
528
370
|
) => {
|
|
529
371
|
return cdpApiClient<SendSolanaAssetWithEndUserAccount200>(
|
|
530
372
|
{
|
|
531
|
-
url: `/v2/embedded-wallet-api/
|
|
373
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
|
|
532
374
|
method: "POST",
|
|
533
375
|
headers: { "Content-Type": "application/json" },
|
|
534
376
|
data: sendSolanaAssetWithEndUserAccountBody,
|
|
377
|
+
params,
|
|
535
378
|
},
|
|
536
379
|
options,
|
|
537
380
|
);
|
|
538
381
|
};
|
|
539
|
-
export type SignEvmHashWithEndUserAccountResult = NonNullable<
|
|
540
|
-
Awaited<ReturnType<typeof signEvmHashWithEndUserAccount>>
|
|
541
|
-
>;
|
|
542
382
|
export type SignEvmTransactionWithEndUserAccountResult = NonNullable<
|
|
543
383
|
Awaited<ReturnType<typeof signEvmTransactionWithEndUserAccount>>
|
|
544
384
|
>;
|
|
@@ -554,6 +394,9 @@ export type SignEvmMessageWithEndUserAccountResult = NonNullable<
|
|
|
554
394
|
export type SignEvmTypedDataWithEndUserAccountResult = NonNullable<
|
|
555
395
|
Awaited<ReturnType<typeof signEvmTypedDataWithEndUserAccount>>
|
|
556
396
|
>;
|
|
397
|
+
export type GetDelegationForEndUserResult = NonNullable<
|
|
398
|
+
Awaited<ReturnType<typeof getDelegationForEndUser>>
|
|
399
|
+
>;
|
|
557
400
|
export type RevokeDelegationForEndUserResult = NonNullable<
|
|
558
401
|
Awaited<ReturnType<typeof revokeDelegationForEndUser>>
|
|
559
402
|
>;
|
|
@@ -563,12 +406,6 @@ export type CreateEvmEip7702DelegationWithEndUserAccountResult = NonNullable<
|
|
|
563
406
|
export type SendUserOperationWithEndUserAccountResult = NonNullable<
|
|
564
407
|
Awaited<ReturnType<typeof sendUserOperationWithEndUserAccount>>
|
|
565
408
|
>;
|
|
566
|
-
export type RevokeSpendPermissionWithEndUserAccountResult = NonNullable<
|
|
567
|
-
Awaited<ReturnType<typeof revokeSpendPermissionWithEndUserAccount>>
|
|
568
|
-
>;
|
|
569
|
-
export type SignSolanaHashWithEndUserAccountResult = NonNullable<
|
|
570
|
-
Awaited<ReturnType<typeof signSolanaHashWithEndUserAccount>>
|
|
571
|
-
>;
|
|
572
409
|
export type SignSolanaMessageWithEndUserAccountResult = NonNullable<
|
|
573
410
|
Awaited<ReturnType<typeof signSolanaMessageWithEndUserAccount>>
|
|
574
411
|
>;
|
|
@@ -57,12 +57,12 @@ export const listWebhookSubscriptions = (
|
|
|
57
57
|
- **No labels required** - maximum simplicity for transaction monitoring
|
|
58
58
|
|
|
59
59
|
**Payments Transfers Events** - Transfer lifecycle notifications:
|
|
60
|
-
- `payments.transfers.quoted`
|
|
61
|
-
- `payments.transfers.processing`
|
|
62
|
-
- `payments.transfers.completed`
|
|
63
|
-
- `payments.transfers.failed`
|
|
64
|
-
- `payments.transfers.travel_rule_incomplete`
|
|
65
|
-
- `payments.transfers.travel_rule_completed`
|
|
60
|
+
- `payments.transfers.quoted` - Transfer created and awaiting execution
|
|
61
|
+
- `payments.transfers.processing` - Transfer execution in progress
|
|
62
|
+
- `payments.transfers.completed` - Transfer completed successfully
|
|
63
|
+
- `payments.transfers.failed` - Transfer failed
|
|
64
|
+
- `payments.transfers.travel_rule_incomplete` - Travel rule information is missing
|
|
65
|
+
- `payments.transfers.travel_rule_completed` - Travel rule information has been provided and the transfer will proceed
|
|
66
66
|
- **No labels required** - enable the transfers webhook to monitor status transitions
|
|
67
67
|
|
|
68
68
|
**Wallet Events** - Wallet activity notifications:
|
package/openapi-client/index.ts
CHANGED
|
@@ -10,11 +10,11 @@ export * from "./generated/policy-engine/policy-engine.js";
|
|
|
10
10
|
export * from "./generated/onramp/onramp.js";
|
|
11
11
|
export * from "./generated/onchain-data/onchain-data.js";
|
|
12
12
|
export * from "./generated/end-user-accounts/end-user-accounts.js";
|
|
13
|
-
export * from "./generated/embedded-wallets
|
|
13
|
+
export * from "./generated/embedded-wallets/embedded-wallets.js";
|
|
14
14
|
export * from "./generated/x402-facilitator/x402-facilitator.js";
|
|
15
15
|
|
|
16
16
|
import { configure } from "./cdpApiClient.js";
|
|
17
|
-
import * as embeddedWallets from "./generated/embedded-wallets
|
|
17
|
+
import * as embeddedWallets from "./generated/embedded-wallets/embedded-wallets.js";
|
|
18
18
|
import * as endUserAccounts from "./generated/end-user-accounts/end-user-accounts.js";
|
|
19
19
|
import * as evm from "./generated/evm-accounts/evm-accounts.js";
|
|
20
20
|
import * as evmSmartAccounts from "./generated/evm-smart-accounts/evm-smart-accounts.js";
|
package/package.json
CHANGED
package/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "1.
|
|
1
|
+
export const version = "1.48.1";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-wallets-core-functionality.js","sourceRoot":"","sources":["../../../../openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts"],"names":[],"mappings":";;;AAqCA,2DAA2D;AAC9C,QAAA,+CAA+C,GAAG;IAC7D,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAWX,2DAA2D;AAC9C,QAAA,yCAAyC,GAAG;IACvD,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAsEX,2DAA2D;AAC9C,QAAA,kDAAkD,GAAG;IAChE,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,eAAe;CACxB,CAAC;AAWX,2DAA2D;AAC9C,QAAA,4CAA4C,GAAG;IAC1D,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,eAAe;CACxB,CAAC;AAUX,2DAAqD;AAIrD;;;GAGG;AACI,MAAM,6BAA6B,GAAG,CAC3C,SAAiB,EACjB,MAAc,EACd,iCAAoE,EACpE,OAAgF,EAChF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,oCAAoC,SAAS,cAAc,MAAM,WAAW;QACjF,MAAM,EAAE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AAE;QAC/C,IAAI,EAAE,2CAA2C;KAClD,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,uCAAuC,2CAelD;AACF;;;;;GAKG;AACI,MAAM,iCAAiC,GAAG,CAC/C,SAAiB,EACjB,MAAc,EACd,OAA0B,EAC1B,KAAa,EACb,qCAA4E,EAC5E,OAAoF,EACpF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,oCAAoC,SAAS,cAAc,MAAM,WAAW,OAAO,SAAS,KAAK,EAAE;QACxG,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,qCAAqC;KAC5C,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,iCAAiC,qCAiB5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-wallets-core-functionality.js","sourceRoot":"","sources":["../../../../openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts"],"names":[],"mappings":"AAqCA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,+CAA+C,GAAG;IAC7D,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAWX,2DAA2D;AAC3D,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAsEX,2DAA2D;AAC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