@snagsolutions/sdk 0.1.0-alpha.16 → 0.1.0-alpha.160
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 +1328 -0
- package/README.md +13 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +24 -17
- package/core.js.map +1 -1
- package/core.mjs +24 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -6
- package/index.d.ts +9 -6
- package/index.d.ts.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/index.mjs +9 -5
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +16 -2
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +8 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +8 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +285 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +76 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +49 -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 +76 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +35 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +31 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +92 -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 +69 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +42 -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/auth.d.ts +11 -3
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +3 -3
- 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 +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +81 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +58 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +13 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +13 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +472 -22
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +19 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +4 -3
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +5 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +2 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +10 -6
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +6 -2
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +7 -3
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +39 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +23 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +23 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +39 -0
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +9 -0
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +9 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +37 -2
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +31 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +31 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2610 -4
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +14 -0
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +14 -0
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +269 -58
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +36 -0
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +36 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +1848 -265
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- 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 +61 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +23 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +19 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +292 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +61 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +34 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -247
- 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/minting.d.ts +5 -5
- package/resources/minting.d.ts.map +1 -1
- package/resources/referral/referral.d.ts +11 -3
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +11 -5
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +11 -5
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +28 -1
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +14 -0
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +14 -0
- package/resources/referral/users.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/metadatas.d.ts +27 -0
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +144 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +53 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +53 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/index.d.ts +2 -2
- package/resources/websites/index.d.ts.map +1 -1
- package/resources/websites/index.js.map +1 -1
- package/resources/websites/index.mjs +2 -2
- package/resources/websites/index.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +0 -69
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +0 -16
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +0 -16
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +23 -0
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +23 -0
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +23 -0
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +8 -98
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +0 -6
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +1 -7
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +39 -16
- package/src/index.ts +30 -11
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -2
- package/src/resources/auctions/auctions.ts +432 -0
- package/src/resources/auctions/index.ts +16 -0
- package/src/resources/auctions/website-user-attributes/index.ts +10 -0
- package/src/resources/auctions/website-user-attributes/values.ts +97 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +137 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +14 -4
- package/src/resources/index.ts +12 -8
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +63 -18
- package/src/resources/loyalty/badges.ts +567 -24
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +12 -1
- package/src/resources/loyalty/loyalty.ts +33 -3
- package/src/resources/loyalty/multipliers.ts +43 -4
- package/src/resources/loyalty/questions-responses.ts +45 -0
- package/src/resources/loyalty/questions.ts +38 -2
- package/src/resources/loyalty/rule-edits.ts +3669 -51
- package/src/resources/loyalty/rule-groups.ts +444 -65
- package/src/resources/loyalty/rules.ts +2769 -326
- package/src/resources/loyalty/transactions/index.ts +10 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +87 -0
- package/src/resources/loyalty/transactions/transactions.ts +520 -0
- package/src/resources/loyalty/transactions.ts +1 -330
- package/src/resources/minting.ts +19 -5
- package/src/resources/referral/referral.ts +13 -11
- package/src/resources/referral/users.ts +33 -2
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +52 -0
- package/src/resources/users/users.ts +192 -5
- package/src/resources/websites/index.ts +2 -13
- package/src/resources/websites/website-collections.ts +1 -145
- package/src/resources/websites/website-user-roles.ts +23 -0
- package/src/resources/websites/websites.ts +8 -134
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -6,21 +6,74 @@ export declare class Users extends APIResource {
|
|
|
6
6
|
metadatas: MetadatasAPI.Metadatas;
|
|
7
7
|
/**
|
|
8
8
|
* This endpoint allows you to get users
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const users = await client.users.list();
|
|
13
|
+
* ```
|
|
9
14
|
*/
|
|
10
15
|
list(query?: UserListParams, options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
11
16
|
list(options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
12
17
|
/**
|
|
13
|
-
* This endpoint allows you to
|
|
18
|
+
* This endpoint allows you to connect a user to a user group
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response = await client.users.connect({
|
|
23
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
24
|
+
* walletAddress:
|
|
25
|
+
* '0x1234567890abcdef1234567890abcdef12345678',
|
|
26
|
+
* walletType: 'evm',
|
|
27
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
14
30
|
*/
|
|
15
31
|
connect(body: UserConnectParams, options?: Core.RequestOptions): Core.APIPromise<UserConnectResponse>;
|
|
16
32
|
/**
|
|
17
33
|
* This endpoint returns the total user count
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.users.count({
|
|
38
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
39
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
18
42
|
*/
|
|
19
43
|
count(query: UserCountParams, options?: Core.RequestOptions): Core.APIPromise<UserCountResponse>;
|
|
20
44
|
/**
|
|
21
|
-
* This endpoint
|
|
45
|
+
* This endpoint is used to create user devices for fraud tracking
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response = await client.users.createDevice({
|
|
50
|
+
* ipAddress: '123.456.789.012',
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
22
53
|
*/
|
|
23
|
-
|
|
54
|
+
createDevice(body: UserCreateDeviceParams, options?: Core.RequestOptions): Core.APIPromise<UserCreateDeviceResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* This endpoint allows you to disconnect a user from another user
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.users.disconnect({
|
|
61
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
62
|
+
* userId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
63
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
disconnect(body: UserDisconnectParams, options?: Core.RequestOptions): Core.APIPromise<UserDisconnectResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const response = await client.users.verify({
|
|
72
|
+
* accountLinkData: 'accountLinkData',
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
verify(body: UserVerifyParams, options?: Core.RequestOptions): Core.APIPromise<UserVerifyResponse>;
|
|
24
77
|
}
|
|
25
78
|
export interface UserListResponse {
|
|
26
79
|
/**
|
|
@@ -58,6 +111,7 @@ export declare namespace UserListResponse {
|
|
|
58
111
|
stardustProfileId?: string | null;
|
|
59
112
|
temporaryLoyaltyUser?: boolean | null;
|
|
60
113
|
userMetadata?: Array<Data.UserMetadata> | null;
|
|
114
|
+
websiteUserAttributes?: Array<Data.WebsiteUserAttribute> | null;
|
|
61
115
|
}
|
|
62
116
|
namespace Data {
|
|
63
117
|
/**
|
|
@@ -80,6 +134,7 @@ export declare namespace UserListResponse {
|
|
|
80
134
|
}
|
|
81
135
|
interface UserMetadata {
|
|
82
136
|
bio?: string | null;
|
|
137
|
+
createdAt?: string | null;
|
|
83
138
|
discordUser?: string | null;
|
|
84
139
|
discordVerifiedAt?: string | null;
|
|
85
140
|
displayName?: string | null;
|
|
@@ -91,6 +146,9 @@ export declare namespace UserListResponse {
|
|
|
91
146
|
emailVerifiedAt?: string | null;
|
|
92
147
|
epicAccountIdentifier?: string | null;
|
|
93
148
|
epicUsername?: string | null;
|
|
149
|
+
externalLoyaltyScore?: string | null;
|
|
150
|
+
googleUser?: string | null;
|
|
151
|
+
googleUserId?: string | null;
|
|
94
152
|
instagramUser?: string | null;
|
|
95
153
|
instagramVerifiedAt?: string | null;
|
|
96
154
|
isBlocked?: boolean | null;
|
|
@@ -103,11 +161,28 @@ export declare namespace UserListResponse {
|
|
|
103
161
|
telegramUserId?: string | null;
|
|
104
162
|
telegramUsername?: string | null;
|
|
105
163
|
telegramVerifiedAt?: string | null;
|
|
164
|
+
tiktokUser?: string | null;
|
|
165
|
+
tiktokUserId?: string | null;
|
|
106
166
|
twitterUser?: string | null;
|
|
107
167
|
twitterUserFollowersCount?: number | null;
|
|
108
168
|
twitterVerifiedAt?: string | null;
|
|
169
|
+
updatedAt?: string | null;
|
|
109
170
|
userGroupId?: string | null;
|
|
110
171
|
walletGroupIdentifier?: string | null;
|
|
172
|
+
YTChannelId?: string | null;
|
|
173
|
+
}
|
|
174
|
+
interface WebsiteUserAttribute {
|
|
175
|
+
id: string;
|
|
176
|
+
label: string;
|
|
177
|
+
websiteUserAttributeValues: Array<WebsiteUserAttribute.WebsiteUserAttributeValue>;
|
|
178
|
+
}
|
|
179
|
+
namespace WebsiteUserAttribute {
|
|
180
|
+
interface WebsiteUserAttributeValue {
|
|
181
|
+
id: string;
|
|
182
|
+
userId: string;
|
|
183
|
+
value: string;
|
|
184
|
+
websiteUserAttributeId: string;
|
|
185
|
+
}
|
|
111
186
|
}
|
|
112
187
|
}
|
|
113
188
|
}
|
|
@@ -141,7 +216,48 @@ export interface UserCountResponse {
|
|
|
141
216
|
*/
|
|
142
217
|
totalCount: number;
|
|
143
218
|
}
|
|
144
|
-
|
|
219
|
+
/**
|
|
220
|
+
* Schema for a user device
|
|
221
|
+
*/
|
|
222
|
+
export interface UserCreateDeviceResponse {
|
|
223
|
+
/**
|
|
224
|
+
* Unique identifier for the user device
|
|
225
|
+
*/
|
|
226
|
+
id: string;
|
|
227
|
+
/**
|
|
228
|
+
* Timestamp when the wallet was created
|
|
229
|
+
*/
|
|
230
|
+
createdAt: string;
|
|
231
|
+
/**
|
|
232
|
+
* IP address of the user device
|
|
233
|
+
*/
|
|
234
|
+
ipAddress: string;
|
|
235
|
+
/**
|
|
236
|
+
* Unique identifier for the organization
|
|
237
|
+
*/
|
|
238
|
+
organizationId: string;
|
|
239
|
+
/**
|
|
240
|
+
* Source of the user device
|
|
241
|
+
*/
|
|
242
|
+
source: string;
|
|
243
|
+
/**
|
|
244
|
+
* Unique identifier for the website
|
|
245
|
+
*/
|
|
246
|
+
websiteId: string;
|
|
247
|
+
/**
|
|
248
|
+
* Device identifier of the user device
|
|
249
|
+
*/
|
|
250
|
+
deviceIdentifier?: string;
|
|
251
|
+
}
|
|
252
|
+
export interface UserDisconnectResponse {
|
|
253
|
+
/**
|
|
254
|
+
* The message of the disconnect user response
|
|
255
|
+
*/
|
|
256
|
+
message: 'Success';
|
|
257
|
+
}
|
|
258
|
+
export interface UserVerifyResponse {
|
|
259
|
+
message: string;
|
|
260
|
+
}
|
|
145
261
|
export interface UserListParams {
|
|
146
262
|
/**
|
|
147
263
|
* The address of the user
|
|
@@ -191,6 +307,10 @@ export interface UserListParams {
|
|
|
191
307
|
* Telegram username of the user
|
|
192
308
|
*/
|
|
193
309
|
telegramUsername?: string;
|
|
310
|
+
/**
|
|
311
|
+
* TikTok username of the user
|
|
312
|
+
*/
|
|
313
|
+
tiktokUser?: string;
|
|
194
314
|
/**
|
|
195
315
|
* Twitter username of the user
|
|
196
316
|
*/
|
|
@@ -225,7 +345,7 @@ export interface UserConnectParams {
|
|
|
225
345
|
* The wallet address of the user
|
|
226
346
|
*/
|
|
227
347
|
walletAddress: string;
|
|
228
|
-
walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
|
|
348
|
+
walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | 'agw';
|
|
229
349
|
/**
|
|
230
350
|
* The ID of the website
|
|
231
351
|
*/
|
|
@@ -292,13 +412,31 @@ export interface UserCountParams {
|
|
|
292
412
|
*/
|
|
293
413
|
websiteId: string;
|
|
294
414
|
}
|
|
415
|
+
export interface UserCreateDeviceParams {
|
|
416
|
+
/**
|
|
417
|
+
* IP address of the user device
|
|
418
|
+
*/
|
|
419
|
+
ipAddress: string;
|
|
420
|
+
/**
|
|
421
|
+
* Device identifier of the user device
|
|
422
|
+
*/
|
|
423
|
+
deviceIdentifier?: string;
|
|
424
|
+
userId?: string;
|
|
425
|
+
walletAddress?: string;
|
|
426
|
+
}
|
|
295
427
|
export interface UserDisconnectParams {
|
|
296
428
|
organizationId: string;
|
|
297
429
|
userId: string;
|
|
298
430
|
websiteId: string;
|
|
299
431
|
}
|
|
432
|
+
export interface UserVerifyParams {
|
|
433
|
+
accountLinkData: string;
|
|
434
|
+
organizationId?: string;
|
|
435
|
+
userId?: string;
|
|
436
|
+
websiteId?: string;
|
|
437
|
+
}
|
|
300
438
|
export declare namespace Users {
|
|
301
|
-
export { type UserListResponse as UserListResponse, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserListParams as UserListParams, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserDisconnectParams as UserDisconnectParams, };
|
|
439
|
+
export { type UserListResponse as UserListResponse, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserCreateDeviceResponse as UserCreateDeviceResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserVerifyResponse as UserVerifyResponse, type UserListParams as UserListParams, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserCreateDeviceParams as UserCreateDeviceParams, type UserDisconnectParams as UserDisconnectParams, type UserVerifyParams as UserVerifyParams, };
|
|
302
440
|
export { Metadatas as Metadatas, type MetadataCreateResponse as MetadataCreateResponse, type MetadataListResponse as MetadataListResponse, type MetadataCreateParams as MetadataCreateParams, type MetadataListParams as MetadataListParams, };
|
|
303
441
|
}
|
|
304
442
|
//# sourceMappingURL=users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV,MAAM,aAAa,CAAC;AAErB,qBAAa,KAAM,SAAQ,WAAW;IACpC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAA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AAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/users/users.js
CHANGED
|
@@ -41,23 +41,75 @@ class Users extends resource_1.APIResource {
|
|
|
41
41
|
return this._client.get('/api/users', { query, ...options });
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* This endpoint allows you to
|
|
44
|
+
* This endpoint allows you to connect a user to a user group
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const response = await client.users.connect({
|
|
49
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
50
|
+
* walletAddress:
|
|
51
|
+
* '0x1234567890abcdef1234567890abcdef12345678',
|
|
52
|
+
* walletType: 'evm',
|
|
53
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
45
56
|
*/
|
|
46
57
|
connect(body, options) {
|
|
47
58
|
return this._client.post('/api/users/connect', { body, ...options });
|
|
48
59
|
}
|
|
49
60
|
/**
|
|
50
61
|
* This endpoint returns the total user count
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const response = await client.users.count({
|
|
66
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
67
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
51
70
|
*/
|
|
52
71
|
count(query, options) {
|
|
53
72
|
return this._client.get('/api/users/count', { query, ...options });
|
|
54
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* This endpoint is used to create user devices for fraud tracking
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const response = await client.users.createDevice({
|
|
80
|
+
* ipAddress: '123.456.789.012',
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
createDevice(body, options) {
|
|
85
|
+
return this._client.post('/api/users/devices', { body, ...options });
|
|
86
|
+
}
|
|
55
87
|
/**
|
|
56
88
|
* This endpoint allows you to disconnect a user from another user
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const response = await client.users.disconnect({
|
|
93
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
94
|
+
* userId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
95
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
57
98
|
*/
|
|
58
99
|
disconnect(body, options) {
|
|
59
100
|
return this._client.post('/api/users/disconnect', { body, ...options });
|
|
60
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const response = await client.users.verify({
|
|
106
|
+
* accountLinkData: 'accountLinkData',
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
verify(body, options) {
|
|
111
|
+
return this._client.post('/api/users/verify', { body, ...options });
|
|
112
|
+
}
|
|
61
113
|
}
|
|
62
114
|
exports.Users = Users;
|
|
63
115
|
Users.Metadatas = metadatas_1.Metadatas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;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5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,UAAU,CACR,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAvGD,sBAuGC;AA2eD,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -15,23 +15,75 @@ export class Users extends APIResource {
|
|
|
15
15
|
return this._client.get('/api/users', { query, ...options });
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* This endpoint allows you to
|
|
18
|
+
* This endpoint allows you to connect a user to a user group
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response = await client.users.connect({
|
|
23
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
24
|
+
* walletAddress:
|
|
25
|
+
* '0x1234567890abcdef1234567890abcdef12345678',
|
|
26
|
+
* walletType: 'evm',
|
|
27
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
19
30
|
*/
|
|
20
31
|
connect(body, options) {
|
|
21
32
|
return this._client.post('/api/users/connect', { body, ...options });
|
|
22
33
|
}
|
|
23
34
|
/**
|
|
24
35
|
* This endpoint returns the total user count
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const response = await client.users.count({
|
|
40
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
41
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
25
44
|
*/
|
|
26
45
|
count(query, options) {
|
|
27
46
|
return this._client.get('/api/users/count', { query, ...options });
|
|
28
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* This endpoint is used to create user devices for fraud tracking
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response = await client.users.createDevice({
|
|
54
|
+
* ipAddress: '123.456.789.012',
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
createDevice(body, options) {
|
|
59
|
+
return this._client.post('/api/users/devices', { body, ...options });
|
|
60
|
+
}
|
|
29
61
|
/**
|
|
30
62
|
* This endpoint allows you to disconnect a user from another user
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const response = await client.users.disconnect({
|
|
67
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
68
|
+
* userId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
69
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
31
72
|
*/
|
|
32
73
|
disconnect(body, options) {
|
|
33
74
|
return this._client.post('/api/users/disconnect', { body, ...options });
|
|
34
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const response = await client.users.verify({
|
|
80
|
+
* accountLinkData: 'accountLinkData',
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
verify(body, options) {
|
|
85
|
+
return this._client.post('/api/users/verify', { body, ...options });
|
|
86
|
+
}
|
|
35
87
|
}
|
|
36
88
|
Users.Metadatas = Metadatas;
|
|
37
89
|
//# sourceMappingURL=users.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;AAED,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;AAED,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsG/E,CAAC;IA1FC,IAAI,CACF,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,IAAuB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,KAAsB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,YAAY,CACV,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,UAAU,CACR,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AA2eD,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { WebsiteCollections
|
|
1
|
+
export { WebsiteCollections } from "./website-collections.js";
|
|
2
2
|
export { WebsiteUserRoles, type WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams, } from "./website-user-roles.js";
|
|
3
|
-
export { Websites, type
|
|
3
|
+
export { Websites, type WebsiteListResponse, type WebsiteListParams } from "./websites.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,GACjC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,8DAM8B;AAL5B,sHAAA,gBAAgB,OAAA;AAMlB,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { WebsiteCollections
|
|
2
|
+
export { WebsiteCollections } from "./website-collections.mjs";
|
|
3
3
|
export { WebsiteUserRoles, } from "./website-user-roles.mjs";
|
|
4
|
-
export { Websites
|
|
4
|
+
export { Websites } from "./websites.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,kBAAkB,EAAE;OACtB,EACL,gBAAgB,GAKjB;OACM,EAAE,QAAQ,EAAoD"}
|
|
@@ -1,73 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
2
|
export declare class WebsiteCollections extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new collection under a website
|
|
6
|
-
*/
|
|
7
|
-
create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves collections for a specific website.
|
|
10
|
-
*/
|
|
11
|
-
list(query: WebsiteCollectionListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCollectionListResponse>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Response schema for fetching website collections
|
|
15
|
-
*/
|
|
16
|
-
export interface WebsiteCollectionListResponse {
|
|
17
|
-
/**
|
|
18
|
-
* Array of websites
|
|
19
|
-
*/
|
|
20
|
-
data: Array<WebsiteCollectionListResponse.Data>;
|
|
21
|
-
/**
|
|
22
|
-
* Indicates if more pages are available
|
|
23
|
-
*/
|
|
24
|
-
hasNextPage: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace WebsiteCollectionListResponse {
|
|
27
|
-
interface Data {
|
|
28
|
-
/**
|
|
29
|
-
* Website Collection ID
|
|
30
|
-
*/
|
|
31
|
-
id: string;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export interface WebsiteCollectionCreateParams {
|
|
35
|
-
collectionAddress: string;
|
|
36
|
-
name: string;
|
|
37
|
-
network: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
38
|
-
organizationId: string;
|
|
39
|
-
sortId: number;
|
|
40
|
-
websiteId: string;
|
|
41
|
-
discordUrl?: string;
|
|
42
|
-
homeUrl?: string;
|
|
43
|
-
imageUrl?: string | null;
|
|
44
|
-
instagramUsername?: string;
|
|
45
|
-
royaltyFee?: number | null;
|
|
46
|
-
royaltyFeeAddress?: string | null;
|
|
47
|
-
stakingAddress?: string;
|
|
48
|
-
telegramUrl?: string;
|
|
49
|
-
themeId?: string;
|
|
50
|
-
twitterUsername?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface WebsiteCollectionListParams {
|
|
53
|
-
/**
|
|
54
|
-
* Filter by website ID
|
|
55
|
-
*/
|
|
56
|
-
websiteId: string;
|
|
57
|
-
/**
|
|
58
|
-
* Number of items to return
|
|
59
|
-
*/
|
|
60
|
-
limit?: number;
|
|
61
|
-
/**
|
|
62
|
-
* Filter by organization ID
|
|
63
|
-
*/
|
|
64
|
-
organizationId?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Pagination cursor, start after this ID
|
|
67
|
-
*/
|
|
68
|
-
startingAfter?: string;
|
|
69
|
-
}
|
|
70
|
-
export declare namespace WebsiteCollections {
|
|
71
|
-
export { type WebsiteCollectionListResponse as WebsiteCollectionListResponse, type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams, type WebsiteCollectionListParams as WebsiteCollectionListParams, };
|
|
72
3
|
}
|
|
73
4
|
//# sourceMappingURL=website-collections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -4,22 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.WebsiteCollections = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
6
|
class WebsiteCollections extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new collection under a website
|
|
9
|
-
*/
|
|
10
|
-
create(body, options) {
|
|
11
|
-
return this._client.post('/api/website_collections', {
|
|
12
|
-
body,
|
|
13
|
-
...options,
|
|
14
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves collections for a specific website.
|
|
19
|
-
*/
|
|
20
|
-
list(query, options) {
|
|
21
|
-
return this._client.get('/api/website_collections', { query, ...options });
|
|
22
|
-
}
|
|
23
7
|
}
|
|
24
8
|
exports.WebsiteCollections = WebsiteCollections;
|
|
25
9
|
//# sourceMappingURL=website-collections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,MAAa,kBAAmB,SAAQ,sBAAW;CAAG;AAAtD,gDAAsD"}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
export class WebsiteCollections extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new collection under a website
|
|
6
|
-
*/
|
|
7
|
-
create(body, options) {
|
|
8
|
-
return this._client.post('/api/website_collections', {
|
|
9
|
-
body,
|
|
10
|
-
...options,
|
|
11
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Retrieves collections for a specific website.
|
|
16
|
-
*/
|
|
17
|
-
list(query, options) {
|
|
18
|
-
return this._client.get('/api/website_collections', { query, ...options });
|
|
19
|
-
}
|
|
20
4
|
}
|
|
21
5
|
//# sourceMappingURL=website-collections.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -4,10 +4,33 @@ export declare class WebsiteUserRoles extends APIResource {
|
|
|
4
4
|
/**
|
|
5
5
|
* Retrieves roles of users for a specific website. If userId is provided,
|
|
6
6
|
* retrieves the role of that specific user for the website.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const websiteUserRoles =
|
|
11
|
+
* await client.websites.websiteUserRoles.list({
|
|
12
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
16
|
list(query: WebsiteUserRoleListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleListResponse>;
|
|
9
17
|
/**
|
|
10
18
|
* Assign roles to users for a specific website
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response =
|
|
23
|
+
* await client.websites.websiteUserRoles.assign({
|
|
24
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
25
|
+
* websiteUserRoles: [
|
|
26
|
+
* {
|
|
27
|
+
* roleType: 'WEBSITE_SUPER_ADMIN',
|
|
28
|
+
* walletAddress:
|
|
29
|
+
* '0x1234567890abcdef1234567890abcdef12345678',
|
|
30
|
+
* },
|
|
31
|
+
* ],
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
11
34
|
*/
|
|
12
35
|
assign(body: WebsiteUserRoleAssignParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleAssignResponse>;
|
|
13
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-user-roles.d.ts","sourceRoot":"","sources":["../../src/resources/websites/website-user-roles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"website-user-roles.d.ts","sourceRoot":"","sources":["../../src/resources/websites/website-user-roles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAI/C;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAGlD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAA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