Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Matt Miller
69f9848c39 openapi: promote workflow_templates_source enum to named schema
Cloud uses oapi-codegen to generate Go server code from this spec. With
nullable + inline enum, oapi-codegen 3.1 emits a reference to a generated
op-scoped type (e.g. `GetFeatures200JSONResponseWorkflowTemplatesSource`)
but doesn't emit the type definition itself — the generated code fails
to compile.

Promoting the enum to a top-level `WorkflowTemplatesSource` component
schema (referenced via allOf + $ref) makes oapi-codegen emit the type
declaration once at the schema name, and consumers reference it cleanly.

No behavioral change — same enum values, same nullability.
2026-05-27 00:39:43 -07:00
Matt Miller
6c543faf86 openapi: fold cloud-only fields into shared schemas
Cloud-runtime ComfyUI populates these fields; local ComfyUI does not.
Folded into the canonical OSS spec as nullable + x-runtime: [cloud] with
a [cloud-only] description prefix so one shared spec accommodates both
runtimes without per-runtime forks.

- AssetUpdated.display_name
- BillingEvent: event_id, event_type, params
- FeedbackRequest: content, metadata, rating
- HistoryEntry: create_time, extra_data, priority, prompt_id, workflow_id
- HubProfile: description, website_urls
- JobDetailResponse.workflow_id
- ListAssetsResponse.next_cursor
- SystemStatsResponse: cloud_version, comfyui_frontend_version, workflow_templates_version
- TaskResponse.error_message
2026-05-27 00:16:52 -07:00
Matt Miller
dea08e2ff4 openapi: tighten revokeWorkspaceAPIKey.id to uuid format
revokeWorkspaceAPIKey is x-runtime:[cloud]; cloud's runtime treats the
API key ID as a UUID. Adds format: uuid to align the generated type with
cloud's handler. No OSS-local consumer (cloud-only endpoint).
2026-05-26 23:56:14 -07:00
Matt Miller
6df7bf1095 openapi: tighten deleteSecret.id to uuid format
DeleteSecret is an x-runtime:[cloud] endpoint; cloud's runtime treats the
secret ID as a UUID. Adds format: uuid to the path parameter so the generated
type matches cloud's handler. No OSS-local consumer (cloud-only endpoint).
2026-05-26 23:54:12 -07:00
Matt Miller
3d39fcc5f7 openapi: add AssetInfo.in_library (nullable, x-runtime:[cloud])
AssetInfo is already a wholly cloud-only schema; in_library is added as a
nullable cloud-populated property to match the field cloud's runtime returns.
2026-05-26 23:39:36 -07:00
Matt Miller
93572030f6 openapi: add cloud-only fields to shared schemas (nullable, x-runtime:[cloud])
Incremental folds for the cloud↔OSS spec reconciliation. Adds fields that
cloud's runtime returns but the shared spec doesn't yet define, as nullable +
x-runtime:[cloud] with a [cloud-only] description prefix. Additive and
non-breaking for OSS/local (the fields are null there).

- Asset.display_name
2026-05-26 23:34:27 -07:00

View file

@ -887,9 +887,9 @@ paths:
x-runtime: [cloud]
description: "[cloud-only] Version identifier for the workflow templates bundle. Local ComfyUI returns null."
workflow_templates_source:
type: string
nullable: true
enum: [dynamic_config_override, workflow_templates_version_json]
allOf:
- $ref: "#/components/schemas/WorkflowTemplatesSource"
x-runtime: [cloud]
description: "[cloud-only] How the templates version was resolved. Local ComfyUI returns null."
@ -5628,6 +5628,7 @@ paths:
required: true
schema:
type: string
format: uuid
description: The API key ID.
responses:
"204":
@ -6758,6 +6759,7 @@ paths:
required: true
schema:
type: string
format: uuid
description: The secret ID.
responses:
"204":
@ -7525,6 +7527,39 @@ components:
type: object
description: Metadata about the execution and nodes
additionalProperties: true
create_time:
type: integer
format: int64
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Unix-ms timestamp when the history entry was created."
extra_data:
type: object
additionalProperties: true
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Workflow-attached extra_data passed through with the prompt."
priority:
type: number
format: double
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Scheduling priority assigned to the history entry."
prompt_id:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] ID of the prompt this history entry belongs to."
workflow_id:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] ID of the workflow associated with the history entry."
HistoryManageRequest:
type: object
@ -7647,6 +7682,12 @@ components:
execution_meta:
type: object
additionalProperties: true
workflow_id:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] ID of the workflow associated with this job."
ExecutionError:
type: object
@ -7826,6 +7867,24 @@ components:
# -------------------------------------------------------------------
# Node / Object Info
# -------------------------------------------------------------------
cloud_version:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Version identifier of the cloud control plane."
comfyui_frontend_version:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Pinned ComfyUI frontend version served by the cloud."
workflow_templates_version:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Pinned workflow-templates version served by the cloud."
NodeInfo:
type: object
description: 'Definition of a registered node class: its inputs, outputs, category, and display metadata.'
@ -8099,6 +8158,12 @@ components:
name:
type: string
description: Name of the asset file
display_name:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Human-friendly display name for the asset. Cloud-populated; null in local ComfyUI."
hash:
type: string
nullable: true
@ -8221,6 +8286,12 @@ components:
updated_at:
type: string
format: date-time
display_name:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Human-friendly display name for the updated asset."
ListAssetsResponse:
type: object
@ -8238,6 +8309,12 @@ components:
type: integer
has_more:
type: boolean
next_cursor:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Opaque cursor for fetching the next page of assets; absent when no more pages."
TagInfo:
type: object
@ -8966,6 +9043,20 @@ components:
created_at:
type: string
format: date-time
description:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Profile description / bio."
website_urls:
type: array
items:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] List of websites/social links associated with the profile."
HubWorkflow:
type: object
@ -9557,6 +9648,25 @@ components:
created_at:
type: string
format: date-time
event_id:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Unique identifier of the billing event."
event_type:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Type/category of the billing event."
params:
type: object
additionalProperties: true
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Event-specific parameters (free-form map)."
BillingEventList:
type: object
@ -10056,6 +10166,42 @@ components:
size_bytes:
type: integer
format: int64
in_library:
type: boolean
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Whether the asset is present in the user's library (vs. a discovery/search result)."
name:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Display name of the asset."
model:
type: boolean
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Whether the asset is a model file (vs. a generic input/output)."
public:
type: boolean
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Whether the asset is publicly visible (vs. private to the user)."
preview_url:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] URL of a preview/thumbnail rendition for the asset."
storage_url:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] URL to fetch the asset's stored content."
BulkRevokeAPIKeysResponse:
type: object
@ -10202,6 +10348,12 @@ components:
format: date-time
error:
type: string
error_message:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Human-readable error message when the task fails."
TasksListResponse:
type: object
@ -11747,3 +11899,30 @@ components:
message:
type: string
description: User-provided feedback message
content:
type: string
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Free-form feedback text body."
metadata:
type: object
additionalProperties: true
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Submitter-supplied metadata attached to the feedback."
rating:
type: integer
nullable: true
x-runtime:
- cloud
description: "[cloud-only] Numeric rating (e.g. 1-5 stars) associated with the feedback."
WorkflowTemplatesSource:
type: string
x-runtime: [cloud]
enum:
- dynamic_config_override
- workflow_templates_version_json
description: "[cloud-only] How the workflow templates version was resolved (config override vs. bundled JSON)."