SwaggerStableDiffusionWebui 1.0.394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +150 -0
- data/Rakefile +10 -0
- data/SwaggerStableDiffusionWebui.gemspec +38 -0
- data/docs/BodyDetectControlnetDetectPost.md +26 -0
- data/docs/DefaultApi.md +3127 -0
- data/docs/Estimation.md +30 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/LocationInner.md +15 -0
- data/docs/PredictBody.md +30 -0
- data/docs/ProgressRequest.md +20 -0
- data/docs/ProgressResponse.md +32 -0
- data/docs/QuicksettingsHint.md +20 -0
- data/docs/Request.md +15 -0
- data/docs/ResetBody.md +20 -0
- data/docs/ValidationError.md +22 -0
- data/git_push.sh +57 -0
- data/lib/SwaggerStableDiffusionWebui/api/default_api.rb +3027 -0
- data/lib/SwaggerStableDiffusionWebui/api_client.rb +391 -0
- data/lib/SwaggerStableDiffusionWebui/api_error.rb +58 -0
- data/lib/SwaggerStableDiffusionWebui/configuration.rb +288 -0
- data/lib/SwaggerStableDiffusionWebui/models/body_detect_controlnet_detect_post.rb +265 -0
- data/lib/SwaggerStableDiffusionWebui/models/estimation.rb +285 -0
- data/lib/SwaggerStableDiffusionWebui/models/http_validation_error.rb +221 -0
- data/lib/SwaggerStableDiffusionWebui/models/location_inner.rb +230 -0
- data/lib/SwaggerStableDiffusionWebui/models/predict_body.rb +283 -0
- data/lib/SwaggerStableDiffusionWebui/models/progress_request.rb +232 -0
- data/lib/SwaggerStableDiffusionWebui/models/progress_response.rb +301 -0
- data/lib/SwaggerStableDiffusionWebui/models/quicksettings_hint.rb +238 -0
- data/lib/SwaggerStableDiffusionWebui/models/request.rb +230 -0
- data/lib/SwaggerStableDiffusionWebui/models/reset_body.rb +238 -0
- data/lib/SwaggerStableDiffusionWebui/models/validation_error.rb +254 -0
- data/lib/SwaggerStableDiffusionWebui/version.rb +15 -0
- data/lib/SwaggerStableDiffusionWebui.rb +51 -0
- data/spec/api/default_api_spec.rb +574 -0
- data/spec/api_client_spec.rb +228 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/body_detect_controlnet_detect_post_spec.rb +58 -0
- data/spec/models/estimation_spec.rb +70 -0
- data/spec/models/http_validation_error_spec.rb +34 -0
- data/spec/models/location_inner_spec.rb +28 -0
- data/spec/models/predict_body_spec.rb +70 -0
- data/spec/models/progress_request_spec.rb +40 -0
- data/spec/models/progress_response_spec.rb +76 -0
- data/spec/models/quicksettings_hint_spec.rb +40 -0
- data/spec/models/request_spec.rb +28 -0
- data/spec/models/reset_body_spec.rb +40 -0
- data/spec/models/validation_error_spec.rb +46 -0
- data/spec/spec_helper.rb +111 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1c9b85c7eb7c292f348ed27a66d5ddc955c4d2322a160584cdcb348a59872609
|
4
|
+
data.tar.gz: 6fe6f74d4ae6268281fff08ba8b604cf3a1c822c89d91d4824e00c2343018bc2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4da69412a512ca9aa364d8e1be96502ef320751f9dd4a15595ba2d810adcb64867792713cf0fe216f23b0bea549bd5370c64f5a080f374c41d6ef2d2b4e1eef7
|
7
|
+
data.tar.gz: dbb4ebe69b45966bd07aaecb3e4a1638c2439e4372c5b387a35a1f30fdac3c3871c345457778ac81f76e7626b02a5dfa2e4dd79559ed61bf971b75d167bb1698
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui
|
2
|
+
|
3
|
+
SwaggerStableDiffusionWebui - the Ruby gem for the FastAPI
|
4
|
+
|
5
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
|
+
|
9
|
+
- API version: 0.1.0
|
10
|
+
- Package version: 1.0.394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
|
11
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build SwaggerStableDiffusionWebui.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./SwaggerStableDiffusionWebui-1.0.394ffa7b0a7fff3ec484bcd084e673a8b301ccc8.gem
|
27
|
+
```
|
28
|
+
|
29
|
+
(for development, run `gem install --dev ./SwaggerStableDiffusionWebui-1.0.394ffa7b0a7fff3ec484bcd084e673a8b301ccc8.gem` to install the development dependencies)
|
30
|
+
|
31
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
|
+
|
33
|
+
Finally add this to the Gemfile:
|
34
|
+
|
35
|
+
gem 'SwaggerStableDiffusionWebui', '~> 1.0.394ffa7b0a7fff3ec484bcd084e673a8b301ccc8'
|
36
|
+
|
37
|
+
### Install from Git
|
38
|
+
|
39
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
40
|
+
|
41
|
+
gem 'SwaggerStableDiffusionWebui', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
42
|
+
|
43
|
+
### Include the Ruby code directly
|
44
|
+
|
45
|
+
Include the Ruby code directly using `-I` as follows:
|
46
|
+
|
47
|
+
```shell
|
48
|
+
ruby -Ilib script.rb
|
49
|
+
```
|
50
|
+
|
51
|
+
## Getting Started
|
52
|
+
|
53
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
# Load the gem
|
57
|
+
require 'SwaggerStableDiffusionWebui'
|
58
|
+
|
59
|
+
api_instance = SwaggerStableDiffusionWebui::DefaultApi.new
|
60
|
+
opts = {
|
61
|
+
serialize: true # Boolean |
|
62
|
+
}
|
63
|
+
|
64
|
+
begin
|
65
|
+
#Api Info
|
66
|
+
result = api_instance.api_info_info_get(opts)
|
67
|
+
p result
|
68
|
+
rescue SwaggerStableDiffusionWebui::ApiError => e
|
69
|
+
puts "Exception when calling DefaultApi->api_info_info_get: #{e}"
|
70
|
+
end
|
71
|
+
|
72
|
+
```
|
73
|
+
|
74
|
+
## Documentation for API Endpoints
|
75
|
+
|
76
|
+
All URIs are relative to *http://localhost*
|
77
|
+
|
78
|
+
Class | Method | HTTP request | Description
|
79
|
+
------------ | ------------- | ------------- | -------------
|
80
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**api_info_info_get**](docs/DefaultApi.md#api_info_info_get) | **GET** /info | Api Info
|
81
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**api_info_info_get_0**](docs/DefaultApi.md#api_info_info_get_0) | **GET** /info/ | Api Info
|
82
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**app_id_app_id_get**](docs/DefaultApi.md#app_id_app_id_get) | **GET** /app_id/ | App Id
|
83
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**app_id_app_id_get_0**](docs/DefaultApi.md#app_id_app_id_get_0) | **GET** /app_id | App Id
|
84
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**build_resource_assets_path_get**](docs/DefaultApi.md#build_resource_assets_path_get) | **GET** /assets/{path} | Build Resource
|
85
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**detect_controlnet_detect_post**](docs/DefaultApi.md#detect_controlnet_detect_post) | **POST** /controlnet/detect | Detect
|
86
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**download_sysinfo_internal_sysinfo_get**](docs/DefaultApi.md#download_sysinfo_internal_sysinfo_get) | **GET** /internal/sysinfo | Download Sysinfo
|
87
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**favicon_favicon_ico_get**](docs/DefaultApi.md#favicon_favicon_ico_get) | **GET** /favicon.ico | Favicon
|
88
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**fetch_file_sd_extra_networks_thumb_get**](docs/DefaultApi.md#fetch_file_sd_extra_networks_thumb_get) | **GET** /sd_extra_networks/thumb | Fetch File
|
89
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**file_deprecated_file_path_get**](docs/DefaultApi.md#file_deprecated_file_path_get) | **GET** /file/{path} | File Deprecated
|
90
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**file_file_path_or_url_get**](docs/DefaultApi.md#file_file_path_or_url_get) | **GET** /file={path_or_url} | File
|
91
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**file_file_path_or_url_head**](docs/DefaultApi.md#file_file_path_or_url_head) | **HEAD** /file={path_or_url} | File
|
92
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_config_config_get**](docs/DefaultApi.md#get_config_config_get) | **GET** /config | Get Config
|
93
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_config_config_get_0**](docs/DefaultApi.md#get_config_config_get_0) | **GET** /config/ | Get Config
|
94
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_current_user_user_get**](docs/DefaultApi.md#get_current_user_user_get) | **GET** /user/ | Get Current User
|
95
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_current_user_user_get_0**](docs/DefaultApi.md#get_current_user_user_get_0) | **GET** /user | Get Current User
|
96
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_loras_sdapi_v1_loras_get**](docs/DefaultApi.md#get_loras_sdapi_v1_loras_get) | **GET** /sdapi/v1/loras | Get Loras
|
97
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_metadata_sd_extra_networks_metadata_get**](docs/DefaultApi.md#get_metadata_sd_extra_networks_metadata_get) | **GET** /sd_extra_networks/metadata | Get Metadata
|
98
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_queue_status_queue_status_get**](docs/DefaultApi.md#get_queue_status_queue_status_get) | **GET** /queue/status | Get Queue Status
|
99
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_token_token_get**](docs/DefaultApi.md#get_token_token_get) | **GET** /token/ | Get Token
|
100
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**get_token_token_get_0**](docs/DefaultApi.md#get_token_token_get_0) | **GET** /token | Get Token
|
101
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**lambda_internal_ping_get**](docs/DefaultApi.md#lambda_internal_ping_get) | **GET** /internal/ping | <Lambda>
|
102
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**lambda_internal_profile_startup_get**](docs/DefaultApi.md#lambda_internal_profile_startup_get) | **GET** /internal/profile-startup | <Lambda>
|
103
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**lambda_internal_sysinfo_download_get**](docs/DefaultApi.md#lambda_internal_sysinfo_download_get) | **GET** /internal/sysinfo-download | <Lambda>
|
104
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**login_check_login_check_get**](docs/DefaultApi.md#login_check_login_check_get) | **GET** /login_check/ | Login Check
|
105
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**login_check_login_check_get_0**](docs/DefaultApi.md#login_check_login_check_get_0) | **GET** /login_check | Login Check
|
106
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**login_login_post**](docs/DefaultApi.md#login_login_post) | **POST** /login/ | Login
|
107
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**login_login_post_0**](docs/DefaultApi.md#login_login_post_0) | **POST** /login | Login
|
108
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**main_get**](docs/DefaultApi.md#main_get) | **GET** / | Main
|
109
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**main_head**](docs/DefaultApi.md#main_head) | **HEAD** / | Main
|
110
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**model_list_controlnet_model_list_get**](docs/DefaultApi.md#model_list_controlnet_model_list_get) | **GET** /controlnet/model_list | Model List
|
111
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**module_list_controlnet_module_list_get**](docs/DefaultApi.md#module_list_controlnet_module_list_get) | **GET** /controlnet/module_list | Module List
|
112
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**predict_api_api_name_post**](docs/DefaultApi.md#predict_api_api_name_post) | **POST** /api/{api_name}/ | Predict
|
113
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**predict_api_api_name_post_0**](docs/DefaultApi.md#predict_api_api_name_post_0) | **POST** /api/{api_name} | Predict
|
114
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**predict_run_api_name_post**](docs/DefaultApi.md#predict_run_api_name_post) | **POST** /run/{api_name}/ | Predict
|
115
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**predict_run_api_name_post_0**](docs/DefaultApi.md#predict_run_api_name_post_0) | **POST** /run/{api_name} | Predict
|
116
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**progressapi_internal_progress_post**](docs/DefaultApi.md#progressapi_internal_progress_post) | **POST** /internal/progress | Progressapi
|
117
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**quicksettings_hint_internal_quicksettings_hint_get**](docs/DefaultApi.md#quicksettings_hint_internal_quicksettings_hint_get) | **GET** /internal/quicksettings-hint | Quicksettings Hint
|
118
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**refresh_loras_sdapi_v1_refresh_loras_post**](docs/DefaultApi.md#refresh_loras_sdapi_v1_refresh_loras_post) | **POST** /sdapi/v1/refresh-loras | Refresh Loras
|
119
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**reset_iterator_reset_post**](docs/DefaultApi.md#reset_iterator_reset_post) | **POST** /reset | Reset Iterator
|
120
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**reset_iterator_reset_post_0**](docs/DefaultApi.md#reset_iterator_reset_post_0) | **POST** /reset/ | Reset Iterator
|
121
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**reverse_proxy_proxy_url_path_get**](docs/DefaultApi.md#reverse_proxy_proxy_url_path_get) | **GET** /proxy={url_path} | Reverse Proxy
|
122
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**reverse_proxy_proxy_url_path_head**](docs/DefaultApi.md#reverse_proxy_proxy_url_path_head) | **HEAD** /proxy={url_path} | Reverse Proxy
|
123
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**robots_txt_robots_txt_get**](docs/DefaultApi.md#robots_txt_robots_txt_get) | **GET** /robots.txt | Robots Txt
|
124
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**settings_controlnet_settings_get**](docs/DefaultApi.md#settings_controlnet_settings_get) | **GET** /controlnet/settings | Settings
|
125
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**startup_events_startup_events_get**](docs/DefaultApi.md#startup_events_startup_events_get) | **GET** /startup-events | Startup Events
|
126
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**static_resource_static_path_get**](docs/DefaultApi.md#static_resource_static_path_get) | **GET** /static/{path} | Static Resource
|
127
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**theme_css_theme_css_get**](docs/DefaultApi.md#theme_css_theme_css_get) | **GET** /theme.css | Theme Css
|
128
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**upload_file_upload_post**](docs/DefaultApi.md#upload_file_upload_post) | **POST** /upload | Upload File
|
129
|
+
*SwaggerStableDiffusionWebui::DefaultApi* | [**version_controlnet_version_get**](docs/DefaultApi.md#version_controlnet_version_get) | **GET** /controlnet/version | Version
|
130
|
+
|
131
|
+
|
132
|
+
## Documentation for Models
|
133
|
+
|
134
|
+
- [SwaggerStableDiffusionWebui::BodyDetectControlnetDetectPost](docs/BodyDetectControlnetDetectPost.md)
|
135
|
+
- [SwaggerStableDiffusionWebui::Estimation](docs/Estimation.md)
|
136
|
+
- [SwaggerStableDiffusionWebui::HTTPValidationError](docs/HTTPValidationError.md)
|
137
|
+
- [SwaggerStableDiffusionWebui::LocationInner](docs/LocationInner.md)
|
138
|
+
- [SwaggerStableDiffusionWebui::PredictBody](docs/PredictBody.md)
|
139
|
+
- [SwaggerStableDiffusionWebui::ProgressRequest](docs/ProgressRequest.md)
|
140
|
+
- [SwaggerStableDiffusionWebui::ProgressResponse](docs/ProgressResponse.md)
|
141
|
+
- [SwaggerStableDiffusionWebui::QuicksettingsHint](docs/QuicksettingsHint.md)
|
142
|
+
- [SwaggerStableDiffusionWebui::Request](docs/Request.md)
|
143
|
+
- [SwaggerStableDiffusionWebui::ResetBody](docs/ResetBody.md)
|
144
|
+
- [SwaggerStableDiffusionWebui::ValidationError](docs/ValidationError.md)
|
145
|
+
|
146
|
+
|
147
|
+
## Documentation for Authorization
|
148
|
+
|
149
|
+
Endpoints do not require authorization.
|
150
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#FastAPI
|
5
|
+
|
6
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 6.6.0
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "SwaggerStableDiffusionWebui/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "SwaggerStableDiffusionWebui"
|
20
|
+
s.version = SwaggerStableDiffusionWebui::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["KevinColemanInc"]
|
23
|
+
s.email = ["kevin@sparkstart.io"]
|
24
|
+
s.homepage = "https://github.com/KevinColemanInc/rb-swagger-stable-diffusion-webui"
|
25
|
+
s.summary = "FastAPI Ruby Gem"
|
26
|
+
s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
27
|
+
s.license = "Unlicense"
|
28
|
+
s.required_ruby_version = ">= 2.7"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
36
|
+
s.executables = []
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# SwaggerStableDiffusionWebui::BodyDetectControlnetDetectPost
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **controlnet_module** | **String** | | [optional][default to 'none'] |
|
8
|
+
| **controlnet_input_images** | **Array<String>** | | [optional] |
|
9
|
+
| **controlnet_processor_res** | **Integer** | | [optional][default to 512] |
|
10
|
+
| **controlnet_threshold_a** | **Float** | | [optional][default to 64] |
|
11
|
+
| **controlnet_threshold_b** | **Float** | | [optional][default to 64] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'SwaggerStableDiffusionWebui'
|
17
|
+
|
18
|
+
instance = SwaggerStableDiffusionWebui::BodyDetectControlnetDetectPost.new(
|
19
|
+
controlnet_module: null,
|
20
|
+
controlnet_input_images: null,
|
21
|
+
controlnet_processor_res: null,
|
22
|
+
controlnet_threshold_a: null,
|
23
|
+
controlnet_threshold_b: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|