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

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 (325) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/README.md +22 -14
  3. package/core.d.ts.map +1 -1
  4. package/core.js +14 -7
  5. package/core.js.map +1 -1
  6. package/core.mjs +14 -7
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +11 -26
  9. package/index.d.ts +11 -26
  10. package/index.d.ts.map +1 -1
  11. package/index.js +8 -23
  12. package/index.js.map +1 -1
  13. package/index.mjs +8 -23
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/api/api.d.ts +365 -0
  17. package/resources/api/api.d.ts.map +1 -0
  18. package/resources/api/api.js +94 -0
  19. package/resources/api/api.js.map +1 -0
  20. package/resources/api/api.mjs +67 -0
  21. package/resources/api/api.mjs.map +1 -0
  22. package/resources/api/index.d.ts +9 -0
  23. package/resources/api/index.d.ts.map +1 -0
  24. package/resources/api/index.js +21 -0
  25. package/resources/api/index.js.map +1 -0
  26. package/resources/api/index.mjs +10 -0
  27. package/resources/api/index.mjs.map +1 -0
  28. package/resources/{loyalty → api/loyalty}/accounts.d.ts +44 -6
  29. package/resources/api/loyalty/accounts.d.ts.map +1 -0
  30. package/resources/api/loyalty/accounts.js +24 -0
  31. package/resources/api/loyalty/accounts.js.map +1 -0
  32. package/resources/api/loyalty/accounts.mjs +20 -0
  33. package/resources/api/loyalty/accounts.mjs.map +1 -0
  34. package/resources/api/loyalty/badges.d.ts +870 -0
  35. package/resources/api/loyalty/badges.d.ts.map +1 -0
  36. package/resources/{loyalty → api/loyalty}/badges.js +2 -2
  37. package/resources/api/loyalty/badges.js.map +1 -0
  38. package/resources/{loyalty → api/loyalty}/badges.mjs +2 -2
  39. package/resources/api/loyalty/badges.mjs.map +1 -0
  40. package/resources/{loyalty → api/loyalty}/currencies.d.ts +3 -9
  41. package/resources/api/loyalty/currencies.d.ts.map +1 -0
  42. package/resources/{loyalty → api/loyalty}/currencies.js +1 -1
  43. package/resources/api/loyalty/currencies.js.map +1 -0
  44. package/resources/{loyalty → api/loyalty}/currencies.mjs +1 -1
  45. package/resources/api/loyalty/currencies.mjs.map +1 -0
  46. package/resources/api/loyalty/index.d.ts +10 -0
  47. package/resources/api/loyalty/index.d.ts.map +1 -0
  48. package/resources/{loyalty → api/loyalty}/index.js +5 -3
  49. package/resources/api/loyalty/index.js.map +1 -0
  50. package/resources/{loyalty → api/loyalty}/index.mjs +4 -3
  51. package/resources/api/loyalty/index.mjs.map +1 -0
  52. package/resources/api/loyalty/loyalty.d.ts +807 -0
  53. package/resources/api/loyalty/loyalty.d.ts.map +1 -0
  54. package/resources/{loyalty → api/loyalty}/loyalty.js +36 -13
  55. package/resources/api/loyalty/loyalty.js.map +1 -0
  56. package/resources/api/loyalty/loyalty.mjs +59 -0
  57. package/resources/api/loyalty/loyalty.mjs.map +1 -0
  58. package/resources/{loyalty → api/loyalty}/multipliers.d.ts +36 -4
  59. package/resources/api/loyalty/multipliers.d.ts.map +1 -0
  60. package/resources/{loyalty → api/loyalty}/multipliers.js +8 -2
  61. package/resources/api/loyalty/multipliers.js.map +1 -0
  62. package/resources/{loyalty → api/loyalty}/multipliers.mjs +8 -2
  63. package/resources/api/loyalty/multipliers.mjs.map +1 -0
  64. package/resources/api/loyalty/questions-responses.d.ts +97 -0
  65. package/resources/api/loyalty/questions-responses.d.ts.map +1 -0
  66. package/resources/api/loyalty/questions-responses.js +22 -0
  67. package/resources/api/loyalty/questions-responses.js.map +1 -0
  68. package/resources/api/loyalty/questions-responses.mjs +18 -0
  69. package/resources/api/loyalty/questions-responses.mjs.map +1 -0
  70. package/resources/api/loyalty/questions.d.ts +150 -0
  71. package/resources/api/loyalty/questions.d.ts.map +1 -0
  72. package/resources/api/loyalty/questions.js +27 -0
  73. package/resources/api/loyalty/questions.js.map +1 -0
  74. package/resources/api/loyalty/questions.mjs +23 -0
  75. package/resources/api/loyalty/questions.mjs.map +1 -0
  76. package/resources/{loyalty → api/loyalty}/rule-edits.d.ts +9 -9
  77. package/resources/api/loyalty/rule-edits.d.ts.map +1 -0
  78. package/resources/{loyalty → api/loyalty}/rule-edits.js +3 -3
  79. package/resources/api/loyalty/rule-edits.js.map +1 -0
  80. package/resources/{loyalty → api/loyalty}/rule-edits.mjs +3 -3
  81. package/resources/api/loyalty/rule-edits.mjs.map +1 -0
  82. package/resources/{loyalty → api/loyalty}/rules.d.ts +167 -90
  83. package/resources/api/loyalty/rules.d.ts.map +1 -0
  84. package/resources/{loyalty → api/loyalty}/rules.js +3 -3
  85. package/resources/api/loyalty/rules.js.map +1 -0
  86. package/resources/{loyalty → api/loyalty}/rules.mjs +3 -3
  87. package/resources/api/loyalty/rules.mjs.map +1 -0
  88. package/resources/api/loyalty.d.ts +2 -0
  89. package/resources/api/loyalty.d.ts.map +1 -0
  90. package/resources/api/loyalty.js +19 -0
  91. package/resources/api/loyalty.js.map +1 -0
  92. package/resources/api/loyalty.mjs +3 -0
  93. package/resources/api/loyalty.mjs.map +1 -0
  94. package/resources/api/minting.d.ts +95 -0
  95. package/resources/api/minting.d.ts.map +1 -0
  96. package/resources/api/minting.js +15 -0
  97. package/resources/api/minting.js.map +1 -0
  98. package/resources/api/minting.mjs +11 -0
  99. package/resources/api/minting.mjs.map +1 -0
  100. package/resources/api/referral/index.d.ts +3 -0
  101. package/resources/api/referral/index.d.ts.map +1 -0
  102. package/resources/api/referral/index.js +9 -0
  103. package/resources/api/referral/index.js.map +1 -0
  104. package/resources/api/referral/index.mjs +4 -0
  105. package/resources/api/referral/index.mjs.map +1 -0
  106. package/resources/api/referral/referral.d.ts +31 -0
  107. package/resources/api/referral/referral.d.ts.map +1 -0
  108. package/resources/{drip/drip.js → api/referral/referral.js} +16 -13
  109. package/resources/api/referral/referral.js.map +1 -0
  110. package/resources/api/referral/referral.mjs +19 -0
  111. package/resources/api/referral/referral.mjs.map +1 -0
  112. package/resources/api/referral/users.d.ts +57 -0
  113. package/resources/api/referral/users.d.ts.map +1 -0
  114. package/resources/api/referral/users.js +21 -0
  115. package/resources/api/referral/users.js.map +1 -0
  116. package/resources/api/referral/users.mjs +17 -0
  117. package/resources/api/referral/users.mjs.map +1 -0
  118. package/resources/api/referral.d.ts +2 -0
  119. package/resources/api/referral.d.ts.map +1 -0
  120. package/resources/api/referral.js +19 -0
  121. package/resources/api/referral.js.map +1 -0
  122. package/resources/api/referral.mjs +3 -0
  123. package/resources/api/referral.mjs.map +1 -0
  124. package/resources/api/users/index.d.ts +3 -0
  125. package/resources/api/users/index.d.ts.map +1 -0
  126. package/resources/{users → api/users}/index.js +1 -3
  127. package/resources/api/users/index.js.map +1 -0
  128. package/resources/api/users/index.mjs +4 -0
  129. package/resources/api/users/index.mjs.map +1 -0
  130. package/resources/api/users/metadatas.d.ts +137 -0
  131. package/resources/api/users/metadatas.d.ts.map +1 -0
  132. package/resources/{users → api/users}/metadatas.js +8 -2
  133. package/resources/api/users/metadatas.js.map +1 -0
  134. package/resources/api/users/metadatas.mjs +18 -0
  135. package/resources/api/users/metadatas.mjs.map +1 -0
  136. package/resources/api/users/users.d.ts +133 -0
  137. package/resources/api/users/users.d.ts.map +1 -0
  138. package/resources/{users → api/users}/users.js +19 -5
  139. package/resources/api/users/users.js.map +1 -0
  140. package/resources/api/users/users.mjs +30 -0
  141. package/resources/api/users/users.mjs.map +1 -0
  142. package/resources/api/users.d.ts +2 -0
  143. package/resources/api/users.d.ts.map +1 -0
  144. package/resources/api/users.js +19 -0
  145. package/resources/api/users.js.map +1 -0
  146. package/resources/api/users.mjs +3 -0
  147. package/resources/api/users.mjs.map +1 -0
  148. package/resources/api/website-collections.d.ts +73 -0
  149. package/resources/api/website-collections.d.ts.map +1 -0
  150. package/resources/api/website-collections.js +25 -0
  151. package/resources/api/website-collections.js.map +1 -0
  152. package/resources/api/website-collections.mjs +21 -0
  153. package/resources/api/website-collections.mjs.map +1 -0
  154. package/resources/api/website-user-roles.d.ts +73 -0
  155. package/resources/api/website-user-roles.d.ts.map +1 -0
  156. package/resources/api/website-user-roles.js +22 -0
  157. package/resources/api/website-user-roles.js.map +1 -0
  158. package/resources/api/website-user-roles.mjs +18 -0
  159. package/resources/api/website-user-roles.mjs.map +1 -0
  160. package/resources/{websites.d.ts → api/websites.d.ts} +2 -2
  161. package/resources/api/websites.d.ts.map +1 -0
  162. package/resources/{websites.js → api/websites.js} +2 -2
  163. package/resources/api/websites.js.map +1 -0
  164. package/resources/{websites.mjs → api/websites.mjs} +2 -2
  165. package/resources/api/websites.mjs.map +1 -0
  166. package/resources/api.d.ts +2 -0
  167. package/resources/api.d.ts.map +1 -0
  168. package/resources/api.js +19 -0
  169. package/resources/api.js.map +1 -0
  170. package/resources/api.mjs +3 -0
  171. package/resources/api.mjs.map +1 -0
  172. package/resources/index.d.ts +1 -6
  173. package/resources/index.d.ts.map +1 -1
  174. package/resources/index.js +3 -13
  175. package/resources/index.js.map +1 -1
  176. package/resources/index.mjs +1 -6
  177. package/resources/index.mjs.map +1 -1
  178. package/resources.d.ts +2 -0
  179. package/resources.d.ts.map +1 -0
  180. package/resources.js +18 -0
  181. package/resources.js.map +1 -0
  182. package/resources.mjs +2 -0
  183. package/resources.mjs.map +1 -0
  184. package/src/core.ts +16 -8
  185. package/src/index.ts +28 -57
  186. package/src/resources/api/api.ts +629 -0
  187. package/src/resources/api/index.ts +51 -0
  188. package/src/resources/{loyalty → api/loyalty}/accounts.ts +65 -8
  189. package/src/resources/api/loyalty/badges.ts +1142 -0
  190. package/src/resources/{loyalty → api/loyalty}/currencies.ts +3 -9
  191. package/src/resources/{loyalty → api/loyalty}/index.ts +38 -11
  192. package/src/resources/api/loyalty/loyalty.ts +1297 -0
  193. package/src/resources/{loyalty → api/loyalty}/multipliers.ts +61 -4
  194. package/src/resources/api/loyalty/questions-responses.ts +146 -0
  195. package/src/resources/api/loyalty/questions.ts +208 -0
  196. package/src/resources/{loyalty → api/loyalty}/rule-edits.ts +11 -14
  197. package/src/resources/{loyalty → api/loyalty}/rules.ts +339 -180
  198. package/src/resources/api/loyalty.ts +3 -0
  199. package/src/resources/api/minting.ts +157 -0
  200. package/src/resources/api/referral/index.ts +10 -0
  201. package/src/resources/api/referral/referral.ts +70 -0
  202. package/src/resources/api/referral/users.ts +93 -0
  203. package/src/resources/api/referral.ts +3 -0
  204. package/src/resources/api/users/index.ts +18 -0
  205. package/src/resources/api/users/metadatas.ts +206 -0
  206. package/src/resources/api/users/users.ts +203 -0
  207. package/src/resources/api/users.ts +3 -0
  208. package/src/resources/api/website-collections.ts +148 -0
  209. package/src/resources/api/website-user-roles.ts +107 -0
  210. package/src/resources/{websites.ts → api/websites.ts} +3 -3
  211. package/src/resources/api.ts +3 -0
  212. package/src/resources/index.ts +8 -11
  213. package/src/resources.ts +1 -0
  214. package/src/version.ts +1 -1
  215. package/version.d.ts +1 -1
  216. package/version.js +1 -1
  217. package/version.mjs +1 -1
  218. package/resources/assets.d.ts +0 -50
  219. package/resources/assets.d.ts.map +0 -1
  220. package/resources/assets.js +0 -17
  221. package/resources/assets.js.map +0 -1
  222. package/resources/assets.mjs +0 -13
  223. package/resources/assets.mjs.map +0 -1
  224. package/resources/auction-bids.d.ts +0 -81
  225. package/resources/auction-bids.d.ts.map +0 -1
  226. package/resources/auction-bids.js +0 -30
  227. package/resources/auction-bids.js.map +0 -1
  228. package/resources/auction-bids.mjs +0 -26
  229. package/resources/auction-bids.mjs.map +0 -1
  230. package/resources/drip/drip.d.ts +0 -14
  231. package/resources/drip/drip.d.ts.map +0 -1
  232. package/resources/drip/drip.js.map +0 -1
  233. package/resources/drip/drip.mjs +0 -16
  234. package/resources/drip/drip.mjs.map +0 -1
  235. package/resources/drip/index.d.ts +0 -4
  236. package/resources/drip/index.d.ts.map +0 -1
  237. package/resources/drip/index.js +0 -11
  238. package/resources/drip/index.js.map +0 -1
  239. package/resources/drip/index.mjs +0 -5
  240. package/resources/drip/index.mjs.map +0 -1
  241. package/resources/drip/quests.d.ts +0 -168
  242. package/resources/drip/quests.d.ts.map +0 -1
  243. package/resources/drip/quests.js +0 -17
  244. package/resources/drip/quests.js.map +0 -1
  245. package/resources/drip/quests.mjs +0 -13
  246. package/resources/drip/quests.mjs.map +0 -1
  247. package/resources/drip/status.d.ts +0 -26
  248. package/resources/drip/status.d.ts.map +0 -1
  249. package/resources/drip/status.js +0 -16
  250. package/resources/drip/status.js.map +0 -1
  251. package/resources/drip/status.mjs +0 -12
  252. package/resources/drip/status.mjs.map +0 -1
  253. package/resources/loyalty/accounts.d.ts.map +0 -1
  254. package/resources/loyalty/accounts.js +0 -16
  255. package/resources/loyalty/accounts.js.map +0 -1
  256. package/resources/loyalty/accounts.mjs +0 -12
  257. package/resources/loyalty/accounts.mjs.map +0 -1
  258. package/resources/loyalty/badges.d.ts +0 -299
  259. package/resources/loyalty/badges.d.ts.map +0 -1
  260. package/resources/loyalty/badges.js.map +0 -1
  261. package/resources/loyalty/badges.mjs.map +0 -1
  262. package/resources/loyalty/currencies.d.ts.map +0 -1
  263. package/resources/loyalty/currencies.js.map +0 -1
  264. package/resources/loyalty/currencies.mjs.map +0 -1
  265. package/resources/loyalty/index.d.ts +0 -9
  266. package/resources/loyalty/index.d.ts.map +0 -1
  267. package/resources/loyalty/index.js.map +0 -1
  268. package/resources/loyalty/index.mjs.map +0 -1
  269. package/resources/loyalty/loyalty.d.ts +0 -34
  270. package/resources/loyalty/loyalty.d.ts.map +0 -1
  271. package/resources/loyalty/loyalty.js.map +0 -1
  272. package/resources/loyalty/loyalty.mjs +0 -36
  273. package/resources/loyalty/loyalty.mjs.map +0 -1
  274. package/resources/loyalty/multipliers.d.ts.map +0 -1
  275. package/resources/loyalty/multipliers.js.map +0 -1
  276. package/resources/loyalty/multipliers.mjs.map +0 -1
  277. package/resources/loyalty/rule-edits.d.ts.map +0 -1
  278. package/resources/loyalty/rule-edits.js.map +0 -1
  279. package/resources/loyalty/rule-edits.mjs.map +0 -1
  280. package/resources/loyalty/rules.d.ts.map +0 -1
  281. package/resources/loyalty/rules.js.map +0 -1
  282. package/resources/loyalty/rules.mjs.map +0 -1
  283. package/resources/loyalty/transaction-entries.d.ts +0 -175
  284. package/resources/loyalty/transaction-entries.d.ts.map +0 -1
  285. package/resources/loyalty/transaction-entries.js +0 -16
  286. package/resources/loyalty/transaction-entries.js.map +0 -1
  287. package/resources/loyalty/transaction-entries.mjs +0 -12
  288. package/resources/loyalty/transaction-entries.mjs.map +0 -1
  289. package/resources/users/index.d.ts +0 -4
  290. package/resources/users/index.d.ts.map +0 -1
  291. package/resources/users/index.js.map +0 -1
  292. package/resources/users/index.mjs +0 -5
  293. package/resources/users/index.mjs.map +0 -1
  294. package/resources/users/metadatas.d.ts +0 -64
  295. package/resources/users/metadatas.d.ts.map +0 -1
  296. package/resources/users/metadatas.js.map +0 -1
  297. package/resources/users/metadatas.mjs +0 -12
  298. package/resources/users/metadatas.mjs.map +0 -1
  299. package/resources/users/users.d.ts +0 -14
  300. package/resources/users/users.d.ts.map +0 -1
  301. package/resources/users/users.js.map +0 -1
  302. package/resources/users/users.mjs +0 -16
  303. package/resources/users/users.mjs.map +0 -1
  304. package/resources/users/wallets.d.ts +0 -193
  305. package/resources/users/wallets.d.ts.map +0 -1
  306. package/resources/users/wallets.js +0 -28
  307. package/resources/users/wallets.js.map +0 -1
  308. package/resources/users/wallets.mjs +0 -24
  309. package/resources/users/wallets.mjs.map +0 -1
  310. package/resources/websites.d.ts.map +0 -1
  311. package/resources/websites.js.map +0 -1
  312. package/resources/websites.mjs.map +0 -1
  313. package/src/resources/assets.ts +0 -71
  314. package/src/resources/auction-bids.ts +0 -123
  315. package/src/resources/drip/drip.ts +0 -25
  316. package/src/resources/drip/index.ts +0 -5
  317. package/src/resources/drip/quests.ts +0 -210
  318. package/src/resources/drip/status.ts +0 -33
  319. package/src/resources/loyalty/badges.ts +0 -435
  320. package/src/resources/loyalty/loyalty.ts +0 -159
  321. package/src/resources/loyalty/transaction-entries.ts +0 -229
  322. package/src/resources/users/index.ts +0 -12
  323. package/src/resources/users/metadatas.ts +0 -103
  324. package/src/resources/users/users.ts +0 -39
  325. package/src/resources/users/wallets.ts +0 -271
