@snagsolutions/sdk 0.1.0-alpha.15 → 0.1.0-alpha.16

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 (335) hide show
  1. package/CHANGELOG.md +23 -48
  2. package/README.md +12 -14
  3. package/_shims/index.d.ts +2 -0
  4. package/_shims/index.js +5 -1
  5. package/_shims/index.mjs +5 -1
  6. package/core.d.ts.map +1 -1
  7. package/core.js +2 -0
  8. package/core.js.map +1 -1
  9. package/core.mjs +3 -1
  10. package/core.mjs.map +1 -1
  11. package/index.d.mts +27 -6
  12. package/index.d.ts +27 -6
  13. package/index.d.ts.map +1 -1
  14. package/index.js +29 -8
  15. package/index.js.map +1 -1
  16. package/index.mjs +29 -8
  17. package/index.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/assets.d.ts +50 -0
  20. package/resources/assets.d.ts.map +1 -0
  21. package/resources/assets.js +17 -0
  22. package/resources/assets.js.map +1 -0
  23. package/resources/assets.mjs +13 -0
  24. package/resources/assets.mjs.map +1 -0
  25. package/resources/auctions.d.ts +134 -0
  26. package/resources/auctions.d.ts.map +1 -0
  27. package/resources/auctions.js +26 -0
  28. package/resources/auctions.js.map +1 -0
  29. package/resources/auctions.mjs +22 -0
  30. package/resources/auctions.mjs.map +1 -0
  31. package/resources/auth.d.ts +40 -0
  32. package/resources/auth.d.ts.map +1 -0
  33. package/resources/auth.js +16 -0
  34. package/resources/auth.js.map +1 -0
  35. package/resources/auth.mjs +12 -0
  36. package/resources/auth.mjs.map +1 -0
  37. package/resources/index.d.ts +8 -1
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +17 -3
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +8 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/{api/loyalty → loyalty}/accounts.d.ts +9 -10
  44. package/resources/loyalty/accounts.d.ts.map +1 -0
  45. package/resources/{api/loyalty → loyalty}/accounts.js +4 -4
  46. package/resources/loyalty/accounts.js.map +1 -0
  47. package/resources/{api/loyalty → loyalty}/accounts.mjs +4 -4
  48. package/resources/loyalty/accounts.mjs.map +1 -0
  49. package/resources/{api/loyalty → loyalty}/badges.d.ts +2 -2
  50. package/resources/loyalty/badges.d.ts.map +1 -0
  51. package/resources/{api/loyalty → loyalty}/badges.js +2 -2
  52. package/resources/loyalty/badges.js.map +1 -0
  53. package/resources/{api/loyalty → loyalty}/badges.mjs +2 -2
  54. package/resources/loyalty/badges.mjs.map +1 -0
  55. package/resources/{api/loyalty → loyalty}/currencies.d.ts +8 -2
  56. package/resources/loyalty/currencies.d.ts.map +1 -0
  57. package/resources/{api/loyalty → loyalty}/currencies.js +1 -1
  58. package/resources/loyalty/currencies.js.map +1 -0
  59. package/resources/{api/loyalty → loyalty}/currencies.mjs +1 -1
  60. package/resources/loyalty/currencies.mjs.map +1 -0
  61. package/resources/{api/loyalty → loyalty}/index.d.ts +4 -2
  62. package/resources/loyalty/index.d.ts.map +1 -0
  63. package/resources/{api/loyalty → loyalty}/index.js +5 -1
  64. package/resources/loyalty/index.js.map +1 -0
  65. package/resources/{api/loyalty → loyalty}/index.mjs +3 -1
  66. package/resources/loyalty/index.mjs.map +1 -0
  67. package/resources/loyalty/loyalty.d.ts +46 -0
  68. package/resources/loyalty/loyalty.d.ts.map +1 -0
  69. package/resources/{api/loyalty → loyalty}/loyalty.js +9 -20
  70. package/resources/loyalty/loyalty.js.map +1 -0
  71. package/resources/{api/loyalty → loyalty}/loyalty.mjs +9 -20
  72. package/resources/loyalty/loyalty.mjs.map +1 -0
  73. package/resources/{api/loyalty → loyalty}/multipliers.d.ts +26 -2
  74. package/resources/loyalty/multipliers.d.ts.map +1 -0
  75. package/resources/{api/loyalty → loyalty}/multipliers.js +2 -2
  76. package/resources/loyalty/multipliers.js.map +1 -0
  77. package/resources/{api/loyalty → loyalty}/multipliers.mjs +2 -2
  78. package/resources/loyalty/multipliers.mjs.map +1 -0
  79. package/resources/{api/loyalty → loyalty}/questions-responses.d.ts +2 -2
  80. package/resources/loyalty/questions-responses.d.ts.map +1 -0
  81. package/resources/{api/loyalty → loyalty}/questions-responses.js +2 -2
  82. package/resources/loyalty/questions-responses.js.map +1 -0
  83. package/resources/{api/loyalty → loyalty}/questions-responses.mjs +2 -2
  84. package/resources/loyalty/questions-responses.mjs.map +1 -0
  85. package/resources/{api/loyalty → loyalty}/questions.d.ts +2 -2
  86. package/resources/loyalty/questions.d.ts.map +1 -0
  87. package/resources/{api/loyalty → loyalty}/questions.js +1 -1
  88. package/resources/loyalty/questions.js.map +1 -0
  89. package/resources/{api/loyalty → loyalty}/questions.mjs +1 -1
  90. package/resources/loyalty/questions.mjs.map +1 -0
  91. package/resources/{api/loyalty → loyalty}/rule-edits.d.ts +2 -2
  92. package/resources/loyalty/rule-edits.d.ts.map +1 -0
  93. package/resources/{api/loyalty → loyalty}/rule-edits.js +1 -1
  94. package/resources/loyalty/rule-edits.js.map +1 -0
  95. package/resources/{api/loyalty → loyalty}/rule-edits.mjs +1 -1
  96. package/resources/loyalty/rule-edits.mjs.map +1 -0
  97. package/resources/{api/loyalty/loyalty.d.ts → loyalty/rule-groups.d.ts} +37 -285
  98. package/resources/loyalty/rule-groups.d.ts.map +1 -0
  99. package/resources/loyalty/rule-groups.js +16 -0
  100. package/resources/loyalty/rule-groups.js.map +1 -0
  101. package/resources/loyalty/rule-groups.mjs +12 -0
  102. package/resources/loyalty/rule-groups.mjs.map +1 -0
  103. package/resources/{api/loyalty → loyalty}/rules.d.ts +119 -14
  104. package/resources/loyalty/rules.d.ts.map +1 -0
  105. package/resources/{api/loyalty → loyalty}/rules.js +2 -2
  106. package/resources/loyalty/rules.js.map +1 -0
  107. package/resources/{api/loyalty → loyalty}/rules.mjs +2 -2
  108. package/resources/loyalty/rules.mjs.map +1 -0
  109. package/resources/loyalty/transactions.d.ts +248 -0
  110. package/resources/loyalty/transactions.d.ts.map +1 -0
  111. package/resources/loyalty/transactions.js +22 -0
  112. package/resources/loyalty/transactions.js.map +1 -0
  113. package/resources/loyalty/transactions.mjs +18 -0
  114. package/resources/loyalty/transactions.mjs.map +1 -0
  115. package/resources/loyalty.d.ts.map +1 -0
  116. package/resources/loyalty.js.map +1 -0
  117. package/resources/loyalty.mjs.map +1 -0
  118. package/resources/{api/minting.d.ts → minting.d.ts} +3 -3
  119. package/resources/minting.d.ts.map +1 -0
  120. package/resources/{api/minting.js → minting.js} +1 -1
  121. package/resources/minting.js.map +1 -0
  122. package/resources/{api/minting.mjs → minting.mjs} +1 -1
  123. package/resources/minting.mjs.map +1 -0
  124. package/resources/referral/index.d.ts.map +1 -0
  125. package/resources/referral/index.js.map +1 -0
  126. package/resources/referral/index.mjs.map +1 -0
  127. package/resources/{api/referral → referral}/referral.d.ts +2 -2
  128. package/resources/referral/referral.d.ts.map +1 -0
  129. package/resources/{api/referral → referral}/referral.js +2 -2
  130. package/resources/referral/referral.js.map +1 -0
  131. package/resources/{api/referral → referral}/referral.mjs +2 -2
  132. package/resources/referral/referral.mjs.map +1 -0
  133. package/resources/{api/referral → referral}/users.d.ts +2 -2
  134. package/resources/referral/users.d.ts.map +1 -0
  135. package/resources/{api/referral → referral}/users.js +1 -1
  136. package/resources/referral/users.js.map +1 -0
  137. package/resources/{api/referral → referral}/users.mjs +1 -1
  138. package/resources/referral/users.mjs.map +1 -0
  139. package/resources/referral.d.ts.map +1 -0
  140. package/resources/referral.js.map +1 -0
  141. package/resources/referral.mjs.map +1 -0
  142. package/resources/users/index.d.ts +3 -0
  143. package/resources/users/index.d.ts.map +1 -0
  144. package/resources/users/index.js.map +1 -0
  145. package/resources/users/index.mjs.map +1 -0
  146. package/resources/{api/users → users}/metadatas.d.ts +7 -2
  147. package/resources/users/metadatas.d.ts.map +1 -0
  148. package/resources/{api/users → users}/metadatas.js +2 -2
  149. package/resources/users/metadatas.js.map +1 -0
  150. package/resources/{api/users → users}/metadatas.mjs +2 -2
  151. package/resources/users/metadatas.mjs.map +1 -0
  152. package/resources/users/users.d.ts +304 -0
  153. package/resources/users/users.d.ts.map +1 -0
  154. package/resources/{api/users → users}/users.js +8 -1
  155. package/resources/users/users.js.map +1 -0
  156. package/resources/{api/users → users}/users.mjs +8 -1
  157. package/resources/users/users.mjs.map +1 -0
  158. package/resources/users.d.ts.map +1 -0
  159. package/resources/users.js.map +1 -0
  160. package/resources/users.mjs.map +1 -0
  161. package/resources/websites/index.d.ts +4 -0
  162. package/resources/websites/index.d.ts.map +1 -0
  163. package/resources/websites/index.js +11 -0
  164. package/resources/websites/index.js.map +1 -0
  165. package/resources/{api → websites}/index.mjs +0 -5
  166. package/resources/websites/index.mjs.map +1 -0
  167. package/resources/{api → websites}/website-collections.d.ts +1 -1
  168. package/resources/websites/website-collections.d.ts.map +1 -0
  169. package/resources/websites/website-collections.js.map +1 -0
  170. package/resources/websites/website-collections.mjs.map +1 -0
  171. package/resources/websites/website-user-roles.d.ts.map +1 -0
  172. package/resources/websites/website-user-roles.js.map +1 -0
  173. package/resources/websites/website-user-roles.mjs.map +1 -0
  174. package/resources/{api → websites}/websites.d.ts +8 -0
  175. package/resources/websites/websites.d.ts.map +1 -0
  176. package/resources/websites/websites.js +56 -0
  177. package/resources/websites/websites.js.map +1 -0
  178. package/resources/websites/websites.mjs +29 -0
  179. package/resources/websites/websites.mjs.map +1 -0
  180. package/resources/websites.d.ts +2 -0
  181. package/resources/websites.d.ts.map +1 -0
  182. package/resources/{api.js → websites.js} +2 -2
  183. package/resources/websites.js.map +1 -0
  184. package/resources/{api.mjs → websites.mjs} +2 -2
  185. package/resources/websites.mjs.map +1 -0
  186. package/src/_shims/index.d.ts +2 -0
  187. package/src/_shims/index.js +5 -1
  188. package/src/_shims/index.mjs +5 -1
  189. package/src/core.ts +6 -1
  190. package/src/index.ts +98 -23
  191. package/src/resources/assets.ts +77 -0
  192. package/src/resources/auctions.ts +209 -0
  193. package/src/resources/auth.ts +69 -0
  194. package/src/resources/index.ts +27 -8
  195. package/src/resources/{api/loyalty → loyalty}/accounts.ts +15 -17
  196. package/src/resources/{api/loyalty → loyalty}/badges.ts +3 -3
  197. package/src/resources/{api/loyalty → loyalty}/currencies.ts +8 -2
  198. package/src/resources/{api/loyalty → loyalty}/index.ts +15 -11
  199. package/src/resources/loyalty/loyalty.ts +225 -0
  200. package/src/resources/{api/loyalty → loyalty}/multipliers.ts +27 -3
  201. package/src/resources/{api/loyalty → loyalty}/questions-responses.ts +3 -3
  202. package/src/resources/{api/loyalty → loyalty}/questions.ts +2 -2
  203. package/src/resources/{api/loyalty → loyalty}/rule-edits.ts +2 -2
  204. package/src/resources/{api/loyalty/loyalty.ts → loyalty/rule-groups.ts} +62 -541
  205. package/src/resources/{api/loyalty → loyalty}/rules.ts +326 -183
  206. package/src/resources/loyalty/transactions.ts +332 -0
  207. package/src/resources/{api/minting.ts → minting.ts} +18 -17
  208. package/src/resources/{api/referral → referral}/referral.ts +3 -3
  209. package/src/resources/{api/referral → referral}/users.ts +2 -2
  210. package/src/resources/{api/users → users}/index.ts +2 -0
  211. package/src/resources/{api/users → users}/metadatas.ts +10 -3
  212. package/src/resources/users/users.ts +447 -0
  213. package/src/resources/websites/index.ts +22 -0
  214. package/src/resources/{api → websites}/website-collections.ts +16 -15
  215. package/src/resources/{api → websites}/websites.ts +40 -0
  216. package/src/resources/{api.ts → websites.ts} +1 -1
  217. package/src/version.ts +1 -1
  218. package/version.d.ts +1 -1
  219. package/version.js +1 -1
  220. package/version.mjs +1 -1
  221. package/resources/api/api.d.ts +0 -365
  222. package/resources/api/api.d.ts.map +0 -1
  223. package/resources/api/api.js +0 -94
  224. package/resources/api/api.js.map +0 -1
  225. package/resources/api/api.mjs +0 -67
  226. package/resources/api/api.mjs.map +0 -1
  227. package/resources/api/index.d.ts +0 -9
  228. package/resources/api/index.d.ts.map +0 -1
  229. package/resources/api/index.js +0 -21
  230. package/resources/api/index.js.map +0 -1
  231. package/resources/api/index.mjs.map +0 -1
  232. package/resources/api/loyalty/accounts.d.ts.map +0 -1
  233. package/resources/api/loyalty/accounts.js.map +0 -1
  234. package/resources/api/loyalty/accounts.mjs.map +0 -1
  235. package/resources/api/loyalty/badges.d.ts.map +0 -1
  236. package/resources/api/loyalty/badges.js.map +0 -1
  237. package/resources/api/loyalty/badges.mjs.map +0 -1
  238. package/resources/api/loyalty/currencies.d.ts.map +0 -1
  239. package/resources/api/loyalty/currencies.js.map +0 -1
  240. package/resources/api/loyalty/currencies.mjs.map +0 -1
  241. package/resources/api/loyalty/index.d.ts.map +0 -1
  242. package/resources/api/loyalty/index.js.map +0 -1
  243. package/resources/api/loyalty/index.mjs.map +0 -1
  244. package/resources/api/loyalty/loyalty.d.ts.map +0 -1
  245. package/resources/api/loyalty/loyalty.js.map +0 -1
  246. package/resources/api/loyalty/loyalty.mjs.map +0 -1
  247. package/resources/api/loyalty/multipliers.d.ts.map +0 -1
  248. package/resources/api/loyalty/multipliers.js.map +0 -1
  249. package/resources/api/loyalty/multipliers.mjs.map +0 -1
  250. package/resources/api/loyalty/questions-responses.d.ts.map +0 -1
  251. package/resources/api/loyalty/questions-responses.js.map +0 -1
  252. package/resources/api/loyalty/questions-responses.mjs.map +0 -1
  253. package/resources/api/loyalty/questions.d.ts.map +0 -1
  254. package/resources/api/loyalty/questions.js.map +0 -1
  255. package/resources/api/loyalty/questions.mjs.map +0 -1
  256. package/resources/api/loyalty/rule-edits.d.ts.map +0 -1
  257. package/resources/api/loyalty/rule-edits.js.map +0 -1
  258. package/resources/api/loyalty/rule-edits.mjs.map +0 -1
  259. package/resources/api/loyalty/rules.d.ts.map +0 -1
  260. package/resources/api/loyalty/rules.js.map +0 -1
  261. package/resources/api/loyalty/rules.mjs.map +0 -1
  262. package/resources/api/loyalty.d.ts.map +0 -1
  263. package/resources/api/loyalty.js.map +0 -1
  264. package/resources/api/loyalty.mjs.map +0 -1
  265. package/resources/api/minting.d.ts.map +0 -1
  266. package/resources/api/minting.js.map +0 -1
  267. package/resources/api/minting.mjs.map +0 -1
  268. package/resources/api/referral/index.d.ts.map +0 -1
  269. package/resources/api/referral/index.js.map +0 -1
  270. package/resources/api/referral/index.mjs.map +0 -1
  271. package/resources/api/referral/referral.d.ts.map +0 -1
  272. package/resources/api/referral/referral.js.map +0 -1
  273. package/resources/api/referral/referral.mjs.map +0 -1
  274. package/resources/api/referral/users.d.ts.map +0 -1
  275. package/resources/api/referral/users.js.map +0 -1
  276. package/resources/api/referral/users.mjs.map +0 -1
  277. package/resources/api/referral.d.ts.map +0 -1
  278. package/resources/api/referral.js.map +0 -1
  279. package/resources/api/referral.mjs.map +0 -1
  280. package/resources/api/users/index.d.ts +0 -3
  281. package/resources/api/users/index.d.ts.map +0 -1
  282. package/resources/api/users/index.js.map +0 -1
  283. package/resources/api/users/index.mjs.map +0 -1
  284. package/resources/api/users/metadatas.d.ts.map +0 -1
  285. package/resources/api/users/metadatas.js.map +0 -1
  286. package/resources/api/users/metadatas.mjs.map +0 -1
  287. package/resources/api/users/users.d.ts +0 -133
  288. package/resources/api/users/users.d.ts.map +0 -1
  289. package/resources/api/users/users.js.map +0 -1
  290. package/resources/api/users/users.mjs.map +0 -1
  291. package/resources/api/users.d.ts.map +0 -1
  292. package/resources/api/users.js.map +0 -1
  293. package/resources/api/users.mjs.map +0 -1
  294. package/resources/api/website-collections.d.ts.map +0 -1
  295. package/resources/api/website-collections.js.map +0 -1
  296. package/resources/api/website-collections.mjs.map +0 -1
  297. package/resources/api/website-user-roles.d.ts.map +0 -1
  298. package/resources/api/website-user-roles.js.map +0 -1
  299. package/resources/api/website-user-roles.mjs.map +0 -1
  300. package/resources/api/websites.d.ts.map +0 -1
  301. package/resources/api/websites.js +0 -22
  302. package/resources/api/websites.js.map +0 -1
  303. package/resources/api/websites.mjs +0 -18
  304. package/resources/api/websites.mjs.map +0 -1
  305. package/resources/api.d.ts +0 -2
  306. package/resources/api.d.ts.map +0 -1
  307. package/resources/api.js.map +0 -1
  308. package/resources/api.mjs.map +0 -1
  309. package/src/resources/api/api.ts +0 -629
  310. package/src/resources/api/index.ts +0 -51
  311. package/src/resources/api/users/users.ts +0 -203
  312. /package/resources/{api/loyalty.d.ts → loyalty.d.ts} +0 -0
  313. /package/resources/{api/loyalty.js → loyalty.js} +0 -0
  314. /package/resources/{api/loyalty.mjs → loyalty.mjs} +0 -0
  315. /package/resources/{api/referral → referral}/index.d.ts +0 -0
  316. /package/resources/{api/referral → referral}/index.js +0 -0
  317. /package/resources/{api/referral → referral}/index.mjs +0 -0
  318. /package/resources/{api/referral.d.ts → referral.d.ts} +0 -0
  319. /package/resources/{api/referral.js → referral.js} +0 -0
  320. /package/resources/{api/referral.mjs → referral.mjs} +0 -0
  321. /package/resources/{api/users → users}/index.js +0 -0
  322. /package/resources/{api/users → users}/index.mjs +0 -0
  323. /package/resources/{api/users.d.ts → users.d.ts} +0 -0
  324. /package/resources/{api/users.js → users.js} +0 -0
  325. /package/resources/{api/users.mjs → users.mjs} +0 -0
  326. /package/resources/{api → websites}/website-collections.js +0 -0
  327. /package/resources/{api → websites}/website-collections.mjs +0 -0
  328. /package/resources/{api → websites}/website-user-roles.d.ts +0 -0
  329. /package/resources/{api → websites}/website-user-roles.js +0 -0
  330. /package/resources/{api → websites}/website-user-roles.mjs +0 -0
  331. /package/src/resources/{api/loyalty.ts → loyalty.ts} +0 -0
  332. /package/src/resources/{api/referral → referral}/index.ts +0 -0
  333. /package/src/resources/{api/referral.ts → referral.ts} +0 -0
  334. /package/src/resources/{api/users.ts → users.ts} +0 -0
  335. /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
- | 'mainnet'
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
- | 'solana'
77
- | 'apechain'
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
  }
@@ -1,3 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export * from './api/index';
3
+ export * from './websites/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.15'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.16'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.15";
1
+ export declare const VERSION = "0.1.0-alpha.16";
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.15'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.16'; // 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.15'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.16'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map