diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0439b9aa24..9e09de873c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,6 +3,7 @@ /packages/config @immutable/sdk /packages/internal/version-check @immutable/sdk /packages/internal/generated-clients @immutable/sdk +/packages/internal/generated-clients/src/blockchain-data @immutable/assets /packages/internal/toolkit @immutable/wallets /packages/internal/cryptofiat @immutable/wallets /packages/internal/dex @immutable/tokens diff --git a/packages/blockchain-data/sample-app/src/app/page.tsx b/packages/blockchain-data/sample-app/src/app/page.tsx index fd0a23ac01..6432ffe884 100644 --- a/packages/blockchain-data/sample-app/src/app/page.tsx +++ b/packages/blockchain-data/sample-app/src/app/page.tsx @@ -6,14 +6,12 @@ import { Environment, ImmutableConfiguration } from '@imtbl/config'; import { BlockchainData, BlockchainDataModuleConfiguration, - ChainsTypes, + Types, } from '@imtbl/blockchain-data'; import { PageLayout } from '@/components/PageLayout'; export default function Home() { - const [response, setResponse] = useState( - null, - ); + const [response, setResponse] = useState(null); useEffect(() => { async function getData() { @@ -28,7 +26,7 @@ export default function Home() { const client = new BlockchainData(config); try { - const request: ChainsTypes.ListChainsRequestParams = {}; + const request: Types.ListChainsRequestParams = {}; const response = await client.listChains(request); setResponse(response); } catch (error) { diff --git a/packages/blockchain-data/sdk/src/index.ts b/packages/blockchain-data/sdk/src/index.ts index 92783d6a00..e86427ab7c 100644 --- a/packages/blockchain-data/sdk/src/index.ts +++ b/packages/blockchain-data/sdk/src/index.ts @@ -1,27 +1,18 @@ -import { - mr, - ActivitiesTypes, - ChainsTypes, - CollectionsTypes, - MetadataTypes, - NFTOwnersTypes, - NFTsTypes, - TokensTypes, -} from '@imtbl/generated-clients'; +import { mr, BlockchainData as Types } from '@imtbl/generated-clients'; + import { APIError } from './types/errors'; import { BlockchainData } from './blockchain-data'; import { BlockchainDataModuleConfiguration } from './config'; +/** + * @deprecated since version 1.1.5 + * Please use Types.ActivityType instead + * import { Types } from '@imtbl/blockchain-data' + */ type ActivityType = mr.ActivityType; export { - ActivitiesTypes, - ChainsTypes, - CollectionsTypes, - MetadataTypes, - NFTOwnersTypes, - NFTsTypes, - TokensTypes, + Types, APIError, BlockchainData, BlockchainDataModuleConfiguration, diff --git a/packages/internal/generated-clients/Makefile b/packages/internal/generated-clients/Makefile index 7aaadfeae2..4f0bc505da 100644 --- a/packages/internal/generated-clients/Makefile +++ b/packages/internal/generated-clients/Makefile @@ -29,7 +29,7 @@ generate-imx-api-client: -i ./app/src/imx-openapi.json \ -g typescript-axios \ -o /app/src/imx \ - -c /app/imx.config.json + -c /app/config/imx.config.json .PHONY: generate-mr-api-client generate-mr-api-client: @@ -40,4 +40,16 @@ generate-mr-api-client: -i ./app/src/mr-openapi.json \ -g typescript-axios \ -o /app/src/multi-rollup \ - -c /app/mr.config.json + -c /app/config/mr.config.json + +.PHONY: generate-blockchain-data-types +generate-blockchain-data-types: + rm -rf src/blockchain-data && \ + mkdir src/blockchain-data && \ + docker run --rm -v $(shell pwd):/app openapitools/openapi-generator-cli:v7.0.1 generate \ + --inline-schema-options REFACTOR_ALLOF_INLINE_SCHEMAS=true \ + -i ./app/src/mr-openapi.json \ + -g typescript-axios \ + -o /app/src/blockchain-data \ + -c /app/config/blockchain-data.config.json \ + --additional-properties=stringEnums=true diff --git a/packages/internal/generated-clients/README.md b/packages/internal/generated-clients/README.md index ed3a9f7aaa..328d956dbe 100644 --- a/packages/internal/generated-clients/README.md +++ b/packages/internal/generated-clients/README.md @@ -23,7 +23,10 @@ const imxApiClients = new ImxApiClients(imxApiConfig.getSandbox()); ### Immutable Multi-Rollup ```typescript -import { MultiRollupApiClients, multiRollupConfig } from '@imtbl/generated-clients'; +import { + MultiRollupApiClients, + multiRollupConfig, +} from '@imtbl/generated-clients'; const mrApiClients = new MultiRollupApiClients(multiRollupConfig.sandbox); ``` @@ -57,3 +60,11 @@ Run the following command to regenerate the Immutable multi-rollup clients: ```bash make generate-mr-openapi ``` + +## View generators + +To inspect underlying generator files, run: + +```bash +openapi-generator author template -g typescript-axios -o src/templates +``` diff --git a/packages/internal/generated-clients/config/blockchain-data.config.json b/packages/internal/generated-clients/config/blockchain-data.config.json new file mode 100644 index 0000000000..8ceed13942 --- /dev/null +++ b/packages/internal/generated-clients/config/blockchain-data.config.json @@ -0,0 +1,20 @@ +{ + "supportsES6": true, + "npmVersion": "6.9.0", + "typescriptThreePlus": true, + "withSeparateModelsAndApi": true, + "modelPackage": "models", + "apiPackage": "domain", + "useSingleRequestParameter": true, + "templateDir": "app/templates/blockchain-data", + "files": { + "index.mustache": { + "templateType": "SupportingFiles", + "destinationFilename": "index.ts" + }, + "apiInner.mustache": { + "templateType": "API", + "destinationFilename": ".ts" + } + } +} diff --git a/packages/internal/generated-clients/imx.config.json b/packages/internal/generated-clients/config/imx.config.json similarity index 100% rename from packages/internal/generated-clients/imx.config.json rename to packages/internal/generated-clients/config/imx.config.json diff --git a/packages/internal/generated-clients/mr.config.json b/packages/internal/generated-clients/config/mr.config.json similarity index 89% rename from packages/internal/generated-clients/mr.config.json rename to packages/internal/generated-clients/config/mr.config.json index d0da2072d6..d9fe3489f5 100644 --- a/packages/internal/generated-clients/mr.config.json +++ b/packages/internal/generated-clients/config/mr.config.json @@ -6,7 +6,7 @@ "modelPackage": "models", "apiPackage": "domain", "useSingleRequestParameter": true, - "templateDir": "app/src/templates", + "templateDir": "app/templates/mr", "files": { "api-types.mustache": { "templateType": "API", diff --git a/packages/internal/generated-clients/src/blockchain-data/.gitignore b/packages/internal/generated-clients/src/blockchain-data/.gitignore new file mode 100644 index 0000000000..149b576547 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/packages/internal/generated-clients/src/blockchain-data/.npmignore b/packages/internal/generated-clients/src/blockchain-data/.npmignore new file mode 100644 index 0000000000..999d88df69 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/packages/internal/generated-clients/src/blockchain-data/.openapi-generator-ignore b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator-ignore new file mode 100644 index 0000000000..7484ee590a --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES new file mode 100644 index 0000000000..8e436055e7 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES @@ -0,0 +1,137 @@ +.gitignore +.npmignore +.openapi-generator-ignore +api.ts +base.ts +common.ts +configuration.ts +domain/activities-api.ts +domain/chains-api.ts +domain/collections-api.ts +domain/metadata-api.ts +domain/nft-owners-api.ts +domain/nfts-api.ts +domain/orders-api.ts +domain/passport-api.ts +domain/tokens-api.ts +git_push.sh +index.ts +models/active-order-status.ts +models/activity-asset.ts +models/activity-details.ts +models/activity-native-token.ts +models/activity-nft.ts +models/activity-token.ts +models/activity-type.ts +models/activity.ts +models/apierror400-all-of.ts +models/apierror400.ts +models/apierror401-all-of.ts +models/apierror401.ts +models/apierror403-all-of.ts +models/apierror403.ts +models/apierror404-all-of.ts +models/apierror404.ts +models/apierror429-all-of.ts +models/apierror429.ts +models/apierror500-all-of.ts +models/apierror500.ts +models/apierror501-all-of.ts +models/apierror501.ts +models/basic-apierror.ts +models/blockchain-metadata.ts +models/burn.ts +models/cancel-orders-request-body.ts +models/cancel-orders-result-data.ts +models/cancel-orders-result.ts +models/cancelled-order-status.ts +models/chain-with-details-all-of.ts +models/chain-with-details.ts +models/chain.ts +models/collection-contract-type.ts +models/collection-metadata.ts +models/collection.ts +models/create-counterfactual-address-request-deprecated.ts +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/deposit.ts +models/erc1155-item.ts +models/erc20-item.ts +models/erc721-item.ts +models/expired-order-status.ts +models/failed-order-cancellation.ts +models/fee.ts +models/filled-order-status.ts +models/fulfillable-order.ts +models/fulfillment-data-request.ts +models/fulfillment-data200-response-result.ts +models/fulfillment-data200-response.ts +models/get-activity-result.ts +models/get-collection-result.ts +models/get-contract-abi-res.ts +models/get-linked-addresses-res-deprecated.ts +models/get-linked-addresses-res.ts +models/get-metadata-result.ts +models/get-mint-request-result.ts +models/get-nftresult.ts +models/get-token-result.ts +models/inactive-order-status.ts +models/index.ts +models/item.ts +models/list-activities-result.ts +models/list-chains-result.ts +models/list-collection-owners-result.ts +models/list-collections-result.ts +models/list-listings-result.ts +models/list-metadata-result.ts +models/list-nftowners-result.ts +models/list-nfts-by-owner-result.ts +models/list-nfts-result.ts +models/list-tokens-result.ts +models/list-trade-result.ts +models/listing-result.ts +models/metadata-refresh-rate-limit-result.ts +models/metadata.ts +models/mint-asset.ts +models/mint-request-error-message.ts +models/mint-request-status.ts +models/mint.ts +models/native-item.ts +models/nft.ts +models/nftcontract-type.ts +models/nftmetadata-attribute-value.ts +models/nftmetadata-attribute.ts +models/nftmetadata-attributes.ts +models/nftowner.ts +models/nftsale.ts +models/nftwith-balance.ts +models/nftwith-metadata-attributes.ts +models/nftwith-owner.ts +models/order-status-name.ts +models/order-status.ts +models/order.ts +models/page.ts +models/pending-order-status.ts +models/protocol-data.ts +models/refresh-collection-metadata-request.ts +models/refresh-collection-metadata-result.ts +models/refresh-metadata-by-id.ts +models/refresh-metadata-by-idall-of.ts +models/refresh-metadata-by-idrequest.ts +models/refresh-metadata-by-token-id.ts +models/refresh-metadata-by-token-idall-of.ts +models/refresh-nftmetadata-by-token-idrequest.ts +models/refreshable-nftattributes.ts +models/sale-fee.ts +models/sale-payment-token.ts +models/sale-payment.ts +models/token-contract-type.ts +models/token.ts +models/trade-blockchain-metadata.ts +models/trade-result.ts +models/trade.ts +models/transfer.ts +models/unfulfillable-order.ts +models/withdrawal.ts diff --git a/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/VERSION b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/VERSION new file mode 100644 index 0000000000..73a86b1970 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.0.1 \ No newline at end of file diff --git a/packages/internal/generated-clients/src/blockchain-data/api.ts b/packages/internal/generated-clients/src/blockchain-data/api.ts new file mode 100644 index 0000000000..df63f15779 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/api.ts @@ -0,0 +1,21 @@ +/* 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 * from './domain/activities-api'; +export * from './domain/chains-api'; +export * from './domain/collections-api'; +export * from './domain/metadata-api'; +export * from './domain/nft-owners-api'; +export * from './domain/nfts-api'; +export * from './domain/tokens-api'; diff --git a/packages/internal/generated-clients/src/blockchain-data/base.ts b/packages/internal/generated-clients/src/blockchain-data/base.ts new file mode 100644 index 0000000000..8987e01c07 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/base.ts @@ -0,0 +1,72 @@ +/* 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. + */ + + +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; + +export const BASE_PATH = "https://api.sandbox.immutable.com".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: AxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath || this.basePath; + } + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(public field: string, msg?: string) { + super(msg); + this.name = "RequiredError" + } +} diff --git a/packages/internal/generated-clients/src/blockchain-data/common.ts b/packages/internal/generated-clients/src/blockchain-data/common.ts new file mode 100644 index 0000000000..ab665929fc --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/common.ts @@ -0,0 +1,150 @@ +/* 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. + */ + + +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { RequiredError } from "./base"; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || axios.defaults.baseURL || basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/packages/internal/generated-clients/src/blockchain-data/configuration.ts b/packages/internal/generated-clients/src/blockchain-data/configuration.ts new file mode 100644 index 0000000000..dbd8c27057 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/configuration.ts @@ -0,0 +1,101 @@ +/* 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 ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/activities-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/activities-api.ts new file mode 100644 index 0000000000..ce500ba563 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/domain/activities-api.ts @@ -0,0 +1,174 @@ +/* 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. + */ + + +// @ts-ignore +import { APIError400 } from '../models'; +// @ts-ignore +import { APIError404 } from '../models'; +// @ts-ignore +import { APIError500 } from '../models'; +// @ts-ignore +import { ActivityType } from '../models'; +// @ts-ignore +import { GetActivityResult } from '../models'; +// @ts-ignore +import { ListActivitiesResult } from '../models'; +// @ts-ignore +export { APIError400 } from '../models'; +// @ts-ignore +export { APIError404 } from '../models'; +// @ts-ignore +export { APIError500 } from '../models'; +// @ts-ignore +export { ActivityType } from '../models'; +// @ts-ignore +export { GetActivityResult } from '../models'; +// @ts-ignore +export { ListActivitiesResult } from '../models'; + +/** + * Request parameters for getActivity operation in ActivitiesApi. + * @export + * @interface GetActivityRequest + */ +export interface GetActivityRequestParams { + /** + * The name of chain + * @type {string} + * @memberof GetActivity + */ + readonly chainName: string + + /** + * The id of activity + * @type {string} + * @memberof GetActivity + */ + readonly activityId: string +} + +/** + * Request parameters for listActivities operation in ActivitiesApi. + * @export + * @interface ListActivitiesRequest + */ +export interface ListActivitiesRequestParams { + /** + * The name of chain + * @type {string} + * @memberof ListActivities + */ + readonly chainName: string + + /** + * The contract address of NFT or ERC20 Token + * @type {string} + * @memberof ListActivities + */ + readonly contractAddress?: string + + /** + * An `uint256` token id as string + * @type {string} + * @memberof ListActivities + */ + readonly tokenId?: string + + /** + * The account address activity contains + * @type {string} + * @memberof ListActivities + */ + readonly accountAddress?: string + + /** + * The activity type + * @type {ActivityType} + * @memberof ListActivities + */ + readonly activityType?: ActivityType + + /** + * The transaction hash of activity + * @type {string} + * @memberof ListActivities + */ + readonly transactionHash?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListActivities + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListActivities + */ + readonly pageSize?: number +} + +/** + * Request parameters for listActivityHistory operation in ActivitiesApi. + * @export + * @interface ListActivityHistoryRequest + */ +export interface ListActivityHistoryRequestParams { + /** + * The name of chain + * @type {string} + * @memberof ListActivityHistory + */ + readonly chainName: string + + /** + * From indexed at including given date + * @type {string} + * @memberof ListActivityHistory + */ + readonly fromUpdatedAt: string + + /** + * To indexed at including given date + * @type {string} + * @memberof ListActivityHistory + */ + readonly toUpdatedAt?: string + + /** + * The contract address of the collection + * @type {string} + * @memberof ListActivityHistory + */ + readonly contractAddress?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListActivityHistory + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListActivityHistory + */ + readonly pageSize?: number +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/chains-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/chains-api.ts new file mode 100644 index 0000000000..d44c0d5ad8 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/domain/chains-api.ts @@ -0,0 +1,54 @@ +/* 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. + */ + + +// @ts-ignore +import { APIError400 } from '../models'; +// @ts-ignore +import { APIError404 } from '../models'; +// @ts-ignore +import { APIError500 } from '../models'; +// @ts-ignore +import { ListChainsResult } from '../models'; +// @ts-ignore +export { APIError400 } from '../models'; +// @ts-ignore +export { APIError404 } from '../models'; +// @ts-ignore +export { APIError500 } from '../models'; +// @ts-ignore +export { ListChainsResult } from '../models'; + +/** + * Request parameters for listChains operation in ChainsApi. + * @export + * @interface ListChainsRequest + */ +export interface ListChainsRequestParams { + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListChains + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListChains + */ + readonly pageSize?: number +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/collections-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/collections-api.ts new file mode 100644 index 0000000000..5ec6fa20d6 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/domain/collections-api.ts @@ -0,0 +1,179 @@ +/* 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. + */ + + +// @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 { APIError500 } from '../models'; +// @ts-ignore +import { GetCollectionResult } from '../models'; +// @ts-ignore +import { ListCollectionsResult } from '../models'; +// @ts-ignore +import { RefreshCollectionMetadataRequest } from '../models'; +// @ts-ignore +import { RefreshCollectionMetadataResult } 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 { APIError500 } from '../models'; +// @ts-ignore +export { GetCollectionResult } from '../models'; +// @ts-ignore +export { ListCollectionsResult } from '../models'; +// @ts-ignore +export { RefreshCollectionMetadataRequest } from '../models'; +// @ts-ignore +export { RefreshCollectionMetadataResult } from '../models'; + +/** + * Request parameters for getCollection operation in CollectionsApi. + * @export + * @interface GetCollectionRequest + */ +export interface GetCollectionRequestParams { + /** + * The address contract + * @type {string} + * @memberof GetCollection + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof GetCollection + */ + readonly chainName: string +} + +/** + * Request parameters for listCollections operation in CollectionsApi. + * @export + * @interface ListCollectionsRequest + */ +export interface ListCollectionsRequestParams { + /** + * The name of chain + * @type {string} + * @memberof ListCollections + */ + readonly chainName: string + + /** + * List of contract addresses to filter by + * @type {Array} + * @memberof ListCollections + */ + readonly contractAddress?: Array + + /** + * Datetime to use as the oldest updated timestamp + * @type {string} + * @memberof ListCollections + */ + readonly fromUpdatedAt?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListCollections + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListCollections + */ + readonly pageSize?: number +} + +/** + * Request parameters for listCollectionsByNFTOwner operation in CollectionsApi. + * @export + * @interface ListCollectionsByNFTOwnerRequest + */ +export interface ListCollectionsByNFTOwnerRequestParams { + /** + * Account address + * @type {string} + * @memberof ListCollectionsByNFTOwner + */ + readonly accountAddress: string + + /** + * The name of chain + * @type {string} + * @memberof ListCollectionsByNFTOwner + */ + readonly chainName: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListCollectionsByNFTOwner + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListCollectionsByNFTOwner + */ + readonly pageSize?: number +} + +/** + * Request parameters for refreshCollectionMetadata operation in CollectionsApi. + * @export + * @interface RefreshCollectionMetadataRequest + */ +export interface RefreshCollectionMetadataRequestParams { + /** + * The address contract + * @type {string} + * @memberof RefreshCollectionMetadata + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof RefreshCollectionMetadata + */ + readonly chainName: string + + /** + * The request body + * @type {RefreshCollectionMetadataRequest} + * @memberof RefreshCollectionMetadata + */ + readonly refreshCollectionMetadataRequest: RefreshCollectionMetadataRequest +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/metadata-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/metadata-api.ts new file mode 100644 index 0000000000..1810a16444 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/domain/metadata-api.ts @@ -0,0 +1,222 @@ +/* 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. + */ + + +// @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 { GetMetadataResult } from '../models'; +// @ts-ignore +import { ListMetadataResult } from '../models'; +// @ts-ignore +import { MetadataRefreshRateLimitResult } from '../models'; +// @ts-ignore +import { RefreshMetadataByIDRequest } from '../models'; +// @ts-ignore +import { RefreshNFTMetadataByTokenIDRequest } 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 { GetMetadataResult } from '../models'; +// @ts-ignore +export { ListMetadataResult } from '../models'; +// @ts-ignore +export { MetadataRefreshRateLimitResult } from '../models'; +// @ts-ignore +export { RefreshMetadataByIDRequest } from '../models'; +// @ts-ignore +export { RefreshNFTMetadataByTokenIDRequest } from '../models'; + +/** + * Request parameters for getMetadata operation in MetadataApi. + * @export + * @interface GetMetadataRequest + */ +export interface GetMetadataRequestParams { + /** + * The name of chain + * @type {string} + * @memberof GetMetadata + */ + readonly chainName: string + + /** + * The address of metadata contract + * @type {string} + * @memberof GetMetadata + */ + readonly contractAddress: string + + /** + * The id of the metadata + * @type {string} + * @memberof GetMetadata + */ + readonly metadataId: string +} + +/** + * Request parameters for listMetadata operation in MetadataApi. + * @export + * @interface ListMetadataRequest + */ +export interface ListMetadataRequestParams { + /** + * The name of chain + * @type {string} + * @memberof ListMetadata + */ + readonly chainName: string + + /** + * The address of metadata contract + * @type {string} + * @memberof ListMetadata + */ + readonly contractAddress: string + + /** + * Datetime to use as the oldest updated timestamp + * @type {string} + * @memberof ListMetadata + */ + readonly fromUpdatedAt?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListMetadata + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListMetadata + */ + readonly pageSize?: number +} + +/** + * Request parameters for listMetadataForChain operation in MetadataApi. + * @export + * @interface ListMetadataForChainRequest + */ +export interface ListMetadataForChainRequestParams { + /** + * The name of chain + * @type {string} + * @memberof ListMetadataForChain + */ + readonly chainName: string + + /** + * Datetime to use as the oldest updated timestamp + * @type {string} + * @memberof ListMetadataForChain + */ + readonly fromUpdatedAt?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListMetadataForChain + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListMetadataForChain + */ + readonly pageSize?: number +} + +/** + * Request parameters for refreshMetadataByID operation in MetadataApi. + * @export + * @interface RefreshMetadataByIDRequest + */ +export interface RefreshMetadataByIDRequestParams { + /** + * The name of chain + * @type {string} + * @memberof RefreshMetadataByID + */ + readonly chainName: string + + /** + * Contract address + * @type {string} + * @memberof RefreshMetadataByID + */ + readonly contractAddress: string + + /** + * NFT Metadata Refresh Request + * @type {RefreshMetadataByIDRequest} + * @memberof RefreshMetadataByID + */ + readonly refreshMetadataByIDRequest: RefreshMetadataByIDRequest +} + +/** + * Request parameters for refreshNFTMetadataByTokenID operation in MetadataApi. + * @export + * @interface RefreshNFTMetadataByTokenIDRequest + */ +export interface RefreshNFTMetadataByTokenIDRequestParams { + /** + * The address of contract + * @type {string} + * @memberof RefreshNFTMetadataByTokenID + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof RefreshNFTMetadataByTokenID + */ + readonly chainName: string + + /** + * the request body + * @type {RefreshNFTMetadataByTokenIDRequest} + * @memberof RefreshNFTMetadataByTokenID + */ + readonly refreshNFTMetadataByTokenIDRequest: RefreshNFTMetadataByTokenIDRequest +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/nft-owners-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/nft-owners-api.ts new file mode 100644 index 0000000000..f024dfbe44 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/domain/nft-owners-api.ts @@ -0,0 +1,156 @@ +/* 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. + */ + + +// @ts-ignore +import { APIError400 } from '../models'; +// @ts-ignore +import { APIError404 } from '../models'; +// @ts-ignore +import { APIError500 } from '../models'; +// @ts-ignore +import { ListCollectionOwnersResult } from '../models'; +// @ts-ignore +import { ListNFTOwnersResult } from '../models'; +// @ts-ignore +export { APIError400 } from '../models'; +// @ts-ignore +export { APIError404 } from '../models'; +// @ts-ignore +export { APIError500 } from '../models'; +// @ts-ignore +export { ListCollectionOwnersResult } from '../models'; +// @ts-ignore +export { ListNFTOwnersResult } from '../models'; + +/** + * Request parameters for listAllNFTOwners operation in NftOwnersApi. + * @export + * @interface ListAllNFTOwnersRequest + */ +export interface ListAllNFTOwnersRequestParams { + /** + * The name of chain + * @type {string} + * @memberof ListAllNFTOwners + */ + readonly chainName: string + + /** + * Datetime to use as the oldest updated timestamp + * @type {string} + * @memberof ListAllNFTOwners + */ + readonly fromUpdatedAt?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListAllNFTOwners + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListAllNFTOwners + */ + readonly pageSize?: number +} + +/** + * Request parameters for listNFTOwners operation in NftOwnersApi. + * @export + * @interface ListNFTOwnersRequest + */ +export interface ListNFTOwnersRequestParams { + /** + * The address of contract + * @type {string} + * @memberof ListNFTOwners + */ + readonly contractAddress: string + + /** + * An `uint256` token id as string + * @type {string} + * @memberof ListNFTOwners + */ + readonly tokenId: string + + /** + * The name of chain + * @type {string} + * @memberof ListNFTOwners + */ + readonly chainName: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListNFTOwners + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListNFTOwners + */ + readonly pageSize?: number +} + +/** + * Request parameters for listOwnersByContractAddress operation in NftOwnersApi. + * @export + * @interface ListOwnersByContractAddressRequest + */ +export interface ListOwnersByContractAddressRequestParams { + /** + * The address of contract + * @type {string} + * @memberof ListOwnersByContractAddress + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof ListOwnersByContractAddress + */ + readonly chainName: string + + /** + * Datetime to use as the oldest updated timestamp + * @type {string} + * @memberof ListOwnersByContractAddress + */ + readonly fromUpdatedAt?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListOwnersByContractAddress + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListOwnersByContractAddress + */ + readonly pageSize?: number +} + + 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 new file mode 100644 index 0000000000..a28989d209 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts @@ -0,0 +1,188 @@ +/* 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. + */ + + +// @ts-ignore +import { APIError400 } from '../models'; +// @ts-ignore +import { APIError404 } from '../models'; +// @ts-ignore +import { APIError500 } from '../models'; +// @ts-ignore +import { GetNFTResult } from '../models'; +// @ts-ignore +import { ListNFTsByOwnerResult } from '../models'; +// @ts-ignore +import { ListNFTsResult } from '../models'; +// @ts-ignore +export { APIError400 } from '../models'; +// @ts-ignore +export { APIError404 } from '../models'; +// @ts-ignore +export { APIError500 } from '../models'; +// @ts-ignore +export { GetNFTResult } from '../models'; +// @ts-ignore +export { ListNFTsByOwnerResult } from '../models'; +// @ts-ignore +export { ListNFTsResult } from '../models'; + +/** + * Request parameters for getNFT operation in NftsApi. + * @export + * @interface GetNFTRequest + */ +export interface GetNFTRequestParams { + /** + * The address of NFT contract + * @type {string} + * @memberof GetNFT + */ + readonly contractAddress: string + + /** + * An `uint256` token id as string + * @type {string} + * @memberof GetNFT + */ + readonly tokenId: string + + /** + * The name of chain + * @type {string} + * @memberof GetNFT + */ + readonly chainName: string +} + +/** + * Request parameters for listAllNFTs operation in NftsApi. + * @export + * @interface ListAllNFTsRequest + */ +export interface ListAllNFTsRequestParams { + /** + * The name of chain + * @type {string} + * @memberof ListAllNFTs + */ + readonly chainName: string + + /** + * Datetime to use as the oldest updated timestamp + * @type {string} + * @memberof ListAllNFTs + */ + readonly fromUpdatedAt?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListAllNFTs + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListAllNFTs + */ + readonly pageSize?: number +} + +/** + * Request parameters for listNFTs operation in NftsApi. + * @export + * @interface ListNFTsRequest + */ +export interface ListNFTsRequestParams { + /** + * Contract address + * @type {string} + * @memberof ListNFTs + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof ListNFTs + */ + readonly chainName: string + + /** + * Datetime to use as the oldest updated timestamp + * @type {string} + * @memberof ListNFTs + */ + readonly fromUpdatedAt?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListNFTs + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListNFTs + */ + readonly pageSize?: number +} + +/** + * Request parameters for listNFTsByAccountAddress operation in NftsApi. + * @export + * @interface ListNFTsByAccountAddressRequest + */ +export interface ListNFTsByAccountAddressRequestParams { + /** + * Account address + * @type {string} + * @memberof ListNFTsByAccountAddress + */ + readonly accountAddress: string + + /** + * The name of chain + * @type {string} + * @memberof ListNFTsByAccountAddress + */ + readonly chainName: string + + /** + * The address of contract + * @type {string} + * @memberof ListNFTsByAccountAddress + */ + readonly contractAddress?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListNFTsByAccountAddress + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListNFTsByAccountAddress + */ + readonly pageSize?: number +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/tokens-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/tokens-api.ts new file mode 100644 index 0000000000..067d829cd6 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/domain/tokens-api.ts @@ -0,0 +1,93 @@ +/* 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. + */ + + +// @ts-ignore +import { APIError400 } from '../models'; +// @ts-ignore +import { APIError404 } from '../models'; +// @ts-ignore +import { APIError500 } from '../models'; +// @ts-ignore +import { GetTokenResult } from '../models'; +// @ts-ignore +import { ListTokensResult } from '../models'; +// @ts-ignore +export { APIError400 } from '../models'; +// @ts-ignore +export { APIError404 } from '../models'; +// @ts-ignore +export { APIError500 } from '../models'; +// @ts-ignore +export { GetTokenResult } from '../models'; +// @ts-ignore +export { ListTokensResult } from '../models'; + +/** + * Request parameters for getERC20Token operation in TokensApi. + * @export + * @interface GetERC20TokenRequest + */ +export interface GetERC20TokenRequestParams { + /** + * The address of contract + * @type {string} + * @memberof GetERC20Token + */ + readonly contractAddress: string + + /** + * The name of chain + * @type {string} + * @memberof GetERC20Token + */ + readonly chainName: string +} + +/** + * Request parameters for listERC20Tokens operation in TokensApi. + * @export + * @interface ListERC20TokensRequest + */ +export interface ListERC20TokensRequestParams { + /** + * The name of chain + * @type {string} + * @memberof ListERC20Tokens + */ + readonly chainName: string + + /** + * Datetime to use as the oldest updated timestamp + * @type {string} + * @memberof ListERC20Tokens + */ + readonly fromUpdatedAt?: string + + /** + * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. + * @type {string} + * @memberof ListERC20Tokens + */ + readonly pageCursor?: string + + /** + * Maximum number of items to return + * @type {number} + * @memberof ListERC20Tokens + */ + readonly pageSize?: number +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/git_push.sh b/packages/internal/generated-clients/src/blockchain-data/git_push.sh new file mode 100644 index 0000000000..f53a75d4fa --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/internal/generated-clients/src/blockchain-data/index.ts b/packages/internal/generated-clients/src/blockchain-data/index.ts new file mode 100644 index 0000000000..261a415f64 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/index.ts @@ -0,0 +1,17 @@ +/* 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 * from "./api"; +export * from "./models"; diff --git a/packages/internal/generated-clients/src/blockchain-data/models/active-order-status.ts b/packages/internal/generated-clients/src/blockchain-data/models/active-order-status.ts new file mode 100644 index 0000000000..fbbd6af7ff --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/active-order-status.ts @@ -0,0 +1,39 @@ +/* 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 ActiveOrderStatus + */ +export interface ActiveOrderStatus { + /** + * The order status that indicates an order can be fulfilled. + * @type {string} + * @memberof ActiveOrderStatus + */ + 'name': ActiveOrderStatusNameEnum; +} + +/** + * @export + * @enum {string} + */ +export enum ActiveOrderStatusNameEnum { + Active = 'ACTIVE' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/activity-asset.ts b/packages/internal/generated-clients/src/blockchain-data/models/activity-asset.ts new file mode 100644 index 0000000000..66dc8d2a8d --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/activity-asset.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 { ActivityNFT } from './activity-nft'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityToken } from './activity-token'; +// May contain unused imports in some cases +// @ts-ignore +import { TokenContractType } from './token-contract-type'; + +/** + * @type ActivityAsset + * The contract and asset details for this activity + * @export + */ +export type ActivityAsset = ActivityNFT | ActivityToken; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/activity-details.ts b/packages/internal/generated-clients/src/blockchain-data/models/activity-details.ts new file mode 100644 index 0000000000..9ef3d44c79 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/activity-details.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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityAsset } from './activity-asset'; +// May contain unused imports in some cases +// @ts-ignore +import { Burn } from './burn'; +// May contain unused imports in some cases +// @ts-ignore +import { Deposit } from './deposit'; +// May contain unused imports in some cases +// @ts-ignore +import { Mint } from './mint'; +// May contain unused imports in some cases +// @ts-ignore +import { NFTSale } from './nftsale'; +// May contain unused imports in some cases +// @ts-ignore +import { SalePayment } from './sale-payment'; +// May contain unused imports in some cases +// @ts-ignore +import { Transfer } from './transfer'; +// May contain unused imports in some cases +// @ts-ignore +import { Withdrawal } from './withdrawal'; + +/** + * @type ActivityDetails + * The activity details + * @export + */ +export type ActivityDetails = Burn | Deposit | Mint | NFTSale | Transfer | Withdrawal; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/activity-native-token.ts b/packages/internal/generated-clients/src/blockchain-data/models/activity-native-token.ts new file mode 100644 index 0000000000..6af4254792 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/activity-native-token.ts @@ -0,0 +1,30 @@ +/* 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 ActivityNativeToken + */ +export interface ActivityNativeToken { + /** + * The token symbol + * @type {string} + * @memberof ActivityNativeToken + */ + 'symbol': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/activity-nft.ts b/packages/internal/generated-clients/src/blockchain-data/models/activity-nft.ts new file mode 100644 index 0000000000..da79b08812 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/activity-nft.ts @@ -0,0 +1,47 @@ +/* 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 { NFTContractType } from './nftcontract-type'; + +/** + * + * @export + * @interface ActivityNFT + */ +export interface ActivityNFT { + /** + * + * @type {NFTContractType} + * @memberof ActivityNFT + */ + 'contract_type': NFTContractType; + /** + * The token contract address + * @type {string} + * @memberof ActivityNFT + */ + 'contract_address': string; + /** + * An `uint256` token id as string + * @type {string} + * @memberof ActivityNFT + */ + 'token_id': string; +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/activity-token.ts b/packages/internal/generated-clients/src/blockchain-data/models/activity-token.ts new file mode 100644 index 0000000000..f874320666 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/activity-token.ts @@ -0,0 +1,41 @@ +/* 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 { TokenContractType } from './token-contract-type'; + +/** + * + * @export + * @interface ActivityToken + */ +export interface ActivityToken { + /** + * + * @type {TokenContractType} + * @memberof ActivityToken + */ + 'contract_type': TokenContractType; + /** + * The contract address + * @type {string} + * @memberof ActivityToken + */ + 'contract_address': string; +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/activity-type.ts b/packages/internal/generated-clients/src/blockchain-data/models/activity-type.ts new file mode 100644 index 0000000000..7053b33266 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/activity-type.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. + */ + + + +/** + * The activity type + * @export + * @enum {string} + */ + +export enum ActivityType { + Mint = 'mint', + Burn = 'burn', + Transfer = 'transfer', + Sale = 'sale', + Deposit = 'deposit', + Withdrawal = 'withdrawal' +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/activity.ts b/packages/internal/generated-clients/src/blockchain-data/models/activity.ts new file mode 100644 index 0000000000..26fe53a8b2 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/activity.ts @@ -0,0 +1,80 @@ +/* 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 { ActivityDetails } from './activity-details'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityType } from './activity-type'; +// May contain unused imports in some cases +// @ts-ignore +import { BlockchainMetadata } from './blockchain-metadata'; +// May contain unused imports in some cases +// @ts-ignore +import { Chain } from './chain'; + +/** + * + * @export + * @interface Activity + */ +export interface Activity { + /** + * Activity ID in UUIDv4 format + * @type {string} + * @memberof Activity + */ + 'id': string; + /** + * + * @type {Chain} + * @memberof Activity + */ + 'chain': Chain; + /** + * + * @type {ActivityType} + * @memberof Activity + */ + 'type': ActivityType; + /** + * + * @type {ActivityDetails} + * @memberof Activity + */ + 'details': ActivityDetails; + /** + * The time activity was updated at + * @type {string} + * @memberof Activity + */ + 'updated_at': string; + /** + * The time activity was indexed + * @type {string} + * @memberof Activity + */ + 'indexed_at': string; + /** + * + * @type {BlockchainMetadata} + * @memberof Activity + */ + 'blockchain_metadata': BlockchainMetadata | null; +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror400-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror400-all-of.ts new file mode 100644 index 0000000000..90aeada8ab --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror400-all-of.ts @@ -0,0 +1,45 @@ +/* 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 APIError400AllOf + */ +export interface APIError400AllOf { + /** + * Error Code + * @type {string} + * @memberof APIError400AllOf + */ + 'code': APIError400AllOfCodeEnum; + /** + * Additional details to help resolve the error + * @type {object} + * @memberof APIError400AllOf + */ + 'details': object | null; +} + +/** + * @export + * @enum {string} + */ +export enum APIError400AllOfCodeEnum { + ValidationError = 'VALIDATION_ERROR' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror400.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror400.ts new file mode 100644 index 0000000000..9b2a55ddc3 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror400.ts @@ -0,0 +1,29 @@ +/* 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 { APIError400AllOf } from './apierror400-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicAPIError } from './basic-apierror'; + +/** + * @type APIError400 + * @export + */ +export type APIError400 = APIError400AllOf & BasicAPIError; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror401-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror401-all-of.ts new file mode 100644 index 0000000000..8818afc714 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror401-all-of.ts @@ -0,0 +1,45 @@ +/* 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 APIError401AllOf + */ +export interface APIError401AllOf { + /** + * Error Code + * @type {string} + * @memberof APIError401AllOf + */ + 'code': APIError401AllOfCodeEnum; + /** + * Additional details to help resolve the error + * @type {object} + * @memberof APIError401AllOf + */ + 'details': object | null; +} + +/** + * @export + * @enum {string} + */ +export enum APIError401AllOfCodeEnum { + UnauthorisedRequest = 'UNAUTHORISED_REQUEST' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror401.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror401.ts new file mode 100644 index 0000000000..f63680ed7e --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror401.ts @@ -0,0 +1,29 @@ +/* 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 { APIError401AllOf } from './apierror401-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicAPIError } from './basic-apierror'; + +/** + * @type APIError401 + * @export + */ +export type APIError401 = APIError401AllOf & BasicAPIError; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror403-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror403-all-of.ts new file mode 100644 index 0000000000..75c7c038fa --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror403-all-of.ts @@ -0,0 +1,45 @@ +/* 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 APIError403AllOf + */ +export interface APIError403AllOf { + /** + * Error Code + * @type {string} + * @memberof APIError403AllOf + */ + 'code': APIError403AllOfCodeEnum; + /** + * Additional details to help resolve the error + * @type {object} + * @memberof APIError403AllOf + */ + 'details': object | null; +} + +/** + * @export + * @enum {string} + */ +export enum APIError403AllOfCodeEnum { + AuthenticationError = 'AUTHENTICATION_ERROR' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror403.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror403.ts new file mode 100644 index 0000000000..fda1a858d2 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror403.ts @@ -0,0 +1,29 @@ +/* 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 { APIError403AllOf } from './apierror403-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicAPIError } from './basic-apierror'; + +/** + * @type APIError403 + * @export + */ +export type APIError403 = APIError403AllOf & BasicAPIError; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror404-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror404-all-of.ts new file mode 100644 index 0000000000..71743790ef --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror404-all-of.ts @@ -0,0 +1,45 @@ +/* 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 APIError404AllOf + */ +export interface APIError404AllOf { + /** + * Error Code + * @type {string} + * @memberof APIError404AllOf + */ + 'code': APIError404AllOfCodeEnum; + /** + * Additional details to help resolve the error + * @type {object} + * @memberof APIError404AllOf + */ + 'details': object | null; +} + +/** + * @export + * @enum {string} + */ +export enum APIError404AllOfCodeEnum { + ResourceNotFound = 'RESOURCE_NOT_FOUND' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror404.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror404.ts new file mode 100644 index 0000000000..b1f67c7ecd --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror404.ts @@ -0,0 +1,29 @@ +/* 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 { APIError404AllOf } from './apierror404-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicAPIError } from './basic-apierror'; + +/** + * @type APIError404 + * @export + */ +export type APIError404 = APIError404AllOf & BasicAPIError; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror429-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror429-all-of.ts new file mode 100644 index 0000000000..be2c869a07 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror429-all-of.ts @@ -0,0 +1,45 @@ +/* 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 APIError429AllOf + */ +export interface APIError429AllOf { + /** + * Error Code + * @type {string} + * @memberof APIError429AllOf + */ + 'code': APIError429AllOfCodeEnum; + /** + * Additional details to help resolve the error + * @type {object} + * @memberof APIError429AllOf + */ + 'details': object | null; +} + +/** + * @export + * @enum {string} + */ +export enum APIError429AllOfCodeEnum { + TooManyRequestsError = 'TOO_MANY_REQUESTS_ERROR' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror429.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror429.ts new file mode 100644 index 0000000000..1794fcdd9a --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror429.ts @@ -0,0 +1,29 @@ +/* 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 { APIError429AllOf } from './apierror429-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicAPIError } from './basic-apierror'; + +/** + * @type APIError429 + * @export + */ +export type APIError429 = APIError429AllOf & BasicAPIError; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror500-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror500-all-of.ts new file mode 100644 index 0000000000..55c9afd834 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror500-all-of.ts @@ -0,0 +1,45 @@ +/* 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 APIError500AllOf + */ +export interface APIError500AllOf { + /** + * Error Code + * @type {string} + * @memberof APIError500AllOf + */ + 'code': APIError500AllOfCodeEnum; + /** + * Additional details to help resolve the error + * @type {object} + * @memberof APIError500AllOf + */ + 'details': object | null; +} + +/** + * @export + * @enum {string} + */ +export enum APIError500AllOfCodeEnum { + InternalServerError = 'INTERNAL_SERVER_ERROR' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror500.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror500.ts new file mode 100644 index 0000000000..3827487594 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror500.ts @@ -0,0 +1,29 @@ +/* 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 { APIError500AllOf } from './apierror500-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicAPIError } from './basic-apierror'; + +/** + * @type APIError500 + * @export + */ +export type APIError500 = APIError500AllOf & BasicAPIError; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror501-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror501-all-of.ts new file mode 100644 index 0000000000..0ffe9cfbde --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror501-all-of.ts @@ -0,0 +1,45 @@ +/* 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 APIError501AllOf + */ +export interface APIError501AllOf { + /** + * Error Code + * @type {string} + * @memberof APIError501AllOf + */ + 'code': APIError501AllOfCodeEnum; + /** + * Additional details to help resolve the error + * @type {object} + * @memberof APIError501AllOf + */ + 'details': object | null; +} + +/** + * @export + * @enum {string} + */ +export enum APIError501AllOfCodeEnum { + NotImplementedError = 'NOT_IMPLEMENTED_ERROR' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror501.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror501.ts new file mode 100644 index 0000000000..ab123854bc --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror501.ts @@ -0,0 +1,29 @@ +/* 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 { APIError501AllOf } from './apierror501-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicAPIError } from './basic-apierror'; + +/** + * @type APIError501 + * @export + */ +export type APIError501 = APIError501AllOf & BasicAPIError; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/basic-apierror.ts b/packages/internal/generated-clients/src/blockchain-data/models/basic-apierror.ts new file mode 100644 index 0000000000..4e812afa5d --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/basic-apierror.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. + */ + + + +/** + * + * @export + * @interface BasicAPIError + */ +export interface BasicAPIError { + /** + * Error Message + * @type {string} + * @memberof BasicAPIError + */ + 'message': string; + /** + * Link to IMX documentation that can help resolve this error + * @type {string} + * @memberof BasicAPIError + */ + 'link': string; + /** + * Trace ID of the initial request + * @type {string} + * @memberof BasicAPIError + */ + 'trace_id': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/blockchain-metadata.ts b/packages/internal/generated-clients/src/blockchain-data/models/blockchain-metadata.ts new file mode 100644 index 0000000000..f38b8b8b08 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/blockchain-metadata.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. + */ + + + +/** + * The metadata related to blockchain transaction + * @export + * @interface BlockchainMetadata + */ +export interface BlockchainMetadata { + /** + * The transaction hash of the activity + * @type {string} + * @memberof BlockchainMetadata + */ + 'transaction_hash': string; + /** + * EVM block number (uint64 as string) + * @type {string} + * @memberof BlockchainMetadata + */ + 'block_number': string; + /** + * Transaction index in a block (uint32 as string) + * @type {string} + * @memberof BlockchainMetadata + */ + 'transaction_index': string; + /** + * The log index of activity in a block (uint32 as string) + * @type {string} + * @memberof BlockchainMetadata + */ + 'log_index': string | null; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/burn.ts b/packages/internal/generated-clients/src/blockchain-data/models/burn.ts new file mode 100644 index 0000000000..cc24f8dde4 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/burn.ts @@ -0,0 +1,45 @@ +/* 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 { ActivityAsset } from './activity-asset'; + +/** + * The burn activity details + * @export + * @interface Burn + */ +export interface Burn { + /** + * The account address the asset was transferred from + * @type {string} + * @memberof Burn + */ + 'from': string; + /** + * The amount of assets burnt + * @type {string} + * @memberof Burn + */ + 'amount': string; + /** + * + * @type {ActivityAsset} + * @memberof Burn + */ + 'asset': ActivityAsset; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/chain-with-details-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/chain-with-details-all-of.ts new file mode 100644 index 0000000000..c1128c98f6 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/chain-with-details-all-of.ts @@ -0,0 +1,30 @@ +/* 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 ChainWithDetailsAllOf + */ +export interface ChainWithDetailsAllOf { + /** + * URL for RPC node + * @type {string} + * @memberof ChainWithDetailsAllOf + */ + 'rpc_url': string | null; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/chain-with-details.ts b/packages/internal/generated-clients/src/blockchain-data/models/chain-with-details.ts new file mode 100644 index 0000000000..29e89d9d0a --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/chain-with-details.ts @@ -0,0 +1,29 @@ +/* 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 { Chain } from './chain'; +// May contain unused imports in some cases +// @ts-ignore +import { ChainWithDetailsAllOf } from './chain-with-details-all-of'; + +/** + * @type ChainWithDetails + * @export + */ +export type ChainWithDetails = Chain & ChainWithDetailsAllOf; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/chain.ts b/packages/internal/generated-clients/src/blockchain-data/models/chain.ts new file mode 100644 index 0000000000..36c6ffa1f6 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/chain.ts @@ -0,0 +1,36 @@ +/* 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. + */ + + + +/** + * The chain details + * @export + * @interface Chain + */ +export interface Chain { + /** + * The id of chain + * @type {string} + * @memberof Chain + */ + 'id': string; + /** + * The name of chain + * @type {string} + * @memberof Chain + */ + 'name': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/collection-contract-type.ts b/packages/internal/generated-clients/src/blockchain-data/models/collection-contract-type.ts new file mode 100644 index 0000000000..6ea850abd8 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/collection-contract-type.ts @@ -0,0 +1,29 @@ +/* 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. + */ + + + +/** + * The collection contract type + * @export + * @enum {string} + */ + +export enum CollectionContractType { + Erc721 = 'ERC721', + Erc1155 = 'ERC1155' +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/collection-metadata.ts b/packages/internal/generated-clients/src/blockchain-data/models/collection-metadata.ts new file mode 100644 index 0000000000..7e5d2eb75b --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/collection-metadata.ts @@ -0,0 +1,66 @@ +/* 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 CollectionMetadata + */ +export interface CollectionMetadata { + /** + * The name of the collection + * @type {string} + * @memberof CollectionMetadata + */ + 'name': string | null; + /** + * The symbol of contract + * @type {string} + * @memberof CollectionMetadata + */ + 'symbol': string | null; + /** + * The description of collection + * @type {string} + * @memberof CollectionMetadata + */ + 'description': string | null; + /** + * The url of the collection image + * @type {string} + * @memberof CollectionMetadata + */ + 'image': string | null; + /** + * The url of external link + * @type {string} + * @memberof CollectionMetadata + */ + 'external_link': string | null; + /** + * The uri for the metadata of the collection + * @type {string} + * @memberof CollectionMetadata + */ + 'contract_uri': string | null; + /** + * The metadata uri for nft + * @type {string} + * @memberof CollectionMetadata + */ + 'base_uri': string | null; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/collection.ts b/packages/internal/generated-clients/src/blockchain-data/models/collection.ts new file mode 100644 index 0000000000..7eab4370c0 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/collection.ts @@ -0,0 +1,110 @@ +/* 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 { Chain } from './chain'; +// May contain unused imports in some cases +// @ts-ignore +import { CollectionContractType } from './collection-contract-type'; + +/** + * + * @export + * @interface Collection + */ +export interface Collection { + /** + * + * @type {Chain} + * @memberof Collection + */ + 'chain': Chain; + /** + * The name of the collection + * @type {string} + * @memberof Collection + */ + 'name': string | null; + /** + * The symbol of contract + * @type {string} + * @memberof Collection + */ + 'symbol': string | null; + /** + * + * @type {CollectionContractType} + * @memberof Collection + */ + 'contract_type': CollectionContractType; + /** + * The address of the contract + * @type {string} + * @memberof Collection + */ + 'contract_address': string; + /** + * The description of collection + * @type {string} + * @memberof Collection + */ + 'description': string | null; + /** + * The url of the collection image + * @type {string} + * @memberof Collection + */ + 'image': string | null; + /** + * The url of external link + * @type {string} + * @memberof Collection + */ + 'external_link': string | null; + /** + * The uri for the metadata of the collection + * @type {string} + * @memberof Collection + */ + 'contract_uri'?: string | null; + /** + * The metadata uri for nft + * @type {string} + * @memberof Collection + */ + 'base_uri': string | null; + /** + * When the collection was first indexed + * @type {string} + * @memberof Collection + */ + 'indexed_at': string; + /** + * When the collection was last updated + * @type {string} + * @memberof Collection + */ + 'updated_at': string; + /** + * When the collection metadata was last synced + * @type {string} + * @memberof Collection + */ + 'metadata_synced_at': string | null; +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/deposit.ts b/packages/internal/generated-clients/src/blockchain-data/models/deposit.ts new file mode 100644 index 0000000000..18be07429d --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/deposit.ts @@ -0,0 +1,45 @@ +/* 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 { ActivityAsset } from './activity-asset'; + +/** + * The deposit activity details + * @export + * @interface Deposit + */ +export interface Deposit { + /** + * The account address the asset was deposited to + * @type {string} + * @memberof Deposit + */ + 'to': string; + /** + * The deposited amount + * @type {string} + * @memberof Deposit + */ + 'amount': string; + /** + * + * @type {ActivityAsset} + * @memberof Deposit + */ + 'asset': ActivityAsset; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/erc1155-item.ts b/packages/internal/generated-clients/src/blockchain-data/models/erc1155-item.ts new file mode 100644 index 0000000000..f317072594 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/erc1155-item.ts @@ -0,0 +1,57 @@ +/* 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 ERC1155Item + */ +export interface ERC1155Item { + /** + * Token type user is offering, which in this case is ERC1155 + * @type {string} + * @memberof ERC1155Item + */ + 'type': ERC1155ItemTypeEnum; + /** + * Address of ERC1155 token + * @type {string} + * @memberof ERC1155Item + */ + 'contract_address': string; + /** + * ID of ERC1155 token + * @type {string} + * @memberof ERC1155Item + */ + 'token_id': string; + /** + * A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + * @type {string} + * @memberof ERC1155Item + */ + 'amount': string; +} + +/** + * @export + * @enum {string} + */ +export enum ERC1155ItemTypeEnum { + Erc1155 = 'ERC1155' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/erc20-item.ts b/packages/internal/generated-clients/src/blockchain-data/models/erc20-item.ts new file mode 100644 index 0000000000..56b64a529f --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/erc20-item.ts @@ -0,0 +1,51 @@ +/* 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 ERC20Item + */ +export interface ERC20Item { + /** + * Token type user is offering, which in this case is ERC20 + * @type {string} + * @memberof ERC20Item + */ + 'type': ERC20ItemTypeEnum; + /** + * Address of ERC20 token + * @type {string} + * @memberof ERC20Item + */ + 'contract_address': string; + /** + * A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + * @type {string} + * @memberof ERC20Item + */ + 'amount': string; +} + +/** + * @export + * @enum {string} + */ +export enum ERC20ItemTypeEnum { + Erc20 = 'ERC20' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/erc721-item.ts b/packages/internal/generated-clients/src/blockchain-data/models/erc721-item.ts new file mode 100644 index 0000000000..2ae219f6fe --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/erc721-item.ts @@ -0,0 +1,51 @@ +/* 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 ERC721Item + */ +export interface ERC721Item { + /** + * Token type user is offering, which in this case is ERC721 + * @type {string} + * @memberof ERC721Item + */ + 'type': ERC721ItemTypeEnum; + /** + * Address of ERC721 token + * @type {string} + * @memberof ERC721Item + */ + 'contract_address': string; + /** + * ID of ERC721 token + * @type {string} + * @memberof ERC721Item + */ + 'token_id': string; +} + +/** + * @export + * @enum {string} + */ +export enum ERC721ItemTypeEnum { + Erc721 = 'ERC721' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/get-activity-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/get-activity-result.ts new file mode 100644 index 0000000000..07c96ea948 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/get-activity-result.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 { Activity } from './activity'; + +/** + * Single activity + * @export + * @interface GetActivityResult + */ +export interface GetActivityResult { + /** + * + * @type {Activity} + * @memberof GetActivityResult + */ + 'result': Activity; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/get-collection-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/get-collection-result.ts new file mode 100644 index 0000000000..2a3af16a94 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/get-collection-result.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 { Collection } from './collection'; + +/** + * Single Collection + * @export + * @interface GetCollectionResult + */ +export interface GetCollectionResult { + /** + * + * @type {Collection} + * @memberof GetCollectionResult + */ + 'result': Collection; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/get-metadata-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/get-metadata-result.ts new file mode 100644 index 0000000000..64ed25687a --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/get-metadata-result.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 { Metadata } from './metadata'; + +/** + * Single metadata + * @export + * @interface GetMetadataResult + */ +export interface GetMetadataResult { + /** + * + * @type {Metadata} + * @memberof GetMetadataResult + */ + 'result': Metadata; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/get-mint-request-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/get-mint-request-result.ts new file mode 100644 index 0000000000..54dc07ef61 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/get-mint-request-result.ts @@ -0,0 +1,83 @@ +/* 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 { Chain } from './chain'; +// May contain unused imports in some cases +// @ts-ignore +import { MintRequestErrorMessage } from './mint-request-error-message'; +// May contain unused imports in some cases +// @ts-ignore +import { MintRequestStatus } from './mint-request-status'; + +/** + * + * @export + * @interface GetMintRequestResult + */ +export interface GetMintRequestResult { + /** + * + * @type {Chain} + * @memberof GetMintRequestResult + */ + 'chain': Chain; + /** + * The address of the contract + * @type {string} + * @memberof GetMintRequestResult + */ + 'collection_address': string; + /** + * The reference ID of this mint request + * @type {string} + * @memberof GetMintRequestResult + */ + 'reference_id': string; + /** + * The address of the owner of the NFT + * @type {string} + * @memberof GetMintRequestResult + */ + 'owner_address': string; + /** + * An `uint256` token id as string. Only available when the mint request succeeds + * @type {string} + * @memberof GetMintRequestResult + */ + 'token_id': string | null; + /** + * The transaction hash of the activity + * @type {string} + * @memberof GetMintRequestResult + */ + 'transaction_hash': string | null; + /** + * + * @type {MintRequestErrorMessage} + * @memberof GetMintRequestResult + */ + 'error': MintRequestErrorMessage | null; + /** + * + * @type {MintRequestStatus} + * @memberof GetMintRequestResult + */ + 'status': MintRequestStatus; +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/get-nftresult.ts b/packages/internal/generated-clients/src/blockchain-data/models/get-nftresult.ts new file mode 100644 index 0000000000..0209315a88 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/get-nftresult.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 { NFTWithMetadataAttributes } from './nftwith-metadata-attributes'; + +/** + * Single NFT + * @export + * @interface GetNFTResult + */ +export interface GetNFTResult { + /** + * + * @type {NFTWithMetadataAttributes} + * @memberof GetNFTResult + */ + 'result': NFTWithMetadataAttributes; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/get-token-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/get-token-result.ts new file mode 100644 index 0000000000..fd0cb3e1ab --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/get-token-result.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 { Token } from './token'; + +/** + * Single Token + * @export + * @interface GetTokenResult + */ +export interface GetTokenResult { + /** + * + * @type {Token} + * @memberof GetTokenResult + */ + 'result': Token; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/index.ts b/packages/internal/generated-clients/src/blockchain-data/models/index.ts new file mode 100644 index 0000000000..cc173c6c54 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/index.ts @@ -0,0 +1,85 @@ +export * from './apierror400'; +export * from './apierror400-all-of'; +export * from './apierror401'; +export * from './apierror401-all-of'; +export * from './apierror403'; +export * from './apierror403-all-of'; +export * from './apierror404'; +export * from './apierror404-all-of'; +export * from './apierror429'; +export * from './apierror429-all-of'; +export * from './apierror500'; +export * from './apierror500-all-of'; +export * from './apierror501'; +export * from './apierror501-all-of'; +export * from './active-order-status'; +export * from './activity'; +export * from './activity-asset'; +export * from './activity-details'; +export * from './activity-nft'; +export * from './activity-native-token'; +export * from './activity-token'; +export * from './activity-type'; +export * from './basic-apierror'; +export * from './blockchain-metadata'; +export * from './burn'; +export * from './chain'; +export * from './chain-with-details'; +export * from './chain-with-details-all-of'; +export * from './collection'; +export * from './collection-contract-type'; +export * from './collection-metadata'; +export * from './deposit'; +export * from './erc1155-item'; +export * from './erc20-item'; +export * from './erc721-item'; +export * from './get-activity-result'; +export * from './get-collection-result'; +export * from './get-metadata-result'; +export * from './get-mint-request-result'; +export * from './get-nftresult'; +export * from './get-token-result'; +export * from './item'; +export * from './list-activities-result'; +export * from './list-chains-result'; +export * from './list-collection-owners-result'; +export * from './list-collections-result'; +export * from './list-metadata-result'; +export * from './list-nftowners-result'; +export * from './list-nfts-by-owner-result'; +export * from './list-nfts-result'; +export * from './list-tokens-result'; +export * from './metadata'; +export * from './metadata-refresh-rate-limit-result'; +export * from './mint'; +export * from './mint-asset'; +export * from './mint-request-error-message'; +export * from './mint-request-status'; +export * from './nft'; +export * from './nftcontract-type'; +export * from './nftmetadata-attribute'; +export * from './nftmetadata-attribute-value'; +export * from './nftmetadata-attributes'; +export * from './nftowner'; +export * from './nftsale'; +export * from './nftwith-balance'; +export * from './nftwith-metadata-attributes'; +export * from './nftwith-owner'; +export * from './native-item'; +export * from './page'; +export * from './refresh-collection-metadata-request'; +export * from './refresh-collection-metadata-result'; +export * from './refresh-metadata-by-id'; +export * from './refresh-metadata-by-idall-of'; +export * from './refresh-metadata-by-idrequest'; +export * from './refresh-metadata-by-token-id'; +export * from './refresh-metadata-by-token-idall-of'; +export * from './refresh-nftmetadata-by-token-idrequest'; +export * from './refreshable-nftattributes'; +export * from './sale-fee'; +export * from './sale-payment'; +export * from './sale-payment-token'; +export * from './token'; +export * from './token-contract-type'; +export * from './transfer'; +export * from './withdrawal'; diff --git a/packages/internal/generated-clients/src/blockchain-data/models/item.ts b/packages/internal/generated-clients/src/blockchain-data/models/item.ts new file mode 100644 index 0000000000..3bb5c2a1ea --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/item.ts @@ -0,0 +1,35 @@ +/* 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 { ERC1155Item } from './erc1155-item'; +// May contain unused imports in some cases +// @ts-ignore +import { ERC20Item } from './erc20-item'; +// May contain unused imports in some cases +// @ts-ignore +import { ERC721Item } from './erc721-item'; +// May contain unused imports in some cases +// @ts-ignore +import { NativeItem } from './native-item'; + +/** + * @type Item + * @export + */ +export type Item = { type: 'ERC1155' } & ERC1155Item | { type: 'ERC20' } & ERC20Item | { type: 'ERC721' } & ERC721Item | { type: 'NATIVE' } & NativeItem; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-activities-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-activities-result.ts new file mode 100644 index 0000000000..506bcf22fa --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-activities-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 { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * List activities response + * @export + * @interface ListActivitiesResult + */ +export interface ListActivitiesResult { + /** + * List of activities + * @type {Array} + * @memberof ListActivitiesResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListActivitiesResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-chains-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-chains-result.ts new file mode 100644 index 0000000000..d4433df821 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-chains-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 { ChainWithDetails } from './chain-with-details'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * + * @export + * @interface ListChainsResult + */ +export interface ListChainsResult { + /** + * List of chains + * @type {Array} + * @memberof ListChainsResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListChainsResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-collection-owners-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-collection-owners-result.ts new file mode 100644 index 0000000000..0d6e73cb55 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-collection-owners-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 { NFTWithOwner } from './nftwith-owner'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * + * @export + * @interface ListCollectionOwnersResult + */ +export interface ListCollectionOwnersResult { + /** + * List of NFT owners + * @type {Array} + * @memberof ListCollectionOwnersResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListCollectionOwnersResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-collections-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-collections-result.ts new file mode 100644 index 0000000000..b8d0377dc4 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-collections-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 { Collection } from './collection'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * + * @export + * @interface ListCollectionsResult + */ +export interface ListCollectionsResult { + /** + * List of collections + * @type {Array} + * @memberof ListCollectionsResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListCollectionsResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-metadata-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-metadata-result.ts new file mode 100644 index 0000000000..a2cbccf972 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-metadata-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 { Metadata } from './metadata'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * + * @export + * @interface ListMetadataResult + */ +export interface ListMetadataResult { + /** + * List of metadata + * @type {Array} + * @memberof ListMetadataResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListMetadataResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-nftowners-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-nftowners-result.ts new file mode 100644 index 0000000000..b5bf69185c --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-nftowners-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 { NFTOwner } from './nftowner'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * + * @export + * @interface ListNFTOwnersResult + */ +export interface ListNFTOwnersResult { + /** + * List of nft owners + * @type {Array} + * @memberof ListNFTOwnersResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListNFTOwnersResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-nfts-by-owner-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-nfts-by-owner-result.ts new file mode 100644 index 0000000000..b7adb602ed --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-nfts-by-owner-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 { NFTWithBalance } from './nftwith-balance'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * + * @export + * @interface ListNFTsByOwnerResult + */ +export interface ListNFTsByOwnerResult { + /** + * List of nfts by owner + * @type {Array} + * @memberof ListNFTsByOwnerResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListNFTsByOwnerResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-nfts-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-nfts-result.ts new file mode 100644 index 0000000000..4eb6013baa --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-nfts-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 { NFT } from './nft'; +// May contain unused imports in some cases +// @ts-ignore +import { Page } from './page'; + +/** + * + * @export + * @interface ListNFTsResult + */ +export interface ListNFTsResult { + /** + * List of nfts + * @type {Array} + * @memberof ListNFTsResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListNFTsResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/list-tokens-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/list-tokens-result.ts new file mode 100644 index 0000000000..f303b3d770 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/list-tokens-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 { Page } from './page'; +// May contain unused imports in some cases +// @ts-ignore +import { Token } from './token'; + +/** + * + * @export + * @interface ListTokensResult + */ +export interface ListTokensResult { + /** + * List of tokens + * @type {Array} + * @memberof ListTokensResult + */ + 'result': Array; + /** + * + * @type {Page} + * @memberof ListTokensResult + */ + 'page': Page; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/metadata-refresh-rate-limit-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/metadata-refresh-rate-limit-result.ts new file mode 100644 index 0000000000..baac1b3306 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/metadata-refresh-rate-limit-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 MetadataRefreshRateLimitResult + */ +export interface MetadataRefreshRateLimitResult { + /** + * + * @type {string} + * @memberof MetadataRefreshRateLimitResult + */ + 'imx_refreshes_limit': string; + /** + * + * @type {string} + * @memberof MetadataRefreshRateLimitResult + */ + 'imx_refresh_limit_reset': string; + /** + * + * @type {string} + * @memberof MetadataRefreshRateLimitResult + */ + 'imx_remaining_refreshes': string; + /** + * + * @type {string} + * @memberof MetadataRefreshRateLimitResult + */ + 'retry_after': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/metadata.ts b/packages/internal/generated-clients/src/blockchain-data/models/metadata.ts new file mode 100644 index 0000000000..48c9a8aaf5 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/metadata.ts @@ -0,0 +1,102 @@ +/* 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 { Chain } from './chain'; +// May contain unused imports in some cases +// @ts-ignore +import { NFTMetadataAttribute } from './nftmetadata-attribute'; + +/** + * + * @export + * @interface Metadata + */ +export interface Metadata { + /** + * Metadata ID in UUIDv4 format + * @type {string} + * @memberof Metadata + */ + 'id': string; + /** + * + * @type {Chain} + * @memberof Metadata + */ + 'chain': Chain; + /** + * The contract address of the metadata + * @type {string} + * @memberof Metadata + */ + 'contract_address': string; + /** + * When the metadata was created + * @type {string} + * @memberof Metadata + */ + 'created_at': string; + /** + * When the metadata was last updated + * @type {string} + * @memberof Metadata + */ + 'updated_at': string | null; + /** + * The name of the NFT + * @type {string} + * @memberof Metadata + */ + 'name': string | null; + /** + * The description of the NFT + * @type {string} + * @memberof Metadata + */ + 'description': string | null; + /** + * The image url of the NFT + * @type {string} + * @memberof Metadata + */ + 'image': string | null; + /** + * The external website link of NFT + * @type {string} + * @memberof Metadata + */ + 'external_url'?: string | null; + /** + * The animation url of the NFT + * @type {string} + * @memberof Metadata + */ + 'animation_url': string | null; + /** + * The youtube URL of NFT + * @type {string} + * @memberof Metadata + */ + 'youtube_url': string | null; + /** + * List of Metadata attributes + * @type {Array} + * @memberof Metadata + */ + 'attributes': Array | null; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/mint-asset.ts b/packages/internal/generated-clients/src/blockchain-data/models/mint-asset.ts new file mode 100644 index 0000000000..a6130acaf8 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/mint-asset.ts @@ -0,0 +1,45 @@ +/* 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 { RefreshableNFTAttributes } from './refreshable-nftattributes'; + +/** + * + * @export + * @interface MintAsset + */ +export interface MintAsset { + /** + * The ID of this asset in the system that originates the mint request + * @type {string} + * @memberof MintAsset + */ + 'reference_id': string; + /** + * The address of the receiver + * @type {string} + * @memberof MintAsset + */ + 'owner_address': string; + /** + * + * @type {RefreshableNFTAttributes} + * @memberof MintAsset + */ + 'metadata'?: RefreshableNFTAttributes; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/mint-request-error-message.ts b/packages/internal/generated-clients/src/blockchain-data/models/mint-request-error-message.ts new file mode 100644 index 0000000000..eff4201bf3 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/mint-request-error-message.ts @@ -0,0 +1,30 @@ +/* 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 MintRequestErrorMessage + */ +export interface MintRequestErrorMessage { + /** + * An error message in case the mint request fails + * @type {string} + * @memberof MintRequestErrorMessage + */ + 'message'?: string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/mint-request-status.ts b/packages/internal/generated-clients/src/blockchain-data/models/mint-request-status.ts new file mode 100644 index 0000000000..ef616e490a --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/mint-request-status.ts @@ -0,0 +1,30 @@ +/* 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. + */ + + + +/** + * The status of the mint request + * @export + * @enum {string} + */ + +export enum MintRequestStatus { + Pending = 'pending', + Succeeded = 'succeeded', + Failed = 'failed' +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/mint.ts b/packages/internal/generated-clients/src/blockchain-data/models/mint.ts new file mode 100644 index 0000000000..c4ae6c085f --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/mint.ts @@ -0,0 +1,45 @@ +/* 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 { ActivityAsset } from './activity-asset'; + +/** + * The mint activity details + * @export + * @interface Mint + */ +export interface Mint { + /** + * The account address the asset was minted to + * @type {string} + * @memberof Mint + */ + 'to': string; + /** + * The minted amount + * @type {string} + * @memberof Mint + */ + 'amount': string; + /** + * + * @type {ActivityAsset} + * @memberof Mint + */ + 'asset': ActivityAsset; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/native-item.ts b/packages/internal/generated-clients/src/blockchain-data/models/native-item.ts new file mode 100644 index 0000000000..d351ce1e76 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/native-item.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 NativeItem + */ +export interface NativeItem { + /** + * Token type user is offering, which in this case is the native IMX token + * @type {string} + * @memberof NativeItem + */ + 'type': NativeItemTypeEnum; + /** + * A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + * @type {string} + * @memberof NativeItem + */ + 'amount': string; +} + +/** + * @export + * @enum {string} + */ +export enum NativeItemTypeEnum { + Native = 'NATIVE', + Erc20 = 'ERC20', + Erc721 = 'ERC721', + Erc1155 = 'ERC1155' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nft.ts b/packages/internal/generated-clients/src/blockchain-data/models/nft.ts new file mode 100644 index 0000000000..c9621a2e4c --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nft.ts @@ -0,0 +1,105 @@ +/* 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 { Chain } from './chain'; + +/** + * + * @export + * @interface NFT + */ +export interface NFT { + /** + * + * @type {Chain} + * @memberof NFT + */ + 'chain': Chain; + /** + * An `uint256` token id as string + * @type {string} + * @memberof NFT + */ + 'token_id': string; + /** + * The contract address of the NFT + * @type {string} + * @memberof NFT + */ + 'contract_address': string; + /** + * When the NFT was first indexed + * @type {string} + * @memberof NFT + */ + 'indexed_at': string; + /** + * When the NFT owner was last updated + * @type {string} + * @memberof NFT + */ + 'updated_at': string; + /** + * When NFT metadata was last synced + * @type {string} + * @memberof NFT + */ + 'metadata_synced_at': string | null; + /** + * The id of the metadata of this NFT + * @type {string} + * @memberof NFT + */ + 'metadata_id'?: string | null; + /** + * The name of the NFT + * @type {string} + * @memberof NFT + */ + 'name': string | null; + /** + * The description of the NFT + * @type {string} + * @memberof NFT + */ + 'description': string | null; + /** + * The image url of the NFT + * @type {string} + * @memberof NFT + */ + 'image': string | null; + /** + * The external website link of NFT + * @type {string} + * @memberof NFT + */ + 'external_link': string | null; + /** + * The animation url of the NFT + * @type {string} + * @memberof NFT + */ + 'animation_url': string | null; + /** + * The youtube URL of NFT + * @type {string} + * @memberof NFT + */ + 'youtube_url': string | null; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftcontract-type.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftcontract-type.ts new file mode 100644 index 0000000000..87babb4a4f --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftcontract-type.ts @@ -0,0 +1,28 @@ +/* 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. + */ + + + +/** + * The contract type for an NFT + * @export + * @enum {string} + */ + +export enum NFTContractType { + Erc721 = 'ERC721' +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attribute-value.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attribute-value.ts new file mode 100644 index 0000000000..902cbf473e --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attribute-value.ts @@ -0,0 +1,24 @@ +/* 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. + */ + + + +/** + * @type NFTMetadataAttributeValue + * The metadata trait value + * @export + */ +export type NFTMetadataAttributeValue = boolean | number | string; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attribute.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attribute.ts new file mode 100644 index 0000000000..ffb16ffe8c --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attribute.ts @@ -0,0 +1,39 @@ +/* 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 { NFTMetadataAttributeValue } from './nftmetadata-attribute-value'; + +/** + * + * @export + * @interface NFTMetadataAttribute + */ +export interface NFTMetadataAttribute { + /** + * The metadata trait type + * @type {string} + * @memberof NFTMetadataAttribute + */ + 'trait_type': string; + /** + * + * @type {NFTMetadataAttributeValue} + * @memberof NFTMetadataAttribute + */ + 'value': NFTMetadataAttributeValue; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attributes.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attributes.ts new file mode 100644 index 0000000000..013d03fe4b --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftmetadata-attributes.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 { NFTMetadataAttribute } from './nftmetadata-attribute'; + +/** + * List of normalized NFT metadata attributes + * @export + * @interface NFTMetadataAttributes + */ +export interface NFTMetadataAttributes { + /** + * List of NFT Metadata attributes + * @type {Array} + * @memberof NFTMetadataAttributes + */ + 'attributes': Array; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftowner.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftowner.ts new file mode 100644 index 0000000000..fdd0e88587 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftowner.ts @@ -0,0 +1,63 @@ +/* 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 { Chain } from './chain'; + +/** + * + * @export + * @interface NFTOwner + */ +export interface NFTOwner { + /** + * + * @type {Chain} + * @memberof NFTOwner + */ + 'chain': Chain; + /** + * The address of NFT contract + * @type {string} + * @memberof NFTOwner + */ + 'contract_address': string; + /** + * An `uint256` token id as string + * @type {string} + * @memberof NFTOwner + */ + 'token_id': string; + /** + * The account address of the owner of the NFT + * @type {string} + * @memberof NFTOwner + */ + 'account_address': string; + /** + * The quantity of owned tokens (uint256 as string) + * @type {string} + * @memberof NFTOwner + */ + 'quantity': string; + /** + * When the NFT owner was last updated + * @type {string} + * @memberof NFTOwner + */ + 'updated_at'?: string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftsale.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftsale.ts new file mode 100644 index 0000000000..973da2aeaf --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftsale.ts @@ -0,0 +1,60 @@ +/* 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 { ActivityNFT } from './activity-nft'; +// May contain unused imports in some cases +// @ts-ignore +import { SalePayment } from './sale-payment'; + +/** + * The NFT Sale activity details + * @export + * @interface NFTSale + */ +export interface NFTSale { + /** + * The id of order + * @type {string} + * @memberof NFTSale + */ + 'order_id': string; + /** + * The account address of buyer + * @type {string} + * @memberof NFTSale + */ + 'to': string; + /** + * The account address of seller + * @type {string} + * @memberof NFTSale + */ + 'from': string; + /** + * + * @type {Array} + * @memberof NFTSale + */ + 'asset': Array; + /** + * + * @type {SalePayment} + * @memberof NFTSale + */ + 'payment': SalePayment; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftwith-balance.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-balance.ts new file mode 100644 index 0000000000..39abbc5e27 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-balance.ts @@ -0,0 +1,117 @@ +/* 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 { Chain } from './chain'; + +/** + * + * @export + * @interface NFTWithBalance + */ +export interface NFTWithBalance { + /** + * + * @type {Chain} + * @memberof NFTWithBalance + */ + 'chain': Chain; + /** + * An `uint256` token id as string + * @type {string} + * @memberof NFTWithBalance + */ + 'token_id': string; + /** + * The contract address of the NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'contract_address': string; + /** + * The contract type of the NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'contract_type': string; + /** + * When the NFT was first indexed + * @type {string} + * @memberof NFTWithBalance + */ + 'indexed_at': string; + /** + * When the NFT owner was last updated + * @type {string} + * @memberof NFTWithBalance + */ + 'updated_at': string; + /** + * When NFT metadata was last synced + * @type {string} + * @memberof NFTWithBalance + */ + 'metadata_synced_at': string | null; + /** + * The id of the metadata of this NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'metadata_id'?: string | null; + /** + * The name of the NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'name': string | null; + /** + * The description of the NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'description': string | null; + /** + * The image url of the NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'image': string | null; + /** + * The external website link of NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'external_link': string | null; + /** + * The animation url of the NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'animation_url': string | null; + /** + * The youtube URL of NFT + * @type {string} + * @memberof NFTWithBalance + */ + 'youtube_url': string | null; + /** + * The balance of NFT in the account + * @type {string} + * @memberof NFTWithBalance + */ + 'balance': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftwith-metadata-attributes.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-metadata-attributes.ts new file mode 100644 index 0000000000..1c8bc4e9bc --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-metadata-attributes.ts @@ -0,0 +1,36 @@ +/* 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 { Chain } from './chain'; +// May contain unused imports in some cases +// @ts-ignore +import { NFT } from './nft'; +// May contain unused imports in some cases +// @ts-ignore +import { NFTMetadataAttribute } from './nftmetadata-attribute'; +// May contain unused imports in some cases +// @ts-ignore +import { NFTMetadataAttributes } from './nftmetadata-attributes'; + +/** + * @type NFTWithMetadataAttributes + * A single NFT with metadata attributes + * @export + */ +export type NFTWithMetadataAttributes = NFT & NFTMetadataAttributes; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftwith-owner.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-owner.ts new file mode 100644 index 0000000000..6dd0f2ba57 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-owner.ts @@ -0,0 +1,63 @@ +/* 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 { Chain } from './chain'; + +/** + * + * @export + * @interface NFTWithOwner + */ +export interface NFTWithOwner { + /** + * + * @type {Chain} + * @memberof NFTWithOwner + */ + 'chain': Chain; + /** + * The address of NFT contract + * @type {string} + * @memberof NFTWithOwner + */ + 'contract_address': string; + /** + * An `uint256` token id as string + * @type {string} + * @memberof NFTWithOwner + */ + 'token_id': string; + /** + * The account address of the owner of the NFT + * @type {string} + * @memberof NFTWithOwner + */ + 'account_address': string; + /** + * The quantity of owned tokens (uint256 as string) + * @type {string} + * @memberof NFTWithOwner + */ + 'quantity': string; + /** + * When the owner last changed for the given NFT + * @type {string} + * @memberof NFTWithOwner + */ + 'updated_at': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/page.ts b/packages/internal/generated-clients/src/blockchain-data/models/page.ts new file mode 100644 index 0000000000..7d6106ada6 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/page.ts @@ -0,0 +1,36 @@ +/* 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. + */ + + + +/** + * Pagination properties + * @export + * @interface Page + */ +export interface Page { + /** + * First item as an encoded string + * @type {string} + * @memberof Page + */ + 'previous_cursor': string | null; + /** + * Last item as an encoded string + * @type {string} + * @memberof Page + */ + 'next_cursor': string | null; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refresh-collection-metadata-request.ts b/packages/internal/generated-clients/src/blockchain-data/models/refresh-collection-metadata-request.ts new file mode 100644 index 0000000000..69b2e3e3b0 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refresh-collection-metadata-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 { CollectionMetadata } from './collection-metadata'; + +/** + * + * @export + * @interface RefreshCollectionMetadataRequest + */ +export interface RefreshCollectionMetadataRequest { + /** + * + * @type {CollectionMetadata} + * @memberof RefreshCollectionMetadataRequest + */ + 'collection_metadata': CollectionMetadata; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refresh-collection-metadata-result.ts b/packages/internal/generated-clients/src/blockchain-data/models/refresh-collection-metadata-result.ts new file mode 100644 index 0000000000..174447156c --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refresh-collection-metadata-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. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Chain } from './chain'; +// May contain unused imports in some cases +// @ts-ignore +import { CollectionMetadata } from './collection-metadata'; + +/** + * + * @export + * @interface RefreshCollectionMetadataResult + */ +export interface RefreshCollectionMetadataResult { + /** + * + * @type {string} + * @memberof RefreshCollectionMetadataResult + */ + 'contract_address': string; + /** + * + * @type {Chain} + * @memberof RefreshCollectionMetadataResult + */ + 'chain': Chain; + /** + * + * @type {CollectionMetadata} + * @memberof RefreshCollectionMetadataResult + */ + 'collection_metadata': CollectionMetadata; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-id.ts b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-id.ts new file mode 100644 index 0000000000..7fe2f11533 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-id.ts @@ -0,0 +1,32 @@ +/* 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 { NFTMetadataAttribute } from './nftmetadata-attribute'; +// May contain unused imports in some cases +// @ts-ignore +import { RefreshMetadataByIDAllOf } from './refresh-metadata-by-idall-of'; +// May contain unused imports in some cases +// @ts-ignore +import { RefreshableNFTAttributes } from './refreshable-nftattributes'; + +/** + * @type RefreshMetadataByID + * @export + */ +export type RefreshMetadataByID = RefreshMetadataByIDAllOf & RefreshableNFTAttributes; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-idall-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-idall-of.ts new file mode 100644 index 0000000000..e955f3a060 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-idall-of.ts @@ -0,0 +1,30 @@ +/* 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 RefreshMetadataByIDAllOf + */ +export interface RefreshMetadataByIDAllOf { + /** + * Metadata ID in UUIDv4 format + * @type {string} + * @memberof RefreshMetadataByIDAllOf + */ + 'metadata_id': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-idrequest.ts b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-idrequest.ts new file mode 100644 index 0000000000..da837a2d54 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-idrequest.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 { RefreshMetadataByID } from './refresh-metadata-by-id'; + +/** + * Request body for refreshing metadata by id + * @export + * @interface RefreshMetadataByIDRequest + */ +export interface RefreshMetadataByIDRequest { + /** + * + * @type {Array} + * @memberof RefreshMetadataByIDRequest + */ + 'metadata'?: Array; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-token-id.ts b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-token-id.ts new file mode 100644 index 0000000000..9d09f24921 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-token-id.ts @@ -0,0 +1,32 @@ +/* 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 { NFTMetadataAttribute } from './nftmetadata-attribute'; +// May contain unused imports in some cases +// @ts-ignore +import { RefreshMetadataByTokenIDAllOf } from './refresh-metadata-by-token-idall-of'; +// May contain unused imports in some cases +// @ts-ignore +import { RefreshableNFTAttributes } from './refreshable-nftattributes'; + +/** + * @type RefreshMetadataByTokenID + * @export + */ +export type RefreshMetadataByTokenID = RefreshMetadataByTokenIDAllOf & RefreshableNFTAttributes; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-token-idall-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-token-idall-of.ts new file mode 100644 index 0000000000..6c7a1f78f7 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refresh-metadata-by-token-idall-of.ts @@ -0,0 +1,30 @@ +/* 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 RefreshMetadataByTokenIDAllOf + */ +export interface RefreshMetadataByTokenIDAllOf { + /** + * An `uint256` token id as string + * @type {string} + * @memberof RefreshMetadataByTokenIDAllOf + */ + 'token_id': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refresh-nftmetadata-by-token-idrequest.ts b/packages/internal/generated-clients/src/blockchain-data/models/refresh-nftmetadata-by-token-idrequest.ts new file mode 100644 index 0000000000..5e63655c04 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refresh-nftmetadata-by-token-idrequest.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 { RefreshMetadataByTokenID } from './refresh-metadata-by-token-id'; + +/** + * + * @export + * @interface RefreshNFTMetadataByTokenIDRequest + */ +export interface RefreshNFTMetadataByTokenIDRequest { + /** + * List of nft metadata to be refreshed + * @type {Array} + * @memberof RefreshNFTMetadataByTokenIDRequest + */ + 'nft_metadata': Array; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/refreshable-nftattributes.ts b/packages/internal/generated-clients/src/blockchain-data/models/refreshable-nftattributes.ts new file mode 100644 index 0000000000..9372db43da --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/refreshable-nftattributes.ts @@ -0,0 +1,69 @@ +/* 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 { NFTMetadataAttribute } from './nftmetadata-attribute'; + +/** + * + * @export + * @interface RefreshableNFTAttributes + */ +export interface RefreshableNFTAttributes { + /** + * The name of the NFT + * @type {string} + * @memberof RefreshableNFTAttributes + */ + 'name': string | null; + /** + * The description of the NFT + * @type {string} + * @memberof RefreshableNFTAttributes + */ + 'description': string | null; + /** + * The image url of the NFT + * @type {string} + * @memberof RefreshableNFTAttributes + */ + 'image': string | null; + /** + * The external link of the NFT + * @type {string} + * @memberof RefreshableNFTAttributes + */ + 'external_url': string | null; + /** + * The animation url of the NFT + * @type {string} + * @memberof RefreshableNFTAttributes + */ + 'animation_url': string | null; + /** + * The youtube link of the NFT + * @type {string} + * @memberof RefreshableNFTAttributes + */ + 'youtube_url': string | null; + /** + * List of Metadata attributes + * @type {Array} + * @memberof RefreshableNFTAttributes + */ + 'attributes': Array | null; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/sale-fee.ts b/packages/internal/generated-clients/src/blockchain-data/models/sale-fee.ts new file mode 100644 index 0000000000..0cdc2f848b --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/sale-fee.ts @@ -0,0 +1,51 @@ +/* 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 SaleFee + */ +export interface SaleFee { + /** + * Fee payable to recipient upon settlement + * @type {string} + * @memberof SaleFee + */ + 'amount'?: string; + /** + * Fee type + * @type {string} + * @memberof SaleFee + */ + 'type'?: SaleFeeTypeEnum; + /** + * Wallet address of fee recipient + * @type {string} + * @memberof SaleFee + */ + 'recipient'?: string; +} + +/** + * @export + * @enum {string} + */ +export enum SaleFeeTypeEnum { + Royalty = 'ROYALTY' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/sale-payment-token.ts b/packages/internal/generated-clients/src/blockchain-data/models/sale-payment-token.ts new file mode 100644 index 0000000000..cf3b70fdb7 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/sale-payment-token.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 { ActivityNativeToken } from './activity-native-token'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityToken } from './activity-token'; +// May contain unused imports in some cases +// @ts-ignore +import { TokenContractType } from './token-contract-type'; + +/** + * @type SalePaymentToken + * The type of payment token + * @export + */ +export type SalePaymentToken = ActivityNativeToken | ActivityToken; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/sale-payment.ts b/packages/internal/generated-clients/src/blockchain-data/models/sale-payment.ts new file mode 100644 index 0000000000..9f151856fb --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/sale-payment.ts @@ -0,0 +1,54 @@ +/* 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 { SaleFee } from './sale-fee'; +// May contain unused imports in some cases +// @ts-ignore +import { SalePaymentToken } from './sale-payment-token'; + +/** + * + * @export + * @interface SalePayment + */ +export interface SalePayment { + /** + * + * @type {SalePaymentToken} + * @memberof SalePayment + */ + 'token': SalePaymentToken; + /** + * The base price of the sale not including any fees + * @type {string} + * @memberof SalePayment + */ + 'price_excluding_fees': string; + /** + * The total price of the sale. Includes the sum of all fees + * @type {string} + * @memberof SalePayment + */ + 'price_including_fees': string; + /** + * The fees associated with this sale + * @type {Array} + * @memberof SalePayment + */ + 'fees': Array; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/token-contract-type.ts b/packages/internal/generated-clients/src/blockchain-data/models/token-contract-type.ts new file mode 100644 index 0000000000..3192019681 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/token-contract-type.ts @@ -0,0 +1,28 @@ +/* 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. + */ + + + +/** + * The contract type for a token + * @export + * @enum {string} + */ + +export enum TokenContractType { + Erc20 = 'ERC20' +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/token.ts b/packages/internal/generated-clients/src/blockchain-data/models/token.ts new file mode 100644 index 0000000000..7ac8c20211 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/token.ts @@ -0,0 +1,75 @@ +/* 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 { Chain } from './chain'; + +/** + * + * @export + * @interface Token + */ +export interface Token { + /** + * + * @type {Chain} + * @memberof Token + */ + 'chain': Chain; + /** + * The address of token contract + * @type {string} + * @memberof Token + */ + 'contract_address': string; + /** + * The address of root token contract + * @type {string} + * @memberof Token + */ + 'root_contract_address': string | null; + /** + * The symbol of token + * @type {string} + * @memberof Token + */ + 'symbol': string | null; + /** + * The decimals of token + * @type {number} + * @memberof Token + */ + 'decimals': number | null; + /** + * The image url of token + * @type {string} + * @memberof Token + */ + 'image_url': string | null; + /** + * The name of token + * @type {string} + * @memberof Token + */ + 'name': string | null; + /** + * When the collection was last updated + * @type {string} + * @memberof Token + */ + 'updated_at': string; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/transfer.ts b/packages/internal/generated-clients/src/blockchain-data/models/transfer.ts new file mode 100644 index 0000000000..21a99c0a75 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/transfer.ts @@ -0,0 +1,51 @@ +/* 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 { ActivityAsset } from './activity-asset'; + +/** + * The transfer activity details + * @export + * @interface Transfer + */ +export interface Transfer { + /** + * The account address the asset was transferred from + * @type {string} + * @memberof Transfer + */ + 'from': string; + /** + * The account address the asset was transferred to + * @type {string} + * @memberof Transfer + */ + 'to': string; + /** + * The amount of assets transferred + * @type {string} + * @memberof Transfer + */ + 'amount': string; + /** + * + * @type {ActivityAsset} + * @memberof Transfer + */ + 'asset': ActivityAsset; +} + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/withdrawal.ts b/packages/internal/generated-clients/src/blockchain-data/models/withdrawal.ts new file mode 100644 index 0000000000..832bcb445a --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/withdrawal.ts @@ -0,0 +1,45 @@ +/* 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 { ActivityAsset } from './activity-asset'; + +/** + * The withdrawal activity details + * @export + * @interface Withdrawal + */ +export interface Withdrawal { + /** + * The account address the asset was withdrawn from + * @type {string} + * @memberof Withdrawal + */ + 'from': string; + /** + * The amount of assets withdrawn + * @type {string} + * @memberof Withdrawal + */ + 'amount': string; + /** + * + * @type {ActivityAsset} + * @memberof Withdrawal + */ + 'asset': ActivityAsset; +} + diff --git a/packages/internal/generated-clients/src/index.ts b/packages/internal/generated-clients/src/index.ts index 85f945a98d..03e1bcb449 100644 --- a/packages/internal/generated-clients/src/index.ts +++ b/packages/internal/generated-clients/src/index.ts @@ -1,16 +1,6 @@ export * as imx from './imx'; export * as mr from './multi-rollup'; - -export * as ActivitiesTypes from './multi-rollup/domain/activities-api-types'; -export * as ChainsTypes from './multi-rollup/domain/chains-api-types'; -export * as CollectionsTypes from './multi-rollup/domain/collections-api-types'; -export * as MetadataTypes from './multi-rollup/domain/metadata-api-types'; -export * as NFTOwnersTypes from './multi-rollup/domain/nft-owners-api-types'; -export * as NFTsTypes from './multi-rollup/domain/nfts-api-types'; -export * as OrdersTypes from './multi-rollup/domain/orders-api-types'; -export * as PassportTypes from './multi-rollup/domain/passport-api-types'; -export * as TokensTypes from './multi-rollup/domain/tokens-api-types'; - +export * as BlockchainData from './blockchain-data/index'; export { ImxApiClients } from './imx-api-clients'; export { MultiRollupApiClients } from './mr-api-clients'; export { diff --git a/packages/internal/generated-clients/src/templates/api-types.mustache b/packages/internal/generated-clients/templates/blockchain-data/apiInner.mustache similarity index 100% rename from packages/internal/generated-clients/src/templates/api-types.mustache rename to packages/internal/generated-clients/templates/blockchain-data/apiInner.mustache diff --git a/packages/internal/generated-clients/templates/blockchain-data/index.mustache b/packages/internal/generated-clients/templates/blockchain-data/index.mustache new file mode 100644 index 0000000000..e78e91e660 --- /dev/null +++ b/packages/internal/generated-clients/templates/blockchain-data/index.mustache @@ -0,0 +1,6 @@ +/* tslint:disable */ +/* eslint-disable */ +{{>licenseInfo}} + +export * from "./api"; +{{#withSeparateModelsAndApi}}export * from "./{{tsModelPackage}}";{{/withSeparateModelsAndApi}} diff --git a/packages/internal/generated-clients/templates/mr/api-types.mustache b/packages/internal/generated-clients/templates/mr/api-types.mustache new file mode 100644 index 0000000000..a294261cfc --- /dev/null +++ b/packages/internal/generated-clients/templates/mr/api-types.mustache @@ -0,0 +1,79 @@ +{{#withSeparateModelsAndApi}} +/* tslint:disable */ +/* eslint-disable */ +{{>licenseInfo}} + +{{#imports}} +// @ts-ignore +import { {{classname}} } from '{{apiRelativeToRoot}}{{tsModelPackage}}'; +{{/imports}} +{{#imports}} +// @ts-ignore +export { {{classname}} } from '{{apiRelativeToRoot}}{{tsModelPackage}}'; +{{/imports}} +{{/withSeparateModelsAndApi}} +{{^withSeparateModelsAndApi}} +{{/withSeparateModelsAndApi}} +{{#operations}} + +{{#useSingleRequestParameter}} +{{#operation}} +{{#allParams.0}} +/** + * Request parameters for {{nickname}} operation in {{classname}}. + * @export + * @interface {{operationIdCamelCase}}Request + */ +export interface {{operationIdCamelCase}}RequestParams { + {{#allParams}} + /** + * {{description}} + * @type {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> + * @memberof {{operationIdCamelCase}} + */ + readonly {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}} + {{^-last}} + + {{/-last}} + {{/allParams}} +} + +{{/allParams.0}} +{{/operation}} +{{/useSingleRequestParameter}} +{{/operations}} + +{{#operations}} +{{#operation}} +{{#allParams}} +{{#isEnum}} +{{#stringEnums}} +/** + * @export + * @enum {string} + */ +export enum {{operationIdCamelCase}}{{enumName}} { +{{#allowableValues}} + {{#enumVars}} + {{{name}}} = {{{value}}}{{^-last}},{{/-last}} + {{/enumVars}} +{{/allowableValues}} +} +{{/stringEnums}} +{{^stringEnums}} +/** + * @export + */ +export const {{operationIdCamelCase}}{{enumName}} = { +{{#allowableValues}} + {{#enumVars}} + {{{name}}}: {{{value}}}{{^-last}},{{/-last}} + {{/enumVars}} +{{/allowableValues}} +} as const; +export type {{operationIdCamelCase}}{{enumName}} = typeof {{operationIdCamelCase}}{{enumName}}[keyof typeof {{operationIdCamelCase}}{{enumName}}]; +{{/stringEnums}} +{{/isEnum}} +{{/allParams}} +{{/operation}} +{{/operations}}