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

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 (426) hide show
  1. package/CHANGELOG.md +1261 -45
  2. package/README.md +17 -29
  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 +26 -17
  9. package/core.js.map +1 -1
  10. package/core.mjs +27 -18
  11. package/core.mjs.map +1 -1
  12. package/index.d.mts +30 -6
  13. package/index.d.ts +30 -6
  14. package/index.d.ts.map +1 -1
  15. package/index.js +36 -11
  16. package/index.js.map +1 -1
  17. package/index.mjs +36 -11
  18. package/index.mjs.map +1 -1
  19. package/package.json +4 -5
  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/{api.js → auctions.js} +2 -2
  69. package/resources/auctions.js.map +1 -0
  70. package/resources/{api.mjs → auctions.mjs} +2 -2
  71. package/resources/auctions.mjs.map +1 -0
  72. package/resources/auth.d.ts +48 -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 +8 -1
  79. package/resources/index.d.ts.map +1 -1
  80. package/resources/index.js +17 -3
  81. package/resources/index.js.map +1 -1
  82. package/resources/index.mjs +8 -1
  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/{api/loyalty → loyalty}/accounts.d.ts +36 -27
  91. package/resources/loyalty/accounts.d.ts.map +1 -0
  92. package/resources/{api/loyalty → loyalty}/accounts.js +17 -4
  93. package/resources/loyalty/accounts.js.map +1 -0
  94. package/resources/loyalty/accounts.mjs +33 -0
  95. package/resources/loyalty/accounts.mjs.map +1 -0
  96. package/resources/{api/loyalty → loyalty}/badges.d.ts +474 -24
  97. package/resources/loyalty/badges.d.ts.map +1 -0
  98. package/resources/{api/loyalty → loyalty}/badges.js +21 -3
  99. package/resources/loyalty/badges.js.map +1 -0
  100. package/resources/{api/loyalty → loyalty}/badges.mjs +21 -3
  101. package/resources/loyalty/badges.mjs.map +1 -0
  102. package/resources/{api/loyalty → loyalty}/currencies.d.ts +27 -2
  103. package/resources/loyalty/currencies.d.ts.map +1 -0
  104. package/resources/loyalty/currencies.js +40 -0
  105. package/resources/loyalty/currencies.js.map +1 -0
  106. package/resources/loyalty/currencies.mjs +36 -0
  107. package/resources/loyalty/currencies.mjs.map +1 -0
  108. package/resources/{api/loyalty → loyalty}/index.d.ts +6 -3
  109. package/resources/loyalty/index.d.ts.map +1 -0
  110. package/resources/{api/loyalty → loyalty}/index.js +7 -1
  111. package/resources/loyalty/index.js.map +1 -0
  112. package/resources/{api/loyalty → loyalty}/index.mjs +4 -1
  113. package/resources/loyalty/index.mjs.map +1 -0
  114. package/resources/loyalty/loyalty.d.ts +50 -0
  115. package/resources/loyalty/loyalty.d.ts.map +1 -0
  116. package/resources/{api/loyalty → loyalty}/loyalty.js +13 -20
  117. package/resources/loyalty/loyalty.js.map +1 -0
  118. package/resources/{api/loyalty → loyalty}/loyalty.mjs +13 -20
  119. package/resources/loyalty/loyalty.mjs.map +1 -0
  120. package/resources/{api/loyalty → loyalty}/multipliers.d.ts +65 -4
  121. package/resources/loyalty/multipliers.d.ts.map +1 -0
  122. package/resources/{api/loyalty → loyalty}/multipliers.js +25 -2
  123. package/resources/loyalty/multipliers.js.map +1 -0
  124. package/resources/{api/loyalty → loyalty}/multipliers.mjs +25 -2
  125. package/resources/loyalty/multipliers.mjs.map +1 -0
  126. package/resources/{api/loyalty → loyalty}/questions-responses.d.ts +41 -2
  127. package/resources/loyalty/questions-responses.d.ts.map +1 -0
  128. package/resources/{api/loyalty → loyalty}/questions-responses.js +11 -2
  129. package/resources/loyalty/questions-responses.js.map +1 -0
  130. package/resources/{api/loyalty → loyalty}/questions-responses.mjs +11 -2
  131. package/resources/loyalty/questions-responses.mjs.map +1 -0
  132. package/resources/{api/loyalty → loyalty}/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 +2920 -0
  139. package/resources/loyalty/rule-edits.d.ts.map +1 -0
  140. package/resources/{api/loyalty → loyalty}/rule-edits.js +15 -1
  141. package/resources/loyalty/rule-edits.js.map +1 -0
  142. package/resources/{api/loyalty → loyalty}/rule-edits.mjs +15 -1
  143. package/resources/loyalty/rule-edits.mjs.map +1 -0
  144. package/resources/{api/loyalty/loyalty.d.ts → loyalty/rule-groups.d.ts} +280 -321
  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/{api/loyalty → loyalty}/rules.d.ts +1778 -239
  151. package/resources/loyalty/rules.d.ts.map +1 -0
  152. package/resources/loyalty/rules.js +77 -0
  153. package/resources/loyalty/rules.js.map +1 -0
  154. package/resources/loyalty/rules.mjs +73 -0
  155. package/resources/loyalty/rules.mjs.map +1 -0
  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/transactions/transactions.js +76 -0
  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.map +1 -0
  181. package/resources/loyalty.js.map +1 -0
  182. package/resources/loyalty.mjs.map +1 -0
  183. package/resources/{api/minting.d.ts → minting.d.ts} +7 -7
  184. package/resources/minting.d.ts.map +1 -0
  185. package/resources/{api/minting.js → minting.js} +1 -1
  186. package/resources/minting.js.map +1 -0
  187. package/resources/{api/minting.mjs → minting.mjs} +1 -1
  188. package/resources/minting.mjs.map +1 -0
  189. package/resources/referral/index.d.ts.map +1 -0
  190. package/resources/referral/index.js.map +1 -0
  191. package/resources/referral/index.mjs.map +1 -0
  192. package/resources/{api/referral → referral}/referral.d.ts +13 -5
  193. package/resources/referral/referral.d.ts.map +1 -0
  194. package/resources/{api/referral → referral}/referral.js +12 -6
  195. package/resources/referral/referral.js.map +1 -0
  196. package/resources/{api/referral → referral}/referral.mjs +12 -6
  197. package/resources/referral/referral.mjs.map +1 -0
  198. package/resources/{api/referral → referral}/users.d.ts +30 -3
  199. package/resources/referral/users.d.ts.map +1 -0
  200. package/resources/{api/referral → referral}/users.js +15 -1
  201. package/resources/referral/users.js.map +1 -0
  202. package/resources/{api/referral → referral}/users.mjs +15 -1
  203. package/resources/referral/users.mjs.map +1 -0
  204. package/resources/referral.d.ts.map +1 -0
  205. package/resources/referral.js.map +1 -0
  206. package/resources/referral.mjs.map +1 -0
  207. package/resources/users/index.d.ts +3 -0
  208. package/resources/users/index.d.ts.map +1 -0
  209. package/resources/users/index.js.map +1 -0
  210. package/resources/users/index.mjs.map +1 -0
  211. package/resources/{api/users → users}/metadatas.d.ts +34 -2
  212. package/resources/users/metadatas.d.ts.map +1 -0
  213. package/resources/{api/users → users}/metadatas.js +2 -2
  214. package/resources/users/metadatas.js.map +1 -0
  215. package/resources/{api/users → users}/metadatas.mjs +2 -2
  216. package/resources/users/metadatas.mjs.map +1 -0
  217. package/resources/users/users.d.ts +422 -0
  218. package/resources/users/users.d.ts.map +1 -0
  219. package/resources/{api/users → users}/users.js +61 -2
  220. package/resources/users/users.js.map +1 -0
  221. package/resources/users/users.mjs +89 -0
  222. package/resources/users/users.mjs.map +1 -0
  223. package/resources/users.d.ts.map +1 -0
  224. package/resources/users.js.map +1 -0
  225. package/resources/users.mjs.map +1 -0
  226. package/resources/websites/index.d.ts +4 -0
  227. package/resources/websites/index.d.ts.map +1 -0
  228. package/resources/websites/index.js +11 -0
  229. package/resources/websites/index.js.map +1 -0
  230. package/resources/{api → websites}/index.mjs +0 -5
  231. package/resources/websites/index.mjs.map +1 -0
  232. package/resources/{api → websites}/website-collections.d.ts +22 -1
  233. package/resources/websites/website-collections.d.ts.map +1 -0
  234. package/resources/{api → websites}/website-collections.js +21 -0
  235. package/resources/websites/website-collections.js.map +1 -0
  236. package/resources/websites/website-collections.mjs +42 -0
  237. package/resources/websites/website-collections.mjs.map +1 -0
  238. package/resources/{api → websites}/website-user-roles.d.ts +23 -0
  239. package/resources/websites/website-user-roles.d.ts.map +1 -0
  240. package/resources/{api → websites}/website-user-roles.js +23 -0
  241. package/resources/websites/website-user-roles.js.map +1 -0
  242. package/resources/websites/website-user-roles.mjs +41 -0
  243. package/resources/websites/website-user-roles.mjs.map +1 -0
  244. package/resources/{api → websites}/websites.d.ts +20 -0
  245. package/resources/websites/websites.d.ts.map +1 -0
  246. package/resources/websites/websites.js +63 -0
  247. package/resources/websites/websites.js.map +1 -0
  248. package/resources/websites/websites.mjs +36 -0
  249. package/resources/websites/websites.mjs.map +1 -0
  250. package/resources/websites.d.ts +2 -0
  251. package/resources/websites.d.ts.map +1 -0
  252. package/resources/websites.js +19 -0
  253. package/resources/websites.js.map +1 -0
  254. package/resources/websites.mjs +3 -0
  255. package/resources/websites.mjs.map +1 -0
  256. package/src/_shims/index.d.ts +2 -0
  257. package/src/_shims/index.js +5 -1
  258. package/src/_shims/index.mjs +5 -1
  259. package/src/core.ts +45 -17
  260. package/src/index.ts +126 -24
  261. package/src/resource.ts +1 -1
  262. package/src/resources/assets.ts +93 -0
  263. package/src/resources/auctions/auctions.ts +436 -0
  264. package/src/resources/auctions/index.ts +18 -0
  265. package/src/resources/auctions/website-user-attributes/index.ts +18 -0
  266. package/src/resources/auctions/website-user-attributes/values.ts +165 -0
  267. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +207 -0
  268. package/src/resources/auctions/website-user-attributes.ts +3 -0
  269. package/src/resources/{api.ts → auctions.ts} +1 -1
  270. package/src/resources/auth.ts +79 -0
  271. package/src/resources/index.ts +37 -8
  272. package/src/resources/loyalty/account-streaks.ts +110 -0
  273. package/src/resources/{api/loyalty → loyalty}/accounts.ts +41 -35
  274. package/src/resources/{api/loyalty → loyalty}/badges.ts +570 -27
  275. package/src/resources/{api/loyalty → loyalty}/currencies.ts +27 -2
  276. package/src/resources/{api/loyalty → loyalty}/index.ts +28 -11
  277. package/src/resources/loyalty/loyalty.ts +259 -0
  278. package/src/resources/{api/loyalty → loyalty}/multipliers.ts +70 -7
  279. package/src/resources/{api/loyalty → loyalty}/questions-responses.ts +48 -3
  280. package/src/resources/{api/loyalty → loyalty}/questions.ts +40 -4
  281. package/src/resources/loyalty/rule-edits.ts +4008 -0
  282. package/src/resources/{api/loyalty/loyalty.ts → loyalty/rule-groups.ts} +443 -551
  283. package/src/resources/{api/loyalty → loyalty}/rules.ts +2927 -526
  284. package/src/resources/loyalty/transactions/index.ts +18 -0
  285. package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
  286. package/src/resources/loyalty/transactions/transactions.ts +677 -0
  287. package/src/resources/loyalty/transactions.ts +3 -0
  288. package/src/resources/{api/minting.ts → minting.ts} +37 -23
  289. package/src/resources/{api/referral → referral}/referral.ts +15 -13
  290. package/src/resources/{api/referral → referral}/users.ts +35 -4
  291. package/src/resources/{api/users → users}/index.ts +6 -0
  292. package/src/resources/{api/users → users}/metadatas.ts +62 -3
  293. package/src/resources/users/users.ts +603 -0
  294. package/src/resources/websites/index.ts +22 -0
  295. package/src/resources/{api → websites}/website-collections.ts +52 -17
  296. package/src/resources/{api → websites}/website-user-roles.ts +23 -0
  297. package/src/resources/{api → websites}/websites.ts +52 -0
  298. package/src/resources/websites.ts +3 -0
  299. package/src/version.ts +1 -1
  300. package/version.d.ts +1 -1
  301. package/version.d.ts.map +1 -1
  302. package/version.js +1 -1
  303. package/version.js.map +1 -1
  304. package/version.mjs +1 -1
  305. package/version.mjs.map +1 -1
  306. package/resources/api/api.d.ts +0 -365
  307. package/resources/api/api.d.ts.map +0 -1
  308. package/resources/api/api.js +0 -94
  309. package/resources/api/api.js.map +0 -1
  310. package/resources/api/api.mjs +0 -67
  311. package/resources/api/api.mjs.map +0 -1
  312. package/resources/api/index.d.ts +0 -9
  313. package/resources/api/index.d.ts.map +0 -1
  314. package/resources/api/index.js +0 -21
  315. package/resources/api/index.js.map +0 -1
  316. package/resources/api/index.mjs.map +0 -1
  317. package/resources/api/loyalty/accounts.d.ts.map +0 -1
  318. package/resources/api/loyalty/accounts.js.map +0 -1
  319. package/resources/api/loyalty/accounts.mjs +0 -20
  320. package/resources/api/loyalty/accounts.mjs.map +0 -1
  321. package/resources/api/loyalty/badges.d.ts.map +0 -1
  322. package/resources/api/loyalty/badges.js.map +0 -1
  323. package/resources/api/loyalty/badges.mjs.map +0 -1
  324. package/resources/api/loyalty/currencies.d.ts.map +0 -1
  325. package/resources/api/loyalty/currencies.js +0 -21
  326. package/resources/api/loyalty/currencies.js.map +0 -1
  327. package/resources/api/loyalty/currencies.mjs +0 -17
  328. package/resources/api/loyalty/currencies.mjs.map +0 -1
  329. package/resources/api/loyalty/index.d.ts.map +0 -1
  330. package/resources/api/loyalty/index.js.map +0 -1
  331. package/resources/api/loyalty/index.mjs.map +0 -1
  332. package/resources/api/loyalty/loyalty.d.ts.map +0 -1
  333. package/resources/api/loyalty/loyalty.js.map +0 -1
  334. package/resources/api/loyalty/loyalty.mjs.map +0 -1
  335. package/resources/api/loyalty/multipliers.d.ts.map +0 -1
  336. package/resources/api/loyalty/multipliers.js.map +0 -1
  337. package/resources/api/loyalty/multipliers.mjs.map +0 -1
  338. package/resources/api/loyalty/questions-responses.d.ts.map +0 -1
  339. package/resources/api/loyalty/questions-responses.js.map +0 -1
  340. package/resources/api/loyalty/questions-responses.mjs.map +0 -1
  341. package/resources/api/loyalty/questions.d.ts.map +0 -1
  342. package/resources/api/loyalty/questions.js +0 -27
  343. package/resources/api/loyalty/questions.js.map +0 -1
  344. package/resources/api/loyalty/questions.mjs +0 -23
  345. package/resources/api/loyalty/questions.mjs.map +0 -1
  346. package/resources/api/loyalty/rule-edits.d.ts +0 -330
  347. package/resources/api/loyalty/rule-edits.d.ts.map +0 -1
  348. package/resources/api/loyalty/rule-edits.js.map +0 -1
  349. package/resources/api/loyalty/rule-edits.mjs.map +0 -1
  350. package/resources/api/loyalty/rules.d.ts.map +0 -1
  351. package/resources/api/loyalty/rules.js +0 -46
  352. package/resources/api/loyalty/rules.js.map +0 -1
  353. package/resources/api/loyalty/rules.mjs +0 -42
  354. package/resources/api/loyalty/rules.mjs.map +0 -1
  355. package/resources/api/loyalty.d.ts.map +0 -1
  356. package/resources/api/loyalty.js.map +0 -1
  357. package/resources/api/loyalty.mjs.map +0 -1
  358. package/resources/api/minting.d.ts.map +0 -1
  359. package/resources/api/minting.js.map +0 -1
  360. package/resources/api/minting.mjs.map +0 -1
  361. package/resources/api/referral/index.d.ts.map +0 -1
  362. package/resources/api/referral/index.js.map +0 -1
  363. package/resources/api/referral/index.mjs.map +0 -1
  364. package/resources/api/referral/referral.d.ts.map +0 -1
  365. package/resources/api/referral/referral.js.map +0 -1
  366. package/resources/api/referral/referral.mjs.map +0 -1
  367. package/resources/api/referral/users.d.ts.map +0 -1
  368. package/resources/api/referral/users.js.map +0 -1
  369. package/resources/api/referral/users.mjs.map +0 -1
  370. package/resources/api/referral.d.ts.map +0 -1
  371. package/resources/api/referral.js.map +0 -1
  372. package/resources/api/referral.mjs.map +0 -1
  373. package/resources/api/users/index.d.ts +0 -3
  374. package/resources/api/users/index.d.ts.map +0 -1
  375. package/resources/api/users/index.js.map +0 -1
  376. package/resources/api/users/index.mjs.map +0 -1
  377. package/resources/api/users/metadatas.d.ts.map +0 -1
  378. package/resources/api/users/metadatas.js.map +0 -1
  379. package/resources/api/users/metadatas.mjs.map +0 -1
  380. package/resources/api/users/users.d.ts +0 -133
  381. package/resources/api/users/users.d.ts.map +0 -1
  382. package/resources/api/users/users.js.map +0 -1
  383. package/resources/api/users/users.mjs +0 -30
  384. package/resources/api/users/users.mjs.map +0 -1
  385. package/resources/api/users.d.ts.map +0 -1
  386. package/resources/api/users.js.map +0 -1
  387. package/resources/api/users.mjs.map +0 -1
  388. package/resources/api/website-collections.d.ts.map +0 -1
  389. package/resources/api/website-collections.js.map +0 -1
  390. package/resources/api/website-collections.mjs +0 -21
  391. package/resources/api/website-collections.mjs.map +0 -1
  392. package/resources/api/website-user-roles.d.ts.map +0 -1
  393. package/resources/api/website-user-roles.js.map +0 -1
  394. package/resources/api/website-user-roles.mjs +0 -18
  395. package/resources/api/website-user-roles.mjs.map +0 -1
  396. package/resources/api/websites.d.ts.map +0 -1
  397. package/resources/api/websites.js +0 -22
  398. package/resources/api/websites.js.map +0 -1
  399. package/resources/api/websites.mjs +0 -18
  400. package/resources/api/websites.mjs.map +0 -1
  401. package/resources/api.d.ts +0 -2
  402. package/resources/api.d.ts.map +0 -1
  403. package/resources/api.js.map +0 -1
  404. package/resources/api.mjs.map +0 -1
  405. package/src/resources/api/api.ts +0 -629
  406. package/src/resources/api/index.ts +0 -51
  407. package/src/resources/api/loyalty/rule-edits.ts +0 -418
  408. package/src/resources/api/users/users.ts +0 -203
  409. /package/resources/{api/loyalty.d.ts → loyalty.d.ts} +0 -0
  410. /package/resources/{api/loyalty.js → loyalty.js} +0 -0
  411. /package/resources/{api/loyalty.mjs → loyalty.mjs} +0 -0
  412. /package/resources/{api/referral → referral}/index.d.ts +0 -0
  413. /package/resources/{api/referral → referral}/index.js +0 -0
  414. /package/resources/{api/referral → referral}/index.mjs +0 -0
  415. /package/resources/{api/referral.d.ts → referral.d.ts} +0 -0
  416. /package/resources/{api/referral.js → referral.js} +0 -0
  417. /package/resources/{api/referral.mjs → referral.mjs} +0 -0
  418. /package/resources/{api/users → users}/index.js +0 -0
  419. /package/resources/{api/users → users}/index.mjs +0 -0
  420. /package/resources/{api/users.d.ts → users.d.ts} +0 -0
  421. /package/resources/{api/users.js → users.js} +0 -0
  422. /package/resources/{api/users.mjs → users.mjs} +0 -0
  423. /package/src/resources/{api/loyalty.ts → loyalty.ts} +0 -0
  424. /package/src/resources/{api/referral → referral}/index.ts +0 -0
  425. /package/src/resources/{api/referral.ts → referral.ts} +0 -0
  426. /package/src/resources/{api/users.ts → users.ts} +0 -0
