@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,332 @@
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
+
7
+ export class Transactions extends APIResource {
8
+ /**
9
+ * Create a loyalty transaction to update account balances.
10
+ */
11
+ createTransaction(
12
+ body: TransactionCreateTransactionParams,
13
+ options?: Core.RequestOptions,
14
+ ): Core.APIPromise<TransactionCreateTransactionResponse> {
15
+ return this._client.post('/api/loyalty/transactions', { body, ...options });
16
+ }
17
+
18
+ /**
19
+ * Fetch loyalty transaction entries for wallets or users, representing account
20
+ * balance changes.
21
+ */
22
+ getTransactionEntries(
23
+ query?: TransactionGetTransactionEntriesParams,
24
+ options?: Core.RequestOptions,
25
+ ): Core.APIPromise<TransactionGetTransactionEntriesResponse>;
26
+ getTransactionEntries(
27
+ options?: Core.RequestOptions,
28
+ ): Core.APIPromise<TransactionGetTransactionEntriesResponse>;
29
+ getTransactionEntries(
30
+ query: TransactionGetTransactionEntriesParams | Core.RequestOptions = {},
31
+ options?: Core.RequestOptions,
32
+ ): Core.APIPromise<TransactionGetTransactionEntriesResponse> {
33
+ if (isRequestOptions(query)) {
34
+ return this.getTransactionEntries({}, query);
35
+ }
36
+ return this._client.get('/api/loyalty/transaction_entries', { query, ...options });
37
+ }
38
+ }
39
+
40
+ export interface TransactionCreateTransactionResponse {
41
+ id: string;
42
+
43
+ createdAt: string;
44
+
45
+ description: string;
46
+
47
+ entries: Array<TransactionCreateTransactionResponse.Entry>;
48
+
49
+ updatedAt: string;
50
+ }
51
+
52
+ export namespace TransactionCreateTransactionResponse {
53
+ export interface Entry {
54
+ amount: number;
55
+
56
+ /**
57
+ * Direction of the transaction entry
58
+ */
59
+ direction: 'credit' | 'debit';
60
+
61
+ walletAddress: string;
62
+
63
+ idempotencyKey?: string;
64
+ }
65
+ }
66
+
67
+ export interface TransactionGetTransactionEntriesResponse {
68
+ data: Array<TransactionGetTransactionEntriesResponse.Data>;
69
+
70
+ hasNextPage: boolean;
71
+ }
72
+
73
+ export namespace TransactionGetTransactionEntriesResponse {
74
+ /**
75
+ * Schema for a loyalty transaction entry
76
+ */
77
+ export interface Data {
78
+ /**
79
+ * Unique identifier for the transaction entry
80
+ */
81
+ id: string;
82
+
83
+ /**
84
+ * Amount involved in the transaction
85
+ */
86
+ amount: number;
87
+
88
+ /**
89
+ * Timestamp when the transaction entry was created
90
+ */
91
+ createdAt: string;
92
+
93
+ /**
94
+ * Direction of the transaction entry
95
+ */
96
+ direction: 'credit' | 'debit';
97
+
98
+ /**
99
+ * Unique identifier for the loyalty account
100
+ */
101
+ loyaltyAccountId: string;
102
+
103
+ /**
104
+ * Details of the loyalty transaction
105
+ */
106
+ loyaltyTransaction: Data.LoyaltyTransaction;
107
+
108
+ /**
109
+ * Unique identifier for the organization
110
+ */
111
+ organizationId: string;
112
+
113
+ /**
114
+ * Type of the loyalty transaction
115
+ */
116
+ type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
117
+
118
+ /**
119
+ * Timestamp when the transaction entry was last updated
120
+ */
121
+ updatedAt: string;
122
+
123
+ /**
124
+ * Unique identifier for the website
125
+ */
126
+ websiteId: string;
127
+
128
+ /**
129
+ * Optional metadata for the transaction entry
130
+ */
131
+ metadata?: Record<string, unknown>;
132
+ }
133
+
134
+ export namespace Data {
135
+ /**
136
+ * Details of the loyalty transaction
137
+ */
138
+ export interface LoyaltyTransaction {
139
+ /**
140
+ * Unique identifier for the loyalty transaction
141
+ */
142
+ id: string;
143
+
144
+ /**
145
+ * Type of the loyalty transaction
146
+ */
147
+ type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
148
+
149
+ /**
150
+ * Details of the loyalty rule associated with the transaction
151
+ */
152
+ loyaltyRule?: LoyaltyTransaction.LoyaltyRule;
153
+ }
154
+
155
+ export namespace LoyaltyTransaction {
156
+ /**
157
+ * Details of the loyalty rule associated with the transaction
158
+ */
159
+ export interface LoyaltyRule {
160
+ /**
161
+ * Unique identifier for the loyalty rule
162
+ */
163
+ id: string;
164
+
165
+ /**
166
+ * Type of the loyalty rule
167
+ */
168
+ type: string;
169
+
170
+ /**
171
+ * Description of the loyalty rule
172
+ */
173
+ description?: string;
174
+
175
+ /**
176
+ * Optional metadata for the loyalty rule
177
+ */
178
+ metadata?: Record<string, unknown>;
179
+
180
+ /**
181
+ * Name of the loyalty rule
182
+ */
183
+ name?: string;
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ export interface TransactionCreateTransactionParams {
190
+ /**
191
+ * Description of the loyalty transaction
192
+ */
193
+ description: string;
194
+
195
+ /**
196
+ * Array of transaction entries
197
+ */
198
+ entries: Array<TransactionCreateTransactionParams.Entry>;
199
+
200
+ /**
201
+ * Unique identifier for the loyalty currency
202
+ */
203
+ loyaltyCurrencyId?: string;
204
+ }
205
+
206
+ export namespace TransactionCreateTransactionParams {
207
+ export interface Entry {
208
+ /**
209
+ * Transaction entry amount.
210
+ */
211
+ amount: number;
212
+
213
+ /**
214
+ * Direction of the transaction entry for this wallet address
215
+ */
216
+ direction?: 'credit' | 'debit';
217
+
218
+ /**
219
+ * Idempotency key for the transaction entry. Creation will fail if already exists
220
+ * for this wallet address.
221
+ */
222
+ idempotencyKey?: string;
223
+
224
+ /**
225
+ * The wallet address of the user
226
+ */
227
+ walletAddress?: string;
228
+ }
229
+ }
230
+
231
+ export interface TransactionGetTransactionEntriesParams {
232
+ /**
233
+ * End date to filter by (exclusive, less than)
234
+ */
235
+ createdAtEnd?: string;
236
+
237
+ /**
238
+ * Start date to filter by (inclusive, greater than or equal to)
239
+ */
240
+ createdAtStart?: string;
241
+
242
+ /**
243
+ * Direction of the transaction entry to filter by
244
+ */
245
+ direction?: 'credit' | 'debit';
246
+
247
+ /**
248
+ * Key to ensure idempotency of the request
249
+ */
250
+ idempotencyKey?: string;
251
+
252
+ /**
253
+ * Maximum number of records to return (max 1000)
254
+ */
255
+ limit?: number;
256
+
257
+ /**
258
+ * Unique identifier for the loyalty rule to filter by
259
+ */
260
+ loyaltyRuleId?: string;
261
+
262
+ /**
263
+ * Unique identifier for the loyalty transaction to filter by
264
+ */
265
+ loyaltyTransactionId?: string;
266
+
267
+ /**
268
+ * Field to order the results by
269
+ */
270
+ orderBy?: 'createdAt' | 'updatedAt' | 'loyaltyAccountLockVersion';
271
+
272
+ /**
273
+ * Unique identifier for the organization to filter by
274
+ */
275
+ organizationId?: string;
276
+
277
+ /**
278
+ * Pagination cursor to start after a specific resource ID
279
+ */
280
+ startingAfter?: string;
281
+
282
+ /**
283
+ * Type of the loyalty transaction to filter by
284
+ */
285
+ type?: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
286
+
287
+ /**
288
+ * When passed in return the list of fulfilled entries for loyalty rules. If a
289
+ * loyalty rule has a fulfilled entry this means the user cannot currently complete
290
+ * the rule. Must be passed in with userId or walletAddress.
291
+ */
292
+ userCompletedLoyaltyRuleId?: string | Array<string>;
293
+
294
+ /**
295
+ * External identifier for the user group controlled by you
296
+ */
297
+ userGroupExternalIdentifier?: string;
298
+
299
+ /**
300
+ * Unique identifier for the user group
301
+ */
302
+ userGroupId?: string;
303
+
304
+ /**
305
+ * User ID or array of User IDs to filter by
306
+ */
307
+ userId?: string | Array<string>;
308
+
309
+ /**
310
+ * Wallet address or array of wallet addresses to filter by
311
+ */
312
+ walletAddress?: string | Array<string>;
313
+
314
+ /**
315
+ * Identifier for the wallet group to filter by
316
+ */
317
+ walletGroupIdentifier?: string;
318
+
319
+ /**
320
+ * Unique identifier for the website to filter by
321
+ */
322
+ websiteId?: string;
323
+ }
324
+
325
+ export declare namespace Transactions {
326
+ export {
327
+ type TransactionCreateTransactionResponse as TransactionCreateTransactionResponse,
328
+ type TransactionGetTransactionEntriesResponse as TransactionGetTransactionEntriesResponse,
329
+ type TransactionCreateTransactionParams as TransactionCreateTransactionParams,
330
+ type TransactionGetTransactionEntriesParams as TransactionGetTransactionEntriesParams,
331
+ };
332
+ }
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../resource';
4
- import * as Core from '../../core';
3
+ import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
5
 
6
6
  export class Minting extends APIResource {
7
7
  /**
@@ -89,31 +89,32 @@ export interface MintingGetAssetsParams {
89
89
  * Network
90
90
  */
91
91
  network?:
92
- | 'mainnet'
93
- | 'polygon'
94
- | 'polygon_mumbai'
95
- | 'optimism'
92
+ | 'apechain'
96
93
  | 'arbitrum'
97
- | 'binance'
98
- | 'bscTestnet'
99
94
  | 'avalanche'
100
95
  | 'avalancheFuji'
101
- | 'zksync'
102
- | 'fantom'
103
- | 'fantomTestnet'
104
96
  | 'base'
105
97
  | 'baseSepolia'
106
- | 'skaleNebula'
107
- | 'xai'
108
98
  | 'berachainArtio'
109
- | 'solana'
110
- | 'apechain'
111
- | 'flowMainnet'
99
+ | 'binance'
100
+ | 'bscTestnet'
112
101
  | 'campTestnet'
102
+ | 'fantom'
103
+ | 'fantomTestnet'
104
+ | 'flowMainnet'
105
+ | 'mainnet'
106
+ | 'optimism'
107
+ | 'polygon'
108
+ | 'polygon_mumbai'
109
+ | 'skaleNebula'
110
+ | 'solana'
111
+ | 'sophon'
113
112
  | 'sui'
114
- | 'vanar'
115
113
  | 'superseed'
116
114
  | 'superseedSepolia'
115
+ | 'vanar'
116
+ | 'xai'
117
+ | 'zksync'
117
118
  | 'sepolia'
118
119
  | 'optimism_sepolia'
119
120
  | 'arbitrumSepolia'
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../../resource';
4
- import { isRequestOptions } from '../../../core';
5
- import * as Core from '../../../core';
3
+ import { APIResource } from '../../resource';
4
+ import { isRequestOptions } from '../../core';
5
+ import * as Core from '../../core';
6
6
  import * as UsersAPI from './users';
7
7
  import { UserCreateParams, UserCreateResponse, UserListParams, UserListResponse, Users } from './users';
8
8
 
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../../resource';
4
- import * as Core from '../../../core';
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
5
 
6
6
  export class Users extends APIResource {
7
7
  /**
@@ -9,9 +9,11 @@ export {
9
9
  } from './metadatas';
10
10
  export {
11
11
  Users,
12
+ type UserListResponse,
12
13
  type UserConnectResponse,
13
14
  type UserCountResponse,
14
15
  type UserDisconnectResponse,
16
+ type UserListParams,
15
17
  type UserConnectParams,
16
18
  type UserCountParams,
17
19
  type UserDisconnectParams,
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../../resource';
4
- import { isRequestOptions } from '../../../core';
5
- import * as Core from '../../../core';
3
+ import { APIResource } from '../../resource';
4
+ import { isRequestOptions } from '../../core';
5
+ import * as Core from '../../core';
6
6
 
7
7
  export class Metadatas extends APIResource {
8
8
  /**
@@ -36,6 +36,9 @@ export class Metadatas extends APIResource {
36
36
  }
37
37
  }
38
38
 
39
+ /**
40
+ * Schema for a user metadata
41
+ */
39
42
  export interface MetadataCreateResponse {
40
43
  /**
41
44
  * Unique identifier for the user metadata
@@ -136,6 +139,8 @@ export interface MetadataCreateParams {
136
139
 
137
140
  logoUrl?: string | null;
138
141
 
142
+ organizationId?: string;
143
+
139
144
  stardustProfileIdentifier?: string | null;
140
145
 
141
146
  stardustWalletIdentifier?: string | null;
@@ -157,6 +162,8 @@ export interface MetadataCreateParams {
157
162
  walletAddress?: string;
158
163
 
159
164
  walletGroupIdentifier?: string | null;
165
+
166
+ websiteId?: string;
160
167
  }
161
168
 
162
169
  export interface MetadataListParams {