@snagsolutions/sdk 0.1.0-alpha.14 → 0.1.0-alpha.140

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 (449) hide show
  1. package/CHANGELOG.md +1170 -0
  2. package/README.md +23 -27
  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 +19 -5
  7. package/core.d.ts.map +1 -1
  8. package/core.js +28 -18
  9. package/core.js.map +1 -1
  10. package/core.mjs +29 -19
  11. package/core.mjs.map +1 -1
  12. package/index.d.mts +20 -11
  13. package/index.d.ts +20 -11
  14. package/index.d.ts.map +1 -1
  15. package/index.js +21 -11
  16. package/index.js.map +1 -1
  17. package/index.mjs +22 -12
  18. package/index.mjs.map +1 -1
  19. package/package.json +11 -33
  20. package/resource.d.ts +1 -1
  21. package/resource.d.ts.map +1 -1
  22. package/resource.js.map +1 -1
  23. package/resource.mjs.map +1 -1
  24. package/resources/assets.d.ts +64 -0
  25. package/resources/assets.d.ts.map +1 -0
  26. package/resources/assets.js +25 -0
  27. package/resources/assets.js.map +1 -0
  28. package/resources/assets.mjs +21 -0
  29. package/resources/assets.mjs.map +1 -0
  30. package/resources/auctions/auctions.d.ts +285 -0
  31. package/resources/auctions/auctions.d.ts.map +1 -0
  32. package/resources/auctions/auctions.js +76 -0
  33. package/resources/auctions/auctions.js.map +1 -0
  34. package/resources/auctions/auctions.mjs +49 -0
  35. package/resources/auctions/auctions.mjs.map +1 -0
  36. package/resources/auctions/index.d.ts +3 -0
  37. package/resources/auctions/index.d.ts.map +1 -0
  38. package/resources/auctions/index.js +9 -0
  39. package/resources/auctions/index.js.map +1 -0
  40. package/resources/auctions/index.mjs +4 -0
  41. package/resources/auctions/index.mjs.map +1 -0
  42. package/resources/auctions/website-user-attributes/index.d.ts +3 -0
  43. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
  44. package/resources/auctions/website-user-attributes/index.js +9 -0
  45. package/resources/auctions/website-user-attributes/index.js.map +1 -0
  46. package/resources/auctions/website-user-attributes/index.mjs +4 -0
  47. package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
  48. package/resources/auctions/website-user-attributes/values.d.ts +122 -0
  49. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
  50. package/resources/auctions/website-user-attributes/values.js +49 -0
  51. package/resources/auctions/website-user-attributes/values.js.map +1 -0
  52. package/resources/auctions/website-user-attributes/values.mjs +45 -0
  53. package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
  54. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +132 -0
  55. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
  56. package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
  57. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
  58. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
  59. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
  60. package/resources/auctions/website-user-attributes.d.ts +2 -0
  61. package/resources/auctions/website-user-attributes.d.ts.map +1 -0
  62. package/resources/auctions/website-user-attributes.js +19 -0
  63. package/resources/auctions/website-user-attributes.js.map +1 -0
  64. package/resources/auctions/website-user-attributes.mjs +3 -0
  65. package/resources/auctions/website-user-attributes.mjs.map +1 -0
  66. package/resources/auctions.d.ts +2 -0
  67. package/resources/auctions.d.ts.map +1 -0
  68. package/resources/auctions.js +19 -0
  69. package/resources/auctions.js.map +1 -0
  70. package/resources/auctions.mjs +3 -0
  71. package/resources/auctions.mjs.map +1 -0
  72. package/resources/auth.d.ts +44 -0
  73. package/resources/auth.d.ts.map +1 -0
  74. package/resources/auth.js +16 -0
  75. package/resources/auth.js.map +1 -0
  76. package/resources/auth.mjs +12 -0
  77. package/resources/auth.mjs.map +1 -0
  78. package/resources/index.d.ts +7 -5
  79. package/resources/index.d.ts.map +1 -1
  80. package/resources/index.js +11 -7
  81. package/resources/index.js.map +1 -1
  82. package/resources/index.mjs +7 -5
  83. package/resources/index.mjs.map +1 -1
  84. package/resources/loyalty/account-streaks.d.ts +81 -0
  85. package/resources/loyalty/account-streaks.d.ts.map +1 -0
  86. package/resources/loyalty/account-streaks.js +24 -0
  87. package/resources/loyalty/account-streaks.js.map +1 -0
  88. package/resources/loyalty/account-streaks.mjs +20 -0
  89. package/resources/loyalty/account-streaks.mjs.map +1 -0
  90. package/resources/loyalty/accounts.d.ts +200 -0
  91. package/resources/loyalty/accounts.d.ts.map +1 -1
  92. package/resources/loyalty/accounts.js +28 -0
  93. package/resources/loyalty/accounts.js.map +1 -1
  94. package/resources/loyalty/accounts.mjs +28 -0
  95. package/resources/loyalty/accounts.mjs.map +1 -1
  96. package/resources/loyalty/badges.d.ts +471 -33
  97. package/resources/loyalty/badges.d.ts.map +1 -1
  98. package/resources/loyalty/badges.js +19 -1
  99. package/resources/loyalty/badges.js.map +1 -1
  100. package/resources/loyalty/badges.mjs +19 -1
  101. package/resources/loyalty/badges.mjs.map +1 -1
  102. package/resources/loyalty/currencies.d.ts +25 -0
  103. package/resources/loyalty/currencies.d.ts.map +1 -1
  104. package/resources/loyalty/currencies.js +19 -0
  105. package/resources/loyalty/currencies.js.map +1 -1
  106. package/resources/loyalty/currencies.mjs +19 -0
  107. package/resources/loyalty/currencies.mjs.map +1 -1
  108. package/resources/loyalty/index.d.ts +9 -5
  109. package/resources/loyalty/index.d.ts.map +1 -1
  110. package/resources/loyalty/index.js +11 -3
  111. package/resources/loyalty/index.js.map +1 -1
  112. package/resources/loyalty/index.mjs +6 -2
  113. package/resources/loyalty/index.mjs.map +1 -1
  114. package/resources/loyalty/loyalty.d.ts +33 -17
  115. package/resources/loyalty/loyalty.d.ts.map +1 -1
  116. package/resources/loyalty/loyalty.js +28 -12
  117. package/resources/loyalty/loyalty.js.map +1 -1
  118. package/resources/loyalty/loyalty.mjs +29 -13
  119. package/resources/loyalty/loyalty.mjs.map +1 -1
  120. package/resources/loyalty/multipliers.d.ts +76 -8
  121. package/resources/loyalty/multipliers.d.ts.map +1 -1
  122. package/resources/loyalty/multipliers.js +30 -1
  123. package/resources/loyalty/multipliers.js.map +1 -1
  124. package/resources/loyalty/multipliers.mjs +30 -1
  125. package/resources/loyalty/multipliers.mjs.map +1 -1
  126. package/resources/loyalty/{transaction-entries/questions-responses.d.ts → questions-responses.d.ts} +41 -2
  127. package/resources/loyalty/questions-responses.d.ts.map +1 -0
  128. package/resources/loyalty/{transaction-entries/questions-responses.js → questions-responses.js} +11 -2
  129. package/resources/loyalty/questions-responses.js.map +1 -0
  130. package/resources/loyalty/{transaction-entries/questions-responses.mjs → questions-responses.mjs} +11 -2
  131. package/resources/loyalty/questions-responses.mjs.map +1 -0
  132. package/resources/loyalty/{transaction-entries/questions.d.ts → questions.d.ts} +39 -4
  133. package/resources/loyalty/questions.d.ts.map +1 -0
  134. package/resources/loyalty/questions.js +58 -0
  135. package/resources/loyalty/questions.js.map +1 -0
  136. package/resources/loyalty/questions.mjs +54 -0
  137. package/resources/loyalty/questions.mjs.map +1 -0
  138. package/resources/loyalty/rule-edits.d.ts +2584 -10
  139. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  140. package/resources/loyalty/rule-edits.js +15 -1
  141. package/resources/loyalty/rule-edits.js.map +1 -1
  142. package/resources/loyalty/rule-edits.mjs +15 -1
  143. package/resources/loyalty/rule-edits.mjs.map +1 -1
  144. package/resources/loyalty/rule-groups.d.ts +762 -0
  145. package/resources/loyalty/rule-groups.d.ts.map +1 -0
  146. package/resources/loyalty/rule-groups.js +52 -0
  147. package/resources/loyalty/rule-groups.js.map +1 -0
  148. package/resources/loyalty/rule-groups.mjs +48 -0
  149. package/resources/loyalty/rule-groups.mjs.map +1 -0
  150. package/resources/loyalty/rules.d.ts +1760 -230
  151. package/resources/loyalty/rules.d.ts.map +1 -1
  152. package/resources/loyalty/rules.js +40 -9
  153. package/resources/loyalty/rules.js.map +1 -1
  154. package/resources/loyalty/rules.mjs +40 -9
  155. package/resources/loyalty/rules.mjs.map +1 -1
  156. package/resources/loyalty/transactions/index.d.ts +3 -0
  157. package/resources/loyalty/transactions/index.d.ts.map +1 -0
  158. package/resources/loyalty/transactions/index.js +9 -0
  159. package/resources/loyalty/transactions/index.js.map +1 -0
  160. package/resources/loyalty/transactions/index.mjs +4 -0
  161. package/resources/loyalty/transactions/index.mjs.map +1 -0
  162. package/resources/loyalty/transactions/rule-statuses.d.ts +120 -0
  163. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
  164. package/resources/loyalty/transactions/rule-statuses.js +30 -0
  165. package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
  166. package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
  167. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
  168. package/resources/loyalty/transactions/transactions.d.ts +410 -0
  169. package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
  170. package/resources/loyalty/{transaction-entries/transaction-entries.js → transactions/transactions.js} +35 -25
  171. package/resources/loyalty/transactions/transactions.js.map +1 -0
  172. package/resources/loyalty/transactions/transactions.mjs +49 -0
  173. package/resources/loyalty/transactions/transactions.mjs.map +1 -0
  174. package/resources/loyalty/transactions.d.ts +2 -0
  175. package/resources/loyalty/transactions.d.ts.map +1 -0
  176. package/resources/loyalty/transactions.js +19 -0
  177. package/resources/loyalty/transactions.js.map +1 -0
  178. package/resources/loyalty/transactions.mjs +3 -0
  179. package/resources/loyalty/transactions.mjs.map +1 -0
  180. package/resources/loyalty.d.ts +2 -0
  181. package/resources/loyalty.d.ts.map +1 -0
  182. package/resources/loyalty.js +19 -0
  183. package/resources/loyalty.js.map +1 -0
  184. package/resources/loyalty.mjs +3 -0
  185. package/resources/loyalty.mjs.map +1 -0
  186. package/resources/{assets/minting.d.ts → minting.d.ts} +14 -14
  187. package/resources/minting.d.ts.map +1 -0
  188. package/resources/{assets/minting.js → minting.js} +2 -2
  189. package/resources/minting.js.map +1 -0
  190. package/resources/{assets/minting.mjs → minting.mjs} +2 -2
  191. package/resources/minting.mjs.map +1 -0
  192. package/resources/referral/index.d.ts +3 -0
  193. package/resources/referral/index.d.ts.map +1 -0
  194. package/resources/referral/index.js.map +1 -0
  195. package/resources/{assets/referral → referral}/index.mjs +1 -1
  196. package/resources/referral/index.mjs.map +1 -0
  197. package/resources/referral/referral.d.ts +39 -0
  198. package/resources/referral/referral.d.ts.map +1 -0
  199. package/resources/{assets/referral → referral}/referral.js +12 -6
  200. package/resources/referral/referral.js.map +1 -0
  201. package/resources/referral/referral.mjs +25 -0
  202. package/resources/referral/referral.mjs.map +1 -0
  203. package/resources/referral/users.d.ts +84 -0
  204. package/resources/referral/users.d.ts.map +1 -0
  205. package/resources/{assets/referral → referral}/users.js +17 -3
  206. package/resources/referral/users.js.map +1 -0
  207. package/resources/referral/users.mjs +31 -0
  208. package/resources/referral/users.mjs.map +1 -0
  209. package/resources/referral.d.ts +2 -0
  210. package/resources/referral.d.ts.map +1 -0
  211. package/resources/referral.js +19 -0
  212. package/resources/referral.js.map +1 -0
  213. package/resources/referral.mjs +3 -0
  214. package/resources/referral.mjs.map +1 -0
  215. package/resources/users/index.d.ts +2 -3
  216. package/resources/users/index.d.ts.map +1 -1
  217. package/resources/users/index.js +1 -3
  218. package/resources/users/index.js.map +1 -1
  219. package/resources/users/index.mjs +1 -2
  220. package/resources/users/index.mjs.map +1 -1
  221. package/resources/users/metadatas.d.ts +43 -7
  222. package/resources/users/metadatas.d.ts.map +1 -1
  223. package/resources/users/metadatas.js +2 -2
  224. package/resources/users/metadatas.js.map +1 -1
  225. package/resources/users/metadatas.mjs +2 -2
  226. package/resources/users/metadatas.mjs.map +1 -1
  227. package/resources/users/users.d.ts +414 -6
  228. package/resources/users/users.d.ts.map +1 -1
  229. package/resources/users/users.js +77 -4
  230. package/resources/users/users.js.map +1 -1
  231. package/resources/users/users.mjs +77 -4
  232. package/resources/users/users.mjs.map +1 -1
  233. package/resources/users.d.ts +2 -0
  234. package/resources/users.d.ts.map +1 -0
  235. package/resources/users.js +19 -0
  236. package/resources/users.js.map +1 -0
  237. package/resources/users.mjs +3 -0
  238. package/resources/users.mjs.map +1 -0
  239. package/resources/websites/index.d.ts +4 -0
  240. package/resources/websites/index.d.ts.map +1 -0
  241. package/resources/websites/index.js +11 -0
  242. package/resources/websites/index.js.map +1 -0
  243. package/resources/{assets → websites}/index.mjs +1 -4
  244. package/resources/websites/index.mjs.map +1 -0
  245. package/resources/websites/website-collections.d.ts +94 -0
  246. package/resources/websites/website-collections.d.ts.map +1 -0
  247. package/resources/{assets → websites}/website-collections.js +23 -2
  248. package/resources/websites/website-collections.js.map +1 -0
  249. package/resources/websites/website-collections.mjs +42 -0
  250. package/resources/websites/website-collections.mjs.map +1 -0
  251. package/resources/websites/website-user-roles.d.ts +96 -0
  252. package/resources/websites/website-user-roles.d.ts.map +1 -0
  253. package/resources/{assets → websites}/website-user-roles.js +30 -7
  254. package/resources/websites/website-user-roles.js.map +1 -0
  255. package/resources/websites/website-user-roles.mjs +41 -0
  256. package/resources/websites/website-user-roles.mjs.map +1 -0
  257. package/resources/websites/websites.d.ts +223 -0
  258. package/resources/websites/websites.d.ts.map +1 -0
  259. package/resources/{assets/assets.js → websites/websites.js} +21 -27
  260. package/resources/websites/websites.js.map +1 -0
  261. package/resources/websites/websites.mjs +36 -0
  262. package/resources/websites/websites.mjs.map +1 -0
  263. package/resources/websites.d.ts +1 -202
  264. package/resources/websites.d.ts.map +1 -1
  265. package/resources/websites.js +15 -18
  266. package/resources/websites.js.map +1 -1
  267. package/resources/websites.mjs +1 -16
  268. package/resources/websites.mjs.map +1 -1
  269. package/resources.d.ts +2 -0
  270. package/resources.d.ts.map +1 -0
  271. package/resources.js +18 -0
  272. package/resources.js.map +1 -0
  273. package/resources.mjs +2 -0
  274. package/resources.mjs.map +1 -0
  275. package/src/_shims/index.d.ts +2 -0
  276. package/src/_shims/index.js +5 -1
  277. package/src/_shims/index.mjs +5 -1
  278. package/src/core.ts +47 -19
  279. package/src/index.ts +94 -23
  280. package/src/resource.ts +1 -1
  281. package/src/resources/assets.ts +93 -0
  282. package/src/resources/auctions/auctions.ts +436 -0
  283. package/src/resources/auctions/index.ts +18 -0
  284. package/src/resources/auctions/website-user-attributes/index.ts +18 -0
  285. package/src/resources/auctions/website-user-attributes/values.ts +165 -0
  286. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +207 -0
  287. package/src/resources/auctions/website-user-attributes.ts +3 -0
  288. package/src/resources/auctions.ts +3 -0
  289. package/src/resources/auth.ts +74 -0
  290. package/src/resources/index.ts +30 -9
  291. package/src/resources/loyalty/account-streaks.ts +110 -0
  292. package/src/resources/loyalty/accounts.ts +258 -1
  293. package/src/resources/loyalty/badges.ts +567 -39
  294. package/src/resources/loyalty/currencies.ts +25 -0
  295. package/src/resources/loyalty/index.ts +53 -14
  296. package/src/resources/loyalty/loyalty.ts +163 -69
  297. package/src/resources/loyalty/multipliers.ts +87 -12
  298. package/src/resources/loyalty/{transaction-entries/questions-responses.ts → questions-responses.ts} +48 -3
  299. package/src/resources/loyalty/{transaction-entries/questions.ts → questions.ts} +40 -4
  300. package/src/resources/loyalty/rule-edits.ts +3628 -61
  301. package/src/resources/loyalty/rule-groups.ts +1184 -0
  302. package/src/resources/loyalty/rules.ts +2963 -522
  303. package/src/resources/loyalty/transactions/index.ts +18 -0
  304. package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
  305. package/src/resources/loyalty/transactions/transactions.ts +677 -0
  306. package/src/resources/loyalty/transactions.ts +3 -0
  307. package/src/resources/loyalty.ts +3 -0
  308. package/src/resources/{assets/minting.ts → minting.ts} +49 -31
  309. package/src/resources/referral/index.ts +10 -0
  310. package/src/resources/referral/referral.ts +72 -0
  311. package/src/resources/referral/users.ts +124 -0
  312. package/src/resources/referral.ts +3 -0
  313. package/src/resources/users/index.ts +17 -4
  314. package/src/resources/users/metadatas.ts +77 -15
  315. package/src/resources/users/users.ts +579 -9
  316. package/src/resources/users.ts +3 -0
  317. package/src/resources/websites/index.ts +22 -0
  318. package/src/resources/{assets → websites}/website-collections.ts +66 -30
  319. package/src/resources/{assets → websites}/website-user-roles.ts +63 -40
  320. package/src/resources/websites/websites.ts +311 -0
  321. package/src/resources/websites.ts +1 -257
  322. package/src/resources.ts +1 -0
  323. package/src/version.ts +1 -1
  324. package/version.d.ts +1 -1
  325. package/version.d.ts.map +1 -1
  326. package/version.js +1 -1
  327. package/version.js.map +1 -1
  328. package/version.mjs +1 -1
  329. package/version.mjs.map +1 -1
  330. package/resources/assets/assets.d.ts +0 -153
  331. package/resources/assets/assets.d.ts.map +0 -1
  332. package/resources/assets/assets.js.map +0 -1
  333. package/resources/assets/assets.mjs +0 -42
  334. package/resources/assets/assets.mjs.map +0 -1
  335. package/resources/assets/index.d.ts +0 -7
  336. package/resources/assets/index.d.ts.map +0 -1
  337. package/resources/assets/index.js +0 -17
  338. package/resources/assets/index.js.map +0 -1
  339. package/resources/assets/index.mjs.map +0 -1
  340. package/resources/assets/minting.d.ts.map +0 -1
  341. package/resources/assets/minting.js.map +0 -1
  342. package/resources/assets/minting.mjs.map +0 -1
  343. package/resources/assets/referral/index.d.ts +0 -3
  344. package/resources/assets/referral/index.d.ts.map +0 -1
  345. package/resources/assets/referral/index.js.map +0 -1
  346. package/resources/assets/referral/index.mjs.map +0 -1
  347. package/resources/assets/referral/referral.d.ts +0 -30
  348. package/resources/assets/referral/referral.d.ts.map +0 -1
  349. package/resources/assets/referral/referral.js.map +0 -1
  350. package/resources/assets/referral/referral.mjs +0 -19
  351. package/resources/assets/referral/referral.mjs.map +0 -1
  352. package/resources/assets/referral/users.d.ts +0 -57
  353. package/resources/assets/referral/users.d.ts.map +0 -1
  354. package/resources/assets/referral/users.js.map +0 -1
  355. package/resources/assets/referral/users.mjs +0 -17
  356. package/resources/assets/referral/users.mjs.map +0 -1
  357. package/resources/assets/users.d.ts +0 -285
  358. package/resources/assets/users.d.ts.map +0 -1
  359. package/resources/assets/users.js +0 -34
  360. package/resources/assets/users.js.map +0 -1
  361. package/resources/assets/users.mjs +0 -30
  362. package/resources/assets/users.mjs.map +0 -1
  363. package/resources/assets/website-collections.d.ts +0 -73
  364. package/resources/assets/website-collections.d.ts.map +0 -1
  365. package/resources/assets/website-collections.js.map +0 -1
  366. package/resources/assets/website-collections.mjs +0 -21
  367. package/resources/assets/website-collections.mjs.map +0 -1
  368. package/resources/assets/website-user-roles.d.ts +0 -73
  369. package/resources/assets/website-user-roles.d.ts.map +0 -1
  370. package/resources/assets/website-user-roles.js.map +0 -1
  371. package/resources/assets/website-user-roles.mjs +0 -18
  372. package/resources/assets/website-user-roles.mjs.map +0 -1
  373. package/resources/auction-bids.d.ts +0 -51
  374. package/resources/auction-bids.d.ts.map +0 -1
  375. package/resources/auction-bids.js +0 -20
  376. package/resources/auction-bids.js.map +0 -1
  377. package/resources/auction-bids.mjs +0 -16
  378. package/resources/auction-bids.mjs.map +0 -1
  379. package/resources/drip/drip.d.ts +0 -14
  380. package/resources/drip/drip.d.ts.map +0 -1
  381. package/resources/drip/drip.js +0 -43
  382. package/resources/drip/drip.js.map +0 -1
  383. package/resources/drip/drip.mjs +0 -16
  384. package/resources/drip/drip.mjs.map +0 -1
  385. package/resources/drip/index.d.ts +0 -4
  386. package/resources/drip/index.d.ts.map +0 -1
  387. package/resources/drip/index.js +0 -11
  388. package/resources/drip/index.js.map +0 -1
  389. package/resources/drip/index.mjs +0 -5
  390. package/resources/drip/index.mjs.map +0 -1
  391. package/resources/drip/quests.d.ts +0 -4
  392. package/resources/drip/quests.d.ts.map +0 -1
  393. package/resources/drip/quests.js +0 -9
  394. package/resources/drip/quests.js.map +0 -1
  395. package/resources/drip/quests.mjs +0 -5
  396. package/resources/drip/quests.mjs.map +0 -1
  397. package/resources/drip/status.d.ts +0 -4
  398. package/resources/drip/status.d.ts.map +0 -1
  399. package/resources/drip/status.js +0 -9
  400. package/resources/drip/status.js.map +0 -1
  401. package/resources/drip/status.mjs +0 -5
  402. package/resources/drip/status.mjs.map +0 -1
  403. package/resources/loyalty/transaction-entries/accounts.d.ts +0 -191
  404. package/resources/loyalty/transaction-entries/accounts.d.ts.map +0 -1
  405. package/resources/loyalty/transaction-entries/accounts.js +0 -24
  406. package/resources/loyalty/transaction-entries/accounts.js.map +0 -1
  407. package/resources/loyalty/transaction-entries/accounts.mjs +0 -20
  408. package/resources/loyalty/transaction-entries/accounts.mjs.map +0 -1
  409. package/resources/loyalty/transaction-entries/index.d.ts +0 -5
  410. package/resources/loyalty/transaction-entries/index.d.ts.map +0 -1
  411. package/resources/loyalty/transaction-entries/index.js +0 -13
  412. package/resources/loyalty/transaction-entries/index.js.map +0 -1
  413. package/resources/loyalty/transaction-entries/index.mjs +0 -6
  414. package/resources/loyalty/transaction-entries/index.mjs.map +0 -1
  415. package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +0 -1
  416. package/resources/loyalty/transaction-entries/questions-responses.js.map +0 -1
  417. package/resources/loyalty/transaction-entries/questions-responses.mjs.map +0 -1
  418. package/resources/loyalty/transaction-entries/questions.d.ts.map +0 -1
  419. package/resources/loyalty/transaction-entries/questions.js +0 -27
  420. package/resources/loyalty/transaction-entries/questions.js.map +0 -1
  421. package/resources/loyalty/transaction-entries/questions.mjs +0 -23
  422. package/resources/loyalty/transaction-entries/questions.mjs.map +0 -1
  423. package/resources/loyalty/transaction-entries/transaction-entries.d.ts +0 -300
  424. package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +0 -1
  425. package/resources/loyalty/transaction-entries/transaction-entries.js.map +0 -1
  426. package/resources/loyalty/transaction-entries/transaction-entries.mjs +0 -39
  427. package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +0 -1
  428. package/resources/users/wallets.d.ts +0 -4
  429. package/resources/users/wallets.d.ts.map +0 -1
  430. package/resources/users/wallets.js +0 -9
  431. package/resources/users/wallets.js.map +0 -1
  432. package/resources/users/wallets.mjs +0 -5
  433. package/resources/users/wallets.mjs.map +0 -1
  434. package/src/resources/assets/assets.ts +0 -294
  435. package/src/resources/assets/index.ts +0 -38
  436. package/src/resources/assets/referral/index.ts +0 -14
  437. package/src/resources/assets/referral/referral.ts +0 -74
  438. package/src/resources/assets/referral/users.ts +0 -99
  439. package/src/resources/assets/users.ts +0 -415
  440. package/src/resources/auction-bids.ts +0 -77
  441. package/src/resources/drip/drip.ts +0 -21
  442. package/src/resources/drip/index.ts +0 -5
  443. package/src/resources/drip/quests.ts +0 -5
  444. package/src/resources/drip/status.ts +0 -5
  445. package/src/resources/loyalty/transaction-entries/accounts.ts +0 -251
  446. package/src/resources/loyalty/transaction-entries/index.ts +0 -34
  447. package/src/resources/loyalty/transaction-entries/transaction-entries.ts +0 -525
  448. package/src/resources/users/wallets.ts +0 -5
  449. /package/resources/{assets/referral → referral}/index.js +0 -0
