@snagsolutions/sdk 0.1.0-alpha.15 → 0.1.0-alpha.17
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 +31 -48
- package/README.md +12 -14
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts.map +1 -1
- package/core.js +2 -0
- package/core.js.map +1 -1
- package/core.mjs +3 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +27 -6
- package/index.d.ts +27 -6
- package/index.d.ts.map +1 -1
- package/index.js +29 -8
- package/index.js.map +1 -1
- package/index.mjs +29 -8
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets.d.ts +50 -0
- package/resources/assets.d.ts.map +1 -0
- package/resources/assets.js +17 -0
- package/resources/assets.js.map +1 -0
- package/resources/assets.mjs +13 -0
- package/resources/assets.mjs.map +1 -0
- package/resources/auctions.d.ts +134 -0
- package/resources/auctions.d.ts.map +1 -0
- package/resources/auctions.js +26 -0
- package/resources/auctions.js.map +1 -0
- package/resources/auctions.mjs +22 -0
- package/resources/auctions.mjs.map +1 -0
- package/resources/auth.d.ts +40 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +16 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +12 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/index.d.ts +8 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +17 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +8 -1
- package/resources/index.mjs.map +1 -1
- package/resources/{api/loyalty → loyalty}/accounts.d.ts +9 -10
- package/resources/loyalty/accounts.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/accounts.js +4 -4
- package/resources/loyalty/accounts.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/accounts.mjs +4 -4
- package/resources/loyalty/accounts.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/badges.d.ts +2 -2
- package/resources/loyalty/badges.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/badges.js +2 -2
- package/resources/loyalty/badges.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/badges.mjs +2 -2
- package/resources/loyalty/badges.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/currencies.d.ts +8 -2
- package/resources/loyalty/currencies.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/currencies.js +1 -1
- package/resources/loyalty/currencies.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/currencies.mjs +1 -1
- package/resources/loyalty/currencies.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/index.d.ts +5 -2
- package/resources/loyalty/index.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/index.js +7 -1
- package/resources/loyalty/index.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/index.mjs +4 -1
- package/resources/loyalty/index.mjs.map +1 -0
- package/resources/loyalty/loyalty.d.ts +50 -0
- package/resources/loyalty/loyalty.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/loyalty.js +13 -20
- package/resources/loyalty/loyalty.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/loyalty.mjs +13 -20
- package/resources/loyalty/loyalty.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/multipliers.d.ts +26 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/multipliers.js +2 -2
- package/resources/loyalty/multipliers.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/multipliers.mjs +2 -2
- package/resources/loyalty/multipliers.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions-responses.d.ts +2 -2
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions-responses.js +2 -2
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions-responses.mjs +2 -2
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions.d.ts +2 -2
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions.js +1 -1
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions.mjs +1 -1
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-chains.d.ts +4 -0
- package/resources/loyalty/rule-chains.d.ts.map +1 -0
- package/resources/loyalty/rule-chains.js +9 -0
- package/resources/loyalty/rule-chains.js.map +1 -0
- package/resources/loyalty/rule-chains.mjs +5 -0
- package/resources/loyalty/rule-chains.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/rule-edits.d.ts +2 -2
- package/resources/loyalty/rule-edits.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/rule-edits.js +1 -1
- package/resources/loyalty/rule-edits.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/rule-edits.mjs +1 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -0
- package/resources/{api/loyalty/loyalty.d.ts → loyalty/rule-groups.d.ts} +37 -285
- package/resources/loyalty/rule-groups.d.ts.map +1 -0
- package/resources/loyalty/rule-groups.js +16 -0
- package/resources/loyalty/rule-groups.js.map +1 -0
- package/resources/loyalty/rule-groups.mjs +12 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/rules.d.ts +119 -14
- package/resources/loyalty/rules.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/rules.js +2 -2
- package/resources/loyalty/rules.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/rules.mjs +2 -2
- package/resources/loyalty/rules.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +248 -0
- package/resources/loyalty/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions.js +22 -0
- package/resources/loyalty/transactions.js.map +1 -0
- package/resources/loyalty/transactions.mjs +18 -0
- package/resources/loyalty/transactions.mjs.map +1 -0
- package/resources/loyalty.d.ts.map +1 -0
- package/resources/loyalty.js.map +1 -0
- package/resources/loyalty.mjs.map +1 -0
- package/resources/{api/minting.d.ts → minting.d.ts} +3 -3
- package/resources/minting.d.ts.map +1 -0
- package/resources/{api/minting.js → minting.js} +1 -1
- package/resources/minting.js.map +1 -0
- package/resources/{api/minting.mjs → minting.mjs} +1 -1
- package/resources/minting.mjs.map +1 -0
- package/resources/referral/index.d.ts.map +1 -0
- package/resources/referral/index.js.map +1 -0
- package/resources/referral/index.mjs.map +1 -0
- package/resources/{api/referral → referral}/referral.d.ts +2 -2
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{api/referral → referral}/referral.js +2 -2
- package/resources/referral/referral.js.map +1 -0
- package/resources/{api/referral → referral}/referral.mjs +2 -2
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/{api/referral → referral}/users.d.ts +2 -2
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/{api/referral → referral}/users.js +1 -1
- package/resources/referral/users.js.map +1 -0
- package/resources/{api/referral → referral}/users.mjs +1 -1
- package/resources/referral/users.mjs.map +1 -0
- package/resources/referral.d.ts.map +1 -0
- package/resources/referral.js.map +1 -0
- package/resources/referral.mjs.map +1 -0
- package/resources/users/index.d.ts +3 -0
- package/resources/users/index.d.ts.map +1 -0
- package/resources/users/index.js.map +1 -0
- package/resources/users/index.mjs.map +1 -0
- package/resources/{api/users → users}/metadatas.d.ts +7 -2
- package/resources/users/metadatas.d.ts.map +1 -0
- package/resources/{api/users → users}/metadatas.js +2 -2
- package/resources/users/metadatas.js.map +1 -0
- package/resources/{api/users → users}/metadatas.mjs +2 -2
- package/resources/users/metadatas.mjs.map +1 -0
- package/resources/users/users.d.ts +304 -0
- package/resources/users/users.d.ts.map +1 -0
- package/resources/{api/users → users}/users.js +8 -1
- package/resources/users/users.js.map +1 -0
- package/resources/{api/users → users}/users.mjs +8 -1
- package/resources/users/users.mjs.map +1 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs.map +1 -0
- package/resources/websites/index.d.ts +4 -0
- package/resources/websites/index.d.ts.map +1 -0
- package/resources/websites/index.js +11 -0
- package/resources/websites/index.js.map +1 -0
- package/resources/{api → websites}/index.mjs +0 -5
- package/resources/websites/index.mjs.map +1 -0
- package/resources/{api → websites}/website-collections.d.ts +1 -1
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/{api → websites}/websites.d.ts +8 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/websites/websites.js +56 -0
- package/resources/websites/websites.js.map +1 -0
- package/resources/websites/websites.mjs +29 -0
- package/resources/websites/websites.mjs.map +1 -0
- package/resources/websites.d.ts +2 -0
- package/resources/websites.d.ts.map +1 -0
- package/resources/{api.js → websites.js} +2 -2
- package/resources/websites.js.map +1 -0
- package/resources/{api.mjs → websites.mjs} +2 -2
- package/resources/websites.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +6 -1
- package/src/index.ts +98 -23
- package/src/resources/assets.ts +77 -0
- package/src/resources/auctions.ts +209 -0
- package/src/resources/auth.ts +69 -0
- package/src/resources/index.ts +27 -8
- package/src/resources/{api/loyalty → loyalty}/accounts.ts +15 -17
- package/src/resources/{api/loyalty → loyalty}/badges.ts +3 -3
- package/src/resources/{api/loyalty → loyalty}/currencies.ts +8 -2
- package/src/resources/{api/loyalty → loyalty}/index.ts +16 -11
- package/src/resources/loyalty/loyalty.ts +231 -0
- package/src/resources/{api/loyalty → loyalty}/multipliers.ts +27 -3
- package/src/resources/{api/loyalty → loyalty}/questions-responses.ts +3 -3
- package/src/resources/{api/loyalty → loyalty}/questions.ts +2 -2
- package/src/resources/loyalty/rule-chains.ts +5 -0
- package/src/resources/{api/loyalty → loyalty}/rule-edits.ts +2 -2
- package/src/resources/{api/loyalty/loyalty.ts → loyalty/rule-groups.ts} +62 -541
- package/src/resources/{api/loyalty → loyalty}/rules.ts +326 -183
- package/src/resources/loyalty/transactions.ts +332 -0
- package/src/resources/{api/minting.ts → minting.ts} +18 -17
- package/src/resources/{api/referral → referral}/referral.ts +3 -3
- package/src/resources/{api/referral → referral}/users.ts +2 -2
- package/src/resources/{api/users → users}/index.ts +2 -0
- package/src/resources/{api/users → users}/metadatas.ts +10 -3
- package/src/resources/users/users.ts +447 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/{api → websites}/website-collections.ts +16 -15
- package/src/resources/{api → websites}/websites.ts +40 -0
- package/src/resources/{api.ts → websites.ts} +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/api/api.d.ts +0 -365
- package/resources/api/api.d.ts.map +0 -1
- package/resources/api/api.js +0 -94
- package/resources/api/api.js.map +0 -1
- package/resources/api/api.mjs +0 -67
- package/resources/api/api.mjs.map +0 -1
- package/resources/api/index.d.ts +0 -9
- package/resources/api/index.d.ts.map +0 -1
- package/resources/api/index.js +0 -21
- package/resources/api/index.js.map +0 -1
- package/resources/api/index.mjs.map +0 -1
- package/resources/api/loyalty/accounts.d.ts.map +0 -1
- package/resources/api/loyalty/accounts.js.map +0 -1
- package/resources/api/loyalty/accounts.mjs.map +0 -1
- package/resources/api/loyalty/badges.d.ts.map +0 -1
- package/resources/api/loyalty/badges.js.map +0 -1
- package/resources/api/loyalty/badges.mjs.map +0 -1
- package/resources/api/loyalty/currencies.d.ts.map +0 -1
- package/resources/api/loyalty/currencies.js.map +0 -1
- package/resources/api/loyalty/currencies.mjs.map +0 -1
- package/resources/api/loyalty/index.d.ts.map +0 -1
- package/resources/api/loyalty/index.js.map +0 -1
- package/resources/api/loyalty/index.mjs.map +0 -1
- package/resources/api/loyalty/loyalty.d.ts.map +0 -1
- package/resources/api/loyalty/loyalty.js.map +0 -1
- package/resources/api/loyalty/loyalty.mjs.map +0 -1
- package/resources/api/loyalty/multipliers.d.ts.map +0 -1
- package/resources/api/loyalty/multipliers.js.map +0 -1
- package/resources/api/loyalty/multipliers.mjs.map +0 -1
- package/resources/api/loyalty/questions-responses.d.ts.map +0 -1
- package/resources/api/loyalty/questions-responses.js.map +0 -1
- package/resources/api/loyalty/questions-responses.mjs.map +0 -1
- package/resources/api/loyalty/questions.d.ts.map +0 -1
- package/resources/api/loyalty/questions.js.map +0 -1
- package/resources/api/loyalty/questions.mjs.map +0 -1
- package/resources/api/loyalty/rule-edits.d.ts.map +0 -1
- package/resources/api/loyalty/rule-edits.js.map +0 -1
- package/resources/api/loyalty/rule-edits.mjs.map +0 -1
- package/resources/api/loyalty/rules.d.ts.map +0 -1
- package/resources/api/loyalty/rules.js.map +0 -1
- package/resources/api/loyalty/rules.mjs.map +0 -1
- package/resources/api/loyalty.d.ts.map +0 -1
- package/resources/api/loyalty.js.map +0 -1
- package/resources/api/loyalty.mjs.map +0 -1
- package/resources/api/minting.d.ts.map +0 -1
- package/resources/api/minting.js.map +0 -1
- package/resources/api/minting.mjs.map +0 -1
- package/resources/api/referral/index.d.ts.map +0 -1
- package/resources/api/referral/index.js.map +0 -1
- package/resources/api/referral/index.mjs.map +0 -1
- package/resources/api/referral/referral.d.ts.map +0 -1
- package/resources/api/referral/referral.js.map +0 -1
- package/resources/api/referral/referral.mjs.map +0 -1
- package/resources/api/referral/users.d.ts.map +0 -1
- package/resources/api/referral/users.js.map +0 -1
- package/resources/api/referral/users.mjs.map +0 -1
- package/resources/api/referral.d.ts.map +0 -1
- package/resources/api/referral.js.map +0 -1
- package/resources/api/referral.mjs.map +0 -1
- package/resources/api/users/index.d.ts +0 -3
- package/resources/api/users/index.d.ts.map +0 -1
- package/resources/api/users/index.js.map +0 -1
- package/resources/api/users/index.mjs.map +0 -1
- package/resources/api/users/metadatas.d.ts.map +0 -1
- package/resources/api/users/metadatas.js.map +0 -1
- package/resources/api/users/metadatas.mjs.map +0 -1
- package/resources/api/users/users.d.ts +0 -133
- package/resources/api/users/users.d.ts.map +0 -1
- package/resources/api/users/users.js.map +0 -1
- package/resources/api/users/users.mjs.map +0 -1
- package/resources/api/users.d.ts.map +0 -1
- package/resources/api/users.js.map +0 -1
- package/resources/api/users.mjs.map +0 -1
- package/resources/api/website-collections.d.ts.map +0 -1
- package/resources/api/website-collections.js.map +0 -1
- package/resources/api/website-collections.mjs.map +0 -1
- package/resources/api/website-user-roles.d.ts.map +0 -1
- package/resources/api/website-user-roles.js.map +0 -1
- package/resources/api/website-user-roles.mjs.map +0 -1
- package/resources/api/websites.d.ts.map +0 -1
- package/resources/api/websites.js +0 -22
- package/resources/api/websites.js.map +0 -1
- package/resources/api/websites.mjs +0 -18
- package/resources/api/websites.mjs.map +0 -1
- package/resources/api.d.ts +0 -2
- package/resources/api.d.ts.map +0 -1
- package/resources/api.js.map +0 -1
- package/resources/api.mjs.map +0 -1
- package/src/resources/api/api.ts +0 -629
- package/src/resources/api/index.ts +0 -51
- package/src/resources/api/users/users.ts +0 -203
- /package/resources/{api/loyalty.d.ts → loyalty.d.ts} +0 -0
- /package/resources/{api/loyalty.js → loyalty.js} +0 -0
- /package/resources/{api/loyalty.mjs → loyalty.mjs} +0 -0
- /package/resources/{api/referral → referral}/index.d.ts +0 -0
- /package/resources/{api/referral → referral}/index.js +0 -0
- /package/resources/{api/referral → referral}/index.mjs +0 -0
- /package/resources/{api/referral.d.ts → referral.d.ts} +0 -0
- /package/resources/{api/referral.js → referral.js} +0 -0
- /package/resources/{api/referral.mjs → referral.mjs} +0 -0
- /package/resources/{api/users → users}/index.js +0 -0
- /package/resources/{api/users → users}/index.mjs +0 -0
- /package/resources/{api/users.d.ts → users.d.ts} +0 -0
- /package/resources/{api/users.js → users.js} +0 -0
- /package/resources/{api/users.mjs → users.mjs} +0 -0
- /package/resources/{api → websites}/website-collections.js +0 -0
- /package/resources/{api → websites}/website-collections.mjs +0 -0
- /package/resources/{api → websites}/website-user-roles.d.ts +0 -0
- /package/resources/{api → websites}/website-user-roles.js +0 -0
- /package/resources/{api → websites}/website-user-roles.mjs +0 -0
- /package/src/resources/{api/loyalty.ts → loyalty.ts} +0 -0
- /package/src/resources/{api/referral → referral}/index.ts +0 -0
- /package/src/resources/{api/referral.ts → referral.ts} +0 -0
- /package/src/resources/{api/users.ts → users.ts} +0 -0
- /package/src/resources/{api → websites}/website-user-roles.ts +0 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
|
+
import * as MetadatasAPI from './metadatas';
|
|
7
|
+
import {
|
|
8
|
+
MetadataCreateParams,
|
|
9
|
+
MetadataCreateResponse,
|
|
10
|
+
MetadataListParams,
|
|
11
|
+
MetadataListResponse,
|
|
12
|
+
Metadatas,
|
|
13
|
+
} from './metadatas';
|
|
14
|
+
|
|
15
|
+
export class Users extends APIResource {
|
|
16
|
+
metadatas: MetadatasAPI.Metadatas = new MetadatasAPI.Metadatas(this._client);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This endpoint allows you to get users
|
|
20
|
+
*/
|
|
21
|
+
list(query?: UserListParams, options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
22
|
+
list(options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
23
|
+
list(
|
|
24
|
+
query: UserListParams | Core.RequestOptions = {},
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.APIPromise<UserListResponse> {
|
|
27
|
+
if (isRequestOptions(query)) {
|
|
28
|
+
return this.list({}, query);
|
|
29
|
+
}
|
|
30
|
+
return this._client.get('/api/users', { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* This endpoint allows you to create a user
|
|
35
|
+
*/
|
|
36
|
+
connect(body: UserConnectParams, options?: Core.RequestOptions): Core.APIPromise<UserConnectResponse> {
|
|
37
|
+
return this._client.post('/api/users/connect', { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* This endpoint returns the total user count
|
|
42
|
+
*/
|
|
43
|
+
count(query: UserCountParams, options?: Core.RequestOptions): Core.APIPromise<UserCountResponse> {
|
|
44
|
+
return this._client.get('/api/users/count', { query, ...options });
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* This endpoint allows you to disconnect a user from another user
|
|
49
|
+
*/
|
|
50
|
+
disconnect(body: UserDisconnectParams, options?: Core.RequestOptions): Core.APIPromise<unknown> {
|
|
51
|
+
return this._client.post('/api/users/disconnect', { body, ...options });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface UserListResponse {
|
|
56
|
+
/**
|
|
57
|
+
* Schema for users response
|
|
58
|
+
*/
|
|
59
|
+
data: Array<UserListResponse.Data>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export namespace UserListResponse {
|
|
63
|
+
/**
|
|
64
|
+
* Schema for a user response
|
|
65
|
+
*/
|
|
66
|
+
export interface Data {
|
|
67
|
+
id: string;
|
|
68
|
+
|
|
69
|
+
isSnagSuperAdmin: boolean;
|
|
70
|
+
|
|
71
|
+
walletAddress: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The followers of the user, only returned if includeFollow is true
|
|
75
|
+
*/
|
|
76
|
+
_count?: Data._Count | null;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The delegations from the user, only returned if includeDelegation is true
|
|
80
|
+
*/
|
|
81
|
+
delegationsFrom?: Array<Data.DelegationsFrom> | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The followers of the user, only returned if includeFollow is true and the user
|
|
85
|
+
* is querying their own user
|
|
86
|
+
*/
|
|
87
|
+
followers?: Array<Data.Follower> | null;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Whether the user has notifications enabled, only returned if
|
|
91
|
+
* includeNotifications is true
|
|
92
|
+
*/
|
|
93
|
+
notifications?: boolean;
|
|
94
|
+
|
|
95
|
+
privyUserId?: string | null;
|
|
96
|
+
|
|
97
|
+
stardustProfileId?: string | null;
|
|
98
|
+
|
|
99
|
+
temporaryLoyaltyUser?: boolean | null;
|
|
100
|
+
|
|
101
|
+
userMetadata?: Array<Data.UserMetadata> | null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export namespace Data {
|
|
105
|
+
/**
|
|
106
|
+
* The followers of the user, only returned if includeFollow is true
|
|
107
|
+
*/
|
|
108
|
+
export interface _Count {
|
|
109
|
+
select: _Count.Select;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export namespace _Count {
|
|
113
|
+
export interface Select {
|
|
114
|
+
followers: number;
|
|
115
|
+
|
|
116
|
+
follows: number;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface DelegationsFrom {
|
|
121
|
+
walletAddress: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface Follower {
|
|
125
|
+
userId: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface UserMetadata {
|
|
129
|
+
bio?: string | null;
|
|
130
|
+
|
|
131
|
+
discordUser?: string | null;
|
|
132
|
+
|
|
133
|
+
discordVerifiedAt?: string | null;
|
|
134
|
+
|
|
135
|
+
displayName?: string | null;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The email address of the user, only returned if the user is querying their own
|
|
139
|
+
* user
|
|
140
|
+
*/
|
|
141
|
+
emailAddress?: string | null;
|
|
142
|
+
|
|
143
|
+
emailVerifiedAt?: string | null;
|
|
144
|
+
|
|
145
|
+
epicAccountIdentifier?: string | null;
|
|
146
|
+
|
|
147
|
+
epicUsername?: string | null;
|
|
148
|
+
|
|
149
|
+
instagramUser?: string | null;
|
|
150
|
+
|
|
151
|
+
instagramVerifiedAt?: string | null;
|
|
152
|
+
|
|
153
|
+
isBlocked?: boolean | null;
|
|
154
|
+
|
|
155
|
+
location?: string | null;
|
|
156
|
+
|
|
157
|
+
logoUrl?: string | null;
|
|
158
|
+
|
|
159
|
+
meta?: string | null;
|
|
160
|
+
|
|
161
|
+
portfolioUrl?: string | null;
|
|
162
|
+
|
|
163
|
+
steamUserId?: string | null;
|
|
164
|
+
|
|
165
|
+
steamUsername?: string | null;
|
|
166
|
+
|
|
167
|
+
telegramUserId?: string | null;
|
|
168
|
+
|
|
169
|
+
telegramUsername?: string | null;
|
|
170
|
+
|
|
171
|
+
telegramVerifiedAt?: string | null;
|
|
172
|
+
|
|
173
|
+
twitterUser?: string | null;
|
|
174
|
+
|
|
175
|
+
twitterUserFollowersCount?: number | null;
|
|
176
|
+
|
|
177
|
+
twitterVerifiedAt?: string | null;
|
|
178
|
+
|
|
179
|
+
userGroupId?: string | null;
|
|
180
|
+
|
|
181
|
+
walletGroupIdentifier?: string | null;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Schema for a connect users response
|
|
188
|
+
*/
|
|
189
|
+
export interface UserConnectResponse {
|
|
190
|
+
/**
|
|
191
|
+
* The ID of the user
|
|
192
|
+
*/
|
|
193
|
+
id: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Timestamp when the user was created
|
|
197
|
+
*/
|
|
198
|
+
createdAt: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Timestamp when the user was last updated
|
|
202
|
+
*/
|
|
203
|
+
updatedAt: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The wallet address of the user
|
|
207
|
+
*/
|
|
208
|
+
walletAddress: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Schema for counting users response
|
|
213
|
+
*/
|
|
214
|
+
export interface UserCountResponse {
|
|
215
|
+
/**
|
|
216
|
+
* Total count of users
|
|
217
|
+
*/
|
|
218
|
+
totalCount: number;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export type UserDisconnectResponse = unknown;
|
|
222
|
+
|
|
223
|
+
export interface UserListParams {
|
|
224
|
+
/**
|
|
225
|
+
* The address of the user
|
|
226
|
+
*/
|
|
227
|
+
address?: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Discord username of the user
|
|
231
|
+
*/
|
|
232
|
+
discordUser?: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* External identifier for the user
|
|
236
|
+
*/
|
|
237
|
+
externalIdentifier?: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Whether to include delegations in the response
|
|
241
|
+
*/
|
|
242
|
+
includeDelegation?: boolean | null;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Whether to include followers in the response
|
|
246
|
+
*/
|
|
247
|
+
includeFollow?: boolean | null;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Number of users to return
|
|
251
|
+
*/
|
|
252
|
+
limit?: number;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The ID of the organization
|
|
256
|
+
*/
|
|
257
|
+
organizationId?: string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Pagination cursor to start after a specific user ID
|
|
261
|
+
*/
|
|
262
|
+
startingAfter?: string;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Steam ID of the user
|
|
266
|
+
*/
|
|
267
|
+
steamUserId?: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Steam username of the user
|
|
271
|
+
*/
|
|
272
|
+
steamUsername?: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Telegram ID of the user
|
|
276
|
+
*/
|
|
277
|
+
telegramUserId?: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Telegram username of the user
|
|
281
|
+
*/
|
|
282
|
+
telegramUsername?: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Twitter username of the user
|
|
286
|
+
*/
|
|
287
|
+
twitterUser?: string;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* External identifier for the user group controlled by you
|
|
291
|
+
*/
|
|
292
|
+
userGroupExternalIdentifier?: string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* The ID of the user group
|
|
296
|
+
*/
|
|
297
|
+
userGroupId?: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* The ID of the user
|
|
301
|
+
*/
|
|
302
|
+
userId?: string | Array<string>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* The wallet address of the user
|
|
306
|
+
*/
|
|
307
|
+
walletAddress?: string;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* The ID of the website
|
|
311
|
+
*/
|
|
312
|
+
websiteId?: string;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface UserConnectParams {
|
|
316
|
+
/**
|
|
317
|
+
* The ID of the organization
|
|
318
|
+
*/
|
|
319
|
+
organizationId: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The wallet address of the user
|
|
323
|
+
*/
|
|
324
|
+
walletAddress: string;
|
|
325
|
+
|
|
326
|
+
walletType: 'evm' | 'solana' | 'imx' | 'sui' | 'ton';
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* The ID of the website
|
|
330
|
+
*/
|
|
331
|
+
websiteId: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Whether to confirm the disconnect
|
|
335
|
+
*/
|
|
336
|
+
confirmDisconnect?: boolean;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The ID of the user to whome this wallet is being connected
|
|
340
|
+
*/
|
|
341
|
+
userId?: string;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* The verification data of the user walletAddress
|
|
345
|
+
*/
|
|
346
|
+
verificationData?: UserConnectParams.VerificationData;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export namespace UserConnectParams {
|
|
350
|
+
/**
|
|
351
|
+
* The verification data of the user walletAddress
|
|
352
|
+
*/
|
|
353
|
+
export interface VerificationData {
|
|
354
|
+
accessToken?: string;
|
|
355
|
+
|
|
356
|
+
dynamicAuthToken?: string;
|
|
357
|
+
|
|
358
|
+
message?: string;
|
|
359
|
+
|
|
360
|
+
signature?: string;
|
|
361
|
+
|
|
362
|
+
tonVerification?: VerificationData.TonVerification;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export namespace VerificationData {
|
|
366
|
+
export interface TonVerification {
|
|
367
|
+
account: TonVerification.Account;
|
|
368
|
+
|
|
369
|
+
proof: TonVerification.Proof;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export namespace TonVerification {
|
|
373
|
+
export interface Account {
|
|
374
|
+
address: string;
|
|
375
|
+
|
|
376
|
+
chain: '-239' | '-3';
|
|
377
|
+
|
|
378
|
+
publicKey: string;
|
|
379
|
+
|
|
380
|
+
walletStateInit?: string;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export interface Proof {
|
|
384
|
+
domain: Proof.Domain;
|
|
385
|
+
|
|
386
|
+
payload: string;
|
|
387
|
+
|
|
388
|
+
signature: string;
|
|
389
|
+
|
|
390
|
+
timestamp: number;
|
|
391
|
+
|
|
392
|
+
state_init?: string;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export namespace Proof {
|
|
396
|
+
export interface Domain {
|
|
397
|
+
lengthBytes: number;
|
|
398
|
+
|
|
399
|
+
value: string;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export interface UserCountParams {
|
|
407
|
+
/**
|
|
408
|
+
* The ID of the organization
|
|
409
|
+
*/
|
|
410
|
+
organizationId: string;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* The ID of the website
|
|
414
|
+
*/
|
|
415
|
+
websiteId: string;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export interface UserDisconnectParams {
|
|
419
|
+
organizationId: string;
|
|
420
|
+
|
|
421
|
+
userId: string;
|
|
422
|
+
|
|
423
|
+
websiteId: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
Users.Metadatas = Metadatas;
|
|
427
|
+
|
|
428
|
+
export declare namespace Users {
|
|
429
|
+
export {
|
|
430
|
+
type UserListResponse as UserListResponse,
|
|
431
|
+
type UserConnectResponse as UserConnectResponse,
|
|
432
|
+
type UserCountResponse as UserCountResponse,
|
|
433
|
+
type UserDisconnectResponse as UserDisconnectResponse,
|
|
434
|
+
type UserListParams as UserListParams,
|
|
435
|
+
type UserConnectParams as UserConnectParams,
|
|
436
|
+
type UserCountParams as UserCountParams,
|
|
437
|
+
type UserDisconnectParams as UserDisconnectParams,
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
export {
|
|
441
|
+
Metadatas as Metadatas,
|
|
442
|
+
type MetadataCreateResponse as MetadataCreateResponse,
|
|
443
|
+
type MetadataListResponse as MetadataListResponse,
|
|
444
|
+
type MetadataCreateParams as MetadataCreateParams,
|
|
445
|
+
type MetadataListParams as MetadataListParams,
|
|
446
|
+
};
|
|
447
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
WebsiteCollections,
|
|
5
|
+
type WebsiteCollectionListResponse,
|
|
6
|
+
type WebsiteCollectionCreateParams,
|
|
7
|
+
type WebsiteCollectionListParams,
|
|
8
|
+
} from './website-collections';
|
|
9
|
+
export {
|
|
10
|
+
WebsiteUserRoles,
|
|
11
|
+
type WebsiteUserRoleListResponse,
|
|
12
|
+
type WebsiteUserRoleAssignResponse,
|
|
13
|
+
type WebsiteUserRoleListParams,
|
|
14
|
+
type WebsiteUserRoleAssignParams,
|
|
15
|
+
} from './website-user-roles';
|
|
16
|
+
export {
|
|
17
|
+
Websites,
|
|
18
|
+
type WebsiteCreateResponse,
|
|
19
|
+
type WebsiteListResponse,
|
|
20
|
+
type WebsiteCreateParams,
|
|
21
|
+
type WebsiteListParams,
|
|
22
|
+
} from './websites';
|
|
@@ -56,31 +56,32 @@ export interface WebsiteCollectionCreateParams {
|
|
|
56
56
|
name: string;
|
|
57
57
|
|
|
58
58
|
network:
|
|
59
|
-
| '
|
|
60
|
-
| 'polygon'
|
|
61
|
-
| 'polygon_mumbai'
|
|
62
|
-
| 'optimism'
|
|
59
|
+
| 'apechain'
|
|
63
60
|
| 'arbitrum'
|
|
64
|
-
| 'binance'
|
|
65
|
-
| 'bscTestnet'
|
|
66
61
|
| 'avalanche'
|
|
67
62
|
| 'avalancheFuji'
|
|
68
|
-
| 'zksync'
|
|
69
|
-
| 'fantom'
|
|
70
|
-
| 'fantomTestnet'
|
|
71
63
|
| 'base'
|
|
72
64
|
| 'baseSepolia'
|
|
73
|
-
| 'skaleNebula'
|
|
74
|
-
| 'xai'
|
|
75
65
|
| 'berachainArtio'
|
|
76
|
-
| '
|
|
77
|
-
| '
|
|
78
|
-
| 'flowMainnet'
|
|
66
|
+
| 'binance'
|
|
67
|
+
| 'bscTestnet'
|
|
79
68
|
| 'campTestnet'
|
|
69
|
+
| 'fantom'
|
|
70
|
+
| 'fantomTestnet'
|
|
71
|
+
| 'flowMainnet'
|
|
72
|
+
| 'mainnet'
|
|
73
|
+
| 'optimism'
|
|
74
|
+
| 'polygon'
|
|
75
|
+
| 'polygon_mumbai'
|
|
76
|
+
| 'skaleNebula'
|
|
77
|
+
| 'solana'
|
|
78
|
+
| 'sophon'
|
|
80
79
|
| 'sui'
|
|
81
|
-
| 'vanar'
|
|
82
80
|
| 'superseed'
|
|
83
81
|
| 'superseedSepolia'
|
|
82
|
+
| 'vanar'
|
|
83
|
+
| 'xai'
|
|
84
|
+
| 'zksync'
|
|
84
85
|
| 'sepolia'
|
|
85
86
|
| 'optimism_sepolia'
|
|
86
87
|
| 'arbitrumSepolia'
|
|
@@ -3,8 +3,30 @@
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
|
+
import * as WebsiteCollectionsAPI from './website-collections';
|
|
7
|
+
import {
|
|
8
|
+
WebsiteCollectionCreateParams,
|
|
9
|
+
WebsiteCollectionListParams,
|
|
10
|
+
WebsiteCollectionListResponse,
|
|
11
|
+
WebsiteCollections,
|
|
12
|
+
} from './website-collections';
|
|
13
|
+
import * as WebsiteUserRolesAPI from './website-user-roles';
|
|
14
|
+
import {
|
|
15
|
+
WebsiteUserRoleAssignParams,
|
|
16
|
+
WebsiteUserRoleAssignResponse,
|
|
17
|
+
WebsiteUserRoleListParams,
|
|
18
|
+
WebsiteUserRoleListResponse,
|
|
19
|
+
WebsiteUserRoles,
|
|
20
|
+
} from './website-user-roles';
|
|
6
21
|
|
|
7
22
|
export class Websites extends APIResource {
|
|
23
|
+
websiteCollections: WebsiteCollectionsAPI.WebsiteCollections = new WebsiteCollectionsAPI.WebsiteCollections(
|
|
24
|
+
this._client,
|
|
25
|
+
);
|
|
26
|
+
websiteUserRoles: WebsiteUserRolesAPI.WebsiteUserRoles = new WebsiteUserRolesAPI.WebsiteUserRoles(
|
|
27
|
+
this._client,
|
|
28
|
+
);
|
|
29
|
+
|
|
8
30
|
/**
|
|
9
31
|
* Creates a new website
|
|
10
32
|
*/
|
|
@@ -249,6 +271,9 @@ export interface WebsiteListParams {
|
|
|
249
271
|
startingAfter?: string;
|
|
250
272
|
}
|
|
251
273
|
|
|
274
|
+
Websites.WebsiteCollections = WebsiteCollections;
|
|
275
|
+
Websites.WebsiteUserRoles = WebsiteUserRoles;
|
|
276
|
+
|
|
252
277
|
export declare namespace Websites {
|
|
253
278
|
export {
|
|
254
279
|
type WebsiteCreateResponse as WebsiteCreateResponse,
|
|
@@ -256,4 +281,19 @@ export declare namespace Websites {
|
|
|
256
281
|
type WebsiteCreateParams as WebsiteCreateParams,
|
|
257
282
|
type WebsiteListParams as WebsiteListParams,
|
|
258
283
|
};
|
|
284
|
+
|
|
285
|
+
export {
|
|
286
|
+
WebsiteCollections as WebsiteCollections,
|
|
287
|
+
type WebsiteCollectionListResponse as WebsiteCollectionListResponse,
|
|
288
|
+
type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams,
|
|
289
|
+
type WebsiteCollectionListParams as WebsiteCollectionListParams,
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export {
|
|
293
|
+
WebsiteUserRoles as WebsiteUserRoles,
|
|
294
|
+
type WebsiteUserRoleListResponse as WebsiteUserRoleListResponse,
|
|
295
|
+
type WebsiteUserRoleAssignResponse as WebsiteUserRoleAssignResponse,
|
|
296
|
+
type WebsiteUserRoleListParams as WebsiteUserRoleListParams,
|
|
297
|
+
type WebsiteUserRoleAssignParams as WebsiteUserRoleAssignParams,
|
|
298
|
+
};
|
|
259
299
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.17'; // 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.17";
|
|
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.17'; // 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.17'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|