@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.
Files changed (161) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/package.json +1 -1
  3. package/resources/assets.d.ts +8 -0
  4. package/resources/assets.d.ts.map +1 -1
  5. package/resources/assets.js +8 -0
  6. package/resources/assets.js.map +1 -1
  7. package/resources/assets.mjs +8 -0
  8. package/resources/assets.mjs.map +1 -1
  9. package/resources/auctions/auctions.d.ts +19 -0
  10. package/resources/auctions/auctions.d.ts.map +1 -1
  11. package/resources/auctions/auctions.js +14 -0
  12. package/resources/auctions/auctions.js.map +1 -1
  13. package/resources/auctions/auctions.mjs +14 -0
  14. package/resources/auctions/auctions.mjs.map +1 -1
  15. package/resources/auctions/website-user-attributes/values.d.ts +28 -0
  16. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
  17. package/resources/auctions/website-user-attributes/values.js +28 -0
  18. package/resources/auctions/website-user-attributes/values.js.map +1 -1
  19. package/resources/auctions/website-user-attributes/values.mjs +28 -0
  20. package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
  21. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +24 -0
  22. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
  23. package/resources/auctions/website-user-attributes/website-user-attributes.js +18 -0
  24. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
  25. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +18 -0
  26. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
  27. package/resources/loyalty/accounts.d.ts +18 -0
  28. package/resources/loyalty/accounts.d.ts.map +1 -1
  29. package/resources/loyalty/accounts.js +13 -0
  30. package/resources/loyalty/accounts.js.map +1 -1
  31. package/resources/loyalty/accounts.mjs +13 -0
  32. package/resources/loyalty/accounts.mjs.map +1 -1
  33. package/resources/loyalty/badges.d.ts +44 -0
  34. package/resources/loyalty/badges.d.ts.map +1 -1
  35. package/resources/loyalty/badges.js +18 -0
  36. package/resources/loyalty/badges.js.map +1 -1
  37. package/resources/loyalty/badges.mjs +18 -0
  38. package/resources/loyalty/badges.mjs.map +1 -1
  39. package/resources/loyalty/currencies.d.ts +19 -0
  40. package/resources/loyalty/currencies.d.ts.map +1 -1
  41. package/resources/loyalty/currencies.js +19 -0
  42. package/resources/loyalty/currencies.js.map +1 -1
  43. package/resources/loyalty/currencies.mjs +19 -0
  44. package/resources/loyalty/currencies.mjs.map +1 -1
  45. package/resources/loyalty/multipliers.d.ts +35 -0
  46. package/resources/loyalty/multipliers.d.ts.map +1 -1
  47. package/resources/loyalty/multipliers.js +23 -0
  48. package/resources/loyalty/multipliers.js.map +1 -1
  49. package/resources/loyalty/multipliers.mjs +23 -0
  50. package/resources/loyalty/multipliers.mjs.map +1 -1
  51. package/resources/loyalty/questions-responses.d.ts +15 -0
  52. package/resources/loyalty/questions-responses.d.ts.map +1 -1
  53. package/resources/loyalty/questions-responses.js +9 -0
  54. package/resources/loyalty/questions-responses.js.map +1 -1
  55. package/resources/loyalty/questions-responses.mjs +9 -0
  56. package/resources/loyalty/questions-responses.mjs.map +1 -1
  57. package/resources/loyalty/questions.d.ts +33 -0
  58. package/resources/loyalty/questions.d.ts.map +1 -1
  59. package/resources/loyalty/questions.js +33 -0
  60. package/resources/loyalty/questions.js.map +1 -1
  61. package/resources/loyalty/questions.mjs +33 -0
  62. package/resources/loyalty/questions.mjs.map +1 -1
  63. package/resources/loyalty/rule-edits.d.ts +22 -8
  64. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  65. package/resources/loyalty/rule-edits.js +14 -0
  66. package/resources/loyalty/rule-edits.js.map +1 -1
  67. package/resources/loyalty/rule-edits.mjs +14 -0
  68. package/resources/loyalty/rule-edits.mjs.map +1 -1
  69. package/resources/loyalty/rule-groups.d.ts +35 -3
  70. package/resources/loyalty/rule-groups.d.ts.map +1 -1
  71. package/resources/loyalty/rule-groups.js +18 -0
  72. package/resources/loyalty/rule-groups.js.map +1 -1
  73. package/resources/loyalty/rule-groups.mjs +18 -0
  74. package/resources/loyalty/rule-groups.mjs.map +1 -1
  75. package/resources/loyalty/rules.d.ts +76 -21
  76. package/resources/loyalty/rules.d.ts.map +1 -1
  77. package/resources/loyalty/rules.js +30 -0
  78. package/resources/loyalty/rules.js.map +1 -1
  79. package/resources/loyalty/rules.mjs +30 -0
  80. package/resources/loyalty/rules.mjs.map +1 -1
  81. package/resources/loyalty/transactions/rule-statuses.d.ts +14 -0
  82. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
  83. package/resources/loyalty/transactions/rule-statuses.js +8 -0
  84. package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
  85. package/resources/loyalty/transactions/rule-statuses.mjs +8 -0
  86. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
  87. package/resources/loyalty/transactions/transactions.d.ts +26 -1
  88. package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
  89. package/resources/loyalty/transactions/transactions.js +18 -0
  90. package/resources/loyalty/transactions/transactions.js.map +1 -1
  91. package/resources/loyalty/transactions/transactions.mjs +18 -0
  92. package/resources/loyalty/transactions/transactions.mjs.map +1 -1
  93. package/resources/minting.d.ts +1 -1
  94. package/resources/minting.d.ts.map +1 -1
  95. package/resources/referral/referral.d.ts +7 -0
  96. package/resources/referral/referral.d.ts.map +1 -1
  97. package/resources/referral/referral.js +7 -0
  98. package/resources/referral/referral.js.map +1 -1
  99. package/resources/referral/referral.mjs +7 -0
  100. package/resources/referral/referral.mjs.map +1 -1
  101. package/resources/referral/users.d.ts +14 -0
  102. package/resources/referral/users.d.ts.map +1 -1
  103. package/resources/referral/users.js +14 -0
  104. package/resources/referral/users.js.map +1 -1
  105. package/resources/referral/users.mjs +14 -0
  106. package/resources/referral/users.mjs.map +1 -1
  107. package/resources/users/metadatas.d.ts +10 -0
  108. package/resources/users/metadatas.d.ts.map +1 -1
  109. package/resources/users/metadatas.js.map +1 -1
  110. package/resources/users/metadatas.mjs.map +1 -1
  111. package/resources/users/users.d.ts +48 -0
  112. package/resources/users/users.d.ts.map +1 -1
  113. package/resources/users/users.js +43 -0
  114. package/resources/users/users.js.map +1 -1
  115. package/resources/users/users.mjs +43 -0
  116. package/resources/users/users.mjs.map +1 -1
  117. package/resources/websites/website-collections.d.ts +22 -1
  118. package/resources/websites/website-collections.d.ts.map +1 -1
  119. package/resources/websites/website-collections.js +21 -0
  120. package/resources/websites/website-collections.js.map +1 -1
  121. package/resources/websites/website-collections.mjs +21 -0
  122. package/resources/websites/website-collections.mjs.map +1 -1
  123. package/resources/websites/website-user-roles.d.ts +23 -0
  124. package/resources/websites/website-user-roles.d.ts.map +1 -1
  125. package/resources/websites/website-user-roles.js +23 -0
  126. package/resources/websites/website-user-roles.js.map +1 -1
  127. package/resources/websites/website-user-roles.mjs +23 -0
  128. package/resources/websites/website-user-roles.mjs.map +1 -1
  129. package/resources/websites/websites.d.ts +12 -0
  130. package/resources/websites/websites.d.ts.map +1 -1
  131. package/resources/websites/websites.js +7 -0
  132. package/resources/websites/websites.js.map +1 -1
  133. package/resources/websites/websites.mjs +7 -0
  134. package/resources/websites/websites.mjs.map +1 -1
  135. package/src/resources/assets.ts +8 -0
  136. package/src/resources/auctions/auctions.ts +19 -0
  137. package/src/resources/auctions/website-user-attributes/values.ts +28 -0
  138. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +24 -0
  139. package/src/resources/loyalty/accounts.ts +18 -0
  140. package/src/resources/loyalty/badges.ts +44 -0
  141. package/src/resources/loyalty/currencies.ts +19 -0
  142. package/src/resources/loyalty/multipliers.ts +35 -0
  143. package/src/resources/loyalty/questions-responses.ts +15 -0
  144. package/src/resources/loyalty/questions.ts +33 -0
  145. package/src/resources/loyalty/rule-edits.ts +22 -0
  146. package/src/resources/loyalty/rule-groups.ts +35 -0
  147. package/src/resources/loyalty/rules.ts +76 -1
  148. package/src/resources/loyalty/transactions/rule-statuses.ts +14 -0
  149. package/src/resources/loyalty/transactions/transactions.ts +28 -0
  150. package/src/resources/minting.ts +1 -0
  151. package/src/resources/referral/referral.ts +7 -0
  152. package/src/resources/referral/users.ts +14 -0
  153. package/src/resources/users/metadatas.ts +10 -0
  154. package/src/resources/users/users.ts +48 -0
  155. package/src/resources/websites/website-collections.ts +22 -0
  156. package/src/resources/websites/website-user-roles.ts +23 -0
  157. package/src/resources/websites/websites.ts +12 -0
  158. package/src/version.ts +1 -1
  159. package/version.d.ts +1 -1
  160. package/version.js +1 -1
  161. 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.55'; // x-release-please-version
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.55";
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.55'; // x-release-please-version
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.55'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.57'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map