diff --git a/src/Packages/ZkEvmApi/Documentation~/MetadataApi.md b/src/Packages/ZkEvmApi/Documentation~/MetadataApi.md index 8139f4f4..aa9f5faf 100644 --- a/src/Packages/ZkEvmApi/Documentation~/MetadataApi.md +++ b/src/Packages/ZkEvmApi/Documentation~/MetadataApi.md @@ -7,6 +7,7 @@ All URIs are relative to *https://api.sandbox.immutable.com* | [**GetMetadata**](MetadataApi.md#getmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id} | Get metadata by ID | | [**ListMetadata**](MetadataApi.md#listmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata | Get a list of metadata from the given contract | | [**ListMetadataForChain**](MetadataApi.md#listmetadataforchain) | **GET** /v1/chains/{chain_name}/metadata | Get a list of metadata from the given chain | +| [**ListStacks**](MetadataApi.md#liststacks) | **GET** /v1/chains/{chain_name}/stacks | List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack | | [**RefreshMetadataByID**](MetadataApi.md#refreshmetadatabyid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata | Refresh stacked metadata | | [**RefreshNFTMetadataByTokenID**](MetadataApi.md#refreshnftmetadatabytokenid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata | Refresh NFT metadata | @@ -310,6 +311,105 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ListStacks** +> List<StackBundle> ListStacks (string chainName, List stackId) + +List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack + +List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListStacksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var stackId = new List(); // List | List of stack_id to filter by + + try + { + // List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack + List result = apiInstance.ListStacks(chainName, stackId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.ListStacks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListStacksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack + ApiResponse> response = apiInstance.ListStacksWithHttpInfo(chainName, stackId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.ListStacksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **stackId** | [**List<Guid>**](Guid.md) | List of stack_id to filter by | | + +### Return type + +[**List<StackBundle>**](StackBundle.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **RefreshMetadataByID** > MetadataRefreshRateLimitResult RefreshMetadataByID (string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest) diff --git a/src/Packages/ZkEvmApi/Documentation~/StacksApi.md b/src/Packages/ZkEvmApi/Documentation~/MetadataSearchApi.md similarity index 70% rename from src/Packages/ZkEvmApi/Documentation~/StacksApi.md rename to src/Packages/ZkEvmApi/Documentation~/MetadataSearchApi.md index 02258b28..1b0bf2b1 100644 --- a/src/Packages/ZkEvmApi/Documentation~/StacksApi.md +++ b/src/Packages/ZkEvmApi/Documentation~/MetadataSearchApi.md @@ -1,21 +1,20 @@ -# Immutable.Api.ZkEvm.Api.StacksApi +# Immutable.Api.ZkEvm.Api.MetadataSearchApi All URIs are relative to *https://api.sandbox.immutable.com* | Method | HTTP request | Description | |--------|--------------|-------------| -| [**ListFilters**](StacksApi.md#listfilters) | **GET** /experimental/chains/{chain_name}/search/filters/{contract_address} | Experimental: Get list of metadata attribute filters | -| [**ListStacks**](StacksApi.md#liststacks) | **GET** /experimental/chains/{chain_name}/stacks | Experimental: List NFT stacks by stack_id | -| [**SearchNFTs**](StacksApi.md#searchnfts) | **GET** /experimental/chains/{chain_name}/search/nfts | Experimental: Search NFTs | -| [**SearchStacks**](StacksApi.md#searchstacks) | **GET** /experimental/chains/{chain_name}/search/stacks | Experimental: Search NFT stacks | +| [**ListFilters**](MetadataSearchApi.md#listfilters) | **GET** /v1/chains/{chain_name}/search/filters/{contract_address} | Get list of metadata attribute filters | +| [**SearchNFTs**](MetadataSearchApi.md#searchnfts) | **GET** /v1/chains/{chain_name}/search/nfts | Search NFTs | +| [**SearchStacks**](MetadataSearchApi.md#searchstacks) | **GET** /v1/chains/{chain_name}/search/stacks | Search NFT stacks | # **ListFilters** > ListFiltersResult ListFilters (string chainName, string contractAddress) -Experimental: Get list of metadata attribute filters +Get list of metadata attribute filters -![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters +Get list of metadata filters ### Example ```csharp @@ -33,19 +32,19 @@ namespace Example { Configuration config = new Configuration(); config.BasePath = "https://api.sandbox.immutable.com"; - var apiInstance = new StacksApi(config); + var apiInstance = new MetadataSearchApi(config); var chainName = imtbl-zkevm-testnet; // string | The name of chain var contractAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | Contract addresses for collection try { - // Experimental: Get list of metadata attribute filters + // Get list of metadata attribute filters ListFiltersResult result = apiInstance.ListFilters(chainName, contractAddress); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling StacksApi.ListFilters: " + e.Message); + Debug.Print("Exception when calling MetadataSearchApi.ListFilters: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -60,7 +59,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - // Experimental: Get list of metadata attribute filters + // Get list of metadata attribute filters ApiResponse response = apiInstance.ListFiltersWithHttpInfo(chainName, contractAddress); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); @@ -68,7 +67,7 @@ try } catch (ApiException e) { - Debug.Print("Exception when calling StacksApi.ListFiltersWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling MetadataSearchApi.ListFiltersWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -95,105 +94,6 @@ No authorization required - **Accept**: application/json -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | 200 response | - | -| **400** | Bad Request (400) | - | -| **401** | Unauthorised Request (401) | - | -| **403** | Forbidden Request (403) | - | -| **404** | The specified resource was not found (404) | - | -| **429** | Too Many Requests (429) | * Retry-After -
| -| **500** | Internal Server Error (500) | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **ListStacks** -> List<StackBundle> ListStacks (string chainName, List stackId) - -Experimental: List NFT stacks by stack_id - -![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Api.ZkEvm.Api; -using Immutable.Api.ZkEvm.Client; -using Immutable.Api.ZkEvm.Model; - -namespace Example -{ - public class ListStacksExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.sandbox.immutable.com"; - var apiInstance = new StacksApi(config); - var chainName = imtbl-zkevm-testnet; // string | The name of chain - var stackId = new List(); // List | List of stack_id to filter by - - try - { - // Experimental: List NFT stacks by stack_id - List result = apiInstance.ListStacks(chainName, stackId); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling StacksApi.ListStacks: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the ListStacksWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Experimental: List NFT stacks by stack_id - ApiResponse> response = apiInstance.ListStacksWithHttpInfo(chainName, stackId); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling StacksApi.ListStacksWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **chainName** | **string** | The name of chain | | -| **stackId** | [**List<Guid>**](Guid.md) | List of stack_id to filter by | | - -### Return type - -[**List<StackBundle>**](StackBundle.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -211,9 +111,9 @@ No authorization required # **SearchNFTs** > SearchNFTsResult SearchNFTs (string chainName, List contractAddress, string? accountAddress = null, List? stackId = null, bool? onlyIncludeOwnerListings = null, int? pageSize = null, string? pageCursor = null) -Experimental: Search NFTs +Search NFTs -![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs +Search NFTs ### Example ```csharp @@ -231,7 +131,7 @@ namespace Example { Configuration config = new Configuration(); config.BasePath = "https://api.sandbox.immutable.com"; - var apiInstance = new StacksApi(config); + var apiInstance = new MetadataSearchApi(config); var chainName = imtbl-zkevm-testnet; // string | The name of chain var contractAddress = new List(); // List | List of contract addresses to filter by var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | Account address to filter by (optional) @@ -242,13 +142,13 @@ namespace Example try { - // Experimental: Search NFTs + // Search NFTs SearchNFTsResult result = apiInstance.SearchNFTs(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling StacksApi.SearchNFTs: " + e.Message); + Debug.Print("Exception when calling MetadataSearchApi.SearchNFTs: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -263,7 +163,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - // Experimental: Search NFTs + // Search NFTs ApiResponse response = apiInstance.SearchNFTsWithHttpInfo(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); @@ -271,7 +171,7 @@ try } catch (ApiException e) { - Debug.Print("Exception when calling StacksApi.SearchNFTsWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling MetadataSearchApi.SearchNFTsWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -320,9 +220,9 @@ No authorization required # **SearchStacks** > SearchStacksResult SearchStacks (string chainName, List contractAddress, string? accountAddress = null, bool? onlyIncludeOwnerListings = null, bool? onlyIfHasActiveListings = null, string? traits = null, string? keyword = null, string? sortBy = null, int? pageSize = null, string? pageCursor = null) -Experimental: Search NFT stacks +Search NFT stacks -![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks +Search NFT stacks ### Example ```csharp @@ -340,7 +240,7 @@ namespace Example { Configuration config = new Configuration(); config.BasePath = "https://api.sandbox.immutable.com"; - var apiInstance = new StacksApi(config); + var apiInstance = new MetadataSearchApi(config); var chainName = imtbl-zkevm-testnet; // string | The name of chain var contractAddress = new List(); // List | List of contract addresses to filter by var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | Account address to filter by (optional) @@ -354,13 +254,13 @@ namespace Example try { - // Experimental: Search NFT stacks + // Search NFT stacks SearchStacksResult result = apiInstance.SearchStacks(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, sortBy, pageSize, pageCursor); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling StacksApi.SearchStacks: " + e.Message); + Debug.Print("Exception when calling MetadataSearchApi.SearchStacks: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -375,7 +275,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - // Experimental: Search NFT stacks + // Search NFT stacks ApiResponse response = apiInstance.SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, sortBy, pageSize, pageCursor); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); @@ -383,7 +283,7 @@ try } catch (ApiException e) { - Debug.Print("Exception when calling StacksApi.SearchStacksWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling MetadataSearchApi.SearchStacksWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } diff --git a/src/Packages/ZkEvmApi/Documentation~/PricingApi.md b/src/Packages/ZkEvmApi/Documentation~/PricingApi.md index fa0a9371..85fab6bd 100644 --- a/src/Packages/ZkEvmApi/Documentation~/PricingApi.md +++ b/src/Packages/ZkEvmApi/Documentation~/PricingApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://api.sandbox.immutable.com* | Method | HTTP request | Description | |--------|--------------|-------------| -| [**QuotesForNFTs**](PricingApi.md#quotesfornfts) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/nfts | Experimental: Get pricing data for a list of token ids | -| [**QuotesForStacks**](PricingApi.md#quotesforstacks) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/stacks | Experimental: Get pricing data for a list of stack ids | +| [**QuotesForNFTs**](PricingApi.md#quotesfornfts) | **GET** /v1/chains/{chain_name}/quotes/{contract_address}/nfts | Get pricing data for a list of token ids | +| [**QuotesForStacks**](PricingApi.md#quotesforstacks) | **GET** /v1/chains/{chain_name}/quotes/{contract_address}/stacks | Get pricing data for a list of stack ids | # **QuotesForNFTs** > QuotesForNFTsResult QuotesForNFTs (string chainName, string contractAddress, List tokenId, string? pageCursor = null) -Experimental: Get pricing data for a list of token ids +Get pricing data for a list of token ids -![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids +pricing data for a list of token ids ### Example ```csharp @@ -39,7 +39,7 @@ namespace Example try { - // Experimental: Get pricing data for a list of token ids + // Get pricing data for a list of token ids QuotesForNFTsResult result = apiInstance.QuotesForNFTs(chainName, contractAddress, tokenId, pageCursor); Debug.WriteLine(result); } @@ -60,7 +60,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - // Experimental: Get pricing data for a list of token ids + // Get pricing data for a list of token ids ApiResponse response = apiInstance.QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); @@ -114,9 +114,9 @@ No authorization required # **QuotesForStacks** > QuotesForStacksResult QuotesForStacks (string chainName, string contractAddress, List stackId, string? pageCursor = null) -Experimental: Get pricing data for a list of stack ids +Get pricing data for a list of stack ids -![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids +Get pricing data for a list of stack ids ### Example ```csharp @@ -142,7 +142,7 @@ namespace Example try { - // Experimental: Get pricing data for a list of stack ids + // Get pricing data for a list of stack ids QuotesForStacksResult result = apiInstance.QuotesForStacks(chainName, contractAddress, stackId, pageCursor); Debug.WriteLine(result); } @@ -163,7 +163,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - // Experimental: Get pricing data for a list of stack ids + // Get pricing data for a list of stack ids ApiResponse response = apiInstance.QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); diff --git a/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs index 2dbaa6a9..f45f010c 100644 --- a/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs +++ b/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs @@ -109,6 +109,29 @@ public interface IMetadataApiSync : IApiAccessor /// ApiResponse of ListMetadataResult ApiResponse ListMetadataForChainWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); /// + /// List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack + /// + /// + /// List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of stack_id to filter by + /// List<StackBundle> + List ListStacks(string chainName, List stackId); + + /// + /// List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack + /// + /// + /// List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of stack_id to filter by + /// ApiResponse of List<StackBundle> + ApiResponse> ListStacksWithHttpInfo(string chainName, List stackId); + /// /// Refresh stacked metadata /// /// @@ -255,6 +278,31 @@ public interface IMetadataApiAsync : IApiAccessor /// Task of ApiResponse (ListMetadataResult) System.Threading.Tasks.Task> ListMetadataForChainWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// + /// List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack + /// + /// + /// List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of stack_id to filter by + /// Cancellation Token to cancel the request. + /// Task of List<StackBundle> + System.Threading.Tasks.Task> ListStacksAsync(string chainName, List stackId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack + /// + /// + /// List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of stack_id to filter by + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<StackBundle>) + System.Threading.Tasks.Task>> ListStacksWithHttpInfoAsync(string chainName, List stackId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// /// Refresh stacked metadata /// /// @@ -936,6 +984,146 @@ public Immutable.Api.ZkEvm.Client.ApiResponse GetMetadataWith return localVarResponse; } + /// + /// List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of stack_id to filter by + /// List<StackBundle> + public List ListStacks(string chainName, List stackId) + { + Immutable.Api.ZkEvm.Client.ApiResponse> localVarResponse = ListStacksWithHttpInfo(chainName, stackId); + return localVarResponse.Data; + } + + /// + /// List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of stack_id to filter by + /// ApiResponse of List<StackBundle> + public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithHttpInfo(string chainName, List stackId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListStacks"); + + // verify the required parameter 'stackId' is set + if (stackId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'stackId' when calling MetadataApi->ListStacks"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/chains/{chain_name}/stacks", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of stack_id to filter by + /// Cancellation Token to cancel the request. + /// Task of List<StackBundle> + public async System.Threading.Tasks.Task> ListStacksAsync(string chainName, List stackId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListStacksWithHttpInfoAsync(chainName, stackId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse> localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse> localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List NFT stack bundles by stack_id. Response will include Market, Listings & Stack Count information for each stack List NFT stack bundles by stack_id. This endpoint functions similarly to `ListMetadataByID` but extends the response to include Market, Listings & Stack Count information for each stack. + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of stack_id to filter by + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<StackBundle>) + public async System.Threading.Tasks.Task>> ListStacksWithHttpInfoAsync(string chainName, List stackId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListStacks"); + + // verify the required parameter 'stackId' is set + if (stackId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'stackId' when calling MetadataApi->ListStacks"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync>("/v1/chains/{chain_name}/stacks", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Refresh stacked metadata Refresh stacked metadata /// diff --git a/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs similarity index 78% rename from src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs rename to src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs index 2b193f73..5ffbd1fb 100644 --- a/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs +++ b/src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs @@ -24,14 +24,14 @@ namespace Immutable.Api.ZkEvm.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IStacksApiSync : IApiAccessor + public interface IMetadataSearchApiSync : IApiAccessor { #region Synchronous Operations /// - /// Experimental: Get list of metadata attribute filters + /// Get list of metadata attribute filters /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters + /// Get list of metadata filters /// /// Thrown when fails to make API call /// The name of chain @@ -40,10 +40,10 @@ public interface IStacksApiSync : IApiAccessor ListFiltersResult ListFilters(string chainName, string contractAddress); /// - /// Experimental: Get list of metadata attribute filters + /// Get list of metadata attribute filters /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters + /// Get list of metadata filters /// /// Thrown when fails to make API call /// The name of chain @@ -51,33 +51,10 @@ public interface IStacksApiSync : IApiAccessor /// ApiResponse of ListFiltersResult ApiResponse ListFiltersWithHttpInfo(string chainName, string contractAddress); /// - /// Experimental: List NFT stacks by stack_id + /// Search NFTs /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of stack_id to filter by - /// List<StackBundle> - List ListStacks(string chainName, List stackId); - - /// - /// Experimental: List NFT stacks by stack_id - /// - /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of stack_id to filter by - /// ApiResponse of List<StackBundle> - ApiResponse> ListStacksWithHttpInfo(string chainName, List stackId); - /// - /// Experimental: Search NFTs - /// - /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// Search NFTs /// /// Thrown when fails to make API call /// The name of chain @@ -91,10 +68,10 @@ public interface IStacksApiSync : IApiAccessor SearchNFTsResult SearchNFTs(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)); /// - /// Experimental: Search NFTs + /// Search NFTs /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// Search NFTs /// /// Thrown when fails to make API call /// The name of chain @@ -107,10 +84,10 @@ public interface IStacksApiSync : IApiAccessor /// ApiResponse of SearchNFTsResult ApiResponse SearchNFTsWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)); /// - /// Experimental: Search NFT stacks + /// Search NFT stacks /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain @@ -127,10 +104,10 @@ public interface IStacksApiSync : IApiAccessor SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); /// - /// Experimental: Search NFT stacks + /// Search NFT stacks /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain @@ -151,14 +128,14 @@ public interface IStacksApiSync : IApiAccessor /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IStacksApiAsync : IApiAccessor + public interface IMetadataSearchApiAsync : IApiAccessor { #region Asynchronous Operations /// - /// Experimental: Get list of metadata attribute filters + /// Get list of metadata attribute filters /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters + /// Get list of metadata filters /// /// Thrown when fails to make API call /// The name of chain @@ -168,10 +145,10 @@ public interface IStacksApiAsync : IApiAccessor System.Threading.Tasks.Task ListFiltersAsync(string chainName, string contractAddress, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Experimental: Get list of metadata attribute filters + /// Get list of metadata attribute filters /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters + /// Get list of metadata filters /// /// Thrown when fails to make API call /// The name of chain @@ -180,35 +157,10 @@ public interface IStacksApiAsync : IApiAccessor /// Task of ApiResponse (ListFiltersResult) System.Threading.Tasks.Task> ListFiltersWithHttpInfoAsync(string chainName, string contractAddress, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Experimental: List NFT stacks by stack_id - /// - /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of stack_id to filter by - /// Cancellation Token to cancel the request. - /// Task of List<StackBundle> - System.Threading.Tasks.Task> ListStacksAsync(string chainName, List stackId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Experimental: List NFT stacks by stack_id + /// Search NFTs /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of stack_id to filter by - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<StackBundle>) - System.Threading.Tasks.Task>> ListStacksWithHttpInfoAsync(string chainName, List stackId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Experimental: Search NFTs - /// - /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// Search NFTs /// /// Thrown when fails to make API call /// The name of chain @@ -223,10 +175,10 @@ public interface IStacksApiAsync : IApiAccessor System.Threading.Tasks.Task SearchNFTsAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Experimental: Search NFTs + /// Search NFTs /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// Search NFTs /// /// Thrown when fails to make API call /// The name of chain @@ -240,10 +192,10 @@ public interface IStacksApiAsync : IApiAccessor /// Task of ApiResponse (SearchNFTsResult) System.Threading.Tasks.Task> SearchNFTsWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Experimental: Search NFT stacks + /// Search NFT stacks /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain @@ -261,10 +213,10 @@ public interface IStacksApiAsync : IApiAccessor System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Experimental: Search NFT stacks + /// Search NFT stacks /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain @@ -286,7 +238,7 @@ public interface IStacksApiAsync : IApiAccessor /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IStacksApi : IStacksApiSync, IStacksApiAsync + public interface IMetadataSearchApi : IMetadataSearchApiSync, IMetadataSearchApiAsync { } @@ -294,29 +246,29 @@ public interface IStacksApi : IStacksApiSync, IStacksApiAsync /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class StacksApi : IDisposable, IStacksApi + public partial class MetadataSearchApi : IDisposable, IMetadataSearchApi { private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. /// It's better to reuse the HttpClient and HttpClientHandler. /// /// - public StacksApi() : this((string)null) + public MetadataSearchApi() : this((string)null) { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. /// It's better to reuse the HttpClient and HttpClientHandler. /// /// The target service's base path in URL format. /// /// - public StacksApi(string basePath) + public MetadataSearchApi(string basePath) { this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, @@ -329,14 +281,14 @@ public StacksApi(string basePath) } /// - /// Initializes a new instance of the class using Configuration object. + /// Initializes a new instance of the class using Configuration object. /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. /// It's better to reuse the HttpClient and HttpClientHandler. /// /// An instance of Configuration. /// /// - public StacksApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + public MetadataSearchApi(Immutable.Api.ZkEvm.Client.Configuration configuration) { if (configuration == null) throw new ArgumentNullException("configuration"); @@ -351,14 +303,14 @@ public StacksApi(Immutable.Api.ZkEvm.Client.Configuration configuration) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using a Configuration object and client instance. /// /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. /// - public StacksApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + public MetadataSearchApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) { if (client == null) throw new ArgumentNullException("client"); if (asyncClient == null) throw new ArgumentNullException("asyncClient"); @@ -425,7 +377,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get list of metadata attribute filters ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters + /// Get list of metadata attribute filters Get list of metadata filters /// /// Thrown when fails to make API call /// The name of chain @@ -438,7 +390,7 @@ public ListFiltersResult ListFilters(string chainName, string contractAddress) } /// - /// Experimental: Get list of metadata attribute filters ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters + /// Get list of metadata attribute filters Get list of metadata filters /// /// Thrown when fails to make API call /// The name of chain @@ -448,11 +400,11 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith { // verify the required parameter 'chainName' is set if (chainName == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->ListFilters"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataSearchApi->ListFilters"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->ListFilters"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataSearchApi->ListFilters"); Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); @@ -475,7 +427,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith // make the HTTP request - var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/search/filters/{contract_address}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/search/filters/{contract_address}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -487,7 +439,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith } /// - /// Experimental: Get list of metadata attribute filters ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters + /// Get list of metadata attribute filters Get list of metadata filters /// /// Thrown when fails to make API call /// The name of chain @@ -506,7 +458,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith } /// - /// Experimental: Get list of metadata attribute filters ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get list of metadata filters + /// Get list of metadata attribute filters Get list of metadata filters /// /// Thrown when fails to make API call /// The name of chain @@ -517,11 +469,11 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith { // verify the required parameter 'chainName' is set if (chainName == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->ListFilters"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataSearchApi->ListFilters"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->ListFilters"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataSearchApi->ListFilters"); Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); @@ -547,7 +499,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith // make the HTTP request - var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/search/filters/{contract_address}", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/search/filters/{contract_address}", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -565,147 +517,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith } /// - /// Experimental: List NFT stacks by stack_id ![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of stack_id to filter by - /// List<StackBundle> - public List ListStacks(string chainName, List stackId) - { - Immutable.Api.ZkEvm.Client.ApiResponse> localVarResponse = ListStacksWithHttpInfo(chainName, stackId); - return localVarResponse.Data; - } - - /// - /// Experimental: List NFT stacks by stack_id ![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of stack_id to filter by - /// ApiResponse of List<StackBundle> - public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithHttpInfo(string chainName, List stackId) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->ListStacks"); - - // verify the required parameter 'stackId' is set - if (stackId == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'stackId' when calling StacksApi->ListStacks"); - - Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); - - - // make the HTTP request - var localVarResponse = this.Client.Get>("/experimental/chains/{chain_name}/stacks", localVarRequestOptions, this.Configuration); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ListStacks", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Experimental: List NFT stacks by stack_id ![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of stack_id to filter by - /// Cancellation Token to cancel the request. - /// Task of List<StackBundle> - public async System.Threading.Tasks.Task> ListStacksAsync(string chainName, List stackId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - var task = ListStacksWithHttpInfoAsync(chainName, stackId, cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - Immutable.Api.ZkEvm.Client.ApiResponse> localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Api.ZkEvm.Client.ApiResponse> localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// Experimental: List NFT stacks by stack_id ![Experimental](https://img.shields.io/badge/status-experimental-yellow) NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of stack_id to filter by - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<StackBundle>) - public async System.Threading.Tasks.Task>> ListStacksWithHttpInfoAsync(string chainName, List stackId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->ListStacks"); - - // verify the required parameter 'stackId' is set - if (stackId == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'stackId' when calling StacksApi->ListStacks"); - - - Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - - var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); - - - // make the HTTP request - - var task = this.AsynchronousClient.GetAsync>("/experimental/chains/{chain_name}/stacks", localVarRequestOptions, this.Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ListStacks", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// Search NFTs Search NFTs /// /// Thrown when fails to make API call /// The name of chain @@ -723,7 +535,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH } /// - /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// Search NFTs Search NFTs /// /// Thrown when fails to make API call /// The name of chain @@ -738,11 +550,11 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH { // verify the required parameter 'chainName' is set if (chainName == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchNFTs"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataSearchApi->SearchNFTs"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchNFTs"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataSearchApi->SearchNFTs"); Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); @@ -785,7 +597,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH // make the HTTP request - var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/search/nfts", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/search/nfts", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -797,7 +609,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH } /// - /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// Search NFTs Search NFTs /// /// Thrown when fails to make API call /// The name of chain @@ -821,7 +633,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH } /// - /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// Search NFTs Search NFTs /// /// Thrown when fails to make API call /// The name of chain @@ -837,11 +649,11 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH { // verify the required parameter 'chainName' is set if (chainName == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchNFTs"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataSearchApi->SearchNFTs"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchNFTs"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataSearchApi->SearchNFTs"); Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); @@ -887,7 +699,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH // make the HTTP request - var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/search/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/search/nfts", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -905,7 +717,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH } /// - /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// Search NFT stacks Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain @@ -926,7 +738,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH } /// - /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// Search NFT stacks Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain @@ -944,11 +756,11 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH { // verify the required parameter 'chainName' is set if (chainName == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchStacks"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataSearchApi->SearchStacks"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchStacks"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataSearchApi->SearchStacks"); Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); @@ -1003,7 +815,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH // make the HTTP request - var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1015,7 +827,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH } /// - /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// Search NFT stacks Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain @@ -1042,7 +854,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH } /// - /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// Search NFT stacks Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain @@ -1061,11 +873,11 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH { // verify the required parameter 'chainName' is set if (chainName == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchStacks"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataSearchApi->SearchStacks"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchStacks"); + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataSearchApi->SearchStacks"); Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); @@ -1123,7 +935,7 @@ public Immutable.Api.ZkEvm.Client.ApiResponse> ListStacksWithH // make the HTTP request - var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); diff --git a/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs.meta similarity index 83% rename from src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs.meta rename to src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs.meta index f0c96268..81ee786c 100644 --- a/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs.meta +++ b/src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1d24c65931c69375b8d6830085008249 +guid: 4577829c5f11a506b9cd26b739cdd352 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs index 86fbd094..bdbb9d51 100644 --- a/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs +++ b/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs @@ -28,10 +28,10 @@ public interface IPricingApiSync : IApiAccessor { #region Synchronous Operations /// - /// Experimental: Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain @@ -42,10 +42,10 @@ public interface IPricingApiSync : IApiAccessor QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); /// - /// Experimental: Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain @@ -55,10 +55,10 @@ public interface IPricingApiSync : IApiAccessor /// ApiResponse of QuotesForNFTsResult ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); /// - /// Experimental: Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain @@ -69,10 +69,10 @@ public interface IPricingApiSync : IApiAccessor QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); /// - /// Experimental: Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain @@ -91,10 +91,10 @@ public interface IPricingApiAsync : IApiAccessor { #region Asynchronous Operations /// - /// Experimental: Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain @@ -106,10 +106,10 @@ public interface IPricingApiAsync : IApiAccessor System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Experimental: Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain @@ -120,10 +120,10 @@ public interface IPricingApiAsync : IApiAccessor /// Task of ApiResponse (QuotesForNFTsResult) System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Experimental: Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain @@ -135,10 +135,10 @@ public interface IPricingApiAsync : IApiAccessor System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Experimental: Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// - /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain @@ -293,7 +293,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// Get pricing data for a list of token ids pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain @@ -308,7 +308,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// Get pricing data for a list of token ids pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain @@ -356,7 +356,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory // make the HTTP request - var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -368,7 +368,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// Get pricing data for a list of token ids pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain @@ -389,7 +389,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// Get pricing data for a list of token ids pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain @@ -441,7 +441,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory // make the HTTP request - var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -459,7 +459,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain @@ -474,7 +474,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain @@ -522,7 +522,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory // make the HTTP request - var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -534,7 +534,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain @@ -555,7 +555,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory } /// - /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain @@ -607,7 +607,7 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory // make the HTTP request - var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); diff --git a/src/Packages/ZkEvmApi/api~/openapi.yaml b/src/Packages/ZkEvmApi/api~/openapi.yaml index 63239295..3915b804 100644 --- a/src/Packages/ZkEvmApi/api~/openapi.yaml +++ b/src/Packages/ZkEvmApi/api~/openapi.yaml @@ -57,9 +57,8 @@ tags: - description: Pricing Endpoints name: pricing x-displayName: pricing -- description: Stacks Endpoints - name: stacks - x-displayName: stacks +- name: metadata-search + x-displayName: metadata-search paths: /v1/chains/{chain_name}/activity-history: get: @@ -3320,10 +3319,9 @@ paths: summary: Get all info for a Passport user tags: - passport profile - /experimental/chains/{chain_name}/search/filters/{contract_address}: + /v1/chains/{chain_name}/search/filters/{contract_address}: get: - description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ - \ Get list of metadata filters" + description: Get list of metadata filters operationId: ListFilters parameters: - description: The name of chain @@ -3394,14 +3392,13 @@ paths: schema: $ref: '#/components/schemas/APIError500' description: Internal Server Error (500) - summary: "Experimental: Get list of metadata attribute filters" + summary: Get list of metadata attribute filters tags: - - stacks + - metadata-search x-hide-from-sdk: true - /experimental/chains/{chain_name}/search/nfts: + /v1/chains/{chain_name}/search/nfts: get: - description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ - \ Search NFTs" + description: Search NFTs operationId: SearchNFTs parameters: - description: The name of chain @@ -3526,14 +3523,13 @@ paths: schema: $ref: '#/components/schemas/APIError500' description: Internal Server Error (500) - summary: "Experimental: Search NFTs" + summary: Search NFTs tags: - - stacks + - metadata-search x-hide-from-sdk: true - /experimental/chains/{chain_name}/search/stacks: + /v1/chains/{chain_name}/search/stacks: get: - description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ - \ Search NFT stacks" + description: Search NFT stacks operationId: SearchStacks parameters: - description: The name of chain @@ -3685,14 +3681,15 @@ paths: schema: $ref: '#/components/schemas/APIError500' description: Internal Server Error (500) - summary: "Experimental: Search NFT stacks" + summary: Search NFT stacks tags: - - stacks + - metadata-search x-hide-from-sdk: true - /experimental/chains/{chain_name}/stacks: + /v1/chains/{chain_name}/stacks: get: - description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ - \ NFT stacks" + description: "List NFT stack bundles by stack_id. This endpoint functions similarly\ + \ to `ListMetadataByID` but extends the response to include Market, Listings\ + \ & Stack Count information for each stack." operationId: ListStacks parameters: - description: The name of chain @@ -3770,14 +3767,14 @@ paths: schema: $ref: '#/components/schemas/APIError500' description: Internal Server Error (500) - summary: "Experimental: List NFT stacks by stack_id" + summary: "List NFT stack bundles by stack_id. Response will include Market,\ + \ Listings & Stack Count information for each stack" tags: - - stacks + - metadata x-hide-from-sdk: true - /experimental/chains/{chain_name}/quotes/{contract_address}/stacks: + /v1/chains/{chain_name}/quotes/{contract_address}/stacks: get: - description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ - \ Get pricing data for a list of stack ids" + description: Get pricing data for a list of stack ids operationId: QuotesForStacks parameters: - description: The name of chain @@ -3870,14 +3867,13 @@ paths: schema: $ref: '#/components/schemas/APIError500' description: Internal Server Error (500) - summary: "Experimental: Get pricing data for a list of stack ids" + summary: Get pricing data for a list of stack ids tags: - pricing x-hide-from-sdk: true - /experimental/chains/{chain_name}/quotes/{contract_address}/nfts: + /v1/chains/{chain_name}/quotes/{contract_address}/nfts: get: - description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ - \ Get pricing data for a list of token ids" + description: pricing data for a list of token ids operationId: QuotesForNFTs parameters: - description: The name of chain @@ -3969,7 +3965,7 @@ paths: schema: $ref: '#/components/schemas/APIError500' description: Internal Server Error (500) - summary: "Experimental: Get pricing data for a list of token ids" + summary: Get pricing data for a list of token ids tags: - pricing x-hide-from-sdk: true @@ -11099,33 +11095,4 @@ components: name: x-immutable-api-key type: apiKey x-go-name: ImmutableApiKey -x-tagGroups: -- name: Multi Rollup API - tags: - - activities - - chains - - collections - - nfts - - nft owners - - metadata - - tokens - - demopage - - verification - - operatorallowlist - - crafting - - listings - - orders -- name: Passport MR - tags: - - passport -- name: Passport Profile Service API - tags: - - passport profile -- name: Guardian - tags: - - guardian -- name: Indexer Marketplace APIs - tags: - - pricing - - stacks