From f450dcbb5725239a41e76166edf0a4d1f1c13168 Mon Sep 17 00:00:00 2001 From: bymyself Date: Tue, 17 Jun 2025 13:05:59 -0700 Subject: [PATCH] [feat] Add SecurityLevel and RiskLevel enums to OpenAPI schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- openapi.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 6bd65c27..5cf094c8 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -227,6 +227,14 @@ components: type: string enum: [git-clone, copy, cnr] 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: allOf: - $ref: '#/components/schemas/ManagerPackInfo' @@ -640,6 +648,42 @@ components: type: object additionalProperties: true 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] BatchExecutionRecord: type: object