@snagsolutions/sdk 0.1.0-alpha.216 → 0.1.0-alpha.217
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 +8 -0
- package/package.json +1 -1
- package/resources/minting/contracts.d.ts +127 -1
- package/resources/minting/contracts.d.ts.map +1 -1
- package/resources/minting/contracts.js +7 -0
- package/resources/minting/contracts.js.map +1 -1
- package/resources/minting/contracts.mjs +7 -0
- package/resources/minting/contracts.mjs.map +1 -1
- package/resources/minting/index.d.ts +1 -1
- package/resources/minting/index.d.ts.map +1 -1
- package/resources/minting/index.js.map +1 -1
- package/resources/minting/index.mjs +1 -1
- package/resources/minting/index.mjs.map +1 -1
- package/resources/minting/minting.d.ts +2 -2
- package/resources/minting/minting.d.ts.map +1 -1
- package/resources/minting/minting.js.map +1 -1
- package/resources/minting/minting.mjs +1 -1
- package/resources/minting/minting.mjs.map +1 -1
- package/src/resources/minting/contracts.ts +333 -1
- package/src/resources/minting/index.ts +7 -1
- package/src/resources/minting/minting.ts +9 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.217 (2026-01-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.216...v0.1.0-alpha.217](https://github.com/Snag-Solutions/node-sdk/compare/v0.1.0-alpha.216...v0.1.0-alpha.217)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([8c5afd5](https://github.com/Snag-Solutions/node-sdk/commit/8c5afd56fd6ef9daafe31b2a6d8406aff4603dc0))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.216 (2026-01-20)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.215...v0.1.0-alpha.216](https://github.com/Snag-Solutions/node-sdk/compare/v0.1.0-alpha.215...v0.1.0-alpha.216)
|
package/package.json
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
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>;
|
|
4
14
|
/**
|
|
5
15
|
* Generates a signature for minting an asset on a given contract
|
|
6
16
|
*
|
|
@@ -14,6 +24,114 @@ export declare class Contracts extends APIResource {
|
|
|
14
24
|
*/
|
|
15
25
|
mint(body: ContractMintParams, options?: Core.RequestOptions): Core.APIPromise<ContractMintResponse>;
|
|
16
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;
|
|
37
|
+
description: string | null;
|
|
38
|
+
enableGasless: boolean;
|
|
39
|
+
externalLinkUrl: string | null;
|
|
40
|
+
hasRevealMechanic: boolean;
|
|
41
|
+
hideInactiveListings: boolean;
|
|
42
|
+
imageUrl: string | null;
|
|
43
|
+
isFreeClaimForBadgeHolders: boolean;
|
|
44
|
+
isFreeClaimForTokenHolders: boolean;
|
|
45
|
+
isListed: boolean;
|
|
46
|
+
isPerAssetMintLimit: boolean;
|
|
47
|
+
isSoulbound: boolean;
|
|
48
|
+
mintingContractAssets: Array<Data.MintingContractAsset>;
|
|
49
|
+
mintingContractBadgeAssociation: Array<Data.MintingContractBadgeAssociation>;
|
|
50
|
+
mustOwnCollections: Array<Data.MustOwnCollection>;
|
|
51
|
+
name: string;
|
|
52
|
+
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';
|
|
53
|
+
organizationId: string;
|
|
54
|
+
preRevealMedia: string | null;
|
|
55
|
+
primarySaleRecipientAddress: string;
|
|
56
|
+
relayerId: string | null;
|
|
57
|
+
requireHoldingAllGatedItems: boolean;
|
|
58
|
+
revealAvailableAt: string | null;
|
|
59
|
+
royaltyFee: unknown;
|
|
60
|
+
royaltyFeeAddress: string;
|
|
61
|
+
shouldCollectEmail: boolean;
|
|
62
|
+
showOnMarketplace: boolean;
|
|
63
|
+
sortId: number | null;
|
|
64
|
+
symbol: string;
|
|
65
|
+
tokenType: 'erc721' | 'erc1155' | 'erc721c';
|
|
66
|
+
websiteCollectionId: string | null;
|
|
67
|
+
websiteId: string;
|
|
68
|
+
}
|
|
69
|
+
namespace Data {
|
|
70
|
+
interface _Count {
|
|
71
|
+
mintingContractAssets: number;
|
|
72
|
+
}
|
|
73
|
+
interface MintingContractAsset {
|
|
74
|
+
id: string;
|
|
75
|
+
animationUrl: string | null;
|
|
76
|
+
assetNr: number;
|
|
77
|
+
auctionItems: Array<MintingContractAsset.AuctionItem>;
|
|
78
|
+
collectInfoType: 'customInput' | 'freeText' | 'shippingDetails' | null;
|
|
79
|
+
currencyAddress: string | null;
|
|
80
|
+
currencyDecimals: number | null;
|
|
81
|
+
description: string | null;
|
|
82
|
+
imageUrl: string | null;
|
|
83
|
+
isHidden: boolean;
|
|
84
|
+
isListed: boolean;
|
|
85
|
+
isPhygitalItem: boolean;
|
|
86
|
+
listingEndsAt: string | null;
|
|
87
|
+
listingStartsAt: string | null;
|
|
88
|
+
loyaltyCurrencyId: string | null;
|
|
89
|
+
name: string;
|
|
90
|
+
organizationId: string;
|
|
91
|
+
price: unknown;
|
|
92
|
+
quantity: number;
|
|
93
|
+
quantityMinted: number;
|
|
94
|
+
revealedAt: string | null;
|
|
95
|
+
shouldCollectUserInfo: boolean;
|
|
96
|
+
tokenId: number | null;
|
|
97
|
+
unlimitedQty: boolean;
|
|
98
|
+
websiteId: string;
|
|
99
|
+
}
|
|
100
|
+
namespace MintingContractAsset {
|
|
101
|
+
interface AuctionItem {
|
|
102
|
+
id: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
interface MintingContractBadgeAssociation {
|
|
106
|
+
loyaltyBadge: MintingContractBadgeAssociation.LoyaltyBadge;
|
|
107
|
+
}
|
|
108
|
+
namespace MintingContractBadgeAssociation {
|
|
109
|
+
interface LoyaltyBadge {
|
|
110
|
+
id: string;
|
|
111
|
+
imageUrl: string | null;
|
|
112
|
+
name: string;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
interface MustOwnCollection {
|
|
116
|
+
address: string;
|
|
117
|
+
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';
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
interface Stat {
|
|
121
|
+
_count: Stat._Count;
|
|
122
|
+
_sum: Stat._Sum;
|
|
123
|
+
mintingContractId: string;
|
|
124
|
+
}
|
|
125
|
+
namespace Stat {
|
|
126
|
+
interface _Count {
|
|
127
|
+
isListed: number;
|
|
128
|
+
}
|
|
129
|
+
interface _Sum {
|
|
130
|
+
quantity: number | null;
|
|
131
|
+
quantityMinted: number | null;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
17
135
|
/**
|
|
18
136
|
* Use the id returned here to fetch the status and signature of the mint from the
|
|
19
137
|
* `/api/minting/status/:id` endpoint
|
|
@@ -21,6 +139,14 @@ export declare class Contracts extends APIResource {
|
|
|
21
139
|
export interface ContractMintResponse {
|
|
22
140
|
mintingContractAssetMintStatusId: string;
|
|
23
141
|
}
|
|
142
|
+
export interface ContractListParams {
|
|
143
|
+
includeDeleted?: boolean | null;
|
|
144
|
+
limit?: number;
|
|
145
|
+
organizationId?: string;
|
|
146
|
+
showOnMarketplace?: boolean | null;
|
|
147
|
+
startingAfter?: string;
|
|
148
|
+
websiteId?: string;
|
|
149
|
+
}
|
|
24
150
|
export interface ContractMintParams {
|
|
25
151
|
assetId: string;
|
|
26
152
|
contractId: string;
|
|
@@ -33,6 +159,6 @@ export interface ContractMintParams {
|
|
|
33
159
|
walletAddress?: string;
|
|
34
160
|
}
|
|
35
161
|
export declare namespace Contracts {
|
|
36
|
-
export { type ContractMintResponse as ContractMintResponse, type ContractMintParams as ContractMintParams };
|
|
162
|
+
export { type ContractListResponse as ContractListResponse, type ContractMintResponse as ContractMintResponse, type ContractListParams as ContractListParams, type ContractMintParams as ContractMintParams, };
|
|
37
163
|
}
|
|
38
164
|
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -1 +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;
|
|
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,I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;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,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"}
|
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Contracts = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
6
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
|
+
}
|
|
7
14
|
/**
|
|
8
15
|
* Generates a signature for minting an asset on a given contract
|
|
9
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
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"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
3
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
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* Generates a signature for minting an asset on a given contract
|
|
6
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.mjs","sourceRoot":"","sources":["../../src/resources/minting/contracts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Allowlist, type AllowlistListResponse, type AllowlistUpsertResponse, type AllowlistListParams, type AllowlistUpsertParams, } from "./allowlist.js";
|
|
2
|
-
export { Contracts, type ContractMintResponse, type ContractMintParams } from "./contracts.js";
|
|
2
|
+
export { Contracts, type ContractListResponse, type ContractMintResponse, type ContractListParams, type ContractMintParams, } from "./contracts.js";
|
|
3
3
|
export { Minting, type MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse, type MintingGetAssetsParams, type MintingGetTokenGateStatusParams, } from "./minting.js";
|
|
4
4
|
export { Status, type StatusRetrieveResponse, type StatusUpdateResponse, type StatusUpdateParams, } from "./status.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Allowlist, } from "./allowlist.mjs";
|
|
3
|
-
export { Contracts } from "./contracts.mjs";
|
|
3
|
+
export { Contracts, } from "./contracts.mjs";
|
|
4
4
|
export { Minting, } from "./minting.mjs";
|
|
5
5
|
export { Status, } from "./status.mjs";
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/minting/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAKV;OACM,
|
|
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"}
|
|
@@ -3,7 +3,7 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
import * as AllowlistAPI from "./allowlist.js";
|
|
4
4
|
import { Allowlist, AllowlistListParams, AllowlistListResponse, AllowlistUpsertParams, AllowlistUpsertResponse } from "./allowlist.js";
|
|
5
5
|
import * as ContractsAPI from "./contracts.js";
|
|
6
|
-
import { ContractMintParams, ContractMintResponse, Contracts } from "./contracts.js";
|
|
6
|
+
import { ContractListParams, ContractListResponse, ContractMintParams, ContractMintResponse, Contracts } from "./contracts.js";
|
|
7
7
|
import * as StatusAPI from "./status.js";
|
|
8
8
|
import { Status, StatusRetrieveResponse, StatusUpdateParams, StatusUpdateResponse } from "./status.js";
|
|
9
9
|
export declare class Minting extends APIResource {
|
|
@@ -137,6 +137,6 @@ export declare namespace Minting {
|
|
|
137
137
|
export { type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse as MintingGetTokenGateStatusResponse, type MintingGetAssetsParams as MintingGetAssetsParams, type MintingGetTokenGateStatusParams as MintingGetTokenGateStatusParams, };
|
|
138
138
|
export { Status as Status, type StatusRetrieveResponse as StatusRetrieveResponse, type StatusUpdateResponse as StatusUpdateResponse, type StatusUpdateParams as StatusUpdateParams, };
|
|
139
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 ContractMintResponse as ContractMintResponse, type ContractMintParams as ContractMintParams, };
|
|
140
|
+
export { Contracts as Contracts, type ContractListResponse as ContractListResponse, type ContractMintResponse as ContractMintResponse, type ContractListParams as ContractListParams, type ContractMintParams as ContractMintParams, };
|
|
141
141
|
}
|
|
142
142
|
//# sourceMappingURL=minting.d.ts.map
|
|
@@ -1 +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,
|
|
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,qBA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IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../resource.mjs";
|
|
|
3
3
|
import * as AllowlistAPI from "./allowlist.mjs";
|
|
4
4
|
import { Allowlist, } from "./allowlist.mjs";
|
|
5
5
|
import * as ContractsAPI from "./contracts.mjs";
|
|
6
|
-
import { Contracts } from "./contracts.mjs";
|
|
6
|
+
import { Contracts, } from "./contracts.mjs";
|
|
7
7
|
import * as StatusAPI from "./status.mjs";
|
|
8
8
|
import { Status } from "./status.mjs";
|
|
9
9
|
export class Minting extends APIResource {
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
4
5
|
import * as Core from '../../core';
|
|
5
6
|
|
|
6
7
|
export class Contracts extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get minting contracts
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const contracts = await client.minting.contracts.list();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
list(query?: ContractListParams, options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
|
|
17
|
+
list(options?: Core.RequestOptions): Core.APIPromise<ContractListResponse>;
|
|
18
|
+
list(
|
|
19
|
+
query: ContractListParams | Core.RequestOptions = {},
|
|
20
|
+
options?: Core.RequestOptions,
|
|
21
|
+
): Core.APIPromise<ContractListResponse> {
|
|
22
|
+
if (isRequestOptions(query)) {
|
|
23
|
+
return this.list({}, query);
|
|
24
|
+
}
|
|
25
|
+
return this._client.get('/api/minting/contracts', { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
7
28
|
/**
|
|
8
29
|
* Generates a signature for minting an asset on a given contract
|
|
9
30
|
*
|
|
@@ -20,6 +41,298 @@ export class Contracts extends APIResource {
|
|
|
20
41
|
}
|
|
21
42
|
}
|
|
22
43
|
|
|
44
|
+
export interface ContractListResponse {
|
|
45
|
+
data: Array<ContractListResponse.Data>;
|
|
46
|
+
|
|
47
|
+
hasNextPage: boolean;
|
|
48
|
+
|
|
49
|
+
stats: Array<ContractListResponse.Stat>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace ContractListResponse {
|
|
53
|
+
export interface Data {
|
|
54
|
+
id: string;
|
|
55
|
+
|
|
56
|
+
_count: Data._Count;
|
|
57
|
+
|
|
58
|
+
address: string;
|
|
59
|
+
|
|
60
|
+
description: string | null;
|
|
61
|
+
|
|
62
|
+
enableGasless: boolean;
|
|
63
|
+
|
|
64
|
+
externalLinkUrl: string | null;
|
|
65
|
+
|
|
66
|
+
hasRevealMechanic: boolean;
|
|
67
|
+
|
|
68
|
+
hideInactiveListings: boolean;
|
|
69
|
+
|
|
70
|
+
imageUrl: string | null;
|
|
71
|
+
|
|
72
|
+
isFreeClaimForBadgeHolders: boolean;
|
|
73
|
+
|
|
74
|
+
isFreeClaimForTokenHolders: boolean;
|
|
75
|
+
|
|
76
|
+
isListed: boolean;
|
|
77
|
+
|
|
78
|
+
isPerAssetMintLimit: boolean;
|
|
79
|
+
|
|
80
|
+
isSoulbound: boolean;
|
|
81
|
+
|
|
82
|
+
mintingContractAssets: Array<Data.MintingContractAsset>;
|
|
83
|
+
|
|
84
|
+
mintingContractBadgeAssociation: Array<Data.MintingContractBadgeAssociation>;
|
|
85
|
+
|
|
86
|
+
mustOwnCollections: Array<Data.MustOwnCollection>;
|
|
87
|
+
|
|
88
|
+
name: string;
|
|
89
|
+
|
|
90
|
+
network:
|
|
91
|
+
| 'abstract'
|
|
92
|
+
| 'abstractTestnet'
|
|
93
|
+
| 'apechain'
|
|
94
|
+
| 'arbitrum'
|
|
95
|
+
| 'avalanche'
|
|
96
|
+
| 'avalancheFuji'
|
|
97
|
+
| 'base'
|
|
98
|
+
| 'baseSepolia'
|
|
99
|
+
| 'berachain'
|
|
100
|
+
| 'berachainArtio'
|
|
101
|
+
| 'berachainBepolia'
|
|
102
|
+
| 'binance'
|
|
103
|
+
| 'bscTestnet'
|
|
104
|
+
| 'campTestnet'
|
|
105
|
+
| 'fantom'
|
|
106
|
+
| 'fantomTestnet'
|
|
107
|
+
| 'flowMainnet'
|
|
108
|
+
| 'mainnet'
|
|
109
|
+
| 'nexusTestnet'
|
|
110
|
+
| 'optimism'
|
|
111
|
+
| 'polygon'
|
|
112
|
+
| 'polygon_mumbai'
|
|
113
|
+
| 'skaleNebula'
|
|
114
|
+
| 'skaleEuropa'
|
|
115
|
+
| 'skaleCalypso'
|
|
116
|
+
| 'solana'
|
|
117
|
+
| 'sophon'
|
|
118
|
+
| 'sophonTestnet'
|
|
119
|
+
| 'sui'
|
|
120
|
+
| 'superseed'
|
|
121
|
+
| 'superseedSepolia'
|
|
122
|
+
| 'vanar'
|
|
123
|
+
| 'xai'
|
|
124
|
+
| 'zksync'
|
|
125
|
+
| 'coti'
|
|
126
|
+
| 'cotiTestnet'
|
|
127
|
+
| 'morph'
|
|
128
|
+
| 'morphTestnet'
|
|
129
|
+
| 'morphHolesky'
|
|
130
|
+
| 'ultra'
|
|
131
|
+
| 'ultraTestnet'
|
|
132
|
+
| 'nitrograph'
|
|
133
|
+
| 'sepolia'
|
|
134
|
+
| 'optimism_sepolia'
|
|
135
|
+
| 'arbitrumSepolia'
|
|
136
|
+
| 'goerli'
|
|
137
|
+
| 'optimism_goerli'
|
|
138
|
+
| 'arbitrumGoerli'
|
|
139
|
+
| 'basecamp'
|
|
140
|
+
| 'somnia'
|
|
141
|
+
| 'zkverify'
|
|
142
|
+
| 'polkadot'
|
|
143
|
+
| 'kusama'
|
|
144
|
+
| 'flow_cadence';
|
|
145
|
+
|
|
146
|
+
organizationId: string;
|
|
147
|
+
|
|
148
|
+
preRevealMedia: string | null;
|
|
149
|
+
|
|
150
|
+
primarySaleRecipientAddress: string;
|
|
151
|
+
|
|
152
|
+
relayerId: string | null;
|
|
153
|
+
|
|
154
|
+
requireHoldingAllGatedItems: boolean;
|
|
155
|
+
|
|
156
|
+
revealAvailableAt: string | null;
|
|
157
|
+
|
|
158
|
+
royaltyFee: unknown;
|
|
159
|
+
|
|
160
|
+
royaltyFeeAddress: string;
|
|
161
|
+
|
|
162
|
+
shouldCollectEmail: boolean;
|
|
163
|
+
|
|
164
|
+
showOnMarketplace: boolean;
|
|
165
|
+
|
|
166
|
+
sortId: number | null;
|
|
167
|
+
|
|
168
|
+
symbol: string;
|
|
169
|
+
|
|
170
|
+
tokenType: 'erc721' | 'erc1155' | 'erc721c';
|
|
171
|
+
|
|
172
|
+
websiteCollectionId: string | null;
|
|
173
|
+
|
|
174
|
+
websiteId: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export namespace Data {
|
|
178
|
+
export interface _Count {
|
|
179
|
+
mintingContractAssets: number;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface MintingContractAsset {
|
|
183
|
+
id: string;
|
|
184
|
+
|
|
185
|
+
animationUrl: string | null;
|
|
186
|
+
|
|
187
|
+
assetNr: number;
|
|
188
|
+
|
|
189
|
+
auctionItems: Array<MintingContractAsset.AuctionItem>;
|
|
190
|
+
|
|
191
|
+
collectInfoType: 'customInput' | 'freeText' | 'shippingDetails' | null;
|
|
192
|
+
|
|
193
|
+
currencyAddress: string | null;
|
|
194
|
+
|
|
195
|
+
currencyDecimals: number | null;
|
|
196
|
+
|
|
197
|
+
description: string | null;
|
|
198
|
+
|
|
199
|
+
imageUrl: string | null;
|
|
200
|
+
|
|
201
|
+
isHidden: boolean;
|
|
202
|
+
|
|
203
|
+
isListed: boolean;
|
|
204
|
+
|
|
205
|
+
isPhygitalItem: boolean;
|
|
206
|
+
|
|
207
|
+
listingEndsAt: string | null;
|
|
208
|
+
|
|
209
|
+
listingStartsAt: string | null;
|
|
210
|
+
|
|
211
|
+
loyaltyCurrencyId: string | null;
|
|
212
|
+
|
|
213
|
+
name: string;
|
|
214
|
+
|
|
215
|
+
organizationId: string;
|
|
216
|
+
|
|
217
|
+
price: unknown;
|
|
218
|
+
|
|
219
|
+
quantity: number;
|
|
220
|
+
|
|
221
|
+
quantityMinted: number;
|
|
222
|
+
|
|
223
|
+
revealedAt: string | null;
|
|
224
|
+
|
|
225
|
+
shouldCollectUserInfo: boolean;
|
|
226
|
+
|
|
227
|
+
tokenId: number | null;
|
|
228
|
+
|
|
229
|
+
unlimitedQty: boolean;
|
|
230
|
+
|
|
231
|
+
websiteId: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export namespace MintingContractAsset {
|
|
235
|
+
export interface AuctionItem {
|
|
236
|
+
id: string;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface MintingContractBadgeAssociation {
|
|
241
|
+
loyaltyBadge: MintingContractBadgeAssociation.LoyaltyBadge;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export namespace MintingContractBadgeAssociation {
|
|
245
|
+
export interface LoyaltyBadge {
|
|
246
|
+
id: string;
|
|
247
|
+
|
|
248
|
+
imageUrl: string | null;
|
|
249
|
+
|
|
250
|
+
name: string;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface MustOwnCollection {
|
|
255
|
+
address: string;
|
|
256
|
+
|
|
257
|
+
network:
|
|
258
|
+
| 'abstract'
|
|
259
|
+
| 'abstractTestnet'
|
|
260
|
+
| 'apechain'
|
|
261
|
+
| 'arbitrum'
|
|
262
|
+
| 'avalanche'
|
|
263
|
+
| 'avalancheFuji'
|
|
264
|
+
| 'base'
|
|
265
|
+
| 'baseSepolia'
|
|
266
|
+
| 'berachain'
|
|
267
|
+
| 'berachainArtio'
|
|
268
|
+
| 'berachainBepolia'
|
|
269
|
+
| 'binance'
|
|
270
|
+
| 'bscTestnet'
|
|
271
|
+
| 'campTestnet'
|
|
272
|
+
| 'fantom'
|
|
273
|
+
| 'fantomTestnet'
|
|
274
|
+
| 'flowMainnet'
|
|
275
|
+
| 'mainnet'
|
|
276
|
+
| 'nexusTestnet'
|
|
277
|
+
| 'optimism'
|
|
278
|
+
| 'polygon'
|
|
279
|
+
| 'polygon_mumbai'
|
|
280
|
+
| 'skaleNebula'
|
|
281
|
+
| 'skaleEuropa'
|
|
282
|
+
| 'skaleCalypso'
|
|
283
|
+
| 'solana'
|
|
284
|
+
| 'sophon'
|
|
285
|
+
| 'sophonTestnet'
|
|
286
|
+
| 'sui'
|
|
287
|
+
| 'superseed'
|
|
288
|
+
| 'superseedSepolia'
|
|
289
|
+
| 'vanar'
|
|
290
|
+
| 'xai'
|
|
291
|
+
| 'zksync'
|
|
292
|
+
| 'coti'
|
|
293
|
+
| 'cotiTestnet'
|
|
294
|
+
| 'morph'
|
|
295
|
+
| 'morphTestnet'
|
|
296
|
+
| 'morphHolesky'
|
|
297
|
+
| 'ultra'
|
|
298
|
+
| 'ultraTestnet'
|
|
299
|
+
| 'nitrograph'
|
|
300
|
+
| 'sepolia'
|
|
301
|
+
| 'optimism_sepolia'
|
|
302
|
+
| 'arbitrumSepolia'
|
|
303
|
+
| 'goerli'
|
|
304
|
+
| 'optimism_goerli'
|
|
305
|
+
| 'arbitrumGoerli'
|
|
306
|
+
| 'basecamp'
|
|
307
|
+
| 'somnia'
|
|
308
|
+
| 'zkverify'
|
|
309
|
+
| 'polkadot'
|
|
310
|
+
| 'kusama'
|
|
311
|
+
| 'flow_cadence';
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface Stat {
|
|
316
|
+
_count: Stat._Count;
|
|
317
|
+
|
|
318
|
+
_sum: Stat._Sum;
|
|
319
|
+
|
|
320
|
+
mintingContractId: string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export namespace Stat {
|
|
324
|
+
export interface _Count {
|
|
325
|
+
isListed: number;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface _Sum {
|
|
329
|
+
quantity: number | null;
|
|
330
|
+
|
|
331
|
+
quantityMinted: number | null;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
23
336
|
/**
|
|
24
337
|
* Use the id returned here to fetch the status and signature of the mint from the
|
|
25
338
|
* `/api/minting/status/:id` endpoint
|
|
@@ -28,6 +341,20 @@ export interface ContractMintResponse {
|
|
|
28
341
|
mintingContractAssetMintStatusId: string;
|
|
29
342
|
}
|
|
30
343
|
|
|
344
|
+
export interface ContractListParams {
|
|
345
|
+
includeDeleted?: boolean | null;
|
|
346
|
+
|
|
347
|
+
limit?: number;
|
|
348
|
+
|
|
349
|
+
organizationId?: string;
|
|
350
|
+
|
|
351
|
+
showOnMarketplace?: boolean | null;
|
|
352
|
+
|
|
353
|
+
startingAfter?: string;
|
|
354
|
+
|
|
355
|
+
websiteId?: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
31
358
|
export interface ContractMintParams {
|
|
32
359
|
assetId: string;
|
|
33
360
|
|
|
@@ -69,5 +396,10 @@ export interface ContractMintParams {
|
|
|
69
396
|
}
|
|
70
397
|
|
|
71
398
|
export declare namespace Contracts {
|
|
72
|
-
export {
|
|
399
|
+
export {
|
|
400
|
+
type ContractListResponse as ContractListResponse,
|
|
401
|
+
type ContractMintResponse as ContractMintResponse,
|
|
402
|
+
type ContractListParams as ContractListParams,
|
|
403
|
+
type ContractMintParams as ContractMintParams,
|
|
404
|
+
};
|
|
73
405
|
}
|
|
@@ -7,7 +7,13 @@ export {
|
|
|
7
7
|
type AllowlistListParams,
|
|
8
8
|
type AllowlistUpsertParams,
|
|
9
9
|
} from './allowlist';
|
|
10
|
-
export {
|
|
10
|
+
export {
|
|
11
|
+
Contracts,
|
|
12
|
+
type ContractListResponse,
|
|
13
|
+
type ContractMintResponse,
|
|
14
|
+
type ContractListParams,
|
|
15
|
+
type ContractMintParams,
|
|
16
|
+
} from './contracts';
|
|
11
17
|
export {
|
|
12
18
|
Minting,
|
|
13
19
|
type MintingGetAssetsResponse,
|
|
@@ -11,7 +11,13 @@ import {
|
|
|
11
11
|
AllowlistUpsertResponse,
|
|
12
12
|
} from './allowlist';
|
|
13
13
|
import * as ContractsAPI from './contracts';
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
ContractListParams,
|
|
16
|
+
ContractListResponse,
|
|
17
|
+
ContractMintParams,
|
|
18
|
+
ContractMintResponse,
|
|
19
|
+
Contracts,
|
|
20
|
+
} from './contracts';
|
|
15
21
|
import * as StatusAPI from './status';
|
|
16
22
|
import { Status, StatusRetrieveResponse, StatusUpdateParams, StatusUpdateResponse } from './status';
|
|
17
23
|
|
|
@@ -263,7 +269,9 @@ export declare namespace Minting {
|
|
|
263
269
|
|
|
264
270
|
export {
|
|
265
271
|
Contracts as Contracts,
|
|
272
|
+
type ContractListResponse as ContractListResponse,
|
|
266
273
|
type ContractMintResponse as ContractMintResponse,
|
|
274
|
+
type ContractListParams as ContractListParams,
|
|
267
275
|
type ContractMintParams as ContractMintParams,
|
|
268
276
|
};
|
|
269
277
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.217'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.217";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.217'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.217'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|