@@ -1,31 +1,75 @@
1
- import { APIResource } from "../../../resource.js";
2
- import * as Core from "../../../core.js";
1
+ import { APIResource } from "../../resource.js";
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
  /**
@@ -74,7 +126,7 @@ export declare namespace BadgeCreateResponse {
74
126
  amount: number | null;
75
127
  association: Array<LoyaltyCondition.Association>;
76
128
  /**
77
- * The URL of the CSV file
129
+ * URL of the CSV file
78
130
  */
79
131
  csvUrl: string | null;
80
132
  /**
@@ -101,6 +153,10 @@ export declare namespace BadgeCreateResponse {
101
153
  * The type of the condition
102
154
  */
103
155
  type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
156
+ /**
157
+ * Array of CSV files associated with the condition
158
+ */
159
+ csvFiles?: Array<LoyaltyCondition.CsvFile>;
104
160
  }
105
161
  namespace LoyaltyCondition {
106
162
  interface Association {
@@ -162,12 +218,56 @@ export declare namespace BadgeCreateResponse {
162
218
  name: string;
163
219
  }
164
220
  }
221
+ interface CsvFile {
222
+ /**
223
+ * UUID of the CSV file (converted to lowercase)
224
+ */
225
+ id: string;
226
+ /**
227
+ * The description of the CSV file
228
+ */
229
+ description: string | null;
230
+ /**
231
+ * The name of the CSV file
232
+ */
233
+ name: string | null;
234
+ /**
235
+ * The URL of the CSV file
236
+ */
237
+ url: string | null;
238
+ }
239
+ }
240
+ interface DataJob {
241
+ /**
242
+ * UUID of the data job (converted to lowercase)
243
+ */
244
+ id: string;
245
+ /**
246
+ * The date and time the data job was created
247
+ */
248
+ createdAt: string;
249
+ /**
250
+ * The status of the data job
251
+ */
252
+ status: 'pending' | 'complete' | 'failed';
253
+ /**
254
+ * The date and time the data job was updated
255
+ */
256
+ updatedAt: string;
257
+ /**
258
+ * The message associated with the data job
259
+ */
260
+ message?: string | null;
165
261
  }
