@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
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Allowlist = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class Allowlist extends resource_1.APIResource {
7
+ /**
8
+ * Fetch allowlist entries for a minting contract asset
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const allowlists = await client.minting.allowlist.list({
13
+ * mintingContractAssetId:
14
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
15
+ * });
16
+ * ```
17
+ */
18
+ list(query, options) {
19
+ return this._client.get('/api/minting/assets/allowlist', { query, ...options });
20
+ }
21
+ /**
22
+ * Create or update allowlist entries for a minting contract asset (max 25 entries
23
+ * per request). If an entry already exists, it will be updated with the new
24
+ * quantity.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const response = await client.minting.allowlist.upsert({
29
+ * entries: [
30
+ * { quantity: 1, walletAddress: 'walletAddress' },
31
+ * ],
32
+ * mintingContractAssetId:
33
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
34
+ * });
35
+ * ```
36
+ */
37
+ upsert(body, options) {
38
+ return this._client.post('/api/minting/assets/allowlist', { body, ...options });
39
+ }
40
+ }
41
+ exports.Allowlist = Allowlist;
42
+ //# sourceMappingURL=allowlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allowlist.js","sourceRoot":"","sources":["../../src/resources/minting/allowlist.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,KAA0B,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAtCD,8BAsCC"}
@@ -0,0 +1,38 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class Allowlist extends APIResource {
4
+ /**
5
+ * Fetch allowlist entries for a minting contract asset
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const allowlists = await client.minting.allowlist.list({
10
+ * mintingContractAssetId:
11
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
12
+ * });
13
+ * ```
14
+ */
15
+ list(query, options) {
16
+ return this._client.get('/api/minting/assets/allowlist', { query, ...options });
17
+ }
18
+ /**
19
+ * Create or update allowlist entries for a minting contract asset (max 25 entries
20
+ * per request). If an entry already exists, it will be updated with the new
21
+ * quantity.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.minting.allowlist.upsert({
26
+ * entries: [
27
+ * { quantity: 1, walletAddress: 'walletAddress' },
28
+ * ],
29
+ * mintingContractAssetId:
30
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
31
+ * });
32
+ * ```
33
+ */
34
+ upsert(body, options) {
35
+ return this._client.post('/api/minting/assets/allowlist', { body, ...options });
36
+ }
37
+ }
38
+ //# sourceMappingURL=allowlist.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allowlist.mjs","sourceRoot":"","sources":["../../src/resources/minting/allowlist.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,KAA0B,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
@@ -0,0 +1,165 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ export declare class Contracts extends APIResource {
4
+ /**
5
+ * Get minting contracts
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const contracts = await client.minting.contracts.list();
10
+ * ```
11
+ */
12
+ list(query?: ContractListParams, options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
13
+ list(options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
14
+ /**
15
+ * Generates a signature for minting an asset on a given contract
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const response = await client.minting.contracts.mint({
20
+ * assetId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
21
+ * contractId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
22
+ * });
23
+ * ```
24
+ */
25
+ mint(body: ContractMintParams, options?: Core.RequestOptions): Core.APIPromise<ContractMintResponse>;
26
+ }
27
+ export interface ContractListResponse {
28
+ data: Array<ContractListResponse.Data>;
29
+ hasNextPage: boolean;
30
+ stats: Array<ContractListResponse.Stat>;
31
+ }
32
+ export declare namespace ContractListResponse {
33
+ interface Data {
34
+ id: string;
35
+ _count: Data._Count;
36
+ address: string | null;
37
+ contractKind: 'ONCHAIN' | 'OFFCHAIN';
38
+ description: string | null;
39
+ enableGasless: boolean;
40
+ externalLinkUrl: string | null;
41
+ hasRevealMechanic: boolean;
42
+ hideInactiveListings: boolean;
43
+ imageUrl: string | null;
44
+ isFreeClaimForBadgeHolders: boolean;
45
+ isFreeClaimForTokenHolders: boolean;
46
+ isListed: boolean;
47
+ isPerAssetMintLimit: boolean;
48
+ isSoulbound: boolean;
49
+ mintingContractAssets: Array<Data.MintingContractAsset>;
50
+ mintingContractBadgeAssociation: Array<Data.MintingContractBadgeAssociation>;
51
+ mustOwnCollections: Array<Data.MustOwnCollection>;
52
+ name: string;
53
+ network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'dogeosTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'horizen' | 'horizenTestnet' | 'flow_cadence' | null;
54
+ organizationId: string;
55
+ perUserMintLimit: number | null;
56
+ preRevealMedia: string | null;
57
+ primarySaleRecipientAddress: string;
58
+ relayerId: string | null;
59
+ requireHoldingAllGatedItems: boolean;
60
+ revealAvailableAt: string | null;
61
+ royaltyFee: unknown;
62
+ royaltyFeeAddress: string;
63
+ shouldCollectEmail: boolean;
64
+ showOnMarketplace: boolean;
65
+ sortId: number | null;
66
+ symbol: string;
67
+ tokenType: 'erc721' | 'erc1155' | 'erc721c';
68
+ websiteId: string;
69
+ }
70
+ namespace Data {
71
+ interface _Count {
72
+ mintingContractAssets: number;
73
+ }
74
+ interface MintingContractAsset {
75
+ id: string;
76
+ animationUrl: string | null;
77
+ assetNr: number;
78
+ auctionItems: Array<MintingContractAsset.AuctionItem>;
79
+ collectInfoType: 'customInput' | 'freeText' | 'shippingDetails' | null;
80
+ currencyAddress: string | null;
81
+ currencyDecimals: number | null;
82
+ description: string | null;
83
+ imageUrl: string | null;
84
+ isHidden: boolean;
85
+ isListed: boolean;
86
+ isPhygitalItem: boolean;
87
+ listingEndsAt: string | null;
88
+ listingStartsAt: string | null;
89
+ loyaltyCurrencyId: string | null;
90
+ name: string;
91
+ organizationId: string;
92
+ price: unknown;
93
+ quantity: number;
94
+ quantityMinted: number;
95
+ revealedAt: string | null;
96
+ shouldCollectUserInfo: boolean;
97
+ tokenId: number | null;
98
+ unlimitedQty: boolean;
99
+ websiteId: string;
100
+ }
101
+ namespace MintingContractAsset {
102
+ interface AuctionItem {
103
+ id: string;
104
+ }
105
+ }
106
+ interface MintingContractBadgeAssociation {
107
+ loyaltyBadge: MintingContractBadgeAssociation.LoyaltyBadge;
108
+ }
109
+ namespace MintingContractBadgeAssociation {
110
+ interface LoyaltyBadge {
111
+ id: string;
112
+ imageUrl: string | null;
113
+ name: string;
114
+ }
115
+ }
116
+ interface MustOwnCollection {
117
+ address: string;
118
+ network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'dogeosTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'horizen' | 'horizenTestnet' | 'flow_cadence';
119
+ }
120
+ }
121
+ interface Stat {
122
+ _count: Stat._Count;
123
+ _sum: Stat._Sum;
124
+ mintingContractId: string;
125
+ }
126
+ namespace Stat {
127
+ interface _Count {
128
+ isListed: number;
129
+ }
130
+ interface _Sum {
131
+ quantity: number | null;
132
+ quantityMinted: number | null;
133
+ }
134
+ }
135
+ }
136
+ /**
137
+ * Use the id returned here to fetch the status and signature of the mint from the
138
+ * `/api/minting/status/:id` endpoint
139
+ */
140
+ export interface ContractMintResponse {
141
+ mintingContractAssetMintStatusId: string;
142
+ }
143
+ export interface ContractListParams {
144
+ includeDeleted?: boolean;
145
+ limit?: number;
146
+ organizationId?: string;
147
+ showOnMarketplace?: boolean;
148
+ startingAfter?: string;
149
+ websiteId?: string;
150
+ }
151
+ export interface ContractMintParams {
152
+ assetId: string;
153
+ contractId: string;
154
+ agreedToSendW9?: boolean | null;
155
+ customInputValue?: string | null;
156
+ emailAddress?: string;
157
+ quantity?: number;
158
+ shippingId?: string;
159
+ shippingOrderType?: 'stripe' | 'shipstation' | 'drip' | 'twitter_bearer' | 'epic_games' | 'stardust' | 'twitter_clientsecret' | 'immutable_passport' | 'sequence' | 'google' | 'walletConnect' | 'auth0' | 'privy' | 'thirdweb' | 'steam' | 'discord' | 'google_api' | 'shopify' | 'ultra' | 'github' | 'twilio';
160
+ walletAddress?: string;
161
+ }
162
+ export declare namespace Contracts {
163
+ export { type ContractListResponse as ContractListResponse, type ContractMintResponse as ContractMintResponse, type ContractListParams as ContractListParams, type ContractMintParams as ContractMintParams, };
164
+ }
165
+ //# sourceMappingURL=contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IACtG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAW1E;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAGrG;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAEvC,WAAW,EAAE,OA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aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAEhB,UAAU,EAAE,MAAM,CAAC;IAEnB,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iBAAiB,CAAC,EACd,QAAQ,GACR,aAAa,GACb,MAAM,GACN,gBAAgB,GAChB,YAAY,GACZ,UAAU,GACV,sBAAsB,GACtB,oBAAoB,GACpB,UAAU,GACV,QAAQ,GACR,eAAe,GACf,OAAO,GACP,OAAO,GACP,UAAU,GACV,OAAO,GACP,SAAS,GACT,YAAY,GACZ,SAAS,GACT,OAAO,GACP,QAAQ,GACR,QAAQ,CAAC;IAEb,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Contracts = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ const core_1 = require("../../core.js");
7
+ class Contracts extends resource_1.APIResource {
8
+ list(query = {}, options) {
9
+ if ((0, core_1.isRequestOptions)(query)) {
10
+ return this.list({}, query);
11
+ }
12
+ return this._client.get('/api/minting/contracts', { query, ...options });
13
+ }
14
+ /**
15
+ * Generates a signature for minting an asset on a given contract
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const response = await client.minting.contracts.mint({
20
+ * assetId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
21
+ * contractId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
22
+ * });
23
+ * ```
24
+ */
25
+ mint(body, options) {
26
+ return this._client.post('/api/minting/contracts/mint', { body, ...options });
27
+ }
28
+ }
29
+ exports.Contracts = Contracts;
30
+ //# sourceMappingURL=contracts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,SAAU,SAAQ,sBAAW;IAWxC,IAAI,CACF,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAwB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAnCD,8BAmCC"}
@@ -0,0 +1,26 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ import { isRequestOptions } from "../../core.mjs";
4
+ export class Contracts extends APIResource {
5
+ list(query = {}, options) {
6
+ if (isRequestOptions(query)) {
7
+ return this.list({}, query);
8
+ }
9
+ return this._client.get('/api/minting/contracts', { query, ...options });
10
+ }
11
+ /**
12
+ * Generates a signature for minting an asset on a given contract
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response = await client.minting.contracts.mint({
17
+ * assetId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
18
+ * contractId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
19
+ * });
20
+ * ```
21
+ */
22
+ mint(body, options) {
23
+ return this._client.post('/api/minting/contracts/mint', { body, ...options });
24
+ }
25
+ }
26
+ //# sourceMappingURL=contracts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.mjs","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,SAAU,SAAQ,WAAW;IAWxC,IAAI,CACF,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAwB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ export { Allowlist, type AllowlistListResponse, type AllowlistUpsertResponse, type AllowlistListParams, type AllowlistUpsertParams, } from "./allowlist.js";
2
+ export { Contracts, type ContractListResponse, type ContractMintResponse, type ContractListParams, type ContractMintParams, } from "./contracts.js";
3
+ export { Minting, type MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse, type MintingGetAssetsParams, type MintingGetTokenGateStatusParams, } from "./minting.js";
4
+ export { Status, type StatusRetrieveResponse, type StatusUpdateResponse, type StatusUpdateParams, } from "./status.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,EACP,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,GACrC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,MAAM,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Status = exports.Minting = exports.Contracts = exports.Allowlist = void 0;
5
+ var allowlist_1 = require("./allowlist.js");
6
+ Object.defineProperty(exports, "Allowlist", { enumerable: true, get: function () { return allowlist_1.Allowlist; } });
7
+ var contracts_1 = require("./contracts.js");
8
+ Object.defineProperty(exports, "Contracts", { enumerable: true, get: function () { return contracts_1.Contracts; } });
9
+ var minting_1 = require("./minting.js");
10
+ Object.defineProperty(exports, "Minting", { enumerable: true, get: function () { return minting_1.Minting; } });
11
+ var status_1 = require("./status.js");
12
+ Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return status_1.Status; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA"}
@@ -0,0 +1,6 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Allowlist, } from "./allowlist.mjs";
3
+ export { Contracts, } from "./contracts.mjs";
4
+ export { Minting, } from "./minting.mjs";
5
+ export { Status, } from "./status.mjs";
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAKV;OACM,EACL,SAAS,GAKV;OACM,EACL,OAAO,GAKR;OACM,EACL,MAAM,GAIP"}
@@ -0,0 +1,146 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as AllowlistAPI from "./allowlist.js";
4
+ import { Allowlist, AllowlistListParams, AllowlistListResponse, AllowlistUpsertParams, AllowlistUpsertResponse } from "./allowlist.js";
5
+ import * as ContractsAPI from "./contracts.js";
6
+ import { ContractListParams, ContractListResponse, ContractMintParams, ContractMintResponse, Contracts } from "./contracts.js";
7
+ import * as StatusAPI from "./status.js";
8
+ import { Status, StatusRetrieveResponse, StatusUpdateParams, StatusUpdateResponse } from "./status.js";
9
+ export declare class Minting extends APIResource {
10
+ status: StatusAPI.Status;
11
+ allowlist: AllowlistAPI.Allowlist;
12
+ contracts: ContractsAPI.Contracts;
13
+ /**
14
+ * Returns minting assets and any relevant context
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const response = await client.minting.getAssets({
19
+ * organizationId: '00000000-0000-0000-0000-000000000000',
20
+ * websiteId: '00000000-0000-0000-0000-000000000000',
21
+ * });
22
+ * ```
23
+ */
24
+ getAssets(query: MintingGetAssetsParams, options?: Core.RequestOptions): Core.APIPromise<MintingGetAssetsResponse>;
25
+ /**
26
+ * Pass in to see if a token is eligible for minting
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const response = await client.minting.getTokenGateStatus({
31
+ * collectionAddress: 'collectionAddress',
32
+ * mintingContractAssetId:
33
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
34
+ * mintingContractId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
35
+ * network: 'network',
36
+ * tokenId: 'tokenId',
37
+ * });
38
+ * ```
39
+ */
40
+ getTokenGateStatus(query: MintingGetTokenGateStatusParams, options?: Core.RequestOptions): Core.APIPromise<MintingGetTokenGateStatusResponse>;
41
+ }
42
+ /**
43
+ * Schema for getting minting assets response
44
+ */
45
+ export interface MintingGetAssetsResponse {
46
+ /**
47
+ * Array of minting assets
48
+ */
49
+ data: Array<MintingGetAssetsResponse.Data>;
50
+ /**
51
+ * Indicates if more pages are available
52
+ */
53
+ hasNextPage: boolean;
54
+ }
55
+ export declare namespace MintingGetAssetsResponse {
56
+ interface Data {
57
+ /**
58
+ * UUID of the minting asset
59
+ */
60
+ id: string;
61
+ }
62
+ }
63
+ export interface MintingGetTokenGateStatusResponse {
64
+ eligible: boolean;
65
+ message: string;
66
+ }
67
+ export interface MintingGetAssetsParams {
68
+ /**
69
+ * Organization ID
70
+ */
71
+ organizationId: string;
72
+ /**
73
+ * Website ID
74
+ */
75
+ websiteId: string;
76
+ /**
77
+ * Contract Address
78
+ */
79
+ contractAddress?: string;
80
+ /**
81
+ * Currency Type
82
+ */
83
+ currencyType?: 'loyalty' | 'native' | null;
84
+ /**
85
+ * Whether to include deleted assets in the response
86
+ */
87
+ includeDeleted?: boolean;
88
+ /**
89
+ * Whether to include metadata in the response
90
+ */
91
+ includeMetadata?: boolean;
92
+ /**
93
+ * Whether to include hidden assets in the response
94
+ */
95
+ isHidden?: boolean | null;
96
+ /**
97
+ * Whether to include listed assets in the response
98
+ */
99
+ isListed?: boolean | null;
100
+ /**
101
+ * Minting Contract Asset ID
102
+ */
103
+ mintingContractAssetId?: string | null;
104
+ /**
105
+ * Comma-separated list of Minting Contract UUIDs
106
+ */
107
+ mintingContractIds?: string | null;
108
+ /**
109
+ * Network
110
+ */
111
+ network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'dogeosTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'horizen' | 'horizenTestnet' | 'flow_cadence';
112
+ /**
113
+ * Sort Key
114
+ */
115
+ sortBy?: 'price' | 'startsAt' | 'assetNr' | null;
116
+ /**
117
+ * Sort Dir
118
+ */
119
+ sortDir?: 'asc' | 'desc' | null;
120
+ /**
121
+ * Status
122
+ */
123
+ status?: 'active' | 'past' | null;
124
+ /**
125
+ * Token ID
126
+ */
127
+ tokenId?: string | Array<number> | null;
128
+ /**
129
+ * Wallet Address
130
+ */
131
+ walletAddress?: string | Array<string>;
132
+ }
133
+ export interface MintingGetTokenGateStatusParams {
134
+ collectionAddress: string;
135
+ mintingContractAssetId: string;
136
+ mintingContractId: string;
137
+ network: string;
138
+ tokenId: string;
139
+ }
140
+ export declare namespace Minting {
141
+ export { type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse as MintingGetTokenGateStatusResponse, type MintingGetAssetsParams as MintingGetAssetsParams, type MintingGetTokenGateStatusParams as MintingGetTokenGateStatusParams, };
142
+ export { Status as Status, type StatusRetrieveResponse as StatusRetrieveResponse, type StatusUpdateResponse as StatusUpdateResponse, type StatusUpdateParams as StatusUpdateParams, };
143
+ export { Allowlist as Allowlist, type AllowlistListResponse as AllowlistListResponse, type AllowlistUpsertResponse as AllowlistUpsertResponse, type AllowlistListParams as AllowlistListParams, type AllowlistUpsertParams as AllowlistUpsertParams, };
144
+ export { Contracts as Contracts, type ContractListResponse as ContractListResponse, type ContractMintResponse as ContractMintResponse, type ContractListParams as ContractListParams, type ContractMintParams as ContractMintParams, };
145
+ }
146
+ //# sourceMappingURL=minting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minting.d.ts","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,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AExC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,+BAA+B;IAC9C,iBAAiB,EAAE,MAAM,CAAC;IAE1B,sBAAsB,EAAE,MAAM,CAAC;IAE/B,iBAAiB,EAAE,MAAM,CAAC;IAE1B,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Minting = void 0;
28
+ const resource_1 = require("../../resource.js");
29
+ const AllowlistAPI = __importStar(require("./allowlist.js"));
30
+ const allowlist_1 = require("./allowlist.js");
31
+ const ContractsAPI = __importStar(require("./contracts.js"));
32
+ const contracts_1 = require("./contracts.js");
33
+ const StatusAPI = __importStar(require("./status.js"));
34
+ const status_1 = require("./status.js");
35
+ class Minting extends resource_1.APIResource {
36
+ constructor() {
37
+ super(...arguments);
38
+ this.status = new StatusAPI.Status(this._client);
39
+ this.allowlist = new AllowlistAPI.Allowlist(this._client);
40
+ this.contracts = new ContractsAPI.Contracts(this._client);
41
+ }
42
+ /**
43
+ * Returns minting assets and any relevant context
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const response = await client.minting.getAssets({
48
+ * organizationId: '00000000-0000-0000-0000-000000000000',
49
+ * websiteId: '00000000-0000-0000-0000-000000000000',
50
+ * });
51
+ * ```
52
+ */
53
+ getAssets(query, options) {
54
+ return this._client.get('/api/minting/assets', { query, ...options });
55
+ }
56
+ /**
57
+ * Pass in to see if a token is eligible for minting
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const response = await client.minting.getTokenGateStatus({
62
+ * collectionAddress: 'collectionAddress',
63
+ * mintingContractAssetId:
64
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
65
+ * mintingContractId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
66
+ * network: 'network',
67
+ * tokenId: 'tokenId',
68
+ * });
69
+ * ```
70
+ */
71
+ getTokenGateStatus(query, options) {
72
+ return this._client.get('/api/minting/token_gate', { query, ...options });
73
+ }
74
+ }
75
+ exports.Minting = Minting;
76
+ Minting.Status = status_1.Status;
77
+ Minting.Allowlist = allowlist_1.Allowlist;
78
+ Minting.Contracts = contracts_1.Contracts;
79
+ //# sourceMappingURL=minting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minting.js","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,6DAA4C;AAC5C,8CAMqB;AACrB,6DAA4C;AAC5C,8CAMqB;AACrB,uDAAsC;AACtC,wCAAoG;AAEpG,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyC/E,CAAC;IAvCC;;;;;;;;;;OAUG;IACH,SAAS,CACP,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AA5CD,0BA4CC;AAuLD,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC9B,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC"}