mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-15 02:49:18 +08:00
chore(openapi): sync shared API contract from cloud@bcb8f5f
Some checks failed
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Build package / Build Test (3.10) (push) Has been cancelled
Build package / Build Test (3.11) (push) Has been cancelled
Build package / Build Test (3.12) (push) Has been cancelled
Build package / Build Test (3.13) (push) Has been cancelled
Build package / Build Test (3.14) (push) Has been cancelled
Some checks failed
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Build package / Build Test (3.10) (push) Has been cancelled
Build package / Build Test (3.11) (push) Has been cancelled
Build package / Build Test (3.12) (push) Has been cancelled
Build package / Build Test (3.13) (push) Has been cancelled
Build package / Build Test (3.14) (push) Has been cancelled
This commit is contained in:
parent
1377a2f729
commit
7c5d93499f
45
openapi.yaml
45
openapi.yaml
@ -7,18 +7,18 @@ components:
|
|||||||
description: Timestamp when the asset was created
|
description: Timestamp when the asset was created
|
||||||
format: date-time
|
format: date-time
|
||||||
type: string
|
type: string
|
||||||
|
display_name:
|
||||||
|
description: Display name of the asset. Mirrors name for backwards compatibility.
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
file_path:
|
||||||
|
description: Relative path in global-namespace-root form (e.g. "models/checkpoints/flux.safetensors")
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
hash:
|
hash:
|
||||||
description: Blake3 hash of the asset content.
|
description: Blake3 hash of the asset content.
|
||||||
pattern: ^blake3:[a-f0-9]{64}$
|
pattern: ^blake3:[a-f0-9]{64}$
|
||||||
type: string
|
type: string
|
||||||
loader_path:
|
|
||||||
description: The value a loader consumes to load this asset. Null when no loader can resolve the file.
|
|
||||||
nullable: true
|
|
||||||
type: string
|
|
||||||
display_name:
|
|
||||||
description: Human-facing label for the asset. Not unique.
|
|
||||||
nullable: true
|
|
||||||
type: string
|
|
||||||
id:
|
id:
|
||||||
description: Unique identifier for the asset
|
description: Unique identifier for the asset
|
||||||
format: uuid
|
format: uuid
|
||||||
@ -144,6 +144,14 @@ components:
|
|||||||
AssetUpdated:
|
AssetUpdated:
|
||||||
description: Response returned when an existing asset is successfully updated.
|
description: Response returned when an existing asset is successfully updated.
|
||||||
properties:
|
properties:
|
||||||
|
display_name:
|
||||||
|
description: Display name of the asset. Mirrors name for backwards compatibility.
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
file_path:
|
||||||
|
description: Relative path in global-namespace-root form (e.g. "models/checkpoints/flux.safetensors")
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
hash:
|
hash:
|
||||||
description: Blake3 hash of the asset content.
|
description: Blake3 hash of the asset content.
|
||||||
pattern: ^blake3:[a-f0-9]{64}$
|
pattern: ^blake3:[a-f0-9]{64}$
|
||||||
@ -775,14 +783,6 @@ components:
|
|||||||
ModelFolder:
|
ModelFolder:
|
||||||
description: Represents a folder containing models
|
description: Represents a folder containing models
|
||||||
properties:
|
properties:
|
||||||
extensions:
|
|
||||||
description: The folder's registered file-extension allowlist. An empty array means the folder accepts any extension (match-all).
|
|
||||||
example:
|
|
||||||
- .ckpt
|
|
||||||
- .safetensors
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
folders:
|
folders:
|
||||||
description: List of paths where models of this type are stored
|
description: List of paths where models of this type are stored
|
||||||
example:
|
example:
|
||||||
@ -1644,7 +1644,7 @@ paths:
|
|||||||
format: uuid
|
format: uuid
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
description: JSON-encoded array of tag strings. For new byte uploads, include exactly one destination role (`input`, `output`, or `models`); `models` uploads also require exactly one `model_type:<folder_name>` tag. Extra tags are stored as labels and do not create path components.
|
description: JSON-encoded array of freeform tag strings, e.g. '["models","checkpoint"]'. Common types include "models", "input", "output", and "temp", but any tag can be used in any order.
|
||||||
type: string
|
type: string
|
||||||
user_metadata:
|
user_metadata:
|
||||||
description: Custom JSON metadata as a string
|
description: Custom JSON metadata as a string
|
||||||
@ -1829,7 +1829,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Asset'
|
$ref: '#/components/schemas/AssetUpdated'
|
||||||
description: Asset updated successfully
|
description: Asset updated successfully
|
||||||
"400":
|
"400":
|
||||||
content:
|
content:
|
||||||
@ -2470,9 +2470,6 @@ paths:
|
|||||||
supports_preview_metadata:
|
supports_preview_metadata:
|
||||||
description: Whether the server supports preview metadata
|
description: Whether the server supports preview metadata
|
||||||
type: boolean
|
type: boolean
|
||||||
supports_model_type_tags:
|
|
||||||
description: Whether the server supports namespaced model type asset tags
|
|
||||||
type: boolean
|
|
||||||
type: object
|
type: object
|
||||||
description: Success
|
description: Success
|
||||||
headers:
|
headers:
|
||||||
@ -3300,6 +3297,12 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
description: Invalid request parameters
|
description: Invalid request parameters
|
||||||
|
"401":
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
description: Unauthorized - Authentication required
|
||||||
"500":
|
"500":
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user