166
262
  interface LoyaltyBadgeUser {
167
263
  /**
168
264
  * UUID of the user badge (converted to lowercase)
169
265
  */
170
266
  id: string;
267
+ /**
268
+ * The date and time the user badge was created
269
+ */
270
+ createdAt: string;
171
271
  /**
172
272
  * UUID of the badge (converted to lowercase)
173
273
  */
@@ -180,6 +280,10 @@ export declare namespace BadgeCreateResponse {
180
280
  * The status of the badge
181
281
  */
182
282
  status: 'active' | 'inactive' | 'revoked';
283
+ /**
284
+ * The date and time the user badge was updated
285
+ */
286
+ updatedAt: string;
183
287
  /**
184
288
  * UUID of the user (converted to lowercase)
185
289
  */
@@ -188,10 +292,43 @@ export declare namespace BadgeCreateResponse {
188
292
  * UUID of the website (converted to lowercase)
189
293
  */
190
294
  websiteId: string;
295
+ /**
296
+ * Whether the user has dismissed the badge in the UI
297
+ */
298
+ dismissedInUi?: boolean;
191
299
  /**
192
300
  * Array of progress for the badge
193
301
  */
194
302
  progress?: unknown;
303
+ /**
304
+ * User associated with the user badge
305
+ */
306
+ user?: LoyaltyBadgeUser.User;
307
+ }
308
+ namespace LoyaltyBadgeUser {
309
+ /**
310
+ * User associated with the user badge
311
+ */
312
+ interface User {
313
+ /**
314
+ * UUID of the user (converted to lowercase)
315
+ */
316
+ id: string;
317
+ /**
318
+ * Wallet address of the user
319
+ */
320
+ walletAddress: string;
321
+ }
322
+ }
323
+ interface LoyaltyRule {
324
+ /**
325
+ * UUID of the loyalty rule (converted to lowercase)
326
+ */
327
+ id: string;
328
+ /**
329
+ * The name of the loyalty rule
330
+ */
331
+ name: string;
195
332
  }
196
333
  }
197
334
  /**
@@ -218,10 +355,18 @@ export interface BadgeUpdateResponse {
218
355
  * The name of the badge
219
356
  */
220
357
  name: string;
358
+ /**
359
+ * Array of data jobs associated with the badge
360
+ */
361
+ dataJobs?: Array<BadgeUpdateResponse.DataJob>;
221
362
  /**
222
363
  * Array of user badges
223
364
  */
224
- LoyaltyBadgeUser?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
365
+ loyaltyBadgeUsers?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
366
+ /**
367
+ * Array of loyalty rules associated with the badge
368
+ */
369
+ loyaltyRules?: Array<BadgeUpdateResponse.LoyaltyRule>;
225
370
  }
