@privy-io/api-types 0.10.0 → 0.12.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.
- package/CHANGELOG.md +27 -0
- package/client.d.mts +22 -28
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -28
- package/client.d.ts.map +1 -1
- package/client.js +6 -12
- package/client.js.map +1 -1
- package/client.mjs +7 -13
- package/client.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +5 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +496 -514
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +496 -514
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +5 -0
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +5 -0
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +10 -10
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +10 -10
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/fiat.d.mts +110 -0
- package/resources/fiat.d.mts.map +1 -0
- package/resources/fiat.d.ts +110 -0
- package/resources/fiat.d.ts.map +1 -0
- package/resources/fiat.js +9 -0
- package/resources/fiat.js.map +1 -0
- package/resources/fiat.mjs +5 -0
- package/resources/fiat.mjs.map +1 -0
- package/resources/funding.d.mts +46 -46
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +46 -46
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +11 -10
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -10
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/key-quorums.d.mts +1 -132
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +1 -132
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +0 -92
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +0 -92
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/policies.d.mts +2 -312
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +2 -312
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +0 -229
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +0 -229
- package/resources/policies.mjs.map +1 -1
- package/resources/swaps.d.mts +54 -26
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +54 -26
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +28 -44
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +28 -44
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +0 -17
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +0 -17
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +1 -345
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +1 -345
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +0 -272
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +0 -272
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +22 -3
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +22 -3
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +6 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +6 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +184 -342
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +184 -342
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +41 -102
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +41 -102
- package/resources/wallets/wallets.mjs.map +1 -1
- package/src/client.ts +122 -153
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +6 -0
- package/src/resources/client-auth.ts +743 -787
- package/src/resources/cross-app.ts +6 -0
- package/src/resources/embedded-wallets.ts +16 -15
- package/src/resources/fiat.ts +177 -0
- package/src/resources/funding.ts +65 -65
- package/src/resources/index.ts +97 -107
- package/src/resources/key-quorums.ts +1 -203
- package/src/resources/policies.ts +1 -495
- package/src/resources/swaps.ts +59 -25
- package/src/resources/transactions.ts +35 -55
- package/src/resources/users.ts +1 -479
- package/src/resources/wallet-actions.ts +38 -2
- package/src/resources/wallets/index.ts +4 -9
- package/src/resources/wallets/transactions.ts +6 -2
- package/src/resources/wallets/wallets.ts +236 -450
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/users.js
CHANGED
|
@@ -3,279 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Users = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../core/pagination.js");
|
|
7
|
-
const headers_1 = require("../internal/headers.js");
|
|
8
|
-
const path_1 = require("../internal/utils/path.js");
|
|
9
|
-
/**
|
|
10
|
-
* Operations related to users
|
|
11
|
-
*/
|
|
12
6
|
class Users extends resource_1.APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Create a new user with linked accounts. Optionally pre-generate embedded wallets
|
|
15
|
-
* for the user.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const user = await client.users.create({
|
|
20
|
-
* linked_accounts: [
|
|
21
|
-
* { address: 'tom.bombadill@privy.io', type: 'email' },
|
|
22
|
-
* ],
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
create(body, options) {
|
|
27
|
-
return this._client.post('/v1/users', { body, ...options });
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Get all users in your app.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* // Automatically fetches more pages as needed.
|
|
35
|
-
* for await (const user of client.users.list()) {
|
|
36
|
-
* // ...
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
list(query = {}, options) {
|
|
41
|
-
return this._client.getAPIList('/v1/users', (pagination_1.Cursor), { query, ...options });
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Delete a user by user ID.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* await client.users.delete('user_id');
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
delete(userID, options) {
|
|
52
|
-
return this._client.delete((0, path_1.path) `/v1/users/${userID}`, {
|
|
53
|
-
...options,
|
|
54
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Get a user by user ID.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* const user = await client.users._get('user_id');
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
_get(userID, options) {
|
|
66
|
-
return this._client.get((0, path_1.path) `/v1/users/${userID}`, options);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Looks up a user by their custom auth ID.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* const user = await client.users.getByCustomAuthID({
|
|
74
|
-
* custom_user_id: 'custom_user_id',
|
|
75
|
-
* });
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
getByCustomAuthID(body, options) {
|
|
79
|
-
return this._client.post('/v1/users/custom_auth/id', { body, ...options });
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Looks up a user by their Discord username.
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```ts
|
|
86
|
-
* const user = await client.users.getByDiscordUsername({
|
|
87
|
-
* username: 'username',
|
|
88
|
-
* });
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
getByDiscordUsername(body, options) {
|
|
92
|
-
return this._client.post('/v1/users/discord/username', { body, ...options });
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Looks up a user by their email address.
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```ts
|
|
99
|
-
* const user = await client.users.getByEmailAddress({
|
|
100
|
-
* address: 'dev@stainless.com',
|
|
101
|
-
* });
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
getByEmailAddress(body, options) {
|
|
105
|
-
return this._client.post('/v1/users/email/address', { body, ...options });
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Looks up a user by their Farcaster ID.
|
|
109
|
-
*
|
|
110
|
-
* @example
|
|
111
|
-
* ```ts
|
|
112
|
-
* const user = await client.users.getByFarcasterID({
|
|
113
|
-
* fid: 0,
|
|
114
|
-
* });
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
getByFarcasterID(body, options) {
|
|
118
|
-
return this._client.post('/v1/users/farcaster/fid', { body, ...options });
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Looks up a user by their Github username.
|
|
122
|
-
*
|
|
123
|
-
* @example
|
|
124
|
-
* ```ts
|
|
125
|
-
* const user = await client.users.getByGitHubUsername({
|
|
126
|
-
* username: 'username',
|
|
127
|
-
* });
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
getByGitHubUsername(body, options) {
|
|
131
|
-
return this._client.post('/v1/users/github/username', { body, ...options });
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Looks up a user by their phone number.
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* ```ts
|
|
138
|
-
* const user = await client.users.getByPhoneNumber({
|
|
139
|
-
* number: 'number',
|
|
140
|
-
* });
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
getByPhoneNumber(body, options) {
|
|
144
|
-
return this._client.post('/v1/users/phone/number', { body, ...options });
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Looks up a user by their smart wallet address.
|
|
148
|
-
*
|
|
149
|
-
* @example
|
|
150
|
-
* ```ts
|
|
151
|
-
* const user = await client.users.getBySmartWalletAddress({
|
|
152
|
-
* address: 'address',
|
|
153
|
-
* });
|
|
154
|
-
* ```
|
|
155
|
-
*/
|
|
156
|
-
getBySmartWalletAddress(body, options) {
|
|
157
|
-
return this._client.post('/v1/users/smart_wallet/address', { body, ...options });
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Looks up a user by their Telegram user ID.
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* ```ts
|
|
164
|
-
* const user = await client.users.getByTelegramUserID({
|
|
165
|
-
* telegram_user_id: 'telegram_user_id',
|
|
166
|
-
* });
|
|
167
|
-
* ```
|
|
168
|
-
*/
|
|
169
|
-
getByTelegramUserID(body, options) {
|
|
170
|
-
return this._client.post('/v1/users/telegram/telegram_user_id', { body, ...options });
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Looks up a user by their Telegram username.
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```ts
|
|
177
|
-
* const user = await client.users.getByTelegramUsername({
|
|
178
|
-
* username: 'username',
|
|
179
|
-
* });
|
|
180
|
-
* ```
|
|
181
|
-
*/
|
|
182
|
-
getByTelegramUsername(body, options) {
|
|
183
|
-
return this._client.post('/v1/users/telegram/username', { body, ...options });
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Looks up a user by their Twitter subject.
|
|
187
|
-
*
|
|
188
|
-
* @example
|
|
189
|
-
* ```ts
|
|
190
|
-
* const user = await client.users.getByTwitterSubject({
|
|
191
|
-
* subject: 'subject',
|
|
192
|
-
* });
|
|
193
|
-
* ```
|
|
194
|
-
*/
|
|
195
|
-
getByTwitterSubject(body, options) {
|
|
196
|
-
return this._client.post('/v1/users/twitter/subject', { body, ...options });
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Looks up a user by their Twitter username.
|
|
200
|
-
*
|
|
201
|
-
* @example
|
|
202
|
-
* ```ts
|
|
203
|
-
* const user = await client.users.getByTwitterUsername({
|
|
204
|
-
* username: 'username',
|
|
205
|
-
* });
|
|
206
|
-
* ```
|
|
207
|
-
*/
|
|
208
|
-
getByTwitterUsername(body, options) {
|
|
209
|
-
return this._client.post('/v1/users/twitter/username', { body, ...options });
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Looks up a user by their wallet address.
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* ```ts
|
|
216
|
-
* const user = await client.users.getByWalletAddress({
|
|
217
|
-
* address: 'address',
|
|
218
|
-
* });
|
|
219
|
-
* ```
|
|
220
|
-
*/
|
|
221
|
-
getByWalletAddress(body, options) {
|
|
222
|
-
return this._client.post('/v1/users/wallet/address', { body, ...options });
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Creates an embedded wallet for an existing user.
|
|
226
|
-
*
|
|
227
|
-
* @example
|
|
228
|
-
* ```ts
|
|
229
|
-
* const user = await client.users.pregenerateWallets(
|
|
230
|
-
* 'user_id',
|
|
231
|
-
* { wallets: [{ chain_type: 'ethereum' }] },
|
|
232
|
-
* );
|
|
233
|
-
* ```
|
|
234
|
-
*/
|
|
235
|
-
pregenerateWallets(userID, body, options) {
|
|
236
|
-
return this._client.post((0, path_1.path) `/v1/users/${userID}/wallets`, { body, ...options });
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Search users by search term, emails, phone numbers, or wallet addresses.
|
|
240
|
-
*
|
|
241
|
-
* @example
|
|
242
|
-
* ```ts
|
|
243
|
-
* const user = await client.users.search({
|
|
244
|
-
* searchTerm: 'searchTerm',
|
|
245
|
-
* });
|
|
246
|
-
* ```
|
|
247
|
-
*/
|
|
248
|
-
search(body, options) {
|
|
249
|
-
return this._client.post('/v1/users/search', { body, ...options });
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Adds custom metadata to a user by user ID.
|
|
253
|
-
*
|
|
254
|
-
* @example
|
|
255
|
-
* ```ts
|
|
256
|
-
* const user = await client.users.setCustomMetadata(
|
|
257
|
-
* 'user_id',
|
|
258
|
-
* { custom_metadata: { key: 'value' } },
|
|
259
|
-
* );
|
|
260
|
-
* ```
|
|
261
|
-
*/
|
|
262
|
-
setCustomMetadata(userID, body, options) {
|
|
263
|
-
return this._client.post((0, path_1.path) `/v1/users/${userID}/custom_metadata`, { body, ...options });
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Unlinks a user linked account.
|
|
267
|
-
*
|
|
268
|
-
* @example
|
|
269
|
-
* ```ts
|
|
270
|
-
* const user = await client.users.unlinkLinkedAccount(
|
|
271
|
-
* 'user_id',
|
|
272
|
-
* { handle: 'test@test.com', type: 'email' },
|
|
273
|
-
* );
|
|
274
|
-
* ```
|
|
275
|
-
*/
|
|
276
|
-
unlinkLinkedAccount(userID, body, options) {
|
|
277
|
-
return this._client.post((0, path_1.path) `/v1/users/${userID}/accounts/unlink`, { body, ...options });
|
|
278
|
-
}
|
|
279
7
|
}
|
|
280
8
|
exports.Users = Users;
|
|
281
9
|
//# sourceMappingURL=users.js.map
|
package/resources/users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAM/C,MAAa,KAAM,SAAQ,sBAAW;CAAG;AAAzC,sBAAyC"}
|
package/resources/users.mjs
CHANGED
|
@@ -1,277 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { Cursor } from "../core/pagination.mjs";
|
|
4
|
-
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
-
import { path } from "../internal/utils/path.mjs";
|
|
6
|
-
/**
|
|
7
|
-
* Operations related to users
|
|
8
|
-
*/
|
|
9
3
|
export class Users extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a new user with linked accounts. Optionally pre-generate embedded wallets
|
|
12
|
-
* for the user.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const user = await client.users.create({
|
|
17
|
-
* linked_accounts: [
|
|
18
|
-
* { address: 'tom.bombadill@privy.io', type: 'email' },
|
|
19
|
-
* ],
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
create(body, options) {
|
|
24
|
-
return this._client.post('/v1/users', { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Get all users in your app.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* // Automatically fetches more pages as needed.
|
|
32
|
-
* for await (const user of client.users.list()) {
|
|
33
|
-
* // ...
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
list(query = {}, options) {
|
|
38
|
-
return this._client.getAPIList('/v1/users', (Cursor), { query, ...options });
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Delete a user by user ID.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* await client.users.delete('user_id');
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
delete(userID, options) {
|
|
49
|
-
return this._client.delete(path `/v1/users/${userID}`, {
|
|
50
|
-
...options,
|
|
51
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Get a user by user ID.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const user = await client.users._get('user_id');
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
_get(userID, options) {
|
|
63
|
-
return this._client.get(path `/v1/users/${userID}`, options);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Looks up a user by their custom auth ID.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* const user = await client.users.getByCustomAuthID({
|
|
71
|
-
* custom_user_id: 'custom_user_id',
|
|
72
|
-
* });
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
getByCustomAuthID(body, options) {
|
|
76
|
-
return this._client.post('/v1/users/custom_auth/id', { body, ...options });
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Looks up a user by their Discord username.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* const user = await client.users.getByDiscordUsername({
|
|
84
|
-
* username: 'username',
|
|
85
|
-
* });
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
getByDiscordUsername(body, options) {
|
|
89
|
-
return this._client.post('/v1/users/discord/username', { body, ...options });
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Looks up a user by their email address.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```ts
|
|
96
|
-
* const user = await client.users.getByEmailAddress({
|
|
97
|
-
* address: 'dev@stainless.com',
|
|
98
|
-
* });
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
getByEmailAddress(body, options) {
|
|
102
|
-
return this._client.post('/v1/users/email/address', { body, ...options });
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Looks up a user by their Farcaster ID.
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```ts
|
|
109
|
-
* const user = await client.users.getByFarcasterID({
|
|
110
|
-
* fid: 0,
|
|
111
|
-
* });
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
getByFarcasterID(body, options) {
|
|
115
|
-
return this._client.post('/v1/users/farcaster/fid', { body, ...options });
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Looks up a user by their Github username.
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```ts
|
|
122
|
-
* const user = await client.users.getByGitHubUsername({
|
|
123
|
-
* username: 'username',
|
|
124
|
-
* });
|
|
125
|
-
* ```
|
|
126
|
-
*/
|
|
127
|
-
getByGitHubUsername(body, options) {
|
|
128
|
-
return this._client.post('/v1/users/github/username', { body, ...options });
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Looks up a user by their phone number.
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```ts
|
|
135
|
-
* const user = await client.users.getByPhoneNumber({
|
|
136
|
-
* number: 'number',
|
|
137
|
-
* });
|
|
138
|
-
* ```
|
|
139
|
-
*/
|
|
140
|
-
getByPhoneNumber(body, options) {
|
|
141
|
-
return this._client.post('/v1/users/phone/number', { body, ...options });
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Looks up a user by their smart wallet address.
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```ts
|
|
148
|
-
* const user = await client.users.getBySmartWalletAddress({
|
|
149
|
-
* address: 'address',
|
|
150
|
-
* });
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
|
-
getBySmartWalletAddress(body, options) {
|
|
154
|
-
return this._client.post('/v1/users/smart_wallet/address', { body, ...options });
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Looks up a user by their Telegram user ID.
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* ```ts
|
|
161
|
-
* const user = await client.users.getByTelegramUserID({
|
|
162
|
-
* telegram_user_id: 'telegram_user_id',
|
|
163
|
-
* });
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
getByTelegramUserID(body, options) {
|
|
167
|
-
return this._client.post('/v1/users/telegram/telegram_user_id', { body, ...options });
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Looks up a user by their Telegram username.
|
|
171
|
-
*
|
|
172
|
-
* @example
|
|
173
|
-
* ```ts
|
|
174
|
-
* const user = await client.users.getByTelegramUsername({
|
|
175
|
-
* username: 'username',
|
|
176
|
-
* });
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
getByTelegramUsername(body, options) {
|
|
180
|
-
return this._client.post('/v1/users/telegram/username', { body, ...options });
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Looks up a user by their Twitter subject.
|
|
184
|
-
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```ts
|
|
187
|
-
* const user = await client.users.getByTwitterSubject({
|
|
188
|
-
* subject: 'subject',
|
|
189
|
-
* });
|
|
190
|
-
* ```
|
|
191
|
-
*/
|
|
192
|
-
getByTwitterSubject(body, options) {
|
|
193
|
-
return this._client.post('/v1/users/twitter/subject', { body, ...options });
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Looks up a user by their Twitter username.
|
|
197
|
-
*
|
|
198
|
-
* @example
|
|
199
|
-
* ```ts
|
|
200
|
-
* const user = await client.users.getByTwitterUsername({
|
|
201
|
-
* username: 'username',
|
|
202
|
-
* });
|
|
203
|
-
* ```
|
|
204
|
-
*/
|
|
205
|
-
getByTwitterUsername(body, options) {
|
|
206
|
-
return this._client.post('/v1/users/twitter/username', { body, ...options });
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Looks up a user by their wallet address.
|
|
210
|
-
*
|
|
211
|
-
* @example
|
|
212
|
-
* ```ts
|
|
213
|
-
* const user = await client.users.getByWalletAddress({
|
|
214
|
-
* address: 'address',
|
|
215
|
-
* });
|
|
216
|
-
* ```
|
|
217
|
-
*/
|
|
218
|
-
getByWalletAddress(body, options) {
|
|
219
|
-
return this._client.post('/v1/users/wallet/address', { body, ...options });
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Creates an embedded wallet for an existing user.
|
|
223
|
-
*
|
|
224
|
-
* @example
|
|
225
|
-
* ```ts
|
|
226
|
-
* const user = await client.users.pregenerateWallets(
|
|
227
|
-
* 'user_id',
|
|
228
|
-
* { wallets: [{ chain_type: 'ethereum' }] },
|
|
229
|
-
* );
|
|
230
|
-
* ```
|
|
231
|
-
*/
|
|
232
|
-
pregenerateWallets(userID, body, options) {
|
|
233
|
-
return this._client.post(path `/v1/users/${userID}/wallets`, { body, ...options });
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Search users by search term, emails, phone numbers, or wallet addresses.
|
|
237
|
-
*
|
|
238
|
-
* @example
|
|
239
|
-
* ```ts
|
|
240
|
-
* const user = await client.users.search({
|
|
241
|
-
* searchTerm: 'searchTerm',
|
|
242
|
-
* });
|
|
243
|
-
* ```
|
|
244
|
-
*/
|
|
245
|
-
search(body, options) {
|
|
246
|
-
return this._client.post('/v1/users/search', { body, ...options });
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Adds custom metadata to a user by user ID.
|
|
250
|
-
*
|
|
251
|
-
* @example
|
|
252
|
-
* ```ts
|
|
253
|
-
* const user = await client.users.setCustomMetadata(
|
|
254
|
-
* 'user_id',
|
|
255
|
-
* { custom_metadata: { key: 'value' } },
|
|
256
|
-
* );
|
|
257
|
-
* ```
|
|
258
|
-
*/
|
|
259
|
-
setCustomMetadata(userID, body, options) {
|
|
260
|
-
return this._client.post(path `/v1/users/${userID}/custom_metadata`, { body, ...options });
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Unlinks a user linked account.
|
|
264
|
-
*
|
|
265
|
-
* @example
|
|
266
|
-
* ```ts
|
|
267
|
-
* const user = await client.users.unlinkLinkedAccount(
|
|
268
|
-
* 'user_id',
|
|
269
|
-
* { handle: 'test@test.com', type: 'email' },
|
|
270
|
-
* );
|
|
271
|
-
* ```
|
|
272
|
-
*/
|
|
273
|
-
unlinkLinkedAccount(userID, body, options) {
|
|
274
|
-
return this._client.post(path `/v1/users/${userID}/accounts/unlink`, { body, ...options });
|
|
275
|
-
}
|
|
276
4
|
}
|
|
277
5
|
//# sourceMappingURL=users.mjs.map
|
package/resources/users.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,KAAM,SAAQ,WAAW;CAAG"}
|
|
@@ -410,6 +410,25 @@ export interface EthereumEarnVaultDetailsResponse {
|
|
|
410
410
|
*/
|
|
411
411
|
vault_address: string;
|
|
412
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* A wallet action step representing a cross-chain/cross-asset fill by an external
|
|
415
|
+
* provider.
|
|
416
|
+
*/
|
|
417
|
+
export interface ExternalTransactionWalletActionStep {
|
|
418
|
+
/**
|
|
419
|
+
* Status of an external transaction step in a wallet action.
|
|
420
|
+
*/
|
|
421
|
+
status: ExternalTransactionWalletActionStepStatus;
|
|
422
|
+
type: 'external_transaction';
|
|
423
|
+
/**
|
|
424
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
425
|
+
*/
|
|
426
|
+
failure_reason?: FailureReason;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Status of an external transaction step in a wallet action.
|
|
430
|
+
*/
|
|
431
|
+
export type ExternalTransactionWalletActionStepStatus = 'preparing' | 'queued' | 'pending' | 'confirmed' | 'rejected' | 'failed';
|
|
413
432
|
/**
|
|
414
433
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
415
434
|
*/
|
|
@@ -581,16 +600,16 @@ export type WalletActionStatus = 'pending' | 'succeeded' | 'rejected' | 'failed'
|
|
|
581
600
|
/**
|
|
582
601
|
* A step within a wallet action, representing a single onchain action.
|
|
583
602
|
*/
|
|
584
|
-
export type WalletActionStep = EvmTransactionWalletActionStep | EvmUserOperationWalletActionStep | SvmTransactionWalletActionStep;
|
|
603
|
+
export type WalletActionStep = EvmTransactionWalletActionStep | EvmUserOperationWalletActionStep | SvmTransactionWalletActionStep | ExternalTransactionWalletActionStep;
|
|
585
604
|
/**
|
|
586
605
|
* Type of a wallet action step.
|
|
587
606
|
*/
|
|
588
|
-
export type WalletActionStepType = 'evm_transaction' | 'evm_user_operation' | 'svm_transaction';
|
|
607
|
+
export type WalletActionStepType = 'evm_transaction' | 'evm_user_operation' | 'svm_transaction' | 'external_transaction';
|
|
589
608
|
/**
|
|
590
609
|
* Type of wallet action
|
|
591
610
|
*/
|
|
592
611
|
export type WalletActionType = 'swap' | 'transfer' | 'earn_deposit' | 'earn_withdraw' | 'earn_incentive_claim';
|
|
593
612
|
export declare namespace WalletActions {
|
|
594
|
-
export { type EvmTransactionWalletActionStep as EvmTransactionWalletActionStep, type EvmUserOperationWalletActionStep as EvmUserOperationWalletActionStep, type EvmWalletActionStepStatus as EvmWalletActionStepStatus, type EarnAsset as EarnAsset, type EarnDepositActionResponse as EarnDepositActionResponse, type EarnDepositRequestBody as EarnDepositRequestBody, type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse, type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody, type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry, type EarnWithdrawActionResponse as EarnWithdrawActionResponse, type EarnWithdrawRequestBody as EarnWithdrawRequestBody, type EthereumEarnPositionQuery as EthereumEarnPositionQuery, type EthereumEarnPositionResponse as EthereumEarnPositionResponse, type EthereumEarnProvider as EthereumEarnProvider, type EthereumEarnVaultDetailsResponse as EthereumEarnVaultDetailsResponse, type FailureReason as FailureReason, type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep, type SvmWalletActionStepStatus as SvmWalletActionStepStatus, type SwapActionResponse as SwapActionResponse, type TransferActionResponse as TransferActionResponse, type WalletActionResponse as WalletActionResponse, type WalletActionStatus as WalletActionStatus, type WalletActionStep as WalletActionStep, type WalletActionStepType as WalletActionStepType, type WalletActionType as WalletActionType, };
|
|
613
|
+
export { type EvmTransactionWalletActionStep as EvmTransactionWalletActionStep, type EvmUserOperationWalletActionStep as EvmUserOperationWalletActionStep, type EvmWalletActionStepStatus as EvmWalletActionStepStatus, type EarnAsset as EarnAsset, type EarnDepositActionResponse as EarnDepositActionResponse, type EarnDepositRequestBody as EarnDepositRequestBody, type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse, type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody, type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry, type EarnWithdrawActionResponse as EarnWithdrawActionResponse, type EarnWithdrawRequestBody as EarnWithdrawRequestBody, type EthereumEarnPositionQuery as EthereumEarnPositionQuery, type EthereumEarnPositionResponse as EthereumEarnPositionResponse, type EthereumEarnProvider as EthereumEarnProvider, type EthereumEarnVaultDetailsResponse as EthereumEarnVaultDetailsResponse, type ExternalTransactionWalletActionStep as ExternalTransactionWalletActionStep, type ExternalTransactionWalletActionStepStatus as ExternalTransactionWalletActionStepStatus, type FailureReason as FailureReason, type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep, type SvmWalletActionStepStatus as SvmWalletActionStepStatus, type SwapActionResponse as SwapActionResponse, type TransferActionResponse as TransferActionResponse, type WalletActionResponse as WalletActionResponse, type WalletActionStatus as WalletActionStatus, type WalletActionStep as WalletActionStep, type WalletActionStepType as WalletActionStepType, type WalletActionType as WalletActionType, };
|
|
595
614
|
}
|
|
596
615
|
//# sourceMappingURL=wallet-actions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-actions.d.mts","sourceRoot":"","sources":["../src/resources/wallet-actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,aAAc,SAAQ,WAAW;CAAG;AAEjD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAElC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,IAAI,EAAE,iBAAiB,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,kBAAkB,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAElD;;OAEG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAElC,IAAI,EAAE,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ACtB,yBAAyB,GACzB,0BAA0B,GAC1B,gCAAgC,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,8BAA8B,GAC9B,gCAAgC,GAChC,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"wallet-actions.d.mts","sourceRoot":"","sources":["../src/resources/wallet-actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,aAAc,SAAQ,WAAW;CAAG;AAEjD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAElC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,IAAI,EAAE,iBAAiB,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,kBAAkB,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAElD;;OAEG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAElC,IAAI,EAAE,oBAAoB,CAAC;IAE3B;;;OAGG;IACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,GACjC,WAAW,GACX,QAAQ,GACR,SAAS,GACT,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,CAAC;AAEhB;;GAEG;AACH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