@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.
- package/CHANGELOG.md +13 -254
- package/LICENSE +1 -1
- package/README.md +15 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +29 -17
- package/core.js.map +1 -1
- package/core.mjs +29 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +14 -8
- package/index.d.ts +14 -8
- package/index.d.ts.map +1 -1
- package/index.js +12 -5
- package/index.js.map +1 -1
- package/index.mjs +13 -6
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +16 -2
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +8 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +8 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +368 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +72 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +45 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +126 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +1 -133
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -22
- package/resources/auctions.js.map +1 -1
- package/resources/auctions.mjs +1 -20
- package/resources/auctions.mjs.map +1 -1
- package/resources/auth.d.ts +66 -6
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +6 -0
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +6 -0
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -3
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +96 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +60 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +14 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +14 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +666 -135
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +19 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +3 -3
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +5 -5
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +2 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +9 -9
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +6 -6
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +6 -6
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +39 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +23 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +23 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +55 -4
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +9 -0
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +9 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +60 -6
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +39 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +39 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2842 -8
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +14 -0
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +14 -0
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +279 -56
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +18 -0
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +18 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +2299 -365
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +4 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +11 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +5 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/posts.d.ts +145 -0
- package/resources/loyalty/transactions/posts.d.ts.map +1 -0
- package/resources/loyalty/transactions/posts.js +32 -0
- package/resources/loyalty/transactions/posts.js.map +1 -0
- package/resources/loyalty/transactions/posts.mjs +28 -0
- package/resources/loyalty/transactions/posts.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +121 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +564 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +110 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +83 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -248
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -18
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty/transactions.mjs +1 -16
- package/resources/loyalty/transactions.mjs.map +1 -1
- package/resources/minting/allowlist.d.ts +84 -0
- package/resources/minting/allowlist.d.ts.map +1 -0
- package/resources/minting/allowlist.js +42 -0
- package/resources/minting/allowlist.js.map +1 -0
- package/resources/minting/allowlist.mjs +38 -0
- package/resources/minting/allowlist.mjs.map +1 -0
- package/resources/minting/contracts.d.ts +165 -0
- package/resources/minting/contracts.d.ts.map +1 -0
- package/resources/minting/contracts.js +30 -0
- package/resources/minting/contracts.js.map +1 -0
- package/resources/minting/contracts.mjs +26 -0
- package/resources/minting/contracts.mjs.map +1 -0
- package/resources/minting/index.d.ts +5 -0
- package/resources/minting/index.d.ts.map +1 -0
- package/resources/minting/index.js +13 -0
- package/resources/minting/index.js.map +1 -0
- package/resources/minting/index.mjs +6 -0
- package/resources/minting/index.mjs.map +1 -0
- package/resources/minting/minting.d.ts +142 -0
- package/resources/minting/minting.d.ts.map +1 -0
- package/resources/minting/minting.js +79 -0
- package/resources/minting/minting.js.map +1 -0
- package/resources/minting/minting.mjs +52 -0
- package/resources/minting/minting.mjs.map +1 -0
- package/resources/minting/status.d.ts +44 -0
- package/resources/minting/status.d.ts.map +1 -0
- package/resources/minting/status.js +33 -0
- package/resources/minting/status.js.map +1 -0
- package/resources/minting/status.mjs +29 -0
- package/resources/minting/status.mjs.map +1 -0
- package/resources/minting.d.ts +1 -94
- package/resources/minting.d.ts.map +1 -1
- package/resources/minting.js +15 -11
- package/resources/minting.js.map +1 -1
- package/resources/minting.mjs +1 -9
- package/resources/minting.mjs.map +1 -1
- package/resources/referral/referral.d.ts +12 -3
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +11 -5
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +11 -5
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +30 -3
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +12 -4
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +12 -4
- package/resources/referral/users.mjs.map +1 -1
- package/resources/token-claims.d.ts +160 -0
- package/resources/token-claims.d.ts.map +1 -0
- package/resources/token-claims.js +46 -0
- package/resources/token-claims.js.map +1 -0
- package/resources/token-claims.mjs +42 -0
- package/resources/token-claims.mjs.map +1 -0
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +36 -3
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +196 -35
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +58 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +58 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +22 -1
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +21 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +21 -0
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +24 -1
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +23 -0
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +23 -0
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +118 -0
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +7 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +7 -0
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +45 -16
- package/src/index.ts +82 -4
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -3
- package/src/resources/auctions/auctions.ts +561 -0
- package/src/resources/auctions/index.ts +19 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +170 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +121 -6
- package/src/resources/index.ts +41 -3
- package/src/resources/loyalty/account-streaks.ts +128 -0
- package/src/resources/loyalty/accounts.ts +65 -18
- package/src/resources/loyalty/badges.ts +790 -146
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +13 -2
- package/src/resources/loyalty/loyalty.ts +30 -12
- package/src/resources/loyalty/multipliers.ts +43 -4
- package/src/resources/loyalty/questions-responses.ts +64 -4
- package/src/resources/loyalty/questions.ts +64 -6
- package/src/resources/loyalty/rule-edits.ts +4118 -100
- package/src/resources/loyalty/rule-groups.ts +454 -64
- package/src/resources/loyalty/rules.ts +3499 -372
- package/src/resources/loyalty/transactions/index.ts +29 -0
- package/src/resources/loyalty/transactions/posts.ts +221 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +179 -0
- package/src/resources/loyalty/transactions/transactions.ts +914 -0
- package/src/resources/loyalty/transactions.ts +1 -440
- package/src/resources/minting/allowlist.ts +116 -0
- package/src/resources/minting/contracts.ts +408 -0
- package/src/resources/minting/index.ts +29 -0
- package/src/resources/minting/minting.ts +277 -0
- package/src/resources/minting/status.ts +70 -0
- package/src/resources/minting.ts +1 -157
- package/src/resources/referral/referral.ts +15 -11
- package/src/resources/referral/users.ts +45 -5
- package/src/resources/token-claims.ts +307 -0
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +61 -3
- package/src/resources/users/users.ts +264 -38
- package/src/resources/websites/website-collections.ts +41 -1
- package/src/resources/websites/website-user-roles.ts +26 -1
- package/src/resources/websites/websites.ts +142 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/loyalty/rule-chains.d.ts +0 -34
- package/resources/loyalty/rule-chains.d.ts.map +0 -1
- package/resources/loyalty/rule-chains.js +0 -15
- package/resources/loyalty/rule-chains.js.map +0 -1
- package/resources/loyalty/rule-chains.mjs +0 -11
- package/resources/loyalty/rule-chains.mjs.map +0 -1
- package/src/resources/loyalty/rule-chains.ts +0 -45
|
@@ -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' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence' | null;
|
|
54
|
+
organizationId: string;
|
|
55
|
+
preRevealMedia: string | null;
|
|
56
|
+
primarySaleRecipientAddress: string;
|
|
57
|
+
relayerId: string | null;
|
|
58
|
+
requireHoldingAllGatedItems: boolean;
|
|
59
|
+
revealAvailableAt: string | null;
|
|
60
|
+
royaltyFee: unknown;
|
|
61
|
+
royaltyFeeAddress: string;
|
|
62
|
+
shouldCollectEmail: boolean;
|
|
63
|
+
showOnMarketplace: boolean;
|
|
64
|
+
sortId: number | null;
|
|
65
|
+
symbol: string;
|
|
66
|
+
tokenType: 'erc721' | 'erc1155' | 'erc721c';
|
|
67
|
+
websiteCollectionId: string | null;
|
|
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' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | '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 | null;
|
|
145
|
+
limit?: number;
|
|
146
|
+
organizationId?: string;
|
|
147
|
+
showOnMarketplace?: boolean | null;
|
|
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';
|
|
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/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O,GACP,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,142 @@
|
|
|
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 | null;
|
|
88
|
+
/**
|
|
89
|
+
* Whether to include metadata in the response
|
|
90
|
+
*/
|
|
91
|
+
includeMetadata?: boolean | null;
|
|
92
|
+
/**
|
|
93
|
+
* Whether to include listed assets in the response
|
|
94
|
+
*/
|
|
95
|
+
isListed?: boolean | null;
|
|
96
|
+
/**
|
|
97
|
+
* Minting Contract Asset ID
|
|
98
|
+
*/
|
|
99
|
+
mintingContractAssetId?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Comma-separated list of Minting Contract UUIDs
|
|
102
|
+
*/
|
|
103
|
+
mintingContractIds?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Network
|
|
106
|
+
*/
|
|
107
|
+
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' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'flow_cadence';
|
|
108
|
+
/**
|
|
109
|
+
* Sort Key
|
|
110
|
+
*/
|
|
111
|
+
sortBy?: 'price' | 'startsAt' | 'assetNr' | null;
|
|
112
|
+
/**
|
|
113
|
+
* Sort Dir
|
|
114
|
+
*/
|
|
115
|
+
sortDir?: 'asc' | 'desc' | null;
|
|
116
|
+
/**
|
|
117
|
+
* Status
|
|
118
|
+
*/
|
|
119
|
+
status?: 'active' | 'past' | null;
|
|
120
|
+
/**
|
|
121
|
+
* Token ID
|
|
122
|
+
*/
|
|
123
|
+
tokenId?: string | Array<number> | null;
|
|
124
|
+
/**
|
|
125
|
+
* Wallet Address
|
|
126
|
+
*/
|
|
127
|
+
walletAddress?: string | Array<string>;
|
|
128
|
+
}
|
|
129
|
+
export interface MintingGetTokenGateStatusParams {
|
|
130
|
+
collectionAddress: string;
|
|
131
|
+
mintingContractAssetId: string;
|
|
132
|
+
mintingContractId: string;
|
|
133
|
+
network: string;
|
|
134
|
+
tokenId: string;
|
|
135
|
+
}
|
|
136
|
+
export declare namespace Minting {
|
|
137
|
+
export { type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse as MintingGetTokenGateStatusResponse, type MintingGetAssetsParams as MintingGetAssetsParams, type MintingGetTokenGateStatusParams as MintingGetTokenGateStatusParams, };
|
|
138
|
+
export { Status as Status, type StatusRetrieveResponse as StatusRetrieveResponse, type StatusUpdateResponse as StatusUpdateResponse, type StatusUpdateParams as StatusUpdateParams, };
|
|
139
|
+
export { Allowlist as Allowlist, type AllowlistListResponse as AllowlistListResponse, type AllowlistUpsertResponse as AllowlistUpsertResponse, type AllowlistListParams as AllowlistListParams, type AllowlistUpsertParams as AllowlistUpsertParams, };
|
|
140
|
+
export { Contracts as Contracts, type ContractListResponse as ContractListResponse, type ContractMintResponse as ContractMintResponse, type ContractListParams as ContractListParams, type ContractMintParams as ContractMintParams, };
|
|
141
|
+
}
|
|
142
|
+
//# 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,MAAM,UAAU,CAAC;AAEpG,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IA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AM,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;AA+KD,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC9B,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as AllowlistAPI from "./allowlist.mjs";
|
|
4
|
+
import { Allowlist, } from "./allowlist.mjs";
|
|
5
|
+
import * as ContractsAPI from "./contracts.mjs";
|
|
6
|
+
import { Contracts, } from "./contracts.mjs";
|
|
7
|
+
import * as StatusAPI from "./status.mjs";
|
|
8
|
+
import { Status } from "./status.mjs";
|
|
9
|
+
export class Minting extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.status = new StatusAPI.Status(this._client);
|
|
13
|
+
this.allowlist = new AllowlistAPI.Allowlist(this._client);
|
|
14
|
+
this.contracts = new ContractsAPI.Contracts(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns minting assets and any relevant context
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response = await client.minting.getAssets({
|
|
22
|
+
* organizationId: '00000000-0000-0000-0000-000000000000',
|
|
23
|
+
* websiteId: '00000000-0000-0000-0000-000000000000',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
getAssets(query, options) {
|
|
28
|
+
return this._client.get('/api/minting/assets', { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Pass in to see if a token is eligible for minting
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.minting.getTokenGateStatus({
|
|
36
|
+
* collectionAddress: 'collectionAddress',
|
|
37
|
+
* mintingContractAssetId:
|
|
38
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
39
|
+
* mintingContractId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
40
|
+
* network: 'network',
|
|
41
|
+
* tokenId: 'tokenId',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
getTokenGateStatus(query, options) {
|
|
46
|
+
return this._client.get('/api/minting/token_gate', { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
Minting.Status = Status;
|
|
50
|
+
Minting.Allowlist = Allowlist;
|
|
51
|
+
Minting.Contracts = Contracts;
|
|
52
|
+
//# sourceMappingURL=minting.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minting.mjs","sourceRoot":"","sources":["../../src/resources/minting/minting.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,YAAY;OACjB,EACL,SAAS,GAKV;OACM,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;OACM,KAAK,SAAS;OACd,EAAE,MAAM,EAAoE;AAEnF,MAAM,OAAO,OAAQ,SAAQ,WAAW;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;AA+KD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC"}
|