226
371
  export declare namespace BadgeUpdateResponse {
227
372
  /**
@@ -238,7 +383,7 @@ export declare namespace BadgeUpdateResponse {
238
383
  amount: number | null;
239
384
  association: Array<LoyaltyCondition.Association>;
240
385
  /**
241
- * The URL of the CSV file
386
+ * URL of the CSV file
242
387
  */
243
388
  csvUrl: string | null;
244
389
  /**
@@ -265,6 +410,10 @@ export declare namespace BadgeUpdateResponse {
265
410
  * The type of the condition
266
411
  */
267
412
  type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
413
+ /**
414
+ * Array of CSV files associated with the condition
415
+ */
416
+ csvFiles?: Array<LoyaltyCondition.CsvFile>;
268
417
  }
269
418
  namespace LoyaltyCondition {
270
419
  interface Association {
@@ -326,12 +475,56 @@ export declare namespace BadgeUpdateResponse {
326
475
  name: string;
327
476
  }
328
477
  }
478
+ interface CsvFile {
479
+ /**
480
+ * UUID of the CSV file (converted to lowercase)
481
+ */
482
+ id: string;
483
+ /**
484
+ * The description of the CSV file
485
+ */
486
+ description: string | null;
487
+ /**
488
+ * The name of the CSV file
489
+ */
490
+ name: string | null;
491
+ /**
492
+ * The URL of the CSV file
493
+ */
494
+ url: string | null;
495
+ }
496
+ }
497
+ interface DataJob {
498
+ /**
499
+ * UUID of the data job (converted to lowercase)
500
+ */
501
+ id: string;
502
+ /**
503
+ * The date and time the data job was created
504
+ */
505
+ createdAt: string;
506
+ /**
507
+ * The status of the data job
508
+ */
509
+ status: 'pending' | 'complete' | 'failed';
510
+ /**
511
+ * The date and time the data job was updated
512
+ */
513
+ updatedAt: string;
514
+ /**
515
+ * The message associated with the data job
516
+ */
517
+ message?: string | null;
329
518
  }