@@ -0,0 +1,1142 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../resource';
4
+ import { isRequestOptions } from '../../../core';
5
+ import * as Core from '../../../core';
6
+
7
+ export class Badges extends APIResource {
8
+ /**
9
+ * This endpoint allows you to configure a new badge.
10
+ */
11
+ create(body: BadgeCreateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeCreateResponse> {
12
+ return this._client.post('/api/loyalty/badges', { body, ...options });
13
+ }
14
+
15
+ /**
16
+ * This endpoint allows you to update an existing badge.
17
+ */
18
+ update(
19
+ id: string,
20
+ body?: BadgeUpdateParams,
21
+ options?: Core.RequestOptions,
22
+ ): Core.APIPromise<BadgeUpdateResponse>;
23
+ update(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
24
+ update(
25
+ id: string,
26
+ body: BadgeUpdateParams | Core.RequestOptions = {},
27
+ options?: Core.RequestOptions,
28
+ ): Core.APIPromise<BadgeUpdateResponse> {
29
+ if (isRequestOptions(body)) {
30
+ return this.update(id, {}, body);
31
+ }
32
+ return this._client.post(`/api/loyalty/badges/${id}`, { body, ...options });
33
+ }
34
+
35
+ /**
36
+ * This endpoint allows you to fetch badge(s) data.
37
+ */
38
+ list(query?: BadgeListParams, options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
39
+ list(options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
40
+ list(
41
+ query: BadgeListParams | Core.RequestOptions = {},
42
+ options?: Core.RequestOptions,
43
+ ): Core.APIPromise<BadgeListResponse> {
44
+ if (isRequestOptions(query)) {
45
+ return this.list({}, query);
46
+ }
47
+ return this._client.get('/api/loyalty/badges', { query, ...options });
48
+ }
49
+
50
+ /**
51
+ * This endpoint allows you to delete a badge.
52
+ */
53
+ delete(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeDeleteResponse> {
54
+ return this._client.delete(`/api/loyalty/badges/${id}`, options);
55
+ }
56
+
57
+ /**
58
+ * This endpoint allows you to revoke a badge from an account
59
+ */
60
+ revoke(
61
+ id: string,
62
+ body?: BadgeRevokeParams,
63
+ options?: Core.RequestOptions,
64
+ ): Core.APIPromise<BadgeRevokeResponse>;
65
+ revoke(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
66
+ revoke(
67
+ id: string,
68
+ body: BadgeRevokeParams | Core.RequestOptions = {},
69
+ options?: Core.RequestOptions,
70
+ ): Core.APIPromise<BadgeRevokeResponse> {
71
+ if (isRequestOptions(body)) {
72
+ return this.revoke(id, {}, body);
73
+ }
74
+ return this._client.post(`/api/loyalty/badges/${id}/revoke`, { body, ...options });
75
+ }
76
+
77
+ /**
78
+ * This endpoint allows you to reward a badge for an account
79
+ */
80
+ reward(
81
+ id: string,
82
+ body?: BadgeRewardParams,
83
+ options?: Core.RequestOptions,
84
+ ): Core.APIPromise<BadgeRewardResponse>;
85
+ reward(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
86
+ reward(
87
+ id: string,
88
+ body: BadgeRewardParams | Core.RequestOptions = {},
89
+ options?: Core.RequestOptions,
90
+ ): Core.APIPromise<BadgeRewardResponse> {
91
+ if (isRequestOptions(body)) {
92
+ return this.reward(id, {}, body);
93
+ }
94
+ return this._client.post(`/api/loyalty/badges/${id}/reward`, { body, ...options });
95
+ }
96
+ }
97
+
98
+ /**
99
+ * Response returned upon successful creation of the badge.
100
+ */
101
+ export interface BadgeCreateResponse {
102
+ /**
103
+ * UUID of the badge (converted to lowercase)
104
+ */
105
+ id: string;
106
+
107
+ /**
108
+ * The description of the badge
109
+ */
110
+ description: string | null;
111
+
112
+ /**
113
+ * The URL of the badge image
114
+ */
115
+ imageUrl: string | null;
116
+
117
+ /**
118
+ * Array of conditions of the badge
119
+ */
120
+ loyaltyConditions: Array<BadgeCreateResponse.LoyaltyCondition>;
121
+
122
+ /**
123
+ * The name of the badge
124
+ */
125
+ name: string;
126
+
127
+ /**
128
+ * Array of user badges
129
+ */
130
+ LoyaltyBadgeUser?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
131
+ }
132
+
133
+ export namespace BadgeCreateResponse {
134
+ /**
135
+ * Schema for a loyalty condition rule.
136
+ */
137
+ export interface LoyaltyCondition {
138
+ /**
139
+ * UUID of the condition (converted to lowercase)
140
+ */
141
+ id: string;
142
+
143
+ /**
144
+ * The amount of the condition
145
+ */
146
+ amount: number | null;
147
+
148
+ association: Array<LoyaltyCondition.Association>;
149
+
150
+ /**
151
+ * The URL of the CSV file
152
+ */
153
+ csvUrl: string | null;
154
+
155
+ /**
156
+ * The description of the condition
157
+ */
158
+ description: string | null;
159
+
160
+ /**
161
+ * UUID of the currency (converted to lowercase)
162
+ */
163
+ loyaltyCurrencyId: string | null;
164
+
165
+ /**
166
+ * UUID of the rule group (converted to lowercase)
167
+ */
168
+ loyaltyRuleGroupId: string | null;
169
+
170
+ /**
171
+ * The repeat count of the condition
172
+ */
173
+ repeatCount: number | null;
174
+
175
+ /**
176
+ * The required count of the condition
177
+ */
178
+ requiredCount: number | null;
179
+
180
+ /**
181
+ * The type of the condition
182
+ */
183
+ type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
184
+ }
185
+
186
+ export namespace LoyaltyCondition {
187
+ export interface Association {
188
+ loyaltyBadge: Association.LoyaltyBadge | null;
189
+
190
+ loyaltyCurrency: Association.LoyaltyCurrency | null;
191
+
192
+ loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
193
+
194
+ loyaltyRule: Association.LoyaltyRule | null;
195
+
196
+ loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
197
+ }
198
+
199
+ export namespace Association {
200
+ export interface LoyaltyBadge {
201
+ /**
202
+ * UUID of the association (converted to lowercase)
203
+ */
204
+ id: string;
205
+
206
+ /**
207
+ * The name of the association
208
+ */
209
+ name: string;
210
+ }
211
+
212
+ export interface LoyaltyCurrency {
213
+ /**
214
+ * UUID of the association (converted to lowercase)
215
+ */
216
+ id: string;
217
+
218
+ /**
219
+ * The name of the association
220
+ */
221
+ name: string;
222
+ }
223
+
224
+ export interface LoyaltyLeaderboardView {
225
+ /**
226
+ * UUID of the association (converted to lowercase)
227
+ */
228
+ id: string;
229
+
230
+ /**
231
+ * The name of the association
232
+ */
233
+ name: string;
234
+ }
235
+
236
+ export interface LoyaltyRule {
237
+ /**
238
+ * UUID of the association (converted to lowercase)
239
+ */
240
+ id: string;
241
+
242
+ /**
243
+ * The name of the association
244
+ */
245
+ name: string;
246
+ }
247
+
248
+ export interface LoyaltyRuleGroup {
249
+ /**
250
+ * UUID of the association (converted to lowercase)
251
+ */
252
+ id: string;
253
+
254
+ /**
255
+ * The name of the association
256
+ */
257
+ name: string;
258
+ }
259
+ }
260
+ }
261
+
262
+ export interface LoyaltyBadgeUser {
263
+ /**
264
+ * UUID of the user badge (converted to lowercase)
265
+ */
266
+ id: string;
267
+
268
+ /**
269
+ * UUID of the badge (converted to lowercase)
270
+ */
271
+ loyaltyBadgeId: string;
272
+
273
+ /**
274
+ * UUID of the organization (converted to lowercase)
275
+ */
276
+ organizationId: string;
277
+
278
+ /**
279
+ * The status of the badge
280
+ */
281
+ status: 'active' | 'inactive' | 'revoked';
282
+
283
+ /**
284
+ * UUID of the user (converted to lowercase)
285
+ */
286
+ userId: string;
287
+
288
+ /**
289
+ * UUID of the website (converted to lowercase)
290
+ */
291
+ websiteId: string;
292
+
293
+ /**
294
+ * Array of progress for the badge
295
+ */
296
+ progress?: unknown;
297
+ }
298
+ }
299
+
300
+ /**
301
+ * Response returned upon successful update of the badge.
302
+ */
303
+ export interface BadgeUpdateResponse {
304
+ /**
305
+ * UUID of the badge (converted to lowercase)
306
+ */
307
+ id: string;
308
+
309
+ /**
310
+ * The description of the badge
311
+ */
312
+ description: string | null;
313
+
314
+ /**
315
+ * The URL of the badge image
316
+ */
317
+ imageUrl: string | null;
318
+
319
+ /**
320
+ * Array of conditions of the badge
321
+ */
322
+ loyaltyConditions: Array<BadgeUpdateResponse.LoyaltyCondition>;
323
+
324
+ /**
325
+ * The name of the badge
326
+ */
327
+ name: string;
328
+
329
+ /**
330
+ * Array of user badges
331
+ */
332
+ LoyaltyBadgeUser?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
333
+ }
334
+
335
+ export namespace BadgeUpdateResponse {
336
+ /**
337
+ * Schema for a loyalty condition rule.
338
+ */
339
+ export interface LoyaltyCondition {
340
+ /**
341
+ * UUID of the condition (converted to lowercase)
342
+ */
343
+ id: string;
344
+
345
+ /**
346
+ * The amount of the condition
347
+ */
348
+ amount: number | null;
349
+
350
+ association: Array<LoyaltyCondition.Association>;
351
+
352
+ /**
353
+ * The URL of the CSV file
354
+ */
355
+ csvUrl: string | null;
356
+
357
+ /**
358
+ * The description of the condition
359
+ */
360
+ description: string | null;
361
+
362
+ /**
363
+ * UUID of the currency (converted to lowercase)
364
+ */
365
+ loyaltyCurrencyId: string | null;
366
+
367
+ /**
368
+ * UUID of the rule group (converted to lowercase)
369
+ */
370
+ loyaltyRuleGroupId: string | null;
371
+
372
+ /**
373
+ * The repeat count of the condition
374
+ */
375
+ repeatCount: number | null;
376
+
377
+ /**
378
+ * The required count of the condition
379
+ */
380
+ requiredCount: number | null;
381
+
382
+ /**
383
+ * The type of the condition
384
+ */
385
+ type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
386
+ }
387
+
388
+ export namespace LoyaltyCondition {
389
+ export interface Association {
390
+ loyaltyBadge: Association.LoyaltyBadge | null;
391
+
392
+ loyaltyCurrency: Association.LoyaltyCurrency | null;
393
+
394
+ loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
395
+
396
+ loyaltyRule: Association.LoyaltyRule | null;
397
+
398
+ loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
399
+ }
400
+
401
+ export namespace Association {
402
+ export interface LoyaltyBadge {
403
+ /**
404
+ * UUID of the association (converted to lowercase)
405
+ */
406
+ id: string;
407
+
408
+ /**
409
+ * The name of the association
410
+ */
411
+ name: string;
412
+ }
413
+
414
+ export interface LoyaltyCurrency {
415
+ /**
416
+ * UUID of the association (converted to lowercase)
417
+ */
418
+ id: string;
419
+
420
+ /**
421
+ * The name of the association
422
+ */
423
+ name: string;
424
+ }
425
+
426
+ export interface LoyaltyLeaderboardView {
427
+ /**
428
+ * UUID of the association (converted to lowercase)
429
+ */
430
+ id: string;
431
+
432
+ /**
433
+ * The name of the association
434
+ */
435
+ name: string;
436
+ }
437
+
438
+ export interface LoyaltyRule {
439
+ /**
440
+ * UUID of the association (converted to lowercase)
441
+ */
442
+ id: string;
443
+
444
+ /**
445
+ * The name of the association
446
+ */
447
+ name: string;
448
+ }
449
+
450
+ export interface LoyaltyRuleGroup {
451
+ /**
452
+ * UUID of the association (converted to lowercase)
453
+ */
454
+ id: string;
455
+
456
+ /**
457
+ * The name of the association
458
+ */
459
+ name: string;
460
+ }
461
+ }
462
+ }
463
+
464
+ export interface LoyaltyBadgeUser {
465
+ /**
466
+ * UUID of the user badge (converted to lowercase)
467
+ */
468
+ id: string;
469
+
470
+ /**
471
+ * UUID of the badge (converted to lowercase)
472
+ */
473
+ loyaltyBadgeId: string;
474
+
475
+ /**
476
+ * UUID of the organization (converted to lowercase)
477
+ */
478
+ organizationId: string;
479
+
480
+ /**
481
+ * The status of the badge
482
+ */
483
+ status: 'active' | 'inactive' | 'revoked';
484
+
485
+ /**
486
+ * UUID of the user (converted to lowercase)
487
+ */
488
+ userId: string;
489
+
490
+ /**
491
+ * UUID of the website (converted to lowercase)
492
+ */
493
+ websiteId: string;
494
+
495
+ /**
496
+ * Array of progress for the badge
497
+ */
498
+ progress?: unknown;
499
+ }
500
+ }
501
+
502
+ /**
503
+ * Response returned upon successful fetching of the badges.
504
+ */
505
+ export interface BadgeListResponse {
506
+ /**
507
+ * UUID of the badge (converted to lowercase)
508
+ */
509
+ id: string;
510
+
511
+ /**
512
+ * The description of the badge
513
+ */
514
+ description: string | null;
515
+
516
+ /**
517
+ * The URL of the badge image
518
+ */
519
+ imageUrl: string | null;
520
+
521
+ /**
522
+ * Array of conditions of the badge
523
+ */
524
+ loyaltyConditions: Array<BadgeListResponse.LoyaltyCondition>;
525
+
526
+ /**
527
+ * The name of the badge
528
+ */
529
+ name: string;
530
+
531
+ /**
532
+ * Array of user badges
533
+ */
534
+ LoyaltyBadgeUser?: Array<BadgeListResponse.LoyaltyBadgeUser>;
535
+ }
536
+
537
+ export namespace BadgeListResponse {
538
+ /**
539
+ * Schema for a loyalty condition rule.
540
+ */
541
+ export interface LoyaltyCondition {
542
+ /**
543
+ * UUID of the condition (converted to lowercase)
544
+ */
545
+ id: string;
546
+
547
+ /**
548
+ * The amount of the condition
549
+ */
550
+ amount: number | null;
551
+
552
+ association: Array<LoyaltyCondition.Association>;
553
+
554
+ /**
555
+ * The URL of the CSV file
556
+ */
557
+ csvUrl: string | null;
558
+
559
+ /**
560
+ * The description of the condition
561
+ */
562
+ description: string | null;
563
+
564
+ /**
565
+ * UUID of the currency (converted to lowercase)
566
+ */
567
+ loyaltyCurrencyId: string | null;
568
+
569
+ /**
570
+ * UUID of the rule group (converted to lowercase)
571
+ */
572
+ loyaltyRuleGroupId: string | null;
573
+
574
+ /**
575
+ * The repeat count of the condition
576
+ */
577
+ repeatCount: number | null;
578
+
579
+ /**
580
+ * The required count of the condition
581
+ */
582
+ requiredCount: number | null;
583
+
584
+ /**
585
+ * The type of the condition
586
+ */
587
+ type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
588
+ }
589
+
590
+ export namespace LoyaltyCondition {
591
+ export interface Association {
592
+ loyaltyBadge: Association.LoyaltyBadge | null;
593
+
594
+ loyaltyCurrency: Association.LoyaltyCurrency | null;
595
+
596
+ loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
597
+
598
+ loyaltyRule: Association.LoyaltyRule | null;
599
+
600
+ loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
601
+ }
602
+
603
+ export namespace Association {
604
+ export interface LoyaltyBadge {
605
+ /**
606
+ * UUID of the association (converted to lowercase)
607
+ */
608
+ id: string;
609
+
610
+ /**
611
+ * The name of the association
612
+ */
613
+ name: string;
614
+ }
615
+
616
+ export interface LoyaltyCurrency {
617
+ /**
618
+ * UUID of the association (converted to lowercase)
619
+ */
620
+ id: string;
621
+
622
+ /**
623
+ * The name of the association
624
+ */
625
+ name: string;
626
+ }
627
+
628
+ export interface LoyaltyLeaderboardView {
629
+ /**
630
+ * UUID of the association (converted to lowercase)
631
+ */
632
+ id: string;
633
+
634
+ /**
635
+ * The name of the association
636
+ */
637
+ name: string;
638
+ }
639
+
640
+ export interface LoyaltyRule {
641
+ /**
642
+ * UUID of the association (converted to lowercase)
643
+ */
644
+ id: string;
645
+
646
+ /**
647
+ * The name of the association
648
+ */
649
+ name: string;
650
+ }
651
+
652
+ export interface LoyaltyRuleGroup {
653
+ /**
654
+ * UUID of the association (converted to lowercase)
655
+ */
656
+ id: string;
657
+
658
+ /**
659
+ * The name of the association
660
+ */
661
+ name: string;
662
+ }
663
+ }
664
+ }
665
+
666
+ export interface LoyaltyBadgeUser {
667
+ /**
668
+ * UUID of the user badge (converted to lowercase)
669
+ */
670
+ id: string;
671
+
672
+ /**
673
+ * UUID of the badge (converted to lowercase)
674
+ */
675
+ loyaltyBadgeId: string;
676
+
677
+ /**
678
+ * UUID of the organization (converted to lowercase)
679
+ */
680
+ organizationId: string;
681
+
682
+ /**
683
+ * The status of the badge
684
+ */
685
+ status: 'active' | 'inactive' | 'revoked';
686
+
687
+ /**
688
+ * UUID of the user (converted to lowercase)
689
+ */
690
+ userId: string;
691
+
692
+ /**
693
+ * UUID of the website (converted to lowercase)
694
+ */
695
+ websiteId: string;
696
+
697
+ /**
698
+ * Array of progress for the badge
699
+ */
700
+ progress?: unknown;
701
+ }
702
+ }
703
+
704
+ /**
705
+ * Response returned upon successful deletion of the badge.
706
+ */
707
+ export interface BadgeDeleteResponse {
708
+ /**
709
+ * UUID of the badge (converted to lowercase)
710
+ */
711
+ id: string;
712
+
713
+ /**
714
+ * The description of the badge
715
+ */
716
+ description: string | null;
717
+
718
+ /**
719
+ * The URL of the badge image
720
+ */
721
+ imageUrl: string | null;
722
+
723
+ /**
724
+ * Array of conditions of the badge
725
+ */
726
+ loyaltyConditions: Array<BadgeDeleteResponse.LoyaltyCondition>;
727
+
728
+ /**
729
+ * The name of the badge
730
+ */
731
+ name: string;
732
+
733
+ /**
734
+ * Array of user badges
735
+ */
736
+ LoyaltyBadgeUser?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
737
+ }
738
+
739
+ export namespace BadgeDeleteResponse {
740
+ /**
741
+ * Schema for a loyalty condition rule.
742
+ */
743
+ export interface LoyaltyCondition {
744
+ /**
745
+ * UUID of the condition (converted to lowercase)
746
+ */
747
+ id: string;
748
+
749
+ /**
750
+ * The amount of the condition
751
+ */
752
+ amount: number | null;
753
+
754
+ association: Array<LoyaltyCondition.Association>;
755
+
756
+ /**
757
+ * The URL of the CSV file
758
+ */
759
+ csvUrl: string | null;
760
+
761
+ /**
762
+ * The description of the condition
763
+ */
764
+ description: string | null;
765
+
766
+ /**
767
+ * UUID of the currency (converted to lowercase)
768
+ */
769
+ loyaltyCurrencyId: string | null;
770
+
771
+ /**
772
+ * UUID of the rule group (converted to lowercase)
773
+ */
774
+ loyaltyRuleGroupId: string | null;
775
+
776
+ /**
777
+ * The repeat count of the condition
778
+ */
779
+ repeatCount: number | null;
780
+
781
+ /**
782
+ * The required count of the condition
783
+ */
784
+ requiredCount: number | null;
785
+
786
+ /**
787
+ * The type of the condition
788
+ */
789
+ type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
790
+ }
791
+
792
+ export namespace LoyaltyCondition {
793
+ export interface Association {
794
+ loyaltyBadge: Association.LoyaltyBadge | null;
795
+
796
+ loyaltyCurrency: Association.LoyaltyCurrency | null;
797
+
798
+ loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
799
+
800
+ loyaltyRule: Association.LoyaltyRule | null;
801
+
802
+ loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
803
+ }
804
+
805
+ export namespace Association {
806
+ export interface LoyaltyBadge {
807
+ /**
808
+ * UUID of the association (converted to lowercase)
809
+ */
810
+ id: string;
811
+
812
+ /**
813
+ * The name of the association
814
+ */
815
+ name: string;
816
+ }
817
+
818
+ export interface LoyaltyCurrency {
819
+ /**
820
+ * UUID of the association (converted to lowercase)
821
+ */
822
+ id: string;
823
+
824
+ /**
825
+ * The name of the association
826
+ */
827
+ name: string;
828
+ }
829
+
830
+ export interface LoyaltyLeaderboardView {
831
+ /**
832
+ * UUID of the association (converted to lowercase)
833
+ */
834
+ id: string;
835
+
836
+ /**
837
+ * The name of the association
838
+ */
839
+ name: string;
840
+ }
841
+
842
+ export interface LoyaltyRule {
843
+ /**
844
+ * UUID of the association (converted to lowercase)
845
+ */
846
+ id: string;
847
+
848
+ /**
849
+ * The name of the association
850
+ */
851
+ name: string;
852
+ }
853
+
854
+ export interface LoyaltyRuleGroup {
855
+ /**
856
+ * UUID of the association (converted to lowercase)
857
+ */
858
+ id: string;
859
+
860
+ /**
861
+ * The name of the association
862
+ */
863
+ name: string;
864
+ }
865
+ }
866
+ }
867
+
868
+ export interface LoyaltyBadgeUser {
869
+ /**
870
+ * UUID of the user badge (converted to lowercase)
871
+ */
872
+ id: string;
873
+
874
+ /**
875
+ * UUID of the badge (converted to lowercase)
876
+ */
877
+ loyaltyBadgeId: string;
878
+
879
+ /**
880
+ * UUID of the organization (converted to lowercase)
881
+ */
882
+ organizationId: string;
883
+
884
+ /**
885
+ * The status of the badge
886
+ */
887
+ status: 'active' | 'inactive' | 'revoked';
888
+
889
+ /**
890
+ * UUID of the user (converted to lowercase)
891
+ */
892
+ userId: string;
893
+
894
+ /**
895
+ * UUID of the website (converted to lowercase)
896
+ */
897
+ websiteId: string;
898
+
899
+ /**
900
+ * Array of progress for the badge
901
+ */
902
+ progress?: unknown;
903
+ }
904
+ }
905
+
906
+ /**
907
+ * Response returned upon successful update of the user badge
908
+ */
909
+ export interface BadgeRevokeResponse {
910
+ data: BadgeRevokeResponse.Data;
911
+
912
+ /**
913
+ * The message returned upon update of the badge
914
+ */
915
+ message: string;
916
+ }
917
+
918
+ export namespace BadgeRevokeResponse {
919
+ export interface Data {
920
+ id: string;
921
+
922
+ loyaltyBadgeId: string;
923
+
924
+ status: 'active' | 'inactive' | 'revoked';
925
+
926
+ userId: string;
927
+ }
928
+ }
929
+
930
+ /**
931
+ * Response returned upon successful update of the user badge
932
+ */
933
+ export interface BadgeRewardResponse {
934
+ data: BadgeRewardResponse.Data;
935
+
936
+ /**
937
+ * The message returned upon update of the badge
938
+ */
939
+ message: string;
940
+ }
941
+
942
+ export namespace BadgeRewardResponse {
943
+ export interface Data {
944
+ id: string;
945
+
946
+ loyaltyBadgeId: string;
947
+
948
+ status: 'active' | 'inactive' | 'revoked';
949
+
950
+ userId: string;
951
+ }
952
+ }
953
+
954
+ export interface BadgeCreateParams {
955
+ /**
956
+ * The URL of the badge image
957
+ */
958
+ imageUrl: string;
959
+
960
+ /**
961
+ * The name of the badge
962
+ */
963
+ name: string;
964
+
965
+ /**
966
+ * UUID of the organization (optional, converted to lowercase)
967
+ */
968
+ organizationId: string;
969
+
970
+ /**
971
+ * Array of rules for the badge
972
+ */
973
+ rules: Array<BadgeCreateParams.Rule>;
974
+
975
+ /**
976
+ * UUID of the website (optional, converted to lowercase)
977
+ */
978
+ websiteId: string;
979
+
980
+ /**
981
+ * The description of the badge
982
+ */
983
+ description?: string;
984
+ }
985
+
986
+ export namespace BadgeCreateParams {
987
+ export interface Rule {
988
+ /**
989
+ * The type of rule
990
+ */
991
+ type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
992
+
993
+ /**
994
+ * The amount of the rule
995
+ */
996
+ amount?: number | null;
997
+
998
+ /**
999
+ * URL of the CSV file (optional)
1000
+ */
1001
+ csvUrl?: string | null;
1002
+
1003
+ /**
1004
+ * The description of the rule
1005
+ */
1006
+ description?: string | null;
1007
+
1008
+ /**
1009
+ * Array of UUIDs of the badge (optional, converted to lowercase)
1010
+ */
1011
+ loyaltyBadgeIds?: Array<string>;
1012
+
1013
+ /**
1014
+ * Array of UUIDs of the currency (optional, converted to lowercase)
1015
+ */
1016
+ loyaltyCurrencyIds?: Array<string>;
1017
+
1018
+ /**
1019
+ * Array of UUIDs of the Loyalty Leaderboard (optional, converted to lowercase)
1020
+ */
1021
+ loyaltyLeaderboardViewIds?: Array<string>;
1022
+
1023
+ /**
1024
+ * UUID of the loyalty rule chain (optional, converted to lowercase)
1025
+ */
1026
+ loyaltyRuleChainId?: string;
1027
+
1028
+ /**
1029
+ * Array of UUIDs of the rule group (optional, converted to lowercase)
1030
+ */
1031
+ loyaltyRuleGroupIds?: Array<string>;
1032
+
1033
+ /**
1034
+ * Array of UUIDs of the rules (optional, converted to lowercase)
1035
+ */
1036
+ loyaltyRuleIds?: Array<string>;
1037
+
1038
+ /**
1039
+ * The number of times the rule should be repeated to fulfill the condition
1040
+ */
1041
+ repeatCount?: number | null;
1042
+
1043
+ /**
1044
+ * The number of rules that need to be fulfilled to satisfy the condition
1045
+ */
1046
+ requiredCount?: number | null;
1047
+ }
1048
+ }
1049
+
1050
+ export interface BadgeUpdateParams {
1051
+ /**
1052
+ * The description of the badge
1053
+ */
1054
+ description?: string;
1055
+
1056
+ /**
1057
+ * The URL of the badge image
1058
+ */
1059
+ imageUrl?: string;
1060
+
1061
+ /**
1062
+ * The name of the badge
1063
+ */
1064
+ name?: string;
1065
+ }
1066
+
1067
+ export interface BadgeListParams {
1068
+ /**
1069
+ * Array of badge IDs (converted to lowercase) to fetch
1070
+ */
1071
+ badgeIds?: Array<string>;
1072
+
1073
+ /**
1074
+ * Include deleted badges in the response
1075
+ */
1076
+ includeDeleted?: boolean | null;
1077
+
1078
+ /**
1079
+ * Number of badges to fetch
1080
+ */
1081
+ limit?: number;
1082
+
1083
+ /**
1084
+ * UUID of the organization (optional, converted to lowercase)
1085
+ */
1086
+ organizationId?: string;
1087
+
1088
+ /**
1089
+ * UUID of the badge to start after (converted to lowercase)
1090
+ */
1091
+ startingAfter?: string;
1092
+
1093
+ /**
1094
+ * UUID of the user (optional, converted to lowercase)
1095
+ */
1096
+ userId?: string;
1097
+
1098
+ /**
1099
+ * UUID of the website (optional, converted to lowercase)
1100
+ */
1101
+ websiteId?: string;
1102
+ }
1103
+
1104
+ export interface BadgeRevokeParams {
1105
+ /**
1106
+ * UUID of the user (converted to lowercase)
1107
+ */
1108
+ userId?: string;
1109
+
1110
+ /**
1111
+ * Validated and formatted wallet address
1112
+ */
1113
+ walletAddress?: string;
1114
+ }
1115
+
1116
+ export interface BadgeRewardParams {
1117
+ /**
1118
+ * UUID of the user (converted to lowercase)
1119
+ */
1120
+ userId?: string;
1121
+
1122
+ /**
1123
+ * Validated and formatted wallet address
1124
+ */
1125
+ walletAddress?: string;
1126
+ }
1127
+
1128
+ export declare namespace Badges {
1129
+ export {
1130
+ type BadgeCreateResponse as BadgeCreateResponse,
1131
+ type BadgeUpdateResponse as BadgeUpdateResponse,
1132
+ type BadgeListResponse as BadgeListResponse,
1133
+ type BadgeDeleteResponse as BadgeDeleteResponse,
1134
+ type BadgeRevokeResponse as BadgeRevokeResponse,
1135
+ type BadgeRewardResponse as BadgeRewardResponse,
1136
+ type BadgeCreateParams as BadgeCreateParams,
1137
+ type BadgeUpdateParams as BadgeUpdateParams,
1138
+ type BadgeListParams as BadgeListParams,
1139
+ type BadgeRevokeParams as BadgeRevokeParams,
1140
+ type BadgeRewardParams as BadgeRewardParams,
1141
+ };
1142
+ }