mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-16 01:25:03 +08:00
[feat] Add SecurityLevel and RiskLevel enums to OpenAPI schema
- Add SecurityLevel enum with strong/normal/normal-/weak values - Add RiskLevel enum with block/high/middle values - These will be used for security policy management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
32e003965a
commit
f450dcbb57
44
openapi.yaml
44
openapi.yaml
@ -227,6 +227,14 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
enum: [git-clone, copy, cnr]
|
enum: [git-clone, copy, cnr]
|
||||||
description: Type of installation used for the pack
|
description: Type of installation used for the pack
|
||||||
|
SecurityLevel:
|
||||||
|
type: string
|
||||||
|
enum: [strong, normal, normal-, weak]
|
||||||
|
description: Security level configuration (from most to least restrictive)
|
||||||
|
RiskLevel:
|
||||||
|
type: string
|
||||||
|
enum: [block, high, middle]
|
||||||
|
description: Risk classification for operations
|
||||||
ManagerPack:
|
ManagerPack:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/ManagerPackInfo'
|
- $ref: '#/components/schemas/ManagerPackInfo'
|
||||||
@ -640,6 +648,42 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
description: ComfyUI Manager configuration settings
|
description: ComfyUI Manager configuration settings
|
||||||
|
comfyui_root_path:
|
||||||
|
type: [string, 'null']
|
||||||
|
description: ComfyUI root installation directory
|
||||||
|
model_paths:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
description: Map of model types to their configured paths
|
||||||
|
manager_version:
|
||||||
|
type: [string, 'null']
|
||||||
|
description: ComfyUI Manager version
|
||||||
|
security_level:
|
||||||
|
$ref: '#/components/schemas/SecurityLevel'
|
||||||
|
network_mode:
|
||||||
|
type: [string, 'null']
|
||||||
|
description: Network mode (online, offline, private)
|
||||||
|
cli_args:
|
||||||
|
type: object
|
||||||
|
additionalProperties: true
|
||||||
|
description: Selected ComfyUI CLI arguments
|
||||||
|
custom_nodes_count:
|
||||||
|
type: [integer, 'null']
|
||||||
|
description: Total number of custom node packages
|
||||||
|
minimum: 0
|
||||||
|
failed_imports:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
description: List of custom nodes that failed to import
|
||||||
|
pip_packages:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
description: Map of installed pip packages to their versions
|
||||||
required: [snapshot_time, comfyui_version, python_version, platform_info]
|
required: [snapshot_time, comfyui_version, python_version, platform_info]
|
||||||
BatchExecutionRecord:
|
BatchExecutionRecord:
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user