@@ -2,30 +2,74 @@ import { APIResource } from "../../resource.js";
2
2
  import * as Core from "../../core.js";
3
3
  export declare class Badges extends APIResource {
4
4
  /**
5
- * This endpoint allows you to configure a new badge.
5
+ * This endpoint allows you to configure a new badge
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const badge = await client.loyalty.badges.create({
10
+ * conditions: [{}],
11
+ * imageUrl: 'https://example.com/image.png',
12
+ * name: 'Example Badge',
13
+ * organizationId: '123e4567-e89b-12d3-a456-426614174222',
14
+ * websiteId: '123e4567-e89b-12d3-a456-426614174111',
15
+ * });
16
+ * ```
6
17
  */
7
18
  create(body: BadgeCreateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeCreateResponse>;
8
19
  /**
9
20
  * This endpoint allows you to update an existing badge.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const badge = await client.loyalty.badges.update(
25
+ * '123e4567-e89b-12d3-a456-426614174333',
26
+ * );
27
+ * ```
10
28
  */
11
29
  update(id: string, body?: BadgeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
12
30
  update(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
13
31
  /**
14
32
  * This endpoint allows you to fetch badge(s) data.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const badges = await client.loyalty.badges.list();
37
+ * ```
15
38
  */
16
39
  list(query?: BadgeListParams, options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
17
40
  list(options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
18
41
  /**
19
42
  * This endpoint allows you to delete a badge.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const badge = await client.loyalty.badges.delete(
47
+ * '123e4567-e89b-12d3-a456-426614174333',
48
+ * );
49
+ * ```
20
50
  */
21
51
  delete(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeDeleteResponse>;
22
52
  /**
23
53
  * This endpoint allows you to revoke a badge from an account
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const response = await client.loyalty.badges.revoke(
58
+ * '123e4567-e89b-12d3-a456-426614174333',
59
+ * );
60
+ * ```
24
61
  */
25
62
  revoke(id: string, body?: BadgeRevokeParams, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
26
63
  revoke(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
27
64
  /**
28
65
  * This endpoint allows you to reward a badge for an account
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * const response = await client.loyalty.badges.reward(
70
+ * '123e4567-e89b-12d3-a456-426614174333',
71
+ * );
72
+ * ```
29
73
  */
30
74
  reward(id: string, body?: BadgeRewardParams, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
31
75
  reward(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
@@ -54,10 +98,18 @@ export interface BadgeCreateResponse {
54
98
  * The name of the badge
55
99
  */
56
100
  name: string;
101
+ /**
102
+ * Array of data jobs associated with the badge
103
+ */
104
+ dataJobs?: Array<BadgeCreateResponse.DataJob>;
57
105
  /**
58
106
  * Array of user badges
59
107
  */
60
- LoyaltyBadgeUser?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
108
+ loyaltyBadgeUsers?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
109
+ /**
110
+ * Array of loyalty rules associated with the badge
111
+ */
112
+ loyaltyRules?: Array<BadgeCreateResponse.LoyaltyRule>;
61
113
  }
62
114
  export declare namespace BadgeCreateResponse {
63
115
  /**
@@ -73,10 +125,6 @@ export declare namespace BadgeCreateResponse {
73
125
  */
74
126
  amount: number | null;
75
127
  association: Array<LoyaltyCondition.Association>;
76
- /**
77
- * The URL of the CSV file
78
- */
79
- csvUrl: string | null;
80
128
  /**
81
129
  * The description of the condition
82
130
  */
@@ -101,6 +149,10 @@ export declare namespace BadgeCreateResponse {
101
149
  * The type of the condition
102
150
  */
103
151
  type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
152
+ /**
153
+ * Array of CSV files associated with the condition
154
+ */
155
+ csvFiles?: Array<LoyaltyCondition.CsvFile>;
104
156
  }
105
157
  namespace LoyaltyCondition {
106
158
  interface Association {
@@ -162,12 +214,56 @@ export declare namespace BadgeCreateResponse {
162
214
  name: string;
163
215
  }
164
216
  }
217
+ interface CsvFile {
218
+ /**
219
+ * UUID of the CSV file (converted to lowercase)
220
+ */
221
+ id: string;
222
+ /**
223
+ * The description of the CSV file
224
+ */
225
+ description: string | null;
226
+ /**
227
+ * The name of the CSV file
228
+ */
229
+ name: string | null;
230
+ /**
231
+ * The URL of the CSV file
232
+ */
233
+ url: string | null;
234
+ }
235
+ }
236
+ interface DataJob {
237
+ /**
238
+ * UUID of the data job (converted to lowercase)
239
+ */
240
+ id: string;
241
+ /**
242
+ * The date and time the data job was created
243
+ */
244
+ createdAt: string;
245
+ /**
246
+ * The status of the data job
247
+ */
248
+ status: 'pending' | 'complete' | 'failed';
249
+ /**
250
+ * The date and time the data job was updated
251
+ */
252
+ updatedAt: string;
253
+ /**
254
+ * The message associated with the data job
255
+ */
256
+ message?: string | null;
165
257
  }
166
258
  interface LoyaltyBadgeUser {
167
259
  /**
168
260
  * UUID of the user badge (converted to lowercase)
169
261
  */
170
262
  id: string;
263
+ /**
264
+ * The date and time the user badge was created
265
+ */
266
+ createdAt: string;
171
267
  /**
172
268
  * UUID of the badge (converted to lowercase)
173
269
  */
@@ -180,6 +276,10 @@ export declare namespace BadgeCreateResponse {
180
276
  * The status of the badge
181
277
  */
182
278
  status: 'active' | 'inactive' | 'revoked';
279
+ /**
280
+ * The date and time the user badge was updated
281
+ */
282
+ updatedAt: string;
183
283
  /**
184
284
  * UUID of the user (converted to lowercase)
185
285
  */
@@ -188,10 +288,43 @@ export declare namespace BadgeCreateResponse {
188
288
  * UUID of the website (converted to lowercase)
189
289
  */
190
290
  websiteId: string;
291
+ /**
292
+ * Whether the user has dismissed the badge in the UI
293
+ */
294
+ dismissedInUi?: boolean;
191
295
  /**
192
296
  * Array of progress for the badge
193
297
  */
194
298
  progress?: unknown;
299
+ /**
300
+ * User associated with the user badge
301
+ */
302
+ user?: LoyaltyBadgeUser.User;
303
+ }
304
+ namespace LoyaltyBadgeUser {
305
+ /**
306
+ * User associated with the user badge
307
+ */
308
+ interface User {
309
+ /**
310
+ * UUID of the user (converted to lowercase)
311
+ */
312
+ id: string;
313
+ /**
314
+ * Wallet address of the user
315
+ */
316
+ walletAddress: string;
317
+ }
318
+ }
319
+ interface LoyaltyRule {
320
+ /**
321
+ * UUID of the loyalty rule (converted to lowercase)
322
+ */
323
+ id: string;
324
+ /**
325
+ * The name of the loyalty rule
326
+ */
327
+ name: string;
195
328
  }
196
329
  }
197
330
  /**
@@ -218,10 +351,18 @@ export interface BadgeUpdateResponse {
218
351
  * The name of the badge
219
352
  */
220
353
  name: string;
354
+ /**
355
+ * Array of data jobs associated with the badge
356
+ */
357
+ dataJobs?: Array<BadgeUpdateResponse.DataJob>;
221
358
  /**
222
359
  * Array of user badges
223
360
  */
224
- LoyaltyBadgeUser?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
361
+ loyaltyBadgeUsers?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
362
+ /**
363
+ * Array of loyalty rules associated with the badge
364
+ */
365
+ loyaltyRules?: Array<BadgeUpdateResponse.LoyaltyRule>;
225
366
  }
226
367
  export declare namespace BadgeUpdateResponse {
227
368
  /**
@@ -237,10 +378,6 @@ export declare namespace BadgeUpdateResponse {
237
378
  */
238
379
  amount: number | null;
239
380
  association: Array<LoyaltyCondition.Association>;
240
- /**
241
- * The URL of the CSV file
242
- */
243
- csvUrl: string | null;
244
381
  /**
245
382
  * The description of the condition
246
383
  */
@@ -265,6 +402,10 @@ export declare namespace BadgeUpdateResponse {
265
402
  * The type of the condition
266
403
  */
267
404
  type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
405
+ /**
406
+ * Array of CSV files associated with the condition
407
+ */
408
+ csvFiles?: Array<LoyaltyCondition.CsvFile>;
268
409
  }
269
410
  namespace LoyaltyCondition {
270
411
  interface Association {
@@ -326,12 +467,56 @@ export declare namespace BadgeUpdateResponse {
326
467
  name: string;
327
468
  }
328
469
  }
470
+ interface CsvFile {
471
+ /**
472
+ * UUID of the CSV file (converted to lowercase)
473
+ */
474
+ id: string;
475
+ /**
476
+ * The description of the CSV file
477
+ */
478
+ description: string | null;
479
+ /**
480
+ * The name of the CSV file
481
+ */
482
+ name: string | null;
483
+ /**
484
+ * The URL of the CSV file
485
+ */
486
+ url: string | null;
487
+ }
488
+ }
489
+ interface DataJob {
490
+ /**
491
+ * UUID of the data job (converted to lowercase)
492
+ */
493
+ id: string;
494
+ /**
495
+ * The date and time the data job was created
496
+ */
497
+ createdAt: string;
498
+ /**
499
+ * The status of the data job
500
+ */
501
+ status: 'pending' | 'complete' | 'failed';
502
+ /**
503
+ * The date and time the data job was updated
504
+ */
505
+ updatedAt: string;
506
+ /**
507
+ * The message associated with the data job
508
+ */
509
+ message?: string | null;
329
510
  }
330
511
  interface LoyaltyBadgeUser {
331
512
  /**
332
513
  * UUID of the user badge (converted to lowercase)
333
514
  */
334
515
  id: string;
516
+ /**
517
+ * The date and time the user badge was created
518
+ */
519
+ createdAt: string;
335
520
  /**
336
521
  * UUID of the badge (converted to lowercase)
337
522
  */
@@ -344,6 +529,10 @@ export declare namespace BadgeUpdateResponse {
344
529
  * The status of the badge
345
530
  */
346
531
  status: 'active' | 'inactive' | 'revoked';
532
+ /**
533
+ * The date and time the user badge was updated
534
+ */
535
+ updatedAt: string;
347
536
  /**
348
537
  * UUID of the user (converted to lowercase)
349
538
  */
@@ -352,10 +541,43 @@ export declare namespace BadgeUpdateResponse {
352
541
  * UUID of the website (converted to lowercase)
353
542
  */
354
543
  websiteId: string;
544
+ /**
545
+ * Whether the user has dismissed the badge in the UI
546
+ */
547
+ dismissedInUi?: boolean;
355
548
  /**
356
549
  * Array of progress for the badge
357
550
  */
358
551
  progress?: unknown;
552
+ /**
553
+ * User associated with the user badge
554
+ */
555
+ user?: LoyaltyBadgeUser.User;
556
+ }
557
+ namespace LoyaltyBadgeUser {
558
+ /**
559
+ * User associated with the user badge
560
+ */
561
+ interface User {
562
+ /**
563
+ * UUID of the user (converted to lowercase)
564
+ */
565
+ id: string;
566
+ /**
567
+ * Wallet address of the user
568
+ */
569
+ walletAddress: string;
570
+ }
571
+ }
572
+ interface LoyaltyRule {
573
+ /**
574
+ * UUID of the loyalty rule (converted to lowercase)
575
+ */
576
+ id: string;
577
+ /**
578
+ * The name of the loyalty rule
579
+ */
580
+ name: string;
359
581
  }
360
582
  }
361
583
  /**
@@ -382,10 +604,18 @@ export interface BadgeListResponse {
382
604
  * The name of the badge
383
605
  */
384
606
  name: string;
607
+ /**
608
+ * Array of data jobs associated with the badge
609
+ */
610
+ dataJobs?: Array<BadgeListResponse.DataJob>;
385
611
  /**
386
612
  * Array of user badges
387
613
  */
388
- LoyaltyBadgeUser?: Array<BadgeListResponse.LoyaltyBadgeUser>;
614
+ loyaltyBadgeUsers?: Array<BadgeListResponse.LoyaltyBadgeUser>;
615
+ /**
616
+ * Array of loyalty rules associated with the badge
617
+ */
618
+ loyaltyRules?: Array<BadgeListResponse.LoyaltyRule>;
389
619
  }
390
620
  export declare namespace BadgeListResponse {
391
621
  /**
@@ -401,10 +631,6 @@ export declare namespace BadgeListResponse {
401
631
  */
402
632
  amount: number | null;
403
633
  association: Array<LoyaltyCondition.Association>;
404
- /**
405
- * The URL of the CSV file
406
- */
407
- csvUrl: string | null;
408
634
  /**
409
635
  * The description of the condition
410
636
  */
@@ -429,6 +655,10 @@ export declare namespace BadgeListResponse {
429
655
  * The type of the condition
430
656
  */
431
657
  type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
658
+ /**
659
+ * Array of CSV files associated with the condition
660
+ */
661
+ csvFiles?: Array<LoyaltyCondition.CsvFile>;
432
662
  }
433
663
  namespace LoyaltyCondition {
434
664
  interface Association {
@@ -490,12 +720,56 @@ export declare namespace BadgeListResponse {
490
720
  name: string;
491
721
  }
492
722
  }
723
+ interface CsvFile {
724
+ /**
725
+ * UUID of the CSV file (converted to lowercase)
726
+ */
727
+ id: string;
728
+ /**
729
+ * The description of the CSV file
730
+ */
731
+ description: string | null;
732
+ /**
733
+ * The name of the CSV file
734
+ */
735
+ name: string | null;
736
+ /**
737
+ * The URL of the CSV file
738
+ */
739
+ url: string | null;
740
+ }
741
+ }
742
+ interface DataJob {
743
+ /**
744
+ * UUID of the data job (converted to lowercase)
745
+ */
746
+ id: string;
747
+ /**
748
+ * The date and time the data job was created
749
+ */
750
+ createdAt: string;
751
+ /**
752
+ * The status of the data job
753
+ */
754
+ status: 'pending' | 'complete' | 'failed';
755
+ /**
756
+ * The date and time the data job was updated
757
+ */
758
+ updatedAt: string;
759
+ /**
760
+ * The message associated with the data job
761
+ */
762
+ message?: string | null;
493
763
  }
494
764
  interface LoyaltyBadgeUser {
495
765
  /**
496
766
  * UUID of the user badge (converted to lowercase)
497
767
  */
498
768
  id: string;
769
+ /**
770
+ * The date and time the user badge was created
771
+ */
772
+ createdAt: string;
499
773
  /**
500
774
  * UUID of the badge (converted to lowercase)
501
775
  */
@@ -508,6 +782,10 @@ export declare namespace BadgeListResponse {
508
782
  * The status of the badge
509
783
  */
510
784
  status: 'active' | 'inactive' | 'revoked';
785
+ /**
786
+ * The date and time the user badge was updated
787
+ */
788
+ updatedAt: string;
511
789
  /**
512
790
  * UUID of the user (converted to lowercase)
513
791
  */
@@ -516,10 +794,43 @@ export declare namespace BadgeListResponse {
516
794
  * UUID of the website (converted to lowercase)
517
795
  */
518
796
  websiteId: string;
797
+ /**
798
+ * Whether the user has dismissed the badge in the UI
799
+ */
800
+ dismissedInUi?: boolean;
519
801
  /**
520
802
  * Array of progress for the badge
521
803
  */
522
804
  progress?: unknown;
805
+ /**
806
+ * User associated with the user badge
807
+ */
808
+ user?: LoyaltyBadgeUser.User;
809
+ }
810
+ namespace LoyaltyBadgeUser {
811
+ /**
812
+ * User associated with the user badge
813
+ */
814
+ interface User {
815
+ /**
816
+ * UUID of the user (converted to lowercase)
817
+ */
818
+ id: string;
819
+ /**
820
+ * Wallet address of the user
821
+ */
822
+ walletAddress: string;
823
+ }
824
+ }
825
+ interface LoyaltyRule {
826
+ /**
827
+ * UUID of the loyalty rule (converted to lowercase)
828
+ */
829
+ id: string;
830
+ /**
831
+ * The name of the loyalty rule
832
+ */
833
+ name: string;
523
834
  }
524
835
  }
525
836
  /**
@@ -546,10 +857,18 @@ export interface BadgeDeleteResponse {
546
857
  * The name of the badge
547
858
  */
548
859
  name: string;
860
+ /**
861
+ * Array of data jobs associated with the badge
862
+ */
863
+ dataJobs?: Array<BadgeDeleteResponse.DataJob>;
549
864
  /**
550
865
  * Array of user badges
551
866
  */
552
- LoyaltyBadgeUser?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
867
+ loyaltyBadgeUsers?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
868
+ /**
869
+ * Array of loyalty rules associated with the badge
870
+ */
871
+ loyaltyRules?: Array<BadgeDeleteResponse.LoyaltyRule>;
553
872
  }
554
873
  export declare namespace BadgeDeleteResponse {
555
874
  /**
@@ -565,10 +884,6 @@ export declare namespace BadgeDeleteResponse {
565
884
  */
566
885
  amount: number | null;
567
886
  association: Array<LoyaltyCondition.Association>;
568
- /**
569
- * The URL of the CSV file
570
- */
571
- csvUrl: string | null;
572
887
  /**
573
888
  * The description of the condition
574
889
  */
@@ -593,6 +908,10 @@ export declare namespace BadgeDeleteResponse {
593
908
  * The type of the condition
594
909
  */
595
910
  type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
911
+ /**
912
+ * Array of CSV files associated with the condition
913
+ */
914
+ csvFiles?: Array<LoyaltyCondition.CsvFile>;
596
915
  }
597
916
  namespace LoyaltyCondition {
598
917
  interface Association {
@@ -654,12 +973,56 @@ export declare namespace BadgeDeleteResponse {
654
973
  name: string;
655
974
  }
656
975
  }
976
+ interface CsvFile {
977
+ /**
978
+ * UUID of the CSV file (converted to lowercase)
979
+ */
980
+ id: string;
981
+ /**
982
+ * The description of the CSV file
983
+ */
984
+ description: string | null;
985
+ /**
986
+ * The name of the CSV file
987
+ */
988
+ name: string | null;
989
+ /**
990
+ * The URL of the CSV file
991
+ */
992
+ url: string | null;
993
+ }
994
+ }
995
+ interface DataJob {
996
+ /**
997
+ * UUID of the data job (converted to lowercase)
998
+ */
999
+ id: string;
1000
+ /**
1001
+ * The date and time the data job was created
1002
+ */
1003
+ createdAt: string;
1004
+ /**
1005
+ * The status of the data job
1006
+ */
1007
+ status: 'pending' | 'complete' | 'failed';
1008
+ /**
1009
+ * The date and time the data job was updated
1010
+ */
1011
+ updatedAt: string;
1012
+ /**
1013
+ * The message associated with the data job
1014
+ */
1015
+ message?: string | null;
657
1016
  }
658
1017
  interface LoyaltyBadgeUser {
659
1018
  /**
660
1019
  * UUID of the user badge (converted to lowercase)
661
1020
  */
662
1021
  id: string;
1022
+ /**
1023
+ * The date and time the user badge was created
1024
+ */
1025
+ createdAt: string;
663
1026
  /**
664
1027
  * UUID of the badge (converted to lowercase)
665
1028
  */
@@ -672,6 +1035,10 @@ export declare namespace BadgeDeleteResponse {
672
1035
  * The status of the badge
673
1036
  */
674
1037
  status: 'active' | 'inactive' | 'revoked';
1038
+ /**
1039
+ * The date and time the user badge was updated
1040
+ */
1041
+ updatedAt: string;
675
1042
  /**
676
1043
  * UUID of the user (converted to lowercase)
677
1044
  */
@@ -680,10 +1047,43 @@ export declare namespace BadgeDeleteResponse {
680
1047
  * UUID of the website (converted to lowercase)
681
1048
  */
682
1049
  websiteId: string;
1050
+ /**
1051
+ * Whether the user has dismissed the badge in the UI
1052
+ */
1053
+ dismissedInUi?: boolean;
683
1054
  /**
684
1055
  * Array of progress for the badge
685
1056
  */
686
1057
  progress?: unknown;
1058
+ /**
1059
+ * User associated with the user badge
1060
+ */
1061
+ user?: LoyaltyBadgeUser.User;
1062
+ }
1063
+ namespace LoyaltyBadgeUser {
1064
+ /**
1065
+ * User associated with the user badge
1066
+ */
1067
+ interface User {
1068
+ /**
1069
+ * UUID of the user (converted to lowercase)
1070
+ */
1071
+ id: string;
1072
+ /**
1073
+ * Wallet address of the user
1074
+ */
1075
+ walletAddress: string;
1076
+ }
1077
+ }
1078
+ interface LoyaltyRule {
1079
+ /**
1080
+ * UUID of the loyalty rule (converted to lowercase)
1081
+ */
1082
+ id: string;
1083
+ /**
1084
+ * The name of the loyalty rule
1085
+ */
1086
+ name: string;
687
1087
  }
688
1088
  }
689
1089
  /**
@@ -723,6 +1123,10 @@ export declare namespace BadgeRewardResponse {
723
1123
  }
724
1124
  }
725
1125
  export interface BadgeCreateParams {
1126
+ /**
1127
+ * Array of conditions for the badge
1128
+ */
1129
+ conditions: Array<BadgeCreateParams.Condition>;
726
1130
  /**
727
1131
  * The URL of the badge image
728
1132
  */
@@ -735,25 +1139,18 @@ export interface BadgeCreateParams {
735
1139
  * UUID of the organization (optional, converted to lowercase)
736
1140
  */
737
1141
  organizationId: string;
738
- /**
739
- * Array of rules for the badge
740
- */
741
- rules: Array<BadgeCreateParams.Rule>;
742
1142
  /**
743
1143
  * UUID of the website (optional, converted to lowercase)
744
1144
  */
745
1145
  websiteId: string;
1146
+ csvFiles?: Array<BadgeCreateParams.CsvFile>;
746
1147
  /**
747
1148
  * The description of the badge
748
1149
  */
749
1150
  description?: string;
750
1151
  }
751
1152
  export declare namespace BadgeCreateParams {
752
- interface Rule {
753
- /**
754
- * The type of rule
755
- */
756
- type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
1153
+ interface Condition {
757
1154
  /**
758
1155
  * The amount of the rule
759
1156
  */
@@ -778,6 +1175,10 @@ export declare namespace BadgeCreateParams {
778
1175
  * Array of UUIDs of the Loyalty Leaderboard (optional, converted to lowercase)
779
1176
  */
780
1177
  loyaltyLeaderboardViewIds?: Array<string>;
1178
+ /**
1179
+ * UUID of the loyalty rule chain (optional, converted to lowercase)
1180
+ */
1181
+ loyaltyRuleChainId?: string;
781
1182
  /**
782
1183
  * Array of UUIDs of the rule group (optional, converted to lowercase)
783
1184
  */
@@ -794,9 +1195,19 @@ export declare namespace BadgeCreateParams {
794
1195
  * The number of rules that need to be fulfilled to satisfy the condition
795
1196
  */
796
1197
  requiredCount?: number | null;
1198
+ /**
1199
+ * The type of rule
1200
+ */
1201
+ type?: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
1202
+ }
1203
+ interface CsvFile {
1204
+ src: string;
1205
+ description?: string;
1206
+ name?: string;
797
1207
  }
798
1208
  }
799
1209
  export interface BadgeUpdateParams {
1210
+ csvFiles?: Array<BadgeUpdateParams.CsvFile>;
800
1211
  /**
801
1212
  * The description of the badge
802
1213
  */
@@ -810,11 +1221,18 @@ export interface BadgeUpdateParams {
810
1221
  */
811
1222
  name?: string;
812
1223
  }
1224
+ export declare namespace BadgeUpdateParams {
1225
+ interface CsvFile {
1226
+ src: string;
1227
+ description?: string;
1228
+ name?: string;
1229
+ }
1230
+ }
813
1231
  export interface BadgeListParams {
814
1232
  /**
815
1233
  * Array of badge IDs (converted to lowercase) to fetch
816
1234
  */
817
- badgeIds?: Array<string>;
1235
+ badgeIds?: string | Array<string>;
818
1236
  /**
819
1237
  * Include deleted badges in the response
820
1238
  */
@@ -832,15 +1250,31 @@ export interface BadgeListParams {
832
1250
  */
833
1251
  startingAfter?: string;
834
1252
  /**
835
- * UUID of the user (optional, converted to lowercase)
1253
+ * External identifier of the user group
836
1254
  */
837
- userId?: string;
1255
+ userGroupExternalIdentifier?: string;
1256
+ /**
1257
+ * UUID of the user group
1258
+ */
1259
+ userGroupId?: string;
1260
+ /**
1261
+ * UUID of the user, or array of UUID.
1262
+ */
1263
+ userId?: string | Array<string>;
1264
+ /**
1265
+ * Wallet Address of the user, or array of wallet addresses.
1266
+ */
1267
+ walletAddress?: string | Array<string>;
838
1268
  /**
839
1269
  * UUID of the website (optional, converted to lowercase)
840
1270
  */
841
1271
  websiteId?: string;
842
1272
  }
843
1273
  export interface BadgeRevokeParams {
1274
+ /**
1275
+ * Status of the badge
1276
+ */
1277
+ status?: 'active' | 'inactive' | 'revoked';
844
1278
  /**
845
1279
  * UUID of the user (converted to lowercase)
846
1280
  */
@@ -851,6 +1285,10 @@ export interface BadgeRevokeParams {
851
1285
  walletAddress?: string;
852
1286
  }
853
1287
  export interface BadgeRewardParams {
1288
+ /**
1289
+ * Status of the badge
1290
+ */
1291
+ status?: 'active' | 'inactive' | 'revoked';
854
1292
  /**
855
1293
  * UUID of the user (converted to lowercase)
856
1294
  */