From d7387c725c7b724830e0372d4e2009ce42c726ce Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Sat, 23 May 2026 23:52:10 +0200 Subject: [PATCH] feat(swagger): update swagger (#9962) Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com> --- swagger/docs.go | 39 +++++++++++++++++++++++++++++++++++++++ swagger/swagger.json | 39 +++++++++++++++++++++++++++++++++++++++ swagger/swagger.yaml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+) diff --git a/swagger/docs.go b/swagger/docs.go index 372acd2ca..de32b3f4a 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -3236,6 +3236,38 @@ const docTemplate = `{ } } }, + "galleryop.NodeProgress": { + "type": "object", + "properties": { + "current": { + "type": "string" + }, + "error": { + "type": "string" + }, + "file_name": { + "type": "string" + }, + "node_id": { + "type": "string" + }, + "node_name": { + "type": "string" + }, + "percentage": { + "type": "number" + }, + "phase": { + "type": "string" + }, + "status": { + "type": "string" + }, + "total": { + "type": "string" + } + } + }, "galleryop.OpStatus": { "type": "object", "properties": { @@ -3267,6 +3299,13 @@ const docTemplate = `{ "message": { "type": "string" }, + "nodes": { + "description": "Nodes is the per-node breakdown for a fanned-out backend install.\nPopulated by DistributedBackendManager (per-node terminal status)\nand by the Phase 2 progress bridge (per-byte ticks). The\n/api/operations handler surfaces this so the UI can render an\nexpandable per-node view of an in-flight install.", + "type": "array", + "items": { + "$ref": "#/definitions/galleryop.NodeProgress" + } + }, "processed": { "type": "boolean" }, diff --git a/swagger/swagger.json b/swagger/swagger.json index 6010bce8f..7e6d59d59 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -3233,6 +3233,38 @@ } } }, + "galleryop.NodeProgress": { + "type": "object", + "properties": { + "current": { + "type": "string" + }, + "error": { + "type": "string" + }, + "file_name": { + "type": "string" + }, + "node_id": { + "type": "string" + }, + "node_name": { + "type": "string" + }, + "percentage": { + "type": "number" + }, + "phase": { + "type": "string" + }, + "status": { + "type": "string" + }, + "total": { + "type": "string" + } + } + }, "galleryop.OpStatus": { "type": "object", "properties": { @@ -3264,6 +3296,13 @@ "message": { "type": "string" }, + "nodes": { + "description": "Nodes is the per-node breakdown for a fanned-out backend install.\nPopulated by DistributedBackendManager (per-node terminal status)\nand by the Phase 2 progress bridge (per-byte ticks). The\n/api/operations handler surfaces this so the UI can render an\nexpandable per-node view of an in-flight install.", + "type": "array", + "items": { + "$ref": "#/definitions/galleryop.NodeProgress" + } + }, "processed": { "type": "boolean" }, diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 3a6485402..139301943 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -210,6 +210,27 @@ definitions: $ref: '#/definitions/gallery.NodeDriftInfo' type: array type: object + galleryop.NodeProgress: + properties: + current: + type: string + error: + type: string + file_name: + type: string + node_id: + type: string + node_name: + type: string + percentage: + type: number + phase: + type: string + status: + type: string + total: + type: string + type: object galleryop.OpStatus: properties: cancellable: @@ -232,6 +253,16 @@ definitions: type: string message: type: string + nodes: + description: |- + Nodes is the per-node breakdown for a fanned-out backend install. + Populated by DistributedBackendManager (per-node terminal status) + and by the Phase 2 progress bridge (per-byte ticks). The + /api/operations handler surfaces this so the UI can render an + expandable per-node view of an in-flight install. + items: + $ref: '#/definitions/galleryop.NodeProgress' + type: array processed: type: boolean progress: