@snagsolutions/sdk 0.1.0-alpha.23 → 0.1.0-alpha.231

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