@snagsolutions/sdk 0.1.0-alpha.44 → 0.1.0-alpha.46
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 +20 -0
- package/README.md +18 -16
- package/index.d.mts +4 -4
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets.d.ts +7 -1
- package/resources/assets.d.ts.map +1 -1
- package/resources/auctions/auctions.d.ts +266 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +62 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +35 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +94 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +21 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +17 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +108 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +58 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +31 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +1 -133
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -22
- package/resources/auctions.js.map +1 -1
- package/resources/auctions.mjs +1 -20
- package/resources/auctions.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +1 -1
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +2 -2
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +3 -3
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +2 -2
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +2 -2
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +10 -3
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +4 -4
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +4 -4
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +3 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +9 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +4 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +104 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +22 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +18 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +288 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +58 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +31 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -253
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -18
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty/transactions.mjs +1 -16
- package/resources/loyalty/transactions.mjs.map +1 -1
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.ts +60 -1
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +9 -0
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +9 -0
- package/resources/users/users.mjs.map +1 -1
- package/src/index.ts +17 -1
- package/src/resources/assets.ts +8 -1
- package/src/resources/auctions/auctions.ts +417 -0
- package/src/resources/auctions/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +137 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +183 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/index.ts +11 -1
- package/src/resources/loyalty/index.ts +3 -1
- package/src/resources/loyalty/loyalty.ts +6 -2
- package/src/resources/loyalty/rules.ts +20 -4
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +160 -0
- package/src/resources/loyalty/transactions/transactions.ts +515 -0
- package/src/resources/loyalty/transactions.ts +1 -448
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/users.ts +88 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,450 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { isRequestOptions } from '../../core';
|
|
5
|
-
import * as Core from '../../core';
|
|
6
|
-
|
|
7
|
-
export class Transactions extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a loyalty transaction to update account balances.
|
|
10
|
-
*/
|
|
11
|
-
createTransaction(
|
|
12
|
-
body: TransactionCreateTransactionParams,
|
|
13
|
-
options?: Core.RequestOptions,
|
|
14
|
-
): Core.APIPromise<TransactionCreateTransactionResponse> {
|
|
15
|
-
return this._client.post('/api/loyalty/transactions', { body, ...options });
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Fetch loyalty transaction entries for wallets or users, representing account
|
|
20
|
-
* balance changes.
|
|
21
|
-
*/
|
|
22
|
-
getTransactionEntries(
|
|
23
|
-
query?: TransactionGetTransactionEntriesParams,
|
|
24
|
-
options?: Core.RequestOptions,
|
|
25
|
-
): Core.APIPromise<TransactionGetTransactionEntriesResponse>;
|
|
26
|
-
getTransactionEntries(
|
|
27
|
-
options?: Core.RequestOptions,
|
|
28
|
-
): Core.APIPromise<TransactionGetTransactionEntriesResponse>;
|
|
29
|
-
getTransactionEntries(
|
|
30
|
-
query: TransactionGetTransactionEntriesParams | Core.RequestOptions = {},
|
|
31
|
-
options?: Core.RequestOptions,
|
|
32
|
-
): Core.APIPromise<TransactionGetTransactionEntriesResponse> {
|
|
33
|
-
if (isRequestOptions(query)) {
|
|
34
|
-
return this.getTransactionEntries({}, query);
|
|
35
|
-
}
|
|
36
|
-
return this._client.get('/api/loyalty/transaction_entries', { query, ...options });
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface TransactionCreateTransactionResponse {
|
|
41
|
-
id: string;
|
|
42
|
-
|
|
43
|
-
createdAt: string;
|
|
44
|
-
|
|
45
|
-
description: string;
|
|
46
|
-
|
|
47
|
-
entries: Array<TransactionCreateTransactionResponse.Entry>;
|
|
48
|
-
|
|
49
|
-
updatedAt: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export namespace TransactionCreateTransactionResponse {
|
|
53
|
-
export interface Entry {
|
|
54
|
-
amount: number;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Direction of the transaction entry
|
|
58
|
-
*/
|
|
59
|
-
direction: 'credit' | 'debit';
|
|
60
|
-
|
|
61
|
-
walletAddress: string;
|
|
62
|
-
|
|
63
|
-
idempotencyKey?: string;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface TransactionGetTransactionEntriesResponse {
|
|
68
|
-
data: Array<TransactionGetTransactionEntriesResponse.Data>;
|
|
69
|
-
|
|
70
|
-
hasNextPage: boolean;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export namespace TransactionGetTransactionEntriesResponse {
|
|
74
|
-
/**
|
|
75
|
-
* Schema for a loyalty transaction entry
|
|
76
|
-
*/
|
|
77
|
-
export interface Data {
|
|
78
|
-
/**
|
|
79
|
-
* Unique identifier for the transaction entry
|
|
80
|
-
*/
|
|
81
|
-
id: string;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Amount involved in the transaction
|
|
85
|
-
*/
|
|
86
|
-
amount: number;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Timestamp when the transaction entry was created
|
|
90
|
-
*/
|
|
91
|
-
createdAt: string;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Direction of the transaction entry
|
|
95
|
-
*/
|
|
96
|
-
direction: 'credit' | 'debit';
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Unique identifier for the loyalty account
|
|
100
|
-
*/
|
|
101
|
-
loyaltyAccountId: string;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Details of the loyalty transaction
|
|
105
|
-
*/
|
|
106
|
-
loyaltyTransaction: Data.LoyaltyTransaction;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Unique identifier for the organization
|
|
110
|
-
*/
|
|
111
|
-
organizationId: string;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Type of the loyalty transaction
|
|
115
|
-
*/
|
|
116
|
-
type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Timestamp when the transaction entry was last updated
|
|
120
|
-
*/
|
|
121
|
-
updatedAt: string;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Unique identifier for the website
|
|
125
|
-
*/
|
|
126
|
-
websiteId: string;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Optional metadata for the transaction entry
|
|
130
|
-
*/
|
|
131
|
-
metadata?: Record<string, unknown>;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export namespace Data {
|
|
135
|
-
/**
|
|
136
|
-
* Details of the loyalty transaction
|
|
137
|
-
*/
|
|
138
|
-
export interface LoyaltyTransaction {
|
|
139
|
-
/**
|
|
140
|
-
* Unique identifier for the loyalty transaction
|
|
141
|
-
*/
|
|
142
|
-
id: string;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Type of the loyalty transaction
|
|
146
|
-
*/
|
|
147
|
-
type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Details of the loyalty rule associated with the transaction
|
|
151
|
-
*/
|
|
152
|
-
loyaltyRule?: LoyaltyTransaction.LoyaltyRule;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export namespace LoyaltyTransaction {
|
|
156
|
-
/**
|
|
157
|
-
* Details of the loyalty rule associated with the transaction
|
|
158
|
-
*/
|
|
159
|
-
export interface LoyaltyRule {
|
|
160
|
-
/**
|
|
161
|
-
* Unique identifier for the loyalty rule
|
|
162
|
-
*/
|
|
163
|
-
id: string;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Type of the loyalty rule
|
|
167
|
-
*/
|
|
168
|
-
type: string;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Description of the loyalty rule
|
|
172
|
-
*/
|
|
173
|
-
description?: string;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Optional metadata for the loyalty rule
|
|
177
|
-
*/
|
|
178
|
-
metadata?: Record<string, unknown>;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Name of the loyalty rule
|
|
182
|
-
*/
|
|
183
|
-
name?: string;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface TransactionCreateTransactionParams {
|
|
190
|
-
/**
|
|
191
|
-
* Description of the loyalty transaction
|
|
192
|
-
*/
|
|
193
|
-
description: string;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Array of transaction entries
|
|
197
|
-
*/
|
|
198
|
-
entries: Array<TransactionCreateTransactionParams.Entry>;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Unique identifier for the loyalty currency
|
|
202
|
-
*/
|
|
203
|
-
loyaltyCurrencyId?: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export namespace TransactionCreateTransactionParams {
|
|
207
|
-
export interface Entry {
|
|
208
|
-
/**
|
|
209
|
-
* Transaction entry amount.
|
|
210
|
-
*/
|
|
211
|
-
amount: number;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Direction of the transaction entry for this wallet address
|
|
215
|
-
*/
|
|
216
|
-
direction?: 'credit' | 'debit';
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Idempotency key for the transaction entry. Creation will fail if already exists
|
|
220
|
-
* for this wallet address.
|
|
221
|
-
*/
|
|
222
|
-
idempotencyKey?: string;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Unique identifier for the loyalty currency for the wallet. Can only use
|
|
226
|
-
* entry-level currency or transaction-level currency.
|
|
227
|
-
*/
|
|
228
|
-
loyaltyCurrencyId?: string;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* The wallet address of the user
|
|
232
|
-
*/
|
|
233
|
-
walletAddress?: string;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface TransactionGetTransactionEntriesParams {
|
|
238
|
-
/**
|
|
239
|
-
* End date to filter by (exclusive, less than)
|
|
240
|
-
*/
|
|
241
|
-
createdAtEnd?: string;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Start date to filter by (inclusive, greater than or equal to)
|
|
245
|
-
*/
|
|
246
|
-
createdAtStart?: string;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Direction of the transaction entry to filter by
|
|
250
|
-
*/
|
|
251
|
-
direction?: 'credit' | 'debit';
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Key to ensure idempotency of the request
|
|
255
|
-
*/
|
|
256
|
-
idempotencyKey?: string;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Maximum number of records to return (max 1000)
|
|
260
|
-
*/
|
|
261
|
-
limit?: number;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Unique identifier for the loyalty rule to filter by
|
|
265
|
-
*/
|
|
266
|
-
loyaltyRuleId?: string;
|
|
267
|
-
|
|
268
|
-
loyaltyRuleType?:
|
|
269
|
-
| 'Bonus'
|
|
270
|
-
| 'BoughtOn'
|
|
271
|
-
| 'BoughtWithRoyalties'
|
|
272
|
-
| 'DiscordMessages'
|
|
273
|
-
| 'Listing'
|
|
274
|
-
| 'Lodging'
|
|
275
|
-
| 'MintOn'
|
|
276
|
-
| 'PoapClaim'
|
|
277
|
-
| 'SnagSocialsConnected'
|
|
278
|
-
| 'SnapshotFullset'
|
|
279
|
-
| 'SnapshotHold'
|
|
280
|
-
| 'SoldOn'
|
|
281
|
-
| 'SoldWithRoyalties'
|
|
282
|
-
| 'TokenHold'
|
|
283
|
-
| 'TwitterBio'
|
|
284
|
-
| 'TwitterHashTagPost'
|
|
285
|
-
| 'Retweet'
|
|
286
|
-
| 'check_in'
|
|
287
|
-
| 'code_entry'
|
|
288
|
-
| 'connect_wallet'
|
|
289
|
-
| 'connected_discord'
|
|
290
|
-
| 'connected_email'
|
|
291
|
-
| 'connected_epic'
|
|
292
|
-
| 'connected_steam'
|
|
293
|
-
| 'connected_telegram'
|
|
294
|
-
| 'connected_twitter'
|
|
295
|
-
| 'create_partner_account'
|
|
296
|
-
| 'discord_member'
|
|
297
|
-
| 'drip_x_follow'
|
|
298
|
-
| 'drip_x_new_tweet'
|
|
299
|
-
| 'drip_x_text_in_bio'
|
|
300
|
-
| 'drip_x_text_in_comment'
|
|
301
|
-
| 'drip_x_text_in_name'
|
|
302
|
-
| 'drip_x_tweet'
|
|
303
|
-
| 'external_rule'
|
|
304
|
-
| 'link_click'
|
|
305
|
-
| 'manual_upload'
|
|
306
|
-
| 'profile_completed'
|
|
307
|
-
| 'referred_user'
|
|
308
|
-
| 'smart_contract_event'
|
|
309
|
-
| 'snapshot_governance'
|
|
310
|
-
| 'telegram_join'
|
|
311
|
-
| 'telegram_messages'
|
|
312
|
-
| 'text_input'
|
|
313
|
-
| 'token_hold_erc20'
|
|
314
|
-
| 'tweet_liked_by_project'
|
|
315
|
-
| 'twitter_comment'
|
|
316
|
-
| 'twitter_follow'
|
|
317
|
-
| 'twitter_followers'
|
|
318
|
-
| 'twitter_like'
|
|
319
|
-
| 'twitter_post_hashtag'
|
|
320
|
-
| 'quiz'
|
|
321
|
-
| 'poll'
|
|
322
|
-
| 'steam_wishlist'
|
|
323
|
-
| Array<
|
|
324
|
-
| 'Bonus'
|
|
325
|
-
| 'BoughtOn'
|
|
326
|
-
| 'BoughtWithRoyalties'
|
|
327
|
-
| 'DiscordMessages'
|
|
328
|
-
| 'Listing'
|
|
329
|
-
| 'Lodging'
|
|
330
|
-
| 'MintOn'
|
|
331
|
-
| 'PoapClaim'
|
|
332
|
-
| 'SnagSocialsConnected'
|
|
333
|
-
| 'SnapshotFullset'
|
|
334
|
-
| 'SnapshotHold'
|
|
335
|
-
| 'SoldOn'
|
|
336
|
-
| 'SoldWithRoyalties'
|
|
337
|
-
| 'TokenHold'
|
|
338
|
-
| 'TwitterBio'
|
|
339
|
-
| 'TwitterHashTagPost'
|
|
340
|
-
| 'Retweet'
|
|
341
|
-
| 'check_in'
|
|
342
|
-
| 'code_entry'
|
|
343
|
-
| 'connect_wallet'
|
|
344
|
-
| 'connected_discord'
|
|
345
|
-
| 'connected_email'
|
|
346
|
-
| 'connected_epic'
|
|
347
|
-
| 'connected_steam'
|
|
348
|
-
| 'connected_telegram'
|
|
349
|
-
| 'connected_twitter'
|
|
350
|
-
| 'create_partner_account'
|
|
351
|
-
| 'discord_member'
|
|
352
|
-
| 'drip_x_follow'
|
|
353
|
-
| 'drip_x_new_tweet'
|
|
354
|
-
| 'drip_x_text_in_bio'
|
|
355
|
-
| 'drip_x_text_in_comment'
|
|
356
|
-
| 'drip_x_text_in_name'
|
|
357
|
-
| 'drip_x_tweet'
|
|
358
|
-
| 'external_rule'
|
|
359
|
-
| 'link_click'
|
|
360
|
-
| 'manual_upload'
|
|
361
|
-
| 'profile_completed'
|
|
362
|
-
| 'referred_user'
|
|
363
|
-
| 'smart_contract_event'
|
|
364
|
-
| 'snapshot_governance'
|
|
365
|
-
| 'telegram_join'
|
|
366
|
-
| 'telegram_messages'
|
|
367
|
-
| 'text_input'
|
|
368
|
-
| 'token_hold_erc20'
|
|
369
|
-
| 'tweet_liked_by_project'
|
|
370
|
-
| 'twitter_comment'
|
|
371
|
-
| 'twitter_follow'
|
|
372
|
-
| 'twitter_followers'
|
|
373
|
-
| 'twitter_like'
|
|
374
|
-
| 'twitter_post_hashtag'
|
|
375
|
-
| 'quiz'
|
|
376
|
-
| 'poll'
|
|
377
|
-
| 'steam_wishlist'
|
|
378
|
-
>;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Unique identifier for the loyalty transaction to filter by
|
|
382
|
-
*/
|
|
383
|
-
loyaltyTransactionId?: string;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Field to order the results by
|
|
387
|
-
*/
|
|
388
|
-
orderBy?: 'createdAt' | 'updatedAt' | 'loyaltyAccountLockVersion';
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Unique identifier for the organization to filter by
|
|
392
|
-
*/
|
|
393
|
-
organizationId?: string;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* Pagination cursor to start after a specific resource ID
|
|
397
|
-
*/
|
|
398
|
-
startingAfter?: string;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* Type of the loyalty transaction to filter by
|
|
402
|
-
*/
|
|
403
|
-
type?: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* When passed in return the list of fulfilled entries for loyalty rules. If a
|
|
407
|
-
* loyalty rule has a fulfilled entry this means the user cannot currently complete
|
|
408
|
-
* the rule. Must be passed in with userId or walletAddress.
|
|
409
|
-
*/
|
|
410
|
-
userCompletedLoyaltyRuleId?: string | Array<string>;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* External identifier for the user group controlled by you
|
|
414
|
-
*/
|
|
415
|
-
userGroupExternalIdentifier?: string;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* Unique identifier for the user group
|
|
419
|
-
*/
|
|
420
|
-
userGroupId?: string;
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* User ID or array of User IDs to filter by
|
|
424
|
-
*/
|
|
425
|
-
userId?: string | Array<string>;
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Wallet address or array of wallet addresses to filter by
|
|
429
|
-
*/
|
|
430
|
-
walletAddress?: string | Array<string>;
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Identifier for the wallet group to filter by
|
|
434
|
-
*/
|
|
435
|
-
walletGroupIdentifier?: string;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Unique identifier for the website to filter by
|
|
439
|
-
*/
|
|
440
|
-
websiteId?: string;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
export declare namespace Transactions {
|
|
444
|
-
export {
|
|
445
|
-
type TransactionCreateTransactionResponse as TransactionCreateTransactionResponse,
|
|
446
|
-
type TransactionGetTransactionEntriesResponse as TransactionGetTransactionEntriesResponse,
|
|
447
|
-
type TransactionCreateTransactionParams as TransactionCreateTransactionParams,
|
|
448
|
-
type TransactionGetTransactionEntriesParams as TransactionGetTransactionEntriesParams,
|
|
449
|
-
};
|
|
450
|
-
}
|
|
3
|
+
export * from './transactions/index';
|
|
@@ -12,9 +12,13 @@ export {
|
|
|
12
12
|
type UserListResponse,
|
|
13
13
|
type UserConnectResponse,
|
|
14
14
|
type UserCountResponse,
|
|
15
|
+
type UserCreateDeviceResponse,
|
|
15
16
|
type UserDisconnectResponse,
|
|
17
|
+
type UserVerifyResponse,
|
|
16
18
|
type UserListParams,
|
|
17
19
|
type UserConnectParams,
|
|
18
20
|
type UserCountParams,
|
|
21
|
+
type UserCreateDeviceParams,
|
|
19
22
|
type UserDisconnectParams,
|
|
23
|
+
type UserVerifyParams,
|
|
20
24
|
} from './users';
|
|
@@ -44,12 +44,26 @@ export class Users extends APIResource {
|
|
|
44
44
|
return this._client.get('/api/users/count', { query, ...options });
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* This endpoint is used to create user devices for fraud tracking
|
|
49
|
+
*/
|
|
50
|
+
createDevice(
|
|
51
|
+
body: UserCreateDeviceParams,
|
|
52
|
+
options?: Core.RequestOptions,
|
|
53
|
+
): Core.APIPromise<UserCreateDeviceResponse> {
|
|
54
|
+
return this._client.post('/api/users/devices', { body, ...options });
|
|
55
|
+
}
|
|
56
|
+
|
|
47
57
|
/**
|
|
48
58
|
* This endpoint allows you to disconnect a user from another user
|
|
49
59
|
*/
|
|
50
60
|
disconnect(body: UserDisconnectParams, options?: Core.RequestOptions): Core.APIPromise<unknown> {
|
|
51
61
|
return this._client.post('/api/users/disconnect', { body, ...options });
|
|
52
62
|
}
|
|
63
|
+
|
|
64
|
+
verify(body: UserVerifyParams, options?: Core.RequestOptions): Core.APIPromise<UserVerifyResponse> {
|
|
65
|
+
return this._client.post('/api/users/verify', { body, ...options });
|
|
66
|
+
}
|
|
53
67
|
}
|
|
54
68
|
|
|
55
69
|
export interface UserListResponse {
|
|
@@ -218,8 +232,52 @@ export interface UserCountResponse {
|
|
|
218
232
|
totalCount: number;
|
|
219
233
|
}
|
|
220
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Schema for a user device
|
|
237
|
+
*/
|
|
238
|
+
export interface UserCreateDeviceResponse {
|
|
239
|
+
/**
|
|
240
|
+
* Unique identifier for the user device
|
|
241
|
+
*/
|
|
242
|
+
id: string;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Timestamp when the wallet was created
|
|
246
|
+
*/
|
|
247
|
+
createdAt: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* IP address of the user device
|
|
251
|
+
*/
|
|
252
|
+
ipAddress: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Unique identifier for the organization
|
|
256
|
+
*/
|
|
257
|
+
organizationId: string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Source of the user device
|
|
261
|
+
*/
|
|
262
|
+
source: string;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Unique identifier for the website
|
|
266
|
+
*/
|
|
267
|
+
websiteId: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Device identifier of the user device
|
|
271
|
+
*/
|
|
272
|
+
deviceIdentifier?: string;
|
|
273
|
+
}
|
|
274
|
+
|
|
221
275
|
export type UserDisconnectResponse = unknown;
|
|
222
276
|
|
|
277
|
+
export interface UserVerifyResponse {
|
|
278
|
+
message: string;
|
|
279
|
+
}
|
|
280
|
+
|
|
223
281
|
export interface UserListParams {
|
|
224
282
|
/**
|
|
225
283
|
* The address of the user
|
|
@@ -415,6 +473,22 @@ export interface UserCountParams {
|
|
|
415
473
|
websiteId: string;
|
|
416
474
|
}
|
|
417
475
|
|
|
476
|
+
export interface UserCreateDeviceParams {
|
|
477
|
+
/**
|
|
478
|
+
* IP address of the user device
|
|
479
|
+
*/
|
|
480
|
+
ipAddress: string;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Device identifier of the user device
|
|
484
|
+
*/
|
|
485
|
+
deviceIdentifier?: string;
|
|
486
|
+
|
|
487
|
+
userId?: string;
|
|
488
|
+
|
|
489
|
+
walletAddress?: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
418
492
|
export interface UserDisconnectParams {
|
|
419
493
|
organizationId: string;
|
|
420
494
|
|
|
@@ -423,6 +497,16 @@ export interface UserDisconnectParams {
|
|
|
423
497
|
websiteId: string;
|
|
424
498
|
}
|
|
425
499
|
|
|
500
|
+
export interface UserVerifyParams {
|
|
501
|
+
accountLinkData: string;
|
|
502
|
+
|
|
503
|
+
organizationId?: string;
|
|
504
|
+
|
|
505
|
+
userId?: string;
|
|
506
|
+
|
|
507
|
+
websiteId?: string;
|
|
508
|
+
}
|
|
509
|
+
|
|
426
510
|
Users.Metadatas = Metadatas;
|
|
427
511
|
|
|
428
512
|
export declare namespace Users {
|
|
@@ -430,11 +514,15 @@ export declare namespace Users {
|
|
|
430
514
|
type UserListResponse as UserListResponse,
|
|
431
515
|
type UserConnectResponse as UserConnectResponse,
|
|
432
516
|
type UserCountResponse as UserCountResponse,
|
|
517
|
+
type UserCreateDeviceResponse as UserCreateDeviceResponse,
|
|
433
518
|
type UserDisconnectResponse as UserDisconnectResponse,
|
|
519
|
+
type UserVerifyResponse as UserVerifyResponse,
|
|
434
520
|
type UserListParams as UserListParams,
|
|
435
521
|
type UserConnectParams as UserConnectParams,
|
|
436
522
|
type UserCountParams as UserCountParams,
|
|
523
|
+
type UserCreateDeviceParams as UserCreateDeviceParams,
|
|
437
524
|
type UserDisconnectParams as UserDisconnectParams,
|
|
525
|
+
type UserVerifyParams as UserVerifyParams,
|
|
438
526
|
};
|
|
439
527
|
|
|
440
528
|
export {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.46'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.46";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.46'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.46'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|