@snagsolutions/sdk 0.1.0-alpha.26 → 0.1.0-alpha.260

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 (341) hide show
  1. package/CHANGELOG.md +140 -153
  2. package/LICENSE +1 -1
  3. package/README.md +15 -23
  4. package/core.d.ts +9 -6
  5. package/core.d.ts.map +1 -1
  6. package/core.js +36 -33
  7. package/core.js.map +1 -1
  8. package/core.mjs +36 -33
  9. package/core.mjs.map +1 -1
  10. package/index.d.mts +15 -9
  11. package/index.d.ts +15 -9
  12. package/index.d.ts.map +1 -1
  13. package/index.js +13 -6
  14. package/index.js.map +1 -1
  15. package/index.mjs +14 -7
  16. package/index.mjs.map +1 -1
  17. package/internal/utils/query.d.ts +2 -0
  18. package/internal/utils/query.d.ts.map +1 -0
  19. package/internal/utils/query.js +33 -0
  20. package/internal/utils/query.js.map +1 -0
  21. package/internal/utils/query.mjs +6 -0
  22. package/internal/utils/query.mjs.map +1 -0
  23. package/package.json +4 -5
  24. package/resource.d.ts +1 -1
  25. package/resource.d.ts.map +1 -1
  26. package/resource.js.map +1 -1
  27. package/resource.mjs.map +1 -1
  28. package/resources/assets.d.ts +16 -2
  29. package/resources/assets.d.ts.map +1 -1
  30. package/resources/assets.js +8 -0
  31. package/resources/assets.js.map +1 -1
  32. package/resources/assets.mjs +8 -0
  33. package/resources/assets.mjs.map +1 -1
  34. package/resources/auctions/auctions.d.ts +341 -0
  35. package/resources/auctions/auctions.d.ts.map +1 -0
  36. package/resources/auctions/auctions.js +72 -0
  37. package/resources/auctions/auctions.js.map +1 -0
  38. package/resources/auctions/auctions.mjs +45 -0
  39. package/resources/auctions/auctions.mjs.map +1 -0
  40. package/resources/auctions/index.d.ts +3 -0
  41. package/resources/auctions/index.d.ts.map +1 -0
  42. package/resources/auctions/index.js +9 -0
  43. package/resources/auctions/index.js.map +1 -0
  44. package/resources/auctions/index.mjs +4 -0
  45. package/resources/auctions/index.mjs.map +1 -0
  46. package/resources/auctions/website-user-attributes/index.d.ts +3 -0
  47. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
  48. package/resources/auctions/website-user-attributes/index.js +9 -0
  49. package/resources/auctions/website-user-attributes/index.js.map +1 -0
  50. package/resources/auctions/website-user-attributes/index.mjs +4 -0
  51. package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
  52. package/resources/auctions/website-user-attributes/values.d.ts +126 -0
  53. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
  54. package/resources/auctions/website-user-attributes/values.js +49 -0
  55. package/resources/auctions/website-user-attributes/values.js.map +1 -0
  56. package/resources/auctions/website-user-attributes/values.mjs +45 -0
  57. package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
  58. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -0
  59. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
  60. package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
  61. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
  62. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
  63. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
  64. package/resources/auctions/website-user-attributes.d.ts +2 -0
  65. package/resources/auctions/website-user-attributes.d.ts.map +1 -0
  66. package/resources/auctions/website-user-attributes.js +19 -0
  67. package/resources/auctions/website-user-attributes.js.map +1 -0
  68. package/resources/auctions/website-user-attributes.mjs +3 -0
  69. package/resources/auctions/website-user-attributes.mjs.map +1 -0
  70. package/resources/auctions.d.ts +1 -133
  71. package/resources/auctions.d.ts.map +1 -1
  72. package/resources/auctions.js +15 -22
  73. package/resources/auctions.js.map +1 -1
  74. package/resources/auctions.mjs +1 -20
  75. package/resources/auctions.mjs.map +1 -1
  76. package/resources/auth.d.ts +66 -6
  77. package/resources/auth.d.ts.map +1 -1
  78. package/resources/auth.js +6 -0
  79. package/resources/auth.js.map +1 -1
  80. package/resources/auth.mjs +6 -0
  81. package/resources/auth.mjs.map +1 -1
  82. package/resources/index.d.ts +5 -4
  83. package/resources/index.d.ts.map +1 -1
  84. package/resources/index.js +5 -3
  85. package/resources/index.js.map +1 -1
  86. package/resources/index.mjs +4 -3
  87. package/resources/index.mjs.map +1 -1
  88. package/resources/loyalty/account-streaks.d.ts +96 -0
  89. package/resources/loyalty/account-streaks.d.ts.map +1 -0
  90. package/resources/loyalty/account-streaks.js +24 -0
  91. package/resources/loyalty/account-streaks.js.map +1 -0
  92. package/resources/loyalty/account-streaks.mjs +20 -0
  93. package/resources/loyalty/account-streaks.mjs.map +1 -0
  94. package/resources/loyalty/accounts.d.ts +60 -16
  95. package/resources/loyalty/accounts.d.ts.map +1 -1
  96. package/resources/loyalty/accounts.js +14 -0
  97. package/resources/loyalty/accounts.js.map +1 -1
  98. package/resources/loyalty/accounts.mjs +14 -0
  99. package/resources/loyalty/accounts.mjs.map +1 -1
  100. package/resources/loyalty/badges.d.ts +885 -136
  101. package/resources/loyalty/badges.d.ts.map +1 -1
  102. package/resources/loyalty/badges.js +19 -1
  103. package/resources/loyalty/badges.js.map +1 -1
  104. package/resources/loyalty/badges.mjs +19 -1
  105. package/resources/loyalty/badges.mjs.map +1 -1
  106. package/resources/loyalty/currencies.d.ts +19 -0
  107. package/resources/loyalty/currencies.d.ts.map +1 -1
  108. package/resources/loyalty/currencies.js +19 -0
  109. package/resources/loyalty/currencies.js.map +1 -1
  110. package/resources/loyalty/currencies.mjs +19 -0
  111. package/resources/loyalty/currencies.mjs.map +1 -1
  112. package/resources/loyalty/index.d.ts +3 -3
  113. package/resources/loyalty/index.d.ts.map +1 -1
  114. package/resources/loyalty/index.js +5 -5
  115. package/resources/loyalty/index.js.map +1 -1
  116. package/resources/loyalty/index.mjs +2 -2
  117. package/resources/loyalty/index.mjs.map +1 -1
  118. package/resources/loyalty/loyalty.d.ts +9 -9
  119. package/resources/loyalty/loyalty.d.ts.map +1 -1
  120. package/resources/loyalty/loyalty.js +6 -6
  121. package/resources/loyalty/loyalty.js.map +1 -1
  122. package/resources/loyalty/loyalty.mjs +6 -6
  123. package/resources/loyalty/loyalty.mjs.map +1 -1
  124. package/resources/loyalty/multipliers.d.ts +39 -2
  125. package/resources/loyalty/multipliers.d.ts.map +1 -1
  126. package/resources/loyalty/multipliers.js +23 -0
  127. package/resources/loyalty/multipliers.js.map +1 -1
  128. package/resources/loyalty/multipliers.mjs +23 -0
  129. package/resources/loyalty/multipliers.mjs.map +1 -1
  130. package/resources/loyalty/questions-responses.d.ts +55 -4
  131. package/resources/loyalty/questions-responses.d.ts.map +1 -1
  132. package/resources/loyalty/questions-responses.js +9 -0
  133. package/resources/loyalty/questions-responses.js.map +1 -1
  134. package/resources/loyalty/questions-responses.mjs +9 -0
  135. package/resources/loyalty/questions-responses.mjs.map +1 -1
  136. package/resources/loyalty/questions.d.ts +60 -6
  137. package/resources/loyalty/questions.d.ts.map +1 -1
  138. package/resources/loyalty/questions.js +39 -0
  139. package/resources/loyalty/questions.js.map +1 -1
  140. package/resources/loyalty/questions.mjs +39 -0
  141. package/resources/loyalty/questions.mjs.map +1 -1
  142. package/resources/loyalty/rule-edits.d.ts +2898 -8
  143. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  144. package/resources/loyalty/rule-edits.js +14 -0
  145. package/resources/loyalty/rule-edits.js.map +1 -1
  146. package/resources/loyalty/rule-edits.mjs +14 -0
  147. package/resources/loyalty/rule-edits.mjs.map +1 -1
  148. package/resources/loyalty/rule-groups.d.ts +284 -56
  149. package/resources/loyalty/rule-groups.d.ts.map +1 -1
  150. package/resources/loyalty/rule-groups.js +18 -0
  151. package/resources/loyalty/rule-groups.js.map +1 -1
  152. package/resources/loyalty/rule-groups.mjs +18 -0
  153. package/resources/loyalty/rule-groups.mjs.map +1 -1
  154. package/resources/loyalty/rules.d.ts +2368 -346
  155. package/resources/loyalty/rules.d.ts.map +1 -1
  156. package/resources/loyalty/rules.js +40 -9
  157. package/resources/loyalty/rules.js.map +1 -1
  158. package/resources/loyalty/rules.mjs +40 -9
  159. package/resources/loyalty/rules.mjs.map +1 -1
  160. package/resources/loyalty/transactions/index.d.ts +4 -0
  161. package/resources/loyalty/transactions/index.d.ts.map +1 -0
  162. package/resources/loyalty/transactions/index.js +11 -0
  163. package/resources/loyalty/transactions/index.js.map +1 -0
  164. package/resources/loyalty/transactions/index.mjs +5 -0
  165. package/resources/loyalty/transactions/index.mjs.map +1 -0
  166. package/resources/loyalty/transactions/posts.d.ts +145 -0
  167. package/resources/loyalty/transactions/posts.d.ts.map +1 -0
  168. package/resources/loyalty/transactions/posts.js +32 -0
  169. package/resources/loyalty/transactions/posts.js.map +1 -0
  170. package/resources/loyalty/transactions/posts.mjs +28 -0
  171. package/resources/loyalty/transactions/posts.mjs.map +1 -0
  172. package/resources/loyalty/transactions/rule-statuses.d.ts +121 -0
  173. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
  174. package/resources/loyalty/transactions/rule-statuses.js +30 -0
  175. package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
  176. package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
  177. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
  178. package/resources/loyalty/transactions/transactions.d.ts +566 -0
  179. package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
  180. package/resources/loyalty/transactions/transactions.js +110 -0
  181. package/resources/loyalty/transactions/transactions.js.map +1 -0
  182. package/resources/loyalty/transactions/transactions.mjs +83 -0
  183. package/resources/loyalty/transactions/transactions.mjs.map +1 -0
  184. package/resources/loyalty/transactions.d.ts +1 -253
  185. package/resources/loyalty/transactions.d.ts.map +1 -1
  186. package/resources/loyalty/transactions.js +15 -18
  187. package/resources/loyalty/transactions.js.map +1 -1
  188. package/resources/loyalty/transactions.mjs +1 -16
  189. package/resources/loyalty/transactions.mjs.map +1 -1
  190. package/resources/minting/allowlist.d.ts +84 -0
  191. package/resources/minting/allowlist.d.ts.map +1 -0
  192. package/resources/minting/allowlist.js +42 -0
  193. package/resources/minting/allowlist.js.map +1 -0
  194. package/resources/minting/allowlist.mjs +38 -0
  195. package/resources/minting/allowlist.mjs.map +1 -0
  196. package/resources/minting/contracts.d.ts +165 -0
  197. package/resources/minting/contracts.d.ts.map +1 -0
  198. package/resources/minting/contracts.js +30 -0
  199. package/resources/minting/contracts.js.map +1 -0
  200. package/resources/minting/contracts.mjs +26 -0
  201. package/resources/minting/contracts.mjs.map +1 -0
  202. package/resources/minting/index.d.ts +5 -0
  203. package/resources/minting/index.d.ts.map +1 -0
  204. package/resources/minting/index.js +13 -0
  205. package/resources/minting/index.js.map +1 -0
  206. package/resources/minting/index.mjs +6 -0
  207. package/resources/minting/index.mjs.map +1 -0
  208. package/resources/minting/minting.d.ts +146 -0
  209. package/resources/minting/minting.d.ts.map +1 -0
  210. package/resources/minting/minting.js +79 -0
  211. package/resources/minting/minting.js.map +1 -0
  212. package/resources/minting/minting.mjs +52 -0
  213. package/resources/minting/minting.mjs.map +1 -0
  214. package/resources/minting/status.d.ts +44 -0
  215. package/resources/minting/status.d.ts.map +1 -0
  216. package/resources/minting/status.js +33 -0
  217. package/resources/minting/status.js.map +1 -0
  218. package/resources/minting/status.mjs +29 -0
  219. package/resources/minting/status.mjs.map +1 -0
  220. package/resources/minting.d.ts +1 -94
  221. package/resources/minting.d.ts.map +1 -1
  222. package/resources/minting.js +15 -11
  223. package/resources/minting.js.map +1 -1
  224. package/resources/minting.mjs +1 -9
  225. package/resources/minting.mjs.map +1 -1
  226. package/resources/referral/referral.d.ts +12 -3
  227. package/resources/referral/referral.d.ts.map +1 -1
  228. package/resources/referral/referral.js +11 -5
  229. package/resources/referral/referral.js.map +1 -1
  230. package/resources/referral/referral.mjs +11 -5
  231. package/resources/referral/referral.mjs.map +1 -1
  232. package/resources/referral/users.d.ts +30 -3
  233. package/resources/referral/users.d.ts.map +1 -1
  234. package/resources/referral/users.js +12 -4
  235. package/resources/referral/users.js.map +1 -1
  236. package/resources/referral/users.mjs +12 -4
  237. package/resources/referral/users.mjs.map +1 -1
  238. package/resources/token-claims.d.ts +162 -0
  239. package/resources/token-claims.d.ts.map +1 -0
  240. package/resources/token-claims.js +46 -0
  241. package/resources/token-claims.js.map +1 -0
  242. package/resources/token-claims.mjs +42 -0
  243. package/resources/token-claims.mjs.map +1 -0
  244. package/resources/users/index.d.ts +1 -1
  245. package/resources/users/index.d.ts.map +1 -1
  246. package/resources/users/index.js.map +1 -1
  247. package/resources/users/index.mjs.map +1 -1
  248. package/resources/users/metadatas.d.ts +40 -3
  249. package/resources/users/metadatas.d.ts.map +1 -1
  250. package/resources/users/metadatas.js.map +1 -1
  251. package/resources/users/metadatas.mjs.map +1 -1
  252. package/resources/users/users.d.ts +203 -36
  253. package/resources/users/users.d.ts.map +1 -1
  254. package/resources/users/users.js +58 -1
  255. package/resources/users/users.js.map +1 -1
  256. package/resources/users/users.mjs +58 -1
  257. package/resources/users/users.mjs.map +1 -1
  258. package/resources/websites/index.d.ts +1 -1
  259. package/resources/websites/index.d.ts.map +1 -1
  260. package/resources/websites/index.js.map +1 -1
  261. package/resources/websites/index.mjs +1 -1
  262. package/resources/websites/index.mjs.map +1 -1
  263. package/resources/websites/website-collections.d.ts +0 -69
  264. package/resources/websites/website-collections.d.ts.map +1 -1
  265. package/resources/websites/website-collections.js +0 -16
  266. package/resources/websites/website-collections.js.map +1 -1
  267. package/resources/websites/website-collections.mjs +0 -16
  268. package/resources/websites/website-collections.mjs.map +1 -1
  269. package/resources/websites/website-user-roles.d.ts +24 -1
  270. package/resources/websites/website-user-roles.d.ts.map +1 -1
  271. package/resources/websites/website-user-roles.js +23 -0
  272. package/resources/websites/website-user-roles.js.map +1 -1
  273. package/resources/websites/website-user-roles.mjs +23 -0
  274. package/resources/websites/website-user-roles.mjs.map +1 -1
  275. package/resources/websites/websites.d.ts +21 -99
  276. package/resources/websites/websites.d.ts.map +1 -1
  277. package/resources/websites/websites.js +9 -1
  278. package/resources/websites/websites.js.map +1 -1
  279. package/resources/websites/websites.mjs +10 -2
  280. package/resources/websites/websites.mjs.map +1 -1
  281. package/src/core.ts +40 -36
  282. package/src/index.ts +84 -6
  283. package/src/internal/utils/query.ts +7 -0
  284. package/src/resource.ts +1 -1
  285. package/src/resources/assets.ts +18 -3
  286. package/src/resources/auctions/auctions.ts +523 -0
  287. package/src/resources/auctions/index.ts +19 -0
  288. package/src/resources/auctions/website-user-attributes/index.ts +18 -0
  289. package/src/resources/auctions/website-user-attributes/values.ts +170 -0
  290. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
  291. package/src/resources/auctions/website-user-attributes.ts +3 -0
  292. package/src/resources/auctions.ts +1 -207
  293. package/src/resources/auth.ts +124 -6
  294. package/src/resources/index.ts +41 -3
  295. package/src/resources/loyalty/account-streaks.ts +128 -0
  296. package/src/resources/loyalty/accounts.ts +65 -18
  297. package/src/resources/loyalty/badges.ts +1058 -146
  298. package/src/resources/loyalty/currencies.ts +19 -0
  299. package/src/resources/loyalty/index.ts +13 -2
  300. package/src/resources/loyalty/loyalty.ts +30 -12
  301. package/src/resources/loyalty/multipliers.ts +43 -4
  302. package/src/resources/loyalty/questions-responses.ts +64 -4
  303. package/src/resources/loyalty/questions.ts +64 -6
  304. package/src/resources/loyalty/rule-edits.ts +4208 -94
  305. package/src/resources/loyalty/rule-groups.ts +473 -64
  306. package/src/resources/loyalty/rules.ts +3706 -403
  307. package/src/resources/loyalty/transactions/index.ts +29 -0
  308. package/src/resources/loyalty/transactions/posts.ts +221 -0
  309. package/src/resources/loyalty/transactions/rule-statuses.ts +179 -0
  310. package/src/resources/loyalty/transactions/transactions.ts +930 -0
  311. package/src/resources/loyalty/transactions.ts +1 -446
  312. package/src/resources/minting/allowlist.ts +116 -0
  313. package/src/resources/minting/contracts.ts +415 -0
  314. package/src/resources/minting/index.ts +29 -0
  315. package/src/resources/minting/minting.ts +285 -0
  316. package/src/resources/minting/status.ts +70 -0
  317. package/src/resources/minting.ts +1 -157
  318. package/src/resources/referral/referral.ts +15 -11
  319. package/src/resources/referral/users.ts +45 -5
  320. package/src/resources/token-claims.ts +311 -0
  321. package/src/resources/users/index.ts +4 -0
  322. package/src/resources/users/metadatas.ts +66 -3
  323. package/src/resources/users/users.ts +277 -39
  324. package/src/resources/websites/index.ts +1 -6
  325. package/src/resources/websites/website-collections.ts +1 -146
  326. package/src/resources/websites/website-user-roles.ts +26 -1
  327. package/src/resources/websites/websites.ts +22 -127
  328. package/src/version.ts +1 -1
  329. package/version.d.ts +1 -1
  330. package/version.d.ts.map +1 -1
  331. package/version.js +1 -1
  332. package/version.js.map +1 -1
  333. package/version.mjs +1 -1
  334. package/version.mjs.map +1 -1
  335. package/resources/loyalty/rule-chains.d.ts +0 -34
  336. package/resources/loyalty/rule-chains.d.ts.map +0 -1
  337. package/resources/loyalty/rule-chains.js +0 -15
  338. package/resources/loyalty/rule-chains.js.map +0 -1
  339. package/resources/loyalty/rule-chains.mjs +0 -11
  340. package/resources/loyalty/rule-chains.mjs.map +0 -1
  341. package/src/resources/loyalty/rule-chains.ts +0 -45