330
519
  interface LoyaltyBadgeUser {
331
520
  /**
332
521
  * UUID of the user badge (converted to lowercase)
333
522
  */
334
523
  id: string;
524
+ /**
525
+ * The date and time the user badge was created
526
+ */
527
+ createdAt: string;
335
528
  /**
336
529
  * UUID of the badge (converted to lowercase)
337
530
  */
@@ -344,6 +537,10 @@ export declare namespace BadgeUpdateResponse {
344
537
  * The status of the badge
345
538
  */
346
539
  status: 'active' | 'inactive' | 'revoked';
540
+ /**
541
+ * The date and time the user badge was updated
542
+ */
543
+ updatedAt: string;
347
544
  /**
348
545
  * UUID of the user (converted to lowercase)
349
546
  */
@@ -352,10 +549,43 @@ export declare namespace BadgeUpdateResponse {
352
549
  * UUID of the website (converted to lowercase)
353
550
  */
354
551
  websiteId: string;
552
+ /**
553
+ * Whether the user has dismissed the badge in the UI
554
+ */
555
+ dismissedInUi?: boolean;
355
556
  /**
356
557
  * Array of progress for the badge
357
558
  */
358
559
  progress?: unknown;
560
+ /**
561
+ * User associated with the user badge
562
+ */
563
+ user?: LoyaltyBadgeUser.User;
564
+ }
565
+ namespace LoyaltyBadgeUser {
566
+ /**
567
+ * User associated with the user badge
568
+ */
569
+ interface User {
570
+ /**
571
+ * UUID of the user (converted to lowercase)
572
+ */
573
+ id: string;
574
+ /**
575
+ * Wallet address of the user
576
+ */
577
+ walletAddress: string;
578
+ }
579
+ }
580
+ interface LoyaltyRule {
581
+ /**
582
+ * UUID of the loyalty rule (converted to lowercase)
583
+ */
584
+ id: string;
585
+ /**
586
+ * The name of the loyalty rule
587
+ */
588
+ name: string;
359
589
  }
360
590
  }
361
591
  /**
@@ -382,10 +612,18 @@ export interface BadgeListResponse {
382
612
  * The name of the badge
383
613
  */
384
614
  name: string;
615
+ /**
616
+ * Array of data jobs associated with the badge
617
+ */
618
+ dataJobs?: Array<BadgeListResponse.DataJob>;
385
619
  /**
386
620
  * Array of user badges
387
621
  */
388
- LoyaltyBadgeUser?: Array<BadgeListResponse.LoyaltyBadgeUser>;
622
+ loyaltyBadgeUsers?: Array<BadgeListResponse.LoyaltyBadgeUser>;
623
+ /**
624
+ * Array of loyalty rules associated with the badge
625
+ */
626
+ loyaltyRules?: Array<BadgeListResponse.LoyaltyRule>;
389
627
  }
