@snagsolutions/sdk 0.1.0-alpha.11 → 0.1.0-alpha.111

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 (378) hide show
  1. package/CHANGELOG.md +978 -0
  2. package/README.md +24 -28
  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 +35 -19
  9. package/core.js.map +1 -1
  10. package/core.mjs +36 -20
  11. package/core.mjs.map +1 -1
  12. package/index.d.mts +25 -16
  13. package/index.d.ts +25 -16
  14. package/index.d.ts.map +1 -1
  15. package/index.js +20 -10
  16. package/index.js.map +1 -1
  17. package/index.mjs +21 -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 +22 -8
  25. package/resources/assets.d.ts.map +1 -1
  26. package/resources/assets.js +12 -4
  27. package/resources/assets.js.map +1 -1
  28. package/resources/assets.mjs +12 -4
  29. package/resources/assets.mjs.map +1 -1
  30. package/resources/auctions/auctions.d.ts +285 -0
  31. package/resources/auctions/auctions.d.ts.map +1 -0
  32. package/resources/auctions/auctions.js +76 -0
  33. package/resources/auctions/auctions.js.map +1 -0
  34. package/resources/auctions/auctions.mjs +49 -0
  35. package/resources/auctions/auctions.mjs.map +1 -0
  36. package/resources/auctions/index.d.ts +3 -0
  37. package/resources/auctions/index.d.ts.map +1 -0
  38. package/resources/auctions/index.js +9 -0
  39. package/resources/auctions/index.js.map +1 -0
  40. package/resources/auctions/index.mjs +4 -0
  41. package/resources/auctions/index.mjs.map +1 -0
  42. package/resources/auctions/website-user-attributes/index.d.ts +3 -0
  43. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
  44. package/resources/auctions/website-user-attributes/index.js +9 -0
  45. package/resources/auctions/website-user-attributes/index.js.map +1 -0
  46. package/resources/auctions/website-user-attributes/index.mjs +4 -0
  47. package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
  48. package/resources/auctions/website-user-attributes/values.d.ts +122 -0
  49. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
  50. package/resources/auctions/website-user-attributes/values.js +49 -0
  51. package/resources/auctions/website-user-attributes/values.js.map +1 -0
  52. package/resources/auctions/website-user-attributes/values.mjs +45 -0
  53. package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
  54. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +132 -0
  55. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
  56. package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
  57. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
  58. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
  59. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
  60. package/resources/auctions/website-user-attributes.d.ts +2 -0
  61. package/resources/auctions/website-user-attributes.d.ts.map +1 -0
  62. package/resources/auctions/website-user-attributes.js +19 -0
  63. package/resources/auctions/website-user-attributes.js.map +1 -0
  64. package/resources/auctions/website-user-attributes.mjs +3 -0
  65. package/resources/auctions/website-user-attributes.mjs.map +1 -0
  66. package/resources/auctions.d.ts +2 -0
  67. package/resources/auctions.d.ts.map +1 -0
  68. package/resources/auctions.js +19 -0
  69. package/resources/auctions.js.map +1 -0
  70. package/resources/auctions.mjs +3 -0
  71. package/resources/auctions.mjs.map +1 -0
  72. package/resources/auth.d.ts +44 -0
  73. package/resources/auth.d.ts.map +1 -0
  74. package/resources/auth.js +16 -0
  75. package/resources/auth.js.map +1 -0
  76. package/resources/auth.mjs +12 -0
  77. package/resources/auth.mjs.map +1 -0
  78. package/resources/index.d.ts +7 -5
  79. package/resources/index.d.ts.map +1 -1
  80. package/resources/index.js +10 -6
  81. package/resources/index.js.map +1 -1
  82. package/resources/index.mjs +6 -4
  83. package/resources/index.mjs.map +1 -1
  84. package/resources/loyalty/account-streaks.d.ts +81 -0
  85. package/resources/loyalty/account-streaks.d.ts.map +1 -0
  86. package/resources/loyalty/account-streaks.js +24 -0
  87. package/resources/loyalty/account-streaks.js.map +1 -0
  88. package/resources/loyalty/account-streaks.mjs +20 -0
  89. package/resources/loyalty/account-streaks.mjs.map +1 -0
  90. package/resources/loyalty/accounts.d.ts +62 -15
  91. package/resources/loyalty/accounts.d.ts.map +1 -1
  92. package/resources/loyalty/accounts.js +22 -1
  93. package/resources/loyalty/accounts.js.map +1 -1
  94. package/resources/loyalty/accounts.mjs +22 -1
  95. package/resources/loyalty/accounts.mjs.map +1 -1
  96. package/resources/loyalty/badges.d.ts +876 -77
  97. package/resources/loyalty/badges.d.ts.map +1 -1
  98. package/resources/loyalty/badges.js +19 -1
  99. package/resources/loyalty/badges.js.map +1 -1
  100. package/resources/loyalty/badges.mjs +19 -1
  101. package/resources/loyalty/badges.mjs.map +1 -1
  102. package/resources/loyalty/currencies.d.ts +20 -1
  103. package/resources/loyalty/currencies.d.ts.map +1 -1
  104. package/resources/loyalty/currencies.js +19 -0
  105. package/resources/loyalty/currencies.js.map +1 -1
  106. package/resources/loyalty/currencies.mjs +19 -0
  107. package/resources/loyalty/currencies.mjs.map +1 -1
  108. package/resources/loyalty/index.d.ts +9 -5
  109. package/resources/loyalty/index.d.ts.map +1 -1
  110. package/resources/loyalty/index.js +11 -3
  111. package/resources/loyalty/index.js.map +1 -1
  112. package/resources/loyalty/index.mjs +6 -2
  113. package/resources/loyalty/index.mjs.map +1 -1
  114. package/resources/loyalty/loyalty.d.ts +33 -17
  115. package/resources/loyalty/loyalty.d.ts.map +1 -1
  116. package/resources/loyalty/loyalty.js +28 -12
  117. package/resources/loyalty/loyalty.js.map +1 -1
  118. package/resources/loyalty/loyalty.mjs +29 -13
  119. package/resources/loyalty/loyalty.mjs.map +1 -1
  120. package/resources/loyalty/multipliers.d.ts +97 -4
  121. package/resources/loyalty/multipliers.d.ts.map +1 -1
  122. package/resources/loyalty/multipliers.js +29 -0
  123. package/resources/loyalty/multipliers.js.map +1 -1
  124. package/resources/loyalty/multipliers.mjs +29 -0
  125. package/resources/loyalty/multipliers.mjs.map +1 -1
  126. package/resources/loyalty/questions-responses.d.ts +112 -0
  127. package/resources/loyalty/questions-responses.d.ts.map +1 -0
  128. package/resources/loyalty/questions-responses.js +31 -0
  129. package/resources/loyalty/questions-responses.js.map +1 -0
  130. package/resources/loyalty/questions-responses.mjs +27 -0
  131. package/resources/loyalty/questions-responses.mjs.map +1 -0
  132. package/resources/loyalty/questions.d.ts +183 -0
  133. package/resources/loyalty/questions.d.ts.map +1 -0
  134. package/resources/loyalty/questions.js +60 -0
  135. package/resources/loyalty/questions.js.map +1 -0
  136. package/resources/loyalty/questions.mjs +56 -0
  137. package/resources/loyalty/questions.mjs.map +1 -0
  138. package/resources/loyalty/rule-edits.d.ts +2489 -11
  139. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  140. package/resources/loyalty/rule-edits.js +16 -2
  141. package/resources/loyalty/rule-edits.js.map +1 -1
  142. package/resources/loyalty/rule-edits.mjs +16 -2
  143. package/resources/loyalty/rule-edits.mjs.map +1 -1
  144. package/resources/loyalty/rule-groups.d.ts +738 -0
  145. package/resources/loyalty/rule-groups.d.ts.map +1 -0
  146. package/resources/loyalty/rule-groups.js +52 -0
  147. package/resources/loyalty/rule-groups.js.map +1 -0
  148. package/resources/loyalty/rule-groups.mjs +48 -0
  149. package/resources/loyalty/rule-groups.mjs.map +1 -0
  150. package/resources/loyalty/rules.d.ts +1735 -282
  151. package/resources/loyalty/rules.d.ts.map +1 -1
  152. package/resources/loyalty/rules.js +40 -9
  153. package/resources/loyalty/rules.js.map +1 -1
  154. package/resources/loyalty/rules.mjs +40 -9
  155. package/resources/loyalty/rules.mjs.map +1 -1
  156. package/resources/loyalty/transactions/index.d.ts +3 -0
  157. package/resources/loyalty/transactions/index.d.ts.map +1 -0
  158. package/resources/loyalty/transactions/index.js +9 -0
  159. package/resources/loyalty/transactions/index.js.map +1 -0
  160. package/resources/loyalty/transactions/index.mjs +4 -0
  161. package/resources/loyalty/transactions/index.mjs.map +1 -0
  162. package/resources/loyalty/transactions/rule-statuses.d.ts +120 -0
  163. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
  164. package/resources/loyalty/transactions/rule-statuses.js +30 -0
  165. package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
  166. package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
  167. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
  168. package/resources/loyalty/transactions/transactions.d.ts +410 -0
  169. package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
  170. package/resources/loyalty/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 +2 -0
  181. package/resources/loyalty.d.ts.map +1 -0
  182. package/resources/loyalty.js +19 -0
  183. package/resources/loyalty.js.map +1 -0
  184. package/resources/loyalty.mjs +3 -0
  185. package/resources/loyalty.mjs.map +1 -0
  186. package/resources/minting.d.ts +95 -0
  187. package/resources/minting.d.ts.map +1 -0
  188. package/resources/minting.js +15 -0
  189. package/resources/minting.js.map +1 -0
  190. package/resources/minting.mjs +11 -0
  191. package/resources/minting.mjs.map +1 -0
  192. package/resources/referral/index.d.ts +3 -0
  193. package/resources/referral/index.d.ts.map +1 -0
  194. package/resources/referral/index.js +9 -0
  195. package/resources/referral/index.js.map +1 -0
  196. package/resources/referral/index.mjs +4 -0
  197. package/resources/referral/index.mjs.map +1 -0
  198. package/resources/referral/referral.d.ts +39 -0
  199. package/resources/referral/referral.d.ts.map +1 -0
  200. package/resources/{drip/drip.js → referral/referral.js} +21 -12
  201. package/resources/referral/referral.js.map +1 -0
  202. package/resources/referral/referral.mjs +25 -0
  203. package/resources/referral/referral.mjs.map +1 -0
  204. package/resources/referral/users.d.ts +83 -0
  205. package/resources/referral/users.d.ts.map +1 -0
  206. package/resources/referral/users.js +35 -0
  207. package/resources/referral/users.js.map +1 -0
  208. package/resources/referral/users.mjs +31 -0
  209. package/resources/referral/users.mjs.map +1 -0
  210. package/resources/referral.d.ts +2 -0
  211. package/resources/referral.d.ts.map +1 -0
  212. package/resources/referral.js +19 -0
  213. package/resources/referral.js.map +1 -0
  214. package/resources/referral.mjs +3 -0
  215. package/resources/referral.mjs.map +1 -0
  216. package/resources/users/index.d.ts +2 -3
  217. package/resources/users/index.d.ts.map +1 -1
  218. package/resources/users/index.js +1 -3
  219. package/resources/users/index.js.map +1 -1
  220. package/resources/users/index.mjs +2 -3
  221. package/resources/users/index.mjs.map +1 -1
  222. package/resources/users/metadatas.d.ts +109 -9
  223. package/resources/users/metadatas.d.ts.map +1 -1
  224. package/resources/users/metadatas.js +6 -0
  225. package/resources/users/metadatas.js.map +1 -1
  226. package/resources/users/metadatas.mjs +6 -0
  227. package/resources/users/metadatas.mjs.map +1 -1
  228. package/resources/users/users.d.ts +414 -6
  229. package/resources/users/users.d.ts.map +1 -1
  230. package/resources/users/users.js +77 -4
  231. package/resources/users/users.js.map +1 -1
  232. package/resources/users/users.mjs +78 -5
  233. package/resources/users/users.mjs.map +1 -1
  234. package/resources/users.d.ts +2 -0
  235. package/resources/users.d.ts.map +1 -0
  236. package/resources/users.js +19 -0
  237. package/resources/users.js.map +1 -0
  238. package/resources/users.mjs +3 -0
  239. package/resources/users.mjs.map +1 -0
  240. package/resources/websites/index.d.ts +4 -0
  241. package/resources/websites/index.d.ts.map +1 -0
  242. package/resources/websites/index.js +11 -0
  243. package/resources/websites/index.js.map +1 -0
  244. package/resources/websites/index.mjs +5 -0
  245. package/resources/websites/index.mjs.map +1 -0
  246. package/resources/websites/website-collections.d.ts +94 -0
  247. package/resources/websites/website-collections.d.ts.map +1 -0
  248. package/resources/websites/website-collections.js +46 -0
  249. package/resources/websites/website-collections.js.map +1 -0
  250. package/resources/websites/website-collections.mjs +42 -0
  251. package/resources/websites/website-collections.mjs.map +1 -0
  252. package/resources/websites/website-user-roles.d.ts +96 -0
  253. package/resources/websites/website-user-roles.d.ts.map +1 -0
  254. package/resources/websites/website-user-roles.js +45 -0
  255. package/resources/websites/website-user-roles.js.map +1 -0
  256. package/resources/websites/website-user-roles.mjs +41 -0
  257. package/resources/websites/website-user-roles.mjs.map +1 -0
  258. package/resources/websites/websites.d.ts +223 -0
  259. package/resources/websites/websites.d.ts.map +1 -0
  260. package/resources/websites/websites.js +63 -0
  261. package/resources/websites/websites.js.map +1 -0
  262. package/resources/websites/websites.mjs +36 -0
  263. package/resources/websites/websites.mjs.map +1 -0
  264. package/resources/websites.d.ts +1 -202
  265. package/resources/websites.d.ts.map +1 -1
  266. package/resources/websites.js +15 -18
  267. package/resources/websites.js.map +1 -1
  268. package/resources/websites.mjs +1 -16
  269. package/resources/websites.mjs.map +1 -1
  270. package/resources.d.ts +2 -0
  271. package/resources.d.ts.map +1 -0
  272. package/resources.js +18 -0
  273. package/resources.js.map +1 -0
  274. package/resources.mjs +2 -0
  275. package/resources.mjs.map +1 -0
  276. package/src/_shims/index.d.ts +2 -0
  277. package/src/_shims/index.js +5 -1
  278. package/src/_shims/index.mjs +5 -1
  279. package/src/core.ts +56 -20
  280. package/src/index.ts +96 -24
  281. package/src/resource.ts +1 -1
  282. package/src/resources/assets.ts +29 -8
  283. package/src/resources/auctions/auctions.ts +436 -0
  284. package/src/resources/auctions/index.ts +18 -0
  285. package/src/resources/auctions/website-user-attributes/index.ts +18 -0
  286. package/src/resources/auctions/website-user-attributes/values.ts +165 -0
  287. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +207 -0
  288. package/src/resources/auctions/website-user-attributes.ts +3 -0
  289. package/src/resources/auctions.ts +3 -0
  290. package/src/resources/auth.ts +74 -0
  291. package/src/resources/index.ts +31 -5
  292. package/src/resources/loyalty/account-streaks.ts +110 -0
  293. package/src/resources/loyalty/accounts.ts +79 -16
  294. package/src/resources/loyalty/badges.ts +1055 -83
  295. package/src/resources/loyalty/currencies.ts +20 -1
  296. package/src/resources/loyalty/index.ts +53 -9
  297. package/src/resources/loyalty/loyalty.ts +160 -60
  298. package/src/resources/loyalty/multipliers.ts +124 -4
  299. package/src/resources/loyalty/questions-responses.ts +161 -0
  300. package/src/resources/loyalty/questions.ts +241 -0
  301. package/src/resources/loyalty/rule-edits.ts +3502 -63
  302. package/src/resources/loyalty/rule-groups.ts +1149 -0
  303. package/src/resources/loyalty/rules.ts +2906 -575
  304. package/src/resources/loyalty/transactions/index.ts +18 -0
  305. package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
  306. package/src/resources/loyalty/transactions/transactions.ts +671 -0
  307. package/src/resources/loyalty/transactions.ts +3 -0
  308. package/src/resources/loyalty.ts +3 -0
  309. package/src/resources/minting.ts +170 -0
  310. package/src/resources/referral/index.ts +10 -0
  311. package/src/resources/referral/referral.ts +72 -0
  312. package/src/resources/referral/users.ts +122 -0
  313. package/src/resources/referral.ts +3 -0
  314. package/src/resources/users/index.ts +21 -9
  315. package/src/resources/users/metadatas.ts +161 -8
  316. package/src/resources/users/users.ts +581 -17
  317. package/src/resources/users.ts +3 -0
  318. package/src/resources/websites/index.ts +22 -0
  319. package/src/resources/websites/website-collections.ts +182 -0
  320. package/src/resources/websites/website-user-roles.ts +130 -0
  321. package/src/resources/websites/websites.ts +311 -0
  322. package/src/resources/websites.ts +1 -257
  323. package/src/resources.ts +1 -0
  324. package/src/version.ts +1 -1
  325. package/version.d.ts +1 -1
  326. package/version.d.ts.map +1 -1
  327. package/version.js +1 -1
  328. package/version.js.map +1 -1
  329. package/version.mjs +1 -1
  330. package/version.mjs.map +1 -1
  331. package/resources/auction-bids.d.ts +0 -81
  332. package/resources/auction-bids.d.ts.map +0 -1
  333. package/resources/auction-bids.js +0 -30
  334. package/resources/auction-bids.js.map +0 -1
  335. package/resources/auction-bids.mjs +0 -26
  336. package/resources/auction-bids.mjs.map +0 -1
  337. package/resources/drip/drip.d.ts +0 -14
  338. package/resources/drip/drip.d.ts.map +0 -1
  339. package/resources/drip/drip.js.map +0 -1
  340. package/resources/drip/drip.mjs +0 -16
  341. package/resources/drip/drip.mjs.map +0 -1
  342. package/resources/drip/index.d.ts +0 -4
  343. package/resources/drip/index.d.ts.map +0 -1
  344. package/resources/drip/index.js +0 -11
  345. package/resources/drip/index.js.map +0 -1
  346. package/resources/drip/index.mjs +0 -5
  347. package/resources/drip/index.mjs.map +0 -1
  348. package/resources/drip/quests.d.ts +0 -168
  349. package/resources/drip/quests.d.ts.map +0 -1
  350. package/resources/drip/quests.js +0 -17
  351. package/resources/drip/quests.js.map +0 -1
  352. package/resources/drip/quests.mjs +0 -13
  353. package/resources/drip/quests.mjs.map +0 -1
  354. package/resources/drip/status.d.ts +0 -26
  355. package/resources/drip/status.d.ts.map +0 -1
  356. package/resources/drip/status.js +0 -16
  357. package/resources/drip/status.js.map +0 -1
  358. package/resources/drip/status.mjs +0 -12
  359. package/resources/drip/status.mjs.map +0 -1
  360. package/resources/loyalty/transaction-entries.d.ts +0 -175
  361. package/resources/loyalty/transaction-entries.d.ts.map +0 -1
  362. package/resources/loyalty/transaction-entries.js +0 -16
  363. package/resources/loyalty/transaction-entries.js.map +0 -1
  364. package/resources/loyalty/transaction-entries.mjs +0 -12
  365. package/resources/loyalty/transaction-entries.mjs.map +0 -1
  366. package/resources/users/wallets.d.ts +0 -193
  367. package/resources/users/wallets.d.ts.map +0 -1
  368. package/resources/users/wallets.js +0 -28
  369. package/resources/users/wallets.js.map +0 -1
  370. package/resources/users/wallets.mjs +0 -24
  371. package/resources/users/wallets.mjs.map +0 -1
  372. package/src/resources/auction-bids.ts +0 -123
  373. package/src/resources/drip/drip.ts +0 -25
  374. package/src/resources/drip/index.ts +0 -5
  375. package/src/resources/drip/quests.ts +0 -210
  376. package/src/resources/drip/status.ts +0 -33
  377. package/src/resources/loyalty/transaction-entries.ts +0 -229
  378. package/src/resources/users/wallets.ts +0 -271
