Skip to content

Commit

Permalink
add autogenerated files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiloc committed Feb 5, 2025
1 parent d55e3a6 commit 0af53d1
Show file tree
Hide file tree
Showing 15 changed files with 189 additions and 189 deletions.
4 changes: 2 additions & 2 deletions .generated-sources/emily/client/rust/private/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CorsApi* | [**chainstate_height_options**](docs/CorsApi.md#chainstate_height_options) | **OPTIONS** /chainstate/{height} | CORS support
*CorsApi* | [**chainstate_options**](docs/CorsApi.md#chainstate_options) | **OPTIONS** /chainstate | CORS support
*CorsApi* | [**deposit_input_address_input_address_options**](docs/CorsApi.md#deposit_input_address_input_address_options) | **OPTIONS** /deposit/input-address/{inputAddress} | CORS support
*CorsApi* | [**deposit_options**](docs/CorsApi.md#deposit_options) | **OPTIONS** /deposit | CORS support
*CorsApi* | [**deposit_recipient_recipient_options**](docs/CorsApi.md#deposit_recipient_recipient_options) | **OPTIONS** /deposit/recipient/{recipient} | CORS support
*CorsApi* | [**deposit_reclaim_pubkey_reclaim_pubkey_options**](docs/CorsApi.md#deposit_reclaim_pubkey_reclaim_pubkey_options) | **OPTIONS** /deposit/reclaim-pubkey/{reclaimPubkey} | CORS support
*CorsApi* | [**deposit_txid_index_options**](docs/CorsApi.md#deposit_txid_index_options) | **OPTIONS** /deposit/{txid}/{index} | CORS support
*CorsApi* | [**deposit_txid_options**](docs/CorsApi.md#deposit_txid_options) | **OPTIONS** /deposit/{txid} | CORS support
*CorsApi* | [**health_options**](docs/CorsApi.md#health_options) | **OPTIONS** /health | CORS support
Expand All @@ -45,8 +45,8 @@ Class | Method | HTTP request | Description
*DepositApi* | [**create_deposit**](docs/DepositApi.md#create_deposit) | **POST** /deposit | Create deposit handler.
*DepositApi* | [**get_deposit**](docs/DepositApi.md#get_deposit) | **GET** /deposit/{txid}/{index} | Get deposit handler.
*DepositApi* | [**get_deposits**](docs/DepositApi.md#get_deposits) | **GET** /deposit | Get deposits handler.
*DepositApi* | [**get_deposits_for_input_address**](docs/DepositApi.md#get_deposits_for_input_address) | **GET** /deposit/input-address/{inputAddress} | Get deposits by recipient handler.
*DepositApi* | [**get_deposits_for_recipient**](docs/DepositApi.md#get_deposits_for_recipient) | **GET** /deposit/recipient/{recipient} | Get deposits by recipient handler.
*DepositApi* | [**get_deposits_for_reclaim_pubkey**](docs/DepositApi.md#get_deposits_for_reclaim_pubkey) | **GET** /deposit/reclaim-pubkey/{reclaimPubkey} | Get deposits by recipient handler.
*DepositApi* | [**get_deposits_for_transaction**](docs/DepositApi.md#get_deposits_for_transaction) | **GET** /deposit/{txid} | Get deposits for transaction handler.
*DepositApi* | [**update_deposits**](docs/DepositApi.md#update_deposits) | **PUT** /deposit | Update deposits handler.
*HealthApi* | [**check_health**](docs/HealthApi.md#check_health) | **GET** /health | Get health handler.
Expand Down
26 changes: 13 additions & 13 deletions .generated-sources/emily/client/rust/private/docs/CorsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**chainstate_height_options**](CorsApi.md#chainstate_height_options) | **OPTIONS** /chainstate/{height} | CORS support
[**chainstate_options**](CorsApi.md#chainstate_options) | **OPTIONS** /chainstate | CORS support
[**deposit_input_address_input_address_options**](CorsApi.md#deposit_input_address_input_address_options) | **OPTIONS** /deposit/input-address/{inputAddress} | CORS support
[**deposit_options**](CorsApi.md#deposit_options) | **OPTIONS** /deposit | CORS support
[**deposit_recipient_recipient_options**](CorsApi.md#deposit_recipient_recipient_options) | **OPTIONS** /deposit/recipient/{recipient} | CORS support
[**deposit_reclaim_pubkey_reclaim_pubkey_options**](CorsApi.md#deposit_reclaim_pubkey_reclaim_pubkey_options) | **OPTIONS** /deposit/reclaim-pubkey/{reclaimPubkey} | CORS support
[**deposit_txid_index_options**](CorsApi.md#deposit_txid_index_options) | **OPTIONS** /deposit/{txid}/{index} | CORS support
[**deposit_txid_options**](CorsApi.md#deposit_txid_options) | **OPTIONS** /deposit/{txid} | CORS support
[**health_options**](CorsApi.md#health_options) | **OPTIONS** /health | CORS support
Expand Down Expand Up @@ -76,19 +76,16 @@ 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)


## deposit_input_address_input_address_options
## deposit_options

> deposit_input_address_input_address_options(input_address)
> deposit_options()
CORS support

Handles CORS preflight requests

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**input_address** | **String** | the address from which the deposit was made. | [required] |
This endpoint does not need any parameter.

### Return type

Expand All @@ -106,16 +103,19 @@ 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)


## deposit_options
## deposit_recipient_recipient_options

> deposit_options()
> deposit_recipient_recipient_options(recipient)
CORS support

Handles CORS preflight requests

### Parameters

This endpoint does not need any parameter.

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**recipient** | **String** | the recipient to search by when getting all deposits. | [required] |

### Return type

Expand All @@ -133,9 +133,9 @@ 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)


## deposit_recipient_recipient_options
## deposit_reclaim_pubkey_reclaim_pubkey_options

> deposit_recipient_recipient_options(recipient)
> deposit_reclaim_pubkey_reclaim_pubkey_options(reclaim_pubkey)
CORS support

Handles CORS preflight requests
Expand All @@ -145,7 +145,7 @@ Handles CORS preflight requests

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**recipient** | **String** | the recipient to search by when getting all deposits. | [required] |
**reclaim_pubkey** | **String** | the reclaim schnorr public key to search by when getting all deposits. | [required] |

### Return type

Expand Down
14 changes: 7 additions & 7 deletions .generated-sources/emily/client/rust/private/docs/DepositApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Method | HTTP request | Description
[**create_deposit**](DepositApi.md#create_deposit) | **POST** /deposit | Create deposit handler.
[**get_deposit**](DepositApi.md#get_deposit) | **GET** /deposit/{txid}/{index} | Get deposit handler.
[**get_deposits**](DepositApi.md#get_deposits) | **GET** /deposit | Get deposits handler.
[**get_deposits_for_input_address**](DepositApi.md#get_deposits_for_input_address) | **GET** /deposit/input-address/{inputAddress} | Get deposits by recipient handler.
[**get_deposits_for_recipient**](DepositApi.md#get_deposits_for_recipient) | **GET** /deposit/recipient/{recipient} | Get deposits by recipient handler.
[**get_deposits_for_reclaim_pubkey**](DepositApi.md#get_deposits_for_reclaim_pubkey) | **GET** /deposit/reclaim-pubkey/{reclaimPubkey} | Get deposits by recipient handler.
[**get_deposits_for_transaction**](DepositApi.md#get_deposits_for_transaction) | **GET** /deposit/{txid} | Get deposits for transaction handler.
[**update_deposits**](DepositApi.md#update_deposits) | **PUT** /deposit | Update deposits handler.

Expand Down Expand Up @@ -101,17 +101,17 @@ 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)


## get_deposits_for_input_address
## get_deposits_for_recipient

> models::GetDepositsResponse get_deposits_for_input_address(input_address, next_token, page_size)
> models::GetDepositsResponse get_deposits_for_recipient(recipient, next_token, page_size)
Get deposits by recipient handler.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**input_address** | **String** | the address from which the deposit was made. | [required] |
**recipient** | **String** | the recipient to search by when getting all deposits. | [required] |
**next_token** | Option<**String**> | the next token value from the previous return of this api call. | |
**page_size** | Option<**i32**> | the maximum number of items in the response list. | |

Expand All @@ -131,17 +131,17 @@ 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)


## get_deposits_for_recipient
## get_deposits_for_reclaim_pubkey

> models::GetDepositsResponse get_deposits_for_recipient(recipient, next_token, page_size)
> models::GetDepositsResponse get_deposits_for_reclaim_pubkey(reclaim_pubkey, next_token, page_size)
Get deposits by recipient handler.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**recipient** | **String** | the recipient to search by when getting all deposits. | [required] |
**reclaim_pubkey** | **String** | the reclaim schnorr public key to search by when getting all deposits. | [required] |
**next_token** | Option<**String**> | the next token value from the previous return of this api call. | |
**page_size** | Option<**i32**> | the maximum number of items in the response list. | |

Expand Down
50 changes: 25 additions & 25 deletions .generated-sources/emily/client/rust/private/src/apis/cors_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@ pub enum ChainstateOptionsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method [`deposit_input_address_input_address_options`]
/// struct for typed errors of method [`deposit_options`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DepositInputAddressInputAddressOptionsError {
pub enum DepositOptionsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method [`deposit_options`]
/// struct for typed errors of method [`deposit_recipient_recipient_options`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DepositOptionsError {
pub enum DepositRecipientRecipientOptionsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method [`deposit_recipient_recipient_options`]
/// struct for typed errors of method [`deposit_reclaim_pubkey_reclaim_pubkey_options`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DepositRecipientRecipientOptionsError {
pub enum DepositReclaimPubkeyReclaimPubkeyOptionsError {
UnknownValue(serde_json::Value),
}

Expand Down Expand Up @@ -177,19 +177,14 @@ pub async fn chainstate_options(
}

/// Handles CORS preflight requests
pub async fn deposit_input_address_input_address_options(
pub async fn deposit_options(
configuration: &configuration::Configuration,
input_address: &str,
) -> Result<(), Error<DepositInputAddressInputAddressOptionsError>> {
) -> Result<(), Error<DepositOptionsError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;

let local_var_uri_str = format!(
"{}/deposit/input-address/{inputAddress}",
local_var_configuration.base_path,
inputAddress = crate::apis::urlencode(input_address)
);
let local_var_uri_str = format!("{}/deposit", local_var_configuration.base_path);
let mut local_var_req_builder =
local_var_client.request(reqwest::Method::OPTIONS, local_var_uri_str.as_str());

Expand All @@ -207,7 +202,7 @@ pub async fn deposit_input_address_input_address_options(
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
Ok(())
} else {
let local_var_entity: Option<DepositInputAddressInputAddressOptionsError> =
let local_var_entity: Option<DepositOptionsError> =
serde_json::from_str(&local_var_content).ok();
let local_var_error = ResponseContent {
status: local_var_status,
Expand All @@ -219,14 +214,19 @@ pub async fn deposit_input_address_input_address_options(
}

/// Handles CORS preflight requests
pub async fn deposit_options(
pub async fn deposit_recipient_recipient_options(
configuration: &configuration::Configuration,
) -> Result<(), Error<DepositOptionsError>> {
recipient: &str,
) -> Result<(), Error<DepositRecipientRecipientOptionsError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;

let local_var_uri_str = format!("{}/deposit", local_var_configuration.base_path);
let local_var_uri_str = format!(
"{}/deposit/recipient/{recipient}",
local_var_configuration.base_path,
recipient = crate::apis::urlencode(recipient)
);
let mut local_var_req_builder =
local_var_client.request(reqwest::Method::OPTIONS, local_var_uri_str.as_str());

Expand All @@ -244,7 +244,7 @@ pub async fn deposit_options(
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
Ok(())
} else {
let local_var_entity: Option<DepositOptionsError> =
let local_var_entity: Option<DepositRecipientRecipientOptionsError> =
serde_json::from_str(&local_var_content).ok();
let local_var_error = ResponseContent {
status: local_var_status,
Expand All @@ -256,18 +256,18 @@ pub async fn deposit_options(
}

/// Handles CORS preflight requests
pub async fn deposit_recipient_recipient_options(
pub async fn deposit_reclaim_pubkey_reclaim_pubkey_options(
configuration: &configuration::Configuration,
recipient: &str,
) -> Result<(), Error<DepositRecipientRecipientOptionsError>> {
reclaim_pubkey: &str,
) -> Result<(), Error<DepositReclaimPubkeyReclaimPubkeyOptionsError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;

let local_var_uri_str = format!(
"{}/deposit/recipient/{recipient}",
"{}/deposit/reclaim-pubkey/{reclaimPubkey}",
local_var_configuration.base_path,
recipient = crate::apis::urlencode(recipient)
reclaimPubkey = crate::apis::urlencode(reclaim_pubkey)
);
let mut local_var_req_builder =
local_var_client.request(reqwest::Method::OPTIONS, local_var_uri_str.as_str());
Expand All @@ -286,7 +286,7 @@ pub async fn deposit_recipient_recipient_options(
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
Ok(())
} else {
let local_var_entity: Option<DepositRecipientRecipientOptionsError> =
let local_var_entity: Option<DepositReclaimPubkeyReclaimPubkeyOptionsError> =
serde_json::from_str(&local_var_content).ok();
let local_var_error = ResponseContent {
status: local_var_status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ pub enum GetDepositsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method [`get_deposits_for_input_address`]
/// struct for typed errors of method [`get_deposits_for_recipient`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetDepositsForInputAddressError {
pub enum GetDepositsForRecipientError {
Status400(models::ErrorResponse),
Status404(models::ErrorResponse),
Status405(models::ErrorResponse),
Status500(models::ErrorResponse),
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method [`get_deposits_for_recipient`]
/// struct for typed errors of method [`get_deposits_for_reclaim_pubkey`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetDepositsForRecipientError {
pub enum GetDepositsForReclaimPubkeyError {
Status400(models::ErrorResponse),
Status404(models::ErrorResponse),
Status405(models::ErrorResponse),
Expand Down Expand Up @@ -220,20 +220,20 @@ pub async fn get_deposits(
}
}

pub async fn get_deposits_for_input_address(
pub async fn get_deposits_for_recipient(
configuration: &configuration::Configuration,
input_address: &str,
recipient: &str,
next_token: Option<&str>,
page_size: Option<i32>,
) -> Result<models::GetDepositsResponse, Error<GetDepositsForInputAddressError>> {
) -> Result<models::GetDepositsResponse, Error<GetDepositsForRecipientError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;

let local_var_uri_str = format!(
"{}/deposit/input-address/{inputAddress}",
"{}/deposit/recipient/{recipient}",
local_var_configuration.base_path,
inputAddress = crate::apis::urlencode(input_address)
recipient = crate::apis::urlencode(recipient)
);
let mut local_var_req_builder =
local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
Expand All @@ -260,7 +260,7 @@ pub async fn get_deposits_for_input_address(
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
serde_json::from_str(&local_var_content).map_err(Error::from)
} else {
let local_var_entity: Option<GetDepositsForInputAddressError> =
let local_var_entity: Option<GetDepositsForRecipientError> =
serde_json::from_str(&local_var_content).ok();
let local_var_error = ResponseContent {
status: local_var_status,
Expand All @@ -271,20 +271,20 @@ pub async fn get_deposits_for_input_address(
}
}

pub async fn get_deposits_for_recipient(
pub async fn get_deposits_for_reclaim_pubkey(
configuration: &configuration::Configuration,
recipient: &str,
reclaim_pubkey: &str,
next_token: Option<&str>,
page_size: Option<i32>,
) -> Result<models::GetDepositsResponse, Error<GetDepositsForRecipientError>> {
) -> Result<models::GetDepositsResponse, Error<GetDepositsForReclaimPubkeyError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;

let local_var_uri_str = format!(
"{}/deposit/recipient/{recipient}",
"{}/deposit/reclaim-pubkey/{reclaimPubkey}",
local_var_configuration.base_path,
recipient = crate::apis::urlencode(recipient)
reclaimPubkey = crate::apis::urlencode(reclaim_pubkey)
);
let mut local_var_req_builder =
local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
Expand All @@ -311,7 +311,7 @@ pub async fn get_deposits_for_recipient(
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
serde_json::from_str(&local_var_content).map_err(Error::from)
} else {
let local_var_entity: Option<GetDepositsForRecipientError> =
let local_var_entity: Option<GetDepositsForReclaimPubkeyError> =
serde_json::from_str(&local_var_content).ok();
let local_var_error = ResponseContent {
status: local_var_status,
Expand Down
Loading

0 comments on commit 0af53d1

Please sign in to comment.