@@ -7,6 +7,16 @@ import * as Core from '../../core';
7
7
  export class RuleGroups extends APIResource {
8
8
  /**
9
9
  * Create a new loyalty rule groups
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const response =
14
+ * await client.loyalty.ruleGroups.createRuleGroup({
15
+ * name: 'name',
16
+ * organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
17
+ * websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
18
+ * });
19
+ * ```
10
20
  */
11
21
  createRuleGroup(
12
22
  body: RuleGroupCreateRuleGroupParams,
@@ -17,6 +27,14 @@ export class RuleGroups extends APIResource {
17
27
 
18
28
  /**
19
29
  * Delete loyalty rule group by ID
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const response =
34
+ * await client.loyalty.ruleGroups.deleteRuleGroup(
35
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
36
+ * );
37
+ * ```
20
38
  */
21
39
  deleteRuleGroup(id: string, options?: Core.RequestOptions): Core.APIPromise<unknown> {
22
40
  return this._client.delete(`/api/loyalty/rule_groups/${id}`, options);
@@ -24,6 +42,12 @@ export class RuleGroups extends APIResource {
24
42
 
25
43
  /**
26
44
  * Retrieve configured loyalty rule groups
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const response =
49
+ * await client.loyalty.ruleGroups.getRuleGroups();
50
+ * ```
27
51
  */
28
52
  getRuleGroups(
29
53
  query?: RuleGroupGetRuleGroupsParams,
@@ -42,6 +66,14 @@ export class RuleGroups extends APIResource {
42
66
 
43
67
  /**
44
68
  * Update loyalty rule group by ID
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const response =
73
+ * await client.loyalty.ruleGroups.updateRuleGroup(
74
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
75
+ * );
76
+ * ```
45
77
  */
46
78
  updateRuleGroup(
47
79
  id: string,
@@ -135,12 +167,14 @@ export namespace RuleGroupGetRuleGroupsResponse {
135
167
 
136
168
  endTime: string | null;
137
169
 
138
- frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately' | null;
170
+ frequency: 'none' | 'once' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'immediately' | null;
139
171
 
140
172
  hideInUi: boolean;
141
173
 
142
174
  isRequired: boolean;
143
175
 
176
+ loyaltyBadge: LoyaltyRule.LoyaltyBadge;
177
+
144
178
  loyaltyCurrencyId: string;
145
179
 
146
180
  mediaUrl: string | null;
@@ -149,7 +183,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
149
183
 
150
184
  name: string;
151
185
 
152
- rewardType: 'points' | 'multiplier';
186
+ rewardType: 'points' | 'multiplier' | 'badge';
153
187
 
154
188
  startTime: string | null;
155
189
 
@@ -177,6 +211,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
177
211
  | 'connected_discord'
178
212
  | 'connected_email'
179
213
  | 'connected_epic'
214
+ | 'connected_github'
180
215
  | 'connected_steam'
181
216
  | 'connected_telegram'
182
217
  | 'connected_twitter'
@@ -206,11 +241,69 @@ export namespace RuleGroupGetRuleGroupsResponse {
206
241
  | 'twitter_like'
207
242
  | 'twitter_post_hashtag'
208
243
  | 'quiz'
209
- | 'poll';
244
+ | 'poll'
245
+ | 'steam_wishlist'
246
+ | 'liquidity_uniswap_v2'
247
+ | 'liquidity_uniswap_v3'
248
+ | 'points_airdrop'
249
+ | 'youtube_subscribers'
250
+ | 'youtube_comment'
251
+ | 'shopify_spend'
252
+ | 'swap'
253
+ | 'tiktok_post'
254
+ | 'post_impressions'
255
+ | 'discord_join'
256
+ | 'connected_youtube'
257
+ | 'stratus_function'
258
+ | 'connected_tiktok'
259
+ | 'tiktok_follow'
260
+ | 'github_repo_star'
261
+ | 'github_repo_fork'
262
+ | 'github_repo_collaborator'
263
+ | 'github_merge_PR'
264
+ | 'discord_role_grant'
265
+ | 'connected_reddit'
266
+ | 'reddit_comment'
267
+ | 'robinhood_token_hold'
268
+ | 'connected_instagram'
269
+ | 'instagram_post'
270
+ | 'instagram_follow'
271
+ | 'connected_phone'
272
+ | 'dapps_by_gas_spent'
273
+ | 'dapps_by_active_users'
274
+ | 'dapps_by_new_users'
275
+ | 'dapps_by_transaction_count';
210
276
  }
211
277
 
212
278
  export namespace LoyaltyRule {
279
+ export interface LoyaltyBadge {
280
+ id: string;
281
+
282
+ description: string | null;
283
+
284
+ imageUrl: string | null;
285
+
286
+ name: string;
287
+ }
288
+
213
289
  export interface Metadata {
290
+ /**
291
+ * Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code
292
+ * only.
293
+ */
294
+ allowMultipleRedemptions?: boolean;
295
+
296
+ /**
297
+ * Array of loyalty rule IDs that count as check-in when completed. If ["any"] then
298
+ * any rule completions count as check-in.
299
+ */
300
+ autoCheckInRuleIds?: Array<(string & {}) | 'any'> | null;
301
+
302
+ /**
303
+ * Number of tokens per batch.
304
+ */
305
+ batchSize?: number | null;
306
+
214
307
  /**
215
308
  * Text displayed on the action button.
216
309
  */
@@ -234,7 +327,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
234
327
  /**
235
328
  * Text to check in the Twitter post, username, or bio.
236
329
  */
237
- checkText?: string | null;
330
+ checkText?: string | Array<string> | null;
238
331
 
239
332
  /**
240
333
  * Array of collections associated with the rule.
@@ -244,7 +337,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
244
337
  /**
245
338
  * Conditions for completing the profile.
246
339
  */
247
- completeProfileConditions?: Record<string, boolean> | null;
340
+ completeProfileConditions?: { [key: string]: boolean } | null;
341
+
342
+ /**
343
+ * Description of the external rule condition (only for external rules)
344
+ */
345
+ conditionDescription?: string;
248
346
 
249
347
  /**
250
348
  * Object containing details for the call-to-action.
@@ -256,6 +354,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
256
354
  */
257
355
  customRewardsApiKey?: string;
258
356
 
357
+ /**
358
+ * Flag indicating if the rule should use direct RPC to get the balance of tokens.
359
+ */
360
+ directRpc?: boolean;
361
+
259
362
  /**
260
363
  * Array of Discord servers, channels, and roles to join.
261
364
  */
@@ -281,6 +384,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
281
384
  */
282
385
  enableVerifiedMultiplier?: boolean;
283
386
 
387
+ /**
388
+ * Type of ERC20 token for the loyalty rule.
389
+ */
390
+ erc20Type?: 'erc20' | 'native';
391
+
284
392
  /**
285
393
  * Fill source of the order for the token sale
286
394
  */
@@ -291,6 +399,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
291
399
  */
292
400
  firstReferralReward?: number | null;
293
401
 
402
+ /**
403
+ * Name of the GitHub branch to check for PR merge.
404
+ */
405
+ githubBranchName?: string | null;
406
+
407
+ /**
408
+ * URL of the GitHub repository to check for star.
409
+ */
410
+ githubRepoUrl?: string | null;
411
+
294
412
  /**
295
413
  * Flag indicating whether the fill source is included.
296
414
  */
@@ -301,11 +419,6 @@ export namespace RuleGroupGetRuleGroupsResponse {
301
419
  */
302
420
  hasNeverSold?: boolean;
303
421
 
304
- /**
305
- * Flag indicating whether the order source is included.
306
- */
307
- hasOrderSource?: boolean;
308
-
309
422
  /**
310
423
  * Indicates if the full royalty has been paid for items.
311
424
  */
@@ -326,11 +439,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
326
439
  */
327
440
  imageUrl?: string | null;
328
441
 
442
+ /**
443
+ * If enabled, the first transaction done on the platform will complete this rule
444
+ */
445
+ isCheckInOnEveryTxn?: boolean;
446
+
329
447
  /**
330
448
  * Indicates if the multiplier has been applied to rewards.
331
449
  */
332
450
  isMultiplierApplied?: boolean;
333
451
 
452
+ /**
453
+ * Flag indicating if the rule is restricted to new users.
454
+ */
455
+ isRestrictedToNewUsers?: boolean;
456
+
334
457
  /**
335
458
  * Flag indicating if rewards are applied retroactively.
336
459
  */
@@ -346,11 +469,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
346
469
  */
347
470
  link?: string | null;
348
471
 
472
+ /**
473
+ * Liquidity pool details.
474
+ */
475
+ liquidity?: Metadata.Liquidity;
476
+
349
477
  /**
350
478
  * Maximum quantity constraint for token holding.
351
479
  */
352
480
  maxQty?: number | null;
353
481
 
482
+ /**
483
+ * Minimum follower count for the rule. Accepts both number and string values.
484
+ */
485
+ minimumFollowerCount?: number | null;
486
+
354
487
  /**
355
488
  * Minimum quantity constraint for token holding.
356
489
  */
@@ -387,20 +520,40 @@ export namespace RuleGroupGetRuleGroupsResponse {
387
520
  onlyRewardSingleTokenOwnership?: boolean | null;
388
521
 
389
522
  /**
390
- * Order source of the order for the token sale
523
+ * Pre-generated text template that will be used to prefill the post content.
391
524
  */
392
- orderSource?: string;
525
+ preGeneratedPostText?: string | null;
393
526
 
394
527
  /**
395
528
  * Promotional code associated with the rule.
396
529
  */
397
530
  promoCode?: string;
398
531
 
532
+ /**
533
+ * URL of the CSV file containing promo codes.
534
+ */
535
+ promoCodeCsvUrl?: string;
536
+
537
+ /**
538
+ * Numbers of the promotional code to be generated.
539
+ */
540
+ promoCodeLength?: number | null;
541
+
542
+ /**
543
+ * Type of the promotional code.
544
+ */
545
+ promoCodeType?: 'code' | 'csv' | 'generate';
546
+
399
547
  /**
400
548
  * Array defining ranges and corresponding rewards.
401
549
  */
402
550
  range?: Array<Metadata.Range>;
403
551
 
552
+ /**
553
+ * ID of the Reddit post.
554
+ */
555
+ redditPostId?: string | null;
556
+
404
557
  /**
405
558
  * Object defining referral requirements.
406
559
  */
@@ -411,11 +564,75 @@ export namespace RuleGroupGetRuleGroupsResponse {
411
564
  */
412
565
  referrerReward?: number | null;
413
566
 
567
+ /**
568
+ * Loyalty currency ID of the referrer reward.
569
+ */
570
+ referrerRewardLoyaltyCurrencyId?: string | null;
571
+
572
+ /**
573
+ * Flag indicating if the post link is required.
574
+ */
575
+ requirePostLink?: boolean | null;
576
+
577
+ /**
578
+ * Flag indicating if media metadata is required.
579
+ */
580
+ requirePostMediaLink?: boolean | null;
581
+
582
+ /**
583
+ * If enabled, the progress tracking row will be deleted after a successful claim,
584
+ * allowing the user to re-earn the rule.
585
+ */
586
+ resetProgressOnClaim?: boolean | null;
587
+
588
+ /**
589
+ * Flag indicating if the rule can also reward badges per range.
590
+ */
591
+ rewardBadgePerRange?: boolean;
592
+
593
+ /**
594
+ * Flag indicating if the reward is rewarded by batch.
595
+ */
596
+ rewardByBatch?: boolean | null;
597
+
598
+ /**
599
+ * Criteria to evaluate the reward.
600
+ */
601
+ rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
602
+
603
+ /**
604
+ * Flag indicating if the reward is rewarded per action.
605
+ */
606
+ rewardPerAction?: boolean | null;
607
+
414
608
  /**
415
609
  * Flag indicating if rewards are given per impression.
416
610
  */
417
611
  rewardPerImpression?: boolean | null;
418
612
 
613
+ /**
614
+ * Flag indicating if the rule should reward based on value of traded tokens
615
+ * instead of count.
616
+ */
617
+ rewardPerValue?: boolean;
618
+
619
+ /**
620
+ * Flag indicating if the rule should reward quality posts.
621
+ */
622
+ rewardQualityPosts?: boolean;
623
+
624
+ robinhoodSymbols?: Array<string> | null;
625
+
626
+ /**
627
+ * Wallet address of the user can only be used if userId is not provided
628
+ */
629
+ royaltyAddress?: string;
630
+
631
+ /**
632
+ * Royalty percentage of the item.
633
+ */
634
+ royaltyPercentage?: number;
635
+
419
636
  /**
420
637
  * Currency associated with sales.
421
638
  */
@@ -449,12 +666,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
449
666
  | 'Discord'
450
667
  | 'EpicGames'
451
668
  | 'Instagram'
669
+ | 'Phone'
452
670
  | 'Steam'
453
671
  | 'Telegram'
454
672
  | 'TikTok'
455
673
  | 'Twitch'
456
674
  | 'X(Twitter)'
457
675
  | 'YouTube'
676
+ | 'Google'
677
+ | 'GitHub'
678
+ | 'Reddit'
458
679
  | null;
459
680
 
460
681
  /**
@@ -467,11 +688,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
467
688
  */
468
689
  socialPlatformName?: string | null;
469
690
 
691
+ /**
692
+ * ID of the Steam app.
693
+ */
694
+ steamAppId?: string | null;
695
+
470
696
  /**
471
697
  * Array of streak milestones and corresponding rewards.
472
698
  */
473
699
  streakArray?: Array<Metadata.StreakArray> | null;
474
700
 
701
+ /**
702
+ * Metadata for swap loyalty rules
703
+ */
704
+ swap?: Metadata.Swap;
705
+
475
706
  /**
476
707
  * ID of the Telegram channel.
477
708
  */
@@ -487,6 +718,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
487
718
  */
488
719
  trackAllContracts?: boolean | null;
489
720
 
721
+ /**
722
+ * Flag indicating if the progress is tracked. If enabled, the rule can only be
723
+ * completed once the progress is 100%.
724
+ */
725
+ trackProgress?: boolean | null;
726
+
490
727
  /**
491
728
  * URL of the associated Twitter account.
492
729
  */
@@ -530,7 +767,28 @@ export namespace RuleGroupGetRuleGroupsResponse {
530
767
  /**
531
768
  * Type of wallet associated with the rule.
532
769
  */
533
- walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
770
+ walletType?:
771
+ | 'evm'
772
+ | 'solana'
773
+ | 'imx'
774
+ | 'sui'
775
+ | 'ton'
776
+ | 'cosmos'
777
+ | 'ultra'
778
+ | 'agw'
779
+ | 'flow_cadence'
780
+ | 'substrate'
781
+ | null;
782
+
783
+ /**
784
+ * ID of the Youtube channel.
785
+ */
786
+ youtubeChannelId?: string | null;
787
+
788
+ /**
789
+ * ID of the Youtube video.
790
+ */
791
+ youtubeVideoId?: string | null;
534
792
  }
535
793
 
536
794
  export namespace Metadata {
@@ -557,7 +815,9 @@ export namespace RuleGroupGetRuleGroupsResponse {
557
815
  | 'avalancheFuji'
558
816
  | 'base'
559
817
  | 'baseSepolia'
818
+ | 'berachain'
560
819
  | 'berachainArtio'
820
+ | 'berachainBepolia'
561
821
  | 'binance'
562
822
  | 'bscTestnet'
563
823
  | 'campTestnet'
@@ -565,25 +825,45 @@ export namespace RuleGroupGetRuleGroupsResponse {
565
825
  | 'fantomTestnet'
566
826
  | 'flowMainnet'
567
827
  | 'mainnet'
828
+ | 'nexusTestnet'
568
829
  | 'optimism'
569
830
  | 'polygon'
570
831
  | 'polygon_mumbai'
571
832
  | 'skaleNebula'
833
+ | 'skaleEuropa'
834
+ | 'skaleCalypso'
572
835
  | 'solana'
573
836
  | 'sophon'
837
+ | 'sophonTestnet'
574
838
  | 'sui'
575
839
  | 'superseed'
576
840
  | 'superseedSepolia'
577
841
  | 'vanar'
578
842
  | 'xai'
579
843
  | 'zksync'
844
+ | 'coti'
845
+ | 'cotiTestnet'
846
+ | 'dogeosTestnet'
847
+ | 'morph'
848
+ | 'morphTestnet'
849
+ | 'morphHolesky'
850
+ | 'ultra'
851
+ | 'ultraTestnet'
852
+ | 'nitrograph'
580
853
  | 'sepolia'
581
854
  | 'optimism_sepolia'
582
855
  | 'arbitrumSepolia'
583
856
  | 'goerli'
584
857
  | 'optimism_goerli'
585
858
  | 'arbitrumGoerli'
586
- | 'basecamp';
859
+ | 'basecamp'
860
+ | 'somnia'
861
+ | 'zkverify'
862
+ | 'polkadot'
863
+ | 'kusama'
864
+ | 'horizen'
865
+ | 'horizenTestnet'
866
+ | 'flow_cadence';
587
867
  }
588
868
 
589
869
  /**
@@ -660,6 +940,114 @@ export namespace RuleGroupGetRuleGroupsResponse {
660
940
  id: string;
661
941
  }
662
942
 
943
+ /**
944
+ * Liquidity pool details.
945
+ */
946
+ export interface Liquidity {
947
+ /**
948
+ * Calculation type of the liquidity pool.
949
+ */
950
+ calculationType?: 'fixed' | 'custom';
951
+
952
+ /**
953
+ * Custom function to calculate the the reward amount based on the liquidity
954
+ * provided per day. X is the reward amount, Y is the liquidity provided per day in
955
+ * USD.
956
+ */
957
+ customFunction?: string;
958
+
959
+ /**
960
+ * Liquidity provided per day in USD
961
+ */
962
+ liquidityPerDay?: number;
963
+
964
+ /**
965
+ * Blockchain network of the liquidity pool.
966
+ */
967
+ network?:
968
+ | 'abstract'
969
+ | 'abstractTestnet'
970
+ | 'apechain'
971
+ | 'arbitrum'
972
+ | 'avalanche'
973
+ | 'avalancheFuji'
974
+ | 'base'
975
+ | 'baseSepolia'
976
+ | 'berachain'
977
+ | 'berachainArtio'
978
+ | 'berachainBepolia'
979
+ | 'binance'
980
+ | 'bscTestnet'
981
+ | 'campTestnet'
982
+ | 'fantom'
983
+ | 'fantomTestnet'
984
+ | 'flowMainnet'
985
+ | 'mainnet'
986
+ | 'nexusTestnet'
987
+ | 'optimism'
988
+ | 'polygon'
989
+ | 'polygon_mumbai'
990
+ | 'skaleNebula'
991
+ | 'skaleEuropa'
992
+ | 'skaleCalypso'
993
+ | 'solana'
994
+ | 'sophon'
995
+ | 'sophonTestnet'
996
+ | 'sui'
997
+ | 'superseed'
998
+ | 'superseedSepolia'
999
+ | 'vanar'
1000
+ | 'xai'
1001
+ | 'zksync'
1002
+ | 'coti'
1003
+ | 'cotiTestnet'
1004
+ | 'dogeosTestnet'
1005
+ | 'morph'
1006
+ | 'morphTestnet'
1007
+ | 'morphHolesky'
1008
+ | 'ultra'
1009
+ | 'ultraTestnet'
1010
+ | 'nitrograph'
1011
+ | 'sepolia'
1012
+ | 'optimism_sepolia'
1013
+ | 'arbitrumSepolia'
1014
+ | 'goerli'
1015
+ | 'optimism_goerli'
1016
+ | 'arbitrumGoerli'
1017
+ | 'basecamp'
1018
+ | 'somnia'
1019
+ | 'zkverify'
1020
+ | 'polkadot'
1021
+ | 'kusama'
1022
+ | 'horizen'
1023
+ | 'horizenTestnet'
1024
+ | 'flow_cadence';
1025
+
1026
+ /**
1027
+ * Indicates if only in-range liquidity is rewarded.
1028
+ */
1029
+ onlyRewardInRangeLiquidity?: boolean;
1030
+
1031
+ /**
1032
+ * Array of liquidity pools associated with the rule.
1033
+ */
1034
+ pools?: Array<Liquidity.Pool>;
1035
+
1036
+ /**
1037
+ * Protocol of the liquidity pool.
1038
+ */
1039
+ protocol?: string;
1040
+ }
1041
+
1042
+ export namespace Liquidity {
1043
+ export interface Pool {
1044
+ /**
1045
+ * Unique identifier of the liquidity pool.
1046
+ */
1047
+ id: string;
1048
+ }
1049
+ }
1050
+
663
1051
  export interface Range {
664
1052
  /**
665
1053
  * Reward amount for this range.
@@ -675,6 +1063,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
675
1063
  * Start value of the range.
676
1064
  */
677
1065
  startRange: number;
1066
+
1067
+ /**
1068
+ * ID of the loyalty badge for this range.
1069
+ */
1070
+ loyaltyBadgeId?: string;
1071
+
1072
+ /**
1073
+ * Amount of the loyalty multiplier for this range.
1074
+ */
1075
+ loyaltyMultiplierAmount?: number;
678
1076
  }
679
1077
 
680
1078
  /**
@@ -727,20 +1125,15 @@ export namespace RuleGroupGetRuleGroupsResponse {
727
1125
  * Object containing details of the associated smart contract.
728
1126
  */
729
1127
  export interface SmartContract {
730
- /**
731
- * ABI of the smart contract.
732
- */
733
- abi?: string | null;
734
-
735
1128
  /**
736
1129
  * Mapping of addresses for the smart contract.
737
1130
  */
738
1131
  addressMapping?: string | null;
739
1132
 
740
1133
  /**
741
- * Array of bonus details applied to the rule.
1134
+ * Object containing details of the amount multiplier from the event.
742
1135
  */
743
- bonus?: Array<SmartContract.Bonus> | null;
1136
+ amountMultiplier?: SmartContract.AmountMultiplier | null;
744
1137
 
745
1138
  /**
746
1139
  * ID of the smart contract.
@@ -752,68 +1145,31 @@ export namespace RuleGroupGetRuleGroupsResponse {
752
1145
  */
753
1146
  criteria?: 'everyEvent' | 'byParameter' | null;
754
1147
 
755
- /**
756
- * Time range applied to the rule.
757
- */
758
- customRange?: SmartContract.CustomRange | null;
759
-
760
1148
  /**
761
1149
  * Event emitted by the smart contract.
762
1150
  */
763
1151
  event?: string | null;
764
1152
 
765
- /**
766
- * Maximum value allowed for the parameter.
767
- */
768
- max?: number | null;
769
-
770
1153
  /**
771
1154
  * Array of parameters for the smart contract.
772
1155
  */
773
1156
  params?: Array<SmartContract.Param> | null;
774
1157
 
775
1158
  /**
776
- * Flag indicating if a bonus is applied.
1159
+ * Type of the smart contract interaction.
777
1160
  */
778
- withBonus?: boolean | null;
779
-
780
- /**
781
- * Flag indicating if a custom range is applied.
782
- */
783
- withCustomRange?: boolean | null;
784
-
785
- /**
786
- * Flag indicating if a maximum limit is applied.
787
- */
788
- withMax?: boolean | null;
1161
+ type?: 'function' | 'event' | null;
789
1162
  }
790
1163
 
791
1164
  export namespace SmartContract {
792
- export interface Bonus {
793
- /**
794
- * Amount of the bonus.
795
- */
796
- amount?: number | null;
797
-
798
- /**
799
- * Number of times the bonus is applied.
800
- */
801
- count?: number | null;
802
- }
803
-
804
1165
  /**
805
- * Time range applied to the rule.
1166
+ * Object containing details of the amount multiplier from the event.
806
1167
  */
807
- export interface CustomRange {
808
- /**
809
- * End time of the custom range.
810
- */
811
- endsAt?: string | null;
812
-
1168
+ export interface AmountMultiplier {
813
1169
  /**
814
- * Start time of the custom range.
1170
+ * Mapping of the value for the smart contract.
815
1171
  */
816
- startsAt?: string | null;
1172
+ valueMapping?: string | null;
817
1173
  }
818
1174
 
819
1175
  export interface Param {
@@ -857,6 +1213,59 @@ export namespace RuleGroupGetRuleGroupsResponse {
857
1213
  */
858
1214
  streakMilestone: number;
859
1215
  }
1216
+
1217
+ /**
1218
+ * Metadata for swap loyalty rules
1219
+ */
1220
+ export interface Swap {
1221
+ from?: Swap.From;
1222
+
1223
+ provider?: 'any' | 'relay' | 'lifi';
1224
+
1225
+ relayReferrerId?: string;
1226
+
1227
+ requireCrossChainSwap?: boolean;
1228
+
1229
+ to?: Swap.To;
1230
+ }
1231
+
1232
+ export namespace Swap {
1233
+ export interface From {
1234
+ chain?: 'any' | number | string;
1235
+
1236
+ mode?: 'any' | 'specific';
1237
+
1238
+ tokens?: Array<From.Token>;
1239
+
1240
+ trackAmount?: boolean;
1241
+ }
1242
+
1243
+ export namespace From {
1244
+ export interface Token {
1245
+ address: string;
1246
+
1247
+ chainId: string;
1248
+ }
1249
+ }
1250
+
1251
+ export interface To {
1252
+ chain?: 'any' | number | string;
1253
+
1254
+ mode?: 'any' | 'specific';
1255
+
1256
+ tokens?: Array<To.Token>;
1257
+
1258
+ trackAmount?: boolean;
1259
+ }
1260
+
1261
+ export namespace To {
1262
+ export interface Token {
1263
+ address: string;
1264
+
1265
+ chainId: string;
1266
+ }
1267
+ }
1268
+ }
860
1269
  }
861
1270
  }
862
1271
  }