@@ -6,33 +6,44 @@ import * as Core from '../../core';
6
6
  export class RuleEdits extends APIResource {
7
7
  /**
8
8
  * Retrieve configured loyalty rule edits with optional pagination and filters
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const ruleEdits = await client.loyalty.ruleEdits.list({
13
+ * loyaltyRuleId: true,
14
+ * });
15
+ * ```
9
16
  */
10
- retrieve(
11
- query: RuleEditRetrieveParams,
12
- options?: Core.RequestOptions,
13
- ): Core.APIPromise<RuleEditRetrieveResponse> {
17
+ list(query: RuleEditListParams, options?: Core.RequestOptions): Core.APIPromise<RuleEditListResponse> {
14
18
  return this._client.get('/api/loyalty/rule_edits', { query, ...options });
15
19
  }
16
20
 
17
21
  /**
18
22
  * Restore a loyalty rule from a rule edit
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const response = await client.loyalty.ruleEdits.restore(
27
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
28
+ * );
29
+ * ```
19
30
  */
20
31
  restore(
21
32
  id: string,
22
33
  body?: RuleEditRestoreParams | null | undefined,
23
34
  options?: Core.RequestOptions,
24
35
  ): Core.APIPromise<RuleEditRestoreResponse> {
25
- return this._client.post(`/api/api/loyalty/rule_edits/${id}/restore`, { body, ...options });
36
+ return this._client.post(`/api/loyalty/rule_edits/${id}/restore`, { body, ...options });
26
37
  }
27
38
  }
28
39
 
29
- export interface RuleEditRetrieveResponse {
30
- data: Array<RuleEditRetrieveResponse.Data>;
40
+ export interface RuleEditListResponse {
41
+ data: Array<RuleEditListResponse.Data>;
31
42
 
32
43
  hasNextPage: boolean;
33
44
  }
34
45
 
35
- export namespace RuleEditRetrieveResponse {
46
+ export namespace RuleEditListResponse {
36
47
  export interface Data {
37
48
  /**
38
49
  * Unique identifier for the rule edit
@@ -110,16 +121,41 @@ export namespace RuleEditRetrieveResponse {
110
121
  */
111
122
  deletedAt: string | null;
112
123
 
124
+ /**
125
+ * Description of the loyalty rule
126
+ */
127
+ description: string;
128
+
129
+ /**
130
+ * End time of the loyalty rule
131
+ */
132
+ endTime: string;
133
+
113
134
  /**
114
135
  * Frequency of the loyalty rule
115
136
  */
116
137
  frequency: string;
117
138
 
139
+ /**
140
+ * Name of the loyalty rule
141
+ */
142
+ name: string;
143
+
118
144
  /**
119
145
  * Unique identifier for the organization
120
146
  */
121
147
  organizationId: string;
122
148
 
149
+ /**
150
+ * Type of the reward
151
+ */
152
+ rewardType: 'points' | 'multiplier' | 'badge';
153
+
154
+ /**
155
+ * Start time of the loyalty rule
156
+ */
157
+ startTime: string;
158
+
123
159
  /**
124
160
  * Type of the loyalty rule
125
161
  */
@@ -140,10 +176,842 @@ export namespace RuleEditRetrieveResponse {
140
176
  */
141
177
  collectionAddress?: string;
142
178
 
179
+ /**
180
+ * URL of the media associated with the loyalty rule
181
+ */
182
+ mediaUrl?: string | null;
183
+
143
184
  /**
144
185
  * Optional metadata for the loyalty rule
145
186
  */
146
- metadata?: Record<string, unknown>;
187
+ metadata?: { [key: string]: Data.Metadata };
188
+ }
189
+
190
+ export namespace Data {
191
+ export interface Metadata {
192
+ /**
193
+ * Number of tokens per batch.
194
+ */
195
+ batchSize?: number | null;
196
+
197
+ /**
198
+ * Text displayed on the action button.
199
+ */
200
+ buttonText?: string | null;
201
+
202
+ /**
203
+ * Flag indicating if commenting is required.
204
+ */
205
+ checkComment?: boolean | null;
206
+
207
+ /**
208
+ * Flag indicating if liking the post is required.
209
+ */
210
+ checkLike?: boolean | null;
211
+
212
+ /**
213
+ * Flag indicating if reposting is required.
214
+ */
215
+ checkRepost?: boolean | null;
216
+
217
+ /**
218
+ * Text to check in the Twitter post, username, or bio.
219
+ */
220
+ checkText?: string | null;
221
+
222
+ /**
223
+ * Array of collections associated with the rule.
224
+ */
225
+ collection?: Array<Metadata.Collection>;
226
+
227
+ /**
228
+ * Conditions for completing the profile.
229
+ */
230
+ completeProfileConditions?: { [key: string]: boolean } | null;
231
+
232
+ /**
233
+ * Object containing details for the call-to-action.
234
+ */
235
+ cta?: Metadata.Cta | null;
236
+
237
+ /**
238
+ * API key for custom rewards integration.
239
+ */
240
+ customRewardsApiKey?: string;
241
+
242
+ /**
243
+ * Array of Discord servers, channels, and roles to join.
244
+ */
245
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
246
+
247
+ /**
248
+ * Array of drip quests required to complete the rule.
249
+ */
250
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
251
+
252
+ /**
253
+ * Flag indicating whether joining Discord servers is required.
254
+ */
255
+ enableJoinDiscordServers?: boolean | null;
256
+
257
+ /**
258
+ * Flag indicating whether streaks are enabled.
259
+ */
260
+ enableStreaks?: boolean | null;
261
+
262
+ /**
263
+ * Flag indicating whether the verified multiplier is enabled.
264
+ */
265
+ enableVerifiedMultiplier?: boolean;
266
+
267
+ /**
268
+ * Fill source of the order for the token sale
269
+ */
270
+ fillSource?: string;
271
+
272
+ /**
273
+ * Percentage reward given to a user for their first referral.
274
+ */
275
+ firstReferralReward?: number | null;
276
+
277
+ /**
278
+ * Flag indicating whether the fill source is included.
279
+ */
280
+ hasFillSource?: boolean;
281
+
282
+ /**
283
+ * Indicates if the item has never been sold.
284
+ */
285
+ hasNeverSold?: boolean;
286
+
287
+ /**
288
+ * Indicates if the full royalty has been paid for items.
289
+ */
290
+ hasPaidFullRoyalty?: boolean;
291
+
292
+ /**
293
+ * Flag indicating if the sale currency is included.
294
+ */
295
+ hasSaleCurrency?: boolean;
296
+
297
+ /**
298
+ * Indicates if the user has a verified Twitter account.
299
+ */
300
+ hasVerifiedTwitter?: boolean;
301
+
302
+ /**
303
+ * URL of the image associated with the rule.
304
+ */
305
+ imageUrl?: string | null;
306
+
307
+ /**
308
+ * If enabled, the first transaction done on the platform will complete this rule
309
+ */
310
+ isCheckInOnEveryTxn?: boolean;
311
+
312
+ /**
313
+ * Indicates if the multiplier has been applied to rewards.
314
+ */
315
+ isMultiplierApplied?: boolean;
316
+
317
+ /**
318
+ * Flag indicating if the rule is restricted to new users.
319
+ */
320
+ isRestrictedToNewUsers?: boolean;
321
+
322
+ /**
323
+ * Flag indicating if rewards are applied retroactively.
324
+ */
325
+ isRetroactive?: boolean | null;
326
+
327
+ /**
328
+ * Flag indicating if the token hold multiplier is applied.
329
+ */
330
+ isTokenHoldMultiplier?: boolean;
331
+
332
+ /**
333
+ * Optional link associated with the metadata.
334
+ */
335
+ link?: string | null;
336
+
337
+ /**
338
+ * Liquidity pool details.
339
+ */
340
+ liquidity?: Metadata.Liquidity;
341
+
342
+ /**
343
+ * Maximum quantity constraint for token holding.
344
+ */
345
+ maxQty?: number | null;
346
+
347
+ /**
348
+ * Minimum quantity constraint for token holding.
349
+ */
350
+ minQty?: number | null;
351
+
352
+ /**
353
+ * Array of loyalty currency IDs used for multipliers.
354
+ */
355
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
356
+
357
+ /**
358
+ * Flag indicating whether to include only known users.
359
+ */
360
+ onlyKnownUsers?: boolean;
361
+
362
+ /**
363
+ * Flag indicating whether to include only native tokens.
364
+ */
365
+ onlyNative?: boolean;
366
+
367
+ /**
368
+ * Flag indicating whether to include only non-listed items.
369
+ */
370
+ onlyNonListed?: boolean;
371
+
372
+ /**
373
+ * Indicates if only existing users are rewarded.
374
+ */
375
+ onlyRewardExistingUser?: boolean;
376
+
377
+ /**
378
+ * give points for only one token ownership per contract
379
+ */
380
+ onlyRewardSingleTokenOwnership?: boolean | null;
381
+
382
+ /**
383
+ * Promotional code associated with the rule.
384
+ */
385
+ promoCode?: string;
386
+
387
+ /**
388
+ * URL of the CSV file containing promo codes.
389
+ */
390
+ promoCodeCsvUrl?: string;
391
+
392
+ /**
393
+ * Numbers of the promotional code to be generated.
394
+ */
395
+ promoCodeLength?: number | null;
396
+
397
+ /**
398
+ * Type of the promotional code.
399
+ */
400
+ promoCodeType?: 'code' | 'csv' | 'generate';
401
+
402
+ /**
403
+ * Array defining ranges and corresponding rewards.
404
+ */
405
+ range?: Array<Metadata.Range>;
406
+
407
+ /**
408
+ * Object defining referral requirements.
409
+ */
410
+ referralRequirements?: Metadata.ReferralRequirements | null;
411
+
412
+ /**
413
+ * Lump sum reward given to a referrer.
414
+ */
415
+ referrerReward?: number | null;
416
+
417
+ /**
418
+ * Loyalty currency ID of the referrer reward.
419
+ */
420
+ referrerRewardLoyaltyCurrencyId?: string | null;
421
+
422
+ /**
423
+ * Flag indicating if the rule can also reward badges per range.
424
+ */
425
+ rewardBadgePerRange?: boolean;
426
+
427
+ /**
428
+ * Flag indicating if the reward is rewarded by batch.
429
+ */
430
+ rewardByBatch?: boolean | null;
431
+
432
+ /**
433
+ * Flag indicating if rewards are given per impression.
434
+ */
435
+ rewardPerImpression?: boolean | null;
436
+
437
+ /**
438
+ * Flag indicating if the rule should reward based on value of traded tokens
439
+ * instead of count.
440
+ */
441
+ rewardPerValue?: boolean;
442
+
443
+ /**
444
+ * Currency associated with sales.
445
+ */
446
+ saleCurrency?: string;
447
+
448
+ /**
449
+ * Percentage reward given for a second-level referral.
450
+ */
451
+ secondReferralReward?: number | null;
452
+
453
+ /**
454
+ * Flag indicating if the multiplier is skipped.
455
+ */
456
+ skipMultiplier?: boolean | null;
457
+
458
+ /**
459
+ * Object containing details of the associated smart contract.
460
+ */
461
+ smartContract?: Metadata.SmartContract;
462
+
463
+ /**
464
+ * Array of snapshot proposals for the rule.
465
+ */
466
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
467
+
468
+ /**
469
+ * Social media platform associated with the rule.
470
+ */
471
+ socialPlatform?:
472
+ | 'Custom'
473
+ | 'Discord'
474
+ | 'EpicGames'
475
+ | 'Instagram'
476
+ | 'Steam'
477
+ | 'Telegram'
478
+ | 'TikTok'
479
+ | 'Twitch'
480
+ | 'X(Twitter)'
481
+ | 'YouTube'
482
+ | 'Google'
483
+ | null;
484
+
485
+ /**
486
+ * URL of the social platform's logo.
487
+ */
488
+ socialPlatformLogo?: string | null;
489
+
490
+ /**
491
+ * Name of the social platform.
492
+ */
493
+ socialPlatformName?: string | null;
494
+
495
+ /**
496
+ * ID of the Steam app.
497
+ */
498
+ steamAppId?: string | null;
499
+
500
+ /**
501
+ * Array of streak milestones and corresponding rewards.
502
+ */
503
+ streakArray?: Array<Metadata.StreakArray> | null;
504
+
505
+ /**
506
+ * Metadata for swap loyalty rules
507
+ */
508
+ swap?: Metadata.Swap;
509
+
510
+ /**
511
+ * ID of the Telegram channel.
512
+ */
513
+ telegramChannelId?: string | null;
514
+
515
+ /**
516
+ * Time delay in seconds to verify actions.
517
+ */
518
+ timeDelayToVerifySeconds?: string | number | null;
519
+
520
+ /**
521
+ * Flag indicating if all contracts are tracked.
522
+ */
523
+ trackAllContracts?: boolean | null;
524
+
525
+ /**
526
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
527
+ * completed once the progress is 100%.
528
+ */
529
+ trackProgress?: boolean | null;
530
+
531
+ /**
532
+ * URL of the associated Twitter account.
533
+ */
534
+ twitterAccountUrl?: string;
535
+
536
+ /**
537
+ * Hashtag associated with the Twitter post.
538
+ */
539
+ twitterHashtag?: string;
540
+
541
+ /**
542
+ * URL of the associated Twitter post.
543
+ */
544
+ twitterPostUrl?: string;
545
+
546
+ /**
547
+ * Unique identifier of the Twitter user.
548
+ */
549
+ twitterUserId?: string;
550
+
551
+ /**
552
+ * Twitter username of the user.
553
+ */
554
+ twitterUsername?: string;
555
+
556
+ /**
557
+ * Minimum length of the verification text.
558
+ */
559
+ verificationTextMinimumLength?: number | null;
560
+
561
+ /**
562
+ * Multiplier applied to rewards for verified users.
563
+ */
564
+ verifiedMultiplier?: number | null;
565
+
566
+ /**
567
+ * Placeholder text for verification input fields.
568
+ */
569
+ verifyPlaceHolderText?: string | null;
570
+
571
+ /**
572
+ * Type of wallet associated with the rule.
573
+ */
574
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
575
+
576
+ /**
577
+ * ID of the Youtube channel.
578
+ */
579
+ youtubeChannelId?: string | null;
580
+
581
+ /**
582
+ * ID of the Youtube video.
583
+ */
584
+ youtubeVideoId?: string | null;
585
+ }
586
+
587
+ export namespace Metadata {
588
+ export interface Collection {
589
+ /**
590
+ * Blockchain address of the collection.
591
+ */
592
+ address?: string;
593
+
594
+ /**
595
+ * Multiplier applied to the rewards for this collection.
596
+ */
597
+ multiplier?: number;
598
+
599
+ /**
600
+ * Blockchain network of the collection.
601
+ */
602
+ network?:
603
+ | 'abstract'
604
+ | 'abstractTestnet'
605
+ | 'apechain'
606
+ | 'arbitrum'
607
+ | 'avalanche'
608
+ | 'avalancheFuji'
609
+ | 'base'
610
+ | 'baseSepolia'
611
+ | 'berachain'
612
+ | 'berachainArtio'
613
+ | 'berachainBepolia'
614
+ | 'binance'
615
+ | 'bscTestnet'
616
+ | 'campTestnet'
617
+ | 'fantom'
618
+ | 'fantomTestnet'
619
+ | 'flowMainnet'
620
+ | 'mainnet'
621
+ | 'optimism'
622
+ | 'polygon'
623
+ | 'polygon_mumbai'
624
+ | 'skaleNebula'
625
+ | 'solana'
626
+ | 'sophon'
627
+ | 'sophonTestnet'
628
+ | 'sui'
629
+ | 'superseed'
630
+ | 'superseedSepolia'
631
+ | 'vanar'
632
+ | 'xai'
633
+ | 'zksync'
634
+ | 'coti'
635
+ | 'cotiTestnet'
636
+ | 'morph'
637
+ | 'morphTestnet'
638
+ | 'morphHolesky'
639
+ | 'ultra'
640
+ | 'ultraTestnet'
641
+ | 'nitrograph'
642
+ | 'sepolia'
643
+ | 'optimism_sepolia'
644
+ | 'arbitrumSepolia'
645
+ | 'goerli'
646
+ | 'optimism_goerli'
647
+ | 'arbitrumGoerli'
648
+ | 'basecamp';
649
+ }
650
+
651
+ /**
652
+ * Object containing details for the call-to-action.
653
+ */
654
+ export interface Cta {
655
+ /**
656
+ * Link for the call-to-action.
657
+ */
658
+ href?: string | null;
659
+
660
+ /**
661
+ * Label for the call-to-action.
662
+ */
663
+ label?: string | null;
664
+ }
665
+
666
+ export interface DiscordServersToJoin {
667
+ /**
668
+ * ID of the Discord server to join.
669
+ */
670
+ id?: string;
671
+
672
+ /**
673
+ * Array of Discord channels to join.
674
+ */
675
+ channels?: Array<DiscordServersToJoin.Channel>;
676
+
677
+ /**
678
+ * Array of roles to assign in the Discord server.
679
+ */
680
+ roles?: Array<DiscordServersToJoin.Role>;
681
+ }
682
+
683
+ export namespace DiscordServersToJoin {
684
+ export interface Channel {
685
+ /**
686
+ * ID of the Discord channel.
687
+ */
688
+ id?: string;
689
+
690
+ /**
691
+ * Array of emojis used in the channel.
692
+ */
693
+ emojis?: Array<Channel.Emoji>;
694
+
695
+ /**
696
+ * Phrase of text to be present in the discord message
697
+ */
698
+ text?: string;
699
+ }
700
+
701
+ export namespace Channel {
702
+ export interface Emoji {
703
+ /**
704
+ * ID of the emoji used in the channel.
705
+ */
706
+ id?: string;
707
+ }
708
+ }
709
+
710
+ export interface Role {
711
+ /**
712
+ * ID of the role in the Discord server.
713
+ */
714
+ id: string;
715
+ }
716
+ }
717
+
718
+ export interface DripQuestsToComplete {
719
+ /**
720
+ * ID of the drip quest to complete.
721
+ */
722
+ id: string;
723
+ }
724
+
725
+ /**
726
+ * Liquidity pool details.
727
+ */
728
+ export interface Liquidity {
729
+ /**
730
+ * Calculation type of the liquidity pool.
731
+ */
732
+ calculationType?: 'fixed' | 'custom';
733
+
734
+ /**
735
+ * Custom function to calculate the the reward amount based on the liquidity
736
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
737
+ * USD.
738
+ */
739
+ customFunction?: string;
740
+
741
+ /**
742
+ * Liquidity provided per day in USD
743
+ */
744
+ liquidityPerDay?: number;
745
+
746
+ /**
747
+ * Blockchain network of the liquidity pool.
748
+ */
749
+ network?:
750
+ | 'abstract'
751
+ | 'abstractTestnet'
752
+ | 'apechain'
753
+ | 'arbitrum'
754
+ | 'avalanche'
755
+ | 'avalancheFuji'
756
+ | 'base'
757
+ | 'baseSepolia'
758
+ | 'berachain'
759
+ | 'berachainArtio'
760
+ | 'berachainBepolia'
761
+ | 'binance'
762
+ | 'bscTestnet'
763
+ | 'campTestnet'
764
+ | 'fantom'
765
+ | 'fantomTestnet'
766
+ | 'flowMainnet'
767
+ | 'mainnet'
768
+ | 'optimism'
769
+ | 'polygon'
770
+ | 'polygon_mumbai'
771
+ | 'skaleNebula'
772
+ | 'solana'
773
+ | 'sophon'
774
+ | 'sophonTestnet'
775
+ | 'sui'
776
+ | 'superseed'
777
+ | 'superseedSepolia'
778
+ | 'vanar'
779
+ | 'xai'
780
+ | 'zksync'
781
+ | 'coti'
782
+ | 'cotiTestnet'
783
+ | 'morph'
784
+ | 'morphTestnet'
785
+ | 'morphHolesky'
786
+ | 'ultra'
787
+ | 'ultraTestnet'
788
+ | 'nitrograph'
789
+ | 'sepolia'
790
+ | 'optimism_sepolia'
791
+ | 'arbitrumSepolia'
792
+ | 'goerli'
793
+ | 'optimism_goerli'
794
+ | 'arbitrumGoerli'
795
+ | 'basecamp';
796
+
797
+ /**
798
+ * Indicates if only in-range liquidity is rewarded.
799
+ */
800
+ onlyRewardInRangeLiquidity?: boolean;
801
+
802
+ /**
803
+ * Array of liquidity pools associated with the rule.
804
+ */
805
+ pools?: Array<Liquidity.Pool>;
806
+
807
+ /**
808
+ * Protocol of the liquidity pool.
809
+ */
810
+ protocol?: string;
811
+ }
812
+
813
+ export namespace Liquidity {
814
+ export interface Pool {
815
+ /**
816
+ * Unique identifier of the liquidity pool.
817
+ */
818
+ id: string;
819
+ }
820
+ }
821
+
822
+ export interface Range {
823
+ /**
824
+ * Reward amount for this range.
825
+ */
826
+ amount: number;
827
+
828
+ /**
829
+ * End value of the range.
830
+ */
831
+ endRange: number;
832
+
833
+ /**
834
+ * Start value of the range.
835
+ */
836
+ startRange: number;
837
+
838
+ /**
839
+ * ID of the loyalty badge for this range.
840
+ */
841
+ loyaltyBadgeId?: string;
842
+
843
+ /**
844
+ * Amount of the loyalty multiplier for this range.
845
+ */
846
+ loyaltyMultiplierAmount?: number;
847
+ }
848
+
849
+ /**
850
+ * Object defining referral requirements.
851
+ */
852
+ export interface ReferralRequirements {
853
+ /**
854
+ * Flag indicating if achieving points is required.
855
+ */
856
+ achievePoints?: boolean | null;
857
+
858
+ /**
859
+ * Flag indicating if completing the profile is required.
860
+ */
861
+ completeProfile?: boolean | null;
862
+
863
+ /**
864
+ * Flag indicating if connecting Discord is required.
865
+ */
866
+ connectDiscord?: boolean | null;
867
+
868
+ /**
869
+ * Flag indicating if connecting email is required.
870
+ */
871
+ connectEmail?: boolean | null;
872
+
873
+ /**
874
+ * Flag indicating if connecting Twitter is required.
875
+ */
876
+ connectTwitter?: boolean | null;
877
+
878
+ points?: ReferralRequirements.Points | null;
879
+ }
880
+
881
+ export namespace ReferralRequirements {
882
+ export interface Points {
883
+ /**
884
+ * Points required for referral.
885
+ */
886
+ amount?: number | null;
887
+
888
+ /**
889
+ * ID of the loyalty currency for referral.
890
+ */
891
+ loyaltyCurrecyId?: string | null;
892
+ }
893
+ }
894
+
895
+ /**
896
+ * Object containing details of the associated smart contract.
897
+ */
898
+ export interface SmartContract {
899
+ /**
900
+ * Mapping of addresses for the smart contract.
901
+ */
902
+ addressMapping?: string | null;
903
+
904
+ /**
905
+ * Object containing details of the amount multiplier from the event.
906
+ */
907
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
908
+
909
+ /**
910
+ * ID of the smart contract.
911
+ */
912
+ contractId?: string | null;
913
+
914
+ /**
915
+ * Criteria to evaluate the smart contract event.
916
+ */
917
+ criteria?: 'everyEvent' | 'byParameter' | null;
918
+
919
+ /**
920
+ * Event emitted by the smart contract.
921
+ */
922
+ event?: string | null;
923
+
924
+ /**
925
+ * Array of parameters for the smart contract.
926
+ */
927
+ params?: Array<SmartContract.Param> | null;
928
+
929
+ /**
930
+ * Type of the smart contract interaction.
931
+ */
932
+ type?: 'function' | 'event' | null;
933
+ }
934
+
935
+ export namespace SmartContract {
936
+ /**
937
+ * Object containing details of the amount multiplier from the event.
938
+ */
939
+ export interface AmountMultiplier {
940
+ /**
941
+ * Mapping of the value for the smart contract.
942
+ */
943
+ valueMapping?: string | null;
944
+ }
945
+
946
+ export interface Param {
947
+ /**
948
+ * Condition to check for the parameter.
949
+ */
950
+ condition?: string | null;
951
+
952
+ /**
953
+ * Name of the smart contract parameter.
954
+ */
955
+ name?: string | null;
956
+
957
+ /**
958
+ * Value of the parameter.
959
+ */
960
+ value?: string | null;
961
+ }
962
+ }
963
+
964
+ export interface SnapshotProposal {
965
+ /**
966
+ * ID of the snapshot proposal.
967
+ */
968
+ id: string;
969
+
970
+ /**
971
+ * Space associated with the snapshot proposal.
972
+ */
973
+ space: string;
974
+ }
975
+
976
+ export interface StreakArray {
977
+ /**
978
+ * Reward amount for achieving the streak milestone.
979
+ */
980
+ streakAmount: number;
981
+
982
+ /**
983
+ * Milestone required to achieve the streak.
984
+ */
985
+ streakMilestone: number;
986
+ }
987
+
988
+ /**
989
+ * Metadata for swap loyalty rules
990
+ */
991
+ export interface Swap {
992
+ provider?: 'any' | 'relay' | 'lifi';
993
+
994
+ relayReferrerId?: string;
995
+
996
+ requireCrossChainSwap?: boolean;
997
+
998
+ swappedToChain?: 'any' | number | string;
999
+
1000
+ swappedToTokens?: Array<Swap.SwappedToToken>;
1001
+
1002
+ tokenMode?: 'any' | 'specific';
1003
+
1004
+ trackTokenAmount?: boolean;
1005
+ }
1006
+
1007
+ export namespace Swap {
1008
+ export interface SwappedToToken {
1009
+ address: string;
1010
+
1011
+ chainId: string;
1012
+ }
1013
+ }
1014
+ }
147
1015
  }
148
1016
 
149
1017
  /**
@@ -170,16 +1038,41 @@ export namespace RuleEditRetrieveResponse {
170
1038
  */
171
1039
  deletedAt: string | null;
172
1040
 
1041
+ /**
1042
+ * Description of the loyalty rule
1043
+ */
1044
+ description: string;
1045
+
1046
+ /**
1047
+ * End time of the loyalty rule
1048
+ */
1049
+ endTime: string;
1050
+
173
1051
  /**
174
1052
  * Frequency of the loyalty rule
175
1053
  */
176
1054
  frequency: string;
177
1055
 
1056
+ /**
1057
+ * Name of the loyalty rule
1058
+ */
1059
+ name: string;
1060
+
178
1061
  /**
179
1062
  * Unique identifier for the organization
180
1063
  */
181
1064
  organizationId: string;
182
1065
 
1066
+ /**
1067
+ * Type of the reward
1068
+ */
1069
+ rewardType: 'points' | 'multiplier' | 'badge';
1070
+
1071
+ /**
1072
+ * Start time of the loyalty rule
1073
+ */
1074
+ startTime: string;
1075
+
183
1076
  /**
184
1077
  * Type of the loyalty rule
185
1078
  */
@@ -200,10 +1093,842 @@ export namespace RuleEditRetrieveResponse {
200
1093
  */
201
1094
  collectionAddress?: string;
202
1095
 
1096
+ /**
1097
+ * URL of the media associated with the loyalty rule
1098
+ */
1099
+ mediaUrl?: string | null;
1100
+
203
1101
  /**
204
1102
  * Optional metadata for the loyalty rule
205
1103
  */
206
- metadata?: Record<string, unknown>;
1104
+ metadata?: { [key: string]: PreviousData.Metadata };
1105
+ }
1106
+
1107
+ export namespace PreviousData {
1108
+ export interface Metadata {
1109
+ /**
1110
+ * Number of tokens per batch.
1111
+ */
1112
+ batchSize?: number | null;
1113
+
1114
+ /**
1115
+ * Text displayed on the action button.
1116
+ */
1117
+ buttonText?: string | null;
1118
+
1119
+ /**
1120
+ * Flag indicating if commenting is required.
1121
+ */
1122
+ checkComment?: boolean | null;
1123
+
1124
+ /**
1125
+ * Flag indicating if liking the post is required.
1126
+ */
1127
+ checkLike?: boolean | null;
1128
+
1129
+ /**
1130
+ * Flag indicating if reposting is required.
1131
+ */
1132
+ checkRepost?: boolean | null;
1133
+
1134
+ /**
1135
+ * Text to check in the Twitter post, username, or bio.
1136
+ */
1137
+ checkText?: string | null;
1138
+
1139
+ /**
1140
+ * Array of collections associated with the rule.
1141
+ */
1142
+ collection?: Array<Metadata.Collection>;
1143
+
1144
+ /**
1145
+ * Conditions for completing the profile.
1146
+ */
1147
+ completeProfileConditions?: { [key: string]: boolean } | null;
1148
+
1149
+ /**
1150
+ * Object containing details for the call-to-action.
1151
+ */
1152
+ cta?: Metadata.Cta | null;
1153
+
1154
+ /**
1155
+ * API key for custom rewards integration.
1156
+ */
1157
+ customRewardsApiKey?: string;
1158
+
1159
+ /**
1160
+ * Array of Discord servers, channels, and roles to join.
1161
+ */
1162
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
1163
+
1164
+ /**
1165
+ * Array of drip quests required to complete the rule.
1166
+ */
1167
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
1168
+
1169
+ /**
1170
+ * Flag indicating whether joining Discord servers is required.
1171
+ */
1172
+ enableJoinDiscordServers?: boolean | null;
1173
+
1174
+ /**
1175
+ * Flag indicating whether streaks are enabled.
1176
+ */
1177
+ enableStreaks?: boolean | null;
1178
+
1179
+ /**
1180
+ * Flag indicating whether the verified multiplier is enabled.
1181
+ */
1182
+ enableVerifiedMultiplier?: boolean;
1183
+
1184
+ /**
1185
+ * Fill source of the order for the token sale
1186
+ */
1187
+ fillSource?: string;
1188
+
1189
+ /**
1190
+ * Percentage reward given to a user for their first referral.
1191
+ */
1192
+ firstReferralReward?: number | null;
1193
+
1194
+ /**
1195
+ * Flag indicating whether the fill source is included.
1196
+ */
1197
+ hasFillSource?: boolean;
1198
+
1199
+ /**
1200
+ * Indicates if the item has never been sold.
1201
+ */
1202
+ hasNeverSold?: boolean;
1203
+
1204
+ /**
1205
+ * Indicates if the full royalty has been paid for items.
1206
+ */
1207
+ hasPaidFullRoyalty?: boolean;
1208
+
1209
+ /**
1210
+ * Flag indicating if the sale currency is included.
1211
+ */
1212
+ hasSaleCurrency?: boolean;
1213
+
1214
+ /**
1215
+ * Indicates if the user has a verified Twitter account.
1216
+ */
1217
+ hasVerifiedTwitter?: boolean;
1218
+
1219
+ /**
1220
+ * URL of the image associated with the rule.
1221
+ */
1222
+ imageUrl?: string | null;
1223
+
1224
+ /**
1225
+ * If enabled, the first transaction done on the platform will complete this rule
1226
+ */
1227
+ isCheckInOnEveryTxn?: boolean;
1228
+
1229
+ /**
1230
+ * Indicates if the multiplier has been applied to rewards.
1231
+ */
1232
+ isMultiplierApplied?: boolean;
1233
+
1234
+ /**
1235
+ * Flag indicating if the rule is restricted to new users.
1236
+ */
1237
+ isRestrictedToNewUsers?: boolean;
1238
+
1239
+ /**
1240
+ * Flag indicating if rewards are applied retroactively.
1241
+ */
1242
+ isRetroactive?: boolean | null;
1243
+
1244
+ /**
1245
+ * Flag indicating if the token hold multiplier is applied.
1246
+ */
1247
+ isTokenHoldMultiplier?: boolean;
1248
+
1249
+ /**
1250
+ * Optional link associated with the metadata.
1251
+ */
1252
+ link?: string | null;
1253
+
1254
+ /**
1255
+ * Liquidity pool details.
1256
+ */
1257
+ liquidity?: Metadata.Liquidity;
1258
+
1259
+ /**
1260
+ * Maximum quantity constraint for token holding.
1261
+ */
1262
+ maxQty?: number | null;
1263
+
1264
+ /**
1265
+ * Minimum quantity constraint for token holding.
1266
+ */
1267
+ minQty?: number | null;
1268
+
1269
+ /**
1270
+ * Array of loyalty currency IDs used for multipliers.
1271
+ */
1272
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
1273
+
1274
+ /**
1275
+ * Flag indicating whether to include only known users.
1276
+ */
1277
+ onlyKnownUsers?: boolean;
1278
+
1279
+ /**
1280
+ * Flag indicating whether to include only native tokens.
1281
+ */
1282
+ onlyNative?: boolean;
1283
+
1284
+ /**
1285
+ * Flag indicating whether to include only non-listed items.
1286
+ */
1287
+ onlyNonListed?: boolean;
1288
+
1289
+ /**
1290
+ * Indicates if only existing users are rewarded.
1291
+ */
1292
+ onlyRewardExistingUser?: boolean;
1293
+
1294
+ /**
1295
+ * give points for only one token ownership per contract
1296
+ */
1297
+ onlyRewardSingleTokenOwnership?: boolean | null;
1298
+
1299
+ /**
1300
+ * Promotional code associated with the rule.
1301
+ */
1302
+ promoCode?: string;
1303
+
1304
+ /**
1305
+ * URL of the CSV file containing promo codes.
1306
+ */
1307
+ promoCodeCsvUrl?: string;
1308
+
1309
+ /**
1310
+ * Numbers of the promotional code to be generated.
1311
+ */
1312
+ promoCodeLength?: number | null;
1313
+
1314
+ /**
1315
+ * Type of the promotional code.
1316
+ */
1317
+ promoCodeType?: 'code' | 'csv' | 'generate';
1318
+
1319
+ /**
1320
+ * Array defining ranges and corresponding rewards.
1321
+ */
1322
+ range?: Array<Metadata.Range>;
1323
+
1324
+ /**
1325
+ * Object defining referral requirements.
1326
+ */
1327
+ referralRequirements?: Metadata.ReferralRequirements | null;
1328
+
1329
+ /**
1330
+ * Lump sum reward given to a referrer.
1331
+ */
1332
+ referrerReward?: number | null;
1333
+
1334
+ /**
1335
+ * Loyalty currency ID of the referrer reward.
1336
+ */
1337
+ referrerRewardLoyaltyCurrencyId?: string | null;
1338
+
1339
+ /**
1340
+ * Flag indicating if the rule can also reward badges per range.
1341
+ */
1342
+ rewardBadgePerRange?: boolean;
1343
+
1344
+ /**
1345
+ * Flag indicating if the reward is rewarded by batch.
1346
+ */
1347
+ rewardByBatch?: boolean | null;
1348
+
1349
+ /**
1350
+ * Flag indicating if rewards are given per impression.
1351
+ */
1352
+ rewardPerImpression?: boolean | null;
1353
+
1354
+ /**
1355
+ * Flag indicating if the rule should reward based on value of traded tokens
1356
+ * instead of count.
1357
+ */
1358
+ rewardPerValue?: boolean;
1359
+
1360
+ /**
1361
+ * Currency associated with sales.
1362
+ */
1363
+ saleCurrency?: string;
1364
+
1365
+ /**
1366
+ * Percentage reward given for a second-level referral.
1367
+ */
1368
+ secondReferralReward?: number | null;
1369
+
1370
+ /**
1371
+ * Flag indicating if the multiplier is skipped.
1372
+ */
1373
+ skipMultiplier?: boolean | null;
1374
+
1375
+ /**
1376
+ * Object containing details of the associated smart contract.
1377
+ */
1378
+ smartContract?: Metadata.SmartContract;
1379
+
1380
+ /**
1381
+ * Array of snapshot proposals for the rule.
1382
+ */
1383
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
1384
+
1385
+ /**
1386
+ * Social media platform associated with the rule.
1387
+ */
1388
+ socialPlatform?:
1389
+ | 'Custom'
1390
+ | 'Discord'
1391
+ | 'EpicGames'
1392
+ | 'Instagram'
1393
+ | 'Steam'
1394
+ | 'Telegram'
1395
+ | 'TikTok'
1396
+ | 'Twitch'
1397
+ | 'X(Twitter)'
1398
+ | 'YouTube'
1399
+ | 'Google'
1400
+ | null;
1401
+
1402
+ /**
1403
+ * URL of the social platform's logo.
1404
+ */
1405
+ socialPlatformLogo?: string | null;
1406
+
1407
+ /**
1408
+ * Name of the social platform.
1409
+ */
1410
+ socialPlatformName?: string | null;
1411
+
1412
+ /**
1413
+ * ID of the Steam app.
1414
+ */
1415
+ steamAppId?: string | null;
1416
+
1417
+ /**
1418
+ * Array of streak milestones and corresponding rewards.
1419
+ */
1420
+ streakArray?: Array<Metadata.StreakArray> | null;
1421
+
1422
+ /**
1423
+ * Metadata for swap loyalty rules
1424
+ */
1425
+ swap?: Metadata.Swap;
1426
+
1427
+ /**
1428
+ * ID of the Telegram channel.
1429
+ */
1430
+ telegramChannelId?: string | null;
1431
+
1432
+ /**
1433
+ * Time delay in seconds to verify actions.
1434
+ */
1435
+ timeDelayToVerifySeconds?: string | number | null;
1436
+
1437
+ /**
1438
+ * Flag indicating if all contracts are tracked.
1439
+ */
1440
+ trackAllContracts?: boolean | null;
1441
+
1442
+ /**
1443
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
1444
+ * completed once the progress is 100%.
1445
+ */
1446
+ trackProgress?: boolean | null;
1447
+
1448
+ /**
1449
+ * URL of the associated Twitter account.
1450
+ */
1451
+ twitterAccountUrl?: string;
1452
+
1453
+ /**
1454
+ * Hashtag associated with the Twitter post.
1455
+ */
1456
+ twitterHashtag?: string;
1457
+
1458
+ /**
1459
+ * URL of the associated Twitter post.
1460
+ */
1461
+ twitterPostUrl?: string;
1462
+
1463
+ /**
1464
+ * Unique identifier of the Twitter user.
1465
+ */
1466
+ twitterUserId?: string;
1467
+
1468
+ /**
1469
+ * Twitter username of the user.
1470
+ */
1471
+ twitterUsername?: string;
1472
+
1473
+ /**
1474
+ * Minimum length of the verification text.
1475
+ */
1476
+ verificationTextMinimumLength?: number | null;
1477
+
1478
+ /**
1479
+ * Multiplier applied to rewards for verified users.
1480
+ */
1481
+ verifiedMultiplier?: number | null;
1482
+
1483
+ /**
1484
+ * Placeholder text for verification input fields.
1485
+ */
1486
+ verifyPlaceHolderText?: string | null;
1487
+
1488
+ /**
1489
+ * Type of wallet associated with the rule.
1490
+ */
1491
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
1492
+
1493
+ /**
1494
+ * ID of the Youtube channel.
1495
+ */
1496
+ youtubeChannelId?: string | null;
1497
+
1498
+ /**
1499
+ * ID of the Youtube video.
1500
+ */
1501
+ youtubeVideoId?: string | null;
1502
+ }
1503
+
1504
+ export namespace Metadata {
1505
+ export interface Collection {
1506
+ /**
1507
+ * Blockchain address of the collection.
1508
+ */
1509
+ address?: string;
1510
+
1511
+ /**
1512
+ * Multiplier applied to the rewards for this collection.
1513
+ */
1514
+ multiplier?: number;
1515
+
1516
+ /**
1517
+ * Blockchain network of the collection.
1518
+ */
1519
+ network?:
1520
+ | 'abstract'
1521
+ | 'abstractTestnet'
1522
+ | 'apechain'
1523
+ | 'arbitrum'
1524
+ | 'avalanche'
1525
+ | 'avalancheFuji'
1526
+ | 'base'
1527
+ | 'baseSepolia'
1528
+ | 'berachain'
1529
+ | 'berachainArtio'
1530
+ | 'berachainBepolia'
1531
+ | 'binance'
1532
+ | 'bscTestnet'
1533
+ | 'campTestnet'
1534
+ | 'fantom'
1535
+ | 'fantomTestnet'
1536
+ | 'flowMainnet'
1537
+ | 'mainnet'
1538
+ | 'optimism'
1539
+ | 'polygon'
1540
+ | 'polygon_mumbai'
1541
+ | 'skaleNebula'
1542
+ | 'solana'
1543
+ | 'sophon'
1544
+ | 'sophonTestnet'
1545
+ | 'sui'
1546
+ | 'superseed'
1547
+ | 'superseedSepolia'
1548
+ | 'vanar'
1549
+ | 'xai'
1550
+ | 'zksync'
1551
+ | 'coti'
1552
+ | 'cotiTestnet'
1553
+ | 'morph'
1554
+ | 'morphTestnet'
1555
+ | 'morphHolesky'
1556
+ | 'ultra'
1557
+ | 'ultraTestnet'
1558
+ | 'nitrograph'
1559
+ | 'sepolia'
1560
+ | 'optimism_sepolia'
1561
+ | 'arbitrumSepolia'
1562
+ | 'goerli'
1563
+ | 'optimism_goerli'
1564
+ | 'arbitrumGoerli'
1565
+ | 'basecamp';
1566
+ }
1567
+
1568
+ /**
1569
+ * Object containing details for the call-to-action.
1570
+ */
1571
+ export interface Cta {
1572
+ /**
1573
+ * Link for the call-to-action.
1574
+ */
1575
+ href?: string | null;
1576
+
1577
+ /**
1578
+ * Label for the call-to-action.
1579
+ */
1580
+ label?: string | null;
1581
+ }
1582
+
1583
+ export interface DiscordServersToJoin {
1584
+ /**
1585
+ * ID of the Discord server to join.
1586
+ */
1587
+ id?: string;
1588
+
1589
+ /**
1590
+ * Array of Discord channels to join.
1591
+ */
1592
+ channels?: Array<DiscordServersToJoin.Channel>;
1593
+
1594
+ /**
1595
+ * Array of roles to assign in the Discord server.
1596
+ */
1597
+ roles?: Array<DiscordServersToJoin.Role>;
1598
+ }
1599
+
1600
+ export namespace DiscordServersToJoin {
1601
+ export interface Channel {
1602
+ /**
1603
+ * ID of the Discord channel.
1604
+ */
1605
+ id?: string;
1606
+
1607
+ /**
1608
+ * Array of emojis used in the channel.
1609
+ */
1610
+ emojis?: Array<Channel.Emoji>;
1611
+
1612
+ /**
1613
+ * Phrase of text to be present in the discord message
1614
+ */
1615
+ text?: string;
1616
+ }
1617
+
1618
+ export namespace Channel {
1619
+ export interface Emoji {
1620
+ /**
1621
+ * ID of the emoji used in the channel.
1622
+ */
1623
+ id?: string;
1624
+ }
1625
+ }
1626
+
1627
+ export interface Role {
1628
+ /**
1629
+ * ID of the role in the Discord server.
1630
+ */
1631
+ id: string;
1632
+ }
1633
+ }
1634
+
1635
+ export interface DripQuestsToComplete {
1636
+ /**
1637
+ * ID of the drip quest to complete.
1638
+ */
1639
+ id: string;
1640
+ }
1641
+
1642
+ /**
1643
+ * Liquidity pool details.
1644
+ */
1645
+ export interface Liquidity {
1646
+ /**
1647
+ * Calculation type of the liquidity pool.
1648
+ */
1649
+ calculationType?: 'fixed' | 'custom';
1650
+
1651
+ /**
1652
+ * Custom function to calculate the the reward amount based on the liquidity
1653
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
1654
+ * USD.
1655
+ */
1656
+ customFunction?: string;
1657
+
1658
+ /**
1659
+ * Liquidity provided per day in USD
1660
+ */
1661
+ liquidityPerDay?: number;
1662
+
1663
+ /**
1664
+ * Blockchain network of the liquidity pool.
1665
+ */
1666
+ network?:
1667
+ | 'abstract'
1668
+ | 'abstractTestnet'
1669
+ | 'apechain'
1670
+ | 'arbitrum'
1671
+ | 'avalanche'
1672
+ | 'avalancheFuji'
1673
+ | 'base'
1674
+ | 'baseSepolia'
1675
+ | 'berachain'
1676
+ | 'berachainArtio'
1677
+ | 'berachainBepolia'
1678
+ | 'binance'
1679
+ | 'bscTestnet'
1680
+ | 'campTestnet'
1681
+ | 'fantom'
1682
+ | 'fantomTestnet'
1683
+ | 'flowMainnet'
1684
+ | 'mainnet'
1685
+ | 'optimism'
1686
+ | 'polygon'
1687
+ | 'polygon_mumbai'
1688
+ | 'skaleNebula'
1689
+ | 'solana'
1690
+ | 'sophon'
1691
+ | 'sophonTestnet'
1692
+ | 'sui'
1693
+ | 'superseed'
1694
+ | 'superseedSepolia'
1695
+ | 'vanar'
1696
+ | 'xai'
1697
+ | 'zksync'
1698
+ | 'coti'
1699
+ | 'cotiTestnet'
1700
+ | 'morph'
1701
+ | 'morphTestnet'
1702
+ | 'morphHolesky'
1703
+ | 'ultra'
1704
+ | 'ultraTestnet'
1705
+ | 'nitrograph'
1706
+ | 'sepolia'
1707
+ | 'optimism_sepolia'
1708
+ | 'arbitrumSepolia'
1709
+ | 'goerli'
1710
+ | 'optimism_goerli'
1711
+ | 'arbitrumGoerli'
1712
+ | 'basecamp';
1713
+
1714
+ /**
1715
+ * Indicates if only in-range liquidity is rewarded.
1716
+ */
1717
+ onlyRewardInRangeLiquidity?: boolean;
1718
+
1719
+ /**
1720
+ * Array of liquidity pools associated with the rule.
1721
+ */
1722
+ pools?: Array<Liquidity.Pool>;
1723
+
1724
+ /**
1725
+ * Protocol of the liquidity pool.
1726
+ */
1727
+ protocol?: string;
1728
+ }
1729
+
1730
+ export namespace Liquidity {
1731
+ export interface Pool {
1732
+ /**
1733
+ * Unique identifier of the liquidity pool.
1734
+ */
1735
+ id: string;
1736
+ }
1737
+ }
1738
+
1739
+ export interface Range {
1740
+ /**
1741
+ * Reward amount for this range.
1742
+ */
1743
+ amount: number;
1744
+
1745
+ /**
1746
+ * End value of the range.
1747
+ */
1748
+ endRange: number;
1749
+
1750
+ /**
1751
+ * Start value of the range.
1752
+ */
1753
+ startRange: number;
1754
+
1755
+ /**
1756
+ * ID of the loyalty badge for this range.
1757
+ */
1758
+ loyaltyBadgeId?: string;
1759
+
1760
+ /**
1761
+ * Amount of the loyalty multiplier for this range.
1762
+ */
1763
+ loyaltyMultiplierAmount?: number;
1764
+ }
1765
+
1766
+ /**
1767
+ * Object defining referral requirements.
1768
+ */
1769
+ export interface ReferralRequirements {
1770
+ /**
1771
+ * Flag indicating if achieving points is required.
1772
+ */
1773
+ achievePoints?: boolean | null;
1774
+
1775
+ /**
1776
+ * Flag indicating if completing the profile is required.
1777
+ */
1778
+ completeProfile?: boolean | null;
1779
+
1780
+ /**
1781
+ * Flag indicating if connecting Discord is required.
1782
+ */
1783
+ connectDiscord?: boolean | null;
1784
+
1785
+ /**
1786
+ * Flag indicating if connecting email is required.
1787
+ */
1788
+ connectEmail?: boolean | null;
1789
+
1790
+ /**
1791
+ * Flag indicating if connecting Twitter is required.
1792
+ */
1793
+ connectTwitter?: boolean | null;
1794
+
1795
+ points?: ReferralRequirements.Points | null;
1796
+ }
1797
+
1798
+ export namespace ReferralRequirements {
1799
+ export interface Points {
1800
+ /**
1801
+ * Points required for referral.
1802
+ */
1803
+ amount?: number | null;
1804
+
1805
+ /**
1806
+ * ID of the loyalty currency for referral.
1807
+ */
1808
+ loyaltyCurrecyId?: string | null;
1809
+ }
1810
+ }
1811
+
1812
+ /**
1813
+ * Object containing details of the associated smart contract.
1814
+ */
1815
+ export interface SmartContract {
1816
+ /**
1817
+ * Mapping of addresses for the smart contract.
1818
+ */
1819
+ addressMapping?: string | null;
1820
+
1821
+ /**
1822
+ * Object containing details of the amount multiplier from the event.
1823
+ */
1824
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
1825
+
1826
+ /**
1827
+ * ID of the smart contract.
1828
+ */
1829
+ contractId?: string | null;
1830
+
1831
+ /**
1832
+ * Criteria to evaluate the smart contract event.
1833
+ */
1834
+ criteria?: 'everyEvent' | 'byParameter' | null;
1835
+
1836
+ /**
1837
+ * Event emitted by the smart contract.
1838
+ */
1839
+ event?: string | null;
1840
+
1841
+ /**
1842
+ * Array of parameters for the smart contract.
1843
+ */
1844
+ params?: Array<SmartContract.Param> | null;
1845
+
1846
+ /**
1847
+ * Type of the smart contract interaction.
1848
+ */
1849
+ type?: 'function' | 'event' | null;
1850
+ }
1851
+
1852
+ export namespace SmartContract {
1853
+ /**
1854
+ * Object containing details of the amount multiplier from the event.
1855
+ */
1856
+ export interface AmountMultiplier {
1857
+ /**
1858
+ * Mapping of the value for the smart contract.
1859
+ */
1860
+ valueMapping?: string | null;
1861
+ }
1862
+
1863
+ export interface Param {
1864
+ /**
1865
+ * Condition to check for the parameter.
1866
+ */
1867
+ condition?: string | null;
1868
+
1869
+ /**
1870
+ * Name of the smart contract parameter.
1871
+ */
1872
+ name?: string | null;
1873
+
1874
+ /**
1875
+ * Value of the parameter.
1876
+ */
1877
+ value?: string | null;
1878
+ }
1879
+ }
1880
+
1881
+ export interface SnapshotProposal {
1882
+ /**
1883
+ * ID of the snapshot proposal.
1884
+ */
1885
+ id: string;
1886
+
1887
+ /**
1888
+ * Space associated with the snapshot proposal.
1889
+ */
1890
+ space: string;
1891
+ }
1892
+
1893
+ export interface StreakArray {
1894
+ /**
1895
+ * Reward amount for achieving the streak milestone.
1896
+ */
1897
+ streakAmount: number;
1898
+
1899
+ /**
1900
+ * Milestone required to achieve the streak.
1901
+ */
1902
+ streakMilestone: number;
1903
+ }
1904
+
1905
+ /**
1906
+ * Metadata for swap loyalty rules
1907
+ */
1908
+ export interface Swap {
1909
+ provider?: 'any' | 'relay' | 'lifi';
1910
+
1911
+ relayReferrerId?: string;
1912
+
1913
+ requireCrossChainSwap?: boolean;
1914
+
1915
+ swappedToChain?: 'any' | number | string;
1916
+
1917
+ swappedToTokens?: Array<Swap.SwappedToToken>;
1918
+
1919
+ tokenMode?: 'any' | 'specific';
1920
+
1921
+ trackTokenAmount?: boolean;
1922
+ }
1923
+
1924
+ export namespace Swap {
1925
+ export interface SwappedToToken {
1926
+ address: string;
1927
+
1928
+ chainId: string;
1929
+ }
1930
+ }
1931
+ }
207
1932
  }
208
1933
  }
209
1934
  }
@@ -285,16 +2010,41 @@ export namespace RuleEditRestoreResponse {
285
2010
  */
286
2011
  deletedAt: string | null;
287
2012
 
2013
+ /**
2014
+ * Description of the loyalty rule
2015
+ */
2016
+ description: string;
2017
+
2018
+ /**
2019
+ * End time of the loyalty rule
2020
+ */
2021
+ endTime: string;
2022
+
288
2023
  /**
289
2024
  * Frequency of the loyalty rule
290
2025
  */
291
2026
  frequency: string;
292
2027
 
2028
+ /**
2029
+ * Name of the loyalty rule
2030
+ */
2031
+ name: string;
2032
+
293
2033
  /**
294
2034
  * Unique identifier for the organization
295
2035
  */
296
2036
  organizationId: string;
297
2037
 
2038
+ /**
2039
+ * Type of the reward
2040
+ */
2041
+ rewardType: 'points' | 'multiplier' | 'badge';
2042
+
2043
+ /**
2044
+ * Start time of the loyalty rule
2045
+ */
2046
+ startTime: string;
2047
+
298
2048
  /**
299
2049
  * Type of the loyalty rule
300
2050
  */
@@ -316,73 +2066,1762 @@ export namespace RuleEditRestoreResponse {
316
2066
  collectionAddress?: string;
317
2067
 
318
2068
  /**
319
- * Optional metadata for the loyalty rule
2069
+ * URL of the media associated with the loyalty rule
320
2070
  */
321
- metadata?: Record<string, unknown>;
322
- }
2071
+ mediaUrl?: string | null;
323
2072
 
324
- /**
325
- * Previous data of the rule before the edit
326
- */
327
- export interface PreviousData {
328
2073
  /**
329
- * Unique identifier for the loyalty rule
2074
+ * Optional metadata for the loyalty rule
330
2075
  */
331
- id: string;
2076
+ metadata?: { [key: string]: Data.Metadata };
2077
+ }
332
2078
 
333
- /**
334
- * Amount associated with the loyalty rule
335
- */
336
- amount: number;
2079
+ export namespace Data {
2080
+ export interface Metadata {
2081
+ /**
2082
+ * Number of tokens per batch.
2083
+ */
2084
+ batchSize?: number | null;
337
2085
 
338
- /**
339
- * Timestamp when the loyalty rule was created
340
- */
341
- createdAt: string;
2086
+ /**
2087
+ * Text displayed on the action button.
2088
+ */
2089
+ buttonText?: string | null;
342
2090
 
343
- /**
344
- * Timestamp when the loyalty rule was deleted (if applicable)
345
- */
346
- deletedAt: string | null;
2091
+ /**
2092
+ * Flag indicating if commenting is required.
2093
+ */
2094
+ checkComment?: boolean | null;
347
2095
 
348
- /**
349
- * Frequency of the loyalty rule
350
- */
351
- frequency: string;
2096
+ /**
2097
+ * Flag indicating if liking the post is required.
2098
+ */
2099
+ checkLike?: boolean | null;
352
2100
 
353
- /**
354
- * Unique identifier for the organization
355
- */
356
- organizationId: string;
2101
+ /**
2102
+ * Flag indicating if reposting is required.
2103
+ */
2104
+ checkRepost?: boolean | null;
357
2105
 
358
- /**
359
- * Type of the loyalty rule
360
- */
361
- type: string;
2106
+ /**
2107
+ * Text to check in the Twitter post, username, or bio.
2108
+ */
2109
+ checkText?: string | null;
362
2110
 
363
- /**
364
- * Timestamp when the loyalty rule was last updated
365
- */
366
- updatedAt: string;
2111
+ /**
2112
+ * Array of collections associated with the rule.
2113
+ */
2114
+ collection?: Array<Metadata.Collection>;
367
2115
 
368
- /**
369
- * Unique identifier for the website
370
- */
371
- websiteId: string;
2116
+ /**
2117
+ * Conditions for completing the profile.
2118
+ */
2119
+ completeProfileConditions?: { [key: string]: boolean } | null;
372
2120
 
373
- /**
374
- * Optional address of the collection
375
- */
376
- collectionAddress?: string;
2121
+ /**
2122
+ * Object containing details for the call-to-action.
2123
+ */
2124
+ cta?: Metadata.Cta | null;
377
2125
 
378
- /**
379
- * Optional metadata for the loyalty rule
380
- */
381
- metadata?: Record<string, unknown>;
2126
+ /**
2127
+ * API key for custom rewards integration.
2128
+ */
2129
+ customRewardsApiKey?: string;
2130
+
2131
+ /**
2132
+ * Array of Discord servers, channels, and roles to join.
2133
+ */
2134
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
2135
+
2136
+ /**
2137
+ * Array of drip quests required to complete the rule.
2138
+ */
2139
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
2140
+
2141
+ /**
2142
+ * Flag indicating whether joining Discord servers is required.
2143
+ */
2144
+ enableJoinDiscordServers?: boolean | null;
2145
+
2146
+ /**
2147
+ * Flag indicating whether streaks are enabled.
2148
+ */
2149
+ enableStreaks?: boolean | null;
2150
+
2151
+ /**
2152
+ * Flag indicating whether the verified multiplier is enabled.
2153
+ */
2154
+ enableVerifiedMultiplier?: boolean;
2155
+
2156
+ /**
2157
+ * Fill source of the order for the token sale
2158
+ */
2159
+ fillSource?: string;
2160
+
2161
+ /**
2162
+ * Percentage reward given to a user for their first referral.
2163
+ */
2164
+ firstReferralReward?: number | null;
2165
+
2166
+ /**
2167
+ * Flag indicating whether the fill source is included.
2168
+ */
2169
+ hasFillSource?: boolean;
2170
+
2171
+ /**
2172
+ * Indicates if the item has never been sold.
2173
+ */
2174
+ hasNeverSold?: boolean;
2175
+
2176
+ /**
2177
+ * Indicates if the full royalty has been paid for items.
2178
+ */
2179
+ hasPaidFullRoyalty?: boolean;
2180
+
2181
+ /**
2182
+ * Flag indicating if the sale currency is included.
2183
+ */
2184
+ hasSaleCurrency?: boolean;
2185
+
2186
+ /**
2187
+ * Indicates if the user has a verified Twitter account.
2188
+ */
2189
+ hasVerifiedTwitter?: boolean;
2190
+
2191
+ /**
2192
+ * URL of the image associated with the rule.
2193
+ */
2194
+ imageUrl?: string | null;
2195
+
2196
+ /**
2197
+ * If enabled, the first transaction done on the platform will complete this rule
2198
+ */
2199
+ isCheckInOnEveryTxn?: boolean;
2200
+
2201
+ /**
2202
+ * Indicates if the multiplier has been applied to rewards.
2203
+ */
2204
+ isMultiplierApplied?: boolean;
2205
+
2206
+ /**
2207
+ * Flag indicating if the rule is restricted to new users.
2208
+ */
2209
+ isRestrictedToNewUsers?: boolean;
2210
+
2211
+ /**
2212
+ * Flag indicating if rewards are applied retroactively.
2213
+ */
2214
+ isRetroactive?: boolean | null;
2215
+
2216
+ /**
2217
+ * Flag indicating if the token hold multiplier is applied.
2218
+ */
2219
+ isTokenHoldMultiplier?: boolean;
2220
+
2221
+ /**
2222
+ * Optional link associated with the metadata.
2223
+ */
2224
+ link?: string | null;
2225
+
2226
+ /**
2227
+ * Liquidity pool details.
2228
+ */
2229
+ liquidity?: Metadata.Liquidity;
2230
+
2231
+ /**
2232
+ * Maximum quantity constraint for token holding.
2233
+ */
2234
+ maxQty?: number | null;
2235
+
2236
+ /**
2237
+ * Minimum quantity constraint for token holding.
2238
+ */
2239
+ minQty?: number | null;
2240
+
2241
+ /**
2242
+ * Array of loyalty currency IDs used for multipliers.
2243
+ */
2244
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
2245
+
2246
+ /**
2247
+ * Flag indicating whether to include only known users.
2248
+ */
2249
+ onlyKnownUsers?: boolean;
2250
+
2251
+ /**
2252
+ * Flag indicating whether to include only native tokens.
2253
+ */
2254
+ onlyNative?: boolean;
2255
+
2256
+ /**
2257
+ * Flag indicating whether to include only non-listed items.
2258
+ */
2259
+ onlyNonListed?: boolean;
2260
+
2261
+ /**
2262
+ * Indicates if only existing users are rewarded.
2263
+ */
2264
+ onlyRewardExistingUser?: boolean;
2265
+
2266
+ /**
2267
+ * give points for only one token ownership per contract
2268
+ */
2269
+ onlyRewardSingleTokenOwnership?: boolean | null;
2270
+
2271
+ /**
2272
+ * Promotional code associated with the rule.
2273
+ */
2274
+ promoCode?: string;
2275
+
2276
+ /**
2277
+ * URL of the CSV file containing promo codes.
2278
+ */
2279
+ promoCodeCsvUrl?: string;
2280
+
2281
+ /**
2282
+ * Numbers of the promotional code to be generated.
2283
+ */
2284
+ promoCodeLength?: number | null;
2285
+
2286
+ /**
2287
+ * Type of the promotional code.
2288
+ */
2289
+ promoCodeType?: 'code' | 'csv' | 'generate';
2290
+
2291
+ /**
2292
+ * Array defining ranges and corresponding rewards.
2293
+ */
2294
+ range?: Array<Metadata.Range>;
2295
+
2296
+ /**
2297
+ * Object defining referral requirements.
2298
+ */
2299
+ referralRequirements?: Metadata.ReferralRequirements | null;
2300
+
2301
+ /**
2302
+ * Lump sum reward given to a referrer.
2303
+ */
2304
+ referrerReward?: number | null;
2305
+
2306
+ /**
2307
+ * Loyalty currency ID of the referrer reward.
2308
+ */
2309
+ referrerRewardLoyaltyCurrencyId?: string | null;
2310
+
2311
+ /**
2312
+ * Flag indicating if the rule can also reward badges per range.
2313
+ */
2314
+ rewardBadgePerRange?: boolean;
2315
+
2316
+ /**
2317
+ * Flag indicating if the reward is rewarded by batch.
2318
+ */
2319
+ rewardByBatch?: boolean | null;
2320
+
2321
+ /**
2322
+ * Flag indicating if rewards are given per impression.
2323
+ */
2324
+ rewardPerImpression?: boolean | null;
2325
+
2326
+ /**
2327
+ * Flag indicating if the rule should reward based on value of traded tokens
2328
+ * instead of count.
2329
+ */
2330
+ rewardPerValue?: boolean;
2331
+
2332
+ /**
2333
+ * Currency associated with sales.
2334
+ */
2335
+ saleCurrency?: string;
2336
+
2337
+ /**
2338
+ * Percentage reward given for a second-level referral.
2339
+ */
2340
+ secondReferralReward?: number | null;
2341
+
2342
+ /**
2343
+ * Flag indicating if the multiplier is skipped.
2344
+ */
2345
+ skipMultiplier?: boolean | null;
2346
+
2347
+ /**
2348
+ * Object containing details of the associated smart contract.
2349
+ */
2350
+ smartContract?: Metadata.SmartContract;
2351
+
2352
+ /**
2353
+ * Array of snapshot proposals for the rule.
2354
+ */
2355
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
2356
+
2357
+ /**
2358
+ * Social media platform associated with the rule.
2359
+ */
2360
+ socialPlatform?:
2361
+ | 'Custom'
2362
+ | 'Discord'
2363
+ | 'EpicGames'
2364
+ | 'Instagram'
2365
+ | 'Steam'
2366
+ | 'Telegram'
2367
+ | 'TikTok'
2368
+ | 'Twitch'
2369
+ | 'X(Twitter)'
2370
+ | 'YouTube'
2371
+ | 'Google'
2372
+ | null;
2373
+
2374
+ /**
2375
+ * URL of the social platform's logo.
2376
+ */
2377
+ socialPlatformLogo?: string | null;
2378
+
2379
+ /**
2380
+ * Name of the social platform.
2381
+ */
2382
+ socialPlatformName?: string | null;
2383
+
2384
+ /**
2385
+ * ID of the Steam app.
2386
+ */
2387
+ steamAppId?: string | null;
2388
+
2389
+ /**
2390
+ * Array of streak milestones and corresponding rewards.
2391
+ */
2392
+ streakArray?: Array<Metadata.StreakArray> | null;
2393
+
2394
+ /**
2395
+ * Metadata for swap loyalty rules
2396
+ */
2397
+ swap?: Metadata.Swap;
2398
+
2399
+ /**
2400
+ * ID of the Telegram channel.
2401
+ */
2402
+ telegramChannelId?: string | null;
2403
+
2404
+ /**
2405
+ * Time delay in seconds to verify actions.
2406
+ */
2407
+ timeDelayToVerifySeconds?: string | number | null;
2408
+
2409
+ /**
2410
+ * Flag indicating if all contracts are tracked.
2411
+ */
2412
+ trackAllContracts?: boolean | null;
2413
+
2414
+ /**
2415
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
2416
+ * completed once the progress is 100%.
2417
+ */
2418
+ trackProgress?: boolean | null;
2419
+
2420
+ /**
2421
+ * URL of the associated Twitter account.
2422
+ */
2423
+ twitterAccountUrl?: string;
2424
+
2425
+ /**
2426
+ * Hashtag associated with the Twitter post.
2427
+ */
2428
+ twitterHashtag?: string;
2429
+
2430
+ /**
2431
+ * URL of the associated Twitter post.
2432
+ */
2433
+ twitterPostUrl?: string;
2434
+
2435
+ /**
2436
+ * Unique identifier of the Twitter user.
2437
+ */
2438
+ twitterUserId?: string;
2439
+
2440
+ /**
2441
+ * Twitter username of the user.
2442
+ */
2443
+ twitterUsername?: string;
2444
+
2445
+ /**
2446
+ * Minimum length of the verification text.
2447
+ */
2448
+ verificationTextMinimumLength?: number | null;
2449
+
2450
+ /**
2451
+ * Multiplier applied to rewards for verified users.
2452
+ */
2453
+ verifiedMultiplier?: number | null;
2454
+
2455
+ /**
2456
+ * Placeholder text for verification input fields.
2457
+ */
2458
+ verifyPlaceHolderText?: string | null;
2459
+
2460
+ /**
2461
+ * Type of wallet associated with the rule.
2462
+ */
2463
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
2464
+
2465
+ /**
2466
+ * ID of the Youtube channel.
2467
+ */
2468
+ youtubeChannelId?: string | null;
2469
+
2470
+ /**
2471
+ * ID of the Youtube video.
2472
+ */
2473
+ youtubeVideoId?: string | null;
2474
+ }
2475
+
2476
+ export namespace Metadata {
2477
+ export interface Collection {
2478
+ /**
2479
+ * Blockchain address of the collection.
2480
+ */
2481
+ address?: string;
2482
+
2483
+ /**
2484
+ * Multiplier applied to the rewards for this collection.
2485
+ */
2486
+ multiplier?: number;
2487
+
2488
+ /**
2489
+ * Blockchain network of the collection.
2490
+ */
2491
+ network?:
2492
+ | 'abstract'
2493
+ | 'abstractTestnet'
2494
+ | 'apechain'
2495
+ | 'arbitrum'
2496
+ | 'avalanche'
2497
+ | 'avalancheFuji'
2498
+ | 'base'
2499
+ | 'baseSepolia'
2500
+ | 'berachain'
2501
+ | 'berachainArtio'
2502
+ | 'berachainBepolia'
2503
+ | 'binance'
2504
+ | 'bscTestnet'
2505
+ | 'campTestnet'
2506
+ | 'fantom'
2507
+ | 'fantomTestnet'
2508
+ | 'flowMainnet'
2509
+ | 'mainnet'
2510
+ | 'optimism'
2511
+ | 'polygon'
2512
+ | 'polygon_mumbai'
2513
+ | 'skaleNebula'
2514
+ | 'solana'
2515
+ | 'sophon'
2516
+ | 'sophonTestnet'
2517
+ | 'sui'
2518
+ | 'superseed'
2519
+ | 'superseedSepolia'
2520
+ | 'vanar'
2521
+ | 'xai'
2522
+ | 'zksync'
2523
+ | 'coti'
2524
+ | 'cotiTestnet'
2525
+ | 'morph'
2526
+ | 'morphTestnet'
2527
+ | 'morphHolesky'
2528
+ | 'ultra'
2529
+ | 'ultraTestnet'
2530
+ | 'nitrograph'
2531
+ | 'sepolia'
2532
+ | 'optimism_sepolia'
2533
+ | 'arbitrumSepolia'
2534
+ | 'goerli'
2535
+ | 'optimism_goerli'
2536
+ | 'arbitrumGoerli'
2537
+ | 'basecamp';
2538
+ }
2539
+
2540
+ /**
2541
+ * Object containing details for the call-to-action.
2542
+ */
2543
+ export interface Cta {
2544
+ /**
2545
+ * Link for the call-to-action.
2546
+ */
2547
+ href?: string | null;
2548
+
2549
+ /**
2550
+ * Label for the call-to-action.
2551
+ */
2552
+ label?: string | null;
2553
+ }
2554
+
2555
+ export interface DiscordServersToJoin {
2556
+ /**
2557
+ * ID of the Discord server to join.
2558
+ */
2559
+ id?: string;
2560
+
2561
+ /**
2562
+ * Array of Discord channels to join.
2563
+ */
2564
+ channels?: Array<DiscordServersToJoin.Channel>;
2565
+
2566
+ /**
2567
+ * Array of roles to assign in the Discord server.
2568
+ */
2569
+ roles?: Array<DiscordServersToJoin.Role>;
2570
+ }
2571
+
2572
+ export namespace DiscordServersToJoin {
2573
+ export interface Channel {
2574
+ /**
2575
+ * ID of the Discord channel.
2576
+ */
2577
+ id?: string;
2578
+
2579
+ /**
2580
+ * Array of emojis used in the channel.
2581
+ */
2582
+ emojis?: Array<Channel.Emoji>;
2583
+
2584
+ /**
2585
+ * Phrase of text to be present in the discord message
2586
+ */
2587
+ text?: string;
2588
+ }
2589
+
2590
+ export namespace Channel {
2591
+ export interface Emoji {
2592
+ /**
2593
+ * ID of the emoji used in the channel.
2594
+ */
2595
+ id?: string;
2596
+ }
2597
+ }
2598
+
2599
+ export interface Role {
2600
+ /**
2601
+ * ID of the role in the Discord server.
2602
+ */
2603
+ id: string;
2604
+ }
2605
+ }
2606
+
2607
+ export interface DripQuestsToComplete {
2608
+ /**
2609
+ * ID of the drip quest to complete.
2610
+ */
2611
+ id: string;
2612
+ }
2613
+
2614
+ /**
2615
+ * Liquidity pool details.
2616
+ */
2617
+ export interface Liquidity {
2618
+ /**
2619
+ * Calculation type of the liquidity pool.
2620
+ */
2621
+ calculationType?: 'fixed' | 'custom';
2622
+
2623
+ /**
2624
+ * Custom function to calculate the the reward amount based on the liquidity
2625
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
2626
+ * USD.
2627
+ */
2628
+ customFunction?: string;
2629
+
2630
+ /**
2631
+ * Liquidity provided per day in USD
2632
+ */
2633
+ liquidityPerDay?: number;
2634
+
2635
+ /**
2636
+ * Blockchain network of the liquidity pool.
2637
+ */
2638
+ network?:
2639
+ | 'abstract'
2640
+ | 'abstractTestnet'
2641
+ | 'apechain'
2642
+ | 'arbitrum'
2643
+ | 'avalanche'
2644
+ | 'avalancheFuji'
2645
+ | 'base'
2646
+ | 'baseSepolia'
2647
+ | 'berachain'
2648
+ | 'berachainArtio'
2649
+ | 'berachainBepolia'
2650
+ | 'binance'
2651
+ | 'bscTestnet'
2652
+ | 'campTestnet'
2653
+ | 'fantom'
2654
+ | 'fantomTestnet'
2655
+ | 'flowMainnet'
2656
+ | 'mainnet'
2657
+ | 'optimism'
2658
+ | 'polygon'
2659
+ | 'polygon_mumbai'
2660
+ | 'skaleNebula'
2661
+ | 'solana'
2662
+ | 'sophon'
2663
+ | 'sophonTestnet'
2664
+ | 'sui'
2665
+ | 'superseed'
2666
+ | 'superseedSepolia'
2667
+ | 'vanar'
2668
+ | 'xai'
2669
+ | 'zksync'
2670
+ | 'coti'
2671
+ | 'cotiTestnet'
2672
+ | 'morph'
2673
+ | 'morphTestnet'
2674
+ | 'morphHolesky'
2675
+ | 'ultra'
2676
+ | 'ultraTestnet'
2677
+ | 'nitrograph'
2678
+ | 'sepolia'
2679
+ | 'optimism_sepolia'
2680
+ | 'arbitrumSepolia'
2681
+ | 'goerli'
2682
+ | 'optimism_goerli'
2683
+ | 'arbitrumGoerli'
2684
+ | 'basecamp';
2685
+
2686
+ /**
2687
+ * Indicates if only in-range liquidity is rewarded.
2688
+ */
2689
+ onlyRewardInRangeLiquidity?: boolean;
2690
+
2691
+ /**
2692
+ * Array of liquidity pools associated with the rule.
2693
+ */
2694
+ pools?: Array<Liquidity.Pool>;
2695
+
2696
+ /**
2697
+ * Protocol of the liquidity pool.
2698
+ */
2699
+ protocol?: string;
2700
+ }
2701
+
2702
+ export namespace Liquidity {
2703
+ export interface Pool {
2704
+ /**
2705
+ * Unique identifier of the liquidity pool.
2706
+ */
2707
+ id: string;
2708
+ }
2709
+ }
2710
+
2711
+ export interface Range {
2712
+ /**
2713
+ * Reward amount for this range.
2714
+ */
2715
+ amount: number;
2716
+
2717
+ /**
2718
+ * End value of the range.
2719
+ */
2720
+ endRange: number;
2721
+
2722
+ /**
2723
+ * Start value of the range.
2724
+ */
2725
+ startRange: number;
2726
+
2727
+ /**
2728
+ * ID of the loyalty badge for this range.
2729
+ */
2730
+ loyaltyBadgeId?: string;
2731
+
2732
+ /**
2733
+ * Amount of the loyalty multiplier for this range.
2734
+ */
2735
+ loyaltyMultiplierAmount?: number;
2736
+ }
2737
+
2738
+ /**
2739
+ * Object defining referral requirements.
2740
+ */
2741
+ export interface ReferralRequirements {
2742
+ /**
2743
+ * Flag indicating if achieving points is required.
2744
+ */
2745
+ achievePoints?: boolean | null;
2746
+
2747
+ /**
2748
+ * Flag indicating if completing the profile is required.
2749
+ */
2750
+ completeProfile?: boolean | null;
2751
+
2752
+ /**
2753
+ * Flag indicating if connecting Discord is required.
2754
+ */
2755
+ connectDiscord?: boolean | null;
2756
+
2757
+ /**
2758
+ * Flag indicating if connecting email is required.
2759
+ */
2760
+ connectEmail?: boolean | null;
2761
+
2762
+ /**
2763
+ * Flag indicating if connecting Twitter is required.
2764
+ */
2765
+ connectTwitter?: boolean | null;
2766
+
2767
+ points?: ReferralRequirements.Points | null;
2768
+ }
2769
+
2770
+ export namespace ReferralRequirements {
2771
+ export interface Points {
2772
+ /**
2773
+ * Points required for referral.
2774
+ */
2775
+ amount?: number | null;
2776
+
2777
+ /**
2778
+ * ID of the loyalty currency for referral.
2779
+ */
2780
+ loyaltyCurrecyId?: string | null;
2781
+ }
2782
+ }
2783
+
2784
+ /**
2785
+ * Object containing details of the associated smart contract.
2786
+ */
2787
+ export interface SmartContract {
2788
+ /**
2789
+ * Mapping of addresses for the smart contract.
2790
+ */
2791
+ addressMapping?: string | null;
2792
+
2793
+ /**
2794
+ * Object containing details of the amount multiplier from the event.
2795
+ */
2796
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
2797
+
2798
+ /**
2799
+ * ID of the smart contract.
2800
+ */
2801
+ contractId?: string | null;
2802
+
2803
+ /**
2804
+ * Criteria to evaluate the smart contract event.
2805
+ */
2806
+ criteria?: 'everyEvent' | 'byParameter' | null;
2807
+
2808
+ /**
2809
+ * Event emitted by the smart contract.
2810
+ */
2811
+ event?: string | null;
2812
+
2813
+ /**
2814
+ * Array of parameters for the smart contract.
2815
+ */
2816
+ params?: Array<SmartContract.Param> | null;
2817
+
2818
+ /**
2819
+ * Type of the smart contract interaction.
2820
+ */
2821
+ type?: 'function' | 'event' | null;
2822
+ }
2823
+
2824
+ export namespace SmartContract {
2825
+ /**
2826
+ * Object containing details of the amount multiplier from the event.
2827
+ */
2828
+ export interface AmountMultiplier {
2829
+ /**
2830
+ * Mapping of the value for the smart contract.
2831
+ */
2832
+ valueMapping?: string | null;
2833
+ }
2834
+
2835
+ export interface Param {
2836
+ /**
2837
+ * Condition to check for the parameter.
2838
+ */
2839
+ condition?: string | null;
2840
+
2841
+ /**
2842
+ * Name of the smart contract parameter.
2843
+ */
2844
+ name?: string | null;
2845
+
2846
+ /**
2847
+ * Value of the parameter.
2848
+ */
2849
+ value?: string | null;
2850
+ }
2851
+ }
2852
+
2853
+ export interface SnapshotProposal {
2854
+ /**
2855
+ * ID of the snapshot proposal.
2856
+ */
2857
+ id: string;
2858
+
2859
+ /**
2860
+ * Space associated with the snapshot proposal.
2861
+ */
2862
+ space: string;
2863
+ }
2864
+
2865
+ export interface StreakArray {
2866
+ /**
2867
+ * Reward amount for achieving the streak milestone.
2868
+ */
2869
+ streakAmount: number;
2870
+
2871
+ /**
2872
+ * Milestone required to achieve the streak.
2873
+ */
2874
+ streakMilestone: number;
2875
+ }
2876
+
2877
+ /**
2878
+ * Metadata for swap loyalty rules
2879
+ */
2880
+ export interface Swap {
2881
+ provider?: 'any' | 'relay' | 'lifi';
2882
+
2883
+ relayReferrerId?: string;
2884
+
2885
+ requireCrossChainSwap?: boolean;
2886
+
2887
+ swappedToChain?: 'any' | number | string;
2888
+
2889
+ swappedToTokens?: Array<Swap.SwappedToToken>;
2890
+
2891
+ tokenMode?: 'any' | 'specific';
2892
+
2893
+ trackTokenAmount?: boolean;
2894
+ }
2895
+
2896
+ export namespace Swap {
2897
+ export interface SwappedToToken {
2898
+ address: string;
2899
+
2900
+ chainId: string;
2901
+ }
2902
+ }
2903
+ }
2904
+ }
2905
+
2906
+ /**
2907
+ * Previous data of the rule before the edit
2908
+ */
2909
+ export interface PreviousData {
2910
+ /**
2911
+ * Unique identifier for the loyalty rule
2912
+ */
2913
+ id: string;
2914
+
2915
+ /**
2916
+ * Amount associated with the loyalty rule
2917
+ */
2918
+ amount: number;
2919
+
2920
+ /**
2921
+ * Timestamp when the loyalty rule was created
2922
+ */
2923
+ createdAt: string;
2924
+
2925
+ /**
2926
+ * Timestamp when the loyalty rule was deleted (if applicable)
2927
+ */
2928
+ deletedAt: string | null;
2929
+
2930
+ /**
2931
+ * Description of the loyalty rule
2932
+ */
2933
+ description: string;
2934
+
2935
+ /**
2936
+ * End time of the loyalty rule
2937
+ */
2938
+ endTime: string;
2939
+
2940
+ /**
2941
+ * Frequency of the loyalty rule
2942
+ */
2943
+ frequency: string;
2944
+
2945
+ /**
2946
+ * Name of the loyalty rule
2947
+ */
2948
+ name: string;
2949
+
2950
+ /**
2951
+ * Unique identifier for the organization
2952
+ */
2953
+ organizationId: string;
2954
+
2955
+ /**
2956
+ * Type of the reward
2957
+ */
2958
+ rewardType: 'points' | 'multiplier' | 'badge';
2959
+
2960
+ /**
2961
+ * Start time of the loyalty rule
2962
+ */
2963
+ startTime: string;
2964
+
2965
+ /**
2966
+ * Type of the loyalty rule
2967
+ */
2968
+ type: string;
2969
+
2970
+ /**
2971
+ * Timestamp when the loyalty rule was last updated
2972
+ */
2973
+ updatedAt: string;
2974
+
2975
+ /**
2976
+ * Unique identifier for the website
2977
+ */
2978
+ websiteId: string;
2979
+
2980
+ /**
2981
+ * Optional address of the collection
2982
+ */
2983
+ collectionAddress?: string;
2984
+
2985
+ /**
2986
+ * URL of the media associated with the loyalty rule
2987
+ */
2988
+ mediaUrl?: string | null;
2989
+
2990
+ /**
2991
+ * Optional metadata for the loyalty rule
2992
+ */
2993
+ metadata?: { [key: string]: PreviousData.Metadata };
2994
+ }
2995
+
2996
+ export namespace PreviousData {
2997
+ export interface Metadata {
2998
+ /**
2999
+ * Number of tokens per batch.
3000
+ */
3001
+ batchSize?: number | null;
3002
+
3003
+ /**
3004
+ * Text displayed on the action button.
3005
+ */
3006
+ buttonText?: string | null;
3007
+
3008
+ /**
3009
+ * Flag indicating if commenting is required.
3010
+ */
3011
+ checkComment?: boolean | null;
3012
+
3013
+ /**
3014
+ * Flag indicating if liking the post is required.
3015
+ */
3016
+ checkLike?: boolean | null;
3017
+
3018
+ /**
3019
+ * Flag indicating if reposting is required.
3020
+ */
3021
+ checkRepost?: boolean | null;
3022
+
3023
+ /**
3024
+ * Text to check in the Twitter post, username, or bio.
3025
+ */
3026
+ checkText?: string | null;
3027
+
3028
+ /**
3029
+ * Array of collections associated with the rule.
3030
+ */
3031
+ collection?: Array<Metadata.Collection>;
3032
+
3033
+ /**
3034
+ * Conditions for completing the profile.
3035
+ */
3036
+ completeProfileConditions?: { [key: string]: boolean } | null;
3037
+
3038
+ /**
3039
+ * Object containing details for the call-to-action.
3040
+ */
3041
+ cta?: Metadata.Cta | null;
3042
+
3043
+ /**
3044
+ * API key for custom rewards integration.
3045
+ */
3046
+ customRewardsApiKey?: string;
3047
+
3048
+ /**
3049
+ * Array of Discord servers, channels, and roles to join.
3050
+ */
3051
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
3052
+
3053
+ /**
3054
+ * Array of drip quests required to complete the rule.
3055
+ */
3056
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
3057
+
3058
+ /**
3059
+ * Flag indicating whether joining Discord servers is required.
3060
+ */
3061
+ enableJoinDiscordServers?: boolean | null;
3062
+
3063
+ /**
3064
+ * Flag indicating whether streaks are enabled.
3065
+ */
3066
+ enableStreaks?: boolean | null;
3067
+
3068
+ /**
3069
+ * Flag indicating whether the verified multiplier is enabled.
3070
+ */
3071
+ enableVerifiedMultiplier?: boolean;
3072
+
3073
+ /**
3074
+ * Fill source of the order for the token sale
3075
+ */
3076
+ fillSource?: string;
3077
+
3078
+ /**
3079
+ * Percentage reward given to a user for their first referral.
3080
+ */
3081
+ firstReferralReward?: number | null;
3082
+
3083
+ /**
3084
+ * Flag indicating whether the fill source is included.
3085
+ */
3086
+ hasFillSource?: boolean;
3087
+
3088
+ /**
3089
+ * Indicates if the item has never been sold.
3090
+ */
3091
+ hasNeverSold?: boolean;
3092
+
3093
+ /**
3094
+ * Indicates if the full royalty has been paid for items.
3095
+ */
3096
+ hasPaidFullRoyalty?: boolean;
3097
+
3098
+ /**
3099
+ * Flag indicating if the sale currency is included.
3100
+ */
3101
+ hasSaleCurrency?: boolean;
3102
+
3103
+ /**
3104
+ * Indicates if the user has a verified Twitter account.
3105
+ */
3106
+ hasVerifiedTwitter?: boolean;
3107
+
3108
+ /**
3109
+ * URL of the image associated with the rule.
3110
+ */
3111
+ imageUrl?: string | null;
3112
+
3113
+ /**
3114
+ * If enabled, the first transaction done on the platform will complete this rule
3115
+ */
3116
+ isCheckInOnEveryTxn?: boolean;
3117
+
3118
+ /**
3119
+ * Indicates if the multiplier has been applied to rewards.
3120
+ */
3121
+ isMultiplierApplied?: boolean;
3122
+
3123
+ /**
3124
+ * Flag indicating if the rule is restricted to new users.
3125
+ */
3126
+ isRestrictedToNewUsers?: boolean;
3127
+
3128
+ /**
3129
+ * Flag indicating if rewards are applied retroactively.
3130
+ */
3131
+ isRetroactive?: boolean | null;
3132
+
3133
+ /**
3134
+ * Flag indicating if the token hold multiplier is applied.
3135
+ */
3136
+ isTokenHoldMultiplier?: boolean;
3137
+
3138
+ /**
3139
+ * Optional link associated with the metadata.
3140
+ */
3141
+ link?: string | null;
3142
+
3143
+ /**
3144
+ * Liquidity pool details.
3145
+ */
3146
+ liquidity?: Metadata.Liquidity;
3147
+
3148
+ /**
3149
+ * Maximum quantity constraint for token holding.
3150
+ */
3151
+ maxQty?: number | null;
3152
+
3153
+ /**
3154
+ * Minimum quantity constraint for token holding.
3155
+ */
3156
+ minQty?: number | null;
3157
+
3158
+ /**
3159
+ * Array of loyalty currency IDs used for multipliers.
3160
+ */
3161
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
3162
+
3163
+ /**
3164
+ * Flag indicating whether to include only known users.
3165
+ */
3166
+ onlyKnownUsers?: boolean;
3167
+
3168
+ /**
3169
+ * Flag indicating whether to include only native tokens.
3170
+ */
3171
+ onlyNative?: boolean;
3172
+
3173
+ /**
3174
+ * Flag indicating whether to include only non-listed items.
3175
+ */
3176
+ onlyNonListed?: boolean;
3177
+
3178
+ /**
3179
+ * Indicates if only existing users are rewarded.
3180
+ */
3181
+ onlyRewardExistingUser?: boolean;
3182
+
3183
+ /**
3184
+ * give points for only one token ownership per contract
3185
+ */
3186
+ onlyRewardSingleTokenOwnership?: boolean | null;
3187
+
3188
+ /**
3189
+ * Promotional code associated with the rule.
3190
+ */
3191
+ promoCode?: string;
3192
+
3193
+ /**
3194
+ * URL of the CSV file containing promo codes.
3195
+ */
3196
+ promoCodeCsvUrl?: string;
3197
+
3198
+ /**
3199
+ * Numbers of the promotional code to be generated.
3200
+ */
3201
+ promoCodeLength?: number | null;
3202
+
3203
+ /**
3204
+ * Type of the promotional code.
3205
+ */
3206
+ promoCodeType?: 'code' | 'csv' | 'generate';
3207
+
3208
+ /**
3209
+ * Array defining ranges and corresponding rewards.
3210
+ */
3211
+ range?: Array<Metadata.Range>;
3212
+
3213
+ /**
3214
+ * Object defining referral requirements.
3215
+ */
3216
+ referralRequirements?: Metadata.ReferralRequirements | null;
3217
+
3218
+ /**
3219
+ * Lump sum reward given to a referrer.
3220
+ */
3221
+ referrerReward?: number | null;
3222
+
3223
+ /**
3224
+ * Loyalty currency ID of the referrer reward.
3225
+ */
3226
+ referrerRewardLoyaltyCurrencyId?: string | null;
3227
+
3228
+ /**
3229
+ * Flag indicating if the rule can also reward badges per range.
3230
+ */
3231
+ rewardBadgePerRange?: boolean;
3232
+
3233
+ /**
3234
+ * Flag indicating if the reward is rewarded by batch.
3235
+ */
3236
+ rewardByBatch?: boolean | null;
3237
+
3238
+ /**
3239
+ * Flag indicating if rewards are given per impression.
3240
+ */
3241
+ rewardPerImpression?: boolean | null;
3242
+
3243
+ /**
3244
+ * Flag indicating if the rule should reward based on value of traded tokens
3245
+ * instead of count.
3246
+ */
3247
+ rewardPerValue?: boolean;
3248
+
3249
+ /**
3250
+ * Currency associated with sales.
3251
+ */
3252
+ saleCurrency?: string;
3253
+
3254
+ /**
3255
+ * Percentage reward given for a second-level referral.
3256
+ */
3257
+ secondReferralReward?: number | null;
3258
+
3259
+ /**
3260
+ * Flag indicating if the multiplier is skipped.
3261
+ */
3262
+ skipMultiplier?: boolean | null;
3263
+
3264
+ /**
3265
+ * Object containing details of the associated smart contract.
3266
+ */
3267
+ smartContract?: Metadata.SmartContract;
3268
+
3269
+ /**
3270
+ * Array of snapshot proposals for the rule.
3271
+ */
3272
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
3273
+
3274
+ /**
3275
+ * Social media platform associated with the rule.
3276
+ */
3277
+ socialPlatform?:
3278
+ | 'Custom'
3279
+ | 'Discord'
3280
+ | 'EpicGames'
3281
+ | 'Instagram'
3282
+ | 'Steam'
3283
+ | 'Telegram'
3284
+ | 'TikTok'
3285
+ | 'Twitch'
3286
+ | 'X(Twitter)'
3287
+ | 'YouTube'
3288
+ | 'Google'
3289
+ | null;
3290
+
3291
+ /**
3292
+ * URL of the social platform's logo.
3293
+ */
3294
+ socialPlatformLogo?: string | null;
3295
+
3296
+ /**
3297
+ * Name of the social platform.
3298
+ */
3299
+ socialPlatformName?: string | null;
3300
+
3301
+ /**
3302
+ * ID of the Steam app.
3303
+ */
3304
+ steamAppId?: string | null;
3305
+
3306
+ /**
3307
+ * Array of streak milestones and corresponding rewards.
3308
+ */
3309
+ streakArray?: Array<Metadata.StreakArray> | null;
3310
+
3311
+ /**
3312
+ * Metadata for swap loyalty rules
3313
+ */
3314
+ swap?: Metadata.Swap;
3315
+
3316
+ /**
3317
+ * ID of the Telegram channel.
3318
+ */
3319
+ telegramChannelId?: string | null;
3320
+
3321
+ /**
3322
+ * Time delay in seconds to verify actions.
3323
+ */
3324
+ timeDelayToVerifySeconds?: string | number | null;
3325
+
3326
+ /**
3327
+ * Flag indicating if all contracts are tracked.
3328
+ */
3329
+ trackAllContracts?: boolean | null;
3330
+
3331
+ /**
3332
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
3333
+ * completed once the progress is 100%.
3334
+ */
3335
+ trackProgress?: boolean | null;
3336
+
3337
+ /**
3338
+ * URL of the associated Twitter account.
3339
+ */
3340
+ twitterAccountUrl?: string;
3341
+
3342
+ /**
3343
+ * Hashtag associated with the Twitter post.
3344
+ */
3345
+ twitterHashtag?: string;
3346
+
3347
+ /**
3348
+ * URL of the associated Twitter post.
3349
+ */
3350
+ twitterPostUrl?: string;
3351
+
3352
+ /**
3353
+ * Unique identifier of the Twitter user.
3354
+ */
3355
+ twitterUserId?: string;
3356
+
3357
+ /**
3358
+ * Twitter username of the user.
3359
+ */
3360
+ twitterUsername?: string;
3361
+
3362
+ /**
3363
+ * Minimum length of the verification text.
3364
+ */
3365
+ verificationTextMinimumLength?: number | null;
3366
+
3367
+ /**
3368
+ * Multiplier applied to rewards for verified users.
3369
+ */
3370
+ verifiedMultiplier?: number | null;
3371
+
3372
+ /**
3373
+ * Placeholder text for verification input fields.
3374
+ */
3375
+ verifyPlaceHolderText?: string | null;
3376
+
3377
+ /**
3378
+ * Type of wallet associated with the rule.
3379
+ */
3380
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
3381
+
3382
+ /**
3383
+ * ID of the Youtube channel.
3384
+ */
3385
+ youtubeChannelId?: string | null;
3386
+
3387
+ /**
3388
+ * ID of the Youtube video.
3389
+ */
3390
+ youtubeVideoId?: string | null;
3391
+ }
3392
+
3393
+ export namespace Metadata {
3394
+ export interface Collection {
3395
+ /**
3396
+ * Blockchain address of the collection.
3397
+ */
3398
+ address?: string;
3399
+
3400
+ /**
3401
+ * Multiplier applied to the rewards for this collection.
3402
+ */
3403
+ multiplier?: number;
3404
+
3405
+ /**
3406
+ * Blockchain network of the collection.
3407
+ */
3408
+ network?:
3409
+ | 'abstract'
3410
+ | 'abstractTestnet'
3411
+ | 'apechain'
3412
+ | 'arbitrum'
3413
+ | 'avalanche'
3414
+ | 'avalancheFuji'
3415
+ | 'base'
3416
+ | 'baseSepolia'
3417
+ | 'berachain'
3418
+ | 'berachainArtio'
3419
+ | 'berachainBepolia'
3420
+ | 'binance'
3421
+ | 'bscTestnet'
3422
+ | 'campTestnet'
3423
+ | 'fantom'
3424
+ | 'fantomTestnet'
3425
+ | 'flowMainnet'
3426
+ | 'mainnet'
3427
+ | 'optimism'
3428
+ | 'polygon'
3429
+ | 'polygon_mumbai'
3430
+ | 'skaleNebula'
3431
+ | 'solana'
3432
+ | 'sophon'
3433
+ | 'sophonTestnet'
3434
+ | 'sui'
3435
+ | 'superseed'
3436
+ | 'superseedSepolia'
3437
+ | 'vanar'
3438
+ | 'xai'
3439
+ | 'zksync'
3440
+ | 'coti'
3441
+ | 'cotiTestnet'
3442
+ | 'morph'
3443
+ | 'morphTestnet'
3444
+ | 'morphHolesky'
3445
+ | 'ultra'
3446
+ | 'ultraTestnet'
3447
+ | 'nitrograph'
3448
+ | 'sepolia'
3449
+ | 'optimism_sepolia'
3450
+ | 'arbitrumSepolia'
3451
+ | 'goerli'
3452
+ | 'optimism_goerli'
3453
+ | 'arbitrumGoerli'
3454
+ | 'basecamp';
3455
+ }
3456
+
3457
+ /**
3458
+ * Object containing details for the call-to-action.
3459
+ */
3460
+ export interface Cta {
3461
+ /**
3462
+ * Link for the call-to-action.
3463
+ */
3464
+ href?: string | null;
3465
+
3466
+ /**
3467
+ * Label for the call-to-action.
3468
+ */
3469
+ label?: string | null;
3470
+ }
3471
+
3472
+ export interface DiscordServersToJoin {
3473
+ /**
3474
+ * ID of the Discord server to join.
3475
+ */
3476
+ id?: string;
3477
+
3478
+ /**
3479
+ * Array of Discord channels to join.
3480
+ */
3481
+ channels?: Array<DiscordServersToJoin.Channel>;
3482
+
3483
+ /**
3484
+ * Array of roles to assign in the Discord server.
3485
+ */
3486
+ roles?: Array<DiscordServersToJoin.Role>;
3487
+ }
3488
+
3489
+ export namespace DiscordServersToJoin {
3490
+ export interface Channel {
3491
+ /**
3492
+ * ID of the Discord channel.
3493
+ */
3494
+ id?: string;
3495
+
3496
+ /**
3497
+ * Array of emojis used in the channel.
3498
+ */
3499
+ emojis?: Array<Channel.Emoji>;
3500
+
3501
+ /**
3502
+ * Phrase of text to be present in the discord message
3503
+ */
3504
+ text?: string;
3505
+ }
3506
+
3507
+ export namespace Channel {
3508
+ export interface Emoji {
3509
+ /**
3510
+ * ID of the emoji used in the channel.
3511
+ */
3512
+ id?: string;
3513
+ }
3514
+ }
3515
+
3516
+ export interface Role {
3517
+ /**
3518
+ * ID of the role in the Discord server.
3519
+ */
3520
+ id: string;
3521
+ }
3522
+ }
3523
+
3524
+ export interface DripQuestsToComplete {
3525
+ /**
3526
+ * ID of the drip quest to complete.
3527
+ */
3528
+ id: string;
3529
+ }
3530
+
3531
+ /**
3532
+ * Liquidity pool details.
3533
+ */
3534
+ export interface Liquidity {
3535
+ /**
3536
+ * Calculation type of the liquidity pool.
3537
+ */
3538
+ calculationType?: 'fixed' | 'custom';
3539
+
3540
+ /**
3541
+ * Custom function to calculate the the reward amount based on the liquidity
3542
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
3543
+ * USD.
3544
+ */
3545
+ customFunction?: string;
3546
+
3547
+ /**
3548
+ * Liquidity provided per day in USD
3549
+ */
3550
+ liquidityPerDay?: number;
3551
+
3552
+ /**
3553
+ * Blockchain network of the liquidity pool.
3554
+ */
3555
+ network?:
3556
+ | 'abstract'
3557
+ | 'abstractTestnet'
3558
+ | 'apechain'
3559
+ | 'arbitrum'
3560
+ | 'avalanche'
3561
+ | 'avalancheFuji'
3562
+ | 'base'
3563
+ | 'baseSepolia'
3564
+ | 'berachain'
3565
+ | 'berachainArtio'
3566
+ | 'berachainBepolia'
3567
+ | 'binance'
3568
+ | 'bscTestnet'
3569
+ | 'campTestnet'
3570
+ | 'fantom'
3571
+ | 'fantomTestnet'
3572
+ | 'flowMainnet'
3573
+ | 'mainnet'
3574
+ | 'optimism'
3575
+ | 'polygon'
3576
+ | 'polygon_mumbai'
3577
+ | 'skaleNebula'
3578
+ | 'solana'
3579
+ | 'sophon'
3580
+ | 'sophonTestnet'
3581
+ | 'sui'
3582
+ | 'superseed'
3583
+ | 'superseedSepolia'
3584
+ | 'vanar'
3585
+ | 'xai'
3586
+ | 'zksync'
3587
+ | 'coti'
3588
+ | 'cotiTestnet'
3589
+ | 'morph'
3590
+ | 'morphTestnet'
3591
+ | 'morphHolesky'
3592
+ | 'ultra'
3593
+ | 'ultraTestnet'
3594
+ | 'nitrograph'
3595
+ | 'sepolia'
3596
+ | 'optimism_sepolia'
3597
+ | 'arbitrumSepolia'
3598
+ | 'goerli'
3599
+ | 'optimism_goerli'
3600
+ | 'arbitrumGoerli'
3601
+ | 'basecamp';
3602
+
3603
+ /**
3604
+ * Indicates if only in-range liquidity is rewarded.
3605
+ */
3606
+ onlyRewardInRangeLiquidity?: boolean;
3607
+
3608
+ /**
3609
+ * Array of liquidity pools associated with the rule.
3610
+ */
3611
+ pools?: Array<Liquidity.Pool>;
3612
+
3613
+ /**
3614
+ * Protocol of the liquidity pool.
3615
+ */
3616
+ protocol?: string;
3617
+ }
3618
+
3619
+ export namespace Liquidity {
3620
+ export interface Pool {
3621
+ /**
3622
+ * Unique identifier of the liquidity pool.
3623
+ */
3624
+ id: string;
3625
+ }
3626
+ }
3627
+
3628
+ export interface Range {
3629
+ /**
3630
+ * Reward amount for this range.
3631
+ */
3632
+ amount: number;
3633
+
3634
+ /**
3635
+ * End value of the range.
3636
+ */
3637
+ endRange: number;
3638
+
3639
+ /**
3640
+ * Start value of the range.
3641
+ */
3642
+ startRange: number;
3643
+
3644
+ /**
3645
+ * ID of the loyalty badge for this range.
3646
+ */
3647
+ loyaltyBadgeId?: string;
3648
+
3649
+ /**
3650
+ * Amount of the loyalty multiplier for this range.
3651
+ */
3652
+ loyaltyMultiplierAmount?: number;
3653
+ }
3654
+
3655
+ /**
3656
+ * Object defining referral requirements.
3657
+ */
3658
+ export interface ReferralRequirements {
3659
+ /**
3660
+ * Flag indicating if achieving points is required.
3661
+ */
3662
+ achievePoints?: boolean | null;
3663
+
3664
+ /**
3665
+ * Flag indicating if completing the profile is required.
3666
+ */
3667
+ completeProfile?: boolean | null;
3668
+
3669
+ /**
3670
+ * Flag indicating if connecting Discord is required.
3671
+ */
3672
+ connectDiscord?: boolean | null;
3673
+
3674
+ /**
3675
+ * Flag indicating if connecting email is required.
3676
+ */
3677
+ connectEmail?: boolean | null;
3678
+
3679
+ /**
3680
+ * Flag indicating if connecting Twitter is required.
3681
+ */
3682
+ connectTwitter?: boolean | null;
3683
+
3684
+ points?: ReferralRequirements.Points | null;
3685
+ }
3686
+
3687
+ export namespace ReferralRequirements {
3688
+ export interface Points {
3689
+ /**
3690
+ * Points required for referral.
3691
+ */
3692
+ amount?: number | null;
3693
+
3694
+ /**
3695
+ * ID of the loyalty currency for referral.
3696
+ */
3697
+ loyaltyCurrecyId?: string | null;
3698
+ }
3699
+ }
3700
+
3701
+ /**
3702
+ * Object containing details of the associated smart contract.
3703
+ */
3704
+ export interface SmartContract {
3705
+ /**
3706
+ * Mapping of addresses for the smart contract.
3707
+ */
3708
+ addressMapping?: string | null;
3709
+
3710
+ /**
3711
+ * Object containing details of the amount multiplier from the event.
3712
+ */
3713
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
3714
+
3715
+ /**
3716
+ * ID of the smart contract.
3717
+ */
3718
+ contractId?: string | null;
3719
+
3720
+ /**
3721
+ * Criteria to evaluate the smart contract event.
3722
+ */
3723
+ criteria?: 'everyEvent' | 'byParameter' | null;
3724
+
3725
+ /**
3726
+ * Event emitted by the smart contract.
3727
+ */
3728
+ event?: string | null;
3729
+
3730
+ /**
3731
+ * Array of parameters for the smart contract.
3732
+ */
3733
+ params?: Array<SmartContract.Param> | null;
3734
+
3735
+ /**
3736
+ * Type of the smart contract interaction.
3737
+ */
3738
+ type?: 'function' | 'event' | null;
3739
+ }
3740
+
3741
+ export namespace SmartContract {
3742
+ /**
3743
+ * Object containing details of the amount multiplier from the event.
3744
+ */
3745
+ export interface AmountMultiplier {
3746
+ /**
3747
+ * Mapping of the value for the smart contract.
3748
+ */
3749
+ valueMapping?: string | null;
3750
+ }
3751
+
3752
+ export interface Param {
3753
+ /**
3754
+ * Condition to check for the parameter.
3755
+ */
3756
+ condition?: string | null;
3757
+
3758
+ /**
3759
+ * Name of the smart contract parameter.
3760
+ */
3761
+ name?: string | null;
3762
+
3763
+ /**
3764
+ * Value of the parameter.
3765
+ */
3766
+ value?: string | null;
3767
+ }
3768
+ }
3769
+
3770
+ export interface SnapshotProposal {
3771
+ /**
3772
+ * ID of the snapshot proposal.
3773
+ */
3774
+ id: string;
3775
+
3776
+ /**
3777
+ * Space associated with the snapshot proposal.
3778
+ */
3779
+ space: string;
3780
+ }
3781
+
3782
+ export interface StreakArray {
3783
+ /**
3784
+ * Reward amount for achieving the streak milestone.
3785
+ */
3786
+ streakAmount: number;
3787
+
3788
+ /**
3789
+ * Milestone required to achieve the streak.
3790
+ */
3791
+ streakMilestone: number;
3792
+ }
3793
+
3794
+ /**
3795
+ * Metadata for swap loyalty rules
3796
+ */
3797
+ export interface Swap {
3798
+ provider?: 'any' | 'relay' | 'lifi';
3799
+
3800
+ relayReferrerId?: string;
3801
+
3802
+ requireCrossChainSwap?: boolean;
3803
+
3804
+ swappedToChain?: 'any' | number | string;
3805
+
3806
+ swappedToTokens?: Array<Swap.SwappedToToken>;
3807
+
3808
+ tokenMode?: 'any' | 'specific';
3809
+
3810
+ trackTokenAmount?: boolean;
3811
+ }
3812
+
3813
+ export namespace Swap {
3814
+ export interface SwappedToToken {
3815
+ address: string;
3816
+
3817
+ chainId: string;
3818
+ }
3819
+ }
3820
+ }
382
3821
  }
383
3822
  }
384
3823
 
385
- export interface RuleEditRetrieveParams {
3824
+ export interface RuleEditListParams {
386
3825
  /**
387
3826
  * ID of the loyalty rule
388
3827
  */
@@ -391,7 +3830,7 @@ export interface RuleEditRetrieveParams {
391
3830
  /**
392
3831
  * Maximum number of edits to return
393
3832
  */
394
- limit?: number | null;
3833
+ limit?: number;
395
3834
 
396
3835
  /**
397
3836
  * Unique identifier for the organization to filter by
@@ -413,9 +3852,9 @@ export interface RuleEditRestoreParams {}
413
3852
 
414
3853
  export declare namespace RuleEdits {
415
3854
  export {
416
- type RuleEditRetrieveResponse as RuleEditRetrieveResponse,
3855
+ type RuleEditListResponse as RuleEditListResponse,
417
3856
  type RuleEditRestoreResponse as RuleEditRestoreResponse,
418
- type RuleEditRetrieveParams as RuleEditRetrieveParams,
3857
+ type RuleEditListParams as RuleEditListParams,
419
3858
  type RuleEditRestoreParams as RuleEditRestoreParams,
420
3859
  };
421
3860
  }