From 7128535b9e8d34ab3ae22a42b4f6ec691d04fbd9 Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Tue, 25 Feb 2025 15:57:11 +0000 Subject: [PATCH 1/9] change vsn to match previous local dev --- scripts/update-sdk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-sdk.sh b/scripts/update-sdk.sh index 2c2c707..923fe20 100755 --- a/scripts/update-sdk.sh +++ b/scripts/update-sdk.sh @@ -15,7 +15,7 @@ curl -L \ cat openapi.json | jq -r '.content' | base64 -d | jq '.' > openapi_decoded.json # Generate the client -npx @openapitools/openapi-generator-cli@2.16.3 generate -i openapi_decoded.json -g rust -o ../openapi --additional-properties=supportMiddleware=true +npx @openapitools/openapi-generator-cli@2.15.3 generate -i openapi_decoded.json -g rust -o ../openapi --additional-properties=supportMiddleware=true # Move up to the project root. cd .. From 40618af16415dd86e81ff4ebc10015434779cd1b Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Tue, 25 Feb 2025 19:06:37 +0000 Subject: [PATCH 2/9] try most recent generator --- scripts/openapitools.json | 2 +- scripts/update-sdk.sh | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/scripts/openapitools.json b/scripts/openapitools.json index f8d07ce..973a005 100644 --- a/scripts/openapitools.json +++ b/scripts/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.10.0" + "version": "7.11.0" } } diff --git a/scripts/update-sdk.sh b/scripts/update-sdk.sh index 923fe20..2dbfc54 100755 --- a/scripts/update-sdk.sh +++ b/scripts/update-sdk.sh @@ -3,19 +3,11 @@ # Use the location of the script as the working directory. cd "$(dirname "$0")" -# Download the open api spec that has been downgraded to v3.0.3 -curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - -O \ - -L https://api.github.com/repos/Sindri-Labs/sindri-labs.github.io/contents/docs/reference/api/openapi.json - -# Decode the base64 encoded content -cat openapi.json | jq -r '.content' | base64 -d | jq '.' > openapi_decoded.json +# Download the most recent open api spec +wget https://sindri.app/api/openapi.json # Generate the client -npx @openapitools/openapi-generator-cli@2.15.3 generate -i openapi_decoded.json -g rust -o ../openapi --additional-properties=supportMiddleware=true +npx @openapitools/openapi-generator-cli@2.16.3 generate -i openapi.json -g rust -o ../openapi --additional-properties=supportMiddleware=true # Move up to the project root. cd .. @@ -24,9 +16,8 @@ cd .. rustfmt $(find ./openapi/ -name "*.rs") # Patch over the generated client with some manual changes -git apply openapi/openapi.patch +# git apply openapi/openapi.patch # Move back into scripts and remove the spec files. cd ./scripts/ rm openapi.json -rm openapi_decoded.json From 1b6ab9049ddd047815fb5c85e23f997674089c41 Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Tue, 25 Feb 2025 19:07:37 +0000 Subject: [PATCH 3/9] fmt, no patch update --- openapi/.openapi-generator/FILES | 14 +- openapi/.openapi-generator/VERSION | 2 +- openapi/Cargo.toml | 4 +- openapi/src/apis/authorization_api.rs | 221 ++- openapi/src/apis/circuits_api.rs | 423 ++--- openapi/src/apis/configuration.rs | 6 +- openapi/src/apis/internal_api.rs | 1576 +++++++++-------- openapi/src/apis/mod.rs | 8 +- openapi/src/apis/proofs_api.rs | 149 +- openapi/src/apis/token_api.rs | 150 +- openapi/src/models/access.rs | 11 +- openapi/src/models/action_response.rs | 4 +- openapi/src/models/api_key.rs | 11 +- .../models/api_key_does_not_exist_response.rs | 4 +- openapi/src/models/api_key_error_response.rs | 4 +- openapi/src/models/api_key_response.rs | 7 +- openapi/src/models/apikey_id.rs | 4 +- .../models/boojum_circuit_info_response.rs | 30 +- .../models/circom_circuit_info_response.rs | 32 +- openapi/src/models/circuit_create_input.rs | 4 +- .../models/circuit_does_not_exist_response.rs | 4 +- openapi/src/models/circuit_id.rs | 4 +- openapi/src/models/circuit_info_response.rs | 10 +- .../models/circuit_is_not_ready_response.rs | 4 +- openapi/src/models/circuit_prove_input.rs | 4 +- openapi/src/models/circuit_size.rs | 11 +- openapi/src/models/circuit_status_response.rs | 4 +- openapi/src/models/circuit_type.rs | 10 +- openapi/src/models/coming_soon_response.rs | 4 +- openapi/src/models/compute_time_iso8601.rs | 11 +- openapi/src/models/compute_time_seconds.rs | 11 +- openapi/src/models/compute_times.rs | 11 +- openapi/src/models/compute_times_1.rs | 11 +- openapi/src/models/contract_code.rs | 11 +- openapi/src/models/date_created_after.rs | 11 +- openapi/src/models/date_created_before.rs | 11 +- openapi/src/models/date_expires.rs | 11 +- openapi/src/models/date_last_used.rs | 11 +- openapi/src/models/error.rs | 11 +- openapi/src/models/error_1.rs | 11 +- openapi/src/models/exception_id.rs | 4 +- openapi/src/models/field.rs | 11 +- openapi/src/models/file_size.rs | 11 +- .../src/models/gnark_circuit_info_response.rs | 28 +- .../src/models/halo2_circuit_info_response.rs | 28 +- .../models/hermez_circuit_info_response.rs | 176 ++ openapi/src/models/input.rs | 4 +- openapi/src/models/is_public.rs | 11 +- openapi/src/models/job_status.rs | 4 +- .../src/models/jolt_circuit_info_response.rs | 28 +- .../src/models/jwt_token_error_response.rs | 4 +- openapi/src/models/mod.rs | 24 +- openapi/src/models/name.rs | 11 +- .../src/models/noir_circuit_info_response.rs | 30 +- openapi/src/models/num_acir_opcodes.rs | 11 +- openapi/src/models/num_constraints.rs | 11 +- openapi/src/models/num_outputs.rs | 11 +- openapi/src/models/num_private_inputs.rs | 11 +- openapi/src/models/num_proofs.rs | 11 +- openapi/src/models/num_public_inputs.rs | 11 +- openapi/src/models/number_of_proofs.rs | 11 +- openapi/src/models/number_of_proofs_1.rs | 11 +- openapi/src/models/obtain_apikey_input.rs | 4 +- .../src/models/paged_circuit_info_response.rs | 4 +- .../src/models/paged_project_info_response.rs | 4 +- .../src/models/paged_proof_info_response.rs | 4 +- openapi/src/models/password_change_input.rs | 4 +- .../models/plonky2_circuit_info_response.rs | 28 +- .../models/project_does_not_exist_response.rs | 4 +- openapi/src/models/project_info_response.rs | 19 +- .../project_info_response_latest_circuit.rs | 13 +- .../models/project_latest_circuit_response.rs | 4 +- openapi/src/models/project_list_input.rs | 17 +- openapi/src/models/project_name.rs | 11 +- openapi/src/models/project_settings_input.rs | 6 +- openapi/src/models/proof.rs | 11 +- .../proof_cannot_be_created_response.rs | 4 +- .../models/proof_does_not_exist_response.rs | 4 +- openapi/src/models/proof_histogram_input.rs | 5 +- .../src/models/proof_histogram_response.rs | 4 +- openapi/src/models/proof_id.rs | 4 +- openapi/src/models/proof_info_response.rs | 24 +- openapi/src/models/proof_input.rs | 21 +- openapi/src/models/proof_list_input.rs | 16 +- openapi/src/models/proof_status_response.rs | 4 +- openapi/src/models/public.rs | 11 +- openapi/src/models/queue_time_iso8601.rs | 11 +- openapi/src/models/queue_time_seconds.rs | 11 +- .../models/sindri_internal_error_response.rs | 31 + .../models/sindri_invalid_upload_response.rs | 34 + .../src/models/sindri_value_error_response.rs | 34 + openapi/src/models/smart_contract_calldata.rs | 11 +- .../smart_contract_verifier_response.rs | 5 +- .../models/snarkvm_circuit_info_response.rs | 182 ++ .../src/models/sp1_circuit_info_response.rs | 28 +- openapi/src/models/status.rs | 11 +- .../models/team_already_exists_response.rs | 37 + openapi/src/models/team_create_input.rs | 37 + openapi/src/models/team_detail.rs | 5 +- .../models/team_does_not_exist_response.rs | 18 +- openapi/src/models/team_invite_input.rs | 27 + openapi/src/models/team_me_response.rs | 4 +- openapi/src/models/team_member_detail.rs | 4 +- openapi/src/models/team_members_response.rs | 4 +- openapi/src/models/team_name.rs | 11 +- .../src/models/team_remove_member_input.rs | 33 + .../models/token_obtain_pair_input_schema.rs | 4 +- .../models/token_obtain_pair_output_schema.rs | 4 +- .../src/models/token_refresh_input_schema.rs | 4 +- .../src/models/token_refresh_output_schema.rs | 4 +- .../src/models/token_verify_input_schema.rs | 4 +- openapi/src/models/user_me_response.rs | 4 +- .../src/models/validation_error_response.rs | 5 +- openapi/src/models/verification_key.rs | 11 +- openapi/src/models/verified.rs | 11 +- openapi/src/models/warnings.rs | 11 +- openapi/src/models/zkevm_version.rs | 11 +- 117 files changed, 2416 insertions(+), 1727 deletions(-) create mode 100644 openapi/src/models/hermez_circuit_info_response.rs create mode 100644 openapi/src/models/sindri_internal_error_response.rs create mode 100644 openapi/src/models/sindri_invalid_upload_response.rs create mode 100644 openapi/src/models/sindri_value_error_response.rs create mode 100644 openapi/src/models/snarkvm_circuit_info_response.rs create mode 100644 openapi/src/models/team_already_exists_response.rs create mode 100644 openapi/src/models/team_create_input.rs create mode 100644 openapi/src/models/team_invite_input.rs create mode 100644 openapi/src/models/team_remove_member_input.rs diff --git a/openapi/.openapi-generator/FILES b/openapi/.openapi-generator/FILES index 4e5dbfc..851e9e6 100644 --- a/openapi/.openapi-generator/FILES +++ b/openapi/.openapi-generator/FILES @@ -3,8 +3,10 @@ Cargo.toml src/apis/authorization_api.rs src/apis/circuits_api.rs src/apis/configuration.rs +src/apis/internal_api.rs src/apis/mod.rs src/apis/proofs_api.rs +src/apis/token_api.rs src/lib.rs src/models/action_response.rs src/models/api_key_does_not_exist_response.rs @@ -23,11 +25,9 @@ src/models/circuit_status_response.rs src/models/circuit_type.rs src/models/coming_soon_response.rs src/models/exception_id.rs -src/models/forge_internal_error_response.rs -src/models/forge_invalid_upload_response.rs -src/models/forge_value_error_response.rs src/models/gnark_circuit_info_response.rs src/models/halo2_circuit_info_response.rs +src/models/hermez_circuit_info_response.rs src/models/input.rs src/models/job_status.rs src/models/jolt_circuit_info_response.rs @@ -54,13 +54,21 @@ src/models/proof_info_response.rs src/models/proof_input.rs src/models/proof_list_input.rs src/models/proof_status_response.rs +src/models/sindri_internal_error_response.rs +src/models/sindri_invalid_upload_response.rs +src/models/sindri_value_error_response.rs src/models/smart_contract_verifier_response.rs +src/models/snarkvm_circuit_info_response.rs src/models/sp1_circuit_info_response.rs +src/models/team_already_exists_response.rs +src/models/team_create_input.rs src/models/team_detail.rs src/models/team_does_not_exist_response.rs +src/models/team_invite_input.rs src/models/team_me_response.rs src/models/team_member_detail.rs src/models/team_members_response.rs +src/models/team_remove_member_input.rs src/models/token_obtain_pair_input_schema.rs src/models/token_obtain_pair_output_schema.rs src/models/token_refresh_input_schema.rs diff --git a/openapi/.openapi-generator/VERSION b/openapi/.openapi-generator/VERSION index 758bb9c..b23eb27 100644 --- a/openapi/.openapi-generator/VERSION +++ b/openapi/.openapi-generator/VERSION @@ -1 +1 @@ -7.10.0 +7.11.0 diff --git a/openapi/Cargo.toml b/openapi/Cargo.toml index 68886b0..39135d3 100644 --- a/openapi/Cargo.toml +++ b/openapi/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "openapi" -version = "1.15.1" +version = "1.17.6" authors = ["OpenAPI Generator team and contributors"] -description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)" +description = " ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 " # Override this license by providing a License Object in the OpenAPI. license = "Unlicense" edition = "2021" diff --git a/openapi/src/apis/authorization_api.rs b/openapi/src/apis/authorization_api.rs index 5f53c78..5a52800 100644 --- a/openapi/src/apis/authorization_api.rs +++ b/openapi/src/apis/authorization_api.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize}; #[serde(untagged)] pub enum ApikeyDeleteError { Status404(models::ApiKeyDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -26,9 +26,17 @@ pub enum ApikeyDeleteError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ApikeyGenerateError { - Status400(models::ForgeValueErrorResponse), - Status401(models::ApiKeyErrorResponse), + Status400(models::SindriValueErrorResponse), Status403(models::ApiKeyErrorResponse), + Status401(models::ApiKeyErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`apikey_generate_with_auth`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApikeyGenerateWithAuthError { + Status400(models::SindriValueErrorResponse), UnknownValue(serde_json::Value), } @@ -36,55 +44,53 @@ pub enum ApikeyGenerateError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ApikeyListError { - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } /// Delete a specific API key. pub async fn apikey_delete( configuration: &configuration::Configuration, - apikey_id: &str, + apikey_id: Option<&str>, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_apikey_id = apikey_id; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/apikey/{apikey_id}/delete", - local_var_configuration.base_path, - apikey_id = crate::apis::urlencode(apikey_id) + configuration.base_path, + apikey_id = crate::apis::urlencode(p_apikey_id.unwrap()) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + let mut req_builder = configuration + .client + .request(reqwest::Method::DELETE, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -92,38 +98,86 @@ pub async fn apikey_delete( pub async fn apikey_generate( configuration: &configuration::Configuration, obtain_apikey_input: models::ObtainApikeyInput, + sindri_team_id: Option<&str>, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_obtain_apikey_input = obtain_apikey_input; + let p_sindri_team_id = sindri_team_id; + + let uri_str = format!("{}/api/apikey/generate", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(param_value) = p_sindri_team_id { + req_builder = req_builder.header("Sindri-Team-Id", param_value.to_string()); + } + req_builder = req_builder.json(&p_obtain_apikey_input); - let local_var_client = &local_var_configuration.client; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_uri_str = format!("{}/api/apikey/generate", local_var_configuration.base_path); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + let status = resp.status(); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } - local_var_req_builder = local_var_req_builder.json(&obtain_apikey_input); +} - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; +/// Generate an API key for the requesting team. +pub async fn apikey_generate_with_auth( + configuration: &configuration::Configuration, + name: Option<&str>, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_name = name; + + let uri_str = format!("{}/api/v1/apikey/generate", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = p_name { + req_builder = req_builder.query(&[("name", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -131,41 +185,34 @@ pub async fn apikey_generate( pub async fn apikey_list( configuration: &configuration::Configuration, ) -> Result, Error> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/api/v1/apikey/list", local_var_configuration.base_path); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let uri_str = format!("{}/api/v1/apikey/list", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } diff --git a/openapi/src/apis/circuits_api.rs b/openapi/src/apis/circuits_api.rs index d422e0d..b604ac4 100644 --- a/openapi/src/apis/circuits_api.rs +++ b/openapi/src/apis/circuits_api.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -17,10 +17,10 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CircuitCreateError { - Status400(models::ForgeInvalidUploadResponse), Status422(models::ValidationErrorResponse), - Status500(models::ForgeInternalErrorResponse), Status501(models::ComingSoonResponse), + Status500(models::SindriInternalErrorResponse), + Status400(models::SindriInvalidUploadResponse), UnknownValue(serde_json::Value), } @@ -29,7 +29,7 @@ pub enum CircuitCreateError { #[serde(untagged)] pub enum CircuitDeleteError { Status404(models::CircuitDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -38,7 +38,7 @@ pub enum CircuitDeleteError { #[serde(untagged)] pub enum CircuitDetailError { Status404(models::CircuitDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -46,7 +46,7 @@ pub enum CircuitDetailError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CircuitListError { - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -55,7 +55,7 @@ pub enum CircuitListError { #[serde(untagged)] pub enum CircuitProofsError { Status404(models::CircuitDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -63,9 +63,9 @@ pub enum CircuitProofsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ProofCreateError { - Status400(models::ProofCannotBeCreatedResponse), Status404(models::CircuitDoesNotExistResponse), Status409(models::CircuitIsNotReadyResponse), + Status400(models::ProofCannotBeCreatedResponse), Status501(models::ComingSoonResponse), UnknownValue(serde_json::Value), } @@ -73,102 +73,63 @@ pub enum ProofCreateError { /// Create a circuit. pub async fn circuit_create( configuration: &configuration::Configuration, - files: Vec, + files: Vec, meta: Option>, tags: Option>, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/api/v1/circuit/create", - local_var_configuration.base_path - ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + // add a prefix to parameters to efficiently prevent name collisions + let p_files = files; + let p_meta = meta; + let p_tags = tags; + + let uri_str = format!("{}/api/v1/circuit/create", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - // Build the request body directly in order to avoid a streaming request - // that is incompatible with the retry middleware - let boundary = "----------------------------4ebf00fbcf09"; - local_var_req_builder = local_var_req_builder.header( - "Content-Type", - format!("multipart/form-data; boundary={boundary}"), - ); - - let filename = "rust_sdk_upload.tar.gz"; - let mut byte_string = Vec::new(); - byte_string.extend_from_slice( - format!( - "--{boundary}\r\n\ - Content-Disposition: form-data; name=\"files\"; filename=\"{filename}\"\r\n\ - \r\n", - ) - .as_bytes(), - ); - byte_string.extend(files); - byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); // End of files - if let Some(tags) = tags { - for tag in tags { - byte_string.extend_from_slice( - format!( - "--{boundary}\r\n\ - Content-Disposition: form-data; name=\"tags\"\r\n\ - \r\n\ - {tag}\r\n" - ) - .as_bytes(), - ); - byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); - // End of tag - } + let mut multipart_form = reqwest::multipart::Form::new(); + // TODO: support file upload for 'files' parameter + if let Some(param_value) = p_meta { + multipart_form = multipart_form.text("meta", param_value.to_string()); } - if let Some(meta) = meta { - let meta_json = serde_json::to_string(&meta)?; - byte_string.extend_from_slice( - format!( - "--{boundary}\r\n\ - Content-Disposition: form-data; name=\"meta\"\r\n\ - Content-Type: application/json\r\n\ - \r\n\ - {meta_json}\r\n" - ) - .as_bytes(), + if let Some(param_value) = p_tags { + multipart_form = multipart_form.text( + "tags", + param_value + .into_iter() + .map(|p| p.to_string()) + .collect::>() + .join(",") + .to_string(), ); - byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); - // End of meta } - let local_var_body = reqwest::Body::from(byte_string); - - local_var_req_builder = local_var_req_builder.body(local_var_body); + req_builder = req_builder.multipart(multipart_form); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -177,46 +138,44 @@ pub async fn circuit_delete( configuration: &configuration::Configuration, circuit_id: &str, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/delete", - local_var_configuration.base_path, - circuit_id = crate::apis::urlencode(circuit_id) + configuration.base_path, + circuit_id = crate::apis::urlencode(p_circuit_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + let mut req_builder = configuration + .client + .request(reqwest::Method::DELETE, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -226,50 +185,46 @@ pub async fn circuit_detail( circuit_id: &str, include_verification_key: Option, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; + let p_include_verification_key = include_verification_key; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/detail", - local_var_configuration.base_path, - circuit_id = crate::apis::urlencode(circuit_id) + configuration.base_path, + circuit_id = crate::apis::urlencode(p_circuit_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_str) = include_verification_key { - local_var_req_builder = local_var_req_builder - .query(&[("include_verification_key", &local_var_str.to_string())]); + if let Some(ref param_value) = p_include_verification_key { + req_builder = req_builder.query(&[("include_verification_key", ¶m_value.to_string())]); } - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -277,42 +232,35 @@ pub async fn circuit_detail( pub async fn circuit_list( configuration: &configuration::Configuration, ) -> Result, Error> { - let local_var_configuration = configuration; + let uri_str = format!("{}/api/v1/circuit/list", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/api/v1/circuit/list", local_var_configuration.base_path); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -321,46 +269,42 @@ pub async fn circuit_proofs( configuration: &configuration::Configuration, circuit_id: &str, ) -> Result, Error> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/proofs", - local_var_configuration.base_path, - circuit_id = crate::apis::urlencode(circuit_id) + configuration.base_path, + circuit_id = crate::apis::urlencode(p_circuit_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -370,46 +314,45 @@ pub async fn proof_create( circuit_id: &str, circuit_prove_input: models::CircuitProveInput, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; + let p_circuit_prove_input = circuit_prove_input; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/prove", - local_var_configuration.base_path, - circuit_id = crate::apis::urlencode(circuit_id) + configuration.base_path, + circuit_id = crate::apis::urlencode(p_circuit_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&circuit_prove_input); + req_builder = req_builder.json(&p_circuit_prove_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } diff --git a/openapi/src/apis/configuration.rs b/openapi/src/apis/configuration.rs index 0d3175c..8145e6f 100644 --- a/openapi/src/apis/configuration.rs +++ b/openapi/src/apis/configuration.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -37,7 +37,7 @@ impl Default for Configuration { fn default() -> Self { Configuration { base_path: "https://sindri.app".to_owned(), - user_agent: Some("OpenAPI-Generator/v1.15.1/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/v1.17.6/rust".to_owned()), client: reqwest_middleware::ClientBuilder::new(reqwest::Client::new()).build(), basic_auth: None, oauth_access_token: None, diff --git a/openapi/src/apis/internal_api.rs b/openapi/src/apis/internal_api.rs index 74ab6a6..e53c0c6 100644 --- a/openapi/src/apis/internal_api.rs +++ b/openapi/src/apis/internal_api.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.14.5 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize}; #[serde(untagged)] pub enum CircuitDownloadError { Status404(), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -27,7 +27,7 @@ pub enum CircuitDownloadError { #[serde(untagged)] pub enum CircuitProofsPaginatedError { Status404(models::CircuitDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -37,7 +37,7 @@ pub enum CircuitProofsPaginatedError { pub enum CircuitSmartContractVerifierError { Status404(models::CircuitDoesNotExistResponse), Status409(models::CircuitIsNotReadyResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), Status501(models::ComingSoonResponse), UnknownValue(serde_json::Value), } @@ -47,7 +47,7 @@ pub enum CircuitSmartContractVerifierError { #[serde(untagged)] pub enum CircuitStatusError { Status404(models::CircuitDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -64,7 +64,7 @@ pub enum PasswordChangeWithJwtAuthError { #[serde(untagged)] pub enum ProjectCircuitsError { Status404(models::ProjectDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -73,7 +73,7 @@ pub enum ProjectCircuitsError { #[serde(untagged)] pub enum ProjectCircuitsPaginatedError { Status404(models::ProjectDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -82,7 +82,7 @@ pub enum ProjectCircuitsPaginatedError { #[serde(untagged)] pub enum ProjectDeleteError { Status404(models::ProjectDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -91,7 +91,7 @@ pub enum ProjectDeleteError { #[serde(untagged)] pub enum ProjectDetailError { Status404(models::ProjectDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -99,7 +99,7 @@ pub enum ProjectDetailError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ProjectListError { - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), Status404(models::TeamDoesNotExistResponse), UnknownValue(serde_json::Value), } @@ -108,7 +108,7 @@ pub enum ProjectListError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ProjectListPaginatedError { - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), Status404(models::TeamDoesNotExistResponse), UnknownValue(serde_json::Value), } @@ -118,7 +118,7 @@ pub enum ProjectListPaginatedError { #[serde(untagged)] pub enum ProjectProofsError { Status404(models::ProjectDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -127,7 +127,7 @@ pub enum ProjectProofsError { #[serde(untagged)] pub enum ProjectProofsPaginatedError { Status404(models::ProjectDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -136,16 +136,24 @@ pub enum ProjectProofsPaginatedError { #[serde(untagged)] pub enum ProjectSettingsError { Status404(models::ProjectDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), Status422(models::ValidationErrorResponse), UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`proof_histogram`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ProofHistogramError { + Status500(models::SindriInternalErrorResponse), + UnknownValue(serde_json::Value), +} + /// struct for typed errors of method [`proof_list`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ProofListError { - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -153,7 +161,7 @@ pub enum ProofListError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ProofListPaginatedError { - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -162,7 +170,7 @@ pub enum ProofListPaginatedError { #[serde(untagged)] pub enum ProofStatusError { Status404(models::ProofDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -177,8 +185,18 @@ pub enum SindriManifestSchemaError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum TeamAvatarUploadError { - Status400(models::ForgeInvalidUploadResponse), - Status500(models::ForgeInternalErrorResponse), + Status400(models::SindriInvalidUploadResponse), + Status500(models::SindriInternalErrorResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`team_create`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum TeamCreateError { + Status400(models::SindriValueErrorResponse), + Status409(models::TeamAlreadyExistsResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -190,6 +208,13 @@ pub enum TeamDetailError { UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`team_invite`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum TeamInviteError { + UnknownValue(serde_json::Value), +} + /// struct for typed errors of method [`team_me`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] @@ -197,6 +222,23 @@ pub enum TeamMeError { UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`team_members`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum TeamMembersError { + Status404(models::TeamDoesNotExistResponse), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`team_remove_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum TeamRemoveMemberError { + Status403(), + Status404(), + UnknownValue(serde_json::Value), +} + /// struct for typed errors of method [`user_me_with_jwt_auth`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] @@ -207,53 +249,48 @@ pub enum UserMeWithJwtAuthError { /// Obtain circuit file(s). pub async fn circuit_download( configuration: &configuration::Configuration, - circuit_id: &str, + circuit_id: Option<&str>, path: Option<&str>, -) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; +) -> Result<(), Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; + let p_path = path; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/download", - local_var_configuration.base_path, - circuit_id = crate::apis::urlencode(circuit_id) + configuration.base_path, + circuit_id = crate::apis::urlencode(p_circuit_id.unwrap()) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_str) = path { - local_var_req_builder = - local_var_req_builder.query(&[("path", &local_var_str.to_string())]); + if let Some(ref param_value) = p_path { + req_builder = req_builder.query(&[("path", ¶m_value.to_string())]); } - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - Ok(local_var_resp) + if !status.is_client_error() && !status.is_server_error() { + Ok(()) } else { - let local_var_content = local_var_resp.text().await?; - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -264,54 +301,50 @@ pub async fn circuit_proofs_paginated( limit: Option, offset: Option, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; + let p_limit = limit; + let p_offset = offset; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/proofs/paginated", - local_var_configuration.base_path, - circuit_id = crate::apis::urlencode(circuit_id) + configuration.base_path, + circuit_id = crate::apis::urlencode(p_circuit_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_str) = limit { - local_var_req_builder = - local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + if let Some(ref param_value) = p_limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); } - if let Some(ref local_var_str) = offset { - local_var_req_builder = - local_var_req_builder.query(&[("offset", &local_var_str.to_string())]); + if let Some(ref param_value) = p_offset { + req_builder = req_builder.query(&[("offset", ¶m_value.to_string())]); } - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -320,94 +353,86 @@ pub async fn circuit_smart_contract_verifier( configuration: &configuration::Configuration, circuit_id: &str, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/smart_contract_verifier", - local_var_configuration.base_path, - circuit_id = crate::apis::urlencode(circuit_id) + configuration.base_path, + circuit_id = crate::apis::urlencode(p_circuit_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// Get status for a specific circuit. pub async fn circuit_status( configuration: &configuration::Configuration, - circuit_id: &str, + circuit_id: Option<&str>, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/status", - local_var_configuration.base_path, - circuit_id = crate::apis::urlencode(circuit_id) + configuration.base_path, + circuit_id = crate::apis::urlencode(p_circuit_id.unwrap()) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -416,91 +441,85 @@ pub async fn password_change_with_jwt_auth( configuration: &configuration::Configuration, password_change_input: models::PasswordChangeInput, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_password_change_input = password_change_input; - let local_var_uri_str = format!( - "{}/api/v1/password/change", - local_var_configuration.base_path - ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + let uri_str = format!("{}/api/v1/password/change", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&password_change_input); + req_builder = req_builder.json(&p_password_change_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// List all circuits for a project. pub async fn project_circuits( configuration: &configuration::Configuration, - project_id: &str, + project_id: Option<&str>, ) -> Result, Error> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_project_id = project_id; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/project/{project_id}/circuits", - local_var_configuration.base_path, - project_id = crate::apis::urlencode(project_id) + configuration.base_path, + project_id = crate::apis::urlencode(p_project_id.unwrap()) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -511,54 +530,50 @@ pub async fn project_circuits_paginated( limit: Option, offset: Option, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_project_id = project_id; + let p_limit = limit; + let p_offset = offset; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/project/{project_id}/circuits/paginated", - local_var_configuration.base_path, - project_id = crate::apis::urlencode(project_id) + configuration.base_path, + project_id = crate::apis::urlencode(p_project_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_str) = limit { - local_var_req_builder = - local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + if let Some(ref param_value) = p_limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); } - if let Some(ref local_var_str) = offset { - local_var_req_builder = - local_var_req_builder.query(&[("offset", &local_var_str.to_string())]); + if let Some(ref param_value) = p_offset { + req_builder = req_builder.query(&[("offset", ¶m_value.to_string())]); } - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -567,46 +582,44 @@ pub async fn project_delete( configuration: &configuration::Configuration, project_id: &str, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_project_id = project_id; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/project/{project_id}/delete", - local_var_configuration.base_path, - project_id = crate::apis::urlencode(project_id) + configuration.base_path, + project_id = crate::apis::urlencode(p_project_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + let mut req_builder = configuration + .client + .request(reqwest::Method::DELETE, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -615,46 +628,42 @@ pub async fn project_detail( configuration: &configuration::Configuration, project_id: &str, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_project_id = project_id; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/project/{project_id}/detail", - local_var_configuration.base_path, - project_id = crate::apis::urlencode(project_id) + configuration.base_path, + project_id = crate::apis::urlencode(p_project_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -663,43 +672,41 @@ pub async fn project_list( configuration: &configuration::Configuration, project_list_input: models::ProjectListInput, ) -> Result, Error> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_project_list_input = project_list_input; - let local_var_uri_str = format!("{}/api/v1/project/list", local_var_configuration.base_path); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + let uri_str = format!("{}/api/v1/project/list", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&project_list_input); + req_builder = req_builder.json(&p_project_list_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -710,54 +717,49 @@ pub async fn project_list_paginated( limit: Option, offset: Option, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/api/v1/project/list/paginated", - local_var_configuration.base_path - ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_str) = limit { - local_var_req_builder = - local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + // add a prefix to parameters to efficiently prevent name collisions + let p_project_list_input = project_list_input; + let p_limit = limit; + let p_offset = offset; + + let uri_str = format!("{}/api/v1/project/list/paginated", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = p_limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); } - if let Some(ref local_var_str) = offset { - local_var_req_builder = - local_var_req_builder.query(&[("offset", &local_var_str.to_string())]); + if let Some(ref param_value) = p_offset { + req_builder = req_builder.query(&[("offset", ¶m_value.to_string())]); } - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&project_list_input); + req_builder = req_builder.json(&p_project_list_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -766,46 +768,42 @@ pub async fn project_proofs( configuration: &configuration::Configuration, project_id: &str, ) -> Result, Error> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_project_id = project_id; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/project/{project_id}/proofs", - local_var_configuration.base_path, - project_id = crate::apis::urlencode(project_id) + configuration.base_path, + project_id = crate::apis::urlencode(p_project_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -816,104 +814,142 @@ pub async fn project_proofs_paginated( limit: Option, offset: Option, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_project_id = project_id; + let p_limit = limit; + let p_offset = offset; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/project/{project_id}/proofs/paginated", - local_var_configuration.base_path, - project_id = crate::apis::urlencode(project_id) + configuration.base_path, + project_id = crate::apis::urlencode(p_project_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_str) = limit { - local_var_req_builder = - local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + if let Some(ref param_value) = p_limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); } - if let Some(ref local_var_str) = offset { - local_var_req_builder = - local_var_req_builder.query(&[("offset", &local_var_str.to_string())]); + if let Some(ref param_value) = p_offset { + req_builder = req_builder.query(&[("offset", ¶m_value.to_string())]); } - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// Update project settings. pub async fn project_settings( configuration: &configuration::Configuration, - project_name: &str, + project_name: Option<&str>, project_settings_input: models::ProjectSettingsInput, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_project_name = project_name; + let p_project_settings_input = project_settings_input; - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/project/{project_name}/settings", - local_var_configuration.base_path, - project_name = crate::apis::urlencode(project_name) + configuration.base_path, + project_name = crate::apis::urlencode(p_project_name.unwrap()) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_project_settings_input); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) + } +} - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); +/// Get histogram data for a team's proofs. +pub async fn proof_histogram( + configuration: &configuration::Configuration, + proof_histogram_input: models::ProofHistogramInput, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_proof_histogram_input = proof_histogram_input; + + let uri_str = format!("{}/api/v1/proof/histogram", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&project_settings_input); + req_builder = req_builder.json(&p_proof_histogram_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -922,43 +958,41 @@ pub async fn proof_list( configuration: &configuration::Configuration, proof_list_input: models::ProofListInput, ) -> Result, Error> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_proof_list_input = proof_list_input; - let local_var_uri_str = format!("{}/api/v1/proof/list", local_var_configuration.base_path); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + let uri_str = format!("{}/api/v1/proof/list", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&proof_list_input); + req_builder = req_builder.json(&p_proof_list_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -969,54 +1003,49 @@ pub async fn proof_list_paginated( limit: Option, offset: Option, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( - "{}/api/v1/proof/list/paginated", - local_var_configuration.base_path - ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_str) = limit { - local_var_req_builder = - local_var_req_builder.query(&[("limit", &local_var_str.to_string())]); + // add a prefix to parameters to efficiently prevent name collisions + let p_proof_list_input = proof_list_input; + let p_limit = limit; + let p_offset = offset; + + let uri_str = format!("{}/api/v1/proof/list/paginated", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = p_limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); } - if let Some(ref local_var_str) = offset { - local_var_req_builder = - local_var_req_builder.query(&[("offset", &local_var_str.to_string())]); + if let Some(ref param_value) = p_offset { + req_builder = req_builder.query(&[("offset", ¶m_value.to_string())]); } - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&proof_list_input); + req_builder = req_builder.json(&p_proof_list_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -1025,46 +1054,42 @@ pub async fn proof_status( configuration: &configuration::Configuration, proof_id: &str, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_proof_id = proof_id; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/proof/{proof_id}/status", - local_var_configuration.base_path, - proof_id = crate::apis::urlencode(proof_id) + configuration.base_path, + proof_id = crate::apis::urlencode(p_proof_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -1072,137 +1097,211 @@ pub async fn proof_status( pub async fn sindri_manifest_schema( configuration: &configuration::Configuration, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/sindri-manifest-schema.json", - local_var_configuration.base_path + configuration.base_path ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// Upload avatar for the team pub async fn team_avatar_upload( configuration: &configuration::Configuration, - _files: Vec, + files: Vec, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_files = files; - let local_var_uri_str = format!( - "{}/api/v1/team/avatar/upload", - local_var_configuration.base_path - ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + let uri_str = format!("{}/api/v1/team/avatar/upload", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_form = reqwest::multipart::Form::new(); + let mut multipart_form = reqwest::multipart::Form::new(); // TODO: support file upload for 'files' parameter - local_var_req_builder = local_var_req_builder.multipart(local_var_form); + req_builder = req_builder.multipart(multipart_form); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) + } +} + +/// Create a new team +pub async fn team_create( + configuration: &configuration::Configuration, + team_create_input: models::TeamCreateInput, + sindri_team_id: Option<&str>, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_team_create_input = team_create_input; + let p_sindri_team_id = sindri_team_id; + + let uri_str = format!("{}/api/v1/team/create", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(param_value) = p_sindri_team_id { + req_builder = req_builder.header("Sindri-Team-Id", param_value.to_string()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_team_create_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// Return details for the specified team pub async fn team_detail( configuration: &configuration::Configuration, - team_name: &str, + team_slug: &str, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; + // add a prefix to parameters to efficiently prevent name collisions + let p_team_slug = team_slug; - let local_var_uri_str = format!( - "{}/api/v1/team/{team_name}/detail", - local_var_configuration.base_path, - team_name = crate::apis::urlencode(team_name) + let uri_str = format!( + "{}/api/v1/team/{team_slug}/detail", + configuration.base_path, + team_slug = crate::apis::urlencode(p_team_slug) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) + } +} + +/// Invite an email address to join the specified team +pub async fn team_invite( + configuration: &configuration::Configuration, + team_invite_input: models::TeamInviteInput, + sindri_team_id: Option<&str>, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_team_invite_input = team_invite_input; + let p_sindri_team_id = sindri_team_id; + + let uri_str = format!("{}/api/v1/team/invite", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(param_value) = p_sindri_team_id { + req_builder = req_builder.header("Sindri-Team-Id", param_value.to_string()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + req_builder = req_builder.json(&p_team_invite_input); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -1210,41 +1309,126 @@ pub async fn team_detail( pub async fn team_me( configuration: &configuration::Configuration, ) -> Result> { - let local_var_configuration = configuration; + let uri_str = format!("{}/api/v1/team/me", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; - let local_var_client = &local_var_configuration.client; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_uri_str = format!("{}/api/v1/team/me", local_var_configuration.base_path); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) + } +} + +/// Return member list for the specified team +pub async fn team_members( + configuration: &configuration::Configuration, + team_slug: &str, + sindri_team_id: Option<&str>, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_team_slug = team_slug; + let p_sindri_team_id = sindri_team_id; + + let uri_str = format!( + "{}/api/v1/team/{team_slug}/members", + configuration.base_path, + team_slug = crate::apis::urlencode(p_team_slug) + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(param_value) = p_sindri_team_id { + req_builder = req_builder.header("Sindri-Team-Id", param_value.to_string()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) + } +} + +/// Remove a user from the specified team. Revokes all team API keys if the removed user was the last team member. +pub async fn team_remove_member( + configuration: &configuration::Configuration, + team_remove_member_input: models::TeamRemoveMemberInput, + sindri_team_id: Option<&str>, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_team_remove_member_input = team_remove_member_input; + let p_sindri_team_id = sindri_team_id; + + let uri_str = format!("{}/api/v1/team/remove-member", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(param_value) = p_sindri_team_id { + req_builder = req_builder.header("Sindri-Team-Id", param_value.to_string()); + } + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; + req_builder = req_builder.json(&p_team_remove_member_input); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } @@ -1252,38 +1436,34 @@ pub async fn team_me( pub async fn user_me_with_jwt_auth( configuration: &configuration::Configuration, ) -> Result> { - let local_var_configuration = configuration; + let uri_str = format!("{}/api/v1/user/me", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/api/v1/user/me", local_var_configuration.base_path); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } diff --git a/openapi/src/apis/mod.rs b/openapi/src/apis/mod.rs index 52d4557..18c0d9d 100644 --- a/openapi/src/apis/mod.rs +++ b/openapi/src/apis/mod.rs @@ -103,10 +103,8 @@ pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String pub mod authorization_api; pub mod circuits_api; -#[allow(dead_code)] -mod internal_api; +pub mod internal_api; pub mod proofs_api; -pub use internal_api::{ - circuit_download, circuit_status, proof_status, CircuitStatusError, ProofStatusError, -}; +pub mod token_api; + pub mod configuration; diff --git a/openapi/src/apis/proofs_api.rs b/openapi/src/apis/proofs_api.rs index b38a2e4..a357b6c 100644 --- a/openapi/src/apis/proofs_api.rs +++ b/openapi/src/apis/proofs_api.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize}; #[serde(untagged)] pub enum ProofDeleteError { Status404(models::ProofDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), UnknownValue(serde_json::Value), } @@ -27,7 +27,7 @@ pub enum ProofDeleteError { #[serde(untagged)] pub enum ProofDetailError { Status404(models::ProofDoesNotExistResponse), - Status500(models::ForgeInternalErrorResponse), + Status500(models::SindriInternalErrorResponse), Status501(models::ComingSoonResponse), UnknownValue(serde_json::Value), } @@ -37,115 +37,108 @@ pub async fn proof_delete( configuration: &configuration::Configuration, proof_id: &str, ) -> Result> { - let local_var_configuration = configuration; + // add a prefix to parameters to efficiently prevent name collisions + let p_proof_id = proof_id; - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + let uri_str = format!( "{}/api/v1/proof/{proof_id}/delete", - local_var_configuration.base_path, - proof_id = crate::apis::urlencode(proof_id) + configuration.base_path, + proof_id = crate::apis::urlencode(p_proof_id) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + let mut req_builder = configuration + .client + .request(reqwest::Method::DELETE, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// Get info for a specific proof. pub async fn proof_detail( configuration: &configuration::Configuration, - proof_id: &str, + proof_id: Option<&str>, include_proof: Option, include_public: Option, include_smart_contract_calldata: Option, include_verification_key: Option, ) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!( + // add a prefix to parameters to efficiently prevent name collisions + let p_proof_id = proof_id; + let p_include_proof = include_proof; + let p_include_public = include_public; + let p_include_smart_contract_calldata = include_smart_contract_calldata; + let p_include_verification_key = include_verification_key; + + let uri_str = format!( "{}/api/v1/proof/{proof_id}/detail", - local_var_configuration.base_path, - proof_id = crate::apis::urlencode(proof_id) + configuration.base_path, + proof_id = crate::apis::urlencode(p_proof_id.unwrap()) ); - let mut local_var_req_builder = - local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref local_var_str) = include_proof { - local_var_req_builder = - local_var_req_builder.query(&[("include_proof", &local_var_str.to_string())]); + if let Some(ref param_value) = p_include_proof { + req_builder = req_builder.query(&[("include_proof", ¶m_value.to_string())]); } - if let Some(ref local_var_str) = include_public { - local_var_req_builder = - local_var_req_builder.query(&[("include_public", &local_var_str.to_string())]); + if let Some(ref param_value) = p_include_public { + req_builder = req_builder.query(&[("include_public", ¶m_value.to_string())]); } - if let Some(ref local_var_str) = include_smart_contract_calldata { - local_var_req_builder = local_var_req_builder.query(&[( - "include_smart_contract_calldata", - &local_var_str.to_string(), - )]); + if let Some(ref param_value) = p_include_smart_contract_calldata { + req_builder = + req_builder.query(&[("include_smart_contract_calldata", ¶m_value.to_string())]); } - if let Some(ref local_var_str) = include_verification_key { - local_var_req_builder = local_var_req_builder - .query(&[("include_verification_key", &local_var_str.to_string())]); + if let Some(ref param_value) = p_include_verification_key { + req_builder = req_builder.query(&[("include_verification_key", ¶m_value.to_string())]); } - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = - local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); }; - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = - serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { - status: local_var_status, - content: local_var_content, - entity: local_var_entity, - }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } diff --git a/openapi/src/apis/token_api.rs b/openapi/src/apis/token_api.rs index d7c3cc0..4bfe786 100644 --- a/openapi/src/apis/token_api.rs +++ b/openapi/src/apis/token_api.rs @@ -1,19 +1,17 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 * - * The version of the OpenAPI document: v1.14.5 - * * Generated by: https://openapi-generator.tech */ - +use super::{configuration, Error}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration}; - /// struct for typed errors of method [`jwt_token_generate`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -37,89 +35,111 @@ pub enum JwtTokenVerifyError { UnknownValue(serde_json::Value), } - /// Override the ninja_jwt default `obtain_token` method in order to add email verification check before generating a token. -pub async fn jwt_token_generate(configuration: &configuration::Configuration, token_obtain_pair_input_schema: models::TokenObtainPairInputSchema) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/api/token/pair", local_var_configuration.base_path); - let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); +pub async fn jwt_token_generate( + configuration: &configuration::Configuration, + token_obtain_pair_input_schema: models::TokenObtainPairInputSchema, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_token_obtain_pair_input_schema = token_obtain_pair_input_schema; + + let uri_str = format!("{}/api/token/pair", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - local_var_req_builder = local_var_req_builder.json(&token_obtain_pair_input_schema); + req_builder = req_builder.json(&p_token_obtain_pair_input_schema); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn jwt_token_refresh(configuration: &configuration::Configuration, token_refresh_input_schema: models::TokenRefreshInputSchema) -> Result> { - let local_var_configuration = configuration; +pub async fn jwt_token_refresh( + configuration: &configuration::Configuration, + token_refresh_input_schema: models::TokenRefreshInputSchema, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_token_refresh_input_schema = token_refresh_input_schema; - let local_var_client = &local_var_configuration.client; + let uri_str = format!("{}/api/token/refresh", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); - let local_var_uri_str = format!("{}/api/token/refresh", local_var_configuration.base_path); - let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - local_var_req_builder = local_var_req_builder.json(&token_refresh_input_schema); + req_builder = req_builder.json(&p_token_refresh_input_schema); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn jwt_token_verify(configuration: &configuration::Configuration, token_verify_input_schema: models::TokenVerifyInputSchema) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; +pub async fn jwt_token_verify( + configuration: &configuration::Configuration, + token_verify_input_schema: models::TokenVerifyInputSchema, +) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_token_verify_input_schema = token_verify_input_schema; - let local_var_uri_str = format!("{}/api/token/verify", local_var_configuration.base_path); - let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + let uri_str = format!("{}/api/token/verify", configuration.base_path); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - local_var_req_builder = local_var_req_builder.json(&token_verify_input_schema); + req_builder = req_builder.json(&p_token_verify_input_schema); - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; + let status = resp.status(); - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + serde_json::from_str(&content).map_err(Error::from) } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; - Err(Error::ResponseError(local_var_error)) + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/openapi/src/models/access.rs b/openapi/src/models/access.rs index 4066c92..8e9234b 100644 --- a/openapi/src/models/access.rs +++ b/openapi/src/models/access.rs @@ -1,23 +1,20 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ use crate::models; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Access { -} +pub struct Access {} impl Access { pub fn new() -> Access { - Access { - } + Access {} } } - diff --git a/openapi/src/models/action_response.rs b/openapi/src/models/action_response.rs index 8ed2ed3..989505c 100644 --- a/openapi/src/models/action_response.rs +++ b/openapi/src/models/action_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/api_key.rs b/openapi/src/models/api_key.rs index f951914..c8da7d4 100644 --- a/openapi/src/models/api_key.rs +++ b/openapi/src/models/api_key.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// ApiKey : The API key. Will be `null` unless the key was created during the request. Keys are not stored in plaintext and can not be recovered after creation time. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApiKey { -} +pub struct ApiKey {} impl ApiKey { /// The API key. Will be `null` unless the key was created during the request. Keys are not stored in plaintext and can not be recovered after creation time. pub fn new() -> ApiKey { - ApiKey { - } + ApiKey {} } } - diff --git a/openapi/src/models/api_key_does_not_exist_response.rs b/openapi/src/models/api_key_does_not_exist_response.rs index 6eb3bfd..3debb99 100644 --- a/openapi/src/models/api_key_does_not_exist_response.rs +++ b/openapi/src/models/api_key_does_not_exist_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/api_key_error_response.rs b/openapi/src/models/api_key_error_response.rs index 804aa8f..ca2ad06 100644 --- a/openapi/src/models/api_key_error_response.rs +++ b/openapi/src/models/api_key_error_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/api_key_response.rs b/openapi/src/models/api_key_response.rs index 9578cc5..630f19e 100644 --- a/openapi/src/models/api_key_response.rs +++ b/openapi/src/models/api_key_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -14,16 +14,13 @@ use serde::{Deserialize, Serialize}; /// ApiKeyResponse : Response containing an API key. This key is used in conjunction with the APIKey model to authenticate users in the API. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ApiKeyResponse { - /// The API key. Will be `null` unless the key was created during the request. Keys are not stored in plaintext and can not be recovered after creation time. #[serde(rename = "api_key", deserialize_with = "Option::deserialize")] pub api_key: Option, /// The date that the API key was created. #[serde(rename = "date_created")] pub date_created: String, - /// The date that the API key will automatically expire. #[serde(rename = "date_expires", deserialize_with = "Option::deserialize")] pub date_expires: Option, - /// The last time that the API key was used to authenticate with the API. #[serde(rename = "date_last_used", deserialize_with = "Option::deserialize")] pub date_last_used: Option, /// The database ID for the API key. Used when deleting keys. diff --git a/openapi/src/models/apikey_id.rs b/openapi/src/models/apikey_id.rs index 0c02ebd..b5d014d 100644 --- a/openapi/src/models/apikey_id.rs +++ b/openapi/src/models/apikey_id.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/boojum_circuit_info_response.rs b/openapi/src/models/boojum_circuit_info_response.rs index 2f798b5..5d96793 100644 --- a/openapi/src/models/boojum_circuit_info_response.rs +++ b/openapi/src/models/boojum_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -31,7 +31,6 @@ pub struct BoojumCircuitInfoResponse { /// Metadata keys and values for the circuit that were specified at creation time. #[serde(rename = "meta")] pub meta: std::collections::HashMap, - /// The number of proofs submitted for this circuit. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. @@ -55,25 +54,23 @@ pub struct BoojumCircuitInfoResponse { /// URL for the avatar image of the team that owns this circuit. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this circuit. #[serde(rename = "team_slug")] pub team_slug: String, - /// Total compute time in ISO8601 format. #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] pub compute_time: Option, - /// Total compute time in seconds. #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] pub compute_time_sec: Option, /// Detailed compute times for the circuit compilation. #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] - pub compute_times: Option, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>, #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] pub file_size: Option, - /// Queue time in ISO8601 format. #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] pub queue_time: Option, - /// Queue time in seconds. #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] pub queue_time_sec: Option, /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. @@ -85,19 +82,14 @@ pub struct BoojumCircuitInfoResponse { /// Boolean indicating whether this circuit has a verification key available. #[serde(rename = "has_verification_key")] pub has_verification_key: bool, - /// The verification key of this circuit. #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] pub verification_key: Option, - /// A list of runtime warnings with UTC timestamps. #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] pub warnings: Option>, - /// The error message for a failed circuit upload. #[serde(rename = "error", deserialize_with = "Option::deserialize")] pub error: Option, - /// The field over which proofs take place. #[serde(rename = "field", deserialize_with = "Option::deserialize")] pub field: Option, - /// The zkSync Era zkEVM version tag. #[serde(rename = "zkevm_version", deserialize_with = "Option::deserialize")] pub zkevm_version: Option, } @@ -119,10 +111,11 @@ impl BoojumCircuitInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, compute_time: Option, compute_time_sec: Option, - compute_times: Option, + compute_times: Option, file_size: Option, queue_time: Option, queue_time_sec: Option, @@ -150,10 +143,15 @@ impl BoojumCircuitInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, compute_time, compute_time_sec, - compute_times, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, file_size, queue_time, queue_time_sec, diff --git a/openapi/src/models/circom_circuit_info_response.rs b/openapi/src/models/circom_circuit_info_response.rs index e13fb1b..869704b 100644 --- a/openapi/src/models/circom_circuit_info_response.rs +++ b/openapi/src/models/circom_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -31,7 +31,6 @@ pub struct CircomCircuitInfoResponse { /// Metadata keys and values for the circuit that were specified at creation time. #[serde(rename = "meta")] pub meta: std::collections::HashMap, - /// The number of proofs submitted for this circuit. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. @@ -55,25 +54,23 @@ pub struct CircomCircuitInfoResponse { /// URL for the avatar image of the team that owns this circuit. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this circuit. #[serde(rename = "team_slug")] pub team_slug: String, - /// Total compute time in ISO8601 format. #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] pub compute_time: Option, - /// Total compute time in seconds. #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] pub compute_time_sec: Option, /// Detailed compute times for the circuit compilation. #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] - pub compute_times: Option, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>, #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] pub file_size: Option, - /// Queue time in ISO8601 format. #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] pub queue_time: Option, - /// Queue time in seconds. #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] pub queue_time_sec: Option, /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. @@ -85,31 +82,24 @@ pub struct CircomCircuitInfoResponse { /// Boolean indicating whether this circuit has a verification key available. #[serde(rename = "has_verification_key")] pub has_verification_key: bool, - /// The verification key of this circuit. #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] pub verification_key: Option, - /// A list of runtime warnings with UTC timestamps. #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] pub warnings: Option>, - /// The error message for a failed circuit upload. #[serde(rename = "error", deserialize_with = "Option::deserialize")] pub error: Option, /// The elliptic curve over which the proving protocol takes place. #[serde(rename = "curve")] pub curve: String, - /// The number of constraints in the Rank-1 Constraint System (R1CS) of the circuit. #[serde(rename = "num_constraints", deserialize_with = "Option::deserialize")] pub num_constraints: Option, - /// The number of public outputs from the circuit. #[serde(rename = "num_outputs", deserialize_with = "Option::deserialize")] pub num_outputs: Option, - /// The number of private inputs for the circuit. #[serde( rename = "num_private_inputs", deserialize_with = "Option::deserialize" )] pub num_private_inputs: Option, - /// The number of public inputs for the circuit. #[serde(rename = "num_public_inputs", deserialize_with = "Option::deserialize")] pub num_public_inputs: Option, } @@ -131,10 +121,11 @@ impl CircomCircuitInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, compute_time: Option, compute_time_sec: Option, - compute_times: Option, + compute_times: Option, file_size: Option, queue_time: Option, queue_time_sec: Option, @@ -165,10 +156,15 @@ impl CircomCircuitInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, compute_time, compute_time_sec, - compute_times, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, file_size, queue_time, queue_time_sec, diff --git a/openapi/src/models/circuit_create_input.rs b/openapi/src/models/circuit_create_input.rs index 007bd81..e8bc353 100644 --- a/openapi/src/models/circuit_create_input.rs +++ b/openapi/src/models/circuit_create_input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/circuit_does_not_exist_response.rs b/openapi/src/models/circuit_does_not_exist_response.rs index 3f06ff6..196a149 100644 --- a/openapi/src/models/circuit_does_not_exist_response.rs +++ b/openapi/src/models/circuit_does_not_exist_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/circuit_id.rs b/openapi/src/models/circuit_id.rs index 7161d7c..efe15ee 100644 --- a/openapi/src/models/circuit_id.rs +++ b/openapi/src/models/circuit_id.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/circuit_info_response.rs b/openapi/src/models/circuit_info_response.rs index 3e2bae3..2f6d0d2 100644 --- a/openapi/src/models/circuit_info_response.rs +++ b/openapi/src/models/circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize}; /// CircuitInfoResponse : Response for getting circuit info. #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(untagged)] +#[serde(tag = "circuit_type")] pub enum CircuitInfoResponse { #[serde(rename = "boojum")] Boojum(Box), @@ -21,6 +21,8 @@ pub enum CircuitInfoResponse { Circom(Box), #[serde(rename = "halo2")] Halo2(Box), + #[serde(rename = "hermez")] + Hermez(Box), #[serde(rename = "gnark")] Gnark(Box), #[serde(rename = "jolt")] @@ -29,6 +31,8 @@ pub enum CircuitInfoResponse { Noir(Box), #[serde(rename = "plonky2")] Plonky2(Box), + #[serde(rename = "snarkvm")] + Snarkvm(Box), #[serde(rename = "sp1")] Sp1(Box), } diff --git a/openapi/src/models/circuit_is_not_ready_response.rs b/openapi/src/models/circuit_is_not_ready_response.rs index c6d7b0d..f8cdcf3 100644 --- a/openapi/src/models/circuit_is_not_ready_response.rs +++ b/openapi/src/models/circuit_is_not_ready_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/circuit_prove_input.rs b/openapi/src/models/circuit_prove_input.rs index 5b629c6..e36c3c6 100644 --- a/openapi/src/models/circuit_prove_input.rs +++ b/openapi/src/models/circuit_prove_input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/circuit_size.rs b/openapi/src/models/circuit_size.rs index bfdb31c..b0c7da9 100644 --- a/openapi/src/models/circuit_size.rs +++ b/openapi/src/models/circuit_size.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// CircuitSize : The number of constraints with an instantiated proving backend in the circuit. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CircuitSize { -} +pub struct CircuitSize {} impl CircuitSize { /// The number of constraints with an instantiated proving backend in the circuit. pub fn new() -> CircuitSize { - CircuitSize { - } + CircuitSize {} } } - diff --git a/openapi/src/models/circuit_status_response.rs b/openapi/src/models/circuit_status_response.rs index d5108d0..e4e416c 100644 --- a/openapi/src/models/circuit_status_response.rs +++ b/openapi/src/models/circuit_status_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/circuit_type.rs b/openapi/src/models/circuit_type.rs index 008eaa2..ce66740 100644 --- a/openapi/src/models/circuit_type.rs +++ b/openapi/src/models/circuit_type.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -23,12 +23,16 @@ pub enum CircuitType { Gnark, #[serde(rename = "halo2")] Halo2, + #[serde(rename = "hermez")] + Hermez, #[serde(rename = "jolt")] Jolt, #[serde(rename = "noir")] Noir, #[serde(rename = "plonky2")] Plonky2, + #[serde(rename = "snarkvm")] + Snarkvm, #[serde(rename = "sp1")] Sp1, } @@ -40,9 +44,11 @@ impl std::fmt::Display for CircuitType { Self::Circom => write!(f, "circom"), Self::Gnark => write!(f, "gnark"), Self::Halo2 => write!(f, "halo2"), + Self::Hermez => write!(f, "hermez"), Self::Jolt => write!(f, "jolt"), Self::Noir => write!(f, "noir"), Self::Plonky2 => write!(f, "plonky2"), + Self::Snarkvm => write!(f, "snarkvm"), Self::Sp1 => write!(f, "sp1"), } } diff --git a/openapi/src/models/coming_soon_response.rs b/openapi/src/models/coming_soon_response.rs index b3c3478..5915a53 100644 --- a/openapi/src/models/coming_soon_response.rs +++ b/openapi/src/models/coming_soon_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/compute_time_iso8601.rs b/openapi/src/models/compute_time_iso8601.rs index 6a2340e..610a759 100644 --- a/openapi/src/models/compute_time_iso8601.rs +++ b/openapi/src/models/compute_time_iso8601.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// ComputeTimeIso8601 : Total compute time in ISO8601 format. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeTimeIso8601 { -} +pub struct ComputeTimeIso8601 {} impl ComputeTimeIso8601 { /// Total compute time in ISO8601 format. pub fn new() -> ComputeTimeIso8601 { - ComputeTimeIso8601 { - } + ComputeTimeIso8601 {} } } - diff --git a/openapi/src/models/compute_time_seconds.rs b/openapi/src/models/compute_time_seconds.rs index ba20fbf..306555a 100644 --- a/openapi/src/models/compute_time_seconds.rs +++ b/openapi/src/models/compute_time_seconds.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// ComputeTimeSeconds : Total compute time in seconds. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeTimeSeconds { -} +pub struct ComputeTimeSeconds {} impl ComputeTimeSeconds { /// Total compute time in seconds. pub fn new() -> ComputeTimeSeconds { - ComputeTimeSeconds { - } + ComputeTimeSeconds {} } } - diff --git a/openapi/src/models/compute_times.rs b/openapi/src/models/compute_times.rs index 25e51e0..0c41144 100644 --- a/openapi/src/models/compute_times.rs +++ b/openapi/src/models/compute_times.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// ComputeTimes : Detailed compute times for the circuit compilation. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeTimes { -} +pub struct ComputeTimes {} impl ComputeTimes { /// Detailed compute times for the circuit compilation. pub fn new() -> ComputeTimes { - ComputeTimes { - } + ComputeTimes {} } } - diff --git a/openapi/src/models/compute_times_1.rs b/openapi/src/models/compute_times_1.rs index ef95ca8..0b5ab39 100644 --- a/openapi/src/models/compute_times_1.rs +++ b/openapi/src/models/compute_times_1.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// ComputeTimes1 : Detailed compute times for the proof generation. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeTimes1 { -} +pub struct ComputeTimes1 {} impl ComputeTimes1 { /// Detailed compute times for the proof generation. pub fn new() -> ComputeTimes1 { - ComputeTimes1 { - } + ComputeTimes1 {} } } - diff --git a/openapi/src/models/contract_code.rs b/openapi/src/models/contract_code.rs index 367573c..121b961 100644 --- a/openapi/src/models/contract_code.rs +++ b/openapi/src/models/contract_code.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// ContractCode : The smart contract verifier code. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContractCode { -} +pub struct ContractCode {} impl ContractCode { /// The smart contract verifier code. pub fn new() -> ContractCode { - ContractCode { - } + ContractCode {} } } - diff --git a/openapi/src/models/date_created_after.rs b/openapi/src/models/date_created_after.rs index 862e808..ce47b28 100644 --- a/openapi/src/models/date_created_after.rs +++ b/openapi/src/models/date_created_after.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// DateCreatedAfter : Return proofs created after this date. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DateCreatedAfter { -} +pub struct DateCreatedAfter {} impl DateCreatedAfter { /// Return proofs created after this date. pub fn new() -> DateCreatedAfter { - DateCreatedAfter { - } + DateCreatedAfter {} } } - diff --git a/openapi/src/models/date_created_before.rs b/openapi/src/models/date_created_before.rs index d4e751a..93d680c 100644 --- a/openapi/src/models/date_created_before.rs +++ b/openapi/src/models/date_created_before.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// DateCreatedBefore : Return proofs created before this date. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DateCreatedBefore { -} +pub struct DateCreatedBefore {} impl DateCreatedBefore { /// Return proofs created before this date. pub fn new() -> DateCreatedBefore { - DateCreatedBefore { - } + DateCreatedBefore {} } } - diff --git a/openapi/src/models/date_expires.rs b/openapi/src/models/date_expires.rs index 6a5be27..3e3658d 100644 --- a/openapi/src/models/date_expires.rs +++ b/openapi/src/models/date_expires.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// DateExpires : The date that the API key will automatically expire. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DateExpires { -} +pub struct DateExpires {} impl DateExpires { /// The date that the API key will automatically expire. pub fn new() -> DateExpires { - DateExpires { - } + DateExpires {} } } - diff --git a/openapi/src/models/date_last_used.rs b/openapi/src/models/date_last_used.rs index cf5c973..9d6cff8 100644 --- a/openapi/src/models/date_last_used.rs +++ b/openapi/src/models/date_last_used.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// DateLastUsed : The last time that the API key was used to authenticate with the API. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DateLastUsed { -} +pub struct DateLastUsed {} impl DateLastUsed { /// The last time that the API key was used to authenticate with the API. pub fn new() -> DateLastUsed { - DateLastUsed { - } + DateLastUsed {} } } - diff --git a/openapi/src/models/error.rs b/openapi/src/models/error.rs index 5fa750d..5761807 100644 --- a/openapi/src/models/error.rs +++ b/openapi/src/models/error.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Error : The error message for a failed circuit upload. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Error { -} +pub struct Error {} impl Error { /// The error message for a failed circuit upload. pub fn new() -> Error { - Error { - } + Error {} } } - diff --git a/openapi/src/models/error_1.rs b/openapi/src/models/error_1.rs index 9c4a90a..6fb169a 100644 --- a/openapi/src/models/error_1.rs +++ b/openapi/src/models/error_1.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Error1 : The error message for a failed proof. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Error1 { -} +pub struct Error1 {} impl Error1 { /// The error message for a failed proof. pub fn new() -> Error1 { - Error1 { - } + Error1 {} } } - diff --git a/openapi/src/models/exception_id.rs b/openapi/src/models/exception_id.rs index ae6751d..4bc253f 100644 --- a/openapi/src/models/exception_id.rs +++ b/openapi/src/models/exception_id.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/field.rs b/openapi/src/models/field.rs index ee76f84..0fcf7c5 100644 --- a/openapi/src/models/field.rs +++ b/openapi/src/models/field.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Field : The field over which proofs take place. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Field { -} +pub struct Field {} impl Field { /// The field over which proofs take place. pub fn new() -> Field { - Field { - } + Field {} } } - diff --git a/openapi/src/models/file_size.rs b/openapi/src/models/file_size.rs index 8c926f1..1718fc3 100644 --- a/openapi/src/models/file_size.rs +++ b/openapi/src/models/file_size.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// FileSize : Total size of stored file(s) in bytes. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct FileSize { -} +pub struct FileSize {} impl FileSize { /// Total size of stored file(s) in bytes. pub fn new() -> FileSize { - FileSize { - } + FileSize {} } } - diff --git a/openapi/src/models/gnark_circuit_info_response.rs b/openapi/src/models/gnark_circuit_info_response.rs index 3bdba16..3f103e7 100644 --- a/openapi/src/models/gnark_circuit_info_response.rs +++ b/openapi/src/models/gnark_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -31,7 +31,6 @@ pub struct GnarkCircuitInfoResponse { /// Metadata keys and values for the circuit that were specified at creation time. #[serde(rename = "meta")] pub meta: std::collections::HashMap, - /// The number of proofs submitted for this circuit. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. @@ -55,25 +54,23 @@ pub struct GnarkCircuitInfoResponse { /// URL for the avatar image of the team that owns this circuit. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this circuit. #[serde(rename = "team_slug")] pub team_slug: String, - /// Total compute time in ISO8601 format. #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] pub compute_time: Option, - /// Total compute time in seconds. #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] pub compute_time_sec: Option, /// Detailed compute times for the circuit compilation. #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] - pub compute_times: Option, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>, #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] pub file_size: Option, - /// Queue time in ISO8601 format. #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] pub queue_time: Option, - /// Queue time in seconds. #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] pub queue_time_sec: Option, /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. @@ -85,13 +82,10 @@ pub struct GnarkCircuitInfoResponse { /// Boolean indicating whether this circuit has a verification key available. #[serde(rename = "has_verification_key")] pub has_verification_key: bool, - /// The verification key of this circuit. #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] pub verification_key: Option, - /// A list of runtime warnings with UTC timestamps. #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] pub warnings: Option>, - /// The error message for a failed circuit upload. #[serde(rename = "error", deserialize_with = "Option::deserialize")] pub error: Option, /// The elliptic curve over which the proving protocol takes place. @@ -119,10 +113,11 @@ impl GnarkCircuitInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, compute_time: Option, compute_time_sec: Option, - compute_times: Option, + compute_times: Option, file_size: Option, queue_time: Option, queue_time_sec: Option, @@ -150,10 +145,15 @@ impl GnarkCircuitInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, compute_time, compute_time_sec, - compute_times, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, file_size, queue_time, queue_time_sec, diff --git a/openapi/src/models/halo2_circuit_info_response.rs b/openapi/src/models/halo2_circuit_info_response.rs index a109bd2..4832319 100644 --- a/openapi/src/models/halo2_circuit_info_response.rs +++ b/openapi/src/models/halo2_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -31,7 +31,6 @@ pub struct Halo2CircuitInfoResponse { /// Metadata keys and values for the circuit that were specified at creation time. #[serde(rename = "meta")] pub meta: std::collections::HashMap, - /// The number of proofs submitted for this circuit. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. @@ -55,25 +54,23 @@ pub struct Halo2CircuitInfoResponse { /// URL for the avatar image of the team that owns this circuit. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this circuit. #[serde(rename = "team_slug")] pub team_slug: String, - /// Total compute time in ISO8601 format. #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] pub compute_time: Option, - /// Total compute time in seconds. #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] pub compute_time_sec: Option, /// Detailed compute times for the circuit compilation. #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] - pub compute_times: Option, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>, #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] pub file_size: Option, - /// Queue time in ISO8601 format. #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] pub queue_time: Option, - /// Queue time in seconds. #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] pub queue_time_sec: Option, /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. @@ -85,13 +82,10 @@ pub struct Halo2CircuitInfoResponse { /// Boolean indicating whether this circuit has a verification key available. #[serde(rename = "has_verification_key")] pub has_verification_key: bool, - /// The verification key of this circuit. #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] pub verification_key: Option, - /// A list of runtime warnings with UTC timestamps. #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] pub warnings: Option>, - /// The error message for a failed circuit upload. #[serde(rename = "error", deserialize_with = "Option::deserialize")] pub error: Option, /// The path to the circuit struct definition. This is specified during creation in the included sindri.json file. @@ -125,10 +119,11 @@ impl Halo2CircuitInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, compute_time: Option, compute_time_sec: Option, - compute_times: Option, + compute_times: Option, file_size: Option, queue_time: Option, queue_time_sec: Option, @@ -158,10 +153,15 @@ impl Halo2CircuitInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, compute_time, compute_time_sec, - compute_times, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, file_size, queue_time, queue_time_sec, diff --git a/openapi/src/models/hermez_circuit_info_response.rs b/openapi/src/models/hermez_circuit_info_response.rs new file mode 100644 index 0000000..4f57cc5 --- /dev/null +++ b/openapi/src/models/hermez_circuit_info_response.rs @@ -0,0 +1,176 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// HermezCircuitInfoResponse : Response for getting Polygon Hermez circuit info. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct HermezCircuitInfoResponse { + /// A unique identifier generated for the circuit. UUID4 format. + #[serde(rename = "circuit_id")] + pub circuit_id: String, + #[serde(rename = "circuit_name")] + pub circuit_name: String, + /// The name of the project. This can be used in place of circuit_id for proving. This is specified during creation in the included sindri.json file. If the project is renamed, this will be the new name of the project, not the original name that was included in the sindri.json file. + #[serde(rename = "project_name")] + pub project_name: String, + /// The development framework used to write the circuit. This is specified during creation in the included sindri.json file. + #[serde(rename = "circuit_type")] + pub circuit_type: CircuitType, + /// The UTC datetime the circuit was uploaded in ISO8601 format. + #[serde(rename = "date_created")] + pub date_created: String, + /// Metadata keys and values for the circuit that were specified at creation time. + #[serde(rename = "meta")] + pub meta: std::collections::HashMap, + #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] + pub num_proofs: Option, + /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. + #[serde(rename = "proving_scheme")] + pub proving_scheme: String, + /// Whether the circuit is public. Public circuits can be used by any user. + #[serde(rename = "public")] + pub public: bool, + /// The status of the circuit job. + #[serde(rename = "status")] + pub status: models::JobStatus, + /// The job is finished processing and waiting/polling can be terminated. + #[serde(rename = "finished_processing")] + pub finished_processing: bool, + /// Tags for the circuit. + #[serde(rename = "tags")] + pub tags: Vec, + /// The name of the team that owns this circuit. + #[serde(rename = "team")] + pub team: String, + /// URL for the avatar image of the team that owns this circuit. + #[serde(rename = "team_avatar_url")] + pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, + /// The slug of the team that owns this circuit. + #[serde(rename = "team_slug")] + pub team_slug: String, + #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] + pub compute_time: Option, + #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] + pub compute_time_sec: Option, + /// Detailed compute times for the circuit compilation. + #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] + pub compute_times: Option>, + #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] + pub file_size: Option, + #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] + pub queue_time: Option, + #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] + pub queue_time_sec: Option, + /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. + #[serde(rename = "uploaded_file_name")] + pub uploaded_file_name: String, + /// Boolean indicating whether this circuit has a smart contract verifier available. + #[serde(rename = "has_smart_contract_verifier")] + pub has_smart_contract_verifier: bool, + /// Boolean indicating whether this circuit has a verification key available. + #[serde(rename = "has_verification_key")] + pub has_verification_key: bool, + #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] + pub verification_key: Option, + #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] + pub warnings: Option>, + #[serde(rename = "error", deserialize_with = "Option::deserialize")] + pub error: Option, + #[serde(rename = "zkevm_version", deserialize_with = "Option::deserialize")] + pub zkevm_version: Option, +} + +impl HermezCircuitInfoResponse { + /// Response for getting Polygon Hermez circuit info. + pub fn new( + circuit_id: String, + circuit_name: String, + project_name: String, + circuit_type: CircuitType, + date_created: String, + meta: std::collections::HashMap, + num_proofs: Option, + proving_scheme: String, + public: bool, + status: models::JobStatus, + finished_processing: bool, + tags: Vec, + team: String, + team_avatar_url: String, + team_name: String, + team_slug: String, + compute_time: Option, + compute_time_sec: Option, + compute_times: Option, + file_size: Option, + queue_time: Option, + queue_time_sec: Option, + uploaded_file_name: String, + has_smart_contract_verifier: bool, + has_verification_key: bool, + verification_key: Option, + warnings: Option>, + error: Option, + zkevm_version: Option, + ) -> HermezCircuitInfoResponse { + HermezCircuitInfoResponse { + circuit_id, + circuit_name, + project_name, + circuit_type, + date_created, + meta, + num_proofs, + proving_scheme, + public, + status, + finished_processing, + tags, + team, + team_avatar_url, + team_name, + team_slug, + compute_time, + compute_time_sec, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, + file_size, + queue_time, + queue_time_sec, + uploaded_file_name, + has_smart_contract_verifier, + has_verification_key, + verification_key, + warnings, + error, + zkevm_version, + } + } +} +/// The development framework used to write the circuit. This is specified during creation in the included sindri.json file. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CircuitType { + #[serde(rename = "hermez")] + Hermez, +} + +impl Default for CircuitType { + fn default() -> CircuitType { + Self::Hermez + } +} diff --git a/openapi/src/models/input.rs b/openapi/src/models/input.rs index 6b3844d..3c01d5c 100644 --- a/openapi/src/models/input.rs +++ b/openapi/src/models/input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/is_public.rs b/openapi/src/models/is_public.rs index 8cd1c10..0db60ed 100644 --- a/openapi/src/models/is_public.rs +++ b/openapi/src/models/is_public.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// IsPublic : Whether the project is public. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct IsPublic { -} +pub struct IsPublic {} impl IsPublic { /// Whether the project is public. pub fn new() -> IsPublic { - IsPublic { - } + IsPublic {} } } - diff --git a/openapi/src/models/job_status.rs b/openapi/src/models/job_status.rs index 91666d5..04c9af0 100644 --- a/openapi/src/models/job_status.rs +++ b/openapi/src/models/job_status.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/jolt_circuit_info_response.rs b/openapi/src/models/jolt_circuit_info_response.rs index c085058..0361714 100644 --- a/openapi/src/models/jolt_circuit_info_response.rs +++ b/openapi/src/models/jolt_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -31,7 +31,6 @@ pub struct JoltCircuitInfoResponse { /// Metadata keys and values for the circuit that were specified at creation time. #[serde(rename = "meta")] pub meta: std::collections::HashMap, - /// The number of proofs submitted for this circuit. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. @@ -55,25 +54,23 @@ pub struct JoltCircuitInfoResponse { /// URL for the avatar image of the team that owns this circuit. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this circuit. #[serde(rename = "team_slug")] pub team_slug: String, - /// Total compute time in ISO8601 format. #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] pub compute_time: Option, - /// Total compute time in seconds. #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] pub compute_time_sec: Option, /// Detailed compute times for the circuit compilation. #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] - pub compute_times: Option, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>, #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] pub file_size: Option, - /// Queue time in ISO8601 format. #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] pub queue_time: Option, - /// Queue time in seconds. #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] pub queue_time_sec: Option, /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. @@ -85,13 +82,10 @@ pub struct JoltCircuitInfoResponse { /// Boolean indicating whether this circuit has a verification key available. #[serde(rename = "has_verification_key")] pub has_verification_key: bool, - /// The verification key of this circuit. #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] pub verification_key: Option, - /// A list of runtime warnings with UTC timestamps. #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] pub warnings: Option>, - /// The error message for a failed circuit upload. #[serde(rename = "error", deserialize_with = "Option::deserialize")] pub error: Option, /// The commitment scheme used in the Jolt zkVM prover. @@ -128,10 +122,11 @@ impl JoltCircuitInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, compute_time: Option, compute_time_sec: Option, - compute_times: Option, + compute_times: Option, file_size: Option, queue_time: Option, queue_time_sec: Option, @@ -162,10 +157,15 @@ impl JoltCircuitInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, compute_time, compute_time_sec, - compute_times, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, file_size, queue_time, queue_time_sec, diff --git a/openapi/src/models/jwt_token_error_response.rs b/openapi/src/models/jwt_token_error_response.rs index 842d033..d659359 100644 --- a/openapi/src/models/jwt_token_error_response.rs +++ b/openapi/src/models/jwt_token_error_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/mod.rs b/openapi/src/models/mod.rs index e7d44a2..ba528a7 100644 --- a/openapi/src/models/mod.rs +++ b/openapi/src/models/mod.rs @@ -32,16 +32,12 @@ pub mod coming_soon_response; pub use self::coming_soon_response::ComingSoonResponse; pub mod exception_id; pub use self::exception_id::ExceptionId; -pub mod forge_internal_error_response; -pub use self::forge_internal_error_response::ForgeInternalErrorResponse; -pub mod forge_invalid_upload_response; -pub use self::forge_invalid_upload_response::ForgeInvalidUploadResponse; -pub mod forge_value_error_response; -pub use self::forge_value_error_response::ForgeValueErrorResponse; pub mod gnark_circuit_info_response; pub use self::gnark_circuit_info_response::GnarkCircuitInfoResponse; pub mod halo2_circuit_info_response; pub use self::halo2_circuit_info_response::Halo2CircuitInfoResponse; +pub mod hermez_circuit_info_response; +pub use self::hermez_circuit_info_response::HermezCircuitInfoResponse; pub mod input; pub use self::input::Input; pub mod job_status; @@ -92,20 +88,36 @@ pub mod proof_list_input; pub use self::proof_list_input::ProofListInput; pub mod proof_status_response; pub use self::proof_status_response::ProofStatusResponse; +pub mod sindri_internal_error_response; +pub use self::sindri_internal_error_response::SindriInternalErrorResponse; +pub mod sindri_invalid_upload_response; +pub use self::sindri_invalid_upload_response::SindriInvalidUploadResponse; +pub mod sindri_value_error_response; +pub use self::sindri_value_error_response::SindriValueErrorResponse; pub mod smart_contract_verifier_response; pub use self::smart_contract_verifier_response::SmartContractVerifierResponse; +pub mod snarkvm_circuit_info_response; +pub use self::snarkvm_circuit_info_response::SnarkvmCircuitInfoResponse; pub mod sp1_circuit_info_response; pub use self::sp1_circuit_info_response::Sp1CircuitInfoResponse; +pub mod team_already_exists_response; +pub use self::team_already_exists_response::TeamAlreadyExistsResponse; +pub mod team_create_input; +pub use self::team_create_input::TeamCreateInput; pub mod team_detail; pub use self::team_detail::TeamDetail; pub mod team_does_not_exist_response; pub use self::team_does_not_exist_response::TeamDoesNotExistResponse; +pub mod team_invite_input; +pub use self::team_invite_input::TeamInviteInput; pub mod team_me_response; pub use self::team_me_response::TeamMeResponse; pub mod team_member_detail; pub use self::team_member_detail::TeamMemberDetail; pub mod team_members_response; pub use self::team_members_response::TeamMembersResponse; +pub mod team_remove_member_input; +pub use self::team_remove_member_input::TeamRemoveMemberInput; pub mod token_obtain_pair_input_schema; pub use self::token_obtain_pair_input_schema::TokenObtainPairInputSchema; pub mod token_obtain_pair_output_schema; diff --git a/openapi/src/models/name.rs b/openapi/src/models/name.rs index b56e2c7..1cb5362 100644 --- a/openapi/src/models/name.rs +++ b/openapi/src/models/name.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Name : The name of the project. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Name { -} +pub struct Name {} impl Name { /// The name of the project. pub fn new() -> Name { - Name { - } + Name {} } } - diff --git a/openapi/src/models/noir_circuit_info_response.rs b/openapi/src/models/noir_circuit_info_response.rs index be9ee1b..887b15d 100644 --- a/openapi/src/models/noir_circuit_info_response.rs +++ b/openapi/src/models/noir_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -31,7 +31,6 @@ pub struct NoirCircuitInfoResponse { /// Metadata keys and values for the circuit that were specified at creation time. #[serde(rename = "meta")] pub meta: std::collections::HashMap, - /// The number of proofs submitted for this circuit. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. @@ -55,25 +54,23 @@ pub struct NoirCircuitInfoResponse { /// URL for the avatar image of the team that owns this circuit. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this circuit. #[serde(rename = "team_slug")] pub team_slug: String, - /// Total compute time in ISO8601 format. #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] pub compute_time: Option, - /// Total compute time in seconds. #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] pub compute_time_sec: Option, /// Detailed compute times for the circuit compilation. #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] - pub compute_times: Option, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>, #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] pub file_size: Option, - /// Queue time in ISO8601 format. #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] pub queue_time: Option, - /// Queue time in seconds. #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] pub queue_time_sec: Option, /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. @@ -85,19 +82,14 @@ pub struct NoirCircuitInfoResponse { /// Boolean indicating whether this circuit has a verification key available. #[serde(rename = "has_verification_key")] pub has_verification_key: bool, - /// The verification key of this circuit. #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] pub verification_key: Option, - /// A list of runtime warnings with UTC timestamps. #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] pub warnings: Option>, - /// The error message for a failed circuit upload. #[serde(rename = "error", deserialize_with = "Option::deserialize")] pub error: Option, - /// The number of opcodes in the intermediate representation. #[serde(rename = "acir_opcodes", deserialize_with = "Option::deserialize")] pub acir_opcodes: Option, - /// The number of constraints with an instantiated proving backend in the circuit. #[serde(rename = "circuit_size", deserialize_with = "Option::deserialize")] pub circuit_size: Option, /// The elliptic curve over which the proving protocol takes place. @@ -128,10 +120,11 @@ impl NoirCircuitInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, compute_time: Option, compute_time_sec: Option, - compute_times: Option, + compute_times: Option, file_size: Option, queue_time: Option, queue_time_sec: Option, @@ -162,10 +155,15 @@ impl NoirCircuitInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, compute_time, compute_time_sec, - compute_times, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, file_size, queue_time, queue_time_sec, diff --git a/openapi/src/models/num_acir_opcodes.rs b/openapi/src/models/num_acir_opcodes.rs index c88cd57..9e5d78d 100644 --- a/openapi/src/models/num_acir_opcodes.rs +++ b/openapi/src/models/num_acir_opcodes.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// NumAcirOpcodes : The number of opcodes in the intermediate representation. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NumAcirOpcodes { -} +pub struct NumAcirOpcodes {} impl NumAcirOpcodes { /// The number of opcodes in the intermediate representation. pub fn new() -> NumAcirOpcodes { - NumAcirOpcodes { - } + NumAcirOpcodes {} } } - diff --git a/openapi/src/models/num_constraints.rs b/openapi/src/models/num_constraints.rs index 89328ca..7345b81 100644 --- a/openapi/src/models/num_constraints.rs +++ b/openapi/src/models/num_constraints.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// NumConstraints : The number of constraints in the Rank-1 Constraint System (R1CS) of the circuit. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NumConstraints { -} +pub struct NumConstraints {} impl NumConstraints { /// The number of constraints in the Rank-1 Constraint System (R1CS) of the circuit. pub fn new() -> NumConstraints { - NumConstraints { - } + NumConstraints {} } } - diff --git a/openapi/src/models/num_outputs.rs b/openapi/src/models/num_outputs.rs index 32c24dc..0aacf18 100644 --- a/openapi/src/models/num_outputs.rs +++ b/openapi/src/models/num_outputs.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// NumOutputs : The number of public outputs from the circuit. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NumOutputs { -} +pub struct NumOutputs {} impl NumOutputs { /// The number of public outputs from the circuit. pub fn new() -> NumOutputs { - NumOutputs { - } + NumOutputs {} } } - diff --git a/openapi/src/models/num_private_inputs.rs b/openapi/src/models/num_private_inputs.rs index ea8af72..2660a7e 100644 --- a/openapi/src/models/num_private_inputs.rs +++ b/openapi/src/models/num_private_inputs.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// NumPrivateInputs : The number of private inputs for the circuit. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NumPrivateInputs { -} +pub struct NumPrivateInputs {} impl NumPrivateInputs { /// The number of private inputs for the circuit. pub fn new() -> NumPrivateInputs { - NumPrivateInputs { - } + NumPrivateInputs {} } } - diff --git a/openapi/src/models/num_proofs.rs b/openapi/src/models/num_proofs.rs index 7328b6f..dc19041 100644 --- a/openapi/src/models/num_proofs.rs +++ b/openapi/src/models/num_proofs.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// NumProofs : The number of proofs submitted by the team. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NumProofs { -} +pub struct NumProofs {} impl NumProofs { /// The number of proofs submitted by the team. pub fn new() -> NumProofs { - NumProofs { - } + NumProofs {} } } - diff --git a/openapi/src/models/num_public_inputs.rs b/openapi/src/models/num_public_inputs.rs index c787f8d..d34c0a4 100644 --- a/openapi/src/models/num_public_inputs.rs +++ b/openapi/src/models/num_public_inputs.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// NumPublicInputs : The number of public inputs for the circuit. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NumPublicInputs { -} +pub struct NumPublicInputs {} impl NumPublicInputs { /// The number of public inputs for the circuit. pub fn new() -> NumPublicInputs { - NumPublicInputs { - } + NumPublicInputs {} } } - diff --git a/openapi/src/models/number_of_proofs.rs b/openapi/src/models/number_of_proofs.rs index 232d714..5efe8b4 100644 --- a/openapi/src/models/number_of_proofs.rs +++ b/openapi/src/models/number_of_proofs.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// NumberOfProofs : The number of proofs submitted for this circuit. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NumberOfProofs { -} +pub struct NumberOfProofs {} impl NumberOfProofs { /// The number of proofs submitted for this circuit. pub fn new() -> NumberOfProofs { - NumberOfProofs { - } + NumberOfProofs {} } } - diff --git a/openapi/src/models/number_of_proofs_1.rs b/openapi/src/models/number_of_proofs_1.rs index 9558885..a46a4f7 100644 --- a/openapi/src/models/number_of_proofs_1.rs +++ b/openapi/src/models/number_of_proofs_1.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// NumberOfProofs1 : The number of proofs created for this project. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NumberOfProofs1 { -} +pub struct NumberOfProofs1 {} impl NumberOfProofs1 { /// The number of proofs created for this project. pub fn new() -> NumberOfProofs1 { - NumberOfProofs1 { - } + NumberOfProofs1 {} } } - diff --git a/openapi/src/models/obtain_apikey_input.rs b/openapi/src/models/obtain_apikey_input.rs index 710038d..602dcce 100644 --- a/openapi/src/models/obtain_apikey_input.rs +++ b/openapi/src/models/obtain_apikey_input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/paged_circuit_info_response.rs b/openapi/src/models/paged_circuit_info_response.rs index 264839e..12992b1 100644 --- a/openapi/src/models/paged_circuit_info_response.rs +++ b/openapi/src/models/paged_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/paged_project_info_response.rs b/openapi/src/models/paged_project_info_response.rs index 42f3627..95ef1de 100644 --- a/openapi/src/models/paged_project_info_response.rs +++ b/openapi/src/models/paged_project_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/paged_proof_info_response.rs b/openapi/src/models/paged_proof_info_response.rs index 647b175..018ee70 100644 --- a/openapi/src/models/paged_proof_info_response.rs +++ b/openapi/src/models/paged_proof_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/password_change_input.rs b/openapi/src/models/password_change_input.rs index 4579e98..913f99d 100644 --- a/openapi/src/models/password_change_input.rs +++ b/openapi/src/models/password_change_input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/plonky2_circuit_info_response.rs b/openapi/src/models/plonky2_circuit_info_response.rs index 8c0b8b5..2e2ab5e 100644 --- a/openapi/src/models/plonky2_circuit_info_response.rs +++ b/openapi/src/models/plonky2_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -31,7 +31,6 @@ pub struct Plonky2CircuitInfoResponse { /// Metadata keys and values for the circuit that were specified at creation time. #[serde(rename = "meta")] pub meta: std::collections::HashMap, - /// The number of proofs submitted for this circuit. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. @@ -55,25 +54,23 @@ pub struct Plonky2CircuitInfoResponse { /// URL for the avatar image of the team that owns this circuit. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this circuit. #[serde(rename = "team_slug")] pub team_slug: String, - /// Total compute time in ISO8601 format. #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] pub compute_time: Option, - /// Total compute time in seconds. #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] pub compute_time_sec: Option, /// Detailed compute times for the circuit compilation. #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] - pub compute_times: Option, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>, #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] pub file_size: Option, - /// Queue time in ISO8601 format. #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] pub queue_time: Option, - /// Queue time in seconds. #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] pub queue_time_sec: Option, /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. @@ -85,13 +82,10 @@ pub struct Plonky2CircuitInfoResponse { /// Boolean indicating whether this circuit has a verification key available. #[serde(rename = "has_verification_key")] pub has_verification_key: bool, - /// The verification key of this circuit. #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] pub verification_key: Option, - /// A list of runtime warnings with UTC timestamps. #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] pub warnings: Option>, - /// The error message for a failed circuit upload. #[serde(rename = "error", deserialize_with = "Option::deserialize")] pub error: Option, /// The path to the circuit struct definition. This is specified during creation in the included sindri.json file. @@ -119,10 +113,11 @@ impl Plonky2CircuitInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, compute_time: Option, compute_time_sec: Option, - compute_times: Option, + compute_times: Option, file_size: Option, queue_time: Option, queue_time_sec: Option, @@ -150,10 +145,15 @@ impl Plonky2CircuitInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, compute_time, compute_time_sec, - compute_times, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, file_size, queue_time, queue_time_sec, diff --git a/openapi/src/models/project_does_not_exist_response.rs b/openapi/src/models/project_does_not_exist_response.rs index bc5b111..5fb13de 100644 --- a/openapi/src/models/project_does_not_exist_response.rs +++ b/openapi/src/models/project_does_not_exist_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/project_info_response.rs b/openapi/src/models/project_info_response.rs index 1115b26..a565d1c 100644 --- a/openapi/src/models/project_info_response.rs +++ b/openapi/src/models/project_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -20,12 +20,16 @@ pub struct ProjectInfoResponse { /// Whether the project is public. #[serde(rename = "is_public")] pub is_public: bool, - #[serde(rename = "latest_circuit", skip_serializing_if = "Option::is_none")] - pub latest_circuit: Option>, + #[serde( + rename = "latest_circuit", + default, + with = "::serde_with::rust::double_option", + skip_serializing_if = "Option::is_none" + )] + pub latest_circuit: Option>>, /// The name of the project. #[serde(rename = "name")] pub name: String, - /// The number of proofs created for this project. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// A unique identifier generated for the project. UUID4 format. @@ -40,6 +44,9 @@ pub struct ProjectInfoResponse { /// URL for the avatar image of the team that owns this project. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this project. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this project. #[serde(rename = "team_slug")] pub team_slug: String, @@ -56,6 +63,7 @@ impl ProjectInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, ) -> ProjectInfoResponse { ProjectInfoResponse { @@ -68,6 +76,7 @@ impl ProjectInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, } } diff --git a/openapi/src/models/project_info_response_latest_circuit.rs b/openapi/src/models/project_info_response_latest_circuit.rs index 0553f56..8298955 100644 --- a/openapi/src/models/project_info_response_latest_circuit.rs +++ b/openapi/src/models/project_info_response_latest_circuit.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -32,7 +32,13 @@ pub struct ProjectInfoResponseLatestCircuit { impl ProjectInfoResponseLatestCircuit { /// The most recent circuit tagged \"latest\" or the most recently created circuit if no circuit is tagged \"latest\". - pub fn new(circuit_id: Option, circuit_type: models::CircuitType, date_created: Option, proving_scheme: Option, status: models::JobStatus) -> ProjectInfoResponseLatestCircuit { + pub fn new( + circuit_id: Option, + circuit_type: models::CircuitType, + date_created: Option, + proving_scheme: Option, + status: models::JobStatus, + ) -> ProjectInfoResponseLatestCircuit { ProjectInfoResponseLatestCircuit { circuit_id, circuit_type, @@ -42,4 +48,3 @@ impl ProjectInfoResponseLatestCircuit { } } } - diff --git a/openapi/src/models/project_latest_circuit_response.rs b/openapi/src/models/project_latest_circuit_response.rs index 15c052a..d0f4537 100644 --- a/openapi/src/models/project_latest_circuit_response.rs +++ b/openapi/src/models/project_latest_circuit_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/project_list_input.rs b/openapi/src/models/project_list_input.rs index 9d66dc4..c89a138 100644 --- a/openapi/src/models/project_list_input.rs +++ b/openapi/src/models/project_list_input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -14,7 +14,6 @@ use serde::{Deserialize, Serialize}; /// ProjectListInput : Client input for filtering project list. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ProjectListInput { - /// Return projects owned by this team. #[serde( rename = "team_name", default, @@ -22,11 +21,21 @@ pub struct ProjectListInput { skip_serializing_if = "Option::is_none" )] pub team_name: Option>, + #[serde( + rename = "team_slug", + default, + with = "::serde_with::rust::double_option", + skip_serializing_if = "Option::is_none" + )] + pub team_slug: Option>, } impl ProjectListInput { /// Client input for filtering project list. pub fn new() -> ProjectListInput { - ProjectListInput { team_name: None } + ProjectListInput { + team_name: None, + team_slug: None, + } } } diff --git a/openapi/src/models/project_name.rs b/openapi/src/models/project_name.rs index 68c4e75..34fb124 100644 --- a/openapi/src/models/project_name.rs +++ b/openapi/src/models/project_name.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// ProjectName : Return proofs for this project. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProjectName { -} +pub struct ProjectName {} impl ProjectName { /// Return proofs for this project. pub fn new() -> ProjectName { - ProjectName { - } + ProjectName {} } } - diff --git a/openapi/src/models/project_settings_input.rs b/openapi/src/models/project_settings_input.rs index 0bbd1ad..b131c5d 100644 --- a/openapi/src/models/project_settings_input.rs +++ b/openapi/src/models/project_settings_input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -14,7 +14,6 @@ use serde::{Deserialize, Serialize}; /// ProjectSettingsInput : Client input to update project settings. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ProjectSettingsInput { - /// Whether the project is public. #[serde( rename = "is_public", default, @@ -22,7 +21,6 @@ pub struct ProjectSettingsInput { skip_serializing_if = "Option::is_none" )] pub is_public: Option>, - /// The name of the project. #[serde( rename = "name", default, diff --git a/openapi/src/models/proof.rs b/openapi/src/models/proof.rs index 31c82c4..5bb06cf 100644 --- a/openapi/src/models/proof.rs +++ b/openapi/src/models/proof.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Proof : The succinct argument(s) of knowledge. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Proof { -} +pub struct Proof {} impl Proof { /// The succinct argument(s) of knowledge. pub fn new() -> Proof { - Proof { - } + Proof {} } } - diff --git a/openapi/src/models/proof_cannot_be_created_response.rs b/openapi/src/models/proof_cannot_be_created_response.rs index eac9842..0dd6565 100644 --- a/openapi/src/models/proof_cannot_be_created_response.rs +++ b/openapi/src/models/proof_cannot_be_created_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/proof_does_not_exist_response.rs b/openapi/src/models/proof_does_not_exist_response.rs index 39aeae4..f317336 100644 --- a/openapi/src/models/proof_does_not_exist_response.rs +++ b/openapi/src/models/proof_does_not_exist_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/proof_histogram_input.rs b/openapi/src/models/proof_histogram_input.rs index 7e4564c..bbfb9a9 100644 --- a/openapi/src/models/proof_histogram_input.rs +++ b/openapi/src/models/proof_histogram_input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -20,7 +20,6 @@ pub struct ProofHistogramInput { /// Limit to proofs created on/after this timezone-aware, ISO8601 formatted time. #[serde(rename = "start_time")] pub start_time: String, - /// Limit to proofs created on/before this timezone-aware, ISO8601 formatted time. Defaults to now. #[serde( rename = "end_time", default, diff --git a/openapi/src/models/proof_histogram_response.rs b/openapi/src/models/proof_histogram_response.rs index 342d359..caa6f7b 100644 --- a/openapi/src/models/proof_histogram_response.rs +++ b/openapi/src/models/proof_histogram_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/proof_id.rs b/openapi/src/models/proof_id.rs index 9433d0e..03b46f0 100644 --- a/openapi/src/models/proof_id.rs +++ b/openapi/src/models/proof_id.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/proof_info_response.rs b/openapi/src/models/proof_info_response.rs index 813cee4..074a737 100644 --- a/openapi/src/models/proof_info_response.rs +++ b/openapi/src/models/proof_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -43,7 +43,6 @@ pub struct ProofInfoResponse { /// The job is finished processing and waiting/polling can be terminated. #[serde(rename = "finished_processing")] pub finished_processing: bool, - /// The status of proof verification. #[serde(rename = "verified", deserialize_with = "Option::deserialize")] pub verified: Option, /// The name of the team that owns this proof. @@ -52,6 +51,9 @@ pub struct ProofInfoResponse { /// URL for the avatar image of the team that owns this proof. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this proof. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this proof. #[serde(rename = "team_slug")] pub team_slug: String, @@ -64,7 +66,6 @@ pub struct ProofInfoResponse { /// The slug of the team that owns the circuit associated with this proof. #[serde(rename = "circuit_team_slug")] pub circuit_team_slug: String, - /// Total compute time in ISO8601 format. #[serde( rename = "compute_time", default, @@ -72,7 +73,6 @@ pub struct ProofInfoResponse { skip_serializing_if = "Option::is_none" )] pub compute_time: Option>, - /// Total compute time in seconds. #[serde( rename = "compute_time_sec", default, @@ -87,8 +87,7 @@ pub struct ProofInfoResponse { with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none" )] - pub compute_times: Option>, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>>, #[serde( rename = "file_size", default, @@ -96,7 +95,6 @@ pub struct ProofInfoResponse { skip_serializing_if = "Option::is_none" )] pub file_size: Option>, - /// The succinct argument(s) of knowledge. #[serde( rename = "proof", default, @@ -111,8 +109,7 @@ pub struct ProofInfoResponse { with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none" )] - pub public: Option>, - /// Queue time in ISO8601 format. + pub public: Option>>, #[serde( rename = "queue_time", default, @@ -120,7 +117,6 @@ pub struct ProofInfoResponse { skip_serializing_if = "Option::is_none" )] pub queue_time: Option>, - /// Queue time in seconds. #[serde( rename = "queue_time_sec", default, @@ -128,7 +124,6 @@ pub struct ProofInfoResponse { skip_serializing_if = "Option::is_none" )] pub queue_time_sec: Option>, - /// The proof and public formatted as calldata for the smart contract verifier. #[serde( rename = "smart_contract_calldata", default, @@ -148,7 +143,6 @@ pub struct ProofInfoResponse { skip_serializing_if = "Option::is_none" )] pub has_verification_key: Option, - /// The verification key of this circuit. #[serde( rename = "verification_key", default, @@ -156,7 +150,6 @@ pub struct ProofInfoResponse { skip_serializing_if = "Option::is_none" )] pub verification_key: Option>, - /// A list of runtime warnings with UTC timestamps. #[serde( rename = "warnings", default, @@ -164,7 +157,6 @@ pub struct ProofInfoResponse { skip_serializing_if = "Option::is_none" )] pub warnings: Option>>, - /// The error message for a failed proof. #[serde( rename = "error", default, @@ -190,6 +182,7 @@ impl ProofInfoResponse { verified: Option, team: String, team_avatar_url: String, + team_name: String, team_slug: String, circuit_team: String, circuit_team_avatar_url: String, @@ -209,6 +202,7 @@ impl ProofInfoResponse { verified, team, team_avatar_url, + team_name, team_slug, circuit_team, circuit_team_avatar_url, diff --git a/openapi/src/models/proof_input.rs b/openapi/src/models/proof_input.rs index bfe5a40..ecc8d95 100644 --- a/openapi/src/models/proof_input.rs +++ b/openapi/src/models/proof_input.rs @@ -1,34 +1,23 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::{Deserialize, Serialize}; -use serde_json::Value; /// ProofInput : An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(untagged)] -pub enum ProofInput { - Json(Value), // For raw JSON objects - String(String), // For serialized JSON/TOML strings -} - -impl Default for ProofInput { - fn default() -> Self { - ProofInput::String(String::new()) - } -} +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProofInput {} impl ProofInput { /// An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. pub fn new() -> ProofInput { - Default::default() + ProofInput {} } } diff --git a/openapi/src/models/proof_list_input.rs b/openapi/src/models/proof_list_input.rs index 94244bf..2ca7568 100644 --- a/openapi/src/models/proof_list_input.rs +++ b/openapi/src/models/proof_list_input.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -14,7 +14,6 @@ use serde::{Deserialize, Serialize}; /// ProofListInput : Client input for filtering proofs. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ProofListInput { - /// Return proofs created after this date. #[serde( rename = "date_created_after", default, @@ -22,7 +21,6 @@ pub struct ProofListInput { skip_serializing_if = "Option::is_none" )] pub date_created_after: Option>, - /// Return proofs created before this date. #[serde( rename = "date_created_before", default, @@ -30,7 +28,6 @@ pub struct ProofListInput { skip_serializing_if = "Option::is_none" )] pub date_created_before: Option>, - /// Return proofs for this project. #[serde( rename = "project_name", default, @@ -38,8 +35,13 @@ pub struct ProofListInput { skip_serializing_if = "Option::is_none" )] pub project_name: Option>, - #[serde(rename = "status", skip_serializing_if = "Option::is_none")] - pub status: Option, + #[serde( + rename = "status", + default, + with = "::serde_with::rust::double_option", + skip_serializing_if = "Option::is_none" + )] + pub status: Option>, } impl ProofListInput { diff --git a/openapi/src/models/proof_status_response.rs b/openapi/src/models/proof_status_response.rs index 6ab4a1a..dbf4544 100644 --- a/openapi/src/models/proof_status_response.rs +++ b/openapi/src/models/proof_status_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/public.rs b/openapi/src/models/public.rs index cd7adfa..a6e0ee8 100644 --- a/openapi/src/models/public.rs +++ b/openapi/src/models/public.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Public : The public outputs of the circuit. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Public { -} +pub struct Public {} impl Public { /// The public outputs of the circuit. pub fn new() -> Public { - Public { - } + Public {} } } - diff --git a/openapi/src/models/queue_time_iso8601.rs b/openapi/src/models/queue_time_iso8601.rs index 8636237..190c681 100644 --- a/openapi/src/models/queue_time_iso8601.rs +++ b/openapi/src/models/queue_time_iso8601.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// QueueTimeIso8601 : Queue time in ISO8601 format. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct QueueTimeIso8601 { -} +pub struct QueueTimeIso8601 {} impl QueueTimeIso8601 { /// Queue time in ISO8601 format. pub fn new() -> QueueTimeIso8601 { - QueueTimeIso8601 { - } + QueueTimeIso8601 {} } } - diff --git a/openapi/src/models/queue_time_seconds.rs b/openapi/src/models/queue_time_seconds.rs index 80000a4..f1d5e36 100644 --- a/openapi/src/models/queue_time_seconds.rs +++ b/openapi/src/models/queue_time_seconds.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// QueueTimeSeconds : Queue time in seconds. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct QueueTimeSeconds { -} +pub struct QueueTimeSeconds {} impl QueueTimeSeconds { /// Queue time in seconds. pub fn new() -> QueueTimeSeconds { - QueueTimeSeconds { - } + QueueTimeSeconds {} } } - diff --git a/openapi/src/models/sindri_internal_error_response.rs b/openapi/src/models/sindri_internal_error_response.rs new file mode 100644 index 0000000..65443d9 --- /dev/null +++ b/openapi/src/models/sindri_internal_error_response.rs @@ -0,0 +1,31 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SindriInternalErrorResponse : Response for SindriInternalError +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SindriInternalErrorResponse { + #[serde(rename = "exception_id", skip_serializing_if = "Option::is_none")] + pub exception_id: Option>, + #[serde(rename = "message", skip_serializing_if = "Option::is_none")] + pub message: Option, +} + +impl SindriInternalErrorResponse { + /// Response for SindriInternalError + pub fn new() -> SindriInternalErrorResponse { + SindriInternalErrorResponse { + exception_id: None, + message: None, + } + } +} diff --git a/openapi/src/models/sindri_invalid_upload_response.rs b/openapi/src/models/sindri_invalid_upload_response.rs new file mode 100644 index 0000000..8105e1a --- /dev/null +++ b/openapi/src/models/sindri_invalid_upload_response.rs @@ -0,0 +1,34 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SindriInvalidUploadResponse : Response for SindriInvalidUploadError +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SindriInvalidUploadResponse { + #[serde(rename = "error")] + pub error: String, + #[serde(rename = "exception_id", skip_serializing_if = "Option::is_none")] + pub exception_id: Option>, + #[serde(rename = "message", skip_serializing_if = "Option::is_none")] + pub message: Option, +} + +impl SindriInvalidUploadResponse { + /// Response for SindriInvalidUploadError + pub fn new(error: String) -> SindriInvalidUploadResponse { + SindriInvalidUploadResponse { + error, + exception_id: None, + message: None, + } + } +} diff --git a/openapi/src/models/sindri_value_error_response.rs b/openapi/src/models/sindri_value_error_response.rs new file mode 100644 index 0000000..e7b584a --- /dev/null +++ b/openapi/src/models/sindri_value_error_response.rs @@ -0,0 +1,34 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SindriValueErrorResponse : Response for SindriValueError +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SindriValueErrorResponse { + #[serde(rename = "error")] + pub error: String, + #[serde(rename = "exception_id", skip_serializing_if = "Option::is_none")] + pub exception_id: Option>, + #[serde(rename = "message", skip_serializing_if = "Option::is_none")] + pub message: Option, +} + +impl SindriValueErrorResponse { + /// Response for SindriValueError + pub fn new(error: String) -> SindriValueErrorResponse { + SindriValueErrorResponse { + error, + exception_id: None, + message: None, + } + } +} diff --git a/openapi/src/models/smart_contract_calldata.rs b/openapi/src/models/smart_contract_calldata.rs index 3eb4665..e269715 100644 --- a/openapi/src/models/smart_contract_calldata.rs +++ b/openapi/src/models/smart_contract_calldata.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// SmartContractCalldata : The proof and public formatted as calldata for the smart contract verifier. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SmartContractCalldata { -} +pub struct SmartContractCalldata {} impl SmartContractCalldata { /// The proof and public formatted as calldata for the smart contract verifier. pub fn new() -> SmartContractCalldata { - SmartContractCalldata { - } + SmartContractCalldata {} } } - diff --git a/openapi/src/models/smart_contract_verifier_response.rs b/openapi/src/models/smart_contract_verifier_response.rs index 61d2247..dab64c2 100644 --- a/openapi/src/models/smart_contract_verifier_response.rs +++ b/openapi/src/models/smart_contract_verifier_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -14,7 +14,6 @@ use serde::{Deserialize, Serialize}; /// SmartContractVerifierResponse : Response providing the smart contract verifier code. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct SmartContractVerifierResponse { - /// The smart contract verifier code. #[serde(rename = "contract_code", deserialize_with = "Option::deserialize")] pub contract_code: Option, } diff --git a/openapi/src/models/snarkvm_circuit_info_response.rs b/openapi/src/models/snarkvm_circuit_info_response.rs new file mode 100644 index 0000000..7ad2a9d --- /dev/null +++ b/openapi/src/models/snarkvm_circuit_info_response.rs @@ -0,0 +1,182 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SnarkvmCircuitInfoResponse : Response for getting SnarkVM circuit info. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SnarkvmCircuitInfoResponse { + /// A unique identifier generated for the circuit. UUID4 format. + #[serde(rename = "circuit_id")] + pub circuit_id: String, + #[serde(rename = "circuit_name")] + pub circuit_name: String, + /// The name of the project. This can be used in place of circuit_id for proving. This is specified during creation in the included sindri.json file. If the project is renamed, this will be the new name of the project, not the original name that was included in the sindri.json file. + #[serde(rename = "project_name")] + pub project_name: String, + /// The development framework used to write the circuit. This is specified during creation in the included sindri.json file. + #[serde(rename = "circuit_type")] + pub circuit_type: CircuitType, + /// The UTC datetime the circuit was uploaded in ISO8601 format. + #[serde(rename = "date_created")] + pub date_created: String, + /// Metadata keys and values for the circuit that were specified at creation time. + #[serde(rename = "meta")] + pub meta: std::collections::HashMap, + #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] + pub num_proofs: Option, + /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. + #[serde(rename = "proving_scheme")] + pub proving_scheme: String, + /// Whether the circuit is public. Public circuits can be used by any user. + #[serde(rename = "public")] + pub public: bool, + /// The status of the circuit job. + #[serde(rename = "status")] + pub status: models::JobStatus, + /// The job is finished processing and waiting/polling can be terminated. + #[serde(rename = "finished_processing")] + pub finished_processing: bool, + /// Tags for the circuit. + #[serde(rename = "tags")] + pub tags: Vec, + /// The name of the team that owns this circuit. + #[serde(rename = "team")] + pub team: String, + /// URL for the avatar image of the team that owns this circuit. + #[serde(rename = "team_avatar_url")] + pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, + /// The slug of the team that owns this circuit. + #[serde(rename = "team_slug")] + pub team_slug: String, + #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] + pub compute_time: Option, + #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] + pub compute_time_sec: Option, + /// Detailed compute times for the circuit compilation. + #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] + pub compute_times: Option>, + #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] + pub file_size: Option, + #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] + pub queue_time: Option, + #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] + pub queue_time_sec: Option, + /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. + #[serde(rename = "uploaded_file_name")] + pub uploaded_file_name: String, + /// Boolean indicating whether this circuit has a smart contract verifier available. + #[serde(rename = "has_smart_contract_verifier")] + pub has_smart_contract_verifier: bool, + /// Boolean indicating whether this circuit has a verification key available. + #[serde(rename = "has_verification_key")] + pub has_verification_key: bool, + #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] + pub verification_key: Option, + #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] + pub warnings: Option>, + #[serde(rename = "error", deserialize_with = "Option::deserialize")] + pub error: Option, + /// The main.aleo function name. + #[serde(rename = "function_name")] + pub function_name: String, + /// The network. + #[serde(rename = "network")] + pub network: String, +} + +impl SnarkvmCircuitInfoResponse { + /// Response for getting SnarkVM circuit info. + pub fn new( + circuit_id: String, + circuit_name: String, + project_name: String, + circuit_type: CircuitType, + date_created: String, + meta: std::collections::HashMap, + num_proofs: Option, + proving_scheme: String, + public: bool, + status: models::JobStatus, + finished_processing: bool, + tags: Vec, + team: String, + team_avatar_url: String, + team_name: String, + team_slug: String, + compute_time: Option, + compute_time_sec: Option, + compute_times: Option, + file_size: Option, + queue_time: Option, + queue_time_sec: Option, + uploaded_file_name: String, + has_smart_contract_verifier: bool, + has_verification_key: bool, + verification_key: Option, + warnings: Option>, + error: Option, + function_name: String, + network: String, + ) -> SnarkvmCircuitInfoResponse { + SnarkvmCircuitInfoResponse { + circuit_id, + circuit_name, + project_name, + circuit_type, + date_created, + meta, + num_proofs, + proving_scheme, + public, + status, + finished_processing, + tags, + team, + team_avatar_url, + team_name, + team_slug, + compute_time, + compute_time_sec, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, + file_size, + queue_time, + queue_time_sec, + uploaded_file_name, + has_smart_contract_verifier, + has_verification_key, + verification_key, + warnings, + error, + function_name, + network, + } + } +} +/// The development framework used to write the circuit. This is specified during creation in the included sindri.json file. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CircuitType { + #[serde(rename = "snarkvm")] + Snarkvm, +} + +impl Default for CircuitType { + fn default() -> CircuitType { + Self::Snarkvm + } +} diff --git a/openapi/src/models/sp1_circuit_info_response.rs b/openapi/src/models/sp1_circuit_info_response.rs index e35dcbc..c5a86dc 100644 --- a/openapi/src/models/sp1_circuit_info_response.rs +++ b/openapi/src/models/sp1_circuit_info_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -31,7 +31,6 @@ pub struct Sp1CircuitInfoResponse { /// Metadata keys and values for the circuit that were specified at creation time. #[serde(rename = "meta")] pub meta: std::collections::HashMap, - /// The number of proofs submitted for this circuit. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// The proving scheme for this circuit. This is specified during creation in the included sindri.json file. @@ -55,25 +54,23 @@ pub struct Sp1CircuitInfoResponse { /// URL for the avatar image of the team that owns this circuit. #[serde(rename = "team_avatar_url")] pub team_avatar_url: String, + /// The name of the team that owns this circuit. + #[serde(rename = "team_name")] + pub team_name: String, /// The slug of the team that owns this circuit. #[serde(rename = "team_slug")] pub team_slug: String, - /// Total compute time in ISO8601 format. #[serde(rename = "compute_time", deserialize_with = "Option::deserialize")] pub compute_time: Option, - /// Total compute time in seconds. #[serde(rename = "compute_time_sec", deserialize_with = "Option::deserialize")] pub compute_time_sec: Option, /// Detailed compute times for the circuit compilation. #[serde(rename = "compute_times", deserialize_with = "Option::deserialize")] - pub compute_times: Option, - /// Total size of stored file(s) in bytes. + pub compute_times: Option>, #[serde(rename = "file_size", deserialize_with = "Option::deserialize")] pub file_size: Option, - /// Queue time in ISO8601 format. #[serde(rename = "queue_time", deserialize_with = "Option::deserialize")] pub queue_time: Option, - /// Queue time in seconds. #[serde(rename = "queue_time_sec", deserialize_with = "Option::deserialize")] pub queue_time_sec: Option, /// The name of the uploaded circuit file. Note: the CLI and SDKs create a generic name when a directory is specified for upload. @@ -85,13 +82,10 @@ pub struct Sp1CircuitInfoResponse { /// Boolean indicating whether this circuit has a verification key available. #[serde(rename = "has_verification_key")] pub has_verification_key: bool, - /// The verification key of this circuit. #[serde(rename = "verification_key", deserialize_with = "Option::deserialize")] pub verification_key: Option, - /// A list of runtime warnings with UTC timestamps. #[serde(rename = "warnings", deserialize_with = "Option::deserialize")] pub warnings: Option>, - /// The error message for a failed circuit upload. #[serde(rename = "error", deserialize_with = "Option::deserialize")] pub error: Option, /// The SP1 frontend version tag. @@ -116,10 +110,11 @@ impl Sp1CircuitInfoResponse { tags: Vec, team: String, team_avatar_url: String, + team_name: String, team_slug: String, compute_time: Option, compute_time_sec: Option, - compute_times: Option, + compute_times: Option, file_size: Option, queue_time: Option, queue_time_sec: Option, @@ -146,10 +141,15 @@ impl Sp1CircuitInfoResponse { tags, team, team_avatar_url, + team_name, team_slug, compute_time, compute_time_sec, - compute_times, + compute_times: if let Some(x) = compute_times { + Some(Box::new(x)) + } else { + None + }, file_size, queue_time, queue_time_sec, diff --git a/openapi/src/models/status.rs b/openapi/src/models/status.rs index 21a7d59..19df219 100644 --- a/openapi/src/models/status.rs +++ b/openapi/src/models/status.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Status : Return proofs with this job status. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Status { -} +pub struct Status {} impl Status { /// Return proofs with this job status. pub fn new() -> Status { - Status { - } + Status {} } } - diff --git a/openapi/src/models/team_already_exists_response.rs b/openapi/src/models/team_already_exists_response.rs new file mode 100644 index 0000000..7ced199 --- /dev/null +++ b/openapi/src/models/team_already_exists_response.rs @@ -0,0 +1,37 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TeamAlreadyExistsResponse : Action: Attempt to create a team with team_slug. Error: A team with this slug already exists. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TeamAlreadyExistsResponse { + #[serde(rename = "error")] + pub error: String, + #[serde(rename = "exception_id", skip_serializing_if = "Option::is_none")] + pub exception_id: Option>, + #[serde(rename = "message")] + pub message: String, + #[serde(rename = "team_slug")] + pub team_slug: String, +} + +impl TeamAlreadyExistsResponse { + /// Action: Attempt to create a team with team_slug. Error: A team with this slug already exists. + pub fn new(error: String, message: String, team_slug: String) -> TeamAlreadyExistsResponse { + TeamAlreadyExistsResponse { + error, + exception_id: None, + message, + team_slug, + } + } +} diff --git a/openapi/src/models/team_create_input.rs b/openapi/src/models/team_create_input.rs new file mode 100644 index 0000000..1dcbe14 --- /dev/null +++ b/openapi/src/models/team_create_input.rs @@ -0,0 +1,37 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TeamCreateInput : Client input to create a team. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TeamCreateInput { + /// A description of the team. + #[serde(rename = "description", skip_serializing_if = "Option::is_none")] + pub description: Option, + /// The display name of the team. + #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")] + pub display_name: Option, + /// The unique slug for the team (used for routing). + #[serde(rename = "slug")] + pub slug: String, +} + +impl TeamCreateInput { + /// Client input to create a team. + pub fn new(slug: String) -> TeamCreateInput { + TeamCreateInput { + description: None, + display_name: None, + slug, + } + } +} diff --git a/openapi/src/models/team_detail.rs b/openapi/src/models/team_detail.rs index 6ce6737..42d457a 100644 --- a/openapi/src/models/team_detail.rs +++ b/openapi/src/models/team_detail.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -33,7 +33,6 @@ pub struct TeamDetail { /// The number of projects owned by the team. #[serde(rename = "num_projects")] pub num_projects: i32, - /// The number of proofs submitted by the team. #[serde(rename = "num_proofs", deserialize_with = "Option::deserialize")] pub num_proofs: Option, /// Whether the team is a Sindri corporate team. diff --git a/openapi/src/models/team_does_not_exist_response.rs b/openapi/src/models/team_does_not_exist_response.rs index f17b8bc..8dede5a 100644 --- a/openapi/src/models/team_does_not_exist_response.rs +++ b/openapi/src/models/team_does_not_exist_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -11,7 +11,7 @@ use crate::models; use serde::{Deserialize, Serialize}; -/// TeamDoesNotExistResponse : Action: Attempt to reference a team with team_name. Error: A team with team_name does not exist. +/// TeamDoesNotExistResponse : Action: Attempt to reference a team with team_slug. Error: A team with team_slug does not exist. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct TeamDoesNotExistResponse { #[serde(rename = "error")] @@ -22,16 +22,24 @@ pub struct TeamDoesNotExistResponse { pub message: String, #[serde(rename = "team_name")] pub team_name: String, + #[serde(rename = "team_slug")] + pub team_slug: String, } impl TeamDoesNotExistResponse { - /// Action: Attempt to reference a team with team_name. Error: A team with team_name does not exist. - pub fn new(error: String, message: String, team_name: String) -> TeamDoesNotExistResponse { + /// Action: Attempt to reference a team with team_slug. Error: A team with team_slug does not exist. + pub fn new( + error: String, + message: String, + team_name: String, + team_slug: String, + ) -> TeamDoesNotExistResponse { TeamDoesNotExistResponse { error, exception_id: None, message, team_name, + team_slug, } } } diff --git a/openapi/src/models/team_invite_input.rs b/openapi/src/models/team_invite_input.rs new file mode 100644 index 0000000..ba1dd85 --- /dev/null +++ b/openapi/src/models/team_invite_input.rs @@ -0,0 +1,27 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TeamInviteInput : Client input to invite a user to a team. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TeamInviteInput { + /// The email address of the user to invite. + #[serde(rename = "email")] + pub email: String, +} + +impl TeamInviteInput { + /// Client input to invite a user to a team. + pub fn new(email: String) -> TeamInviteInput { + TeamInviteInput { email } + } +} diff --git a/openapi/src/models/team_me_response.rs b/openapi/src/models/team_me_response.rs index 2867380..ee56cb8 100644 --- a/openapi/src/models/team_me_response.rs +++ b/openapi/src/models/team_me_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/team_member_detail.rs b/openapi/src/models/team_member_detail.rs index 4c571fe..7dc259d 100644 --- a/openapi/src/models/team_member_detail.rs +++ b/openapi/src/models/team_member_detail.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/team_members_response.rs b/openapi/src/models/team_members_response.rs index 07638b2..665d670 100644 --- a/openapi/src/models/team_members_response.rs +++ b/openapi/src/models/team_members_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/team_name.rs b/openapi/src/models/team_name.rs index bc0a434..09c0cd3 100644 --- a/openapi/src/models/team_name.rs +++ b/openapi/src/models/team_name.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// TeamName : Return projects owned by this team. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TeamName { -} +pub struct TeamName {} impl TeamName { /// Return projects owned by this team. pub fn new() -> TeamName { - TeamName { - } + TeamName {} } } - diff --git a/openapi/src/models/team_remove_member_input.rs b/openapi/src/models/team_remove_member_input.rs new file mode 100644 index 0000000..badb5cc --- /dev/null +++ b/openapi/src/models/team_remove_member_input.rs @@ -0,0 +1,33 @@ +/* + * Sindri Labs API + * + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 + * + * The version of the OpenAPI document: v1.17.6 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TeamRemoveMemberInput : Client input to remove a user from a team. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TeamRemoveMemberInput { + /// The slug of the team to remove the user from. + #[serde(rename = "team_slug")] + pub team_slug: String, + /// The username of the user to remove. + #[serde(rename = "username")] + pub username: String, +} + +impl TeamRemoveMemberInput { + /// Client input to remove a user from a team. + pub fn new(team_slug: String, username: String) -> TeamRemoveMemberInput { + TeamRemoveMemberInput { + team_slug, + username, + } + } +} diff --git a/openapi/src/models/token_obtain_pair_input_schema.rs b/openapi/src/models/token_obtain_pair_input_schema.rs index 63983b7..255b63d 100644 --- a/openapi/src/models/token_obtain_pair_input_schema.rs +++ b/openapi/src/models/token_obtain_pair_input_schema.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/token_obtain_pair_output_schema.rs b/openapi/src/models/token_obtain_pair_output_schema.rs index 0176ef5..ca9fe50 100644 --- a/openapi/src/models/token_obtain_pair_output_schema.rs +++ b/openapi/src/models/token_obtain_pair_output_schema.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/token_refresh_input_schema.rs b/openapi/src/models/token_refresh_input_schema.rs index 6d1a1e2..9e6cb7c 100644 --- a/openapi/src/models/token_refresh_input_schema.rs +++ b/openapi/src/models/token_refresh_input_schema.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/token_refresh_output_schema.rs b/openapi/src/models/token_refresh_output_schema.rs index 97ee4bf..c2352f3 100644 --- a/openapi/src/models/token_refresh_output_schema.rs +++ b/openapi/src/models/token_refresh_output_schema.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/token_verify_input_schema.rs b/openapi/src/models/token_verify_input_schema.rs index 5e5652e..bbe6a10 100644 --- a/openapi/src/models/token_verify_input_schema.rs +++ b/openapi/src/models/token_verify_input_schema.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/user_me_response.rs b/openapi/src/models/user_me_response.rs index a69aa30..d8e1a8d 100644 --- a/openapi/src/models/user_me_response.rs +++ b/openapi/src/models/user_me_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ diff --git a/openapi/src/models/validation_error_response.rs b/openapi/src/models/validation_error_response.rs index 06423ec..542c07f 100644 --- a/openapi/src/models/validation_error_response.rs +++ b/openapi/src/models/validation_error_response.rs @@ -1,9 +1,9 @@ /* * Sindri Labs API * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.2.2 * - * The version of the OpenAPI document: v1.15.1 + * The version of the OpenAPI document: v1.17.6 * * Generated by: https://openapi-generator.tech */ @@ -25,6 +25,7 @@ pub struct ValidationErrorResponse { } impl ValidationErrorResponse { + /// pub fn new(error: String, location: String, message: String) -> ValidationErrorResponse { ValidationErrorResponse { error, diff --git a/openapi/src/models/verification_key.rs b/openapi/src/models/verification_key.rs index 9e997cd..9b84f06 100644 --- a/openapi/src/models/verification_key.rs +++ b/openapi/src/models/verification_key.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// VerificationKey : The verification key of this circuit. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct VerificationKey { -} +pub struct VerificationKey {} impl VerificationKey { /// The verification key of this circuit. pub fn new() -> VerificationKey { - VerificationKey { - } + VerificationKey {} } } - diff --git a/openapi/src/models/verified.rs b/openapi/src/models/verified.rs index c6e966f..5dd2666 100644 --- a/openapi/src/models/verified.rs +++ b/openapi/src/models/verified.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Verified : The status of proof verification. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Verified { -} +pub struct Verified {} impl Verified { /// The status of proof verification. pub fn new() -> Verified { - Verified { - } + Verified {} } } - diff --git a/openapi/src/models/warnings.rs b/openapi/src/models/warnings.rs index 06dc645..50b4526 100644 --- a/openapi/src/models/warnings.rs +++ b/openapi/src/models/warnings.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// Warnings : A list of runtime warnings with UTC timestamps. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Warnings { -} +pub struct Warnings {} impl Warnings { /// A list of runtime warnings with UTC timestamps. pub fn new() -> Warnings { - Warnings { - } + Warnings {} } } - diff --git a/openapi/src/models/zkevm_version.rs b/openapi/src/models/zkevm_version.rs index 1708902..5c8c8b6 100644 --- a/openapi/src/models/zkevm_version.rs +++ b/openapi/src/models/zkevm_version.rs @@ -1,10 +1,10 @@ /* * Sindri Labs API * - * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 + * ## About [Sindri Labs](https://www.sindri.app/)' API simplifies the developer experience to enable fast and scalable zero-knowledge proof generation. Front-End Dashboard: [https://sindri.app/login](https://sindri.app/login) ## Documentation The [Sindri Documentation](https://sindri.app/docs) contains everything you need to get started! ## Sindri Resources The [sindri-resources GitHub repo](https://github.com/Sindri-Labs/sindri-resources) contains contains resources and sample data for the Sindri API. ## Using this Page This is a standard [OpenAPI (Swagger)](https://swagger.io/specification/) API documentation page. It provides detailed documentation for each endpoint. This page enables easy prototyping via the \"Try it out\" feature! Since all Sindri endpoints require a valid API Key, in order to use the \"Try it out\" feature for any endpoint in this documentation you must first obtain an API key. Do this in one of two ways: 1. Enter your username and password in the `/api/apikey/generate` endpoint of the **Authorization** section below. Use the API key returned in the `access` field of the response. 2. Obtain an API key from the Sindri Dashboard team \"Account Settings\". After obtaining your API key, authorize your page session by entering your API Key in the `SindriAPIKeyBearerAuth` section, reached by clicking \"Authorize\" below. Proving Backend Version: v1.0.36 * * The version of the OpenAPI document: v1.14.5 - * + * * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,11 @@ use crate::models; /// ZkevmVersion : The zkSync Era zkEVM version tag. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ZkevmVersion { -} +pub struct ZkevmVersion {} impl ZkevmVersion { /// The zkSync Era zkEVM version tag. pub fn new() -> ZkevmVersion { - ZkevmVersion { - } + ZkevmVersion {} } } - From 175c516cc68747e0da8a9d67f40facd7ca7f0bf0 Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Tue, 25 Feb 2025 23:46:26 +0000 Subject: [PATCH 4/9] check in with all patches --- openapi/src/apis/circuits_api.rs | 65 ++++++++++++++++----- openapi/src/apis/internal_api.rs | 20 +++---- openapi/src/apis/mod.rs | 6 +- openapi/src/apis/proofs_api.rs | 4 +- openapi/src/models/circuit_info_response.rs | 2 +- openapi/src/models/mod.rs | 1 + openapi/src/models/proof_input.rs | 17 +++++- 7 files changed, 83 insertions(+), 32 deletions(-) diff --git a/openapi/src/apis/circuits_api.rs b/openapi/src/apis/circuits_api.rs index b604ac4..96d8aad 100644 --- a/openapi/src/apis/circuits_api.rs +++ b/openapi/src/apis/circuits_api.rs @@ -73,7 +73,7 @@ pub enum ProofCreateError { /// Create a circuit. pub async fn circuit_create( configuration: &configuration::Configuration, - files: Vec, + files: Vec, meta: Option>, tags: Option>, ) -> Result> { @@ -96,23 +96,58 @@ pub async fn circuit_create( if let Some(ref token) = configuration.bearer_access_token { req_builder = req_builder.bearer_auth(token.to_owned()); }; - let mut multipart_form = reqwest::multipart::Form::new(); - // TODO: support file upload for 'files' parameter - if let Some(param_value) = p_meta { - multipart_form = multipart_form.text("meta", param_value.to_string()); + // Build the request body directly in order to avoid a streaming request + // that is incompatible with the retry middleware + let boundary = "----------------------------4ebf00fbcf09"; + req_builder = req_builder.header( + "Content-Type", + format!("multipart/form-data; boundary={boundary}"), + ); + + let filename = "rust_sdk_upload.tar.gz"; + let mut byte_string = Vec::new(); + byte_string.extend_from_slice( + format!( + "--{boundary}\r\n\ + Content-Disposition: form-data; name=\"files\"; filename=\"{filename}\"\r\n\ + \r\n", + ) + .as_bytes(), + ); + byte_string.extend(p_files); + byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); // End of files + if let Some(p_tags) = p_tags { + for tag in p_tags { + byte_string.extend_from_slice( + format!( + "--{boundary}\r\n\ + Content-Disposition: form-data; name=\"tags\"\r\n\ + \r\n\ + {tag}\r\n" + ) + .as_bytes(), + ); + byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); + // End of tag + } } - if let Some(param_value) = p_tags { - multipart_form = multipart_form.text( - "tags", - param_value - .into_iter() - .map(|p| p.to_string()) - .collect::>() - .join(",") - .to_string(), + if let Some(p_meta) = p_meta { + let meta_json = serde_json::to_string(&p_meta)?; + byte_string.extend_from_slice( + format!( + "--{boundary}\r\n\ + Content-Disposition: form-data; name=\"meta\"\r\n\ + Content-Type: application/json\r\n\ + \r\n\ + {meta_json}\r\n" + ) + .as_bytes(), ); + byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); + // End of meta } - req_builder = req_builder.multipart(multipart_form); + let local_var_body = reqwest::Body::from(byte_string); + req_builder = req_builder.body(local_var_body); let req = req_builder.build()?; let resp = configuration.client.execute(req).await?; diff --git a/openapi/src/apis/internal_api.rs b/openapi/src/apis/internal_api.rs index e53c0c6..1f37468 100644 --- a/openapi/src/apis/internal_api.rs +++ b/openapi/src/apis/internal_api.rs @@ -249,9 +249,9 @@ pub enum UserMeWithJwtAuthError { /// Obtain circuit file(s). pub async fn circuit_download( configuration: &configuration::Configuration, - circuit_id: Option<&str>, + circuit_id: &str, path: Option<&str>, -) -> Result<(), Error> { +) -> Result> { // add a prefix to parameters to efficiently prevent name collisions let p_circuit_id = circuit_id; let p_path = path; @@ -259,7 +259,7 @@ pub async fn circuit_download( let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/download", configuration.base_path, - circuit_id = crate::apis::urlencode(p_circuit_id.unwrap()) + circuit_id = crate::apis::urlencode(p_circuit_id) ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -282,7 +282,7 @@ pub async fn circuit_download( let status = resp.status(); if !status.is_client_error() && !status.is_server_error() { - Ok(()) + Ok(resp) } else { let content = resp.text().await?; let entity: Option = serde_json::from_str(&content).ok(); @@ -395,7 +395,7 @@ pub async fn circuit_smart_contract_verifier( /// Get status for a specific circuit. pub async fn circuit_status( configuration: &configuration::Configuration, - circuit_id: Option<&str>, + circuit_id: &str, ) -> Result> { // add a prefix to parameters to efficiently prevent name collisions let p_circuit_id = circuit_id; @@ -403,7 +403,7 @@ pub async fn circuit_status( let uri_str = format!( "{}/api/v1/circuit/{circuit_id}/status", configuration.base_path, - circuit_id = crate::apis::urlencode(p_circuit_id.unwrap()) + circuit_id = crate::apis::urlencode(p_circuit_id) ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -482,7 +482,7 @@ pub async fn password_change_with_jwt_auth( /// List all circuits for a project. pub async fn project_circuits( configuration: &configuration::Configuration, - project_id: Option<&str>, + project_id: &str, ) -> Result, Error> { // add a prefix to parameters to efficiently prevent name collisions let p_project_id = project_id; @@ -490,7 +490,7 @@ pub async fn project_circuits( let uri_str = format!( "{}/api/v1/project/{project_id}/circuits", configuration.base_path, - project_id = crate::apis::urlencode(p_project_id.unwrap()) + project_id = crate::apis::urlencode(p_project_id) ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -864,7 +864,7 @@ pub async fn project_proofs_paginated( /// Update project settings. pub async fn project_settings( configuration: &configuration::Configuration, - project_name: Option<&str>, + project_name: &str, project_settings_input: models::ProjectSettingsInput, ) -> Result> { // add a prefix to parameters to efficiently prevent name collisions @@ -874,7 +874,7 @@ pub async fn project_settings( let uri_str = format!( "{}/api/v1/project/{project_name}/settings", configuration.base_path, - project_name = crate::apis::urlencode(p_project_name.unwrap()) + project_name = crate::apis::urlencode(p_project_name) ); let mut req_builder = configuration .client diff --git a/openapi/src/apis/mod.rs b/openapi/src/apis/mod.rs index 18c0d9d..9347831 100644 --- a/openapi/src/apis/mod.rs +++ b/openapi/src/apis/mod.rs @@ -103,7 +103,11 @@ pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String pub mod authorization_api; pub mod circuits_api; -pub mod internal_api; +#[allow(dead_code)] +mod internal_api; +pub use internal_api::{ + circuit_download, circuit_status, proof_status, CircuitStatusError, ProofStatusError, +}; pub mod proofs_api; pub mod token_api; diff --git a/openapi/src/apis/proofs_api.rs b/openapi/src/apis/proofs_api.rs index a357b6c..fa30d5e 100644 --- a/openapi/src/apis/proofs_api.rs +++ b/openapi/src/apis/proofs_api.rs @@ -81,7 +81,7 @@ pub async fn proof_delete( /// Get info for a specific proof. pub async fn proof_detail( configuration: &configuration::Configuration, - proof_id: Option<&str>, + proof_id: &str, include_proof: Option, include_public: Option, include_smart_contract_calldata: Option, @@ -97,7 +97,7 @@ pub async fn proof_detail( let uri_str = format!( "{}/api/v1/proof/{proof_id}/detail", configuration.base_path, - proof_id = crate::apis::urlencode(p_proof_id.unwrap()) + proof_id = crate::apis::urlencode(p_proof_id) ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); diff --git a/openapi/src/models/circuit_info_response.rs b/openapi/src/models/circuit_info_response.rs index 2f6d0d2..1b50f0b 100644 --- a/openapi/src/models/circuit_info_response.rs +++ b/openapi/src/models/circuit_info_response.rs @@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize}; /// CircuitInfoResponse : Response for getting circuit info. #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(tag = "circuit_type")] +#[serde(untagged)] pub enum CircuitInfoResponse { #[serde(rename = "boojum")] Boojum(Box), diff --git a/openapi/src/models/mod.rs b/openapi/src/models/mod.rs index ba528a7..971bc35 100644 --- a/openapi/src/models/mod.rs +++ b/openapi/src/models/mod.rs @@ -1,3 +1,4 @@ +pub type AnyOfLessThanGreaterThan = serde_json::Value; pub mod action_response; pub use self::action_response::ActionResponse; pub mod api_key_does_not_exist_response; diff --git a/openapi/src/models/proof_input.rs b/openapi/src/models/proof_input.rs index ecc8d95..917b57b 100644 --- a/openapi/src/models/proof_input.rs +++ b/openapi/src/models/proof_input.rs @@ -10,14 +10,25 @@ use crate::models; use serde::{Deserialize, Serialize}; +use serde_json::Value; /// ProofInput : An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProofInput {} +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ProofInput { + Json(Value), // For raw JSON objects + String(String), // For serialized JSON/TOML strings +} + +impl Default for ProofInput { + fn default() -> Self { + ProofInput::String(String::new()) + } +} impl ProofInput { /// An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. pub fn new() -> ProofInput { - ProofInput {} + Default::default() } } From 8012d73ac2f29ee525cf3dcc182ced9d955cc179 Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Tue, 25 Feb 2025 23:49:21 +0000 Subject: [PATCH 5/9] try new modular patch system, better bookkeeping --- openapi/.openapi-generator-ignore | 2 +- openapi/openapi.patch | 159 ------------------ openapi/patches/README.md | 18 ++ openapi/patches/circuit_creation.patch | 86 ++++++++++ openapi/patches/define_any_ltgt.patch | 9 + openapi/patches/export_some_internals.patch | 17 ++ .../patches/no_circuit_response_nest.patch | 13 ++ .../rm_id_options_restore_download.patch | 88 ++++++++++ openapi/patches/rm_proof_id_option.patch | 22 +++ openapi/patches/two_input_modes.patch | 33 ++++ 10 files changed, 287 insertions(+), 160 deletions(-) delete mode 100644 openapi/openapi.patch create mode 100644 openapi/patches/README.md create mode 100644 openapi/patches/circuit_creation.patch create mode 100644 openapi/patches/define_any_ltgt.patch create mode 100644 openapi/patches/export_some_internals.patch create mode 100644 openapi/patches/no_circuit_response_nest.patch create mode 100644 openapi/patches/rm_id_options_restore_download.patch create mode 100644 openapi/patches/rm_proof_id_option.patch create mode 100644 openapi/patches/two_input_modes.patch diff --git a/openapi/.openapi-generator-ignore b/openapi/.openapi-generator-ignore index 27f9b4a..7095c45 100644 --- a/openapi/.openapi-generator-ignore +++ b/openapi/.openapi-generator-ignore @@ -2,4 +2,4 @@ README.md git_push.sh .travis.yml docs/ -openapi.patch +patches/ diff --git a/openapi/openapi.patch b/openapi/openapi.patch deleted file mode 100644 index 625b5fa..0000000 --- a/openapi/openapi.patch +++ /dev/null @@ -1,159 +0,0 @@ -diff --git b/openapi/src/apis/circuits_api.rs a/openapi/src/apis/circuits_api.rs -index 4b91bf9..02d0781 100644 ---- b/openapi/src/apis/circuits_api.rs -+++ a/openapi/src/apis/circuits_api.rs -@@ -74,7 +74,7 @@ pub enum ProofCreateError { - - - /// Create a circuit. --pub async fn circuit_create(configuration: &configuration::Configuration, files: Vec, meta: Option>, tags: Option>) -> Result> { -+pub async fn circuit_create(configuration: &configuration::Configuration, files: Vec, meta: Option>, tags: Option>) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; -@@ -91,15 +91,52 @@ pub async fn circuit_create(configuration: &configuration::Configuration, files: - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); - }; -- let mut local_var_form = reqwest::multipart::Form::new(); -- // TODO: support file upload for 'files' parameter -- if let Some(local_var_param_value) = meta { -- local_var_form = local_var_form.text("meta", local_var_param_value.to_string()); -+ // Build the request body directly in order to avoid a streaming request -+ // that is incompatible with the retry middleware -+ let boundary = "----------------------------4ebf00fbcf09"; -+ local_var_req_builder = local_var_req_builder.header( -+ "Content-Type", -+ format!("multipart/form-data; boundary={boundary}"), -+ ); -+ -+ let filename = "rust_sdk_upload.tar.gz"; -+ let mut byte_string = Vec::new(); -+ byte_string.extend_from_slice( -+ format!( -+ "--{boundary}\r\n\ -+ Content-Disposition: form-data; name=\"files\"; filename=\"{filename}\"\r\n\ -+ \r\n", -+ ) -+ .as_bytes(), -+ ); -+ byte_string.extend(files); -+ byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); // End of files -+ if let Some(tags) = tags { -+ for tag in tags { -+ byte_string.extend_from_slice( -+ format!( -+ "--{boundary}\r\n\ -+ Content-Disposition: form-data; name=\"tags\"\r\n\ -+ \r\n\ -+ {tag}\r\n" -+ ) -+ .as_bytes(), -+ ); -+ byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); // End of tag -+ } - } -- if let Some(local_var_param_value) = tags { -- local_var_form = local_var_form.text("tags", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); -+ if let Some(meta) = meta { -+ let meta_json = serde_json::to_string(&meta)?; -+ byte_string.extend_from_slice(format!("--{boundary}\r\n\ -+ Content-Disposition: form-data; name=\"meta\"\r\n\ -+ Content-Type: application/json\r\n\ -+ \r\n\ -+ {meta_json}\r\n").as_bytes()); -+ byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); // End of meta - } -- local_var_req_builder = local_var_req_builder.multipart(local_var_form); -+ let local_var_body = reqwest::Body::from(byte_string); -+ -+ local_var_req_builder = local_var_req_builder.body(local_var_body); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; -diff --git b/openapi/src/apis/mod.rs a/openapi/src/apis/mod.rs -index d1c0ef5..4918336 100644 ---- b/openapi/src/apis/mod.rs -+++ a/openapi/src/apis/mod.rs -@@ -102,5 +102,7 @@ pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String - pub mod authorization_api; - pub mod circuits_api; - pub mod proofs_api; -- -+#[allow(dead_code)] -+mod internal_api; -+pub use internal_api::{circuit_download, circuit_status, CircuitStatusError, proof_status, ProofStatusError}; - pub mod configuration; -diff --git b/openapi/src/models/circuit_info_response.rs a/openapi/src/models/circuit_info_response.rs -index 869a025..d44264f 100644 ---- b/openapi/src/models/circuit_info_response.rs -+++ a/openapi/src/models/circuit_info_response.rs -@@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize}; - - /// CircuitInfoResponse : Response for getting circuit info. - #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] --#[serde(tag = "circuit_type")] -+#[serde(untagged)] - pub enum CircuitInfoResponse { - #[serde(rename="boojum")] - Boojum(Box), -diff --git b/openapi/src/models/proof_input.rs a/openapi/src/models/proof_input.rs -index c7f703a..6dfb4f6 100644 ---- b/openapi/src/models/proof_input.rs -+++ a/openapi/src/models/proof_input.rs -@@ -8,19 +8,28 @@ - * Generated by: https://openapi-generator.tech - */ - --use crate::models; --use serde::{Deserialize, Serialize}; -- --/// ProofInput : An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. --#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] --pub struct ProofInput { --} -- --impl ProofInput { -- /// An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. -- pub fn new() -> ProofInput { -- ProofInput { -- } -- } --} -+ use crate::models; -+ use serde::{Deserialize, Serialize}; -+ use serde_json::Value; -+ -+ /// ProofInput : An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. -+ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -+ #[serde(untagged)] -+ pub enum ProofInput { -+ Json(Value), // For raw JSON objects -+ String(String), // For serialized JSON/TOML strings -+ } -+ -+ impl Default for ProofInput { -+ fn default() -> Self { -+ ProofInput::String(String::new()) -+ } -+ } -+ -+ impl ProofInput { -+ /// An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. -+ pub fn new() -> ProofInput { -+ Default::default() -+ } -+ } - -diff --git b/openapi/src/models/validation_error_response.rs a/openapi/src/models/validation_error_response.rs -index f57ef5d..8c120de 100644 ---- b/openapi/src/models/validation_error_response.rs -+++ a/openapi/src/models/validation_error_response.rs -@@ -25,7 +25,6 @@ pub struct ValidationErrorResponse { - } - - impl ValidationErrorResponse { -- /// - pub fn new(error: String, location: String, message: String) -> ValidationErrorResponse { - ValidationErrorResponse { - error, diff --git a/openapi/patches/README.md b/openapi/patches/README.md new file mode 100644 index 0000000..bed2c33 --- /dev/null +++ b/openapi/patches/README.md @@ -0,0 +1,18 @@ +# Manual Patches + +Internal documentation. + +## Patch List + +Most of these patches (marked with a `*`) are temporary solutions until the openapi-generator fully supports 3.1.0 specifications. +Removing `scripts/openapitools.json` and rerunning `./scripts/update-sdk.sh` will regenerate the client with the latest rust openapi-generator version, potentially removing the need for some of these patches. + +| Filename | Purpose | Patched Files | +|----------------|--------------------------|-----------------------| +| `circuit_creation.patch` | *Creates custom multipart form data | `src/apis/circuits_api.rs` | +| `define_any_ltgt.patch` | *Defines `AnyOfLessThanGreaterThan` type (as `serde_json::Value`) | `src/models/mod.rs` | +| `export_some_internals.patch` | Exports some internal types for use in `sindri-rs` | `src/apis/mod.rs` | +| `no_circuit_response_nest.patch` | Circuit info is not nested by `circuit_type`, this patch removes the nesting | `src/models/circuit_info_response.rs` | +| `rm_id_options_restore_download.patch` | *Identifiers should not be optional for path params | `src/apis/internal_api.rs` | +| `rm_proof_id_option.patch` | *Identifier should not be optional for path params | `src/apis/proofs_api.rs` | +| `two_input_modes.patch` | Allows automatic inference of proof input type from string or JSON | `src/models/proof_input.rs` | diff --git a/openapi/patches/circuit_creation.patch b/openapi/patches/circuit_creation.patch new file mode 100644 index 0000000..e0e9ac4 --- /dev/null +++ b/openapi/patches/circuit_creation.patch @@ -0,0 +1,86 @@ +diff --git a/openapi/src/apis/circuits_api.rs b/openapi/src/apis/circuits_api.rs +index b604ac4..96d8aad 100644 +--- a/openapi/src/apis/circuits_api.rs ++++ b/openapi/src/apis/circuits_api.rs +@@ -73,7 +73,7 @@ pub enum ProofCreateError { + /// Create a circuit. + pub async fn circuit_create( + configuration: &configuration::Configuration, +- files: Vec, ++ files: Vec, + meta: Option>, + tags: Option>, + ) -> Result> { +@@ -96,23 +96,58 @@ pub async fn circuit_create( + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; +- let mut multipart_form = reqwest::multipart::Form::new(); +- // TODO: support file upload for 'files' parameter +- if let Some(param_value) = p_meta { +- multipart_form = multipart_form.text("meta", param_value.to_string()); ++ // Build the request body directly in order to avoid a streaming request ++ // that is incompatible with the retry middleware ++ let boundary = "----------------------------4ebf00fbcf09"; ++ req_builder = req_builder.header( ++ "Content-Type", ++ format!("multipart/form-data; boundary={boundary}"), ++ ); ++ ++ let filename = "rust_sdk_upload.tar.gz"; ++ let mut byte_string = Vec::new(); ++ byte_string.extend_from_slice( ++ format!( ++ "--{boundary}\r\n\ ++ Content-Disposition: form-data; name=\"files\"; filename=\"{filename}\"\r\n\ ++ \r\n", ++ ) ++ .as_bytes(), ++ ); ++ byte_string.extend(p_files); ++ byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); // End of files ++ if let Some(p_tags) = p_tags { ++ for tag in p_tags { ++ byte_string.extend_from_slice( ++ format!( ++ "--{boundary}\r\n\ ++ Content-Disposition: form-data; name=\"tags\"\r\n\ ++ \r\n\ ++ {tag}\r\n" ++ ) ++ .as_bytes(), ++ ); ++ byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); ++ // End of tag ++ } + } +- if let Some(param_value) = p_tags { +- multipart_form = multipart_form.text( +- "tags", +- param_value +- .into_iter() +- .map(|p| p.to_string()) +- .collect::>() +- .join(",") +- .to_string(), ++ if let Some(p_meta) = p_meta { ++ let meta_json = serde_json::to_string(&p_meta)?; ++ byte_string.extend_from_slice( ++ format!( ++ "--{boundary}\r\n\ ++ Content-Disposition: form-data; name=\"meta\"\r\n\ ++ Content-Type: application/json\r\n\ ++ \r\n\ ++ {meta_json}\r\n" ++ ) ++ .as_bytes(), + ); ++ byte_string.extend_from_slice(format!("--{boundary}--\r\n").as_bytes()); ++ // End of meta + } +- req_builder = req_builder.multipart(multipart_form); ++ let local_var_body = reqwest::Body::from(byte_string); ++ req_builder = req_builder.body(local_var_body); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; diff --git a/openapi/patches/define_any_ltgt.patch b/openapi/patches/define_any_ltgt.patch new file mode 100644 index 0000000..8a80a06 --- /dev/null +++ b/openapi/patches/define_any_ltgt.patch @@ -0,0 +1,9 @@ +diff --git a/openapi/src/models/mod.rs b/openapi/src/models/mod.rs +index ba528a7..971bc35 100644 +--- a/openapi/src/models/mod.rs ++++ b/openapi/src/models/mod.rs +@@ -1,3 +1,4 @@ ++pub type AnyOfLessThanGreaterThan = serde_json::Value; + pub mod action_response; + pub use self::action_response::ActionResponse; + pub mod api_key_does_not_exist_response; diff --git a/openapi/patches/export_some_internals.patch b/openapi/patches/export_some_internals.patch new file mode 100644 index 0000000..31dec96 --- /dev/null +++ b/openapi/patches/export_some_internals.patch @@ -0,0 +1,17 @@ +diff --git a/openapi/src/apis/mod.rs b/openapi/src/apis/mod.rs +index 18c0d9d..9347831 100644 +--- a/openapi/src/apis/mod.rs ++++ b/openapi/src/apis/mod.rs +@@ -103,7 +103,11 @@ pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String + + pub mod authorization_api; + pub mod circuits_api; +-pub mod internal_api; ++#[allow(dead_code)] ++mod internal_api; ++pub use internal_api::{ ++ circuit_download, circuit_status, proof_status, CircuitStatusError, ProofStatusError, ++}; + pub mod proofs_api; + pub mod token_api; + diff --git a/openapi/patches/no_circuit_response_nest.patch b/openapi/patches/no_circuit_response_nest.patch new file mode 100644 index 0000000..2b15851 --- /dev/null +++ b/openapi/patches/no_circuit_response_nest.patch @@ -0,0 +1,13 @@ +diff --git a/openapi/src/models/circuit_info_response.rs b/openapi/src/models/circuit_info_response.rs +index 2f6d0d2..1b50f0b 100644 +--- a/openapi/src/models/circuit_info_response.rs ++++ b/openapi/src/models/circuit_info_response.rs +@@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize}; + + /// CircuitInfoResponse : Response for getting circuit info. + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +-#[serde(tag = "circuit_type")] ++#[serde(untagged)] + pub enum CircuitInfoResponse { + #[serde(rename = "boojum")] + Boojum(Box), diff --git a/openapi/patches/rm_id_options_restore_download.patch b/openapi/patches/rm_id_options_restore_download.patch new file mode 100644 index 0000000..564bdb1 --- /dev/null +++ b/openapi/patches/rm_id_options_restore_download.patch @@ -0,0 +1,88 @@ +diff --git a/openapi/src/apis/internal_api.rs b/openapi/src/apis/internal_api.rs +index e53c0c6..1f37468 100644 +--- a/openapi/src/apis/internal_api.rs ++++ b/openapi/src/apis/internal_api.rs +@@ -249,9 +249,9 @@ pub enum UserMeWithJwtAuthError { + /// Obtain circuit file(s). + pub async fn circuit_download( + configuration: &configuration::Configuration, +- circuit_id: Option<&str>, ++ circuit_id: &str, + path: Option<&str>, +-) -> Result<(), Error> { ++) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; + let p_path = path; +@@ -259,7 +259,7 @@ pub async fn circuit_download( + let uri_str = format!( + "{}/api/v1/circuit/{circuit_id}/download", + configuration.base_path, +- circuit_id = crate::apis::urlencode(p_circuit_id.unwrap()) ++ circuit_id = crate::apis::urlencode(p_circuit_id) + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + +@@ -282,7 +282,7 @@ pub async fn circuit_download( + let status = resp.status(); + + if !status.is_client_error() && !status.is_server_error() { +- Ok(()) ++ Ok(resp) + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); +@@ -395,7 +395,7 @@ pub async fn circuit_smart_contract_verifier( + /// Get status for a specific circuit. + pub async fn circuit_status( + configuration: &configuration::Configuration, +- circuit_id: Option<&str>, ++ circuit_id: &str, + ) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions + let p_circuit_id = circuit_id; +@@ -403,7 +403,7 @@ pub async fn circuit_status( + let uri_str = format!( + "{}/api/v1/circuit/{circuit_id}/status", + configuration.base_path, +- circuit_id = crate::apis::urlencode(p_circuit_id.unwrap()) ++ circuit_id = crate::apis::urlencode(p_circuit_id) + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + +@@ -482,7 +482,7 @@ pub async fn password_change_with_jwt_auth( + /// List all circuits for a project. + pub async fn project_circuits( + configuration: &configuration::Configuration, +- project_id: Option<&str>, ++ project_id: &str, + ) -> Result, Error> { + // add a prefix to parameters to efficiently prevent name collisions + let p_project_id = project_id; +@@ -490,7 +490,7 @@ pub async fn project_circuits( + let uri_str = format!( + "{}/api/v1/project/{project_id}/circuits", + configuration.base_path, +- project_id = crate::apis::urlencode(p_project_id.unwrap()) ++ project_id = crate::apis::urlencode(p_project_id) + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + +@@ -864,7 +864,7 @@ pub async fn project_proofs_paginated( + /// Update project settings. + pub async fn project_settings( + configuration: &configuration::Configuration, +- project_name: Option<&str>, ++ project_name: &str, + project_settings_input: models::ProjectSettingsInput, + ) -> Result> { + // add a prefix to parameters to efficiently prevent name collisions +@@ -874,7 +874,7 @@ pub async fn project_settings( + let uri_str = format!( + "{}/api/v1/project/{project_name}/settings", + configuration.base_path, +- project_name = crate::apis::urlencode(p_project_name.unwrap()) ++ project_name = crate::apis::urlencode(p_project_name) + ); + let mut req_builder = configuration + .client diff --git a/openapi/patches/rm_proof_id_option.patch b/openapi/patches/rm_proof_id_option.patch new file mode 100644 index 0000000..615bd01 --- /dev/null +++ b/openapi/patches/rm_proof_id_option.patch @@ -0,0 +1,22 @@ +diff --git a/openapi/src/apis/proofs_api.rs b/openapi/src/apis/proofs_api.rs +index a357b6c..fa30d5e 100644 +--- a/openapi/src/apis/proofs_api.rs ++++ b/openapi/src/apis/proofs_api.rs +@@ -81,7 +81,7 @@ pub async fn proof_delete( + /// Get info for a specific proof. + pub async fn proof_detail( + configuration: &configuration::Configuration, +- proof_id: Option<&str>, ++ proof_id: &str, + include_proof: Option, + include_public: Option, + include_smart_contract_calldata: Option, +@@ -97,7 +97,7 @@ pub async fn proof_detail( + let uri_str = format!( + "{}/api/v1/proof/{proof_id}/detail", + configuration.base_path, +- proof_id = crate::apis::urlencode(p_proof_id.unwrap()) ++ proof_id = crate::apis::urlencode(p_proof_id) + ); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + diff --git a/openapi/patches/two_input_modes.patch b/openapi/patches/two_input_modes.patch new file mode 100644 index 0000000..c626eab --- /dev/null +++ b/openapi/patches/two_input_modes.patch @@ -0,0 +1,33 @@ +diff --git a/openapi/src/models/proof_input.rs b/openapi/src/models/proof_input.rs +index ecc8d95..917b57b 100644 +--- a/openapi/src/models/proof_input.rs ++++ b/openapi/src/models/proof_input.rs +@@ -10,14 +10,25 @@ + + use crate::models; + use serde::{Deserialize, Serialize}; ++use serde_json::Value; + + /// ProofInput : An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. +-#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +-pub struct ProofInput {} ++#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] ++#[serde(untagged)] ++pub enum ProofInput { ++ Json(Value), // For raw JSON objects ++ String(String), // For serialized JSON/TOML strings ++} ++ ++impl Default for ProofInput { ++ fn default() -> Self { ++ ProofInput::String(String::new()) ++ } ++} + + impl ProofInput { + /// An object mapping proof input variable names to their values. Can be a raw JSON object or a string serialized as JSON or TOML. + pub fn new() -> ProofInput { +- ProofInput {} ++ Default::default() + } + } From 8b3702ab68acc50793bd41f32c48fbe8d5f97dd0 Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Wed, 26 Feb 2025 00:53:30 +0000 Subject: [PATCH 6/9] apply mod patches --- Cargo.lock | 2 +- scripts/update-sdk.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9360194..d4db91d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3115,7 +3115,7 @@ dependencies = [ [[package]] name = "openapi" -version = "1.15.1" +version = "1.17.6" dependencies = [ "reqwest 0.12.9", "reqwest-middleware", diff --git a/scripts/update-sdk.sh b/scripts/update-sdk.sh index 2dbfc54..fd34518 100755 --- a/scripts/update-sdk.sh +++ b/scripts/update-sdk.sh @@ -15,8 +15,10 @@ cd .. # Format the client. rustfmt $(find ./openapi/ -name "*.rs") -# Patch over the generated client with some manual changes -# git apply openapi/openapi.patch +# Apply all patches in the openapi/patches directory +for patch in openapi/patches/*.patch; do + git apply "$patch" +done # Move back into scripts and remove the spec files. cd ./scripts/ From 14d1320eb2a6a40faf469590ba8a0706235e5eb7 Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Wed, 26 Feb 2025 00:54:58 +0000 Subject: [PATCH 7/9] add two new frameworks, rm fragile user agent test --- sindri-rs/src/client.rs | 4 ---- sindri-rs/src/types.rs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sindri-rs/src/client.rs b/sindri-rs/src/client.rs index 0c3fa15..2aef04f 100644 --- a/sindri-rs/src/client.rs +++ b/sindri-rs/src/client.rs @@ -851,10 +851,6 @@ mod tests { let client = SindriClient::new(None, None); let config = client.config; // Ensure the fields we are not setting have not changed between openapi codegen - assert_eq!( - config.user_agent, - Some("OpenAPI-Generator/v1.15.1/rust".to_owned()) - ); assert_eq!(config.basic_auth, None); assert_eq!(config.oauth_access_token, None); // the api_key field in the config struct is unused and an unfortunate name overlap diff --git a/sindri-rs/src/types.rs b/sindri-rs/src/types.rs index 5e1a00f..14a976c 100644 --- a/sindri-rs/src/types.rs +++ b/sindri-rs/src/types.rs @@ -146,7 +146,7 @@ macro_rules! impl_circuit_info { } // Add any new circuit types here -impl_circuit_info!(Boojum, Circom, Halo2, Gnark, Jolt, Noir, Plonky2, Sp1); +impl_circuit_info!(Boojum, Circom, Halo2, Hermez, Gnark, Jolt, Noir, Plonky2, Snarkvm, Sp1); /// A wrapper type around [`InternalProofInput`] that provides convenient conversions from /// various input formats for circuit proofs. From 92b8967e9f55761123fda6b063fc6958ca565d41 Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Wed, 26 Feb 2025 02:41:46 +0000 Subject: [PATCH 8/9] less prescriptive proof info mock --- sindri-rs/src/integrations/sp1.rs | 63 ++++++++----------------------- 1 file changed, 16 insertions(+), 47 deletions(-) diff --git a/sindri-rs/src/integrations/sp1.rs b/sindri-rs/src/integrations/sp1.rs index 71f8506..d66fd68 100644 --- a/sindri-rs/src/integrations/sp1.rs +++ b/sindri-rs/src/integrations/sp1.rs @@ -81,6 +81,7 @@ impl SP1ProofInfo for ProofInfoResponse { #[cfg(test)] mod tests { use super::*; + use crate::CircuitType; #[test] fn test_sp1_stdin_conversion() { @@ -104,47 +105,10 @@ mod tests { #[test] fn test_sp1_proof_info() { - let mockresponse = r#"{ - "proof_id": "ff02b570-4ba7-4245-9a26-dd22cd63721d", - "circuit_name": "not_equal_guest", - "project_name": "not_equal_guest", - "circuit_id": "767decb6-33da-4dc5-8675-149846756edd", - "circuit_type": "sp1", - "date_created": "2025-01-23T00:54:44.305Z", - "meta": {}, - "perform_verify": true, - "status": "Ready", - "finished_processing": true, - "verified": true, - "team": "Sindri", - "team_avatar_url": "https://static.sindri.app/team_avatars/0665d27c-c3d6-76b7-8000-d81b5767ac43.png", - "team_slug": "sindri", - "circuit_team": "Sindri", - "circuit_team_avatar_url": "https://static.sindri.app/team_avatars/0665d27c-c3d6-76b7-8000-d81b5767ac43.png", - "circuit_team_slug": "sindri", - "compute_time": "P0DT00H01M41.940077S", - "compute_time_sec": 101.940077, - "compute_times": { - "prove": 100.81364, - "total": 101.94008, - "clean_up": 0.00728, - "file_setup": 0.16965, - "save_results": 0.52199, - "verify_check": 0.42751 - }, - "file_size": 5065, - "proof": { - "proof": "lIGlUGxvbmuUktlKNDk3MzA2MTg5MTUyMzA1NDU5MjE1Mjg2MzQ0ODYxNTc1NjE3NjE4OTM4Mzc2OTg3NDA1MzYwOTI0NjI1ODM0NzgwOTMxMjk5MzHZTDY0MjQzMzYwNzk0MjQxNjc5MDI4OTAzNDc5MjYzMTcyOTAwNjAxNjUwOTk4MDU5NDA2MjAwNTk4Mzk3MTY2NjAyNDkzNjU1NTMxODHaBsAyZjJlYmFlNTI0ODE3YmZkNzQ3MzgxMTQ0MmE1NTY2Njc1M2YyOGRlYWM1YjRmY2RjMmU3YTI2ZTA2ZmM5ODM1MDYzYmE1YmViYjI3NTA0MjkzZGNhNDdkNjJlZjNjNGExNzY4MmZiNmI0MTM0M2JkN2Y5YzkyYmViOTI1ZGRkZjJkNzNiOTcyOTY5ZDZiMGI5ZTRhZjI0NzM0NTNiOTFhYmU1YTQ5YzdmZDUwYTllZjg1ZGRiZDQ4OGE5MzFjNmYwYTJhNDhiMTE0MGYyMzYyZThhNGNhYWMzMWRkZWY0MTdlMWI3M2ZjM2FmMzZmYTllMmQwYmRhZjZlOGI5MDY1Mjc4NzcwYjZjY2VlMjg5MTdhNDVmMjYzZjFiYTQ0MGNjZWZhZjMwNmI2NmEwNjhmMTIzNzAxMmRiMTJmZTgxYjBlNTIyNDgxYmRlMDExM2QyY2QwNzk5YWVmMzkyMzU1NjU4YzAyMGZlMGFjZGIxMzEzY2EzZTdmNWRmNGE2ZGYxNjZjNmI2NDc4ZjBhYjA1ZjgzZTFlMzc4MzNiMmFiY2IwOTQ1NzI2OTAyY2QyODBhZDIzZGIwZmNlZjA3ZTUzMjU1M2FmNTE1YjFiY2RkN2E3Y2E0NmQ4MWY2MzQ3MjVjNjJhZmJhYzFkMDI0YjVhMmY2OGY1MGJjZDdmYjU0ZjIzNzAwZmJjOGZiM2U1ZTQ3ODI1ZGFmODg5MmJjNzA3YTQxZjg2YWU2OGViNjhmOGFkMTAyOTU2NTMwN2Y4NTMxMDA4OGEwZDIxY2QzY2Q2MGUzZmQzNmIyZWRmZWMzNzBkMjUyZTg0ZGEyMTNmYzM3NWJjZmU1ZmEzOTAxZGU0MmRmZjkxNGViY2YxMmEzZGJhZmNjYTg0YmQxMTMyOGZhYTE3NzI3MWNmODUxMDY3N2Y3ZjNjZjhlNDQ0ZWM4ZTFjM2Q1MjM1Yjk4N2MzY2VkZGFkNjUyMTRhYjdlNTBiNGZhMmY2ZTYxNzA5N2YwMmNkNWE3YjE3MGUyZDBkNGYwZmExYTM5ZTNlOTY1MzQyNTVmMzAzMWQ1NDg3NzEzOWEyOTQ2NmQ1YzM5YjdkOTlkMDliZjEwMDU4MDBjYTllMWJkM2VhNWMzOTM0NjY1ZmJkYjQ5NzBlOGE1ZGQ4ODgwMmNiNmQzM2FlMTkyZjY2MGE1MzNjNTQ2OWZhNTZmNjJkNzE0ZTE2ZWNjMDJlNWZjODc4Y2E0YjAxNDAwMjk2MGY1ZmY5NGQ2OTY0ZTFmNzgyNzM4MzFiZmQwMTlkYTMyZGZhMmExOTE1Mjk4Y2NmMTZhYWE2N2ExNWZiNmJiNTJmNGVkMWMzM2UwZGMzYjRhYmQyMDkxMDVjNzk0MmVjMjlkNjA0Y2FiZDMyNWU1N2U1NTUxNzZmMzA1MmFhNzMzYmEzZjgyZDNiNmYzM2YzMzg5NDA2OTg5NDJkM2ZmZTI2ZjBmNTg3OGEwOTBkZGM4N2I4YzJkMTFlNWQ4MjQ1N2JkOWE5YTVkOWE5ODJjNWVkMGJmZTkwN2YzOGMzNzgxYWMwYzRiYTZiYzg0YjUyYTYzNTViMTMwM2E3NjE4Mjc2ZGZkMjM3NTk0ZGM5Y2RkYTY4N2U4MmFmOGUxMzgxMDRmMGFlMTc3NjUyZmJkZjBhZTU4ZDE0ODRkZTY1N2JhMjU3ZTJhMmY2NzgxYjliYjRmYWRmMmE1Nzg5OTcxNTBjMDRkZDk0MTI4YjNjODkwNDI2MmY3OGUwY2M2MWM5Nzg3MDE1YWI2NTFjZGY1NjQ4NjQxNmIxODYxNTQ4NDYyNGMyM2QxZDcwOTI4MzU4NjVkYTY4MmZmY2NjMmY0N2ZiNGQ4MTZjMDM1ODA2ZmExNjAzNjI5OGExNTNiYTY3MTU3MmMyZDdiNDZjOGM2OTgzYTFmNTY2YzUwZDZjYjEzNGJjYzlkODJhY2FhMWQ3MTM3MTI1NzcxMGVkMTE0ODBmODE3NTQwOTNiYTRjNWQ0NDA3OTczNzFlNmRhYjQwOTQ0MDA3YzQ2MDhmNWI1OTc0YjFiNzE4NzQyZDcyYTUwMzJhYmM2MTYxNTk5M2ZlYjI2ODlkODUzOTFhODMyZTExYjhhYjk3NjgzOWRkODA5NDM3ZmRjODhiNWIwN2JmMjlhZGRkM2ExNzBmMjFkMjRjMjVjMjIzYjExMzk2ZjViNTQ3YTlhNmNmYzVjYmEyOGQ5YjBiOGY0MzhhMDFmODI1ZWJjOTRlMTBkMDk5NjkyOTYyZjI5ZTdkM2EyMGJlMmVmNDRjN2FjZDRhMTI1ZTY5N2Q2NzI0YWQ3NjI5ZWTaBxAyZjJlYmFlNTI0ODE3YmZkNzQ3MzgxMTQ0MmE1NTY2Njc1M2YyOGRlYWM1YjRmY2RjMmU3YTI2ZTA2ZmM5ODM1MDYzYmE1YmViYjI3NTA0MjkzZGNhNDdkNjJlZjNjNGExNzY4MmZiNmI0MTM0M2JkN2Y5YzkyYmViOTI1ZGRkZjJkNzNiOTcyOTY5ZDZiMGI5ZTRhZjI0NzM0NTNiOTFhYmU1YTQ5YzdmZDUwYTllZjg1ZGRiZDQ4OGE5MzFjNmYwYTJhNDhiMTE0MGYyMzYyZThhNGNhYWMzMWRkZWY0MTdlMWI3M2ZjM2FmMzZmYTllMmQwYmRhZjZlOGI5MDY1Mjc4NzcwYjZjY2VlMjg5MTdhNDVmMjYzZjFiYTQ0MGNjZWZhZjMwNmI2NmEwNjhmMTIzNzAxMmRiMTJmZTgxYjBlNTIyNDgxYmRlMDExM2QyY2QwNzk5YWVmMzkyMzU1NjU4YzAyMGZlMGFjZGIxMzEzY2EzZTdmNWRmNGE2ZGYyNmYwZjU4NzhhMDkwZGRjODdiOGMyZDExZTVkODI0NTdiZDlhOWE1ZDlhOTgyYzVlZDBiZmU5MDdmMzhjMzc4MWFjMGM0YmE2YmM4NGI1MmE2MzU1YjEzMDNhNzYxODI3NmRmZDIzNzU5NGRjOWNkZGE2ODdlODJhZjhlMTM4MTE2NmM2YjY0NzhmMGFiMDVmODNlMWUzNzgzM2IyYWJjYjA5NDU3MjY5MDJjZDI4MGFkMjNkYjBmY2VmMDdlNTMyNTUzYWY1MTViMWJjZGQ3YTdjYTQ2ZDgxZjYzNDcyNWM2MmFmYmFjMWQwMjRiNWEyZjY4ZjUwYmNkN2ZiNTRmMjM3MDBmYmM4ZmIzZTVlNDc4MjVkYWY4ODkyYmM3MDdhNDFmODZhZTY4ZWI2OGY4YWQxMDI5NTY1MzA3Zjg1MzEwMDg4YTBkMjFjZDNjZDYwZTNmZDM2YjJlZGZlYzM3MGQyNTJlODRkYTIxM2ZjMzc1YmNmZTVmYTM5MDFkZTQyZGZmOTE0ZWJjZjEyYTNkYmFmY2NhODRiZDExMzI4ZmFhMTc3MjcxY2Y4NTEwNjc3ZjdmM2NmOGU0NDRlYzhlMWMzZDUyMzViOTg3YzNjZWRkYWQ2NTIxNGFiN2U1MGI0ZmEyZjZlNjE3MDk3ZjAyY2Q1YTdiMTcwZTJkMGQ0ZjBjMDRkZDk0MTI4YjNjODkwNDI2MmY3OGUwY2M2MWM5Nzg3MDE1YWI2NTFjZGY1NjQ4NjQxNmIxODYxNTQ4NDYyNGMyM2QxZDcwOTI4MzU4NjVkYTY4MmZmY2NjMmY0N2ZiNGQ4MTZjMDM1ODA2ZmExNjAzNjI5OGExNTNiYTY3MDAwMDAwMDcxMWQyZmZkOWM5YzM3M2MzMTYyN2E3YjdlZmFjNzRiMWZhMjcxN2UxMDlmMWI4Mjg3NmEwNWU1NzEyNmI5ZTVmMGZhMWEzOWUzZTk2NTM0MjU1ZjMwMzFkNTQ4NzcxMzlhMjk0NjZkNWMzOWI3ZDk5ZDA5YmYxMDA1ODAwY2E5ZTFiZDNlYTVjMzkzNDY2NWZiZGI0OTcwZThhNWRkODg4MDJjYjZkMzNhZTE5MmY2NjBhNTMzYzU0NjlmYTU2ZjYyZDcxNGUxNmVjYzAyZTVmYzg3OGNhNGIwMTQwMDI5NjBmNWZmOTRkNjk2NGUxZjc4MjczODMxYmZkMDE5ZGEzMmRmYTJhMTkxNTI5OGNjZjE2YWFhNjdhMTVmYjZiYjUyZjRlZDFjMzNlMGRjM2I0YWJkMjA5MTA1Yzc5NDJlYzI5ZDYwNGNhYmQzMjVlNTdlNTU1MTc2ZjMwNTJhYTczM2JhM2Y4MmQzYjZmMzNmMzM4OTQwNjk4OTQyZDNmZmUwMzJhYmM2MTYxNTk5M2ZlYjI2ODlkODUzOTFhODMyZTExYjhhYjk3NjgzOWRkODA5NDM3ZmRjODhiNWIwN2JmMTU3MmMyZDdiNDZjOGM2OTgzYTFmNTY2YzUwZDZjYjEzNGJjYzlkODJhY2FhMWQ3MTM3MTI1NzcxMGVkMTE0ODBmODE3NTQwOTNiYTRjNWQ0NDA3OTczNzFlNmRhYjQwOTQ0MDA3YzQ2MDhmNWI1OTc0YjFiNzE4NzQyZDcyYTUwNGYwYWUxNzc2NTJmYmRmMGFlNThkMTQ4NGRlNjU3YmEyNTdlMmEyZjY3ODFiOWJiNGZhZGYyYTU3ODk5NzE1MDAwMDAwMDEyOWFkZGQzYTE3MGYyMWQyNGMyNWMyMjNiMTEzOTZmNWI1NDdhOWE2Y2ZjNWNiYTI4ZDliMGI4ZjQzOGEwMWY4MjVlYmM5NGUxMGQwOTk2OTI5NjJmMjllN2QzYTIwYmUyZWY0NGM3YWNkNGExMjVlNjk3ZDY3MjRhZDc2MjllZNwAIFTMvczKzOPMrcy4PUzM6cztzJHM2cyaMczaMMyGzOLMsRfMq8zzaFFkzOnM8syNeGcLBZOSlMzoAwAAlMzQBwAAAJCRkZEApnYzLjAuMA==" - }, - "public": null, - "queue_time": "P0DT00H00M00.523819S", - "queue_time_sec": 0.523819, - "smart_contract_calldata": null, - "has_smart_contract_calldata": false, - "has_verification_key": true, - "verification_key": { - "vk": { - "commit": { + let manual_vkey = r#" + { + "vk": { + "commit": { "value": [1209974576, 1699531240, 1324110888, 637989123, 62921783, 507849012, 849436694, 1215033405], "_marker": null }, @@ -158,16 +122,21 @@ mod tests { "Byte": 2, "MemoryProgram": 0, "Program": 1 - } } - }, - "warnings": null, - "error": null + } + }"#; + let manual_proof = r#" + { + "proof": "lIGlUGxvbmuUktlKNDk3MzA2MTg5MTUyMzA1NDU5MjE1Mjg2MzQ0ODYxNTc1NjE3NjE4OTM4Mzc2OTg3NDA1MzYwOTI0NjI1ODM0NzgwOTMxMjk5MzHZTDY0MjQzMzYwNzk0MjQxNjc5MDI4OTAzNDc5MjYzMTcyOTAwNjAxNjUwOTk4MDU5NDA2MjAwNTk4Mzk3MTY2NjAyNDkzNjU1NTMxODHaBsAyZjJlYmFlNTI0ODE3YmZkNzQ3MzgxMTQ0MmE1NTY2Njc1M2YyOGRlYWM1YjRmY2RjMmU3YTI2ZTA2ZmM5ODM1MDYzYmE1YmViYjI3NTA0MjkzZGNhNDdkNjJlZjNjNGExNzY4MmZiNmI0MTM0M2JkN2Y5YzkyYmViOTI1ZGRkZjJkNzNiOTcyOTY5ZDZiMGI5ZTRhZjI0NzM0NTNiOTFhYmU1YTQ5YzdmZDUwYTllZjg1ZGRiZDQ4OGE5MzFjNmYwYTJhNDhiMTE0MGYyMzYyZThhNGNhYWMzMWRkZWY0MTdlMWI3M2ZjM2FmMzZmYTllMmQwYmRhZjZlOGI5MDY1Mjc4NzcwYjZjY2VlMjg5MTdhNDVmMjYzZjFiYTQ0MGNjZWZhZjMwNmI2NmEwNjhmMTIzNzAxMmRiMTJmZTgxYjBlNTIyNDgxYmRlMDExM2QyY2QwNzk5YWVmMzkyMzU1NjU4YzAyMGZlMGFjZGIxMzEzY2EzZTdmNWRmNGE2ZGYxNjZjNmI2NDc4ZjBhYjA1ZjgzZTFlMzc4MzNiMmFiY2IwOTQ1NzI2OTAyY2QyODBhZDIzZGIwZmNlZjA3ZTUzMjU1M2FmNTE1YjFiY2RkN2E3Y2E0NmQ4MWY2MzQ3MjVjNjJhZmJhYzFkMDI0YjVhMmY2OGY1MGJjZDdmYjU0ZjIzNzAwZmJjOGZiM2U1ZTQ3ODI1ZGFmODg5MmJjNzA3YTQxZjg2YWU2OGViNjhmOGFkMTAyOTU2NTMwN2Y4NTMxMDA4OGEwZDIxY2QzY2Q2MGUzZmQzNmIyZWRmZWMzNzBkMjUyZTg0ZGEyMTNmYzM3NWJjZmU1ZmEzOTAxZGU0MmRmZjkxNGViY2YxMmEzZGJhZmNjYTg0YmQxMTMyOGZhYTE3NzI3MWNmODUxMDY3N2Y3ZjNjZjhlNDQ0ZWM4ZTFjM2Q1MjM1Yjk4N2MzY2VkZGFkNjUyMTRhYjdlNTBiNGZhMmY2ZTYxNzA5N2YwMmNkNWE3YjE3MGUyZDBkNGYwZmExYTM5ZTNlOTY1MzQyNTVmMzAzMWQ1NDg3NzEzOWEyOTQ2NmQ1YzM5YjdkOTlkMDliZjEwMDU4MDBjYTllMWJkM2VhNWMzOTM0NjY1ZmJkYjQ5NzBlOGE1ZGQ4ODgwMmNiNmQzM2FlMTkyZjY2MGE1MzNjNTQ2OWZhNTZmNjJkNzE0ZTE2ZWNjMDJlNWZjODc4Y2E0YjAxNDAwMjk2MGY1ZmY5NGQ2OTY0ZTFmNzgyNzM4MzFiZmQwMTlkYTMyZGZhMmExOTE1Mjk4Y2NmMTZhYWE2N2ExNWZiNmJiNTJmNGVkMWMzM2UwZGMzYjRhYmQyMDkxMDVjNzk0MmVjMjlkNjA0Y2FiZDMyNWU1N2U1NTUxNzZmMzA1MmFhNzMzYmEzZjgyZDNiNmYzM2YzMzg5NDA2OTg5NDJkM2ZmZTI2ZjBmNTg3OGEwOTBkZGM4N2I4YzJkMTFlNWQ4MjQ1N2JkOWE5YTVkOWE5ODJjNWVkMGJmZTkwN2YzOGMzNzgxYWMwYzRiYTZiYzg0YjUyYTYzNTViMTMwM2E3NjE4Mjc2ZGZkMjM3NTk0ZGM5Y2RkYTY4N2U4MmFmOGUxMzgxMDRmMGFlMTc3NjUyZmJkZjBhZTU4ZDE0ODRkZTY1N2JhMjU3ZTJhMmY2NzgxYjliYjRmYWRmMmE1Nzg5OTcxNTBjMDRkZDk0MTI4YjNjODkwNDI2MmY3OGUwY2M2MWM5Nzg3MDE1YWI2NTFjZGY1NjQ4NjQxNmIxODYxNTQ4NDYyNGMyM2QxZDcwOTI4MzU4NjVkYTY4MmZmY2NjMmY0N2ZiNGQ4MTZjMDM1ODA2ZmExNjAzNjI5OGExNTNiYTY3MTU3MmMyZDdiNDZjOGM2OTgzYTFmNTY2YzUwZDZjYjEzNGJjYzlkODJhY2FhMWQ3MTM3MTI1NzcxMGVkMTE0ODBmODE3NTQwOTNiYTRjNWQ0NDA3OTczNzFlNmRhYjQwOTQ0MDA3YzQ2MDhmNWI1OTc0YjFiNzE4NzQyZDcyYTUwMzJhYmM2MTYxNTk5M2ZlYjI2ODlkODUzOTFhODMyZTExYjhhYjk3NjgzOWRkODA5NDM3ZmRjODhiNWIwN2JmMjlhZGRkM2ExNzBmMjFkMjRjMjVjMjIzYjExMzk2ZjViNTQ3YTlhNmNmYzVjYmEyOGQ5YjBiOGY0MzhhMDFmODI1ZWJjOTRlMTBkMDk5NjkyOTYyZjI5ZTdkM2EyMGJlMmVmNDRjN2FjZDRhMTI1ZTY5N2Q2NzI0YWQ3NjI5ZWTaBxAyZjJlYmFlNTI0ODE3YmZkNzQ3MzgxMTQ0MmE1NTY2Njc1M2YyOGRlYWM1YjRmY2RjMmU3YTI2ZTA2ZmM5ODM1MDYzYmE1YmViYjI3NTA0MjkzZGNhNDdkNjJlZjNjNGExNzY4MmZiNmI0MTM0M2JkN2Y5YzkyYmViOTI1ZGRkZjJkNzNiOTcyOTY5ZDZiMGI5ZTRhZjI0NzM0NTNiOTFhYmU1YTQ5YzdmZDUwYTllZjg1ZGRiZDQ4OGE5MzFjNmYwYTJhNDhiMTE0MGYyMzYyZThhNGNhYWMzMWRkZWY0MTdlMWI3M2ZjM2FmMzZmYTllMmQwYmRhZjZlOGI5MDY1Mjc4NzcwYjZjY2VlMjg5MTdhNDVmMjYzZjFiYTQ0MGNjZWZhZjMwNmI2NmEwNjhmMTIzNzAxMmRiMTJmZTgxYjBlNTIyNDgxYmRlMDExM2QyY2QwNzk5YWVmMzkyMzU1NjU4YzAyMGZlMGFjZGIxMzEzY2EzZTdmNWRmNGE2ZGYyNmYwZjU4NzhhMDkwZGRjODdiOGMyZDExZTVkODI0NTdiZDlhOWE1ZDlhOTgyYzVlZDBiZmU5MDdmMzhjMzc4MWFjMGM0YmE2YmM4NGI1MmE2MzU1YjEzMDNhNzYxODI3NmRmZDIzNzU5NGRjOWNkZGE2ODdlODJhZjhlMTM4MTE2NmM2YjY0NzhmMGFiMDVmODNlMWUzNzgzM2IyYWJjYjA5NDU3MjY5MDJjZDI4MGFkMjNkYjBmY2VmMDdlNTMyNTUzYWY1MTViMWJjZGQ3YTdjYTQ2ZDgxZjYzNDcyNWM2MmFmYmFjMWQwMjRiNWEyZjY4ZjUwYmNkN2ZiNTRmMjM3MDBmYmM4ZmIzZTVlNDc4MjVkYWY4ODkyYmM3MDdhNDFmODZhZTY4ZWI2OGY4YWQxMDI5NTY1MzA3Zjg1MzEwMDg4YTBkMjFjZDNjZDYwZTNmZDM2YjJlZGZlYzM3MGQyNTJlODRkYTIxM2ZjMzc1YmNmZTVmYTM5MDFkZTQyZGZmOTE0ZWJjZjEyYTNkYmFmY2NhODRiZDExMzI4ZmFhMTc3MjcxY2Y4NTEwNjc3ZjdmM2NmOGU0NDRlYzhlMWMzZDUyMzViOTg3YzNjZWRkYWQ2NTIxNGFiN2U1MGI0ZmEyZjZlNjE3MDk3ZjAyY2Q1YTdiMTcwZTJkMGQ0ZjBjMDRkZDk0MTI4YjNjODkwNDI2MmY3OGUwY2M2MWM5Nzg3MDE1YWI2NTFjZGY1NjQ4NjQxNmIxODYxNTQ4NDYyNGMyM2QxZDcwOTI4MzU4NjVkYTY4MmZmY2NjMmY0N2ZiNGQ4MTZjMDM1ODA2ZmExNjAzNjI5OGExNTNiYTY3MDAwMDAwMDcxMWQyZmZkOWM5YzM3M2MzMTYyN2E3YjdlZmFjNzRiMWZhMjcxN2UxMDlmMWI4Mjg3NmEwNWU1NzEyNmI5ZTVmMGZhMWEzOWUzZTk2NTM0MjU1ZjMwMzFkNTQ4NzcxMzlhMjk0NjZkNWMzOWI3ZDk5ZDA5YmYxMDA1ODAwY2E5ZTFiZDNlYTVjMzkzNDY2NWZiZGI0OTcwZThhNWRkODg4MDJjYjZkMzNhZTE5MmY2NjBhNTMzYzU0NjlmYTU2ZjYyZDcxNGUxNmVjYzAyZTVmYzg3OGNhNGIwMTQwMDI5NjBmNWZmOTRkNjk2NGUxZjc4MjczODMxYmZkMDE5ZGEzMmRmYTJhMTkxNTI5OGNjZjE2YWFhNjdhMTVmYjZiYjUyZjRlZDFjMzNlMGRjM2I0YWJkMjA5MTA1Yzc5NDJlYzI5ZDYwNGNhYmQzMjVlNTdlNTU1MTc2ZjMwNTJhYTczM2JhM2Y4MmQzYjZmMzNmMzM4OTQwNjk4OTQyZDNmZmUwMzJhYmM2MTYxNTk5M2ZlYjI2ODlkODUzOTFhODMyZTExYjhhYjk3NjgzOWRkODA5NDM3ZmRjODhiNWIwN2JmMTU3MmMyZDdiNDZjOGM2OTgzYTFmNTY2YzUwZDZjYjEzNGJjYzlkODJhY2FhMWQ3MTM3MTI1NzcxMGVkMTE0ODBmODE3NTQwOTNiYTRjNWQ0NDA3OTczNzFlNmRhYjQwOTQ0MDA3YzQ2MDhmNWI1OTc0YjFiNzE4NzQyZDcyYTUwNGYwYWUxNzc2NTJmYmRmMGFlNThkMTQ4NGRlNjU3YmEyNTdlMmEyZjY3ODFiOWJiNGZhZGYyYTU3ODk5NzE1MDAwMDAwMDEyOWFkZGQzYTE3MGYyMWQyNGMyNWMyMjNiMTEzOTZmNWI1NDdhOWE2Y2ZjNWNiYTI4ZDliMGI4ZjQzOGEwMWY4MjVlYmM5NGUxMGQwOTk2OTI5NjJmMjllN2QzYTIwYmUyZWY0NGM3YWNkNGExMjVlNjk3ZDY3MjRhZDc2MjllZNwAIFTMvczKzOPMrcy4PUzM6cztzJHM2cyaMczaMMyGzOLMsRfMq8zzaFFkzOnM8syNeGcLBZOSlMzoAwAAlMzQBwAAAJCRkZEApnYzLjAuMA==" }"#; // Parse the response and assert success - let proof_info: ProofInfoResponse = - serde_json::from_str(mockresponse).expect("Failed to parse mock response JSON"); + let proof_info = ProofInfoResponse { + circuit_type: CircuitType::Sp1, + verification_key: serde_json::from_str(manual_vkey).expect("Failed to parse hardcoded verifying key"), + proof: serde_json::from_str(manual_proof).expect("Failed to parse mock response JSON"), + ..Default::default() + }; // Extract proof and verify it can be converted to SP1 format let _ = proof_info From 8a0138078b9bf1834d7a16a16121e615511bd511 Mon Sep 17 00:00:00 2001 From: Katie McKeon Date: Wed, 26 Feb 2025 02:43:38 +0000 Subject: [PATCH 9/9] lint --- sindri-rs/src/integrations/sp1.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sindri-rs/src/integrations/sp1.rs b/sindri-rs/src/integrations/sp1.rs index d66fd68..8a4f8fc 100644 --- a/sindri-rs/src/integrations/sp1.rs +++ b/sindri-rs/src/integrations/sp1.rs @@ -133,7 +133,8 @@ mod tests { // Parse the response and assert success let proof_info = ProofInfoResponse { circuit_type: CircuitType::Sp1, - verification_key: serde_json::from_str(manual_vkey).expect("Failed to parse hardcoded verifying key"), + verification_key: serde_json::from_str(manual_vkey) + .expect("Failed to parse hardcoded verifying key"), proof: serde_json::from_str(manual_proof).expect("Failed to parse mock response JSON"), ..Default::default() };