@snagsolutions/sdk 0.1.0-alpha.55 → 0.1.0-alpha.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/package.json +1 -1
- package/resources/assets.d.ts +8 -0
- 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 +19 -0
- package/resources/auctions/auctions.d.ts.map +1 -1
- package/resources/auctions/auctions.js +14 -0
- package/resources/auctions/auctions.js.map +1 -1
- package/resources/auctions/auctions.mjs +14 -0
- package/resources/auctions/auctions.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/values.d.ts +28 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.js +28 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -1
- package/resources/auctions/website-user-attributes/values.mjs +28 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +24 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.js +18 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +18 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +18 -0
- 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 +44 -0
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +18 -0
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +18 -0
- 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/multipliers.d.ts +35 -0
- 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 +15 -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 +33 -0
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +33 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +33 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +22 -8
- 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 +35 -3
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +18 -0
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +18 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +76 -21
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +30 -0
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +30 -0
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.d.ts +14 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.js +8 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.mjs +8 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +26 -1
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +18 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +18 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/minting.d.ts +1 -1
- package/resources/minting.d.ts.map +1 -1
- package/resources/referral/referral.d.ts +7 -0
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +7 -0
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +7 -0
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +14 -0
- 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/metadatas.d.ts +10 -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 +48 -0
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +43 -0
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +43 -0
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +22 -1
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +21 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +21 -0
- 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 +12 -0
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +7 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +7 -0
- package/resources/websites/websites.mjs.map +1 -1
- package/src/resources/assets.ts +8 -0
- package/src/resources/auctions/auctions.ts +19 -0
- package/src/resources/auctions/website-user-attributes/values.ts +28 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +24 -0
- package/src/resources/loyalty/accounts.ts +18 -0
- package/src/resources/loyalty/badges.ts +44 -0
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/multipliers.ts +35 -0
- package/src/resources/loyalty/questions-responses.ts +15 -0
- package/src/resources/loyalty/questions.ts +33 -0
- package/src/resources/loyalty/rule-edits.ts +22 -0
- package/src/resources/loyalty/rule-groups.ts +35 -0
- package/src/resources/loyalty/rules.ts +76 -1
- package/src/resources/loyalty/transactions/rule-statuses.ts +14 -0
- package/src/resources/loyalty/transactions/transactions.ts +28 -0
- package/src/resources/minting.ts +1 -0
- package/src/resources/referral/referral.ts +7 -0
- package/src/resources/referral/users.ts +14 -0
- package/src/resources/users/metadatas.ts +10 -0
- package/src/resources/users/users.ts +48 -0
- package/src/resources/websites/website-collections.ts +22 -0
- package/src/resources/websites/website-user-roles.ts +23 -0
- package/src/resources/websites/websites.ts +12 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -17,6 +17,11 @@ export class Users extends APIResource {
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* This endpoint allows you to get users
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const users = await client.users.list();
|
|
24
|
+
* ```
|
|
20
25
|
*/
|
|
21
26
|
list(query?: UserListParams, options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
22
27
|
list(options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
@@ -32,6 +37,17 @@ export class Users extends APIResource {
|
|
|
32
37
|
|
|
33
38
|
/**
|
|
34
39
|
* This endpoint allows you to create a user
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const response = await client.users.connect({
|
|
44
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
45
|
+
* walletAddress:
|
|
46
|
+
* '0x1234567890abcdef1234567890abcdef12345678',
|
|
47
|
+
* walletType: 'evm',
|
|
48
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
35
51
|
*/
|
|
36
52
|
connect(body: UserConnectParams, options?: Core.RequestOptions): Core.APIPromise<UserConnectResponse> {
|
|
37
53
|
return this._client.post('/api/users/connect', { body, ...options });
|
|
@@ -39,6 +55,14 @@ export class Users extends APIResource {
|
|
|
39
55
|
|
|
40
56
|
/**
|
|
41
57
|
* This endpoint returns the total user count
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const response = await client.users.count({
|
|
62
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
63
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
42
66
|
*/
|
|
43
67
|
count(query: UserCountParams, options?: Core.RequestOptions): Core.APIPromise<UserCountResponse> {
|
|
44
68
|
return this._client.get('/api/users/count', { query, ...options });
|
|
@@ -46,6 +70,13 @@ export class Users extends APIResource {
|
|
|
46
70
|
|
|
47
71
|
/**
|
|
48
72
|
* This endpoint is used to create user devices for fraud tracking
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const response = await client.users.createDevice({
|
|
77
|
+
* ipAddress: '123.456.789.012',
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
49
80
|
*/
|
|
50
81
|
createDevice(
|
|
51
82
|
body: UserCreateDeviceParams,
|
|
@@ -56,6 +87,15 @@ export class Users extends APIResource {
|
|
|
56
87
|
|
|
57
88
|
/**
|
|
58
89
|
* This endpoint allows you to disconnect a user from another user
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const response = await client.users.disconnect({
|
|
94
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
95
|
+
* userId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
96
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
59
99
|
*/
|
|
60
100
|
disconnect(
|
|
61
101
|
body: UserDisconnectParams,
|
|
@@ -64,6 +104,14 @@ export class Users extends APIResource {
|
|
|
64
104
|
return this._client.post('/api/users/disconnect', { body, ...options });
|
|
65
105
|
}
|
|
66
106
|
|
|
107
|
+
/**
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* const response = await client.users.verify({
|
|
111
|
+
* accountLinkData: 'accountLinkData',
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
67
115
|
verify(body: UserVerifyParams, options?: Core.RequestOptions): Core.APIPromise<UserVerifyResponse> {
|
|
68
116
|
return this._client.post('/api/users/verify', { body, ...options });
|
|
69
117
|
}
|
|
@@ -6,6 +6,19 @@ import * as Core from '../../core';
|
|
|
6
6
|
export class WebsiteCollections extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new collection under a website
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.websites.websiteCollections.create({
|
|
13
|
+
* collectionAddress:
|
|
14
|
+
* '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
|
|
15
|
+
* name: 'x',
|
|
16
|
+
* network: 'abstract',
|
|
17
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
18
|
+
* sortId: 0,
|
|
19
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
9
22
|
*/
|
|
10
23
|
create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
11
24
|
return this._client.post('/api/website_collections', {
|
|
@@ -17,6 +30,14 @@ export class WebsiteCollections extends APIResource {
|
|
|
17
30
|
|
|
18
31
|
/**
|
|
19
32
|
* Retrieves collections for a specific website.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const websiteCollections =
|
|
37
|
+
* await client.websites.websiteCollections.list({
|
|
38
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
20
41
|
*/
|
|
21
42
|
list(
|
|
22
43
|
query: WebsiteCollectionListParams,
|
|
@@ -78,6 +99,7 @@ export interface WebsiteCollectionCreateParams {
|
|
|
78
99
|
| 'skaleNebula'
|
|
79
100
|
| 'solana'
|
|
80
101
|
| 'sophon'
|
|
102
|
+
| 'sophonTestnet'
|
|
81
103
|
| 'sui'
|
|
82
104
|
| 'superseed'
|
|
83
105
|
| 'superseedSepolia'
|
|
@@ -7,6 +7,14 @@ export class WebsiteUserRoles extends APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves roles of users for a specific website. If userId is provided,
|
|
9
9
|
* retrieves the role of that specific user for the website.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const websiteUserRoles =
|
|
14
|
+
* await client.websites.websiteUserRoles.list({
|
|
15
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
10
18
|
*/
|
|
11
19
|
list(
|
|
12
20
|
query: WebsiteUserRoleListParams,
|
|
@@ -17,6 +25,21 @@ export class WebsiteUserRoles extends APIResource {
|
|
|
17
25
|
|
|
18
26
|
/**
|
|
19
27
|
* Assign roles to users for a specific website
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response =
|
|
32
|
+
* await client.websites.websiteUserRoles.assign({
|
|
33
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
34
|
+
* websiteUserRoles: [
|
|
35
|
+
* {
|
|
36
|
+
* roleType: 'WEBSITE_ADMIN',
|
|
37
|
+
* walletAddress:
|
|
38
|
+
* '0x1234567890abcdef1234567890abcdef12345678',
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
20
43
|
*/
|
|
21
44
|
assign(
|
|
22
45
|
body: WebsiteUserRoleAssignParams,
|
|
@@ -29,6 +29,13 @@ export class Websites extends APIResource {
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Creates a new website
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const website = await client.websites.create({
|
|
36
|
+
* name: 'My New Website',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
32
39
|
*/
|
|
33
40
|
create(body: WebsiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCreateResponse> {
|
|
34
41
|
return this._client.post('/api/websites', { body, ...options });
|
|
@@ -37,6 +44,11 @@ export class Websites extends APIResource {
|
|
|
37
44
|
/**
|
|
38
45
|
* Returns a list of websites. Includes optional query parameters for filtering and
|
|
39
46
|
* pagination.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const websites = await client.websites.list();
|
|
51
|
+
* ```
|
|
40
52
|
*/
|
|
41
53
|
list(query?: WebsiteListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
42
54
|
list(options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.57'; // 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.57";
|
|
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.57'; // 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.57'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|