@snagsolutions/sdk 0.1.0-alpha.10 → 0.1.0-alpha.101

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 +907 -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 +19 -9
  16. package/index.js.map +1 -1
  17. package/index.mjs +20 -10
  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 +2661 -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 +781 -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 +1789 -141
  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 +414 -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 +108 -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 +418 -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 +95 -23
  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 +3686 -63
  302. package/src/resources/loyalty/rule-groups.ts +1195 -0
  303. package/src/resources/loyalty/rules.ts +2932 -420
  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 +676 -0
  307. package/src/resources/loyalty/transactions.ts +3 -0
  308. package/src/resources/loyalty.ts +3 -0
  309. package/src/resources/minting.ts +167 -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 +159 -8
  316. package/src/resources/users/users.ts +586 -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 +179 -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
@@ -3,18 +3,32 @@ import * as Core from "../../core.js";
3
3
  export declare class RuleEdits extends APIResource {
4
4
  /**
5
5
  * Retrieve configured loyalty rule edits with optional pagination and filters
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const ruleEdits = await client.loyalty.ruleEdits.list({
10
+ * loyaltyRuleId: true,
11
+ * });
12
+ * ```
6
13
  */
7
- retrieve(query: RuleEditRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<RuleEditRetrieveResponse>;
14
+ list(query: RuleEditListParams, options?: Core.RequestOptions): Core.APIPromise<RuleEditListResponse>;
8
15
  /**
9
16
  * Restore a loyalty rule from a rule edit
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response = await client.loyalty.ruleEdits.restore(
21
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
22
+ * );
23
+ * ```
10
24
  */
11
25
  restore(id: string, body?: RuleEditRestoreParams | null | undefined, options?: Core.RequestOptions): Core.APIPromise<RuleEditRestoreResponse>;
12
26
  }
13
- export interface RuleEditRetrieveResponse {
14
- data: Array<RuleEditRetrieveResponse.Data>;
27
+ export interface RuleEditListResponse {
28
+ data: Array<RuleEditListResponse.Data>;
15
29
  hasNextPage: boolean;
16
30
  }
17
- export declare namespace RuleEditRetrieveResponse {
31
+ export declare namespace RuleEditListResponse {
18
32
  interface Data {
19
33
  /**
20
34
  * Unique identifier for the rule edit
@@ -78,14 +92,34 @@ export declare namespace RuleEditRetrieveResponse {
78
92
  * Timestamp when the loyalty rule was deleted (if applicable)
79
93
  */
80
94
  deletedAt: string | null;
95
+ /**
96
+ * Description of the loyalty rule
97
+ */
98
+ description: string;
99
+ /**
100
+ * End time of the loyalty rule
101
+ */
102
+ endTime: string;
81
103
  /**
82
104
  * Frequency of the loyalty rule
83
105
  */
84
106
  frequency: string;
107
+ /**
108
+ * Name of the loyalty rule
109
+ */
110
+ name: string;
85
111
  /**
86
112
  * Unique identifier for the organization
87
113
  */
88
114
  organizationId: string;
115
+ /**
116
+ * Type of the reward
117
+ */
118
+ rewardType: 'points' | 'multiplier' | 'badge';
119
+ /**
120
+ * Start time of the loyalty rule
121
+ */
122
+ startTime: string;
89
123
  /**
90
124
  * Type of the loyalty rule
91
125
  */
@@ -102,10 +136,649 @@ export declare namespace RuleEditRetrieveResponse {
102
136
  * Optional address of the collection
103
137
  */
104
138
  collectionAddress?: string;
139
+ /**
140
+ * URL of the media associated with the loyalty rule
141
+ */
142
+ mediaUrl?: string | null;
105
143
  /**
106
144
  * Optional metadata for the loyalty rule
107
145
  */
108
- metadata?: Record<string, unknown>;
146
+ metadata?: {
147
+ [key: string]: Data.Metadata;
148
+ };
149
+ }
150
+ namespace Data {
151
+ interface Metadata {
152
+ /**
153
+ * Number of tokens per batch.
154
+ */
155
+ batchSize?: number | null;
156
+ /**
157
+ * Text displayed on the action button.
158
+ */
159
+ buttonText?: string | null;
160
+ /**
161
+ * Flag indicating if commenting is required.
162
+ */
163
+ checkComment?: boolean | null;
164
+ /**
165
+ * Flag indicating if liking the post is required.
166
+ */
167
+ checkLike?: boolean | null;
168
+ /**
169
+ * Flag indicating if reposting is required.
170
+ */
171
+ checkRepost?: boolean | null;
172
+ /**
173
+ * Text to check in the Twitter post, username, or bio.
174
+ */
175
+ checkText?: string | null;
176
+ /**
177
+ * Array of collections associated with the rule.
178
+ */
179
+ collection?: Array<Metadata.Collection>;
180
+ /**
181
+ * Conditions for completing the profile.
182
+ */
183
+ completeProfileConditions?: {
184
+ [key: string]: boolean;
185
+ } | null;
186
+ /**
187
+ * Object containing details for the call-to-action.
188
+ */
189
+ cta?: Metadata.Cta | null;
190
+ /**
191
+ * API key for custom rewards integration.
192
+ */
193
+ customRewardsApiKey?: string;
194
+ /**
195
+ * Array of Discord servers, channels, and roles to join.
196
+ */
197
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
198
+ /**
199
+ * Array of drip quests required to complete the rule.
200
+ */
201
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
202
+ /**
203
+ * Flag indicating whether joining Discord servers is required.
204
+ */
205
+ enableJoinDiscordServers?: boolean | null;
206
+ /**
207
+ * Flag indicating whether streaks are enabled.
208
+ */
209
+ enableStreaks?: boolean | null;
210
+ /**
211
+ * Flag indicating whether the verified multiplier is enabled.
212
+ */
213
+ enableVerifiedMultiplier?: boolean;
214
+ /**
215
+ * Fill source of the order for the token sale
216
+ */
217
+ fillSource?: string;
218
+ /**
219
+ * Percentage reward given to a user for their first referral.
220
+ */
221
+ firstReferralReward?: number | null;
222
+ /**
223
+ * Flag indicating whether the fill source is included.
224
+ */
225
+ hasFillSource?: boolean;
226
+ /**
227
+ * Indicates if the item has never been sold.
228
+ */
229
+ hasNeverSold?: boolean;
230
+ /**
231
+ * Indicates if the full royalty has been paid for items.
232
+ */
233
+ hasPaidFullRoyalty?: boolean;
234
+ /**
235
+ * Flag indicating if the sale currency is included.
236
+ */
237
+ hasSaleCurrency?: boolean;
238
+ /**
239
+ * Indicates if the user has a verified Twitter account.
240
+ */
241
+ hasVerifiedTwitter?: boolean;
242
+ /**
243
+ * URL of the image associated with the rule.
244
+ */
245
+ imageUrl?: string | null;
246
+ /**
247
+ * If enabled, the first transaction done on the platform will complete this rule
248
+ */
249
+ isCheckInOnEveryTxn?: boolean;
250
+ /**
251
+ * Indicates if the multiplier has been applied to rewards.
252
+ */
253
+ isMultiplierApplied?: boolean;
254
+ /**
255
+ * Flag indicating if the rule is restricted to new users.
256
+ */
257
+ isRestrictedToNewUsers?: boolean;
258
+ /**
259
+ * Flag indicating if rewards are applied retroactively.
260
+ */
261
+ isRetroactive?: boolean | null;
262
+ /**
263
+ * Flag indicating if the token hold multiplier is applied.
264
+ */
265
+ isTokenHoldMultiplier?: boolean;
266
+ /**
267
+ * Optional link associated with the metadata.
268
+ */
269
+ link?: string | null;
270
+ /**
271
+ * Liquidity pool details.
272
+ */
273
+ liquidity?: Metadata.Liquidity;
274
+ /**
275
+ * Maximum quantity constraint for token holding.
276
+ */
277
+ maxQty?: number | null;
278
+ /**
279
+ * Minimum quantity constraint for token holding.
280
+ */
281
+ minQty?: number | null;
282
+ /**
283
+ * Array of loyalty currency IDs used for multipliers.
284
+ */
285
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
286
+ /**
287
+ * Flag indicating whether to include only known users.
288
+ */
289
+ onlyKnownUsers?: boolean;
290
+ /**
291
+ * Flag indicating whether to include only native tokens.
292
+ */
293
+ onlyNative?: boolean;
294
+ /**
295
+ * Flag indicating whether to include only non-listed items.
296
+ */
297
+ onlyNonListed?: boolean;
298
+ /**
299
+ * Indicates if only existing users are rewarded.
300
+ */
301
+ onlyRewardExistingUser?: boolean;
302
+ /**
303
+ * give points for only one token ownership per contract
304
+ */
305
+ onlyRewardSingleTokenOwnership?: boolean | null;
306
+ /**
307
+ * Promotional code associated with the rule.
308
+ */
309
+ promoCode?: string;
310
+ /**
311
+ * URL of the CSV file containing promo codes.
312
+ */
313
+ promoCodeCsvUrl?: string;
314
+ /**
315
+ * Numbers of the promotional code to be generated.
316
+ */
317
+ promoCodeLength?: number | null;
318
+ /**
319
+ * Type of the promotional code.
320
+ */
321
+ promoCodeType?: 'code' | 'csv' | 'generate';
322
+ /**
323
+ * Array defining ranges and corresponding rewards.
324
+ */
325
+ range?: Array<Metadata.Range>;
326
+ /**
327
+ * Object defining referral requirements.
328
+ */
329
+ referralRequirements?: Metadata.ReferralRequirements | null;
330
+ /**
331
+ * Lump sum reward given to a referrer.
332
+ */
333
+ referrerReward?: number | null;
334
+ /**
335
+ * Loyalty currency ID of the referrer reward.
336
+ */
337
+ referrerRewardLoyaltyCurrencyId?: string | null;
338
+ /**
339
+ * Flag indicating if the rule can also reward badges per range.
340
+ */
341
+ rewardBadgePerRange?: boolean;
342
+ /**
343
+ * Flag indicating if the reward is rewarded by batch.
344
+ */
345
+ rewardByBatch?: boolean | null;
346
+ /**
347
+ * Flag indicating if rewards are given per impression.
348
+ */
349
+ rewardPerImpression?: boolean | null;
350
+ /**
351
+ * Flag indicating if the rule should reward based on value of traded tokens
352
+ * instead of count.
353
+ */
354
+ rewardPerValue?: boolean;
355
+ /**
356
+ * Currency associated with sales.
357
+ */
358
+ saleCurrency?: string;
359
+ /**
360
+ * Percentage reward given for a second-level referral.
361
+ */
362
+ secondReferralReward?: number | null;
363
+ /**
364
+ * Flag indicating if the multiplier is skipped.
365
+ */
366
+ skipMultiplier?: boolean | null;
367
+ /**
368
+ * Object containing details of the associated smart contract.
369
+ */
370
+ smartContract?: Metadata.SmartContract;
371
+ /**
372
+ * Array of snapshot proposals for the rule.
373
+ */
374
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
375
+ /**
376
+ * Social media platform associated with the rule.
377
+ */
378
+ socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
379
+ /**
380
+ * URL of the social platform's logo.
381
+ */
382
+ socialPlatformLogo?: string | null;
383
+ /**
384
+ * Name of the social platform.
385
+ */
386
+ socialPlatformName?: string | null;
387
+ /**
388
+ * ID of the Steam app.
389
+ */
390
+ steamAppId?: string | null;
391
+ /**
392
+ * Array of streak milestones and corresponding rewards.
393
+ */
394
+ streakArray?: Array<Metadata.StreakArray> | null;
395
+ /**
396
+ * Metadata for swap loyalty rules
397
+ */
398
+ swap?: Metadata.Swap;
399
+ /**
400
+ * ID of the Telegram channel.
401
+ */
402
+ telegramChannelId?: string | null;
403
+ /**
404
+ * Time delay in seconds to verify actions.
405
+ */
406
+ timeDelayToVerifySeconds?: string | number | null;
407
+ /**
408
+ * Flag indicating if all contracts are tracked.
409
+ */
410
+ trackAllContracts?: boolean | null;
411
+ /**
412
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
413
+ * completed once the progress is 100%.
414
+ */
415
+ trackProgress?: boolean | null;
416
+ /**
417
+ * URL of the associated Twitter account.
418
+ */
419
+ twitterAccountUrl?: string;
420
+ /**
421
+ * Hashtag associated with the Twitter post.
422
+ */
423
+ twitterHashtag?: string;
424
+ /**
425
+ * URL of the associated Twitter post.
426
+ */
427
+ twitterPostUrl?: string;
428
+ /**
429
+ * Unique identifier of the Twitter user.
430
+ */
431
+ twitterUserId?: string;
432
+ /**
433
+ * Twitter username of the user.
434
+ */
435
+ twitterUsername?: string;
436
+ /**
437
+ * Minimum length of the verification text.
438
+ */
439
+ verificationTextMinimumLength?: number | null;
440
+ /**
441
+ * Multiplier applied to rewards for verified users.
442
+ */
443
+ verifiedMultiplier?: number | null;
444
+ /**
445
+ * Placeholder text for verification input fields.
446
+ */
447
+ verifyPlaceHolderText?: string | null;
448
+ /**
449
+ * Type of wallet associated with the rule.
450
+ */
451
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
452
+ /**
453
+ * ID of the Youtube channel.
454
+ */
455
+ youtubeChannelId?: string | null;
456
+ /**
457
+ * ID of the Youtube video.
458
+ */
459
+ youtubeVideoId?: string | null;
460
+ }
461
+ namespace Metadata {
462
+ interface Collection {
463
+ /**
464
+ * Blockchain address of the collection.
465
+ */
466
+ address?: string;
467
+ /**
468
+ * Multiplier applied to the rewards for this collection.
469
+ */
470
+ multiplier?: number;
471
+ /**
472
+ * Blockchain network of the collection.
473
+ */
474
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
475
+ }
476
+ /**
477
+ * Object containing details for the call-to-action.
478
+ */
479
+ interface Cta {
480
+ /**
481
+ * Link for the call-to-action.
482
+ */
483
+ href?: string | null;
484
+ /**
485
+ * Label for the call-to-action.
486
+ */
487
+ label?: string | null;
488
+ }
489
+ interface DiscordServersToJoin {
490
+ /**
491
+ * ID of the Discord server to join.
492
+ */
493
+ id?: string;
494
+ /**
495
+ * Array of Discord channels to join.
496
+ */
497
+ channels?: Array<DiscordServersToJoin.Channel>;
498
+ /**
499
+ * Array of roles to assign in the Discord server.
500
+ */
501
+ roles?: Array<DiscordServersToJoin.Role>;
502
+ }
503
+ namespace DiscordServersToJoin {
504
+ interface Channel {
505
+ /**
506
+ * ID of the Discord channel.
507
+ */
508
+ id?: string;
509
+ /**
510
+ * Array of emojis used in the channel.
511
+ */
512
+ emojis?: Array<Channel.Emoji>;
513
+ /**
514
+ * Phrase of text to be present in the discord message
515
+ */
516
+ text?: string;
517
+ }
518
+ namespace Channel {
519
+ interface Emoji {
520
+ /**
521
+ * ID of the emoji used in the channel.
522
+ */
523
+ id?: string;
524
+ }
525
+ }
526
+ interface Role {
527
+ /**
528
+ * ID of the role in the Discord server.
529
+ */
530
+ id: string;
531
+ }
532
+ }
533
+ interface DripQuestsToComplete {
534
+ /**
535
+ * ID of the drip quest to complete.
536
+ */
537
+ id: string;
538
+ }
539
+ /**
540
+ * Liquidity pool details.
541
+ */
542
+ interface Liquidity {
543
+ /**
544
+ * Calculation type of the liquidity pool.
545
+ */
546
+ calculationType?: 'fixed' | 'custom';
547
+ /**
548
+ * Custom function to calculate the the reward amount based on the liquidity
549
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
550
+ * USD.
551
+ */
552
+ customFunction?: string;
553
+ /**
554
+ * Liquidity provided per day in USD
555
+ */
556
+ liquidityPerDay?: number;
557
+ /**
558
+ * Blockchain network of the liquidity pool.
559
+ */
560
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
561
+ /**
562
+ * Indicates if only in-range liquidity is rewarded.
563
+ */
564
+ onlyRewardInRangeLiquidity?: boolean;
565
+ /**
566
+ * Array of liquidity pools associated with the rule.
567
+ */
568
+ pools?: Array<Liquidity.Pool>;
569
+ /**
570
+ * Protocol of the liquidity pool.
571
+ */
572
+ protocol?: string;
573
+ }
574
+ namespace Liquidity {
575
+ interface Pool {
576
+ /**
577
+ * Unique identifier of the liquidity pool.
578
+ */
579
+ id: string;
580
+ }
581
+ }
582
+ interface Range {
583
+ /**
584
+ * Reward amount for this range.
585
+ */
586
+ amount: number;
587
+ /**
588
+ * End value of the range.
589
+ */
590
+ endRange: number;
591
+ /**
592
+ * Start value of the range.
593
+ */
594
+ startRange: number;
595
+ /**
596
+ * ID of the loyalty badge for this range.
597
+ */
598
+ loyaltyBadgeId?: string;
599
+ /**
600
+ * Amount of the loyalty multiplier for this range.
601
+ */
602
+ loyaltyMultiplierAmount?: number;
603
+ }
604
+ /**
605
+ * Object defining referral requirements.
606
+ */
607
+ interface ReferralRequirements {
608
+ /**
609
+ * Flag indicating if achieving points is required.
610
+ */
611
+ achievePoints?: boolean | null;
612
+ /**
613
+ * Flag indicating if completing the profile is required.
614
+ */
615
+ completeProfile?: boolean | null;
616
+ /**
617
+ * Flag indicating if connecting Discord is required.
618
+ */
619
+ connectDiscord?: boolean | null;
620
+ /**
621
+ * Flag indicating if connecting email is required.
622
+ */
623
+ connectEmail?: boolean | null;
624
+ /**
625
+ * Flag indicating if connecting Twitter is required.
626
+ */
627
+ connectTwitter?: boolean | null;
628
+ points?: ReferralRequirements.Points | null;
629
+ }
630
+ namespace ReferralRequirements {
631
+ interface Points {
632
+ /**
633
+ * Points required for referral.
634
+ */
635
+ amount?: number | null;
636
+ /**
637
+ * ID of the loyalty currency for referral.
638
+ */
639
+ loyaltyCurrecyId?: string | null;
640
+ }
641
+ }
642
+ /**
643
+ * Object containing details of the associated smart contract.
644
+ */
645
+ interface SmartContract {
646
+ /**
647
+ * Mapping of addresses for the smart contract.
648
+ */
649
+ addressMapping?: string | null;
650
+ /**
651
+ * Object containing details of the amount multiplier from the event.
652
+ */
653
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
654
+ /**
655
+ * Array of bonus details applied to the rule.
656
+ */
657
+ bonus?: Array<SmartContract.Bonus> | null;
658
+ /**
659
+ * ID of the smart contract.
660
+ */
661
+ contractId?: string | null;
662
+ /**
663
+ * Criteria to evaluate the smart contract event.
664
+ */
665
+ criteria?: 'everyEvent' | 'byParameter' | null;
666
+ /**
667
+ * Time range applied to the rule.
668
+ */
669
+ customRange?: SmartContract.CustomRange | null;
670
+ /**
671
+ * Event emitted by the smart contract.
672
+ */
673
+ event?: string | null;
674
+ /**
675
+ * Maximum value allowed for the parameter.
676
+ */
677
+ max?: number | null;
678
+ /**
679
+ * Array of parameters for the smart contract.
680
+ */
681
+ params?: Array<SmartContract.Param> | null;
682
+ /**
683
+ * Type of the smart contract interaction.
684
+ */
685
+ type?: 'function' | 'event' | null;
686
+ /**
687
+ * Flag indicating if a bonus is applied.
688
+ */
689
+ withBonus?: boolean | null;
690
+ /**
691
+ * Flag indicating if a custom range is applied.
692
+ */
693
+ withCustomRange?: boolean | null;
694
+ }
695
+ namespace SmartContract {
696
+ /**
697
+ * Object containing details of the amount multiplier from the event.
698
+ */
699
+ interface AmountMultiplier {
700
+ /**
701
+ * Mapping of the value for the smart contract.
702
+ */
703
+ valueMapping?: string | null;
704
+ }
705
+ interface Bonus {
706
+ /**
707
+ * Amount of the bonus.
708
+ */
709
+ amount?: number | null;
710
+ /**
711
+ * Number of times the bonus is applied.
712
+ */
713
+ count?: number | null;
714
+ }
715
+ /**
716
+ * Time range applied to the rule.
717
+ */
718
+ interface CustomRange {
719
+ /**
720
+ * End time of the custom range.
721
+ */
722
+ endsAt?: string | null;
723
+ /**
724
+ * Start time of the custom range.
725
+ */
726
+ startsAt?: string | null;
727
+ }
728
+ interface Param {
729
+ /**
730
+ * Condition to check for the parameter.
731
+ */
732
+ condition?: string | null;
733
+ /**
734
+ * Name of the smart contract parameter.
735
+ */
736
+ name?: string | null;
737
+ /**
738
+ * Value of the parameter.
739
+ */
740
+ value?: string | null;
741
+ }
742
+ }
743
+ interface SnapshotProposal {
744
+ /**
745
+ * ID of the snapshot proposal.
746
+ */
747
+ id: string;
748
+ /**
749
+ * Space associated with the snapshot proposal.
750
+ */
751
+ space: string;
752
+ }
753
+ interface StreakArray {
754
+ /**
755
+ * Reward amount for achieving the streak milestone.
756
+ */
757
+ streakAmount: number;
758
+ /**
759
+ * Milestone required to achieve the streak.
760
+ */
761
+ streakMilestone: number;
762
+ }
763
+ /**
764
+ * Metadata for swap loyalty rules
765
+ */
766
+ interface Swap {
767
+ provider?: 'any' | 'relay' | 'lifi';
768
+ relayReferrerId?: string;
769
+ requireCrossChainSwap?: boolean;
770
+ swappedToChain?: 'any' | number | string;
771
+ swappedToTokens?: Array<Swap.SwappedToToken>;
772
+ tokenMode?: 'any' | 'specific';
773
+ trackTokenAmount?: boolean;
774
+ }
775
+ namespace Swap {
776
+ interface SwappedToToken {
777
+ address: string;
778
+ chainId: string;
779
+ }
780
+ }
781
+ }
109
782
  }
110
783
  /**
111
784
  * Previous data of the rule before the edit
@@ -127,14 +800,34 @@ export declare namespace RuleEditRetrieveResponse {
127
800
  * Timestamp when the loyalty rule was deleted (if applicable)
128
801
  */
129
802
  deletedAt: string | null;
803
+ /**
804
+ * Description of the loyalty rule
805
+ */
806
+ description: string;
807
+ /**
808
+ * End time of the loyalty rule
809
+ */
810
+ endTime: string;
130
811
  /**
131
812
  * Frequency of the loyalty rule
132
813
  */
133
814
  frequency: string;
815
+ /**
816
+ * Name of the loyalty rule
817
+ */
818
+ name: string;
134
819
  /**
135
820
  * Unique identifier for the organization
136
821
  */
137
822
  organizationId: string;
823
+ /**
824
+ * Type of the reward
825
+ */
826
+ rewardType: 'points' | 'multiplier' | 'badge';
827
+ /**
828
+ * Start time of the loyalty rule
829
+ */
830
+ startTime: string;
138
831
  /**
139
832
  * Type of the loyalty rule
140
833
  */
@@ -151,10 +844,649 @@ export declare namespace RuleEditRetrieveResponse {
151
844
  * Optional address of the collection
152
845
  */
153
846
  collectionAddress?: string;
847
+ /**
848
+ * URL of the media associated with the loyalty rule
849
+ */
850
+ mediaUrl?: string | null;
154
851
  /**
155
852
  * Optional metadata for the loyalty rule
156
853
  */
157
- metadata?: Record<string, unknown>;
854
+ metadata?: {
855
+ [key: string]: PreviousData.Metadata;
856
+ };
857
+ }
858
+ namespace PreviousData {
859
+ interface Metadata {
860
+ /**
861
+ * Number of tokens per batch.
862
+ */
863
+ batchSize?: number | null;
864
+ /**
865
+ * Text displayed on the action button.
866
+ */
867
+ buttonText?: string | null;
868
+ /**
869
+ * Flag indicating if commenting is required.
870
+ */
871
+ checkComment?: boolean | null;
872
+ /**
873
+ * Flag indicating if liking the post is required.
874
+ */
875
+ checkLike?: boolean | null;
876
+ /**
877
+ * Flag indicating if reposting is required.
878
+ */
879
+ checkRepost?: boolean | null;
880
+ /**
881
+ * Text to check in the Twitter post, username, or bio.
882
+ */
883
+ checkText?: string | null;
884
+ /**
885
+ * Array of collections associated with the rule.
886
+ */
887
+ collection?: Array<Metadata.Collection>;
888
+ /**
889
+ * Conditions for completing the profile.
890
+ */
891
+ completeProfileConditions?: {
892
+ [key: string]: boolean;
893
+ } | null;
894
+ /**
895
+ * Object containing details for the call-to-action.
896
+ */
897
+ cta?: Metadata.Cta | null;
898
+ /**
899
+ * API key for custom rewards integration.
900
+ */
901
+ customRewardsApiKey?: string;
902
+ /**
903
+ * Array of Discord servers, channels, and roles to join.
904
+ */
905
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
906
+ /**
907
+ * Array of drip quests required to complete the rule.
908
+ */
909
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
910
+ /**
911
+ * Flag indicating whether joining Discord servers is required.
912
+ */
913
+ enableJoinDiscordServers?: boolean | null;
914
+ /**
915
+ * Flag indicating whether streaks are enabled.
916
+ */
917
+ enableStreaks?: boolean | null;
918
+ /**
919
+ * Flag indicating whether the verified multiplier is enabled.
920
+ */
921
+ enableVerifiedMultiplier?: boolean;
922
+ /**
923
+ * Fill source of the order for the token sale
924
+ */
925
+ fillSource?: string;
926
+ /**
927
+ * Percentage reward given to a user for their first referral.
928
+ */
929
+ firstReferralReward?: number | null;
930
+ /**
931
+ * Flag indicating whether the fill source is included.
932
+ */
933
+ hasFillSource?: boolean;
934
+ /**
935
+ * Indicates if the item has never been sold.
936
+ */
937
+ hasNeverSold?: boolean;
938
+ /**
939
+ * Indicates if the full royalty has been paid for items.
940
+ */
941
+ hasPaidFullRoyalty?: boolean;
942
+ /**
943
+ * Flag indicating if the sale currency is included.
944
+ */
945
+ hasSaleCurrency?: boolean;
946
+ /**
947
+ * Indicates if the user has a verified Twitter account.
948
+ */
949
+ hasVerifiedTwitter?: boolean;
950
+ /**
951
+ * URL of the image associated with the rule.
952
+ */
953
+ imageUrl?: string | null;
954
+ /**
955
+ * If enabled, the first transaction done on the platform will complete this rule
956
+ */
957
+ isCheckInOnEveryTxn?: boolean;
958
+ /**
959
+ * Indicates if the multiplier has been applied to rewards.
960
+ */
961
+ isMultiplierApplied?: boolean;
962
+ /**
963
+ * Flag indicating if the rule is restricted to new users.
964
+ */
965
+ isRestrictedToNewUsers?: boolean;
966
+ /**
967
+ * Flag indicating if rewards are applied retroactively.
968
+ */
969
+ isRetroactive?: boolean | null;
970
+ /**
971
+ * Flag indicating if the token hold multiplier is applied.
972
+ */
973
+ isTokenHoldMultiplier?: boolean;
974
+ /**
975
+ * Optional link associated with the metadata.
976
+ */
977
+ link?: string | null;
978
+ /**
979
+ * Liquidity pool details.
980
+ */
981
+ liquidity?: Metadata.Liquidity;
982
+ /**
983
+ * Maximum quantity constraint for token holding.
984
+ */
985
+ maxQty?: number | null;
986
+ /**
987
+ * Minimum quantity constraint for token holding.
988
+ */
989
+ minQty?: number | null;
990
+ /**
991
+ * Array of loyalty currency IDs used for multipliers.
992
+ */
993
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
994
+ /**
995
+ * Flag indicating whether to include only known users.
996
+ */
997
+ onlyKnownUsers?: boolean;
998
+ /**
999
+ * Flag indicating whether to include only native tokens.
1000
+ */
1001
+ onlyNative?: boolean;
1002
+ /**
1003
+ * Flag indicating whether to include only non-listed items.
1004
+ */
1005
+ onlyNonListed?: boolean;
1006
+ /**
1007
+ * Indicates if only existing users are rewarded.
1008
+ */
1009
+ onlyRewardExistingUser?: boolean;
1010
+ /**
1011
+ * give points for only one token ownership per contract
1012
+ */
1013
+ onlyRewardSingleTokenOwnership?: boolean | null;
1014
+ /**
1015
+ * Promotional code associated with the rule.
1016
+ */
1017
+ promoCode?: string;
1018
+ /**
1019
+ * URL of the CSV file containing promo codes.
1020
+ */
1021
+ promoCodeCsvUrl?: string;
1022
+ /**
1023
+ * Numbers of the promotional code to be generated.
1024
+ */
1025
+ promoCodeLength?: number | null;
1026
+ /**
1027
+ * Type of the promotional code.
1028
+ */
1029
+ promoCodeType?: 'code' | 'csv' | 'generate';
1030
+ /**
1031
+ * Array defining ranges and corresponding rewards.
1032
+ */
1033
+ range?: Array<Metadata.Range>;
1034
+ /**
1035
+ * Object defining referral requirements.
1036
+ */
1037
+ referralRequirements?: Metadata.ReferralRequirements | null;
1038
+ /**
1039
+ * Lump sum reward given to a referrer.
1040
+ */
1041
+ referrerReward?: number | null;
1042
+ /**
1043
+ * Loyalty currency ID of the referrer reward.
1044
+ */
1045
+ referrerRewardLoyaltyCurrencyId?: string | null;
1046
+ /**
1047
+ * Flag indicating if the rule can also reward badges per range.
1048
+ */
1049
+ rewardBadgePerRange?: boolean;
1050
+ /**
1051
+ * Flag indicating if the reward is rewarded by batch.
1052
+ */
1053
+ rewardByBatch?: boolean | null;
1054
+ /**
1055
+ * Flag indicating if rewards are given per impression.
1056
+ */
1057
+ rewardPerImpression?: boolean | null;
1058
+ /**
1059
+ * Flag indicating if the rule should reward based on value of traded tokens
1060
+ * instead of count.
1061
+ */
1062
+ rewardPerValue?: boolean;
1063
+ /**
1064
+ * Currency associated with sales.
1065
+ */
1066
+ saleCurrency?: string;
1067
+ /**
1068
+ * Percentage reward given for a second-level referral.
1069
+ */
1070
+ secondReferralReward?: number | null;
1071
+ /**
1072
+ * Flag indicating if the multiplier is skipped.
1073
+ */
1074
+ skipMultiplier?: boolean | null;
1075
+ /**
1076
+ * Object containing details of the associated smart contract.
1077
+ */
1078
+ smartContract?: Metadata.SmartContract;
1079
+ /**
1080
+ * Array of snapshot proposals for the rule.
1081
+ */
1082
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
1083
+ /**
1084
+ * Social media platform associated with the rule.
1085
+ */
1086
+ socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
1087
+ /**
1088
+ * URL of the social platform's logo.
1089
+ */
1090
+ socialPlatformLogo?: string | null;
1091
+ /**
1092
+ * Name of the social platform.
1093
+ */
1094
+ socialPlatformName?: string | null;
1095
+ /**
1096
+ * ID of the Steam app.
1097
+ */
1098
+ steamAppId?: string | null;
1099
+ /**
1100
+ * Array of streak milestones and corresponding rewards.
1101
+ */
1102
+ streakArray?: Array<Metadata.StreakArray> | null;
1103
+ /**
1104
+ * Metadata for swap loyalty rules
1105
+ */
1106
+ swap?: Metadata.Swap;
1107
+ /**
1108
+ * ID of the Telegram channel.
1109
+ */
1110
+ telegramChannelId?: string | null;
1111
+ /**
1112
+ * Time delay in seconds to verify actions.
1113
+ */
1114
+ timeDelayToVerifySeconds?: string | number | null;
1115
+ /**
1116
+ * Flag indicating if all contracts are tracked.
1117
+ */
1118
+ trackAllContracts?: boolean | null;
1119
+ /**
1120
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
1121
+ * completed once the progress is 100%.
1122
+ */
1123
+ trackProgress?: boolean | null;
1124
+ /**
1125
+ * URL of the associated Twitter account.
1126
+ */
1127
+ twitterAccountUrl?: string;
1128
+ /**
1129
+ * Hashtag associated with the Twitter post.
1130
+ */
1131
+ twitterHashtag?: string;
1132
+ /**
1133
+ * URL of the associated Twitter post.
1134
+ */
1135
+ twitterPostUrl?: string;
1136
+ /**
1137
+ * Unique identifier of the Twitter user.
1138
+ */
1139
+ twitterUserId?: string;
1140
+ /**
1141
+ * Twitter username of the user.
1142
+ */
1143
+ twitterUsername?: string;
1144
+ /**
1145
+ * Minimum length of the verification text.
1146
+ */
1147
+ verificationTextMinimumLength?: number | null;
1148
+ /**
1149
+ * Multiplier applied to rewards for verified users.
1150
+ */
1151
+ verifiedMultiplier?: number | null;
1152
+ /**
1153
+ * Placeholder text for verification input fields.
1154
+ */
1155
+ verifyPlaceHolderText?: string | null;
1156
+ /**
1157
+ * Type of wallet associated with the rule.
1158
+ */
1159
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
1160
+ /**
1161
+ * ID of the Youtube channel.
1162
+ */
1163
+ youtubeChannelId?: string | null;
1164
+ /**
1165
+ * ID of the Youtube video.
1166
+ */
1167
+ youtubeVideoId?: string | null;
1168
+ }
1169
+ namespace Metadata {
1170
+ interface Collection {
1171
+ /**
1172
+ * Blockchain address of the collection.
1173
+ */
1174
+ address?: string;
1175
+ /**
1176
+ * Multiplier applied to the rewards for this collection.
1177
+ */
1178
+ multiplier?: number;
1179
+ /**
1180
+ * Blockchain network of the collection.
1181
+ */
1182
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
1183
+ }
1184
+ /**
1185
+ * Object containing details for the call-to-action.
1186
+ */
1187
+ interface Cta {
1188
+ /**
1189
+ * Link for the call-to-action.
1190
+ */
1191
+ href?: string | null;
1192
+ /**
1193
+ * Label for the call-to-action.
1194
+ */
1195
+ label?: string | null;
1196
+ }
1197
+ interface DiscordServersToJoin {
1198
+ /**
1199
+ * ID of the Discord server to join.
1200
+ */
1201
+ id?: string;
1202
+ /**
1203
+ * Array of Discord channels to join.
1204
+ */
1205
+ channels?: Array<DiscordServersToJoin.Channel>;
1206
+ /**
1207
+ * Array of roles to assign in the Discord server.
1208
+ */
1209
+ roles?: Array<DiscordServersToJoin.Role>;
1210
+ }
1211
+ namespace DiscordServersToJoin {
1212
+ interface Channel {
1213
+ /**
1214
+ * ID of the Discord channel.
1215
+ */
1216
+ id?: string;
1217
+ /**
1218
+ * Array of emojis used in the channel.
1219
+ */
1220
+ emojis?: Array<Channel.Emoji>;
1221
+ /**
1222
+ * Phrase of text to be present in the discord message
1223
+ */
1224
+ text?: string;
1225
+ }
1226
+ namespace Channel {
1227
+ interface Emoji {
1228
+ /**
1229
+ * ID of the emoji used in the channel.
1230
+ */
1231
+ id?: string;
1232
+ }
1233
+ }
1234
+ interface Role {
1235
+ /**
1236
+ * ID of the role in the Discord server.
1237
+ */
1238
+ id: string;
1239
+ }
1240
+ }
1241
+ interface DripQuestsToComplete {
1242
+ /**
1243
+ * ID of the drip quest to complete.
1244
+ */
1245
+ id: string;
1246
+ }
1247
+ /**
1248
+ * Liquidity pool details.
1249
+ */
1250
+ interface Liquidity {
1251
+ /**
1252
+ * Calculation type of the liquidity pool.
1253
+ */
1254
+ calculationType?: 'fixed' | 'custom';
1255
+ /**
1256
+ * Custom function to calculate the the reward amount based on the liquidity
1257
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
1258
+ * USD.
1259
+ */
1260
+ customFunction?: string;
1261
+ /**
1262
+ * Liquidity provided per day in USD
1263
+ */
1264
+ liquidityPerDay?: number;
1265
+ /**
1266
+ * Blockchain network of the liquidity pool.
1267
+ */
1268
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
1269
+ /**
1270
+ * Indicates if only in-range liquidity is rewarded.
1271
+ */
1272
+ onlyRewardInRangeLiquidity?: boolean;
1273
+ /**
1274
+ * Array of liquidity pools associated with the rule.
1275
+ */
1276
+ pools?: Array<Liquidity.Pool>;
1277
+ /**
1278
+ * Protocol of the liquidity pool.
1279
+ */
1280
+ protocol?: string;
1281
+ }
1282
+ namespace Liquidity {
1283
+ interface Pool {
1284
+ /**
1285
+ * Unique identifier of the liquidity pool.
1286
+ */
1287
+ id: string;
1288
+ }
1289
+ }
1290
+ interface Range {
1291
+ /**
1292
+ * Reward amount for this range.
1293
+ */
1294
+ amount: number;
1295
+ /**
1296
+ * End value of the range.
1297
+ */
1298
+ endRange: number;
1299
+ /**
1300
+ * Start value of the range.
1301
+ */
1302
+ startRange: number;
1303
+ /**
1304
+ * ID of the loyalty badge for this range.
1305
+ */
1306
+ loyaltyBadgeId?: string;
1307
+ /**
1308
+ * Amount of the loyalty multiplier for this range.
1309
+ */
1310
+ loyaltyMultiplierAmount?: number;
1311
+ }
1312
+ /**
1313
+ * Object defining referral requirements.
1314
+ */
1315
+ interface ReferralRequirements {
1316
+ /**
1317
+ * Flag indicating if achieving points is required.
1318
+ */
1319
+ achievePoints?: boolean | null;
1320
+ /**
1321
+ * Flag indicating if completing the profile is required.
1322
+ */
1323
+ completeProfile?: boolean | null;
1324
+ /**
1325
+ * Flag indicating if connecting Discord is required.
1326
+ */
1327
+ connectDiscord?: boolean | null;
1328
+ /**
1329
+ * Flag indicating if connecting email is required.
1330
+ */
1331
+ connectEmail?: boolean | null;
1332
+ /**
1333
+ * Flag indicating if connecting Twitter is required.
1334
+ */
1335
+ connectTwitter?: boolean | null;
1336
+ points?: ReferralRequirements.Points | null;
1337
+ }
1338
+ namespace ReferralRequirements {
1339
+ interface Points {
1340
+ /**
1341
+ * Points required for referral.
1342
+ */
1343
+ amount?: number | null;
1344
+ /**
1345
+ * ID of the loyalty currency for referral.
1346
+ */
1347
+ loyaltyCurrecyId?: string | null;
1348
+ }
1349
+ }
1350
+ /**
1351
+ * Object containing details of the associated smart contract.
1352
+ */
1353
+ interface SmartContract {
1354
+ /**
1355
+ * Mapping of addresses for the smart contract.
1356
+ */
1357
+ addressMapping?: string | null;
1358
+ /**
1359
+ * Object containing details of the amount multiplier from the event.
1360
+ */
1361
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
1362
+ /**
1363
+ * Array of bonus details applied to the rule.
1364
+ */
1365
+ bonus?: Array<SmartContract.Bonus> | null;
1366
+ /**
1367
+ * ID of the smart contract.
1368
+ */
1369
+ contractId?: string | null;
1370
+ /**
1371
+ * Criteria to evaluate the smart contract event.
1372
+ */
1373
+ criteria?: 'everyEvent' | 'byParameter' | null;
1374
+ /**
1375
+ * Time range applied to the rule.
1376
+ */
1377
+ customRange?: SmartContract.CustomRange | null;
1378
+ /**
1379
+ * Event emitted by the smart contract.
1380
+ */
1381
+ event?: string | null;
1382
+ /**
1383
+ * Maximum value allowed for the parameter.
1384
+ */
1385
+ max?: number | null;
1386
+ /**
1387
+ * Array of parameters for the smart contract.
1388
+ */
1389
+ params?: Array<SmartContract.Param> | null;
1390
+ /**
1391
+ * Type of the smart contract interaction.
1392
+ */
1393
+ type?: 'function' | 'event' | null;
1394
+ /**
1395
+ * Flag indicating if a bonus is applied.
1396
+ */
1397
+ withBonus?: boolean | null;
1398
+ /**
1399
+ * Flag indicating if a custom range is applied.
1400
+ */
1401
+ withCustomRange?: boolean | null;
1402
+ }
1403
+ namespace SmartContract {
1404
+ /**
1405
+ * Object containing details of the amount multiplier from the event.
1406
+ */
1407
+ interface AmountMultiplier {
1408
+ /**
1409
+ * Mapping of the value for the smart contract.
1410
+ */
1411
+ valueMapping?: string | null;
1412
+ }
1413
+ interface Bonus {
1414
+ /**
1415
+ * Amount of the bonus.
1416
+ */
1417
+ amount?: number | null;
1418
+ /**
1419
+ * Number of times the bonus is applied.
1420
+ */
1421
+ count?: number | null;
1422
+ }
1423
+ /**
1424
+ * Time range applied to the rule.
1425
+ */
1426
+ interface CustomRange {
1427
+ /**
1428
+ * End time of the custom range.
1429
+ */
1430
+ endsAt?: string | null;
1431
+ /**
1432
+ * Start time of the custom range.
1433
+ */
1434
+ startsAt?: string | null;
1435
+ }
1436
+ interface Param {
1437
+ /**
1438
+ * Condition to check for the parameter.
1439
+ */
1440
+ condition?: string | null;
1441
+ /**
1442
+ * Name of the smart contract parameter.
1443
+ */
1444
+ name?: string | null;
1445
+ /**
1446
+ * Value of the parameter.
1447
+ */
1448
+ value?: string | null;
1449
+ }
1450
+ }
1451
+ interface SnapshotProposal {
1452
+ /**
1453
+ * ID of the snapshot proposal.
1454
+ */
1455
+ id: string;
1456
+ /**
1457
+ * Space associated with the snapshot proposal.
1458
+ */
1459
+ space: string;
1460
+ }
1461
+ interface StreakArray {
1462
+ /**
1463
+ * Reward amount for achieving the streak milestone.
1464
+ */
1465
+ streakAmount: number;
1466
+ /**
1467
+ * Milestone required to achieve the streak.
1468
+ */
1469
+ streakMilestone: number;
1470
+ }
1471
+ /**
1472
+ * Metadata for swap loyalty rules
1473
+ */
1474
+ interface Swap {
1475
+ provider?: 'any' | 'relay' | 'lifi';
1476
+ relayReferrerId?: string;
1477
+ requireCrossChainSwap?: boolean;
1478
+ swappedToChain?: 'any' | number | string;
1479
+ swappedToTokens?: Array<Swap.SwappedToToken>;
1480
+ tokenMode?: 'any' | 'specific';
1481
+ trackTokenAmount?: boolean;
1482
+ }
1483
+ namespace Swap {
1484
+ interface SwappedToToken {
1485
+ address: string;
1486
+ chainId: string;
1487
+ }
1488
+ }
1489
+ }
158
1490
  }
159
1491
  }
160
1492
  }
@@ -221,14 +1553,34 @@ export declare namespace RuleEditRestoreResponse {
221
1553
  * Timestamp when the loyalty rule was deleted (if applicable)
222
1554
  */
223
1555
  deletedAt: string | null;
1556
+ /**
1557
+ * Description of the loyalty rule
1558
+ */
1559
+ description: string;
1560
+ /**
1561
+ * End time of the loyalty rule
1562
+ */
1563
+ endTime: string;
224
1564
  /**
225
1565
  * Frequency of the loyalty rule
226
1566
  */
227
1567
  frequency: string;
1568
+ /**
1569
+ * Name of the loyalty rule
1570
+ */
1571
+ name: string;
228
1572
  /**
229
1573
  * Unique identifier for the organization
230
1574
  */
231
1575
  organizationId: string;
1576
+ /**
1577
+ * Type of the reward
1578
+ */
1579
+ rewardType: 'points' | 'multiplier' | 'badge';
1580
+ /**
1581
+ * Start time of the loyalty rule
1582
+ */
1583
+ startTime: string;
232
1584
  /**
233
1585
  * Type of the loyalty rule
234
1586
  */
@@ -245,10 +1597,649 @@ export declare namespace RuleEditRestoreResponse {
245
1597
  * Optional address of the collection
246
1598
  */
247
1599
  collectionAddress?: string;
1600
+ /**
1601
+ * URL of the media associated with the loyalty rule
1602
+ */
1603
+ mediaUrl?: string | null;
248
1604
  /**
249
1605
  * Optional metadata for the loyalty rule
250
1606
  */
251
- metadata?: Record<string, unknown>;
1607
+ metadata?: {
1608
+ [key: string]: Data.Metadata;
1609
+ };
1610
+ }
1611
+ namespace Data {
1612
+ interface Metadata {
1613
+ /**
1614
+ * Number of tokens per batch.
1615
+ */
1616
+ batchSize?: number | null;
1617
+ /**
1618
+ * Text displayed on the action button.
1619
+ */
1620
+ buttonText?: string | null;
1621
+ /**
1622
+ * Flag indicating if commenting is required.
1623
+ */
1624
+ checkComment?: boolean | null;
1625
+ /**
1626
+ * Flag indicating if liking the post is required.
1627
+ */
1628
+ checkLike?: boolean | null;
1629
+ /**
1630
+ * Flag indicating if reposting is required.
1631
+ */
1632
+ checkRepost?: boolean | null;
1633
+ /**
1634
+ * Text to check in the Twitter post, username, or bio.
1635
+ */
1636
+ checkText?: string | null;
1637
+ /**
1638
+ * Array of collections associated with the rule.
1639
+ */
1640
+ collection?: Array<Metadata.Collection>;
1641
+ /**
1642
+ * Conditions for completing the profile.
1643
+ */
1644
+ completeProfileConditions?: {
1645
+ [key: string]: boolean;
1646
+ } | null;
1647
+ /**
1648
+ * Object containing details for the call-to-action.
1649
+ */
1650
+ cta?: Metadata.Cta | null;
1651
+ /**
1652
+ * API key for custom rewards integration.
1653
+ */
1654
+ customRewardsApiKey?: string;
1655
+ /**
1656
+ * Array of Discord servers, channels, and roles to join.
1657
+ */
1658
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
1659
+ /**
1660
+ * Array of drip quests required to complete the rule.
1661
+ */
1662
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
1663
+ /**
1664
+ * Flag indicating whether joining Discord servers is required.
1665
+ */
1666
+ enableJoinDiscordServers?: boolean | null;
1667
+ /**
1668
+ * Flag indicating whether streaks are enabled.
1669
+ */
1670
+ enableStreaks?: boolean | null;
1671
+ /**
1672
+ * Flag indicating whether the verified multiplier is enabled.
1673
+ */
1674
+ enableVerifiedMultiplier?: boolean;
1675
+ /**
1676
+ * Fill source of the order for the token sale
1677
+ */
1678
+ fillSource?: string;
1679
+ /**
1680
+ * Percentage reward given to a user for their first referral.
1681
+ */
1682
+ firstReferralReward?: number | null;
1683
+ /**
1684
+ * Flag indicating whether the fill source is included.
1685
+ */
1686
+ hasFillSource?: boolean;
1687
+ /**
1688
+ * Indicates if the item has never been sold.
1689
+ */
1690
+ hasNeverSold?: boolean;
1691
+ /**
1692
+ * Indicates if the full royalty has been paid for items.
1693
+ */
1694
+ hasPaidFullRoyalty?: boolean;
1695
+ /**
1696
+ * Flag indicating if the sale currency is included.
1697
+ */
1698
+ hasSaleCurrency?: boolean;
1699
+ /**
1700
+ * Indicates if the user has a verified Twitter account.
1701
+ */
1702
+ hasVerifiedTwitter?: boolean;
1703
+ /**
1704
+ * URL of the image associated with the rule.
1705
+ */
1706
+ imageUrl?: string | null;
1707
+ /**
1708
+ * If enabled, the first transaction done on the platform will complete this rule
1709
+ */
1710
+ isCheckInOnEveryTxn?: boolean;
1711
+ /**
1712
+ * Indicates if the multiplier has been applied to rewards.
1713
+ */
1714
+ isMultiplierApplied?: boolean;
1715
+ /**
1716
+ * Flag indicating if the rule is restricted to new users.
1717
+ */
1718
+ isRestrictedToNewUsers?: boolean;
1719
+ /**
1720
+ * Flag indicating if rewards are applied retroactively.
1721
+ */
1722
+ isRetroactive?: boolean | null;
1723
+ /**
1724
+ * Flag indicating if the token hold multiplier is applied.
1725
+ */
1726
+ isTokenHoldMultiplier?: boolean;
1727
+ /**
1728
+ * Optional link associated with the metadata.
1729
+ */
1730
+ link?: string | null;
1731
+ /**
1732
+ * Liquidity pool details.
1733
+ */
1734
+ liquidity?: Metadata.Liquidity;
1735
+ /**
1736
+ * Maximum quantity constraint for token holding.
1737
+ */
1738
+ maxQty?: number | null;
1739
+ /**
1740
+ * Minimum quantity constraint for token holding.
1741
+ */
1742
+ minQty?: number | null;
1743
+ /**
1744
+ * Array of loyalty currency IDs used for multipliers.
1745
+ */
1746
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
1747
+ /**
1748
+ * Flag indicating whether to include only known users.
1749
+ */
1750
+ onlyKnownUsers?: boolean;
1751
+ /**
1752
+ * Flag indicating whether to include only native tokens.
1753
+ */
1754
+ onlyNative?: boolean;
1755
+ /**
1756
+ * Flag indicating whether to include only non-listed items.
1757
+ */
1758
+ onlyNonListed?: boolean;
1759
+ /**
1760
+ * Indicates if only existing users are rewarded.
1761
+ */
1762
+ onlyRewardExistingUser?: boolean;
1763
+ /**
1764
+ * give points for only one token ownership per contract
1765
+ */
1766
+ onlyRewardSingleTokenOwnership?: boolean | null;
1767
+ /**
1768
+ * Promotional code associated with the rule.
1769
+ */
1770
+ promoCode?: string;
1771
+ /**
1772
+ * URL of the CSV file containing promo codes.
1773
+ */
1774
+ promoCodeCsvUrl?: string;
1775
+ /**
1776
+ * Numbers of the promotional code to be generated.
1777
+ */
1778
+ promoCodeLength?: number | null;
1779
+ /**
1780
+ * Type of the promotional code.
1781
+ */
1782
+ promoCodeType?: 'code' | 'csv' | 'generate';
1783
+ /**
1784
+ * Array defining ranges and corresponding rewards.
1785
+ */
1786
+ range?: Array<Metadata.Range>;
1787
+ /**
1788
+ * Object defining referral requirements.
1789
+ */
1790
+ referralRequirements?: Metadata.ReferralRequirements | null;
1791
+ /**
1792
+ * Lump sum reward given to a referrer.
1793
+ */
1794
+ referrerReward?: number | null;
1795
+ /**
1796
+ * Loyalty currency ID of the referrer reward.
1797
+ */
1798
+ referrerRewardLoyaltyCurrencyId?: string | null;
1799
+ /**
1800
+ * Flag indicating if the rule can also reward badges per range.
1801
+ */
1802
+ rewardBadgePerRange?: boolean;
1803
+ /**
1804
+ * Flag indicating if the reward is rewarded by batch.
1805
+ */
1806
+ rewardByBatch?: boolean | null;
1807
+ /**
1808
+ * Flag indicating if rewards are given per impression.
1809
+ */
1810
+ rewardPerImpression?: boolean | null;
1811
+ /**
1812
+ * Flag indicating if the rule should reward based on value of traded tokens
1813
+ * instead of count.
1814
+ */
1815
+ rewardPerValue?: boolean;
1816
+ /**
1817
+ * Currency associated with sales.
1818
+ */
1819
+ saleCurrency?: string;
1820
+ /**
1821
+ * Percentage reward given for a second-level referral.
1822
+ */
1823
+ secondReferralReward?: number | null;
1824
+ /**
1825
+ * Flag indicating if the multiplier is skipped.
1826
+ */
1827
+ skipMultiplier?: boolean | null;
1828
+ /**
1829
+ * Object containing details of the associated smart contract.
1830
+ */
1831
+ smartContract?: Metadata.SmartContract;
1832
+ /**
1833
+ * Array of snapshot proposals for the rule.
1834
+ */
1835
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
1836
+ /**
1837
+ * Social media platform associated with the rule.
1838
+ */
1839
+ socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
1840
+ /**
1841
+ * URL of the social platform's logo.
1842
+ */
1843
+ socialPlatformLogo?: string | null;
1844
+ /**
1845
+ * Name of the social platform.
1846
+ */
1847
+ socialPlatformName?: string | null;
1848
+ /**
1849
+ * ID of the Steam app.
1850
+ */
1851
+ steamAppId?: string | null;
1852
+ /**
1853
+ * Array of streak milestones and corresponding rewards.
1854
+ */
1855
+ streakArray?: Array<Metadata.StreakArray> | null;
1856
+ /**
1857
+ * Metadata for swap loyalty rules
1858
+ */
1859
+ swap?: Metadata.Swap;
1860
+ /**
1861
+ * ID of the Telegram channel.
1862
+ */
1863
+ telegramChannelId?: string | null;
1864
+ /**
1865
+ * Time delay in seconds to verify actions.
1866
+ */
1867
+ timeDelayToVerifySeconds?: string | number | null;
1868
+ /**
1869
+ * Flag indicating if all contracts are tracked.
1870
+ */
1871
+ trackAllContracts?: boolean | null;
1872
+ /**
1873
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
1874
+ * completed once the progress is 100%.
1875
+ */
1876
+ trackProgress?: boolean | null;
1877
+ /**
1878
+ * URL of the associated Twitter account.
1879
+ */
1880
+ twitterAccountUrl?: string;
1881
+ /**
1882
+ * Hashtag associated with the Twitter post.
1883
+ */
1884
+ twitterHashtag?: string;
1885
+ /**
1886
+ * URL of the associated Twitter post.
1887
+ */
1888
+ twitterPostUrl?: string;
1889
+ /**
1890
+ * Unique identifier of the Twitter user.
1891
+ */
1892
+ twitterUserId?: string;
1893
+ /**
1894
+ * Twitter username of the user.
1895
+ */
1896
+ twitterUsername?: string;
1897
+ /**
1898
+ * Minimum length of the verification text.
1899
+ */
1900
+ verificationTextMinimumLength?: number | null;
1901
+ /**
1902
+ * Multiplier applied to rewards for verified users.
1903
+ */
1904
+ verifiedMultiplier?: number | null;
1905
+ /**
1906
+ * Placeholder text for verification input fields.
1907
+ */
1908
+ verifyPlaceHolderText?: string | null;
1909
+ /**
1910
+ * Type of wallet associated with the rule.
1911
+ */
1912
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
1913
+ /**
1914
+ * ID of the Youtube channel.
1915
+ */
1916
+ youtubeChannelId?: string | null;
1917
+ /**
1918
+ * ID of the Youtube video.
1919
+ */
1920
+ youtubeVideoId?: string | null;
1921
+ }
1922
+ namespace Metadata {
1923
+ interface Collection {
1924
+ /**
1925
+ * Blockchain address of the collection.
1926
+ */
1927
+ address?: string;
1928
+ /**
1929
+ * Multiplier applied to the rewards for this collection.
1930
+ */
1931
+ multiplier?: number;
1932
+ /**
1933
+ * Blockchain network of the collection.
1934
+ */
1935
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
1936
+ }
1937
+ /**
1938
+ * Object containing details for the call-to-action.
1939
+ */
1940
+ interface Cta {
1941
+ /**
1942
+ * Link for the call-to-action.
1943
+ */
1944
+ href?: string | null;
1945
+ /**
1946
+ * Label for the call-to-action.
1947
+ */
1948
+ label?: string | null;
1949
+ }
1950
+ interface DiscordServersToJoin {
1951
+ /**
1952
+ * ID of the Discord server to join.
1953
+ */
1954
+ id?: string;
1955
+ /**
1956
+ * Array of Discord channels to join.
1957
+ */
1958
+ channels?: Array<DiscordServersToJoin.Channel>;
1959
+ /**
1960
+ * Array of roles to assign in the Discord server.
1961
+ */
1962
+ roles?: Array<DiscordServersToJoin.Role>;
1963
+ }
1964
+ namespace DiscordServersToJoin {
1965
+ interface Channel {
1966
+ /**
1967
+ * ID of the Discord channel.
1968
+ */
1969
+ id?: string;
1970
+ /**
1971
+ * Array of emojis used in the channel.
1972
+ */
1973
+ emojis?: Array<Channel.Emoji>;
1974
+ /**
1975
+ * Phrase of text to be present in the discord message
1976
+ */
1977
+ text?: string;
1978
+ }
1979
+ namespace Channel {
1980
+ interface Emoji {
1981
+ /**
1982
+ * ID of the emoji used in the channel.
1983
+ */
1984
+ id?: string;
1985
+ }
1986
+ }
1987
+ interface Role {
1988
+ /**
1989
+ * ID of the role in the Discord server.
1990
+ */
1991
+ id: string;
1992
+ }
1993
+ }
1994
+ interface DripQuestsToComplete {
1995
+ /**
1996
+ * ID of the drip quest to complete.
1997
+ */
1998
+ id: string;
1999
+ }
2000
+ /**
2001
+ * Liquidity pool details.
2002
+ */
2003
+ interface Liquidity {
2004
+ /**
2005
+ * Calculation type of the liquidity pool.
2006
+ */
2007
+ calculationType?: 'fixed' | 'custom';
2008
+ /**
2009
+ * Custom function to calculate the the reward amount based on the liquidity
2010
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
2011
+ * USD.
2012
+ */
2013
+ customFunction?: string;
2014
+ /**
2015
+ * Liquidity provided per day in USD
2016
+ */
2017
+ liquidityPerDay?: number;
2018
+ /**
2019
+ * Blockchain network of the liquidity pool.
2020
+ */
2021
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
2022
+ /**
2023
+ * Indicates if only in-range liquidity is rewarded.
2024
+ */
2025
+ onlyRewardInRangeLiquidity?: boolean;
2026
+ /**
2027
+ * Array of liquidity pools associated with the rule.
2028
+ */
2029
+ pools?: Array<Liquidity.Pool>;
2030
+ /**
2031
+ * Protocol of the liquidity pool.
2032
+ */
2033
+ protocol?: string;
2034
+ }
2035
+ namespace Liquidity {
2036
+ interface Pool {
2037
+ /**
2038
+ * Unique identifier of the liquidity pool.
2039
+ */
2040
+ id: string;
2041
+ }
2042
+ }
2043
+ interface Range {
2044
+ /**
2045
+ * Reward amount for this range.
2046
+ */
2047
+ amount: number;
2048
+ /**
2049
+ * End value of the range.
2050
+ */
2051
+ endRange: number;
2052
+ /**
2053
+ * Start value of the range.
2054
+ */
2055
+ startRange: number;
2056
+ /**
2057
+ * ID of the loyalty badge for this range.
2058
+ */
2059
+ loyaltyBadgeId?: string;
2060
+ /**
2061
+ * Amount of the loyalty multiplier for this range.
2062
+ */
2063
+ loyaltyMultiplierAmount?: number;
2064
+ }
2065
+ /**
2066
+ * Object defining referral requirements.
2067
+ */
2068
+ interface ReferralRequirements {
2069
+ /**
2070
+ * Flag indicating if achieving points is required.
2071
+ */
2072
+ achievePoints?: boolean | null;
2073
+ /**
2074
+ * Flag indicating if completing the profile is required.
2075
+ */
2076
+ completeProfile?: boolean | null;
2077
+ /**
2078
+ * Flag indicating if connecting Discord is required.
2079
+ */
2080
+ connectDiscord?: boolean | null;
2081
+ /**
2082
+ * Flag indicating if connecting email is required.
2083
+ */
2084
+ connectEmail?: boolean | null;
2085
+ /**
2086
+ * Flag indicating if connecting Twitter is required.
2087
+ */
2088
+ connectTwitter?: boolean | null;
2089
+ points?: ReferralRequirements.Points | null;
2090
+ }
2091
+ namespace ReferralRequirements {
2092
+ interface Points {
2093
+ /**
2094
+ * Points required for referral.
2095
+ */
2096
+ amount?: number | null;
2097
+ /**
2098
+ * ID of the loyalty currency for referral.
2099
+ */
2100
+ loyaltyCurrecyId?: string | null;
2101
+ }
2102
+ }
2103
+ /**
2104
+ * Object containing details of the associated smart contract.
2105
+ */
2106
+ interface SmartContract {
2107
+ /**
2108
+ * Mapping of addresses for the smart contract.
2109
+ */
2110
+ addressMapping?: string | null;
2111
+ /**
2112
+ * Object containing details of the amount multiplier from the event.
2113
+ */
2114
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
2115
+ /**
2116
+ * Array of bonus details applied to the rule.
2117
+ */
2118
+ bonus?: Array<SmartContract.Bonus> | null;
2119
+ /**
2120
+ * ID of the smart contract.
2121
+ */
2122
+ contractId?: string | null;
2123
+ /**
2124
+ * Criteria to evaluate the smart contract event.
2125
+ */
2126
+ criteria?: 'everyEvent' | 'byParameter' | null;
2127
+ /**
2128
+ * Time range applied to the rule.
2129
+ */
2130
+ customRange?: SmartContract.CustomRange | null;
2131
+ /**
2132
+ * Event emitted by the smart contract.
2133
+ */
2134
+ event?: string | null;
2135
+ /**
2136
+ * Maximum value allowed for the parameter.
2137
+ */
2138
+ max?: number | null;
2139
+ /**
2140
+ * Array of parameters for the smart contract.
2141
+ */
2142
+ params?: Array<SmartContract.Param> | null;
2143
+ /**
2144
+ * Type of the smart contract interaction.
2145
+ */
2146
+ type?: 'function' | 'event' | null;
2147
+ /**
2148
+ * Flag indicating if a bonus is applied.
2149
+ */
2150
+ withBonus?: boolean | null;
2151
+ /**
2152
+ * Flag indicating if a custom range is applied.
2153
+ */
2154
+ withCustomRange?: boolean | null;
2155
+ }
2156
+ namespace SmartContract {
2157
+ /**
2158
+ * Object containing details of the amount multiplier from the event.
2159
+ */
2160
+ interface AmountMultiplier {
2161
+ /**
2162
+ * Mapping of the value for the smart contract.
2163
+ */
2164
+ valueMapping?: string | null;
2165
+ }
2166
+ interface Bonus {
2167
+ /**
2168
+ * Amount of the bonus.
2169
+ */
2170
+ amount?: number | null;
2171
+ /**
2172
+ * Number of times the bonus is applied.
2173
+ */
2174
+ count?: number | null;
2175
+ }
2176
+ /**
2177
+ * Time range applied to the rule.
2178
+ */
2179
+ interface CustomRange {
2180
+ /**
2181
+ * End time of the custom range.
2182
+ */
2183
+ endsAt?: string | null;
2184
+ /**
2185
+ * Start time of the custom range.
2186
+ */
2187
+ startsAt?: string | null;
2188
+ }
2189
+ interface Param {
2190
+ /**
2191
+ * Condition to check for the parameter.
2192
+ */
2193
+ condition?: string | null;
2194
+ /**
2195
+ * Name of the smart contract parameter.
2196
+ */
2197
+ name?: string | null;
2198
+ /**
2199
+ * Value of the parameter.
2200
+ */
2201
+ value?: string | null;
2202
+ }
2203
+ }
2204
+ interface SnapshotProposal {
2205
+ /**
2206
+ * ID of the snapshot proposal.
2207
+ */
2208
+ id: string;
2209
+ /**
2210
+ * Space associated with the snapshot proposal.
2211
+ */
2212
+ space: string;
2213
+ }
2214
+ interface StreakArray {
2215
+ /**
2216
+ * Reward amount for achieving the streak milestone.
2217
+ */
2218
+ streakAmount: number;
2219
+ /**
2220
+ * Milestone required to achieve the streak.
2221
+ */
2222
+ streakMilestone: number;
2223
+ }
2224
+ /**
2225
+ * Metadata for swap loyalty rules
2226
+ */
2227
+ interface Swap {
2228
+ provider?: 'any' | 'relay' | 'lifi';
2229
+ relayReferrerId?: string;
2230
+ requireCrossChainSwap?: boolean;
2231
+ swappedToChain?: 'any' | number | string;
2232
+ swappedToTokens?: Array<Swap.SwappedToToken>;
2233
+ tokenMode?: 'any' | 'specific';
2234
+ trackTokenAmount?: boolean;
2235
+ }
2236
+ namespace Swap {
2237
+ interface SwappedToToken {
2238
+ address: string;
2239
+ chainId: string;
2240
+ }
2241
+ }
2242
+ }
252
2243
  }
253
2244
  /**
254
2245
  * Previous data of the rule before the edit
@@ -270,14 +2261,34 @@ export declare namespace RuleEditRestoreResponse {
270
2261
  * Timestamp when the loyalty rule was deleted (if applicable)
271
2262
  */
272
2263
  deletedAt: string | null;
2264
+ /**
2265
+ * Description of the loyalty rule
2266
+ */
2267
+ description: string;
2268
+ /**
2269
+ * End time of the loyalty rule
2270
+ */
2271
+ endTime: string;
273
2272
  /**
274
2273
  * Frequency of the loyalty rule
275
2274
  */
276
2275
  frequency: string;
2276
+ /**
2277
+ * Name of the loyalty rule
2278
+ */
2279
+ name: string;
277
2280
  /**
278
2281
  * Unique identifier for the organization
279
2282
  */
280
2283
  organizationId: string;
2284
+ /**
2285
+ * Type of the reward
2286
+ */
2287
+ rewardType: 'points' | 'multiplier' | 'badge';
2288
+ /**
2289
+ * Start time of the loyalty rule
2290
+ */
2291
+ startTime: string;
281
2292
  /**
282
2293
  * Type of the loyalty rule
283
2294
  */
@@ -294,13 +2305,652 @@ export declare namespace RuleEditRestoreResponse {
294
2305
  * Optional address of the collection
295
2306
  */
296
2307
  collectionAddress?: string;
2308
+ /**
2309
+ * URL of the media associated with the loyalty rule
2310
+ */
2311
+ mediaUrl?: string | null;
297
2312
  /**
298
2313
  * Optional metadata for the loyalty rule
299
2314
  */
300
- metadata?: Record<string, unknown>;
2315
+ metadata?: {
2316
+ [key: string]: PreviousData.Metadata;
2317
+ };
2318
+ }
2319
+ namespace PreviousData {
2320
+ interface Metadata {
2321
+ /**
2322
+ * Number of tokens per batch.
2323
+ */
2324
+ batchSize?: number | null;
2325
+ /**
2326
+ * Text displayed on the action button.
2327
+ */
2328
+ buttonText?: string | null;
2329
+ /**
2330
+ * Flag indicating if commenting is required.
2331
+ */
2332
+ checkComment?: boolean | null;
2333
+ /**
2334
+ * Flag indicating if liking the post is required.
2335
+ */
2336
+ checkLike?: boolean | null;
2337
+ /**
2338
+ * Flag indicating if reposting is required.
2339
+ */
2340
+ checkRepost?: boolean | null;
2341
+ /**
2342
+ * Text to check in the Twitter post, username, or bio.
2343
+ */
2344
+ checkText?: string | null;
2345
+ /**
2346
+ * Array of collections associated with the rule.
2347
+ */
2348
+ collection?: Array<Metadata.Collection>;
2349
+ /**
2350
+ * Conditions for completing the profile.
2351
+ */
2352
+ completeProfileConditions?: {
2353
+ [key: string]: boolean;
2354
+ } | null;
2355
+ /**
2356
+ * Object containing details for the call-to-action.
2357
+ */
2358
+ cta?: Metadata.Cta | null;
2359
+ /**
2360
+ * API key for custom rewards integration.
2361
+ */
2362
+ customRewardsApiKey?: string;
2363
+ /**
2364
+ * Array of Discord servers, channels, and roles to join.
2365
+ */
2366
+ discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
2367
+ /**
2368
+ * Array of drip quests required to complete the rule.
2369
+ */
2370
+ dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
2371
+ /**
2372
+ * Flag indicating whether joining Discord servers is required.
2373
+ */
2374
+ enableJoinDiscordServers?: boolean | null;
2375
+ /**
2376
+ * Flag indicating whether streaks are enabled.
2377
+ */
2378
+ enableStreaks?: boolean | null;
2379
+ /**
2380
+ * Flag indicating whether the verified multiplier is enabled.
2381
+ */
2382
+ enableVerifiedMultiplier?: boolean;
2383
+ /**
2384
+ * Fill source of the order for the token sale
2385
+ */
2386
+ fillSource?: string;
2387
+ /**
2388
+ * Percentage reward given to a user for their first referral.
2389
+ */
2390
+ firstReferralReward?: number | null;
2391
+ /**
2392
+ * Flag indicating whether the fill source is included.
2393
+ */
2394
+ hasFillSource?: boolean;
2395
+ /**
2396
+ * Indicates if the item has never been sold.
2397
+ */
2398
+ hasNeverSold?: boolean;
2399
+ /**
2400
+ * Indicates if the full royalty has been paid for items.
2401
+ */
2402
+ hasPaidFullRoyalty?: boolean;
2403
+ /**
2404
+ * Flag indicating if the sale currency is included.
2405
+ */
2406
+ hasSaleCurrency?: boolean;
2407
+ /**
2408
+ * Indicates if the user has a verified Twitter account.
2409
+ */
2410
+ hasVerifiedTwitter?: boolean;
2411
+ /**
2412
+ * URL of the image associated with the rule.
2413
+ */
2414
+ imageUrl?: string | null;
2415
+ /**
2416
+ * If enabled, the first transaction done on the platform will complete this rule
2417
+ */
2418
+ isCheckInOnEveryTxn?: boolean;
2419
+ /**
2420
+ * Indicates if the multiplier has been applied to rewards.
2421
+ */
2422
+ isMultiplierApplied?: boolean;
2423
+ /**
2424
+ * Flag indicating if the rule is restricted to new users.
2425
+ */
2426
+ isRestrictedToNewUsers?: boolean;
2427
+ /**
2428
+ * Flag indicating if rewards are applied retroactively.
2429
+ */
2430
+ isRetroactive?: boolean | null;
2431
+ /**
2432
+ * Flag indicating if the token hold multiplier is applied.
2433
+ */
2434
+ isTokenHoldMultiplier?: boolean;
2435
+ /**
2436
+ * Optional link associated with the metadata.
2437
+ */
2438
+ link?: string | null;
2439
+ /**
2440
+ * Liquidity pool details.
2441
+ */
2442
+ liquidity?: Metadata.Liquidity;
2443
+ /**
2444
+ * Maximum quantity constraint for token holding.
2445
+ */
2446
+ maxQty?: number | null;
2447
+ /**
2448
+ * Minimum quantity constraint for token holding.
2449
+ */
2450
+ minQty?: number | null;
2451
+ /**
2452
+ * Array of loyalty currency IDs used for multipliers.
2453
+ */
2454
+ multiplierLoyaltyCurrencyIds?: Array<string> | null;
2455
+ /**
2456
+ * Flag indicating whether to include only known users.
2457
+ */
2458
+ onlyKnownUsers?: boolean;
2459
+ /**
2460
+ * Flag indicating whether to include only native tokens.
2461
+ */
2462
+ onlyNative?: boolean;
2463
+ /**
2464
+ * Flag indicating whether to include only non-listed items.
2465
+ */
2466
+ onlyNonListed?: boolean;
2467
+ /**
2468
+ * Indicates if only existing users are rewarded.
2469
+ */
2470
+ onlyRewardExistingUser?: boolean;
2471
+ /**
2472
+ * give points for only one token ownership per contract
2473
+ */
2474
+ onlyRewardSingleTokenOwnership?: boolean | null;
2475
+ /**
2476
+ * Promotional code associated with the rule.
2477
+ */
2478
+ promoCode?: string;
2479
+ /**
2480
+ * URL of the CSV file containing promo codes.
2481
+ */
2482
+ promoCodeCsvUrl?: string;
2483
+ /**
2484
+ * Numbers of the promotional code to be generated.
2485
+ */
2486
+ promoCodeLength?: number | null;
2487
+ /**
2488
+ * Type of the promotional code.
2489
+ */
2490
+ promoCodeType?: 'code' | 'csv' | 'generate';
2491
+ /**
2492
+ * Array defining ranges and corresponding rewards.
2493
+ */
2494
+ range?: Array<Metadata.Range>;
2495
+ /**
2496
+ * Object defining referral requirements.
2497
+ */
2498
+ referralRequirements?: Metadata.ReferralRequirements | null;
2499
+ /**
2500
+ * Lump sum reward given to a referrer.
2501
+ */
2502
+ referrerReward?: number | null;
2503
+ /**
2504
+ * Loyalty currency ID of the referrer reward.
2505
+ */
2506
+ referrerRewardLoyaltyCurrencyId?: string | null;
2507
+ /**
2508
+ * Flag indicating if the rule can also reward badges per range.
2509
+ */
2510
+ rewardBadgePerRange?: boolean;
2511
+ /**
2512
+ * Flag indicating if the reward is rewarded by batch.
2513
+ */
2514
+ rewardByBatch?: boolean | null;
2515
+ /**
2516
+ * Flag indicating if rewards are given per impression.
2517
+ */
2518
+ rewardPerImpression?: boolean | null;
2519
+ /**
2520
+ * Flag indicating if the rule should reward based on value of traded tokens
2521
+ * instead of count.
2522
+ */
2523
+ rewardPerValue?: boolean;
2524
+ /**
2525
+ * Currency associated with sales.
2526
+ */
2527
+ saleCurrency?: string;
2528
+ /**
2529
+ * Percentage reward given for a second-level referral.
2530
+ */
2531
+ secondReferralReward?: number | null;
2532
+ /**
2533
+ * Flag indicating if the multiplier is skipped.
2534
+ */
2535
+ skipMultiplier?: boolean | null;
2536
+ /**
2537
+ * Object containing details of the associated smart contract.
2538
+ */
2539
+ smartContract?: Metadata.SmartContract;
2540
+ /**
2541
+ * Array of snapshot proposals for the rule.
2542
+ */
2543
+ snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
2544
+ /**
2545
+ * Social media platform associated with the rule.
2546
+ */
2547
+ socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
2548
+ /**
2549
+ * URL of the social platform's logo.
2550
+ */
2551
+ socialPlatformLogo?: string | null;
2552
+ /**
2553
+ * Name of the social platform.
2554
+ */
2555
+ socialPlatformName?: string | null;
2556
+ /**
2557
+ * ID of the Steam app.
2558
+ */
2559
+ steamAppId?: string | null;
2560
+ /**
2561
+ * Array of streak milestones and corresponding rewards.
2562
+ */
2563
+ streakArray?: Array<Metadata.StreakArray> | null;
2564
+ /**
2565
+ * Metadata for swap loyalty rules
2566
+ */
2567
+ swap?: Metadata.Swap;
2568
+ /**
2569
+ * ID of the Telegram channel.
2570
+ */
2571
+ telegramChannelId?: string | null;
2572
+ /**
2573
+ * Time delay in seconds to verify actions.
2574
+ */
2575
+ timeDelayToVerifySeconds?: string | number | null;
2576
+ /**
2577
+ * Flag indicating if all contracts are tracked.
2578
+ */
2579
+ trackAllContracts?: boolean | null;
2580
+ /**
2581
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
2582
+ * completed once the progress is 100%.
2583
+ */
2584
+ trackProgress?: boolean | null;
2585
+ /**
2586
+ * URL of the associated Twitter account.
2587
+ */
2588
+ twitterAccountUrl?: string;
2589
+ /**
2590
+ * Hashtag associated with the Twitter post.
2591
+ */
2592
+ twitterHashtag?: string;
2593
+ /**
2594
+ * URL of the associated Twitter post.
2595
+ */
2596
+ twitterPostUrl?: string;
2597
+ /**
2598
+ * Unique identifier of the Twitter user.
2599
+ */
2600
+ twitterUserId?: string;
2601
+ /**
2602
+ * Twitter username of the user.
2603
+ */
2604
+ twitterUsername?: string;
2605
+ /**
2606
+ * Minimum length of the verification text.
2607
+ */
2608
+ verificationTextMinimumLength?: number | null;
2609
+ /**
2610
+ * Multiplier applied to rewards for verified users.
2611
+ */
2612
+ verifiedMultiplier?: number | null;
2613
+ /**
2614
+ * Placeholder text for verification input fields.
2615
+ */
2616
+ verifyPlaceHolderText?: string | null;
2617
+ /**
2618
+ * Type of wallet associated with the rule.
2619
+ */
2620
+ walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
2621
+ /**
2622
+ * ID of the Youtube channel.
2623
+ */
2624
+ youtubeChannelId?: string | null;
2625
+ /**
2626
+ * ID of the Youtube video.
2627
+ */
2628
+ youtubeVideoId?: string | null;
2629
+ }
2630
+ namespace Metadata {
2631
+ interface Collection {
2632
+ /**
2633
+ * Blockchain address of the collection.
2634
+ */
2635
+ address?: string;
2636
+ /**
2637
+ * Multiplier applied to the rewards for this collection.
2638
+ */
2639
+ multiplier?: number;
2640
+ /**
2641
+ * Blockchain network of the collection.
2642
+ */
2643
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
2644
+ }
2645
+ /**
2646
+ * Object containing details for the call-to-action.
2647
+ */
2648
+ interface Cta {
2649
+ /**
2650
+ * Link for the call-to-action.
2651
+ */
2652
+ href?: string | null;
2653
+ /**
2654
+ * Label for the call-to-action.
2655
+ */
2656
+ label?: string | null;
2657
+ }
2658
+ interface DiscordServersToJoin {
2659
+ /**
2660
+ * ID of the Discord server to join.
2661
+ */
2662
+ id?: string;
2663
+ /**
2664
+ * Array of Discord channels to join.
2665
+ */
2666
+ channels?: Array<DiscordServersToJoin.Channel>;
2667
+ /**
2668
+ * Array of roles to assign in the Discord server.
2669
+ */
2670
+ roles?: Array<DiscordServersToJoin.Role>;
2671
+ }
2672
+ namespace DiscordServersToJoin {
2673
+ interface Channel {
2674
+ /**
2675
+ * ID of the Discord channel.
2676
+ */
2677
+ id?: string;
2678
+ /**
2679
+ * Array of emojis used in the channel.
2680
+ */
2681
+ emojis?: Array<Channel.Emoji>;
2682
+ /**
2683
+ * Phrase of text to be present in the discord message
2684
+ */
2685
+ text?: string;
2686
+ }
2687
+ namespace Channel {
2688
+ interface Emoji {
2689
+ /**
2690
+ * ID of the emoji used in the channel.
2691
+ */
2692
+ id?: string;
2693
+ }
2694
+ }
2695
+ interface Role {
2696
+ /**
2697
+ * ID of the role in the Discord server.
2698
+ */
2699
+ id: string;
2700
+ }
2701
+ }
2702
+ interface DripQuestsToComplete {
2703
+ /**
2704
+ * ID of the drip quest to complete.
2705
+ */
2706
+ id: string;
2707
+ }
2708
+ /**
2709
+ * Liquidity pool details.
2710
+ */
2711
+ interface Liquidity {
2712
+ /**
2713
+ * Calculation type of the liquidity pool.
2714
+ */
2715
+ calculationType?: 'fixed' | 'custom';
2716
+ /**
2717
+ * Custom function to calculate the the reward amount based on the liquidity
2718
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
2719
+ * USD.
2720
+ */
2721
+ customFunction?: string;
2722
+ /**
2723
+ * Liquidity provided per day in USD
2724
+ */
2725
+ liquidityPerDay?: number;
2726
+ /**
2727
+ * Blockchain network of the liquidity pool.
2728
+ */
2729
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
2730
+ /**
2731
+ * Indicates if only in-range liquidity is rewarded.
2732
+ */
2733
+ onlyRewardInRangeLiquidity?: boolean;
2734
+ /**
2735
+ * Array of liquidity pools associated with the rule.
2736
+ */
2737
+ pools?: Array<Liquidity.Pool>;
2738
+ /**
2739
+ * Protocol of the liquidity pool.
2740
+ */
2741
+ protocol?: string;
2742
+ }
2743
+ namespace Liquidity {
2744
+ interface Pool {
2745
+ /**
2746
+ * Unique identifier of the liquidity pool.
2747
+ */
2748
+ id: string;
2749
+ }
2750
+ }
2751
+ interface Range {
2752
+ /**
2753
+ * Reward amount for this range.
2754
+ */
2755
+ amount: number;
2756
+ /**
2757
+ * End value of the range.
2758
+ */
2759
+ endRange: number;
2760
+ /**
2761
+ * Start value of the range.
2762
+ */
2763
+ startRange: number;
2764
+ /**
2765
+ * ID of the loyalty badge for this range.
2766
+ */
2767
+ loyaltyBadgeId?: string;
2768
+ /**
2769
+ * Amount of the loyalty multiplier for this range.
2770
+ */
2771
+ loyaltyMultiplierAmount?: number;
2772
+ }
2773
+ /**
2774
+ * Object defining referral requirements.
2775
+ */
2776
+ interface ReferralRequirements {
2777
+ /**
2778
+ * Flag indicating if achieving points is required.
2779
+ */
2780
+ achievePoints?: boolean | null;
2781
+ /**
2782
+ * Flag indicating if completing the profile is required.
2783
+ */
2784
+ completeProfile?: boolean | null;
2785
+ /**
2786
+ * Flag indicating if connecting Discord is required.
2787
+ */
2788
+ connectDiscord?: boolean | null;
2789
+ /**
2790
+ * Flag indicating if connecting email is required.
2791
+ */
2792
+ connectEmail?: boolean | null;
2793
+ /**
2794
+ * Flag indicating if connecting Twitter is required.
2795
+ */
2796
+ connectTwitter?: boolean | null;
2797
+ points?: ReferralRequirements.Points | null;
2798
+ }
2799
+ namespace ReferralRequirements {
2800
+ interface Points {
2801
+ /**
2802
+ * Points required for referral.
2803
+ */
2804
+ amount?: number | null;
2805
+ /**
2806
+ * ID of the loyalty currency for referral.
2807
+ */
2808
+ loyaltyCurrecyId?: string | null;
2809
+ }
2810
+ }
2811
+ /**
2812
+ * Object containing details of the associated smart contract.
2813
+ */
2814
+ interface SmartContract {
2815
+ /**
2816
+ * Mapping of addresses for the smart contract.
2817
+ */
2818
+ addressMapping?: string | null;
2819
+ /**
2820
+ * Object containing details of the amount multiplier from the event.
2821
+ */
2822
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
2823
+ /**
2824
+ * Array of bonus details applied to the rule.
2825
+ */
2826
+ bonus?: Array<SmartContract.Bonus> | null;
2827
+ /**
2828
+ * ID of the smart contract.
2829
+ */
2830
+ contractId?: string | null;
2831
+ /**
2832
+ * Criteria to evaluate the smart contract event.
2833
+ */
2834
+ criteria?: 'everyEvent' | 'byParameter' | null;
2835
+ /**
2836
+ * Time range applied to the rule.
2837
+ */
2838
+ customRange?: SmartContract.CustomRange | null;
2839
+ /**
2840
+ * Event emitted by the smart contract.
2841
+ */
2842
+ event?: string | null;
2843
+ /**
2844
+ * Maximum value allowed for the parameter.
2845
+ */
2846
+ max?: number | null;
2847
+ /**
2848
+ * Array of parameters for the smart contract.
2849
+ */
2850
+ params?: Array<SmartContract.Param> | null;
2851
+ /**
2852
+ * Type of the smart contract interaction.
2853
+ */
2854
+ type?: 'function' | 'event' | null;
2855
+ /**
2856
+ * Flag indicating if a bonus is applied.
2857
+ */
2858
+ withBonus?: boolean | null;
2859
+ /**
2860
+ * Flag indicating if a custom range is applied.
2861
+ */
2862
+ withCustomRange?: boolean | null;
2863
+ }
2864
+ namespace SmartContract {
2865
+ /**
2866
+ * Object containing details of the amount multiplier from the event.
2867
+ */
2868
+ interface AmountMultiplier {
2869
+ /**
2870
+ * Mapping of the value for the smart contract.
2871
+ */
2872
+ valueMapping?: string | null;
2873
+ }
2874
+ interface Bonus {
2875
+ /**
2876
+ * Amount of the bonus.
2877
+ */
2878
+ amount?: number | null;
2879
+ /**
2880
+ * Number of times the bonus is applied.
2881
+ */
2882
+ count?: number | null;
2883
+ }
2884
+ /**
2885
+ * Time range applied to the rule.
2886
+ */
2887
+ interface CustomRange {
2888
+ /**
2889
+ * End time of the custom range.
2890
+ */
2891
+ endsAt?: string | null;
2892
+ /**
2893
+ * Start time of the custom range.
2894
+ */
2895
+ startsAt?: string | null;
2896
+ }
2897
+ interface Param {
2898
+ /**
2899
+ * Condition to check for the parameter.
2900
+ */
2901
+ condition?: string | null;
2902
+ /**
2903
+ * Name of the smart contract parameter.
2904
+ */
2905
+ name?: string | null;
2906
+ /**
2907
+ * Value of the parameter.
2908
+ */
2909
+ value?: string | null;
2910
+ }
2911
+ }
2912
+ interface SnapshotProposal {
2913
+ /**
2914
+ * ID of the snapshot proposal.
2915
+ */
2916
+ id: string;
2917
+ /**
2918
+ * Space associated with the snapshot proposal.
2919
+ */
2920
+ space: string;
2921
+ }
2922
+ interface StreakArray {
2923
+ /**
2924
+ * Reward amount for achieving the streak milestone.
2925
+ */
2926
+ streakAmount: number;
2927
+ /**
2928
+ * Milestone required to achieve the streak.
2929
+ */
2930
+ streakMilestone: number;
2931
+ }
2932
+ /**
2933
+ * Metadata for swap loyalty rules
2934
+ */
2935
+ interface Swap {
2936
+ provider?: 'any' | 'relay' | 'lifi';
2937
+ relayReferrerId?: string;
2938
+ requireCrossChainSwap?: boolean;
2939
+ swappedToChain?: 'any' | number | string;
2940
+ swappedToTokens?: Array<Swap.SwappedToToken>;
2941
+ tokenMode?: 'any' | 'specific';
2942
+ trackTokenAmount?: boolean;
2943
+ }
2944
+ namespace Swap {
2945
+ interface SwappedToToken {
2946
+ address: string;
2947
+ chainId: string;
2948
+ }
2949
+ }
2950
+ }
301
2951
  }
302
2952
  }
303
- export interface RuleEditRetrieveParams {
2953
+ export interface RuleEditListParams {
304
2954
  /**
305
2955
  * ID of the loyalty rule
306
2956
  */
@@ -308,7 +2958,7 @@ export interface RuleEditRetrieveParams {
308
2958
  /**
309
2959
  * Maximum number of edits to return
310
2960
  */
311
- limit?: number | null;
2961
+ limit?: number;
312
2962
  /**
313
2963
  * Unique identifier for the organization to filter by
314
2964
  */
@@ -325,6 +2975,6 @@ export interface RuleEditRetrieveParams {
325
2975
  export interface RuleEditRestoreParams {
326
2976
  }
327
2977
  export declare namespace RuleEdits {
328
- export { type RuleEditRetrieveResponse as RuleEditRetrieveResponse, type RuleEditRestoreResponse as RuleEditRestoreResponse, type RuleEditRetrieveParams as RuleEditRetrieveParams, type RuleEditRestoreParams as RuleEditRestoreParams, };
2978
+ export { type RuleEditListResponse as RuleEditListResponse, type RuleEditRestoreResponse as RuleEditRestoreResponse, type RuleEditListParams as RuleEditListParams, type RuleEditRestoreParams as RuleEditRestoreParams, };
329
2979
  }
330
2980
  //# sourceMappingURL=rule-edits.d.ts.map