Skip to content

Commit 164a4c4

Browse files
[chore] Update Comfy Registry API types from comfy-api@af72ba5 (#4264)
Co-authored-by: bmcomfy <[email protected]>
1 parent 47145ce commit 164a4c4

File tree

1 file changed

+271
-24
lines changed

1 file changed

+271
-24
lines changed

src/types/comfyRegistryTypes.ts

Lines changed: 271 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8742,16 +8742,42 @@ export interface components {
87428742
MoonvalleyUploadResponse: {
87438743
access_url?: string
87448744
}
8745+
/** @description GitHub release webhook payload based on official webhook documentation */
87458746
GithubReleaseWebhook: {
8746-
/** @description The action performed on the release */
8747-
action: string
8747+
/**
8748+
* @description The action performed on the release
8749+
* @enum {string}
8750+
*/
8751+
action:
8752+
| 'published'
8753+
| 'unpublished'
8754+
| 'created'
8755+
| 'edited'
8756+
| 'deleted'
8757+
| 'prereleased'
8758+
| 'released'
8759+
/** @description The release object */
87488760
release: {
8761+
/** @description The ID of the release */
8762+
id: number
8763+
/** @description The node ID of the release */
8764+
node_id: string
8765+
/** @description The API URL of the release */
8766+
url: string
8767+
/** @description The HTML URL of the release */
8768+
html_url: string
8769+
/** @description The URL to the release assets */
8770+
assets_url?: string
8771+
/** @description The URL to upload release assets */
8772+
upload_url?: string
87498773
/** @description The tag name of the release */
87508774
tag_name: string
8775+
/** @description The branch or commit the release was created from */
8776+
target_commitish: string
87518777
/** @description The name of the release */
8752-
name: string
8778+
name?: string | null
87538779
/** @description The release notes/body */
8754-
body: string
8780+
body?: string | null
87558781
/** @description Whether the release is a draft */
87568782
draft: boolean
87578783
/** @description Whether the release is a prerelease */
@@ -8760,33 +8786,228 @@ export interface components {
87608786
* Format: date-time
87618787
* @description When the release was created
87628788
*/
8763-
created_at?: string
8789+
created_at: string
87648790
/**
87658791
* Format: date-time
87668792
* @description When the release was published
87678793
*/
8768-
published_at?: string
8794+
published_at?: string | null
8795+
author: components['schemas']['GithubUser']
87698796
/** @description URL to the tarball */
8770-
tarball_url?: string
8797+
tarball_url: string
87718798
/** @description URL to the zipball */
8772-
zipball_url?: string
8773-
/** @description The branch or commit the release was created from */
8774-
target_commitish: string
8775-
}
8776-
repository: {
8777-
/** @description The name of the repository */
8778-
name: string
8779-
/** @description The full name of the repository (owner/repo) */
8780-
full_name: string
8781-
/** @description The HTML URL of the repository */
8782-
html_url: string
8783-
/** @description The clone URL of the repository */
8784-
clone_url: string
8785-
}
8799+
zipball_url: string
8800+
/** @description Array of release assets */
8801+
assets: components['schemas']['GithubReleaseAsset'][]
8802+
}
8803+
repository: components['schemas']['GithubRepository']
8804+
sender: components['schemas']['GithubUser']
8805+
organization?: components['schemas']['GithubOrganization']
8806+
installation?: components['schemas']['GithubInstallation']
8807+
enterprise?: components['schemas']['GithubEnterprise']
8808+
}
8809+
/** @description A GitHub user */
8810+
GithubUser: {
8811+
/** @description The user's login name */
8812+
login: string
8813+
/** @description The user's ID */
8814+
id: number
8815+
/** @description The user's node ID */
8816+
node_id: string
8817+
/** @description URL to the user's avatar */
8818+
avatar_url: string
8819+
/** @description The user's gravatar ID */
8820+
gravatar_id?: string | null
8821+
/** @description The API URL of the user */
8822+
url: string
8823+
/** @description The HTML URL of the user */
8824+
html_url: string
8825+
/**
8826+
* @description The type of user
8827+
* @enum {string}
8828+
*/
8829+
type: 'Bot' | 'User' | 'Organization'
8830+
/** @description Whether the user is a site admin */
8831+
site_admin: boolean
8832+
}
8833+
/** @description A GitHub repository */
8834+
GithubRepository: {
8835+
/** @description The repository ID */
8836+
id: number
8837+
/** @description The repository node ID */
8838+
node_id: string
8839+
/** @description The name of the repository */
8840+
name: string
8841+
/** @description The full name of the repository (owner/repo) */
8842+
full_name: string
8843+
/** @description Whether the repository is private */
8844+
private: boolean
8845+
owner: components['schemas']['GithubUser']
8846+
/** @description The HTML URL of the repository */
8847+
html_url: string
8848+
/** @description The repository description */
8849+
description?: string | null
8850+
/** @description Whether the repository is a fork */
8851+
fork: boolean
8852+
/** @description The API URL of the repository */
8853+
url: string
8854+
/** @description The clone URL of the repository */
8855+
clone_url: string
8856+
/** @description The git URL of the repository */
8857+
git_url: string
8858+
/** @description The SSH URL of the repository */
8859+
ssh_url: string
8860+
/** @description The default branch of the repository */
8861+
default_branch: string
8862+
/**
8863+
* Format: date-time
8864+
* @description When the repository was created
8865+
*/
8866+
created_at: string
8867+
/**
8868+
* Format: date-time
8869+
* @description When the repository was last updated
8870+
*/
8871+
updated_at: string
8872+
/**
8873+
* Format: date-time
8874+
* @description When the repository was last pushed to
8875+
*/
8876+
pushed_at: string
8877+
}
8878+
/** @description A GitHub release asset */
8879+
GithubReleaseAsset: {
8880+
/** @description The asset ID */
8881+
id: number
8882+
/** @description The asset node ID */
8883+
node_id: string
8884+
/** @description The name of the asset */
8885+
name: string
8886+
/** @description The label of the asset */
8887+
label?: string | null
8888+
/** @description The content type of the asset */
8889+
content_type: string
8890+
/**
8891+
* @description The state of the asset
8892+
* @enum {string}
8893+
*/
8894+
state: 'uploaded' | 'open'
8895+
/** @description The size of the asset in bytes */
8896+
size: number
8897+
/** @description The number of downloads */
8898+
download_count: number
8899+
/**
8900+
* Format: date-time
8901+
* @description When the asset was created
8902+
*/
8903+
created_at: string
8904+
/**
8905+
* Format: date-time
8906+
* @description When the asset was last updated
8907+
*/
8908+
updated_at: string
8909+
/** @description The browser download URL */
8910+
browser_download_url: string
8911+
uploader: components['schemas']['GithubUser']
8912+
}
8913+
/** @description A GitHub organization */
8914+
GithubOrganization: {
8915+
/** @description The organization's login name */
8916+
login: string
8917+
/** @description The organization ID */
8918+
id: number
8919+
/** @description The organization node ID */
8920+
node_id: string
8921+
/** @description The API URL of the organization */
8922+
url: string
8923+
/** @description The API URL of the organization's repositories */
8924+
repos_url: string
8925+
/** @description The API URL of the organization's events */
8926+
events_url: string
8927+
/** @description The API URL of the organization's hooks */
8928+
hooks_url: string
8929+
/** @description The API URL of the organization's issues */
8930+
issues_url: string
8931+
/** @description The API URL of the organization's members */
8932+
members_url: string
8933+
/** @description The API URL of the organization's public members */
8934+
public_members_url: string
8935+
/** @description URL to the organization's avatar */
8936+
avatar_url: string
8937+
/** @description The organization description */
8938+
description?: string | null
8939+
}
8940+
/** @description A GitHub App installation */
8941+
GithubInstallation: {
8942+
/** @description The installation ID */
8943+
id: number
8944+
account: components['schemas']['GithubUser']
8945+
/**
8946+
* @description Repository selection for the installation
8947+
* @enum {string}
8948+
*/
8949+
repository_selection: 'selected' | 'all'
8950+
/** @description The API URL for access tokens */
8951+
access_tokens_url: string
8952+
/** @description The API URL for repositories */
8953+
repositories_url: string
8954+
/** @description The HTML URL of the installation */
8955+
html_url: string
8956+
/** @description The GitHub App ID */
8957+
app_id: number
8958+
/** @description The target ID */
8959+
target_id: number
8960+
/** @description The target type */
8961+
target_type: string
8962+
/** @description The installation permissions */
8963+
permissions: Record<string, never>
8964+
/** @description The events the installation subscribes to */
8965+
events: string[]
8966+
/**
8967+
* Format: date-time
8968+
* @description When the installation was created
8969+
*/
8970+
created_at: string
8971+
/**
8972+
* Format: date-time
8973+
* @description When the installation was last updated
8974+
*/
8975+
updated_at: string
8976+
/** @description The single file name if applicable */
8977+
single_file_name?: string | null
8978+
}
8979+
/** @description A GitHub enterprise */
8980+
GithubEnterprise: {
8981+
/** @description The enterprise ID */
8982+
id: number
8983+
/** @description The enterprise slug */
8984+
slug: string
8985+
/** @description The enterprise name */
8986+
name: string
8987+
/** @description The enterprise node ID */
8988+
node_id: string
8989+
/** @description URL to the enterprise avatar */
8990+
avatar_url: string
8991+
/** @description The enterprise description */
8992+
description?: string | null
8993+
/** @description The enterprise website URL */
8994+
website_url?: string | null
8995+
/** @description The HTML URL of the enterprise */
8996+
html_url: string
8997+
/**
8998+
* Format: date-time
8999+
* @description When the enterprise was created
9000+
*/
9001+
created_at: string
9002+
/**
9003+
* Format: date-time
9004+
* @description When the enterprise was last updated
9005+
*/
9006+
updated_at: string
87869007
}
87879008
ReleaseNote: {
87889009
/** @description Unique identifier for the release note */
8789-
id?: number
9010+
id: number
87909011
/**
87919012
* @description The project this release note belongs to
87929013
* @enum {string}
@@ -8805,7 +9026,7 @@ export interface components {
88059026
* Format: date-time
88069027
* @description When the release note was published
88079028
*/
8808-
published_at?: string
9029+
published_at: string
88099030
}
88109031
}
88119032
responses: never
@@ -11011,6 +11232,8 @@ export interface operations {
1101111232
sort?: string[]
1101211233
/** @description node_id to use as filter */
1101311234
node_id?: string[]
11235+
/** @description Comfy UI version */
11236+
comfyui_version?: string
1101411237
/** @description The platform requesting the nodes */
1101511238
form_factor?: string
1101611239
}
@@ -11584,6 +11807,8 @@ export interface operations {
1158411807
project: 'comfyui' | 'comfyui_frontend' | 'desktop'
1158511808
/** @description The current version to filter release notes */
1158611809
current_version?: string
11810+
/** @description The platform requesting the release notes */
11811+
form_factor?: string
1158711812
}
1158811813
header?: never
1158911814
path?: never
@@ -11623,7 +11848,20 @@ export interface operations {
1162311848
processReleaseWebhook: {
1162411849
parameters: {
1162511850
query?: never
11626-
header?: never
11851+
header: {
11852+
/** @description The name of the event that triggered the delivery */
11853+
'X-GitHub-Event': 'release'
11854+
/** @description A globally unique identifier (GUID) to identify the event */
11855+
'X-GitHub-Delivery': string
11856+
/** @description The unique identifier of the webhook */
11857+
'X-GitHub-Hook-ID': string
11858+
/** @description HMAC hex digest of the request body using SHA-256 hash function */
11859+
'X-Hub-Signature-256'?: string
11860+
/** @description The type of resource where the webhook was created */
11861+
'X-GitHub-Hook-Installation-Target-Type'?: string
11862+
/** @description The unique identifier of the resource where the webhook was created */
11863+
'X-GitHub-Hook-Installation-Target-ID'?: string
11864+
}
1162711865
path?: never
1162811866
cookie?: never
1162911867
}
@@ -11649,6 +11887,15 @@ export interface operations {
1164911887
'application/json': components['schemas']['ErrorResponse']
1165011888
}
1165111889
}
11890+
/** @description Validation failed or endpoint has been spammed */
11891+
422: {
11892+
headers: {
11893+
[name: string]: unknown
11894+
}
11895+
content: {
11896+
'application/json': components['schemas']['ErrorResponse']
11897+
}
11898+
}
1165211899
/** @description Internal server error */
1165311900
500: {
1165411901
headers: {

0 commit comments

Comments
 (0)