From d8fe5571776efc20f667b594b54a9d0a44621920 Mon Sep 17 00:00:00 2001 From: Allan Almeida <152931211+allan-almeida-imtbl@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:14:24 +1100 Subject: [PATCH] feat: Add Minting APIs to Blockchain Data package (#1493) --- .../sdk/src/blockchain-data.ts | 61 ++- .../blockchain-data/.openapi-generator/FILES | 3 + .../src/blockchain-data/domain/nfts-api.ts | 126 ++++++ .../models/create-mint-request-request.ts | 33 ++ .../models/create-mint-request-result.ts | 48 +++ .../src/blockchain-data/models/index.ts | 3 + .../models/list-mint-requests-result.ts | 42 ++ .../generated-clients/src/mr-openapi.json | 343 +++++++++++++++- .../src/multi-rollup/.openapi-generator/FILES | 3 + .../src/multi-rollup/domain/nfts-api-types.ts | 126 ++++++ .../src/multi-rollup/domain/nfts-api.ts | 367 ++++++++++++++++++ .../models/create-mint-request-request.ts | 33 ++ .../models/create-mint-request-result.ts | 48 +++ .../src/multi-rollup/models/index.ts | 3 + .../models/list-mint-requests-result.ts | 42 ++ 15 files changed, 1278 insertions(+), 3 deletions(-) create mode 100644 packages/internal/generated-clients/src/blockchain-data/models/create-mint-request-request.ts create mode 100644 packages/internal/generated-clients/src/blockchain-data/models/create-mint-request-result.ts create mode 100644 packages/internal/generated-clients/src/blockchain-data/models/list-mint-requests-result.ts create mode 100644 packages/internal/generated-clients/src/multi-rollup/models/create-mint-request-request.ts create mode 100644 packages/internal/generated-clients/src/multi-rollup/models/create-mint-request-result.ts create mode 100644 packages/internal/generated-clients/src/multi-rollup/models/list-mint-requests-result.ts diff --git a/packages/blockchain-data/sdk/src/blockchain-data.ts b/packages/blockchain-data/sdk/src/blockchain-data.ts index 92bc2ec6e3..0852cadeea 100644 --- a/packages/blockchain-data/sdk/src/blockchain-data.ts +++ b/packages/blockchain-data/sdk/src/blockchain-data.ts @@ -1,5 +1,8 @@ import { mr } from '@imtbl/generated-clients'; -import { BlockchainDataConfiguration, BlockchainDataModuleConfiguration, } from './config'; +import { + BlockchainDataConfiguration, + BlockchainDataModuleConfiguration, +} from './config'; import { formatError } from './utils/formatErrors'; export class BlockchainData { @@ -55,7 +58,7 @@ export class BlockchainData { * @throws {@link index.APIError} */ public async listActivityHistory( - request: mr.ActivitiesApiListActivityHistoryRequest + request: mr.ActivitiesApiListActivityHistoryRequest, ): Promise { return await this.activities .listActivityHistory(request) @@ -218,6 +221,60 @@ export class BlockchainData { }); } + /** + * Create a mint request to mint a set of NFTs for a given collection + * @experimental + * @param request - the request object containing the parameters to be provided in the API request + * @returns a promise that resolves with the remaining rate limits + * @throws {@link index.APIError} + */ + public async createMintRequest( + request: mr.NftsApiCreateMintRequestRequest, + ): Promise { + return await this.nfts + .createMintRequest(request) + .then((res) => res.data) + .catch((err) => { + throw formatError(err); + }); + } + + /** + * List all mint requests for a given contract address + * @experimental + * @param request - the request object containing the parameters to be provided in the API request + * @returns a promise that resolves with a list of mint requests + * @throws {@link index.APIError} + */ + public async listMintRequests( + request: mr.NftsApiListMintRequestsRequest, + ): Promise { + return await this.nfts + .listMintRequests(request) + .then((res) => res.data) + .catch((err) => { + throw formatError(err); + }); + } + + /** + * Retrieve the status of a single mint request identified by its reference ID + * @experimental + * @param request - the request object containing the parameters to be provided in the API request + * @returns a promise that resolves with a single mint request + * @throws {@link index.APIError} + */ + public async getMintRequest( + request: mr.NftsApiGetMintRequestRequest, + ): Promise { + return await this.nfts + .getMintRequest(request) + .then((res) => res.data) + .catch((err) => { + throw formatError(err); + }); + } + /** * List NFT owners by token ID * @param request - the request object containing the parameters to be provided in the API request diff --git a/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES index 965e81e724..9835f91903 100644 --- a/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES +++ b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES @@ -56,6 +56,8 @@ models/create-counterfactual-address-request.ts models/create-counterfactual-address-res-deprecated.ts models/create-counterfactual-address-res.ts models/create-listing-request-body.ts +models/create-mint-request-request.ts +models/create-mint-request-result.ts models/deposit.ts models/erc1155-item.ts models/erc20-item.ts @@ -86,6 +88,7 @@ models/list-collection-owners-result.ts models/list-collections-result.ts models/list-listings-result.ts models/list-metadata-result.ts +models/list-mint-requests-result.ts models/list-nftowners-result.ts models/list-nfts-by-owner-result.ts models/list-nfts-result.ts diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts index 7268f1231e..d31fc72873 100644 --- a/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts +++ b/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts @@ -16,27 +16,111 @@ // @ts-ignore import { APIError400 } from '../models'; // @ts-ignore +import { APIError401 } from '../models'; +// @ts-ignore +import { APIError403 } from '../models'; +// @ts-ignore import { APIError404 } from '../models'; // @ts-ignore +import { APIError429 } from '../models'; +// @ts-ignore import { APIError500 } from '../models'; // @ts-ignore +import { CreateMintRequestRequest } from '../models'; +// @ts-ignore +import { CreateMintRequestResult } from '../models'; +// @ts-ignore import { GetNFTResult } from '../models'; // @ts-ignore +import { ListMintRequestsResult } from '../models'; +// @ts-ignore import { ListNFTsByOwnerResult } from '../models'; // @ts-ignore import { ListNFTsResult } from '../models'; // @ts-ignore +import { MintRequestStatus } from '../models'; +// @ts-ignore export { APIError400 } from '../models'; // @ts-ignore +export { APIError401 } from '../models'; +// @ts-ignore +export { APIError403 } from '../models'; +// @ts-ignore export { APIError404 } from '../models'; // @ts-ignore +export { APIError429 } from '../models'; +// @ts-ignore export { APIError500 } from '../models'; // @ts-ignore +export { CreateMintRequestRequest } from '../models'; +// @ts-ignore +export { CreateMintRequestResult } from '../models'; +// @ts-ignore export { GetNFTResult } from '../models'; // @ts-ignore +export { ListMintRequestsResult } from '../models'; +// @ts-ignore export { ListNFTsByOwnerResult } from '../models'; // @ts-ignore export { ListNFTsResult } from '../models'; +// @ts-ignore +export { MintRequestStatus } from '../models'; + +/** + * Request parameters for createMintRequest operation in NftsApi. + * @export + * @interface CreateMintRequestRequest + */ +export interface CreateMintRequestRequestParams { + /** + * The address of contract + * @type {string} + * @memberof CreateMintRequest + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof CreateMintRequest + */ + readonly chainName: string + + /** + * the request body + * @type {CreateMintRequestRequest} + * @memberof CreateMintRequest + */ + readonly createMintRequestRequest: CreateMintRequestRequest +} + +/** + * Request parameters for getMintRequest operation in NftsApi. + * @export + * @interface GetMintRequestRequest + */ +export interface GetMintRequestRequestParams { + /** + * The address of contract + * @type {string} + * @memberof GetMintRequest + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof GetMintRequest + */ + readonly chainName: string + + /** + * The ID of the mint request + * @type {string} + * @memberof GetMintRequest + */ + readonly referenceId: string +} /** * Request parameters for getNFT operation in NftsApi. @@ -101,6 +185,48 @@ export interface ListAllNFTsRequestParams { readonly pageSize?: number } +/** + * Request parameters for listMintRequests operation in NftsApi. + * @export + * @interface ListMintRequestsRequest + */ +export interface ListMintRequestsRequestParams { + /** + * The address of contract + * @type {string} + * @memberof ListMintRequests + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof ListMintRequests + */ + readonly chainName: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListMintRequests + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListMintRequests + */ + readonly pageSize?: number + + /** + * The status of the mint request + * @type {MintRequestStatus} + * @memberof ListMintRequests + */ + readonly status?: MintRequestStatus +} + /** * Request parameters for listNFTs operation in NftsApi. * @export diff --git a/packages/internal/generated-clients/src/blockchain-data/models/create-mint-request-request.ts b/packages/internal/generated-clients/src/blockchain-data/models/create-mint-request-request.ts new file mode 100644 index 0000000000..23637b24da --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/create-mint-request-request.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MintAsset } from './mint-asset'; + +/** + * + * @export + * @interface CreateMintRequestRequest + */ +export interface CreateMintRequestRequest { + /** + * List of nft to be minted + * @type {Array} + * @memberof CreateMintRequestRequest + */ + 'assets': Array; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/create-mint-request-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/create-mint-request-result.ts new file mode 100644 index 0000000000..64dd6aa259 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/create-mint-request-result.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CreateMintRequestResult + */ +export interface CreateMintRequestResult { + /** + * + * @type {string} + * @memberof CreateMintRequestResult + */ + 'imx_mint_requests_limit': string; + /** + * + * @type {string} + * @memberof CreateMintRequestResult + */ + 'imx_mint_requests_limit_reset': string; + /** + * + * @type {string} + * @memberof CreateMintRequestResult + */ + 'imx_remaining_mint_requests': string; + /** + * + * @type {string} + * @memberof CreateMintRequestResult + */ + 'imx_mint_requests_retry_after': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/index.ts b/packages/internal/generated-clients/src/blockchain-data/models/index.ts index 3feea64027..13f4ab292d 100644 --- a/packages/internal/generated-clients/src/blockchain-data/models/index.ts +++ b/packages/internal/generated-clients/src/blockchain-data/models/index.ts @@ -29,6 +29,8 @@ export * from './chain-with-details-all-of'; export * from './collection'; export * from './collection-contract-type'; export * from './collection-metadata'; +export * from './create-mint-request-request'; +export * from './create-mint-request-result'; export * from './deposit'; export * from './erc1155-item'; export * from './erc20-item'; @@ -45,6 +47,7 @@ export * from './list-chains-result'; export * from './list-collection-owners-result'; export * from './list-collections-result'; export * from './list-metadata-result'; +export * from './list-mint-requests-result'; export * from './list-nftowners-result'; export * from './list-nfts-by-owner-result'; export * from './list-nfts-result'; diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-mint-requests-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-mint-requests-result.ts new file mode 100644 index 0000000000..6ade455b51 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-mint-requests-result.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetMintRequestResult } from './get-mint-request-result'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * List mint requests + * @export + * @interface ListMintRequestsResult + */ +export interface ListMintRequestsResult { + /** + * List of mint requests + * @type {Array} + * @memberof ListMintRequestsResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListMintRequestsResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/mr-openapi.json b/packages/internal/generated-clients/src/mr-openapi.json index b7dcdb40c0..f0e5244145 100644 --- a/packages/internal/generated-clients/src/mr-openapi.json +++ b/packages/internal/generated-clients/src/mr-openapi.json @@ -1814,6 +1814,264 @@ } } }, + "/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests": { + "post": { + "description": "[Experimental] Create a mint request to mint a set of NFTs for a given collection", + "summary": "[Experimental] Mint NFTs", + "security": [ + { + "ImmutableApiKey": [ + "write:mint-request" + ] + } + ], + "tags": [ + "nfts" + ], + "operationId": "CreateMintRequest", + "parameters": [ + { + "name": "contract_address", + "in": "path", + "description": "The address of contract", + "required": true, + "schema": { + "type": "string" + }, + "example": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e" + }, + { + "name": "chain_name", + "description": "The name of chain", + "in": "path", + "required": true, + "schema": { + "$ref": "#/components/schemas/ChainName" + } + } + ], + "requestBody": { + "description": "the request body", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateMintRequestRequest" + } + } + } + }, + "responses": { + "202": { + "description": "Accepted", + "headers": { + "imx-mint-requests-limit": { + "$ref": "#/components/headers/MintRequestsLimit" + }, + "imx-mint-requests-limit-reset": { + "$ref": "#/components/headers/MintRequestsLimitReset" + }, + "imx-remaining-mint-requests": { + "$ref": "#/components/headers/MintRequestsLimitRemaining" + }, + "imx-mint-requests-retry-after": { + "$ref": "#/components/headers/MintRequestsRetryAfter" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateMintRequestResult" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/UnauthorisedRequest" + }, + "403": { + "$ref": "#/components/responses/ForbiddenRequest" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "429": { + "$ref": "#/components/responses/TooManyMintRequests" + }, + "500": { + "$ref": "#/components/responses/InternalServerError" + } + } + }, + "get": { + "description": "[Experimental] Retrieve the status of all mints for a given contract address", + "summary": "[Experimental] List mint requests", + "security": [ + { + "ImmutableApiKey": [ + "write:mint-request" + ] + } + ], + "tags": [ + "nfts" + ], + "operationId": "ListMintRequests", + "parameters": [ + { + "name": "contract_address", + "in": "path", + "description": "The address of contract", + "required": true, + "schema": { + "type": "string" + }, + "example": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e" + }, + { + "name": "chain_name", + "description": "The name of chain", + "in": "path", + "required": true, + "schema": { + "$ref": "#/components/schemas/ChainName" + } + }, + { + "name": "page_cursor", + "in": "query", + "description": "Encoded page cursor to retrieve previous or next page. Use the value returned in the response.", + "required": false, + "schema": { + "$ref": "#/components/schemas/PageCursor" + } + }, + { + "name": "page_size", + "description": "Maximum number of items to return", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/PageSize" + } + }, + { + "name": "status", + "description": "The status of the mint request", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/MintRequestStatus" + } + } + ], + "responses": { + "200": { + "description": "200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListMintRequestsResult" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/UnauthorisedRequest" + }, + "403": { + "$ref": "#/components/responses/ForbiddenRequest" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalServerError" + } + } + } + }, + "/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}": { + "get": { + "description": "[Experimental] Retrieve the status of a mint request identified by its reference_id", + "summary": "[Experimental] Get mint request by reference ID", + "security": [ + { + "ImmutableApiKey": [ + "write:mint-request" + ] + } + ], + "tags": [ + "nfts" + ], + "operationId": "GetMintRequest", + "parameters": [ + { + "name": "contract_address", + "in": "path", + "description": "The address of contract", + "required": true, + "schema": { + "type": "string" + }, + "example": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e" + }, + { + "name": "chain_name", + "description": "The name of chain", + "in": "path", + "required": true, + "schema": { + "$ref": "#/components/schemas/ChainName" + } + }, + { + "name": "reference_id", + "description": "The ID of the mint request", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "example": "67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0" + } + ], + "responses": { + "200": { + "description": "200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListMintRequestsResult" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/UnauthorisedRequest" + }, + "403": { + "$ref": "#/components/responses/ForbiddenRequest" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalServerError" + } + } + } + }, "/v1/chains/{chain_name}/orders/cancel": { "post": { "tags": [ @@ -3154,6 +3412,30 @@ } } }, + "TooManyMintRequests": { + "description": "Too Many mint requests (429)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError429" + } + } + }, + "headers": { + "imx-mint-requests-limit": { + "$ref": "#/components/headers/MintRequestsLimit" + }, + "imx-mint-requests-limit-reset": { + "$ref": "#/components/headers/MintRequestsLimitReset" + }, + "imx-remaining-mint-requests": { + "$ref": "#/components/headers/MintRequestsLimitRemaining" + }, + "imx-mint-requests-retry-after": { + "$ref": "#/components/headers/MintRequestsRetryAfter" + } + } + }, "InternalServerError": { "description": "Internal Server Error (500)", "content": { @@ -4808,6 +5090,23 @@ "retry_after" ] }, + "CreateMintRequestRequest": { + "type": "object", + "properties": { + "assets": { + "type": "array", + "maxItems": 100, + "minItems": 1, + "description": "List of nft to be minted", + "items": { + "$ref": "#/components/schemas/MintAsset" + } + } + }, + "required": [ + "assets" + ] + }, "MintAsset": { "type": "object", "properties": { @@ -4830,6 +5129,49 @@ "owner_address" ] }, + "CreateMintRequestResult": { + "type": "object", + "properties": { + "imx_mint_requests_limit": { + "type": "string" + }, + "imx_mint_requests_limit_reset": { + "type": "string" + }, + "imx_remaining_mint_requests": { + "type": "string" + }, + "imx_mint_requests_retry_after": { + "type": "string" + } + }, + "required": [ + "imx_mint_requests_limit", + "imx_mint_requests_limit_reset", + "imx_remaining_mint_requests", + "imx_mint_requests_retry_after" + ] + }, + "ListMintRequestsResult": { + "type": "object", + "description": "List mint requests", + "properties": { + "result": { + "type": "array", + "description": "List of mint requests", + "items": { + "$ref": "#/components/schemas/GetMintRequestResult" + } + }, + "page": { + "$ref": "#/components/schemas/Page" + } + }, + "required": [ + "result", + "page" + ] + }, "GetMintRequestResult": { "type": "object", "properties": { @@ -4896,7 +5238,6 @@ "token_id", "transaction_hash", "error", - "status", "created_at", "updated_at" ] diff --git a/packages/internal/generated-clients/src/multi-rollup/.openapi-generator/FILES b/packages/internal/generated-clients/src/multi-rollup/.openapi-generator/FILES index be8f8022a9..372fb1b120 100644 --- a/packages/internal/generated-clients/src/multi-rollup/.openapi-generator/FILES +++ b/packages/internal/generated-clients/src/multi-rollup/.openapi-generator/FILES @@ -65,6 +65,8 @@ models/create-counterfactual-address-request.ts models/create-counterfactual-address-res-deprecated.ts models/create-counterfactual-address-res.ts models/create-listing-request-body.ts +models/create-mint-request-request.ts +models/create-mint-request-result.ts models/deposit.ts models/erc1155-item.ts models/erc20-item.ts @@ -95,6 +97,7 @@ models/list-collection-owners-result.ts models/list-collections-result.ts models/list-listings-result.ts models/list-metadata-result.ts +models/list-mint-requests-result.ts models/list-nftowners-result.ts models/list-nfts-by-owner-result.ts models/list-nfts-result.ts diff --git a/packages/internal/generated-clients/src/multi-rollup/domain/nfts-api-types.ts b/packages/internal/generated-clients/src/multi-rollup/domain/nfts-api-types.ts index 7268f1231e..d31fc72873 100644 --- a/packages/internal/generated-clients/src/multi-rollup/domain/nfts-api-types.ts +++ b/packages/internal/generated-clients/src/multi-rollup/domain/nfts-api-types.ts @@ -16,27 +16,111 @@ // @ts-ignore import { APIError400 } from '../models'; // @ts-ignore +import { APIError401 } from '../models'; +// @ts-ignore +import { APIError403 } from '../models'; +// @ts-ignore import { APIError404 } from '../models'; // @ts-ignore +import { APIError429 } from '../models'; +// @ts-ignore import { APIError500 } from '../models'; // @ts-ignore +import { CreateMintRequestRequest } from '../models'; +// @ts-ignore +import { CreateMintRequestResult } from '../models'; +// @ts-ignore import { GetNFTResult } from '../models'; // @ts-ignore +import { ListMintRequestsResult } from '../models'; +// @ts-ignore import { ListNFTsByOwnerResult } from '../models'; // @ts-ignore import { ListNFTsResult } from '../models'; // @ts-ignore +import { MintRequestStatus } from '../models'; +// @ts-ignore export { APIError400 } from '../models'; // @ts-ignore +export { APIError401 } from '../models'; +// @ts-ignore +export { APIError403 } from '../models'; +// @ts-ignore export { APIError404 } from '../models'; // @ts-ignore +export { APIError429 } from '../models'; +// @ts-ignore export { APIError500 } from '../models'; // @ts-ignore +export { CreateMintRequestRequest } from '../models'; +// @ts-ignore +export { CreateMintRequestResult } from '../models'; +// @ts-ignore export { GetNFTResult } from '../models'; // @ts-ignore +export { ListMintRequestsResult } from '../models'; +// @ts-ignore export { ListNFTsByOwnerResult } from '../models'; // @ts-ignore export { ListNFTsResult } from '../models'; +// @ts-ignore +export { MintRequestStatus } from '../models'; + +/** + * Request parameters for createMintRequest operation in NftsApi. + * @export + * @interface CreateMintRequestRequest + */ +export interface CreateMintRequestRequestParams { + /** + * The address of contract + * @type {string} + * @memberof CreateMintRequest + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof CreateMintRequest + */ + readonly chainName: string + + /** + * the request body + * @type {CreateMintRequestRequest} + * @memberof CreateMintRequest + */ + readonly createMintRequestRequest: CreateMintRequestRequest +} + +/** + * Request parameters for getMintRequest operation in NftsApi. + * @export + * @interface GetMintRequestRequest + */ +export interface GetMintRequestRequestParams { + /** + * The address of contract + * @type {string} + * @memberof GetMintRequest + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof GetMintRequest + */ + readonly chainName: string + + /** + * The ID of the mint request + * @type {string} + * @memberof GetMintRequest + */ + readonly referenceId: string +} /** * Request parameters for getNFT operation in NftsApi. @@ -101,6 +185,48 @@ export interface ListAllNFTsRequestParams { readonly pageSize?: number } +/** + * Request parameters for listMintRequests operation in NftsApi. + * @export + * @interface ListMintRequestsRequest + */ +export interface ListMintRequestsRequestParams { + /** + * The address of contract + * @type {string} + * @memberof ListMintRequests + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof ListMintRequests + */ + readonly chainName: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListMintRequests + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListMintRequests + */ + readonly pageSize?: number + + /** + * The status of the mint request + * @type {MintRequestStatus} + * @memberof ListMintRequests + */ + readonly status?: MintRequestStatus +} + /** * Request parameters for listNFTs operation in NftsApi. * @export diff --git a/packages/internal/generated-clients/src/multi-rollup/domain/nfts-api.ts b/packages/internal/generated-clients/src/multi-rollup/domain/nfts-api.ts index 766aefc339..daf013b5c6 100644 --- a/packages/internal/generated-clients/src/multi-rollup/domain/nfts-api.ts +++ b/packages/internal/generated-clients/src/multi-rollup/domain/nfts-api.ts @@ -24,21 +24,127 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr // @ts-ignore import { APIError400 } from '../models'; // @ts-ignore +import { APIError401 } from '../models'; +// @ts-ignore +import { APIError403 } from '../models'; +// @ts-ignore import { APIError404 } from '../models'; // @ts-ignore +import { APIError429 } from '../models'; +// @ts-ignore import { APIError500 } from '../models'; // @ts-ignore +import { CreateMintRequestRequest } from '../models'; +// @ts-ignore +import { CreateMintRequestResult } from '../models'; +// @ts-ignore import { GetNFTResult } from '../models'; // @ts-ignore +import { ListMintRequestsResult } from '../models'; +// @ts-ignore import { ListNFTsByOwnerResult } from '../models'; // @ts-ignore import { ListNFTsResult } from '../models'; +// @ts-ignore +import { MintRequestStatus } from '../models'; /** * NftsApi - axios parameter creator * @export */ export const NftsApiAxiosParamCreator = function (configuration?: Configuration) { return { + /** + * [Experimental] Create a mint request to mint a set of NFTs for a given collection + * @summary [Experimental] Mint NFTs + * @param {string} contractAddress The address of contract + * @param {string} chainName The name of chain + * @param {CreateMintRequestRequest} createMintRequestRequest the request body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createMintRequest: async (contractAddress: string, chainName: string, createMintRequestRequest: CreateMintRequestRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'contractAddress' is not null or undefined + assertParamExists('createMintRequest', 'contractAddress', contractAddress) + // verify required parameter 'chainName' is not null or undefined + assertParamExists('createMintRequest', 'chainName', chainName) + // verify required parameter 'createMintRequestRequest' is not null or undefined + assertParamExists('createMintRequest', 'createMintRequestRequest', createMintRequestRequest) + const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests` + .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress))) + .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ImmutableApiKey required + await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(createMintRequestRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * [Experimental] Retrieve the status of a mint request identified by its reference_id + * @summary [Experimental] Get mint request by reference ID + * @param {string} contractAddress The address of contract + * @param {string} chainName The name of chain + * @param {string} referenceId The ID of the mint request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMintRequest: async (contractAddress: string, chainName: string, referenceId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'contractAddress' is not null or undefined + assertParamExists('getMintRequest', 'contractAddress', contractAddress) + // verify required parameter 'chainName' is not null or undefined + assertParamExists('getMintRequest', 'chainName', chainName) + // verify required parameter 'referenceId' is not null or undefined + assertParamExists('getMintRequest', 'referenceId', referenceId) + const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}` + .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress))) + .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName))) + .replace(`{${"reference_id"}}`, encodeURIComponent(String(referenceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ImmutableApiKey required + await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Get NFT by token ID * @summary Get NFT by token ID @@ -123,6 +229,62 @@ export const NftsApiAxiosParamCreator = function (configuration?: Configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * [Experimental] Retrieve the status of all mints for a given contract address + * @summary [Experimental] List mint requests + * @param {string} contractAddress The address of contract + * @param {string} chainName The name of chain + * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @param {number} [pageSize] Maximum number of items to return + * @param {MintRequestStatus} [status] The status of the mint request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listMintRequests: async (contractAddress: string, chainName: string, pageCursor?: string, pageSize?: number, status?: MintRequestStatus, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'contractAddress' is not null or undefined + assertParamExists('listMintRequests', 'contractAddress', contractAddress) + // verify required parameter 'chainName' is not null or undefined + assertParamExists('listMintRequests', 'chainName', chainName) + const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests` + .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress))) + .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ImmutableApiKey required + await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration) + + if (pageCursor !== undefined) { + localVarQueryParameter['page_cursor'] = pageCursor; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -255,6 +417,32 @@ export const NftsApiAxiosParamCreator = function (configuration?: Configuration) export const NftsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = NftsApiAxiosParamCreator(configuration) return { + /** + * [Experimental] Create a mint request to mint a set of NFTs for a given collection + * @summary [Experimental] Mint NFTs + * @param {string} contractAddress The address of contract + * @param {string} chainName The name of chain + * @param {CreateMintRequestRequest} createMintRequestRequest the request body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createMintRequest(contractAddress: string, chainName: string, createMintRequestRequest: CreateMintRequestRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createMintRequest(contractAddress, chainName, createMintRequestRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * [Experimental] Retrieve the status of a mint request identified by its reference_id + * @summary [Experimental] Get mint request by reference ID + * @param {string} contractAddress The address of contract + * @param {string} chainName The name of chain + * @param {string} referenceId The ID of the mint request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMintRequest(contractAddress: string, chainName: string, referenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMintRequest(contractAddress, chainName, referenceId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Get NFT by token ID * @summary Get NFT by token ID @@ -282,6 +470,21 @@ export const NftsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * [Experimental] Retrieve the status of all mints for a given contract address + * @summary [Experimental] List mint requests + * @param {string} contractAddress The address of contract + * @param {string} chainName The name of chain + * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @param {number} [pageSize] Maximum number of items to return + * @param {MintRequestStatus} [status] The status of the mint request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listMintRequests(contractAddress: string, chainName: string, pageCursor?: string, pageSize?: number, status?: MintRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * List NFTs by contract address * @summary List NFTs by contract address @@ -323,6 +526,26 @@ export const NftsApiFp = function(configuration?: Configuration) { export const NftsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = NftsApiFp(configuration) return { + /** + * [Experimental] Create a mint request to mint a set of NFTs for a given collection + * @summary [Experimental] Mint NFTs + * @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createMintRequest(requestParameters: NftsApiCreateMintRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(axios, basePath)); + }, + /** + * [Experimental] Retrieve the status of a mint request identified by its reference_id + * @summary [Experimental] Get mint request by reference ID + * @param {NftsApiGetMintRequestRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMintRequest(requestParameters: NftsApiGetMintRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(axios, basePath)); + }, /** * Get NFT by token ID * @summary Get NFT by token ID @@ -343,6 +566,16 @@ export const NftsApiFactory = function (configuration?: Configuration, basePath? listAllNFTs(requestParameters: NftsApiListAllNFTsRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath)); }, + /** + * [Experimental] Retrieve the status of all mints for a given contract address + * @summary [Experimental] List mint requests + * @param {NftsApiListMintRequestsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listMintRequests(requestParameters: NftsApiListMintRequestsRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(axios, basePath)); + }, /** * List NFTs by contract address * @summary List NFTs by contract address @@ -366,6 +599,62 @@ export const NftsApiFactory = function (configuration?: Configuration, basePath? }; }; +/** + * Request parameters for createMintRequest operation in NftsApi. + * @export + * @interface NftsApiCreateMintRequestRequest + */ +export interface NftsApiCreateMintRequestRequest { + /** + * The address of contract + * @type {string} + * @memberof NftsApiCreateMintRequest + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof NftsApiCreateMintRequest + */ + readonly chainName: string + + /** + * the request body + * @type {CreateMintRequestRequest} + * @memberof NftsApiCreateMintRequest + */ + readonly createMintRequestRequest: CreateMintRequestRequest +} + +/** + * Request parameters for getMintRequest operation in NftsApi. + * @export + * @interface NftsApiGetMintRequestRequest + */ +export interface NftsApiGetMintRequestRequest { + /** + * The address of contract + * @type {string} + * @memberof NftsApiGetMintRequest + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof NftsApiGetMintRequest + */ + readonly chainName: string + + /** + * The ID of the mint request + * @type {string} + * @memberof NftsApiGetMintRequest + */ + readonly referenceId: string +} + /** * Request parameters for getNFT operation in NftsApi. * @export @@ -429,6 +718,48 @@ export interface NftsApiListAllNFTsRequest { readonly pageSize?: number } +/** + * Request parameters for listMintRequests operation in NftsApi. + * @export + * @interface NftsApiListMintRequestsRequest + */ +export interface NftsApiListMintRequestsRequest { + /** + * The address of contract + * @type {string} + * @memberof NftsApiListMintRequests + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof NftsApiListMintRequests + */ + readonly chainName: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof NftsApiListMintRequests + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof NftsApiListMintRequests + */ + readonly pageSize?: number + + /** + * The status of the mint request + * @type {MintRequestStatus} + * @memberof NftsApiListMintRequests + */ + readonly status?: MintRequestStatus +} + /** * Request parameters for listNFTs operation in NftsApi. * @export @@ -527,6 +858,30 @@ export interface NftsApiListNFTsByAccountAddressRequest { * @extends {BaseAPI} */ export class NftsApi extends BaseAPI { + /** + * [Experimental] Create a mint request to mint a set of NFTs for a given collection + * @summary [Experimental] Mint NFTs + * @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NftsApi + */ + public createMintRequest(requestParameters: NftsApiCreateMintRequestRequest, options?: AxiosRequestConfig) { + return NftsApiFp(this.configuration).createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * [Experimental] Retrieve the status of a mint request identified by its reference_id + * @summary [Experimental] Get mint request by reference ID + * @param {NftsApiGetMintRequestRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NftsApi + */ + public getMintRequest(requestParameters: NftsApiGetMintRequestRequest, options?: AxiosRequestConfig) { + return NftsApiFp(this.configuration).getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(this.axios, this.basePath)); + } + /** * Get NFT by token ID * @summary Get NFT by token ID @@ -551,6 +906,18 @@ export class NftsApi extends BaseAPI { return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath)); } + /** + * [Experimental] Retrieve the status of all mints for a given contract address + * @summary [Experimental] List mint requests + * @param {NftsApiListMintRequestsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof NftsApi + */ + public listMintRequests(requestParameters: NftsApiListMintRequestsRequest, options?: AxiosRequestConfig) { + return NftsApiFp(this.configuration).listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(this.axios, this.basePath)); + } + /** * List NFTs by contract address * @summary List NFTs by contract address diff --git a/packages/internal/generated-clients/src/multi-rollup/models/create-mint-request-request.ts b/packages/internal/generated-clients/src/multi-rollup/models/create-mint-request-request.ts new file mode 100644 index 0000000000..23637b24da --- /dev/null +++ b/packages/internal/generated-clients/src/multi-rollup/models/create-mint-request-request.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MintAsset } from './mint-asset'; + +/** + * + * @export + * @interface CreateMintRequestRequest + */ +export interface CreateMintRequestRequest { + /** + * List of nft to be minted + * @type {Array} + * @memberof CreateMintRequestRequest + */ + 'assets': Array; +} + diff --git a/packages/internal/generated-clients/src/multi-rollup/models/create-mint-request-result.ts b/packages/internal/generated-clients/src/multi-rollup/models/create-mint-request-result.ts new file mode 100644 index 0000000000..64dd6aa259 --- /dev/null +++ b/packages/internal/generated-clients/src/multi-rollup/models/create-mint-request-result.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CreateMintRequestResult + */ +export interface CreateMintRequestResult { + /** + * + * @type {string} + * @memberof CreateMintRequestResult + */ + 'imx_mint_requests_limit': string; + /** + * + * @type {string} + * @memberof CreateMintRequestResult + */ + 'imx_mint_requests_limit_reset': string; + /** + * + * @type {string} + * @memberof CreateMintRequestResult + */ + 'imx_remaining_mint_requests': string; + /** + * + * @type {string} + * @memberof CreateMintRequestResult + */ + 'imx_mint_requests_retry_after': string; +} + diff --git a/packages/internal/generated-clients/src/multi-rollup/models/index.ts b/packages/internal/generated-clients/src/multi-rollup/models/index.ts index 5bf59a4c14..fc3b79ea13 100644 --- a/packages/internal/generated-clients/src/multi-rollup/models/index.ts +++ b/packages/internal/generated-clients/src/multi-rollup/models/index.ts @@ -38,6 +38,8 @@ export * from './create-counterfactual-address-request-deprecated'; export * from './create-counterfactual-address-res'; export * from './create-counterfactual-address-res-deprecated'; export * from './create-listing-request-body'; +export * from './create-mint-request-request'; +export * from './create-mint-request-result'; export * from './deposit'; export * from './erc1155-item'; export * from './erc20-item'; @@ -67,6 +69,7 @@ export * from './list-collection-owners-result'; export * from './list-collections-result'; export * from './list-listings-result'; export * from './list-metadata-result'; +export * from './list-mint-requests-result'; export * from './list-nftowners-result'; export * from './list-nfts-by-owner-result'; export * from './list-nfts-result'; diff --git a/packages/internal/generated-clients/src/multi-rollup/models/list-mint-requests-result.ts b/packages/internal/generated-clients/src/multi-rollup/models/list-mint-requests-result.ts new file mode 100644 index 0000000000..6ade455b51 --- /dev/null +++ b/packages/internal/generated-clients/src/multi-rollup/models/list-mint-requests-result.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetMintRequestResult } from './get-mint-request-result'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * List mint requests + * @export + * @interface ListMintRequestsResult + */ +export interface ListMintRequestsResult { + /** + * List of mint requests + * @type {Array} + * @memberof ListMintRequestsResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListMintRequestsResult + */ + 'page': Page; +} +