390
628
  export declare namespace BadgeListResponse {
391
629
  /**
@@ -402,7 +640,7 @@ export declare namespace BadgeListResponse {
402
640
  amount: number | null;
403
641
  association: Array<LoyaltyCondition.Association>;
404
642
  /**
405
- * The URL of the CSV file
643
+ * URL of the CSV file
406
644
  */
407
645
  csvUrl: string | null;
408
646
  /**
@@ -429,6 +667,10 @@ export declare namespace BadgeListResponse {
429
667
  * The type of the condition
430
668
  */
431
669
  type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
670
+ /**
671
+ * Array of CSV files associated with the condition
672
+ */
673
+ csvFiles?: Array<LoyaltyCondition.CsvFile>;
432
674
  }
433
675
  namespace LoyaltyCondition {
434
676
  interface Association {
@@ -490,12 +732,56 @@ export declare namespace BadgeListResponse {
490
732
  name: string;
491
733
  }
492
734
  }
735
+ interface CsvFile {
736
+ /**
737
+ * UUID of the CSV file (converted to lowercase)
738
+ */
739
+ id: string;
740
+ /**
741
+ * The description of the CSV file
742
+ */
743
+ description: string | null;
744
+ /**
745
+ * The name of the CSV file
746
+ */
747
+ name: string | null;
748
+ /**
749
+ * The URL of the CSV file
750
+ */
751
+ url: string | null;
752
+ }
753
+ }
754
+ interface DataJob {
755
+ /**
756
+ * UUID of the data job (converted to lowercase)
757
+ */
758
+ id: string;
759
+ /**
760
+ * The date and time the data job was created
761
+ */
762
+ createdAt: string;
763
+ /**
764
+ * The status of the data job
765
+ */
766
+ status: 'pending' | 'complete' | 'failed';
767
+ /**
768
+ * The date and time the data job was updated
769
+ */
770
+ updatedAt: string;
771
+ /**
772
+ * The message associated with the data job
773
+ */
774
+ message?: string | null;
493
775
  }
