Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
oas gen
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Li <[email protected]>
  • Loading branch information
frankisawesome committed Feb 5, 2024
1 parent 1fa0e9c commit a191d42
Show file tree
Hide file tree
Showing 344 changed files with 12,172 additions and 1,107 deletions.
5,175 changes: 4,615 additions & 560 deletions openapi.json

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions src/api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ domain/metadata-refreshes-api.ts
domain/mints-api.ts
domain/nft-checkout-primary-api.ts
domain/orders-api.ts
domain/primary-sales-api.ts
domain/projects-api.ts
domain/tokens-api.ts
domain/trades-api.ts
Expand All @@ -24,6 +25,30 @@ domain/users-api.ts
domain/withdrawals-api.ts
git_push.sh
index.ts
models/accept-primary-sale-bad-request-body-all-of0.ts
models/accept-primary-sale-bad-request-body-all-of1.ts
models/accept-primary-sale-bad-request-body.ts
models/accept-primary-sale-forbidden-body-all-of0.ts
models/accept-primary-sale-forbidden-body-all-of1.ts
models/accept-primary-sale-forbidden-body.ts
models/accept-primary-sale-internal-server-error-body-all-of0.ts
models/accept-primary-sale-internal-server-error-body-all-of1.ts
models/accept-primary-sale-internal-server-error-body.ts
models/accept-primary-sale-not-found-body-all-of0.ts
models/accept-primary-sale-not-found-body-all-of1.ts
models/accept-primary-sale-not-found-body.ts
models/accept-primary-sale-not-implemented-body-all-of0.ts
models/accept-primary-sale-not-implemented-body-all-of1.ts
models/accept-primary-sale-not-implemented-body.ts
models/accept-primary-sale-okbody-result-fees-items.ts
models/accept-primary-sale-okbody-result.ts
models/accept-primary-sale-okbody.ts
models/accept-primary-sale-unauthorized-body-all-of0.ts
models/accept-primary-sale-unauthorized-body-all-of1.ts
models/accept-primary-sale-unauthorized-body.ts
models/accept-primary-sale-unprocessable-entity-body-all-of0.ts
models/accept-primary-sale-unprocessable-entity-body-all-of1.ts
models/accept-primary-sale-unprocessable-entity-body.ts
models/add-metadata-schema-to-collection-request.ts
models/aggregate-limit.ts
models/api-order-v3-buy.ts
Expand All @@ -33,6 +58,8 @@ models/api-order-v3-taker-fees.ts
models/api-order-v3.ts
models/api-register-passport-user-request.ts
models/api-sdkversion-check-response.ts
models/api-summarize-collections-response.ts
models/api-summarized-collection.ts
models/apierror.ts
models/asset-collection.ts
models/asset-orders.ts
Expand All @@ -59,6 +86,29 @@ models/create-metadata-refresh-response.ts
models/create-order-request-v3.ts
models/create-order-request.ts
models/create-order-response.ts
models/create-primary-sale-bad-request-body-all-of0.ts
models/create-primary-sale-bad-request-body-all-of1.ts
models/create-primary-sale-bad-request-body.ts
models/create-primary-sale-created-body-result-fees-items.ts
models/create-primary-sale-created-body-result.ts
models/create-primary-sale-created-body.ts
models/create-primary-sale-forbidden-body-all-of0.ts
models/create-primary-sale-forbidden-body-all-of1.ts
models/create-primary-sale-forbidden-body.ts
models/create-primary-sale-internal-server-error-body-all-of0.ts
models/create-primary-sale-internal-server-error-body-all-of1.ts
models/create-primary-sale-internal-server-error-body.ts
models/create-primary-sale-not-found-body-all-of0.ts
models/create-primary-sale-not-found-body-all-of1.ts
models/create-primary-sale-not-found-body.ts
models/create-primary-sale-not-implemented-body-all-of0.ts
models/create-primary-sale-not-implemented-body-all-of1.ts
models/create-primary-sale-not-implemented-body.ts
models/create-primary-sale-params-body-fees-items.ts
models/create-primary-sale-params-body.ts
models/create-primary-sale-unauthorized-body-all-of0.ts
models/create-primary-sale-unauthorized-body-all-of1.ts
models/create-primary-sale-unauthorized-body.ts
models/create-project-group-request.ts
models/create-project-request.ts
models/create-project-response.ts
Expand All @@ -70,6 +120,7 @@ models/create-transfer-request.ts
models/create-transfer-response-v1.ts
models/create-transfer-response-v2.ts
models/create-transfer-response.ts
models/create-withdrawal-request-v2.ts
models/create-withdrawal-request.ts
models/create-withdrawal-response.ts
models/currency-with-limits.ts
Expand All @@ -83,6 +134,44 @@ models/encode-asset-token-data.ts
models/engine-register-user-result.ts
models/exchange-create-exchange-and-urlresponse.ts
models/exchange.ts
models/experimental-create-primary-sale-bad-request-body-all-of0.ts
models/experimental-create-primary-sale-bad-request-body-all-of1.ts
models/experimental-create-primary-sale-bad-request-body.ts
models/experimental-create-primary-sale-created-body-result-fees-items.ts
models/experimental-create-primary-sale-created-body-result.ts
models/experimental-create-primary-sale-created-body.ts
models/experimental-create-primary-sale-forbidden-body-all-of0.ts
models/experimental-create-primary-sale-forbidden-body-all-of1.ts
models/experimental-create-primary-sale-forbidden-body.ts
models/experimental-create-primary-sale-internal-server-error-body-all-of0.ts
models/experimental-create-primary-sale-internal-server-error-body-all-of1.ts
models/experimental-create-primary-sale-internal-server-error-body.ts
models/experimental-create-primary-sale-not-found-body-all-of0.ts
models/experimental-create-primary-sale-not-found-body-all-of1.ts
models/experimental-create-primary-sale-not-found-body.ts
models/experimental-create-primary-sale-not-implemented-body-all-of0.ts
models/experimental-create-primary-sale-not-implemented-body-all-of1.ts
models/experimental-create-primary-sale-not-implemented-body.ts
models/experimental-create-primary-sale-params-body-fees-items.ts
models/experimental-create-primary-sale-params-body.ts
models/experimental-create-primary-sale-unauthorized-body-all-of0.ts
models/experimental-create-primary-sale-unauthorized-body-all-of1.ts
models/experimental-create-primary-sale-unauthorized-body.ts
models/experimental-get-primary-sale-bad-request-body-all-of0.ts
models/experimental-get-primary-sale-bad-request-body-all-of1.ts
models/experimental-get-primary-sale-bad-request-body.ts
models/experimental-get-primary-sale-internal-server-error-body-all-of0.ts
models/experimental-get-primary-sale-internal-server-error-body-all-of1.ts
models/experimental-get-primary-sale-internal-server-error-body.ts
models/experimental-get-primary-sale-not-found-body-all-of0.ts
models/experimental-get-primary-sale-not-found-body-all-of1.ts
models/experimental-get-primary-sale-not-found-body.ts
models/experimental-get-primary-sale-not-implemented-body-all-of0.ts
models/experimental-get-primary-sale-not-implemented-body-all-of1.ts
models/experimental-get-primary-sale-not-implemented-body.ts
models/experimental-get-primary-sale-okbody-result-fees-items.ts
models/experimental-get-primary-sale-okbody-result.ts
models/experimental-get-primary-sale-okbody.ts
models/fee-data.ts
models/fee-entry.ts
models/fee-info.ts
Expand All @@ -92,6 +181,21 @@ models/fee.ts
models/get-metadata-refresh-errors-response.ts
models/get-metadata-refresh-response.ts
models/get-metadata-refreshes.ts
models/get-primary-sale-bad-request-body-all-of0.ts
models/get-primary-sale-bad-request-body-all-of1.ts
models/get-primary-sale-bad-request-body.ts
models/get-primary-sale-internal-server-error-body-all-of0.ts
models/get-primary-sale-internal-server-error-body-all-of1.ts
models/get-primary-sale-internal-server-error-body.ts
models/get-primary-sale-not-found-body-all-of0.ts
models/get-primary-sale-not-found-body-all-of1.ts
models/get-primary-sale-not-found-body.ts
models/get-primary-sale-not-implemented-body-all-of0.ts
models/get-primary-sale-not-implemented-body-all-of1.ts
models/get-primary-sale-not-implemented-body.ts
models/get-primary-sale-okbody-result-fees-items.ts
models/get-primary-sale-okbody-result.ts
models/get-primary-sale-okbody.ts
models/get-projects-response.ts
models/get-signable-cancel-order-request.ts
models/get-signable-cancel-order-response.ts
Expand Down Expand Up @@ -124,6 +228,7 @@ models/get-signable-transfer-response-v2.ts
models/get-signable-transfer-response.ts
models/get-signable-withdrawal-request-token.ts
models/get-signable-withdrawal-request.ts
models/get-signable-withdrawal-response-v2.ts
models/get-signable-withdrawal-response.ts
models/get-transactions-response.ts
models/get-users-api-response.ts
Expand Down Expand Up @@ -179,6 +284,39 @@ models/register-passport-user-request.ts
models/register-passport-user-result.ts
models/register-user-request.ts
models/register-user-response.ts
models/signable-accept-primary-sale-bad-request-body-all-of0.ts
models/signable-accept-primary-sale-bad-request-body-all-of1.ts
models/signable-accept-primary-sale-bad-request-body.ts
models/signable-accept-primary-sale-internal-server-error-body-all-of0.ts
models/signable-accept-primary-sale-internal-server-error-body-all-of1.ts
models/signable-accept-primary-sale-internal-server-error-body.ts
models/signable-accept-primary-sale-not-found-body-all-of0.ts
models/signable-accept-primary-sale-not-found-body-all-of1.ts
models/signable-accept-primary-sale-not-found-body.ts
models/signable-accept-primary-sale-not-implemented-body-all-of0.ts
models/signable-accept-primary-sale-not-implemented-body-all-of1.ts
models/signable-accept-primary-sale-not-implemented-body.ts
models/signable-accept-primary-sale-okbody.ts
models/signable-accept-primary-sale-unprocessable-entity-body-all-of0.ts
models/signable-accept-primary-sale-unprocessable-entity-body-all-of1.ts
models/signable-accept-primary-sale-unprocessable-entity-body.ts
models/signable-create-primary-sale-bad-request-body-all-of0.ts
models/signable-create-primary-sale-bad-request-body-all-of1.ts
models/signable-create-primary-sale-bad-request-body.ts
models/signable-create-primary-sale-internal-server-error-body-all-of0.ts
models/signable-create-primary-sale-internal-server-error-body-all-of1.ts
models/signable-create-primary-sale-internal-server-error-body.ts
models/signable-create-primary-sale-not-found-body-all-of0.ts
models/signable-create-primary-sale-not-found-body-all-of1.ts
models/signable-create-primary-sale-not-found-body.ts
models/signable-create-primary-sale-not-implemented-body-all-of0.ts
models/signable-create-primary-sale-not-implemented-body-all-of1.ts
models/signable-create-primary-sale-not-implemented-body.ts
models/signable-create-primary-sale-okbody-fee-info.ts
models/signable-create-primary-sale-okbody-fees-items.ts
models/signable-create-primary-sale-okbody.ts
models/signable-create-primary-sale-params-body-fees-items.ts
models/signable-create-primary-sale-params-body.ts
models/signable-token.ts
models/signable-transfer-details-token.ts
models/signable-transfer-details-v2-token.ts
Expand Down
5 changes: 3 additions & 2 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable */
/**
* Immutable X API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Immutable X API
*
* The version of the OpenAPI document: 3.0
* The version of the OpenAPI document: 3.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -25,6 +25,7 @@ export * from './domain/metadata-refreshes-api';
export * from './domain/mints-api';
export * from './domain/nft-checkout-primary-api';
export * from './domain/orders-api';
export * from './domain/primary-sales-api';
export * from './domain/projects-api';
export * from './domain/tokens-api';
export * from './domain/trades-api';
Expand Down
6 changes: 3 additions & 3 deletions src/api/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable */
/**
* Immutable X API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Immutable X API
*
* The version of the OpenAPI document: 3.0
* The version of the OpenAPI document: 3.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';

export const BASE_PATH = "https://api.sandbox.x.immutable.com".replace(/\/+$/, "");
export const BASE_PATH = "https://api.sandbox.immutable.com".replace(/\/+$/, "");

/**
*
Expand Down
4 changes: 2 additions & 2 deletions src/api/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable */
/**
* Immutable X API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Immutable X API
*
* The version of the OpenAPI document: 3.0
* The version of the OpenAPI document: 3.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/api/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable */
/**
* Immutable X API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Immutable X API
*
* The version of the OpenAPI document: 3.0
* The version of the OpenAPI document: 3.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
20 changes: 10 additions & 10 deletions src/api/domain/assets-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable */
/**
* Immutable X API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Immutable X API
*
* The version of the OpenAPI document: 3.0
* The version of the OpenAPI document: 3.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -82,14 +82,14 @@ export const AssetsApiAxiosParamCreator = function (configuration?: Configuratio
* @param {string} [cursor] Cursor
* @param {'updated_at' | 'name'} [orderBy] Property to sort by
* @param {string} [direction] Direction to sort (asc/desc)
* @param {string} [user] Ethereum address of the user who owns these assets
* @param {string} [user] Comma separated list of ethereum address of the users who own these assets
* @param {'eth' | 'imx' | 'preparing_withdrawal' | 'withdrawable' | 'burned'} [status] Status of these assets
* @param {string} [name] Name of the asset to search
* @param {string} [metadata] URL JSON-encoded metadata filters for these assets. Javascript example: encodeURI(JSON.stringify({\&#39;proto\&#39;:[\&#39;1147\&#39;],\&#39;quality\&#39;:[\&#39;Meteorite\&#39;]}))
* @param {boolean} [sellOrders] Set flag to true to fetch an array of sell order details with accepted status associated with the asset
* @param {boolean} [buyOrders] Set flag to true to fetch an array of buy order details with accepted status associated with the asset
* @param {boolean} [includeFees] Set flag to include fees associated with the asset
* @param {string} [collection] Collection contract address
* @param {string} [collection] Comma separated list of the collections contract address
* @param {string} [updatedMinTimestamp] Minimum timestamp for when these assets were last updated, in ISO 8601 UTC format. Example: \&#39;2022-05-27T00:10:22Z\&#39;
* @param {string} [updatedMaxTimestamp] Maximum timestamp for when these assets were last updated, in ISO 8601 UTC format. Example: \&#39;2022-05-27T00:10:22Z\&#39;
* @param {string} [auxiliaryFeePercentages] Comma separated string of fee percentages that are to be paired with auxiliary_fee_recipients
Expand Down Expand Up @@ -215,14 +215,14 @@ export const AssetsApiFp = function(configuration?: Configuration) {
* @param {string} [cursor] Cursor
* @param {'updated_at' | 'name'} [orderBy] Property to sort by
* @param {string} [direction] Direction to sort (asc/desc)
* @param {string} [user] Ethereum address of the user who owns these assets
* @param {string} [user] Comma separated list of ethereum address of the users who own these assets
* @param {'eth' | 'imx' | 'preparing_withdrawal' | 'withdrawable' | 'burned'} [status] Status of these assets
* @param {string} [name] Name of the asset to search
* @param {string} [metadata] URL JSON-encoded metadata filters for these assets. Javascript example: encodeURI(JSON.stringify({\&#39;proto\&#39;:[\&#39;1147\&#39;],\&#39;quality\&#39;:[\&#39;Meteorite\&#39;]}))
* @param {boolean} [sellOrders] Set flag to true to fetch an array of sell order details with accepted status associated with the asset
* @param {boolean} [buyOrders] Set flag to true to fetch an array of buy order details with accepted status associated with the asset
* @param {boolean} [includeFees] Set flag to include fees associated with the asset
* @param {string} [collection] Collection contract address
* @param {string} [collection] Comma separated list of the collections contract address
* @param {string} [updatedMinTimestamp] Minimum timestamp for when these assets were last updated, in ISO 8601 UTC format. Example: \&#39;2022-05-27T00:10:22Z\&#39;
* @param {string} [updatedMaxTimestamp] Maximum timestamp for when these assets were last updated, in ISO 8601 UTC format. Example: \&#39;2022-05-27T00:10:22Z\&#39;
* @param {string} [auxiliaryFeePercentages] Comma separated string of fee percentages that are to be paired with auxiliary_fee_recipients
Expand Down Expand Up @@ -263,14 +263,14 @@ export const AssetsApiFactory = function (configuration?: Configuration, basePat
* @param {string} [cursor] Cursor
* @param {'updated_at' | 'name'} [orderBy] Property to sort by
* @param {string} [direction] Direction to sort (asc/desc)
* @param {string} [user] Ethereum address of the user who owns these assets
* @param {string} [user] Comma separated list of ethereum address of the users who own these assets
* @param {'eth' | 'imx' | 'preparing_withdrawal' | 'withdrawable' | 'burned'} [status] Status of these assets
* @param {string} [name] Name of the asset to search
* @param {string} [metadata] URL JSON-encoded metadata filters for these assets. Javascript example: encodeURI(JSON.stringify({\&#39;proto\&#39;:[\&#39;1147\&#39;],\&#39;quality\&#39;:[\&#39;Meteorite\&#39;]}))
* @param {boolean} [sellOrders] Set flag to true to fetch an array of sell order details with accepted status associated with the asset
* @param {boolean} [buyOrders] Set flag to true to fetch an array of buy order details with accepted status associated with the asset
* @param {boolean} [includeFees] Set flag to include fees associated with the asset
* @param {string} [collection] Collection contract address
* @param {string} [collection] Comma separated list of the collections contract address
* @param {string} [updatedMinTimestamp] Minimum timestamp for when these assets were last updated, in ISO 8601 UTC format. Example: \&#39;2022-05-27T00:10:22Z\&#39;
* @param {string} [updatedMaxTimestamp] Maximum timestamp for when these assets were last updated, in ISO 8601 UTC format. Example: \&#39;2022-05-27T00:10:22Z\&#39;
* @param {string} [auxiliaryFeePercentages] Comma separated string of fee percentages that are to be paired with auxiliary_fee_recipients
Expand Down Expand Up @@ -347,7 +347,7 @@ export interface AssetsApiListAssetsRequest {
readonly direction?: string

/**
* Ethereum address of the user who owns these assets
* Comma separated list of ethereum address of the users who own these assets
* @type {string}
* @memberof AssetsApiListAssets
*/
Expand Down Expand Up @@ -396,7 +396,7 @@ export interface AssetsApiListAssetsRequest {
readonly includeFees?: boolean

/**
* Collection contract address
* Comma separated list of the collections contract address
* @type {string}
* @memberof AssetsApiListAssets
*/
Expand Down
4 changes: 2 additions & 2 deletions src/api/domain/balances-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* eslint-disable */
/**
* Immutable X API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Immutable X API
*
* The version of the OpenAPI document: 3.0
* The version of the OpenAPI document: 3.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit a191d42

Please sign in to comment.