Mayo
test: Rust integration tests + Vitest UI tests
5242e6a unverified
|
Raw
History Blame Contribute Delete
10.6 kB

Rust API client for koharu-client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version:
  • Package version: 0.0.0
  • Generator version: 7.21.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named koharu-client and add the following to Cargo.toml under [dependencies]:

koharu-client = { path = "./koharu-client" }

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi add_image_layer POST /pages/{id}/image-layers
DefaultApi apply_command POST /history/apply
DefaultApi cancel_operation DELETE /operations/{id}
DefaultApi clear_provider_secret DELETE /config/providers/{id}/secret Clear a provider's keyring secret. The provider entry itself is kept.
DefaultApi create_pages POST /pages
DefaultApi create_project POST /projects
DefaultApi delete_current_llm DELETE /llm/current
DefaultApi delete_current_project DELETE /projects/current
DefaultApi events GET /events
DefaultApi export_current_project POST /projects/current/export
DefaultApi fetch_google_font POST /google-fonts/{family}/fetch
DefaultApi get_blob GET /blobs/{hash}
DefaultApi get_catalog GET /llm/catalog
DefaultApi get_config GET /config
DefaultApi get_current_llm GET /llm/current
DefaultApi get_engine_catalog GET /engines
DefaultApi get_google_font_file GET /google-fonts/{family}/{file}
DefaultApi get_google_fonts_catalog GET /google-fonts
DefaultApi get_meta GET /meta
DefaultApi get_page_thumbnail GET /pages/{id}/thumbnail
DefaultApi get_scene_bin GET /scene.bin
DefaultApi get_scene_json GET /scene.json
DefaultApi import_project POST /projects/import
DefaultApi list_fonts GET /fonts
DefaultApi list_projects GET /projects
DefaultApi patch_config PATCH /config
DefaultApi put_current_llm PUT /llm/current
DefaultApi put_current_project PUT /projects/current
DefaultApi put_mask PUT /pages/{id}/masks/{role} Upsert the Mask { role } node on a page with the raw image bytes in the body. Emits Op::UpdateNode if a mask of that role exists, else Op::AddNode. Used by the repair-brush / segment-edit flow; the follow-up localized inpaint is a separate POST /pipelines call.
DefaultApi redo POST /history/redo
DefaultApi set_provider_secret PUT /config/providers/{id}/secret Save (or overwrite) the keyring secret for a provider. Creates the provider entry in config.providers if it didn't exist. PUT because setting the secret is idempotent for the same body.
DefaultApi start_download POST /downloads
DefaultApi start_pipeline POST /pipelines
DefaultApi undo POST /history/undo

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author