494
776
  interface LoyaltyBadgeUser {
495
777
  /**
496
778
  * UUID of the user badge (converted to lowercase)
497
779
  */
498
780
  id: string;
781
+ /**
782
+ * The date and time the user badge was created
783
+ */
784
+ createdAt: string;
499
785
  /**
500
786
  * UUID of the badge (converted to lowercase)
501
787
  */
@@ -508,6 +794,10 @@ export declare namespace BadgeListResponse {
508
794
  * The status of the badge
509
795
  */
510
796
  status: 'active' | 'inactive' | 'revoked';
797
+ /**
798
+ * The date and time the user badge was updated
799
+ */
800
+ updatedAt: string;
511
801
  /**
512
802
  * UUID of the user (converted to lowercase)
513
803
  */
@@ -516,10 +806,43 @@ export declare namespace BadgeListResponse {
516
806
  * UUID of the website (converted to lowercase)
517
807
  */
518
808
  websiteId: string;
809
+ /**
810
+ * Whether the user has dismissed the badge in the UI
811
+ */
812
+ dismissedInUi?: boolean;
519
813
  /**
520
814
  * Array of progress for the badge
521
815
  */
522
816
  progress?: unknown;
817
+ /**
818
+ * User associated with the user badge
819
+ */
820
+ user?: LoyaltyBadgeUser.User;
821
+ }
822
+ namespace LoyaltyBadgeUser {
823
+ /**
824
+ * User associated with the user badge
825
+ */
826
+ interface User {
827
+ /**
828
+ * UUID of the user (converted to lowercase)
829
+ */
830
+ id: string;
831
+ /**
832
+ * Wallet address of the user
833
+ */
834
+ walletAddress: string;
835
+ }
836
+ }
837
+ interface LoyaltyRule {
838
+ /**
839
+ * UUID of the loyalty rule (converted to lowercase)
840
+ */
841
+ id: string;
842
+ /**
843
+ * The name of the loyalty rule
844
+ */
845
+ name: string;
523
846
  }
524
847
  }
525
848
  /**
@@ -546,10 +869,18 @@ export interface BadgeDeleteResponse {
546
869
  * The name of the badge
547
870
  */
548
871
  name: string;
872
+ /**
873
+ * Array of data jobs associated with the badge
874
+ */
875
+ dataJobs?: Array<BadgeDeleteResponse.DataJob>;
549
876
  /**
550
877
  * Array of user badges
551
878
  */
552
- LoyaltyBadgeUser?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
879
+ loyaltyBadgeUsers?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
880
+ /**
881
+ * Array of loyalty rules associated with the badge
882
+ */
883
+ loyaltyRules?: Array<BadgeDeleteResponse.LoyaltyRule>;
553
884
  }
554
885
  export declare namespace BadgeDeleteResponse {
555
886
  /**
@@ -566,7 +897,7 @@ export declare namespace BadgeDeleteResponse {
566
897
  amount: number | null;
567
898
  association: Array<LoyaltyCondition.Association>;
568
899
  /**
569
- * The URL of the CSV file
900
+ * URL of the CSV file
570
901
  */
571
902
  csvUrl: string | null;
572
903
  /**
@@ -593,6 +924,10 @@ export declare namespace BadgeDeleteResponse {
593
924
  * The type of the condition
594
925
  */
595
926
  type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
927
+ /**
928
+ * Array of CSV files associated with the condition
929
+ */
930
+ csvFiles?: Array<LoyaltyCondition.CsvFile>;
596
931
  }
597
932
  namespace LoyaltyCondition {
598
933
  interface Association {
@@ -654,12 +989,56 @@ export declare namespace BadgeDeleteResponse {
654
989
  name: string;
655
990
  }
656
991
  }
992
+ interface CsvFile {
993
+ /**
994
+ * UUID of the CSV file (converted to lowercase)
995
+ */
996
+ id: string;
997
+ /**
998
+ * The description of the CSV file
999
+ */
1000
+ description: string | null;
1001
+ /**
1002
+ * The name of the CSV file
1003
+ */
1004
+ name: string | null;
1005
+ /**
1006
+ * The URL of the CSV file
1007
+ */
1008
+ url: string | null;
1009
+ }
1010
+ }
1011
+ interface DataJob {
1012
+ /**
1013
+ * UUID of the data job (converted to lowercase)
1014
+ */
1015
+ id: string;
1016
+ /**
1017
+ * The date and time the data job was created
1018
+ */
1019
+ createdAt: string;
1020
+ /**
1021
+ * The status of the data job
1022
+ */
1023
+ status: 'pending' | 'complete' | 'failed';
1024
+ /**
1025
+ * The date and time the data job was updated
1026
+ */
1027
+ updatedAt: string;
1028
+ /**
1029
+ * The message associated with the data job
1030
+ */
1031
+ message?: string | null;
657
1032
  }
658
1033
  interface LoyaltyBadgeUser {
659
1034
  /**
660
1035
  * UUID of the user badge (converted to lowercase)
661
1036
  */
662
1037
  id: string;
1038
+ /**
1039
+ * The date and time the user badge was created
1040
+ */
1041
+ createdAt: string;
663
1042
  /**
664
1043
  * UUID of the badge (converted to lowercase)
665
1044
  */
@@ -672,6 +1051,10 @@ export declare namespace BadgeDeleteResponse {
672
1051
  * The status of the badge
673
1052
  */
674
1053
  status: 'active' | 'inactive' | 'revoked';
1054
+ /**
1055
+ * The date and time the user badge was updated
1056
+ */
1057
+ updatedAt: string;
675
1058
  /**
676
1059
  * UUID of the user (converted to lowercase)
677
1060
  */
@@ -680,10 +1063,43 @@ export declare namespace BadgeDeleteResponse {
680
1063
  * UUID of the website (converted to lowercase)
681
1064
  */
682
1065
  websiteId: string;
1066
+ /**
1067
+ * Whether the user has dismissed the badge in the UI
1068
+ */
1069
+ dismissedInUi?: boolean;
683
1070
  /**
684
1071
  * Array of progress for the badge
685
1072
  */
686
1073
  progress?: unknown;
1074
+ /**
1075
+ * User associated with the user badge
1076
+ */
1077
+ user?: LoyaltyBadgeUser.User;
1078
+ }
1079
+ namespace LoyaltyBadgeUser {
1080
+ /**
1081
+ * User associated with the user badge
1082
+ */
1083
+ interface User {
1084
+ /**
1085
+ * UUID of the user (converted to lowercase)
1086
+ */
1087
+ id: string;
1088
+ /**
1089
+ * Wallet address of the user
1090
+ */
1091
+ walletAddress: string;
1092
+ }
1093
+ }
1094
+ interface LoyaltyRule {
1095
+ /**
1096
+ * UUID of the loyalty rule (converted to lowercase)
1097
+ */
1098
+ id: string;
1099
+ /**
1100
+ * The name of the loyalty rule
1101
+ */
1102
+ name: string;
687
1103
  }
688
1104
  }
689
1105
  /**
@@ -723,6 +1139,10 @@ export declare namespace BadgeRewardResponse {
723
1139
  }
724
1140
  }
725
1141
  export interface BadgeCreateParams {
1142
+ /**
1143
+ * Array of conditions for the badge
1144
+ */
1145
+ conditions: Array<BadgeCreateParams.Condition>;
726
1146
  /**
727
1147
  * The URL of the badge image
728
1148
  */
@@ -735,25 +1155,18 @@ export interface BadgeCreateParams {
735
1155
  * UUID of the organization (optional, converted to lowercase)
736
1156
  */
737
1157
  organizationId: string;
738
- /**
739
- * Array of rules for the badge
740
- */
741
- rules: Array<BadgeCreateParams.Rule>;
742
1158
  /**
743
1159
  * UUID of the website (optional, converted to lowercase)
744
1160
  */
745
1161
  websiteId: string;
1162
+ csvFiles?: Array<BadgeCreateParams.CsvFile>;
746
1163
  /**
747
1164
  * The description of the badge
748
1165
  */
749
1166
  description?: string;
750
1167
  }
751
1168
  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';
1169
+ interface Condition {
757
1170
  /**
758
1171
  * The amount of the rule
759
1172
  */
@@ -781,7 +1194,7 @@ export declare namespace BadgeCreateParams {
781
1194
  /**
782
1195
  * UUID of the loyalty rule chain (optional, converted to lowercase)
783
1196
  */
784
- loyaltyRuleChainId?: string;
1197
+ loyaltyRuleChainId?: string | null;
785
1198
  /**
786
1199
  * Array of UUIDs of the rule group (optional, converted to lowercase)
787
1200
  */
@@ -798,9 +1211,19 @@ export declare namespace BadgeCreateParams {
798
1211
  * The number of rules that need to be fulfilled to satisfy the condition
799
1212
  */
800
1213
  requiredCount?: number | null;
1214
+ /**
1215
+ * The type of rule
1216
+ */
1217
+ type?: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
1218
+ }
1219
+ interface CsvFile {
1220
+ src: string;
1221
+ description?: string;
1222
+ name?: string;
801
1223
  }
802
1224
  }
803
1225
  export interface BadgeUpdateParams {
1226
+ csvFiles?: Array<BadgeUpdateParams.CsvFile>;
804
1227
  /**
805
1228
  * The description of the badge
806
1229
  */
@@ -814,11 +1237,18 @@ export interface BadgeUpdateParams {
814
1237
  */
815
1238
  name?: string;
816
1239
  }
1240
+ export declare namespace BadgeUpdateParams {
1241
+ interface CsvFile {
1242
+ src: string;
1243
+ description?: string;
1244
+ name?: string;
1245
+ }
1246
+ }
817
1247
  export interface BadgeListParams {
818
1248
  /**
819
1249
  * Array of badge IDs (converted to lowercase) to fetch
820
1250
  */
821
- badgeIds?: Array<string>;
1251
+ badgeIds?: string | Array<string>;
822
1252
  /**
823
1253
  * Include deleted badges in the response
824
1254
  */
@@ -836,15 +1266,31 @@ export interface BadgeListParams {
836
1266
  */
837
1267
  startingAfter?: string;
838
1268
  /**
839
- * UUID of the user (optional, converted to lowercase)
1269
+ * External identifier of the user group
840
1270
  */
841
- userId?: string;
1271
+ userGroupExternalIdentifier?: string;
1272
+ /**
1273
+ * UUID of the user group
1274
+ */
1275
+ userGroupId?: string;
1276
+ /**
1277
+ * UUID of the user, or array of UUID.
1278
+ */
1279
+ userId?: string | Array<string>;
1280
+ /**
1281
+ * Wallet Address of the user, or array of wallet addresses.
1282
+ */
1283
+ walletAddress?: string | Array<string>;
842
1284
  /**
843
1285
  * UUID of the website (optional, converted to lowercase)
844
1286
  */
845
1287
  websiteId?: string;
846
1288
  }
847
1289
  export interface BadgeRevokeParams {
1290
+ /**
1291
+ * Status of the badge
1292
+ */
1293
+ status?: 'active' | 'inactive' | 'revoked';
848
1294
  /**
849
1295
  * UUID of the user (converted to lowercase)
850
1296
  */
@@ -855,6 +1301,10 @@ export interface BadgeRevokeParams {
855
1301
  walletAddress?: string;
856
1302
  }
857
1303
  export interface BadgeRewardParams {
1304
+ /**
1305
+ * Status of the badge
1306
+ */
1307
+ status?: 'active' | 'inactive' | 'revoked';
858
1308
  /**
859
1309
  * UUID of the user (converted to lowercase)
860
1310
  */