@comfyorg/ingest-types 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.gen.d.ts +1812 -121
- package/dist/zod.gen.d.ts +1394 -37
- package/dist/zod.gen.js +485 -20
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -29,6 +29,85 @@ export type AcceptedAutoTopUpSettings = {
|
|
|
29
29
|
target_credits: number;
|
|
30
30
|
threshold_credits: number;
|
|
31
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* One change to who can access what in the workspace.
|
|
34
|
+
*/
|
|
35
|
+
export type AccessEvent = {
|
|
36
|
+
/**
|
|
37
|
+
* What changed, for example `project.member.added`. New values may be added; show an unknown one as received.
|
|
38
|
+
*/
|
|
39
|
+
action: string;
|
|
40
|
+
/**
|
|
41
|
+
* Who made the change.
|
|
42
|
+
*/
|
|
43
|
+
actor: AccessEventPerson;
|
|
44
|
+
/**
|
|
45
|
+
* The changed fields after the change. Absent after a removal.
|
|
46
|
+
*/
|
|
47
|
+
after?: {
|
|
48
|
+
[key: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The changed fields before the change. Absent when nothing existed before.
|
|
52
|
+
*/
|
|
53
|
+
before?: {
|
|
54
|
+
[key: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* When the change was made
|
|
58
|
+
*/
|
|
59
|
+
create_time: string;
|
|
60
|
+
id: string;
|
|
61
|
+
/**
|
|
62
|
+
* The project the change is about. Absent for a workspace-level change.
|
|
63
|
+
*/
|
|
64
|
+
project_id?: string;
|
|
65
|
+
/**
|
|
66
|
+
* That project's name now. Absent for a workspace-level change.
|
|
67
|
+
*/
|
|
68
|
+
project_name?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Who the change is about. Absent when it is not about a person.
|
|
71
|
+
*/
|
|
72
|
+
target?: AccessEventPerson;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* A person named in an access change.
|
|
76
|
+
*/
|
|
77
|
+
export type AccessEventPerson = {
|
|
78
|
+
/**
|
|
79
|
+
* Display name, or an empty string when the account no longer exists.
|
|
80
|
+
*/
|
|
81
|
+
name: string;
|
|
82
|
+
user_id: string;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Where the next page of access changes starts.
|
|
86
|
+
*/
|
|
87
|
+
export type AccessEventsPagination = {
|
|
88
|
+
has_more: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Pass as `after` to read the next page. Absent on the last page.
|
|
91
|
+
*/
|
|
92
|
+
next_cursor?: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* The upload to add to the deployment, passed to comfy-deploy as written.
|
|
96
|
+
*/
|
|
97
|
+
export type AddDeploymentModelRequest = {
|
|
98
|
+
/**
|
|
99
|
+
* The blobId the model upload route answered.
|
|
100
|
+
*/
|
|
101
|
+
blobId: string;
|
|
102
|
+
/**
|
|
103
|
+
* The file name on the deployment; the upload's when absent.
|
|
104
|
+
*/
|
|
105
|
+
filename?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The model folder, for example `loras` or `checkpoints`.
|
|
108
|
+
*/
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
32
111
|
/**
|
|
33
112
|
* Returned when a request to run the agent is declined before the turn starts, because of a billing or account condition on the workspace. The `error` object carries a `message` you can show the user, a `type` that matches the HTTP status, and a more specific `reason` you can branch on to offer the right next step.
|
|
34
113
|
*/
|
|
@@ -567,6 +646,12 @@ export type AgentPostMessageRequest = {
|
|
|
567
646
|
*
|
|
568
647
|
*/
|
|
569
648
|
attachments?: Array<string>;
|
|
649
|
+
/**
|
|
650
|
+
* Optional nodes the user has selected on the canvas with an ordinary click but did not add to the message ({node_ids, workflow_id}). The agent sees them as context for "this node" questions, never as the request's target the way `selection` is.
|
|
651
|
+
*/
|
|
652
|
+
canvas_selection?: {
|
|
653
|
+
[key: string]: unknown;
|
|
654
|
+
};
|
|
570
655
|
/**
|
|
571
656
|
* The client's live ComfyUI WebSocket clientId (the `sid` the server hands back on the socket's first status message). Local runs the agent submits on the caller's behalf are submitted under this id, so ComfyUI addresses their execution events — node highlights, progress and outputs — to this client instead of to the short-lived CLI socket that submitted them. Additive and advisory; omitting it restores the previous behaviour, where an agent-started run leaves the canvas with no execution feedback. Ignored on the cloud target, which fans execution events out per user/workspace regardless of submitter. A value that could not be a ComfyUI socket id is DROPPED, not rejected — no turn fails over it — so an id longer than 128 bytes, or one containing whitespace or non-printable characters, or one starting with `-`, is accepted with 202 and behaves exactly like omitting the field. Surrounding whitespace is trimmed.
|
|
572
657
|
*/
|
|
@@ -871,6 +956,10 @@ export type AgentToolCallData = {
|
|
|
871
956
|
* Optional terminal recovery barrier. The highest published doc_update sequence carrying this call's op_ids.
|
|
872
957
|
*/
|
|
873
958
|
doc_seq?: number;
|
|
959
|
+
/**
|
|
960
|
+
* bash only. The model file a `comfy model download` in the call's command fetches (its --filename, else the last segment of its --url), on its running frame and on its terminal frame, so the client can name the download while it runs. Omitted on every other tool and command.
|
|
961
|
+
*/
|
|
962
|
+
download?: string;
|
|
874
963
|
duration_ms?: number;
|
|
875
964
|
error_code?: string;
|
|
876
965
|
/**
|
|
@@ -1023,6 +1112,10 @@ export type Asset = {
|
|
|
1023
1112
|
* URL for asset preview/thumbnail
|
|
1024
1113
|
*/
|
|
1025
1114
|
preview_url?: string;
|
|
1115
|
+
/**
|
|
1116
|
+
* The project this asset belongs to. Where Projects is enabled for the workspace it is always set, and work in the default project carries the default project's ID. Elsewhere it is absent. It does not say whether the workspace uses Projects; read `projects_in_use` on `GET /api/projects` for that.
|
|
1117
|
+
*/
|
|
1118
|
+
project_id?: string;
|
|
1026
1119
|
/**
|
|
1027
1120
|
* Durable, owner-gated short link to this asset's content (relative `/api/s/{id}` path). Stable across the underlying signed URL's expiry — resolving it re-mints a fresh signed URL on every request — so it is safe to persist or share into chat, unlike `preview_url`. Only the minting user can resolve it. Omitted when the short-link surface is disabled or the asset has no resolvable content hash.
|
|
1028
1121
|
*/
|
|
@@ -2830,6 +2923,10 @@ export type BillingHandoffCreateRequest = {
|
|
|
2830
2923
|
* Credit amount the top-up checkout opens with, in cents. Whole dollars within the manual top-up limits (`min_topup_cents` to `max_topup_cents` on GET /api/billing/balance). Allowed only with intent top-up, else 400 INVALID_REQUEST; omitted, billing-web uses its default. Sent in the entry URL's query after intent. Not a credential; the checkout validates the amount again.
|
|
2831
2924
|
*/
|
|
2832
2925
|
amount_cents?: number;
|
|
2926
|
+
/**
|
|
2927
|
+
* Auto top-up settings the top-up checkout turns on with its payment, as chosen in the issuing app's Add credits. Allowed only with intent top-up and amount_cents, else 400 INVALID_REQUEST; each count must be positive. Sent in the entry URL's query after amount_cents as auto_top_up_threshold_credits, auto_top_up_target_credits and, when set, auto_top_up_monthly_budget_cents. A choice, not a credential: the checkout shows the consent and the purchase validates the settings again.
|
|
2928
|
+
*/
|
|
2929
|
+
auto_top_up?: TopupAutoTopUpSettings;
|
|
2833
2930
|
/**
|
|
2834
2931
|
* Version of the issuing app, for logs.
|
|
2835
2932
|
*/
|
|
@@ -2856,7 +2953,7 @@ export type BillingHandoffCreateRequest = {
|
|
|
2856
2953
|
*/
|
|
2857
2954
|
export type BillingHandoffCreateResponse = {
|
|
2858
2955
|
/**
|
|
2859
|
-
* The receiver's handoff page, with the intent and
|
|
2956
|
+
* The receiver's handoff page, with the intent, amount_cents and auto top-up settings (if any) in the query and the token in the fragment. Open it, never display it.
|
|
2860
2957
|
*/
|
|
2861
2958
|
entry_url: string;
|
|
2862
2959
|
/**
|
|
@@ -3269,7 +3366,7 @@ export type BillingStatusResponse = {
|
|
|
3269
3366
|
*/
|
|
3270
3367
|
next_charge: NextCharge | null;
|
|
3271
3368
|
/**
|
|
3272
|
-
* Eligible next scheduled credit refill for both the Credits card and out-of-credits banner. Uses the actual positive credit-grant cadence, not an Enterprise invoice anniversary. Present only for a known future refill before cancellation/end
|
|
3369
|
+
* Eligible next scheduled credit refill for both the Credits card and out-of-credits banner. Uses the actual positive credit-grant cadence, not an Enterprise invoice anniversary. Present only for a known future refill before cancellation/end, monthly and annual grants alike. Omitted when unavailable, ineligible or no future grant is known; omission never means zero. Display only, not a payment guarantee, balance or spending permission.
|
|
3273
3370
|
*/
|
|
3274
3371
|
next_credit_refill_at?: string;
|
|
3275
3372
|
/**
|
|
@@ -3342,7 +3439,7 @@ export type BillingStatusResponse = {
|
|
|
3342
3439
|
subscription_duration?: SubscriptionDuration;
|
|
3343
3440
|
subscription_payment_recovery?: SubscriptionPaymentRecovery;
|
|
3344
3441
|
/**
|
|
3345
|
-
* Render this state without recombining payment, tier, dates or activity. Native and legacy provider history distinguish never-subscribed from ended. Ended means a historical provider Cloud subscription ended, regardless of whether an invoice was ever paid. Omitted when an older upstream/server exposes no usable history facts. Optional history failures leave guidance unknown while ordinary status remains available.
|
|
3442
|
+
* Render this state without recombining payment, tier, dates or activity. Native and legacy provider history distinguish never-subscribed from ended. Ended means a historical provider Cloud subscription ended, regardless of whether an invoice was ever paid. Omitted when an older upstream/server exposes no usable history facts. Optional history failures leave guidance unknown while ordinary status remains available. A native live subscription labelled payment_failed is attributed by the bound Stripe subscription: past_due or unpaid serves past_due, paused serves paused, active or trialing serves active, and canceled serves ended. It is omitted when that provider read is unavailable, unrecognized or bound to another customer. Unknown states must not be inferred from missing fields.
|
|
3346
3443
|
*/
|
|
3347
3444
|
subscription_state?: SubscriptionState;
|
|
3348
3445
|
/**
|
|
@@ -3385,17 +3482,57 @@ export type BillingTaxId = {
|
|
|
3385
3482
|
*/
|
|
3386
3483
|
export type Budget = {
|
|
3387
3484
|
/**
|
|
3388
|
-
* The percentages of the limit at which an alert is sent, ascending.
|
|
3485
|
+
* The percentages of the limit at which an alert is sent, ascending. Settings for the edit form. Do not compare them with `percent_used` to decide whether a threshold was crossed: read `crossed_alert_percent`.
|
|
3486
|
+
*
|
|
3389
3487
|
*/
|
|
3390
3488
|
alert_percents: Array<number>;
|
|
3391
3489
|
/**
|
|
3392
|
-
*
|
|
3490
|
+
* The budget's alert email history in the current billing period: one entry for each threshold whose alert has a recorded outcome, ascending by `percent`. An entry is not proof an email went out: read its `status`. There is at most one entry for each percent, and a `sent` entry is the first email sent for that percent in the period: a later email for the same percent, which a changed limit can cause, adds no entry and leaves `sent_at` as it was. So do not read the list as a count of emails sent. `[]` when there is none, and when the workspace has no billing period. For the history display only. Not what decides the banner: an entry can be missing for a threshold the spend has crossed (its outcome is recorded shortly after, or threshold detection is off in this environment), so read `crossed_alert_percent` for that.
|
|
3491
|
+
*
|
|
3393
3492
|
*/
|
|
3394
3493
|
alerts: Array<BudgetAlert>;
|
|
3494
|
+
/**
|
|
3495
|
+
* Answers one UI question: can the UI show this budget's alert
|
|
3496
|
+
* history?
|
|
3497
|
+
* True: `alerts` is the history. An empty list means no alert has a
|
|
3498
|
+
* recorded outcome this period.
|
|
3499
|
+
* False: the history could not be read. `alerts` is `[]` and says
|
|
3500
|
+
* nothing about what was sent. Show the history as unavailable, not
|
|
3501
|
+
* as "no alerts sent".
|
|
3502
|
+
* It is about the history only. The budget, its spend and
|
|
3503
|
+
* `crossed_alert_percent` are still correct when it is false, so
|
|
3504
|
+
* keep showing them and the banner.
|
|
3505
|
+
* When billing-api omits this field, ingest serves false, so during
|
|
3506
|
+
* a rollout false carries no information.
|
|
3507
|
+
*
|
|
3508
|
+
*/
|
|
3509
|
+
alerts_available: boolean;
|
|
3395
3510
|
/**
|
|
3396
3511
|
* User id that created the budget.
|
|
3397
3512
|
*/
|
|
3398
3513
|
created_by: string;
|
|
3514
|
+
/**
|
|
3515
|
+
* Answers one UI question: should the UI show an alert banner for
|
|
3516
|
+
* this budget, and for which threshold?
|
|
3517
|
+
* A number: the highest value of `alert_percents` that the spend has
|
|
3518
|
+
* reached in the current billing period. Show the banner, naming
|
|
3519
|
+
* this percent.
|
|
3520
|
+
* Null: the spend is below every alert percent, or the workspace has
|
|
3521
|
+
* no billing period. Show no banner.
|
|
3522
|
+
* It follows the budget as it is now, so it can fall or return to
|
|
3523
|
+
* null inside a period when the limit is raised or `alert_percents`
|
|
3524
|
+
* changes, and it resets with the spend at `resets_at`.
|
|
3525
|
+
* Not whether an alert email was sent (that is `alerts`), and not
|
|
3526
|
+
* whether spend is refused: on a `soft` budget 100 only alerts.
|
|
3527
|
+
* Render it as received; do not rebuild it from `percent_used` and
|
|
3528
|
+
* `alert_percents`. The server already limits the list to the
|
|
3529
|
+
* budgets the viewer may see, so every budget returned with a
|
|
3530
|
+
* number is one this viewer may be shown a banner for.
|
|
3531
|
+
* When billing-api omits this field, ingest serves null, so during
|
|
3532
|
+
* a rollout null carries no information.
|
|
3533
|
+
*
|
|
3534
|
+
*/
|
|
3535
|
+
crossed_alert_percent: number | null;
|
|
3399
3536
|
/**
|
|
3400
3537
|
* End of the last billing period the budget applies to; null when it repeats indefinitely.
|
|
3401
3538
|
*/
|
|
@@ -3411,7 +3548,28 @@ export type Budget = {
|
|
|
3411
3548
|
limit_micro_usd: number;
|
|
3412
3549
|
mode: BudgetMode;
|
|
3413
3550
|
/**
|
|
3414
|
-
*
|
|
3551
|
+
* Answers one UI question: which workspace Owner should a member
|
|
3552
|
+
* contact about their own budget ("Contact a workspace owner at …")?
|
|
3553
|
+
* A string: one Owner's email. The server picks the Owner who last
|
|
3554
|
+
* changed the budget while they are still an Owner, else the
|
|
3555
|
+
* workspace's creator, else the longest-standing Owner with an email.
|
|
3556
|
+
* Set only on the list read, and only for a member reading their
|
|
3557
|
+
* own budget.
|
|
3558
|
+
* Null: show no contact line. It is null on every budget in an
|
|
3559
|
+
* Owner's read, in every create and update response (only Owners
|
|
3560
|
+
* write), when no Owner has an email, and when it could not be read
|
|
3561
|
+
* (the budget is still served). So null alone does not mean that no
|
|
3562
|
+
* Owner has an email.
|
|
3563
|
+
* Not a list of Owners, not the budget's creator, and not who may
|
|
3564
|
+
* change the budget. Render it as received; do not pick an Owner
|
|
3565
|
+
* from the member list.
|
|
3566
|
+
* When billing-api omits this field, ingest serves null, so during
|
|
3567
|
+
* a rollout null carries no information.
|
|
3568
|
+
*
|
|
3569
|
+
*/
|
|
3570
|
+
owner_email: string | null;
|
|
3571
|
+
/**
|
|
3572
|
+
* Whole percent of the limit spent, rounded down, so 100 means the limit is reached. It can exceed 100. For the progress display only: whether to show an alert banner is `crossed_alert_percent`.
|
|
3415
3573
|
*
|
|
3416
3574
|
*/
|
|
3417
3575
|
percent_used: number;
|
|
@@ -3445,11 +3603,28 @@ export type Budget = {
|
|
|
3445
3603
|
*/
|
|
3446
3604
|
updated_by: string;
|
|
3447
3605
|
};
|
|
3606
|
+
/**
|
|
3607
|
+
* The email outcome of one threshold alert in the current billing period. It records the email, not the crossing.
|
|
3608
|
+
*
|
|
3609
|
+
*/
|
|
3448
3610
|
export type BudgetAlert = {
|
|
3611
|
+
/**
|
|
3612
|
+
* The alert percent the email was about: a percent of the limit the budget had when the alert was sent. It may no longer be in `alert_percents`, and the limit may have changed since.
|
|
3613
|
+
*
|
|
3614
|
+
*/
|
|
3449
3615
|
percent: number;
|
|
3450
|
-
|
|
3451
|
-
|
|
3616
|
+
/**
|
|
3617
|
+
* When the first email for this percent in the period was sent. A later email for the same percent does not change it. Null unless `status` is `sent`.
|
|
3618
|
+
*
|
|
3619
|
+
*/
|
|
3620
|
+
sent_at: string | null;
|
|
3621
|
+
status: BudgetAlertStatus;
|
|
3452
3622
|
};
|
|
3623
|
+
/**
|
|
3624
|
+
* What happened to a threshold alert's email. `sent`: the email provider accepted it for at least one recipient, which is not proof it was delivered or read. `failed`: no one was sent it and at least one send failed. `skipped`: there was nothing to send, for example no recipient has an email address. Show `failed` and `skipped` as "not sent"; neither means the threshold was not crossed.
|
|
3625
|
+
*
|
|
3626
|
+
*/
|
|
3627
|
+
export type BudgetAlertStatus = 'sent' | 'failed' | 'skipped';
|
|
3453
3628
|
export type BudgetChange = {
|
|
3454
3629
|
action: 'created' | 'updated' | 'archived' | 'downgraded';
|
|
3455
3630
|
/**
|
|
@@ -3457,13 +3632,15 @@ export type BudgetChange = {
|
|
|
3457
3632
|
*/
|
|
3458
3633
|
actor_user_id: string;
|
|
3459
3634
|
/**
|
|
3460
|
-
* The budget's settings after the change; null for `archived`.
|
|
3635
|
+
* The budget's settings after the change; null for `archived`. The settings are `scope_kind`, `scope_id`, `mode`, `alert_percents`, `ends_at`, and the limit as `limit_micro_usd` and as `limit_credits`, rounded to the nearest credit as on the budget. Show a limit change from `limit_credits` as received; do not convert `limit_micro_usd`.
|
|
3636
|
+
*
|
|
3461
3637
|
*/
|
|
3462
3638
|
after: {
|
|
3463
3639
|
[key: string]: unknown;
|
|
3464
3640
|
} | null;
|
|
3465
3641
|
/**
|
|
3466
|
-
* The budget's settings before the change; null for `created`.
|
|
3642
|
+
* The budget's settings before the change; null for `created`. The settings are `scope_kind`, `scope_id`, `mode`, `alert_percents`, `ends_at`, and the limit as `limit_micro_usd` and as `limit_credits`, rounded to the nearest credit as on the budget. Show a limit change from `limit_credits` as received; do not convert `limit_micro_usd`.
|
|
3643
|
+
*
|
|
3467
3644
|
*/
|
|
3468
3645
|
before: {
|
|
3469
3646
|
[key: string]: unknown;
|
|
@@ -3834,6 +4011,9 @@ export type CccMediaConstraint = {
|
|
|
3834
4011
|
max_bytes?: number;
|
|
3835
4012
|
max_height?: number;
|
|
3836
4013
|
max_width?: number;
|
|
4014
|
+
/**
|
|
4015
|
+
* Accepted file types as an HTML accept list: exact MIME types or type* families, separated by commas, such as image/webp or image*,video*. A file matches when its MIME type equals one entry or starts with the family of a type* entry.
|
|
4016
|
+
*/
|
|
3837
4017
|
mime_type: string;
|
|
3838
4018
|
min_bytes?: number;
|
|
3839
4019
|
};
|
|
@@ -4349,7 +4529,7 @@ export type CloudNodeCompatibility = {
|
|
|
4349
4529
|
};
|
|
4350
4530
|
export type CloudWorkflowCompatibility = {
|
|
4351
4531
|
/**
|
|
4352
|
-
* The posted models Comfy Cloud's model list does not have in the posted folder and, for a signed-in caller, whose upload a run would pick (the newest with that name among the caller's own uploads and the public model catalog) is not in the posted folder either, in the order they were posted. Absent when the request has no `models`.
|
|
4532
|
+
* The posted models Comfy Cloud's model list does not have in the posted folder and, for a signed-in caller, whose upload a run would pick (the newest with that name among the caller's own uploads and the public model catalog) is not in the posted folder either, in the order they were posted. A value VAELoader offers that is not a file in `vae` (`pixel_space`, a TAESD name), posted under `vae`, is not listed when the VAELoader a browser on Comfy Cloud (no pick) is served lists it. Absent when the request has no `models`.
|
|
4353
4533
|
*/
|
|
4354
4534
|
missing_models?: Array<CompatibilityModel>;
|
|
4355
4535
|
/**
|
|
@@ -4432,6 +4612,24 @@ export type CreateInviteRequest = {
|
|
|
4432
4612
|
*/
|
|
4433
4613
|
email: string;
|
|
4434
4614
|
};
|
|
4615
|
+
/**
|
|
4616
|
+
* Request body for creating a project.
|
|
4617
|
+
*/
|
|
4618
|
+
export type CreateProjectRequest = {
|
|
4619
|
+
description?: string;
|
|
4620
|
+
/**
|
|
4621
|
+
* Workspace members to add when the project is created.
|
|
4622
|
+
*/
|
|
4623
|
+
members?: Array<ProjectMemberInput>;
|
|
4624
|
+
/**
|
|
4625
|
+
* Display name, 1 to 80 characters after trimming.
|
|
4626
|
+
*/
|
|
4627
|
+
name: string;
|
|
4628
|
+
/**
|
|
4629
|
+
* Whether runs in the project may use Comfy's shared machines.
|
|
4630
|
+
*/
|
|
4631
|
+
shared_cloud_allowed?: boolean;
|
|
4632
|
+
};
|
|
4435
4633
|
/**
|
|
4436
4634
|
* Request body for creating a new user secret.
|
|
4437
4635
|
*/
|
|
@@ -4510,6 +4708,13 @@ export type CreateTopupCheckoutResponse = {
|
|
|
4510
4708
|
*/
|
|
4511
4709
|
session_id?: string;
|
|
4512
4710
|
};
|
|
4711
|
+
export type CreateTopupPurchaseRequest = {
|
|
4712
|
+
/**
|
|
4713
|
+
* Nominal credit purchase in USD cents, excluding tax and discounts.
|
|
4714
|
+
*/
|
|
4715
|
+
amount_cents: number;
|
|
4716
|
+
auto_top_up?: TopupAutoTopUpSettings;
|
|
4717
|
+
};
|
|
4513
4718
|
/**
|
|
4514
4719
|
* Request body for previewing a credit top-up.
|
|
4515
4720
|
*/
|
|
@@ -4770,6 +4975,117 @@ export type DeploymentCompatibilityRequest = {
|
|
|
4770
4975
|
*/
|
|
4771
4976
|
node_types: Array<string>;
|
|
4772
4977
|
};
|
|
4978
|
+
/**
|
|
4979
|
+
* comfy-builder's BlobUpload (its POST /v1/blobs 201), passed through as written; the fields are comfy-builder's.
|
|
4980
|
+
*/
|
|
4981
|
+
export type DeploymentModelUpload = {
|
|
4982
|
+
/**
|
|
4983
|
+
* Workspace-scoped id of the upload, sent as blobId to POST .../deployments/{deployment_id}/models.
|
|
4984
|
+
*/
|
|
4985
|
+
blobId: string;
|
|
4986
|
+
/**
|
|
4987
|
+
* True when the request said `reuse: true` and the workspace already held these exact bytes: blobId names that blob, uploadUrl, expiresAt and parts are absent, and nothing is uploaded. False on every fresh upload, which comes in one of two forms: a single upload carries uploadUrl and expiresAt, and one the request asked for with `parts: true` carries `parts`, each piece with its own link, and neither uploadUrl nor expiresAt. Branch on this, not on uploadUrl being absent.
|
|
4988
|
+
*/
|
|
4989
|
+
deduplicated: boolean;
|
|
4990
|
+
/**
|
|
4991
|
+
* When uploadUrl stops being accepted. Absent with it.
|
|
4992
|
+
*/
|
|
4993
|
+
expiresAt?: string;
|
|
4994
|
+
/**
|
|
4995
|
+
* Present only when the request said `parts: true` and the answer is not deduplicated: one link per piece, in order. PUT each piece's bytes to its link, then call POST .../model-uploads/{blob_id}/complete.
|
|
4996
|
+
*/
|
|
4997
|
+
parts?: Array<DeploymentModelUploadPart>;
|
|
4998
|
+
/**
|
|
4999
|
+
* Presigned PUT for the file's bytes; size-locked and no-overwrite. Absent when deduplicated is true or the request said `parts: true`.
|
|
5000
|
+
*/
|
|
5001
|
+
uploadUrl?: string;
|
|
5002
|
+
};
|
|
5003
|
+
/**
|
|
5004
|
+
* comfy-builder's BlobUploadComplete (its POST /v1/blobs/{id}/complete 200), passed through as written.
|
|
5005
|
+
*/
|
|
5006
|
+
export type DeploymentModelUploadComplete = {
|
|
5007
|
+
blobId: string;
|
|
5008
|
+
/**
|
|
5009
|
+
* The size of the joined file, the size declared at upload.
|
|
5010
|
+
*/
|
|
5011
|
+
sizeBytes: number;
|
|
5012
|
+
};
|
|
5013
|
+
/**
|
|
5014
|
+
* comfy-builder's 409 on the parts and complete routes, passed through as written. It never carries `code`.
|
|
5015
|
+
*/
|
|
5016
|
+
export type DeploymentModelUploadConflict = {
|
|
5017
|
+
/**
|
|
5018
|
+
* Machine-readable code; each route lists the ones it sends.
|
|
5019
|
+
*/
|
|
5020
|
+
error: string;
|
|
5021
|
+
/**
|
|
5022
|
+
* Written for the person; names the piece on PART_MISSING and PART_WRONG_SIZE.
|
|
5023
|
+
*/
|
|
5024
|
+
message?: string;
|
|
5025
|
+
};
|
|
5026
|
+
/**
|
|
5027
|
+
* comfy-builder's BlobUploadPart, passed through as written.
|
|
5028
|
+
*/
|
|
5029
|
+
export type DeploymentModelUploadPart = {
|
|
5030
|
+
/**
|
|
5031
|
+
* When uploadUrl stops being accepted.
|
|
5032
|
+
*/
|
|
5033
|
+
expiresAt: string;
|
|
5034
|
+
/**
|
|
5035
|
+
* Where the piece starts in the file.
|
|
5036
|
+
*/
|
|
5037
|
+
offsetBytes: number;
|
|
5038
|
+
/**
|
|
5039
|
+
* The piece's place in the file, from 1.
|
|
5040
|
+
*/
|
|
5041
|
+
partNumber: number;
|
|
5042
|
+
/**
|
|
5043
|
+
* The piece's length; the link refuses a body of any other length.
|
|
5044
|
+
*/
|
|
5045
|
+
sizeBytes: number;
|
|
5046
|
+
/**
|
|
5047
|
+
* Presigned PUT for this piece; size-locked and no-overwrite.
|
|
5048
|
+
*/
|
|
5049
|
+
uploadUrl: string;
|
|
5050
|
+
};
|
|
5051
|
+
/**
|
|
5052
|
+
* comfy-builder's BlobUploadParts (its POST /v1/blobs/{id}/parts 200), passed through as written.
|
|
5053
|
+
*/
|
|
5054
|
+
export type DeploymentModelUploadParts = {
|
|
5055
|
+
blobId: string;
|
|
5056
|
+
/**
|
|
5057
|
+
* A fresh link for each piece not stored yet, in order; empty when every piece is in.
|
|
5058
|
+
*/
|
|
5059
|
+
parts: Array<DeploymentModelUploadPart>;
|
|
5060
|
+
};
|
|
5061
|
+
/**
|
|
5062
|
+
* comfy-builder's CreateBlobRequest without `kind`, which ingest sets to `model`; the fields are passed on as written.
|
|
5063
|
+
*/
|
|
5064
|
+
export type DeploymentModelUploadRequest = {
|
|
5065
|
+
/**
|
|
5066
|
+
* Optional BLAKE3 digest of the same bytes, 64 hex characters.
|
|
5067
|
+
*/
|
|
5068
|
+
blake3?: string;
|
|
5069
|
+
filename: string;
|
|
5070
|
+
/**
|
|
5071
|
+
* True asks for the upload in pieces: the answer carries `parts`, one link per piece, and no uploadUrl. comfy-builder splits sizeBytes into at most 32 pieces and refuses one over 128 GiB with 400. A deduplicated answer has no pieces.
|
|
5072
|
+
*/
|
|
5073
|
+
parts?: boolean;
|
|
5074
|
+
/**
|
|
5075
|
+
* True lets comfy-builder answer with a blob the workspace already holds for these bytes, `deduplicated: true` and no uploadUrl.
|
|
5076
|
+
*/
|
|
5077
|
+
reuse?: boolean;
|
|
5078
|
+
sha256: string;
|
|
5079
|
+
sizeBytes: number;
|
|
5080
|
+
};
|
|
5081
|
+
/**
|
|
5082
|
+
* A 403 on the deployment model routes. A body with `accepted` is ingest's authentication refusing the credential before any other check (AuthTypeNotAllowedError, `{error: {message, type: auth_type_not_allowed}, accepted}`, no `code`): a credential these routes never take, such as `X-ComfyAPI-Secret`, or the session while `web_session_enabled` is off for the user. Otherwise `code` tells them apart as in DeploymentModelsRefusalBody: a body with `code` is ingest's own refusal, and one with neither `code` nor `accepted` is the platform's 403, passed through as written.
|
|
5083
|
+
*/
|
|
5084
|
+
export type DeploymentModelsForbiddenBody = ErrorResponse | AuthTypeNotAllowedError | PlatformPassthroughBody;
|
|
5085
|
+
/**
|
|
5086
|
+
* A refusal on the deployment model routes: ingest's own (and the session's), as ErrorResponse `{code, message}`, or the platform's, passed through as written. One status can carry either; `code` tells them apart. A body with `code` is ingest's own refusal, made before or instead of the platform's answer; a body without it is the platform's, comfy-deploy's or comfy-builder's `{error, message}` (or only `message`), which never carries `code`. The one exception is a 403 with `accepted`, ingest's authentication refusal (see DeploymentModelsForbiddenBody).
|
|
5087
|
+
*/
|
|
5088
|
+
export type DeploymentModelsRefusalBody = ErrorResponse | PlatformPassthroughBody;
|
|
4773
5089
|
export type DeploymentNodeCompatibility = {
|
|
4774
5090
|
deployment_id: string;
|
|
4775
5091
|
/**
|
|
@@ -5789,6 +6105,12 @@ export type InteractiveTopupRequest = {
|
|
|
5789
6105
|
* Valid only on the interactive route. True is currently rejected; paying does not change invoice defaults.
|
|
5790
6106
|
*/
|
|
5791
6107
|
make_default?: boolean;
|
|
6108
|
+
/**
|
|
6109
|
+
* Pays the purchase opened by POST /api/billing/topup/purchases. amount_cents and auto_top_up must equal the purchase's.
|
|
6110
|
+
* Refused unless the caller opened it in this workspace and it is still payable (see 404 and 409). Absent keeps the unbound top-up.
|
|
6111
|
+
*
|
|
6112
|
+
*/
|
|
6113
|
+
purchase_id?: string;
|
|
5792
6114
|
/**
|
|
5793
6115
|
* Required with confirmation_token; at most 2048 bytes before and after URL normalization. Must use an existing allowed HTTPS destination (HTTP only for configured localhost or 127.0.0.1). Bound to the request. Callers must supply credential-free routing URLs: the validator rejects userinfo, fragments, known authentication query keys and recognizable Stripe authority patterns, but cannot identify every opaque secret.
|
|
5794
6116
|
*
|
|
@@ -5923,6 +6245,10 @@ export type JobDetailResponse = {
|
|
|
5923
6245
|
* Count of outputs classified as previewable media types (images, video, audio, 3D, text) — a subset of outputs_count (omitted for non-terminal states)
|
|
5924
6246
|
*/
|
|
5925
6247
|
previewable_outputs_count?: number;
|
|
6248
|
+
/**
|
|
6249
|
+
* The project this run belongs to. Where Projects is enabled for the workspace it is always set, and work in the default project carries the default project's ID. Elsewhere it is absent. It does not say whether the workspace uses Projects; read `projects_in_use` on `GET /api/projects` for that.
|
|
6250
|
+
*/
|
|
6251
|
+
project_id?: string;
|
|
5926
6252
|
/**
|
|
5927
6253
|
* 1-based position of this job among the caller's OWN jobs held
|
|
5928
6254
|
* behind the same concurrency cap (same user, workspace and auth
|
|
@@ -6062,6 +6388,10 @@ export type JobEntry = {
|
|
|
6062
6388
|
* Count of outputs classified as previewable media types (images, video, audio, 3D, text) — a subset of outputs_count (omitted for non-terminal states)
|
|
6063
6389
|
*/
|
|
6064
6390
|
previewable_outputs_count?: number;
|
|
6391
|
+
/**
|
|
6392
|
+
* The project this run belongs to. Where Projects is enabled for the workspace it is always set, and work in the default project carries the default project's ID. Elsewhere it is absent. It does not say whether the workspace uses Projects; read `projects_in_use` on `GET /api/projects` for that.
|
|
6393
|
+
*/
|
|
6394
|
+
project_id?: string;
|
|
6065
6395
|
/**
|
|
6066
6396
|
* User-friendly job status
|
|
6067
6397
|
*/
|
|
@@ -6246,6 +6576,13 @@ export type LabelRef = {
|
|
|
6246
6576
|
*/
|
|
6247
6577
|
name: string;
|
|
6248
6578
|
};
|
|
6579
|
+
/**
|
|
6580
|
+
* A page of access changes, newest first.
|
|
6581
|
+
*/
|
|
6582
|
+
export type ListAccessEventsResponse = {
|
|
6583
|
+
events: Array<AccessEvent>;
|
|
6584
|
+
pagination: AccessEventsPagination;
|
|
6585
|
+
};
|
|
6249
6586
|
/**
|
|
6250
6587
|
* Paginated list of assets belonging to the authenticated user.
|
|
6251
6588
|
*/
|
|
@@ -6290,6 +6627,26 @@ export type ListMembersResponse = {
|
|
|
6290
6627
|
members: Array<Member>;
|
|
6291
6628
|
pagination: PaginationInfo;
|
|
6292
6629
|
};
|
|
6630
|
+
/**
|
|
6631
|
+
* The people in a project.
|
|
6632
|
+
*/
|
|
6633
|
+
export type ListProjectMembersResponse = {
|
|
6634
|
+
members: Array<ProjectMember>;
|
|
6635
|
+
};
|
|
6636
|
+
/**
|
|
6637
|
+
* The projects the caller can view, with the workspace's project quota.
|
|
6638
|
+
*/
|
|
6639
|
+
export type ListProjectsResponse = {
|
|
6640
|
+
/**
|
|
6641
|
+
* Only projects the caller may view, the default project first.
|
|
6642
|
+
*/
|
|
6643
|
+
projects: Array<Project>;
|
|
6644
|
+
/**
|
|
6645
|
+
* Whether the workspace has a project other than the default. Read this, not the presence of a `project_id`, to decide whether to show project controls.
|
|
6646
|
+
*/
|
|
6647
|
+
projects_in_use: boolean;
|
|
6648
|
+
quota: ProjectQuota;
|
|
6649
|
+
};
|
|
6293
6650
|
/**
|
|
6294
6651
|
* Paginated list of available asset tags.
|
|
6295
6652
|
*/
|
|
@@ -6381,6 +6738,10 @@ export type Member = {
|
|
|
6381
6738
|
* User's role in the workspace
|
|
6382
6739
|
*/
|
|
6383
6740
|
role: 'owner' | 'member';
|
|
6741
|
+
/**
|
|
6742
|
+
* Whether this member is a Workspace admin: a member who may create projects, act as Project admin in every project other than the default, and invite and remove ordinary members. `role` stays `member`. Absent where Projects is not enabled for the workspace, which reads as false. It does not answer whether the member may manage billing or change roles; only an owner may.
|
|
6743
|
+
*/
|
|
6744
|
+
workspace_admin?: boolean;
|
|
6384
6745
|
};
|
|
6385
6746
|
/**
|
|
6386
6747
|
* The `data` of a model_download WebSocket event: the latest state of one model file a Cloud job on a deployment downloads before ComfyUI starts it. Sent by the deployment's worker (services/comfy-deploy/containerruntime worker.py, _ModelNews) only when the job asked for live progress, for each file the job fetches and never for a file the release ships, all before the job's execution_start. A failed file ends the job: no other source is tried and the job is not retried, so its execution_error (or execution_interrupted, when a cancel was in flight) follows. New fields may be added; a client ignores the ones it does not read.
|
|
@@ -7152,6 +7513,12 @@ export type PlanSeatSummary = {
|
|
|
7152
7513
|
*/
|
|
7153
7514
|
total_credits_cents: number;
|
|
7154
7515
|
};
|
|
7516
|
+
/**
|
|
7517
|
+
* comfy-deploy's or comfy-builder's answer, passed through as written; its shape is that service's. Their refusals are `{error, message}` (Echo's own only `message`) and never carry `code`.
|
|
7518
|
+
*/
|
|
7519
|
+
export type PlatformPassthroughBody = {
|
|
7520
|
+
[key: string]: unknown;
|
|
7521
|
+
};
|
|
7155
7522
|
/**
|
|
7156
7523
|
* Plan information for preview display
|
|
7157
7524
|
*/
|
|
@@ -7438,60 +7805,186 @@ export type PreviousPlan = {
|
|
|
7438
7805
|
team_credit_stop_id?: string;
|
|
7439
7806
|
};
|
|
7440
7807
|
/**
|
|
7441
|
-
*
|
|
7442
|
-
*/
|
|
7443
|
-
export type PromptErrorResponse = {
|
|
7444
|
-
[key: string]: unknown;
|
|
7445
|
-
};
|
|
7446
|
-
/**
|
|
7447
|
-
* Metadata about the currently running and queued prompts.
|
|
7808
|
+
* A private, invite-only space inside a workspace, or the workspace's default project.
|
|
7448
7809
|
*/
|
|
7449
|
-
export type
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7810
|
+
export type Project = {
|
|
7811
|
+
create_time: string;
|
|
7812
|
+
/**
|
|
7813
|
+
* User who created the project. Absent on the default project, which no one creates.
|
|
7814
|
+
*/
|
|
7815
|
+
created_by_user_id?: string;
|
|
7816
|
+
/**
|
|
7817
|
+
* Up to 500 characters. Absent when none is set.
|
|
7818
|
+
*/
|
|
7819
|
+
description?: string;
|
|
7820
|
+
id: string;
|
|
7821
|
+
/**
|
|
7822
|
+
* Whether this is the workspace's default project, which holds work that names no project. Every workspace member is in it, and it cannot be renamed or given members.
|
|
7823
|
+
*/
|
|
7824
|
+
is_default: boolean;
|
|
7825
|
+
/**
|
|
7826
|
+
* The caller's project role. Absent when the caller's access comes from their workspace role (an owner or Workspace admin) or the project is the default one. Use `permissions`, not this, to decide what to show.
|
|
7827
|
+
*/
|
|
7828
|
+
my_role?: ProjectRole;
|
|
7829
|
+
/**
|
|
7830
|
+
* Display name, 1 to 80 characters. Unique in the workspace, whatever its case.
|
|
7831
|
+
*/
|
|
7832
|
+
name: string;
|
|
7833
|
+
permissions: ProjectPermissions;
|
|
7834
|
+
/**
|
|
7835
|
+
* Whether runs in this project may use Comfy's shared machines.
|
|
7836
|
+
*/
|
|
7837
|
+
shared_cloud_allowed: boolean;
|
|
7838
|
+
update_time: string;
|
|
7839
|
+
workspace_id: string;
|
|
7840
|
+
/**
|
|
7841
|
+
* Whether the project takes writes. False when it is frozen, for example after a plan change; a write is then refused with `project_frozen`. It does not say whether the caller may write; read `permissions` for that.
|
|
7842
|
+
*/
|
|
7843
|
+
writable: boolean;
|
|
7456
7844
|
};
|
|
7457
7845
|
/**
|
|
7458
|
-
*
|
|
7846
|
+
* A person in a project, with their project role.
|
|
7459
7847
|
*/
|
|
7460
|
-
export type
|
|
7848
|
+
export type ProjectMember = {
|
|
7461
7849
|
/**
|
|
7462
|
-
*
|
|
7850
|
+
* User who added them. Absent when that user is no longer known.
|
|
7463
7851
|
*/
|
|
7464
|
-
|
|
7465
|
-
[key: string]: PromptOutputsSkippedNodeError;
|
|
7466
|
-
};
|
|
7852
|
+
added_by_user_id?: string;
|
|
7467
7853
|
/**
|
|
7468
|
-
*
|
|
7854
|
+
* When they were added to the project
|
|
7469
7855
|
*/
|
|
7470
|
-
|
|
7856
|
+
create_time: string;
|
|
7857
|
+
/**
|
|
7858
|
+
* The member's email address, or an empty string if none is on file.
|
|
7859
|
+
*/
|
|
7860
|
+
email: string;
|
|
7861
|
+
/**
|
|
7862
|
+
* The member's display name
|
|
7863
|
+
*/
|
|
7864
|
+
name: string;
|
|
7865
|
+
role: ProjectRole;
|
|
7866
|
+
user_id: string;
|
|
7471
7867
|
};
|
|
7472
7868
|
/**
|
|
7473
|
-
*
|
|
7869
|
+
* A workspace member to add to a project, with their project role.
|
|
7474
7870
|
*/
|
|
7475
|
-
export type
|
|
7476
|
-
|
|
7477
|
-
|
|
7871
|
+
export type ProjectMemberInput = {
|
|
7872
|
+
role: ProjectRole;
|
|
7873
|
+
user_id: string;
|
|
7478
7874
|
};
|
|
7479
7875
|
/**
|
|
7480
|
-
*
|
|
7876
|
+
* What the caller may do with one kind of thing in a project. `write` includes `read`. On things that belong to one person (runs, assets, usage) the level carries a scope: `_own` covers what the caller created and `_all` covers everyone's, and `_all` includes `_own`.
|
|
7481
7877
|
*/
|
|
7482
|
-
export type
|
|
7878
|
+
export type ProjectPermissionLevel = 'read' | 'write' | 'read_own' | 'read_all' | 'write_own' | 'write_all';
|
|
7879
|
+
/**
|
|
7880
|
+
* The caller's permissions in this project, for showing and hiding actions. Render each as received; do not rebuild them from `my_role` or the workspace role. An absent key means no access. Each write is checked again by the server.
|
|
7881
|
+
*/
|
|
7882
|
+
export type ProjectPermissions = {
|
|
7483
7883
|
/**
|
|
7484
|
-
*
|
|
7884
|
+
* See the project (`read`); rename it and edit its description (`write`).
|
|
7485
7885
|
*/
|
|
7486
|
-
|
|
7886
|
+
project?: ProjectPermissionLevel;
|
|
7487
7887
|
/**
|
|
7488
|
-
*
|
|
7888
|
+
* View and download assets; rename, tag and delete the caller's own (`write_own`) or anyone's (`write_all`).
|
|
7489
7889
|
*/
|
|
7490
|
-
|
|
7890
|
+
'project.assets'?: ProjectPermissionLevel;
|
|
7491
7891
|
/**
|
|
7492
|
-
*
|
|
7892
|
+
* See the project's deployments (`read`); create and change them, and turn Comfy's shared machines on or off for the project (`write`).
|
|
7493
7893
|
*/
|
|
7494
|
-
|
|
7894
|
+
'project.deployments'?: ProjectPermissionLevel;
|
|
7895
|
+
/**
|
|
7896
|
+
* See who is in the project (`read`); add and remove people and change their roles (`write`).
|
|
7897
|
+
*/
|
|
7898
|
+
'project.members'?: ProjectPermissionLevel;
|
|
7899
|
+
/**
|
|
7900
|
+
* See runs; submit, cancel and delete the caller's own (`write_own`) or anyone's (`write_all`).
|
|
7901
|
+
*/
|
|
7902
|
+
'project.queue'?: ProjectPermissionLevel;
|
|
7903
|
+
/**
|
|
7904
|
+
* See the caller's own usage in the project (`read_own`), or the project's totals and each member's (`read_all`).
|
|
7905
|
+
*/
|
|
7906
|
+
'project.usage'?: ProjectPermissionLevel;
|
|
7907
|
+
/**
|
|
7908
|
+
* List and open workflows (`read`); create, save and delete them (`write`).
|
|
7909
|
+
*/
|
|
7910
|
+
'project.workflow'?: ProjectPermissionLevel;
|
|
7911
|
+
};
|
|
7912
|
+
/**
|
|
7913
|
+
* How many projects the workspace may have and has.
|
|
7914
|
+
*/
|
|
7915
|
+
export type ProjectQuota = {
|
|
7916
|
+
/**
|
|
7917
|
+
* Projects the workspace has now, not counting the default project.
|
|
7918
|
+
*/
|
|
7919
|
+
active: number;
|
|
7920
|
+
/**
|
|
7921
|
+
* Whether to offer the caller "New project": true when the caller holds `workspace.projects` write and the workspace is under its limit. Do not rebuild it from `max_active` and `active`.
|
|
7922
|
+
*/
|
|
7923
|
+
can_create: boolean;
|
|
7924
|
+
/**
|
|
7925
|
+
* The most projects the workspace's plan allows, not counting the default project.
|
|
7926
|
+
*/
|
|
7927
|
+
max_active: number;
|
|
7928
|
+
};
|
|
7929
|
+
/**
|
|
7930
|
+
* A person's role in one project. A Runner runs existing workflows. A Builder also creates and edits workflows. A Project admin also manages the project, its members and its deployments.
|
|
7931
|
+
*/
|
|
7932
|
+
export type ProjectRole = 'runner' | 'builder' | 'project_admin';
|
|
7933
|
+
/**
|
|
7934
|
+
* Error response for ComfyUI prompt execution.
|
|
7935
|
+
*/
|
|
7936
|
+
export type PromptErrorResponse = {
|
|
7937
|
+
[key: string]: unknown;
|
|
7938
|
+
};
|
|
7939
|
+
/**
|
|
7940
|
+
* Metadata about the currently running and queued prompts.
|
|
7941
|
+
*/
|
|
7942
|
+
export type PromptInfo = {
|
|
7943
|
+
exec_info?: {
|
|
7944
|
+
/**
|
|
7945
|
+
* Number of items remaining in the queue
|
|
7946
|
+
*/
|
|
7947
|
+
queue_remaining?: number;
|
|
7948
|
+
};
|
|
7949
|
+
};
|
|
7950
|
+
/**
|
|
7951
|
+
* The `data` of a prompt_outputs_skipped WebSocket event. Sent when ComfyUI accepts a Cloud job's prompt but rejects some nodes: ComfyUI skips the outputs that depend on them and runs the rest, and the job keeps running. The inference server sends it to the user's channel (services/inference/server/services/joborchestrator/prompt_validation.go). Every string taken from ComfyUI has its lists of allowed values or file names replaced ("is not a valid value", "[list omitted]") and is capped at 512 characters.
|
|
7952
|
+
*/
|
|
7953
|
+
export type PromptOutputsSkippedData = {
|
|
7954
|
+
/**
|
|
7955
|
+
* The rejected nodes, keyed by node id, in the shape ComfyUI's /prompt returns. At most 50 nodes, the lowest ids kept, and 64 KiB as JSON.
|
|
7956
|
+
*/
|
|
7957
|
+
node_errors: {
|
|
7958
|
+
[key: string]: PromptOutputsSkippedNodeError;
|
|
7959
|
+
};
|
|
7960
|
+
/**
|
|
7961
|
+
* The Cloud job id.
|
|
7962
|
+
*/
|
|
7963
|
+
prompt_id: string;
|
|
7964
|
+
};
|
|
7965
|
+
/**
|
|
7966
|
+
* Server-to-client prompt_outputs_skipped frame on /ws. ComfyUI skipped some of a Cloud job's outputs because nodes failed validation.
|
|
7967
|
+
*/
|
|
7968
|
+
export type PromptOutputsSkippedFrame = {
|
|
7969
|
+
data: PromptOutputsSkippedData;
|
|
7970
|
+
type: 'prompt_outputs_skipped';
|
|
7971
|
+
};
|
|
7972
|
+
/**
|
|
7973
|
+
* One rejected node in a prompt_outputs_skipped event.
|
|
7974
|
+
*/
|
|
7975
|
+
export type PromptOutputsSkippedNodeError = {
|
|
7976
|
+
/**
|
|
7977
|
+
* The node's type. Empty when ComfyUI sent none.
|
|
7978
|
+
*/
|
|
7979
|
+
class_type: string;
|
|
7980
|
+
/**
|
|
7981
|
+
* The ids of the output nodes ComfyUI skipped because of this node, at most 50. Only ids ComfyUI sent as strings are kept; any other entry is dropped.
|
|
7982
|
+
*/
|
|
7983
|
+
dependent_outputs: Array<string>;
|
|
7984
|
+
/**
|
|
7985
|
+
* Why ComfyUI rejected the node, at most 10. A custom node's validator may report a bare string, which is sent as that string. Can be empty when the size cap left no room for the node's errors.
|
|
7986
|
+
*/
|
|
7987
|
+
errors: Array<string | PromptOutputsSkippedValidationError>;
|
|
7495
7988
|
};
|
|
7496
7989
|
/**
|
|
7497
7990
|
* One validation error as ComfyUI reports it, with tracebacks and every other field removed. type, message and details are each present only when ComfyUI sent them as strings.
|
|
@@ -8050,6 +8543,12 @@ export type SecretResponse = {
|
|
|
8050
8543
|
* Server-to-client CRDT document frame carried by the /ws envelope.
|
|
8051
8544
|
*/
|
|
8052
8545
|
export type ServerDocFrame = DocSubscribedFrame | DocUpdateFrame | DocResetFrame | DocOpsResultFrame;
|
|
8546
|
+
/**
|
|
8547
|
+
* Request body for adding a project member or changing their role.
|
|
8548
|
+
*/
|
|
8549
|
+
export type SetProjectMemberRequest = {
|
|
8550
|
+
role: ProjectRole;
|
|
8551
|
+
};
|
|
8053
8552
|
/**
|
|
8054
8553
|
* The deployment a start was asked for, and its status after the ask.
|
|
8055
8554
|
*/
|
|
@@ -8642,6 +9141,31 @@ export type TopupAutoTopUpSettings = {
|
|
|
8642
9141
|
*/
|
|
8643
9142
|
threshold_credits: number;
|
|
8644
9143
|
};
|
|
9144
|
+
export type TopupPurchase = {
|
|
9145
|
+
amount_cents: number;
|
|
9146
|
+
/**
|
|
9147
|
+
* The settings the payment must carry; absent for a plain purchase. An absent monthly_budget_cents means the default budget.
|
|
9148
|
+
*/
|
|
9149
|
+
auto_top_up?: TopupAutoTopUpSettings;
|
|
9150
|
+
/**
|
|
9151
|
+
* The latest payment attempt; read GET /api/billing/ops/{id} for its details.
|
|
9152
|
+
*/
|
|
9153
|
+
billing_op_id?: string;
|
|
9154
|
+
/**
|
|
9155
|
+
* The latest attempt's operation status.
|
|
9156
|
+
*/
|
|
9157
|
+
billing_op_status?: string;
|
|
9158
|
+
expires_at: string;
|
|
9159
|
+
purchase_id: string;
|
|
9160
|
+
/**
|
|
9161
|
+
* open: payable, by a first attempt or after the latest attempt failed. processing: an attempt is unresolved.
|
|
9162
|
+
* paid: an attempt succeeded; never payable again. reconciliation_needed: the payment was taken but its credit
|
|
9163
|
+
* is not confirmed; never payable again; contact support rather than paying again. superseded: replaced by a newer purchase or hosted checkout.
|
|
9164
|
+
* expired: past expires_at. A purchase superseded or expired while an attempt was in flight reports that attempt's outcome.
|
|
9165
|
+
*
|
|
9166
|
+
*/
|
|
9167
|
+
status: 'open' | 'processing' | 'paid' | 'reconciliation_needed' | 'superseded' | 'expired';
|
|
9168
|
+
};
|
|
8645
9169
|
/**
|
|
8646
9170
|
* What a credit top-up of the requested amount would grant.
|
|
8647
9171
|
*/
|
|
@@ -8702,6 +9226,14 @@ export type UpdateMemberRoleRequest = {
|
|
|
8702
9226
|
*/
|
|
8703
9227
|
role: 'owner' | 'member';
|
|
8704
9228
|
};
|
|
9229
|
+
/**
|
|
9230
|
+
* Request body for changing a project. Only the fields sent are changed.
|
|
9231
|
+
*/
|
|
9232
|
+
export type UpdateProjectRequest = {
|
|
9233
|
+
description?: string;
|
|
9234
|
+
name?: string;
|
|
9235
|
+
shared_cloud_allowed?: boolean;
|
|
9236
|
+
};
|
|
8705
9237
|
/**
|
|
8706
9238
|
* Request body for updating an existing user secret.
|
|
8707
9239
|
*/
|
|
@@ -9089,6 +9621,10 @@ export type WorkflowResponse = {
|
|
|
9089
9621
|
id: string;
|
|
9090
9622
|
latest_version: number;
|
|
9091
9623
|
name?: string;
|
|
9624
|
+
/**
|
|
9625
|
+
* The project this workflow belongs to. Where Projects is enabled for the workspace it is always set, and work in the default project carries the default project's ID. Elsewhere it is absent. It does not say whether the workspace uses Projects; read `projects_in_use` on `GET /api/projects` for that.
|
|
9626
|
+
*/
|
|
9627
|
+
project_id?: string;
|
|
9092
9628
|
updated_at: string;
|
|
9093
9629
|
};
|
|
9094
9630
|
/**
|
|
@@ -9381,6 +9917,10 @@ export type WorkspaceWithRole = {
|
|
|
9381
9917
|
role: 'owner' | 'member';
|
|
9382
9918
|
subscription_tier?: SubscriptionTier;
|
|
9383
9919
|
type: 'personal' | 'team';
|
|
9920
|
+
/**
|
|
9921
|
+
* Whether the requesting user is a Workspace admin: a member who may create projects, act as Project admin in every project other than the default, and invite and remove ordinary members. `role` stays `member`. Absent where Projects is not enabled for the workspace, which reads as false. It does not answer whether the member may manage billing or change roles; only an owner may.
|
|
9922
|
+
*/
|
|
9923
|
+
workspace_admin?: boolean;
|
|
9384
9924
|
};
|
|
9385
9925
|
/**
|
|
9386
9926
|
* Represents a user-owned asset (image, video, or other generated output).
|
|
@@ -9438,6 +9978,10 @@ export type AssetWritable = {
|
|
|
9438
9978
|
* URL for asset preview/thumbnail
|
|
9439
9979
|
*/
|
|
9440
9980
|
preview_url?: string;
|
|
9981
|
+
/**
|
|
9982
|
+
* The project this asset belongs to. Where Projects is enabled for the workspace it is always set, and work in the default project carries the default project's ID. Elsewhere it is absent. It does not say whether the workspace uses Projects; read `projects_in_use` on `GET /api/projects` for that.
|
|
9983
|
+
*/
|
|
9984
|
+
project_id?: string;
|
|
9441
9985
|
/**
|
|
9442
9986
|
* Durable, owner-gated short link to this asset's content (relative `/api/s/{id}` path). Stable across the underlying signed URL's expiry — resolving it re-mints a fresh signed URL on every request — so it is safe to persist or share into chat, unlike `preview_url`. Only the minting user can resolve it. Omitted when the short-link surface is disabled or the asset has no resolvable content hash.
|
|
9443
9987
|
*/
|
|
@@ -9525,6 +10069,18 @@ export type ListAssetsResponseWritable = {
|
|
|
9525
10069
|
*/
|
|
9526
10070
|
total: number;
|
|
9527
10071
|
};
|
|
10072
|
+
/**
|
|
10073
|
+
* The blobId the model upload route answered
|
|
10074
|
+
*/
|
|
10075
|
+
export type DeploymentModelUploadBlobId = string;
|
|
10076
|
+
/**
|
|
10077
|
+
* One of the workspace's deployments (dep-{uuid} format)
|
|
10078
|
+
*/
|
|
10079
|
+
export type DeploymentModelsDeploymentId = string;
|
|
10080
|
+
/**
|
|
10081
|
+
* Workspace ID (w-{uuid} format)
|
|
10082
|
+
*/
|
|
10083
|
+
export type DeploymentModelsWorkspaceId = string;
|
|
9528
10084
|
/**
|
|
9529
10085
|
* The workspace a media request reads from, where a media tag cannot
|
|
9530
10086
|
* send `X-Comfy-Workspace-ID`. It applies only while
|
|
@@ -9541,6 +10097,24 @@ export type ListAssetsResponseWritable = {
|
|
|
9541
10097
|
*
|
|
9542
10098
|
*/
|
|
9543
10099
|
export type MediaWorkspaceId = string;
|
|
10100
|
+
/**
|
|
10101
|
+
* The project a request acts in. The operations that list it are the
|
|
10102
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
10103
|
+
* one. Absent means the workspace's default project, which is how
|
|
10104
|
+
* existing clients keep working.
|
|
10105
|
+
*
|
|
10106
|
+
* An operation on one existing workflow, run or asset does not take
|
|
10107
|
+
* it: the row's own project decides. Any other operation that creates
|
|
10108
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
10109
|
+
* this parameter.
|
|
10110
|
+
*
|
|
10111
|
+
* The project must be in the workspace the request resolves to. A
|
|
10112
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
10113
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
10114
|
+
* the workspace the header is ignored.
|
|
10115
|
+
*
|
|
10116
|
+
*/
|
|
10117
|
+
export type ProjectId = string;
|
|
9544
10118
|
export type GetJwksData = {
|
|
9545
10119
|
body?: never;
|
|
9546
10120
|
path?: never;
|
|
@@ -10675,6 +11249,26 @@ export type AgentGetUsageStatusResponses = {
|
|
|
10675
11249
|
export type AgentGetUsageStatusResponse = AgentGetUsageStatusResponses[keyof AgentGetUsageStatusResponses];
|
|
10676
11250
|
export type ListAssetsData = {
|
|
10677
11251
|
body?: never;
|
|
11252
|
+
headers?: {
|
|
11253
|
+
/**
|
|
11254
|
+
* The project a request acts in. The operations that list it are the
|
|
11255
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
11256
|
+
* one. Absent means the workspace's default project, which is how
|
|
11257
|
+
* existing clients keep working.
|
|
11258
|
+
*
|
|
11259
|
+
* An operation on one existing workflow, run or asset does not take
|
|
11260
|
+
* it: the row's own project decides. Any other operation that creates
|
|
11261
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
11262
|
+
* this parameter.
|
|
11263
|
+
*
|
|
11264
|
+
* The project must be in the workspace the request resolves to. A
|
|
11265
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
11266
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
11267
|
+
* the workspace the header is ignored.
|
|
11268
|
+
*
|
|
11269
|
+
*/
|
|
11270
|
+
'X-Comfy-Project-ID'?: string;
|
|
11271
|
+
};
|
|
10678
11272
|
path?: never;
|
|
10679
11273
|
query?: {
|
|
10680
11274
|
/**
|
|
@@ -10877,6 +11471,26 @@ export type CreateAssetData = {
|
|
|
10877
11471
|
*/
|
|
10878
11472
|
user_metadata?: string;
|
|
10879
11473
|
};
|
|
11474
|
+
headers?: {
|
|
11475
|
+
/**
|
|
11476
|
+
* The project a request acts in. The operations that list it are the
|
|
11477
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
11478
|
+
* one. Absent means the workspace's default project, which is how
|
|
11479
|
+
* existing clients keep working.
|
|
11480
|
+
*
|
|
11481
|
+
* An operation on one existing workflow, run or asset does not take
|
|
11482
|
+
* it: the row's own project decides. Any other operation that creates
|
|
11483
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
11484
|
+
* this parameter.
|
|
11485
|
+
*
|
|
11486
|
+
* The project must be in the workspace the request resolves to. A
|
|
11487
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
11488
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
11489
|
+
* the workspace the header is ignored.
|
|
11490
|
+
*
|
|
11491
|
+
*/
|
|
11492
|
+
'X-Comfy-Project-ID'?: string;
|
|
11493
|
+
};
|
|
10880
11494
|
path?: never;
|
|
10881
11495
|
query?: never;
|
|
10882
11496
|
url: '/api/assets';
|
|
@@ -10911,7 +11525,7 @@ export type CreateAssetErrors = {
|
|
|
10911
11525
|
*/
|
|
10912
11526
|
500: ErrorResponse;
|
|
10913
11527
|
/**
|
|
10914
|
-
* Temporary upload unavailability. `PRIVATE_MODELS_UNAVAILABLE` means model-import eligibility could not be resolved; retry without inferring plan ineligibility. `UPLOAD_BUDGET_EXHAUSTED` means the
|
|
11528
|
+
* Temporary upload unavailability. `PRIVATE_MODELS_UNAVAILABLE` means model-import eligibility could not be resolved; retry without inferring plan ineligibility. `UPLOAD_BUDGET_EXHAUSTED` means the upload buffer budget on this pod was full while buffering the file part (the first 32 MiB of a file sent before every field is buffered); retry after the Retry-After seconds.
|
|
10915
11529
|
*/
|
|
10916
11530
|
503: ErrorResponse;
|
|
10917
11531
|
};
|
|
@@ -11415,7 +12029,7 @@ export type CreateAssetFromHashData = {
|
|
|
11415
12029
|
*/
|
|
11416
12030
|
name?: string;
|
|
11417
12031
|
/**
|
|
11418
|
-
* Freeform tags for the asset. Common types include "models", "input", "output", and "temp", but any tag can be used in any order. At most 64 tags, each a non-empty UTF-8 string of at most 256 bytes (surrounding whitespace included) with no NUL; a request breaking either rule is refused with 400 `INVALID_BODY
|
|
12032
|
+
* Freeform tags for the asset. Common types include "models", "input", "output", and "temp", but any tag can be used in any order. At most 64 tags, each a non-empty UTF-8 string of at most 256 bytes (surrounding whitespace included) with no NUL; a request breaking either rule is refused with 400 `INVALID_BODY`, or with 413 `PAYLOAD_TOO_LARGE` once the body passes the 128,000-byte cap. JSON decoding replaces invalid UTF-8 and lone surrogate escapes (e.g. `�`) with U+FFFD (3 bytes each) instead of refusing them, and the 256-byte limit applies to the replaced value.
|
|
11419
12033
|
*/
|
|
11420
12034
|
tags: Array<string>;
|
|
11421
12035
|
/**
|
|
@@ -11425,6 +12039,26 @@ export type CreateAssetFromHashData = {
|
|
|
11425
12039
|
[key: string]: unknown;
|
|
11426
12040
|
};
|
|
11427
12041
|
};
|
|
12042
|
+
headers?: {
|
|
12043
|
+
/**
|
|
12044
|
+
* The project a request acts in. The operations that list it are the
|
|
12045
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
12046
|
+
* one. Absent means the workspace's default project, which is how
|
|
12047
|
+
* existing clients keep working.
|
|
12048
|
+
*
|
|
12049
|
+
* An operation on one existing workflow, run or asset does not take
|
|
12050
|
+
* it: the row's own project decides. Any other operation that creates
|
|
12051
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
12052
|
+
* this parameter.
|
|
12053
|
+
*
|
|
12054
|
+
* The project must be in the workspace the request resolves to. A
|
|
12055
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
12056
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
12057
|
+
* the workspace the header is ignored.
|
|
12058
|
+
*
|
|
12059
|
+
*/
|
|
12060
|
+
'X-Comfy-Project-ID'?: string;
|
|
12061
|
+
};
|
|
11428
12062
|
path?: never;
|
|
11429
12063
|
query?: never;
|
|
11430
12064
|
url: '/api/assets/from-hash';
|
|
@@ -11446,6 +12080,18 @@ export type CreateAssetFromHashErrors = {
|
|
|
11446
12080
|
* Source asset with given hash not found
|
|
11447
12081
|
*/
|
|
11448
12082
|
404: ErrorResponse;
|
|
12083
|
+
/**
|
|
12084
|
+
* Request body exceeds 128 KB (128,000 bytes). Enforced by the server's body-limit
|
|
12085
|
+
* middleware, so the status stays 413 rather than being remapped to
|
|
12086
|
+
* 400. With a Content-Length the body is refused before it is read;
|
|
12087
|
+
* a chunked body is cut off at the cap while it is decoded, so one
|
|
12088
|
+
* whose JSON value completes within the bytes read up to the cap
|
|
12089
|
+
* can still succeed. The service's error handler
|
|
12090
|
+
* still renders it into the same `{code, message}` envelope as the
|
|
12091
|
+
* other failures, with code `PAYLOAD_TOO_LARGE`.
|
|
12092
|
+
*
|
|
12093
|
+
*/
|
|
12094
|
+
413: ErrorResponse;
|
|
11449
12095
|
/**
|
|
11450
12096
|
* Validation error (e.g., disallowed model_type tag)
|
|
11451
12097
|
*/
|
|
@@ -11804,7 +12450,7 @@ export type StartModelUploadData = {
|
|
|
11804
12450
|
};
|
|
11805
12451
|
headers?: {
|
|
11806
12452
|
/**
|
|
11807
|
-
* The browser page's HTTPS origin, forwarded when opening a resumable session so its later responses carry CORS headers for that page.
|
|
12453
|
+
* The browser page's HTTPS origin, or local ComfyUI's loopback http://localhost:<port> or http://127.0.0.1:<port>, forwarded when opening a resumable session so its later responses carry CORS headers for that page.
|
|
11808
12454
|
*/
|
|
11809
12455
|
Origin?: string;
|
|
11810
12456
|
};
|
|
@@ -12381,7 +13027,7 @@ export type ExchangeTokenErrors = {
|
|
|
12381
13027
|
*/
|
|
12382
13028
|
400: ErrorResponse;
|
|
12383
13029
|
/**
|
|
12384
|
-
* Invalid or expired Firebase JWT, no live web session, or a revoked, expired, deleted or unknown API key. Refused credentials get `code` `UNAUTHORIZED` and a `message`. A session that ends within seconds gets `code` `session_expired`: a token minted from it would expire on arrival. `oauth_grant_ended`: an OAuth access token holding `comfy-cloud:workspace-token:mint
|
|
13030
|
+
* Invalid or expired Firebase JWT, no live web session, or a revoked, expired, deleted or unknown API key. Refused credentials get `code` `UNAUTHORIZED` and a `message`. A session that ends within seconds gets `code` `session_expired`: a token minted from it would expire on arrival. `oauth_grant_ended`: an OAuth access token minting a partner-node token, or holding `comfy-cloud:workspace-token:mint`, whose grant was signed out, revoked or expired, even though the token itself is still valid; sign in again.
|
|
12385
13031
|
*/
|
|
12386
13032
|
401: ErrorResponse;
|
|
12387
13033
|
/**
|
|
@@ -12401,7 +13047,7 @@ export type ExchangeTokenErrors = {
|
|
|
12401
13047
|
*/
|
|
12402
13048
|
500: ErrorResponse;
|
|
12403
13049
|
/**
|
|
12404
|
-
*
|
|
13050
|
+
* An API key could not be verified, so retry: the key may be good. `code` is `VERIFY_UNAVAILABLE` when a database read of the exchange failed, `VERIFY_BUSY` when none of the exchange's connections freed within 0.5 s, and `SERVICE_UNAVAILABLE` when the comfy-api registry or the account-status check's Firebase read failed. `partner_node_token_disabled`: a partner-node mint while ops have switched those off (`PartnerNodeTokenMintDisabled`); mint without `resource` instead. `oauth_workspace_mint_disabled`: an OAuth grant naming a workspace other than its own while ops have switched that off (`OAuthCrossWorkspaceMintDisabled`); authorize again for that workspace.
|
|
12405
13051
|
*/
|
|
12406
13052
|
503: ErrorResponse;
|
|
12407
13053
|
};
|
|
@@ -13836,8 +14482,16 @@ export type CreateInteractiveTopupErrors = {
|
|
|
13836
14482
|
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
13837
14483
|
*/
|
|
13838
14484
|
403: ForbiddenError;
|
|
14485
|
+
/**
|
|
14486
|
+
* `PURCHASE_NOT_FOUND`: purchase_id names no purchase of this actor in this workspace. Nothing was charged.
|
|
14487
|
+
*/
|
|
14488
|
+
404: ErrorResponse;
|
|
13839
14489
|
/**
|
|
13840
14490
|
* Immutable request mismatch, another pending operation, or billing reconciliation required. Do not start another purchase while unresolved.
|
|
14491
|
+
* With purchase_id, nothing was charged by this request and GET /api/billing/topup/purchases/{id} has the purchase's outcome:
|
|
14492
|
+
* `PURCHASE_ATTEMPT_IN_PROGRESS` (an earlier attempt is unresolved), `PURCHASE_ALREADY_PAID`, `PURCHASE_SUPERSEDED` (a newer purchase or hosted checkout replaced it),
|
|
14493
|
+
* `PURCHASE_EXPIRED`, or `PURCHASE_MISMATCH` (amount or auto_top_up differ from the purchase).
|
|
14494
|
+
*
|
|
13841
14495
|
*/
|
|
13842
14496
|
409: ErrorResponse;
|
|
13843
14497
|
/**
|
|
@@ -13865,6 +14519,88 @@ export type CreateInteractiveTopupResponses = {
|
|
|
13865
14519
|
200: CreateTopupResponse;
|
|
13866
14520
|
};
|
|
13867
14521
|
export type CreateInteractiveTopupResponse = CreateInteractiveTopupResponses[keyof CreateInteractiveTopupResponses];
|
|
14522
|
+
export type CreateTopupPurchaseData = {
|
|
14523
|
+
body: CreateTopupPurchaseRequest;
|
|
14524
|
+
path?: never;
|
|
14525
|
+
query?: never;
|
|
14526
|
+
url: '/api/billing/topup/purchases';
|
|
14527
|
+
};
|
|
14528
|
+
export type CreateTopupPurchaseErrors = {
|
|
14529
|
+
/**
|
|
14530
|
+
* Invalid amount, auto top-up settings, or billing rail
|
|
14531
|
+
*/
|
|
14532
|
+
400: ErrorResponse;
|
|
14533
|
+
/**
|
|
14534
|
+
* Authentication required
|
|
14535
|
+
*/
|
|
14536
|
+
401: ErrorResponse;
|
|
14537
|
+
/**
|
|
14538
|
+
* Caller may not top up, the workspace is blocked, or purchases are paused
|
|
14539
|
+
*/
|
|
14540
|
+
403: ErrorResponse;
|
|
14541
|
+
/**
|
|
14542
|
+
* Another purchase or checkout is being opened for the caller; retry.
|
|
14543
|
+
*/
|
|
14544
|
+
409: ErrorResponse;
|
|
14545
|
+
/**
|
|
14546
|
+
* Billing service unreachable
|
|
14547
|
+
*/
|
|
14548
|
+
502: ErrorResponse;
|
|
14549
|
+
/**
|
|
14550
|
+
* The purchase could not be opened; retry.
|
|
14551
|
+
*/
|
|
14552
|
+
503: ErrorResponse;
|
|
14553
|
+
};
|
|
14554
|
+
export type CreateTopupPurchaseError = CreateTopupPurchaseErrors[keyof CreateTopupPurchaseErrors];
|
|
14555
|
+
export type CreateTopupPurchaseResponses = {
|
|
14556
|
+
/**
|
|
14557
|
+
* Purchase opened; Cache-Control no-store.
|
|
14558
|
+
*/
|
|
14559
|
+
201: TopupPurchase;
|
|
14560
|
+
};
|
|
14561
|
+
export type CreateTopupPurchaseResponse = CreateTopupPurchaseResponses[keyof CreateTopupPurchaseResponses];
|
|
14562
|
+
export type GetTopupPurchaseData = {
|
|
14563
|
+
body?: never;
|
|
14564
|
+
path: {
|
|
14565
|
+
id: string;
|
|
14566
|
+
};
|
|
14567
|
+
query?: never;
|
|
14568
|
+
url: '/api/billing/topup/purchases/{id}';
|
|
14569
|
+
};
|
|
14570
|
+
export type GetTopupPurchaseErrors = {
|
|
14571
|
+
/**
|
|
14572
|
+
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
14573
|
+
*/
|
|
14574
|
+
400: ErrorResponse;
|
|
14575
|
+
/**
|
|
14576
|
+
* Authentication required
|
|
14577
|
+
*/
|
|
14578
|
+
401: ErrorResponse;
|
|
14579
|
+
/**
|
|
14580
|
+
* Caller may not top up
|
|
14581
|
+
*/
|
|
14582
|
+
403: ErrorResponse;
|
|
14583
|
+
/**
|
|
14584
|
+
* `PURCHASE_NOT_FOUND`: no purchase of this caller in this workspace
|
|
14585
|
+
*/
|
|
14586
|
+
404: ErrorResponse;
|
|
14587
|
+
/**
|
|
14588
|
+
* Billing service unreachable
|
|
14589
|
+
*/
|
|
14590
|
+
502: ErrorResponse;
|
|
14591
|
+
/**
|
|
14592
|
+
* Purchase state unavailable; retry.
|
|
14593
|
+
*/
|
|
14594
|
+
503: ErrorResponse;
|
|
14595
|
+
};
|
|
14596
|
+
export type GetTopupPurchaseError = GetTopupPurchaseErrors[keyof GetTopupPurchaseErrors];
|
|
14597
|
+
export type GetTopupPurchaseResponses = {
|
|
14598
|
+
/**
|
|
14599
|
+
* Current purchase facts; Cache-Control no-store.
|
|
14600
|
+
*/
|
|
14601
|
+
200: TopupPurchase;
|
|
14602
|
+
};
|
|
14603
|
+
export type GetTopupPurchaseResponse = GetTopupPurchaseResponses[keyof GetTopupPurchaseResponses];
|
|
13868
14604
|
export type CreateTopupQuoteData = {
|
|
13869
14605
|
body: CreateTopupQuoteRequest;
|
|
13870
14606
|
path?: never;
|
|
@@ -13916,8 +14652,8 @@ export type GetBillingUsageTimeSeriesData = {
|
|
|
13916
14652
|
* key, a member's `person` and `source` views hold only their own
|
|
13917
14653
|
* rows, and an `unattributed` group carries spend with no usable
|
|
13918
14654
|
* identity so the groups still sum to the total. Elsewhere the response is an empty series with
|
|
13919
|
-
* `not_available` set. For
|
|
13920
|
-
* `model` are
|
|
14655
|
+
* `not_available` set. For every workspace `product_line` and
|
|
14656
|
+
* `model` are read from the ledger when the range starts on or
|
|
13921
14657
|
* after the environment's ledger start, and from the invoice otherwise; a model the
|
|
13922
14658
|
* ledger has no name for is `unspecified`. Under Serverless the model
|
|
13923
14659
|
* level is the deployment: `<deployment id>` for its GPU time and
|
|
@@ -14361,7 +15097,7 @@ export type GetFeaturesResponses = {
|
|
|
14361
15097
|
state: 'ready';
|
|
14362
15098
|
};
|
|
14363
15099
|
/**
|
|
14364
|
-
*
|
|
15100
|
+
* Served assignment for the Agent per-turn credit usage experiment. Control renders no usage line; treatment renders the authoritative server-reported charge beneath completed replies. It is omitted while the flag is inactive, evaluation is unavailable, the caller is anonymous, or no valid assignment is present, so clients cannot mistake the off state for a randomized control. Reading this field is not exposure; the frontend records exposure only when a charged reply is rendered.
|
|
14365
15101
|
*/
|
|
14366
15102
|
'agent-credit-usage-summary'?: 'control' | 'treatment';
|
|
14367
15103
|
/**
|
|
@@ -14438,9 +15174,13 @@ export type GetFeaturesResponses = {
|
|
|
14438
15174
|
*/
|
|
14439
15175
|
new_free_tier_subscriptions?: boolean;
|
|
14440
15176
|
/**
|
|
14441
|
-
* Whether the frontend should offer Open on Cloud.
|
|
15177
|
+
* Whether the frontend should offer Open on Cloud. Evaluates the PostHog rollout for signed-in and signed-out callers. Defaults to false when evaluation is unavailable. Hosted workflow access and execution require sign-in and their existing permissions.
|
|
14442
15178
|
*/
|
|
14443
15179
|
open_on_cloud_enabled?: boolean;
|
|
15180
|
+
/**
|
|
15181
|
+
* Whether the frontend should offer and start new model file transfers from local ComfyUI through Open on Cloud. Served only from an explicit boolean FrontendFeatureFlags entry. Absent or false disables new transfers. Upload endpoints enforce workspace access and storage permissions separately.
|
|
15182
|
+
*/
|
|
15183
|
+
open_on_cloud_model_upload_enabled?: boolean;
|
|
14444
15184
|
/**
|
|
14445
15185
|
* Whether the frontend should offer the local agent option in Open on Cloud. Requires a verified comfy.org session and a matching PostHog rollout. Defaults to false.
|
|
14446
15186
|
*/
|
|
@@ -15562,6 +16302,26 @@ export type GetJobStatusResponses = {
|
|
|
15562
16302
|
export type GetJobStatusResponse = GetJobStatusResponses[keyof GetJobStatusResponses];
|
|
15563
16303
|
export type ListJobsData = {
|
|
15564
16304
|
body?: never;
|
|
16305
|
+
headers?: {
|
|
16306
|
+
/**
|
|
16307
|
+
* The project a request acts in. The operations that list it are the
|
|
16308
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
16309
|
+
* one. Absent means the workspace's default project, which is how
|
|
16310
|
+
* existing clients keep working.
|
|
16311
|
+
*
|
|
16312
|
+
* An operation on one existing workflow, run or asset does not take
|
|
16313
|
+
* it: the row's own project decides. Any other operation that creates
|
|
16314
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
16315
|
+
* this parameter.
|
|
16316
|
+
*
|
|
16317
|
+
* The project must be in the workspace the request resolves to. A
|
|
16318
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
16319
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
16320
|
+
* the workspace the header is ignored.
|
|
16321
|
+
*
|
|
16322
|
+
*/
|
|
16323
|
+
'X-Comfy-Project-ID'?: string;
|
|
16324
|
+
};
|
|
15565
16325
|
path?: never;
|
|
15566
16326
|
query?: {
|
|
15567
16327
|
/**
|
|
@@ -15971,13 +16731,13 @@ export type GetLegacyObjectInfoByNodeClassErrors = {
|
|
|
15971
16731
|
*/
|
|
15972
16732
|
404: unknown;
|
|
15973
16733
|
};
|
|
15974
|
-
export type
|
|
16734
|
+
export type ListProjectsData = {
|
|
15975
16735
|
body?: never;
|
|
15976
16736
|
path?: never;
|
|
15977
16737
|
query?: never;
|
|
15978
|
-
url: '/api/
|
|
16738
|
+
url: '/api/projects';
|
|
15979
16739
|
};
|
|
15980
|
-
export type
|
|
16740
|
+
export type ListProjectsErrors = {
|
|
15981
16741
|
/**
|
|
15982
16742
|
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
15983
16743
|
*/
|
|
@@ -15987,75 +16747,396 @@ export type GetPromptInfoErrors = {
|
|
|
15987
16747
|
*/
|
|
15988
16748
|
401: ErrorResponse;
|
|
15989
16749
|
/**
|
|
15990
|
-
*
|
|
16750
|
+
* `projects_not_available`: Projects is turned off for the workspace, or the workspace's plan does not include Projects and it has no project but the default. A workspace whose plan lapsed while it had projects is answered 200, read-only, not 403. Do not read this as the workspace having no projects stored.
|
|
15991
16751
|
*/
|
|
15992
|
-
403:
|
|
16752
|
+
403: ErrorResponse;
|
|
16753
|
+
/**
|
|
16754
|
+
* `not_found`: Projects is not served for this workspace
|
|
16755
|
+
*/
|
|
16756
|
+
404: ErrorResponse;
|
|
15993
16757
|
/**
|
|
15994
16758
|
* Internal server error
|
|
15995
16759
|
*/
|
|
15996
16760
|
500: ErrorResponse;
|
|
15997
16761
|
};
|
|
15998
|
-
export type
|
|
15999
|
-
export type
|
|
16762
|
+
export type ListProjectsError = ListProjectsErrors[keyof ListProjectsErrors];
|
|
16763
|
+
export type ListProjectsResponses = {
|
|
16000
16764
|
/**
|
|
16001
|
-
*
|
|
16765
|
+
* Projects the caller can view. Also answered to a workspace whose plan no longer includes Projects (a lapsed or downgraded plan) but that still has projects other than the default: those projects are frozen and read-only, each with `writable: false`, and the quota has `max_active: 0` and `can_create: false`. Do not read a 200 as the plan including Projects; read `writable` on each project and `quota.can_create`.
|
|
16002
16766
|
*/
|
|
16003
|
-
200:
|
|
16767
|
+
200: ListProjectsResponse;
|
|
16004
16768
|
};
|
|
16005
|
-
export type
|
|
16006
|
-
export type
|
|
16007
|
-
body:
|
|
16769
|
+
export type ListProjectsResponse2 = ListProjectsResponses[keyof ListProjectsResponses];
|
|
16770
|
+
export type CreateProjectData = {
|
|
16771
|
+
body: CreateProjectRequest;
|
|
16008
16772
|
path?: never;
|
|
16009
16773
|
query?: never;
|
|
16010
|
-
url: '/api/
|
|
16774
|
+
url: '/api/projects';
|
|
16011
16775
|
};
|
|
16012
|
-
export type
|
|
16776
|
+
export type CreateProjectErrors = {
|
|
16013
16777
|
/**
|
|
16014
|
-
*
|
|
16778
|
+
* `invalid_request`: a bad name, role or body; `details` names the fields. Or `workspace_id_invalid`; see `SessionWorkspaceIDInvalid`.
|
|
16015
16779
|
*/
|
|
16016
|
-
400:
|
|
16780
|
+
400: ErrorResponse;
|
|
16017
16781
|
/**
|
|
16018
|
-
*
|
|
16782
|
+
* Unauthorized
|
|
16019
16783
|
*/
|
|
16020
16784
|
401: ErrorResponse;
|
|
16021
16785
|
/**
|
|
16022
|
-
*
|
|
16786
|
+
* `permission_denied`: the caller lacks `workspace.projects` write; `details.permission` names it. Or `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off. Or `FORBIDDEN` with an `insufficient_scope` message: an OAuth grant without `comfy-cloud:members:write` sent a non-empty `members` while OAuth scopes are enforced; sent with a `WWW-Authenticate` insufficient_scope challenge.
|
|
16023
16787
|
*/
|
|
16024
|
-
|
|
16788
|
+
403: ErrorResponse;
|
|
16025
16789
|
/**
|
|
16026
|
-
*
|
|
16790
|
+
* `not_found`: Projects is not served for this workspace
|
|
16027
16791
|
*/
|
|
16028
|
-
|
|
16792
|
+
404: ErrorResponse;
|
|
16029
16793
|
/**
|
|
16030
|
-
*
|
|
16794
|
+
* `project_limit_reached`: the workspace is at its project limit; `details` carries `max_active` and `active`. Or `project_name_taken`: the name is already used in the workspace, whatever its case.
|
|
16031
16795
|
*/
|
|
16032
|
-
|
|
16796
|
+
409: ErrorResponse;
|
|
16033
16797
|
/**
|
|
16034
|
-
*
|
|
16798
|
+
* `not_workspace_member`: a listed member is not in the workspace; `details.user_ids` names them
|
|
16035
16799
|
*/
|
|
16036
|
-
|
|
16800
|
+
422: ErrorResponse;
|
|
16037
16801
|
/**
|
|
16038
16802
|
* Internal server error
|
|
16039
16803
|
*/
|
|
16040
|
-
500:
|
|
16041
|
-
/**
|
|
16042
|
-
* Service unavailable
|
|
16043
|
-
*/
|
|
16044
|
-
503: PromptErrorResponse;
|
|
16804
|
+
500: ErrorResponse;
|
|
16045
16805
|
};
|
|
16046
|
-
export type
|
|
16047
|
-
export type
|
|
16806
|
+
export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
|
|
16807
|
+
export type CreateProjectResponses = {
|
|
16048
16808
|
/**
|
|
16049
|
-
*
|
|
16809
|
+
* Project created
|
|
16050
16810
|
*/
|
|
16051
|
-
|
|
16811
|
+
201: Project;
|
|
16052
16812
|
};
|
|
16053
|
-
export type
|
|
16054
|
-
export type
|
|
16813
|
+
export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
|
|
16814
|
+
export type GetProjectData = {
|
|
16055
16815
|
body?: never;
|
|
16056
16816
|
path: {
|
|
16057
|
-
|
|
16058
|
-
|
|
16817
|
+
/**
|
|
16818
|
+
* Project ID
|
|
16819
|
+
*/
|
|
16820
|
+
id: string;
|
|
16821
|
+
};
|
|
16822
|
+
query?: never;
|
|
16823
|
+
url: '/api/projects/{id}';
|
|
16824
|
+
};
|
|
16825
|
+
export type GetProjectErrors = {
|
|
16826
|
+
/**
|
|
16827
|
+
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
16828
|
+
*/
|
|
16829
|
+
400: ErrorResponse;
|
|
16830
|
+
/**
|
|
16831
|
+
* Unauthorized
|
|
16832
|
+
*/
|
|
16833
|
+
401: ErrorResponse;
|
|
16834
|
+
/**
|
|
16835
|
+
* `projects_not_available`: Projects is turned off for the workspace, or the workspace's plan does not include Projects and it has no project but the default. A workspace whose plan lapsed while it had projects answers 200 for a project the caller may view, not 403. Do not read this as the project not existing.
|
|
16836
|
+
*/
|
|
16837
|
+
403: ErrorResponse;
|
|
16838
|
+
/**
|
|
16839
|
+
* `not_found`: the project does not exist, or the caller may not view it. The two look the same.
|
|
16840
|
+
*/
|
|
16841
|
+
404: ErrorResponse;
|
|
16842
|
+
/**
|
|
16843
|
+
* Internal server error
|
|
16844
|
+
*/
|
|
16845
|
+
500: ErrorResponse;
|
|
16846
|
+
};
|
|
16847
|
+
export type GetProjectError = GetProjectErrors[keyof GetProjectErrors];
|
|
16848
|
+
export type GetProjectResponses = {
|
|
16849
|
+
/**
|
|
16850
|
+
* The project. In a workspace whose plan no longer includes Projects (a lapsed or downgraded plan), a project other than the default is still answered to whoever may view it, frozen, with `writable: false`. Do not read a 200 as the project taking writes, or as the plan including Projects; read `writable` and `permissions`.
|
|
16851
|
+
*/
|
|
16852
|
+
200: Project;
|
|
16853
|
+
};
|
|
16854
|
+
export type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses];
|
|
16855
|
+
export type UpdateProjectData = {
|
|
16856
|
+
body: UpdateProjectRequest;
|
|
16857
|
+
path: {
|
|
16858
|
+
/**
|
|
16859
|
+
* Project ID
|
|
16860
|
+
*/
|
|
16861
|
+
id: string;
|
|
16862
|
+
};
|
|
16863
|
+
query?: never;
|
|
16864
|
+
url: '/api/projects/{id}';
|
|
16865
|
+
};
|
|
16866
|
+
export type UpdateProjectErrors = {
|
|
16867
|
+
/**
|
|
16868
|
+
* `invalid_request`: a bad name or body; `details` names the fields. Or `workspace_id_invalid`; see `SessionWorkspaceIDInvalid`.
|
|
16869
|
+
*/
|
|
16870
|
+
400: ErrorResponse;
|
|
16871
|
+
/**
|
|
16872
|
+
* Unauthorized
|
|
16873
|
+
*/
|
|
16874
|
+
401: ErrorResponse;
|
|
16875
|
+
/**
|
|
16876
|
+
* `permission_denied`: the caller lacks the permission the change needs; `details.permission` names it. `project_frozen`: the project is frozen and takes no writes. Or `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off
|
|
16877
|
+
*/
|
|
16878
|
+
403: ErrorResponse;
|
|
16879
|
+
/**
|
|
16880
|
+
* `not_found`: the project does not exist, or the caller may not view it. The two look the same.
|
|
16881
|
+
*/
|
|
16882
|
+
404: ErrorResponse;
|
|
16883
|
+
/**
|
|
16884
|
+
* `project_name_taken`: the name is already used in the workspace, whatever its case
|
|
16885
|
+
*/
|
|
16886
|
+
409: ErrorResponse;
|
|
16887
|
+
/**
|
|
16888
|
+
* Internal server error
|
|
16889
|
+
*/
|
|
16890
|
+
500: ErrorResponse;
|
|
16891
|
+
};
|
|
16892
|
+
export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
|
|
16893
|
+
export type UpdateProjectResponses = {
|
|
16894
|
+
/**
|
|
16895
|
+
* Project updated
|
|
16896
|
+
*/
|
|
16897
|
+
200: Project;
|
|
16898
|
+
};
|
|
16899
|
+
export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses];
|
|
16900
|
+
export type ListProjectMembersData = {
|
|
16901
|
+
body?: never;
|
|
16902
|
+
path: {
|
|
16903
|
+
/**
|
|
16904
|
+
* Project ID
|
|
16905
|
+
*/
|
|
16906
|
+
id: string;
|
|
16907
|
+
};
|
|
16908
|
+
query?: never;
|
|
16909
|
+
url: '/api/projects/{id}/members';
|
|
16910
|
+
};
|
|
16911
|
+
export type ListProjectMembersErrors = {
|
|
16912
|
+
/**
|
|
16913
|
+
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
16914
|
+
*/
|
|
16915
|
+
400: ErrorResponse;
|
|
16916
|
+
/**
|
|
16917
|
+
* Unauthorized
|
|
16918
|
+
*/
|
|
16919
|
+
401: ErrorResponse;
|
|
16920
|
+
/**
|
|
16921
|
+
* `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off
|
|
16922
|
+
*/
|
|
16923
|
+
403: ErrorResponse;
|
|
16924
|
+
/**
|
|
16925
|
+
* `not_found`: the project does not exist, or the caller may not view it. The two look the same.
|
|
16926
|
+
*/
|
|
16927
|
+
404: ErrorResponse;
|
|
16928
|
+
/**
|
|
16929
|
+
* Internal server error
|
|
16930
|
+
*/
|
|
16931
|
+
500: ErrorResponse;
|
|
16932
|
+
};
|
|
16933
|
+
export type ListProjectMembersError = ListProjectMembersErrors[keyof ListProjectMembersErrors];
|
|
16934
|
+
export type ListProjectMembersResponses = {
|
|
16935
|
+
/**
|
|
16936
|
+
* Project members
|
|
16937
|
+
*/
|
|
16938
|
+
200: ListProjectMembersResponse;
|
|
16939
|
+
};
|
|
16940
|
+
export type ListProjectMembersResponse2 = ListProjectMembersResponses[keyof ListProjectMembersResponses];
|
|
16941
|
+
export type RemoveProjectMemberData = {
|
|
16942
|
+
body?: never;
|
|
16943
|
+
path: {
|
|
16944
|
+
/**
|
|
16945
|
+
* Project ID
|
|
16946
|
+
*/
|
|
16947
|
+
id: string;
|
|
16948
|
+
/**
|
|
16949
|
+
* User ID of the workspace member
|
|
16950
|
+
*/
|
|
16951
|
+
userId: string;
|
|
16952
|
+
};
|
|
16953
|
+
query?: never;
|
|
16954
|
+
url: '/api/projects/{id}/members/{userId}';
|
|
16955
|
+
};
|
|
16956
|
+
export type RemoveProjectMemberErrors = {
|
|
16957
|
+
/**
|
|
16958
|
+
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
16959
|
+
*/
|
|
16960
|
+
400: ErrorResponse;
|
|
16961
|
+
/**
|
|
16962
|
+
* Unauthorized
|
|
16963
|
+
*/
|
|
16964
|
+
401: ErrorResponse;
|
|
16965
|
+
/**
|
|
16966
|
+
* `permission_denied`: the caller lacks `project.members` write; `details.permission` names it. `project_frozen`: the project is frozen and takes no writes. Or `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off
|
|
16967
|
+
*/
|
|
16968
|
+
403: ErrorResponse;
|
|
16969
|
+
/**
|
|
16970
|
+
* `not_found`: the project does not exist, the caller may not view it, or the user is not in the project
|
|
16971
|
+
*/
|
|
16972
|
+
404: ErrorResponse;
|
|
16973
|
+
/**
|
|
16974
|
+
* Internal server error
|
|
16975
|
+
*/
|
|
16976
|
+
500: ErrorResponse;
|
|
16977
|
+
};
|
|
16978
|
+
export type RemoveProjectMemberError = RemoveProjectMemberErrors[keyof RemoveProjectMemberErrors];
|
|
16979
|
+
export type RemoveProjectMemberResponses = {
|
|
16980
|
+
/**
|
|
16981
|
+
* Member removed
|
|
16982
|
+
*/
|
|
16983
|
+
204: void;
|
|
16984
|
+
};
|
|
16985
|
+
export type RemoveProjectMemberResponse = RemoveProjectMemberResponses[keyof RemoveProjectMemberResponses];
|
|
16986
|
+
export type SetProjectMemberData = {
|
|
16987
|
+
body: SetProjectMemberRequest;
|
|
16988
|
+
path: {
|
|
16989
|
+
/**
|
|
16990
|
+
* Project ID
|
|
16991
|
+
*/
|
|
16992
|
+
id: string;
|
|
16993
|
+
/**
|
|
16994
|
+
* User ID of the workspace member
|
|
16995
|
+
*/
|
|
16996
|
+
userId: string;
|
|
16997
|
+
};
|
|
16998
|
+
query?: never;
|
|
16999
|
+
url: '/api/projects/{id}/members/{userId}';
|
|
17000
|
+
};
|
|
17001
|
+
export type SetProjectMemberErrors = {
|
|
17002
|
+
/**
|
|
17003
|
+
* `invalid_request`: a bad role or body; `details` names the fields. Or `workspace_id_invalid`; see `SessionWorkspaceIDInvalid`.
|
|
17004
|
+
*/
|
|
17005
|
+
400: ErrorResponse;
|
|
17006
|
+
/**
|
|
17007
|
+
* Unauthorized
|
|
17008
|
+
*/
|
|
17009
|
+
401: ErrorResponse;
|
|
17010
|
+
/**
|
|
17011
|
+
* `permission_denied`: the caller lacks `project.members` write; `details.permission` names it. `project_frozen`: the project is frozen and takes no writes. Or `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off
|
|
17012
|
+
*/
|
|
17013
|
+
403: ErrorResponse;
|
|
17014
|
+
/**
|
|
17015
|
+
* `not_found`: the project does not exist, or the caller may not view it. The two look the same.
|
|
17016
|
+
*/
|
|
17017
|
+
404: ErrorResponse;
|
|
17018
|
+
/**
|
|
17019
|
+
* `not_workspace_member`: the user is not in the workspace; `details.user_ids` names them
|
|
17020
|
+
*/
|
|
17021
|
+
422: ErrorResponse;
|
|
17022
|
+
/**
|
|
17023
|
+
* Internal server error
|
|
17024
|
+
*/
|
|
17025
|
+
500: ErrorResponse;
|
|
17026
|
+
};
|
|
17027
|
+
export type SetProjectMemberError = SetProjectMemberErrors[keyof SetProjectMemberErrors];
|
|
17028
|
+
export type SetProjectMemberResponses = {
|
|
17029
|
+
/**
|
|
17030
|
+
* The member, with the role now in effect
|
|
17031
|
+
*/
|
|
17032
|
+
200: ProjectMember;
|
|
17033
|
+
};
|
|
17034
|
+
export type SetProjectMemberResponse = SetProjectMemberResponses[keyof SetProjectMemberResponses];
|
|
17035
|
+
export type GetPromptInfoData = {
|
|
17036
|
+
body?: never;
|
|
17037
|
+
path?: never;
|
|
17038
|
+
query?: never;
|
|
17039
|
+
url: '/api/prompt';
|
|
17040
|
+
};
|
|
17041
|
+
export type GetPromptInfoErrors = {
|
|
17042
|
+
/**
|
|
17043
|
+
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
17044
|
+
*/
|
|
17045
|
+
400: ErrorResponse;
|
|
17046
|
+
/**
|
|
17047
|
+
* Unauthorized
|
|
17048
|
+
*/
|
|
17049
|
+
401: ErrorResponse;
|
|
17050
|
+
/**
|
|
17051
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `personal_workspace_disabled` means the workspace is the account's personal one and an SSO organization holds the account, so it cannot use it; `organization_id` names that organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
17052
|
+
*/
|
|
17053
|
+
403: ForbiddenError;
|
|
17054
|
+
/**
|
|
17055
|
+
* Internal server error
|
|
17056
|
+
*/
|
|
17057
|
+
500: ErrorResponse;
|
|
17058
|
+
};
|
|
17059
|
+
export type GetPromptInfoError = GetPromptInfoErrors[keyof GetPromptInfoErrors];
|
|
17060
|
+
export type GetPromptInfoResponses = {
|
|
17061
|
+
/**
|
|
17062
|
+
* Success
|
|
17063
|
+
*/
|
|
17064
|
+
200: PromptInfo;
|
|
17065
|
+
};
|
|
17066
|
+
export type GetPromptInfoResponse = GetPromptInfoResponses[keyof GetPromptInfoResponses];
|
|
17067
|
+
export type ExecutePromptData = {
|
|
17068
|
+
body: PromptRequest;
|
|
17069
|
+
headers?: {
|
|
17070
|
+
/**
|
|
17071
|
+
* The project a request acts in. The operations that list it are the
|
|
17072
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
17073
|
+
* one. Absent means the workspace's default project, which is how
|
|
17074
|
+
* existing clients keep working.
|
|
17075
|
+
*
|
|
17076
|
+
* An operation on one existing workflow, run or asset does not take
|
|
17077
|
+
* it: the row's own project decides. Any other operation that creates
|
|
17078
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
17079
|
+
* this parameter.
|
|
17080
|
+
*
|
|
17081
|
+
* The project must be in the workspace the request resolves to. A
|
|
17082
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
17083
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
17084
|
+
* the workspace the header is ignored.
|
|
17085
|
+
*
|
|
17086
|
+
*/
|
|
17087
|
+
'X-Comfy-Project-ID'?: string;
|
|
17088
|
+
};
|
|
17089
|
+
path?: never;
|
|
17090
|
+
query?: never;
|
|
17091
|
+
url: '/api/prompt';
|
|
17092
|
+
};
|
|
17093
|
+
export type ExecutePromptErrors = {
|
|
17094
|
+
/**
|
|
17095
|
+
* Invalid prompt, or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
17096
|
+
*/
|
|
17097
|
+
400: PromptErrorResponse;
|
|
17098
|
+
/**
|
|
17099
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
17100
|
+
*/
|
|
17101
|
+
401: ErrorResponse;
|
|
17102
|
+
/**
|
|
17103
|
+
* The account's plan does not allow this submission; nothing was queued and retrying without changing the plan never succeeds. Disambiguated by the body's `error.type`, NOT by parsing `error.message`: `PAYMENT_REQUIRED` (no active subscription, no funds, blocked tier), `CLOUD_SUBSCRIPTION_REQUIRED`, `FREE_TIER_EXHAUSTED`, `PARTNER_NODE_PAYMENT_REQUIRED`, or `MODEL_PAYMENT_REQUIRED`. A `PAYMENT_REQUIRED` body may also carry `error.reason`, the billing policy's reason for the refusal, e.g. `subscription_inactive`, `no_funds` or `manual_block`; treat an absent or unknown reason as the generic refusal.
|
|
17104
|
+
*/
|
|
17105
|
+
402: PromptErrorResponse;
|
|
17106
|
+
/**
|
|
17107
|
+
* Workspace governance policy blocks one or more partner providers (error.type PARTNER_NODE_DISABLED; error.class_types lists the offending nodes, error.providers the disabled providers), or a refused request with `code` and `message` (see SessionWriteForbidden).
|
|
17108
|
+
*/
|
|
17109
|
+
403: PromptErrorResponse;
|
|
17110
|
+
/**
|
|
17111
|
+
* Workflow JSON too large
|
|
17112
|
+
*/
|
|
17113
|
+
413: PromptErrorResponse;
|
|
17114
|
+
/**
|
|
17115
|
+
* Retryable backpressure, disambiguated by the body's `error.type`: `QUEUE_LIMIT` (this workspace's bounded job queue is full - retrying after some queued jobs complete will succeed) or `FREE_TIER_UNAVAILABLE` (the free tier is switched off for now - retrying once it is back will succeed), or `BILLING_UNAVAILABLE` with `error.reason` `funds_unavailable` (ingest got no billing verdict for the workspace because the billing service was unreachable or rejected the check, or the billing-status read behind a no-funds verdict failed - nothing was queued, and retrying the same submission after `Retry-After` seconds will succeed once billing answers). Of the billing outcomes, a plan or billing policy refusal is a 402; only billing being unavailable is a 429. For a browser that picked a developer-platform deployment, also `PLATFORM_REFUSED` with `error.details` `deployment_not_ready` (the deployment is on its way to ready - nothing was queued, and retrying after `Retry-After` seconds will succeed once it is ready) or another platform 429 passed through.
|
|
17116
|
+
*/
|
|
17117
|
+
429: PromptErrorResponse;
|
|
17118
|
+
/**
|
|
17119
|
+
* Internal server error
|
|
17120
|
+
*/
|
|
17121
|
+
500: PromptErrorResponse;
|
|
17122
|
+
/**
|
|
17123
|
+
* Service unavailable
|
|
17124
|
+
*/
|
|
17125
|
+
503: PromptErrorResponse;
|
|
17126
|
+
};
|
|
17127
|
+
export type ExecutePromptError = ExecutePromptErrors[keyof ExecutePromptErrors];
|
|
17128
|
+
export type ExecutePromptResponses = {
|
|
17129
|
+
/**
|
|
17130
|
+
* Success - Prompt accepted
|
|
17131
|
+
*/
|
|
17132
|
+
200: PromptResponse;
|
|
17133
|
+
};
|
|
17134
|
+
export type ExecutePromptResponse = ExecutePromptResponses[keyof ExecutePromptResponses];
|
|
17135
|
+
export type GetLegacyPromptByIdData = {
|
|
17136
|
+
body?: never;
|
|
17137
|
+
path: {
|
|
17138
|
+
prompt_id: string;
|
|
17139
|
+
};
|
|
16059
17140
|
query?: never;
|
|
16060
17141
|
url: '/api/prompt/{prompt_id}';
|
|
16061
17142
|
};
|
|
@@ -16844,6 +17925,26 @@ export type UploadImageData = {
|
|
|
16844
17925
|
*/
|
|
16845
17926
|
type?: string;
|
|
16846
17927
|
};
|
|
17928
|
+
headers?: {
|
|
17929
|
+
/**
|
|
17930
|
+
* The project a request acts in. The operations that list it are the
|
|
17931
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
17932
|
+
* one. Absent means the workspace's default project, which is how
|
|
17933
|
+
* existing clients keep working.
|
|
17934
|
+
*
|
|
17935
|
+
* An operation on one existing workflow, run or asset does not take
|
|
17936
|
+
* it: the row's own project decides. Any other operation that creates
|
|
17937
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
17938
|
+
* this parameter.
|
|
17939
|
+
*
|
|
17940
|
+
* The project must be in the workspace the request resolves to. A
|
|
17941
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
17942
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
17943
|
+
* the workspace the header is ignored.
|
|
17944
|
+
*
|
|
17945
|
+
*/
|
|
17946
|
+
'X-Comfy-Project-ID'?: string;
|
|
17947
|
+
};
|
|
16847
17948
|
path?: never;
|
|
16848
17949
|
query?: never;
|
|
16849
17950
|
url: '/api/upload/image';
|
|
@@ -16902,6 +18003,26 @@ export type UploadMaskData = {
|
|
|
16902
18003
|
*/
|
|
16903
18004
|
original_ref: string;
|
|
16904
18005
|
};
|
|
18006
|
+
headers?: {
|
|
18007
|
+
/**
|
|
18008
|
+
* The project a request acts in. The operations that list it are the
|
|
18009
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
18010
|
+
* one. Absent means the workspace's default project, which is how
|
|
18011
|
+
* existing clients keep working.
|
|
18012
|
+
*
|
|
18013
|
+
* An operation on one existing workflow, run or asset does not take
|
|
18014
|
+
* it: the row's own project decides. Any other operation that creates
|
|
18015
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
18016
|
+
* this parameter.
|
|
18017
|
+
*
|
|
18018
|
+
* The project must be in the workspace the request resolves to. A
|
|
18019
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
18020
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
18021
|
+
* the workspace the header is ignored.
|
|
18022
|
+
*
|
|
18023
|
+
*/
|
|
18024
|
+
'X-Comfy-Project-ID'?: string;
|
|
18025
|
+
};
|
|
16905
18026
|
path?: never;
|
|
16906
18027
|
query?: never;
|
|
16907
18028
|
url: '/api/upload/mask';
|
|
@@ -17538,7 +18659,7 @@ export type ListCccWebsiteCardsData = {
|
|
|
17538
18659
|
kind: 'MODEL' | 'WORKFLOW' | 'APP';
|
|
17539
18660
|
limit?: number;
|
|
17540
18661
|
cursor?: string;
|
|
17541
|
-
locale?: 'en' | 'zh-CN' | 'ja';
|
|
18662
|
+
locale?: 'en' | 'zh-CN' | 'ja' | 'zh-TW' | 'ko' | 'es' | 'pt-BR' | 'ru' | 'fr' | 'tr' | 'ar';
|
|
17542
18663
|
q?: string;
|
|
17543
18664
|
/**
|
|
17544
18665
|
* newest orders by the time each page first went live on the Hub, newest first, then title and uid; pages with no recorded time come last.
|
|
@@ -18343,7 +19464,7 @@ export type GetCccStagingData = {
|
|
|
18343
19464
|
};
|
|
18344
19465
|
export type GetCccStagingErrors = {
|
|
18345
19466
|
/**
|
|
18346
|
-
* Unknown, repeated scalar or invalid filter; bounded result exceeded; or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
19467
|
+
* Unknown, repeated scalar or invalid filter; bounded result exceeded (including the unpaged review over its document budget); or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
18347
19468
|
*/
|
|
18348
19469
|
400: ErrorResponse;
|
|
18349
19470
|
/**
|
|
@@ -18632,7 +19753,7 @@ export type ListCccWebsiteModelDirectoryData = {
|
|
|
18632
19753
|
};
|
|
18633
19754
|
path?: never;
|
|
18634
19755
|
query?: {
|
|
18635
|
-
locale?: 'en' | 'zh-CN' | 'ja';
|
|
19756
|
+
locale?: 'en' | 'zh-CN' | 'ja' | 'zh-TW' | 'ko' | 'es' | 'pt-BR' | 'ru' | 'fr' | 'tr' | 'ar';
|
|
18636
19757
|
};
|
|
18637
19758
|
url: '/api/v1/catalog/model-directory';
|
|
18638
19759
|
};
|
|
@@ -19079,7 +20200,7 @@ export type GetCccWebsiteRootPresentationData = {
|
|
|
19079
20200
|
path?: never;
|
|
19080
20201
|
query: {
|
|
19081
20202
|
path: '/hub/models/' | '/hub/workflows/' | '/hub/apps/';
|
|
19082
|
-
locale?: 'en' | 'zh-CN' | 'ja';
|
|
20203
|
+
locale?: 'en' | 'zh-CN' | 'ja' | 'zh-TW' | 'ko' | 'es' | 'pt-BR' | 'ru' | 'fr' | 'tr' | 'ar';
|
|
19083
20204
|
/**
|
|
19084
20205
|
* Live revision selected once at page entry. Redis requires both this revision and the selected authority pin. On an origin miss the revision must match current Live.
|
|
19085
20206
|
*/
|
|
@@ -19625,6 +20746,26 @@ export type GetWorkflowTemplatesResponses = {
|
|
|
19625
20746
|
export type GetWorkflowTemplatesResponse = GetWorkflowTemplatesResponses[keyof GetWorkflowTemplatesResponses];
|
|
19626
20747
|
export type ListWorkflowsData = {
|
|
19627
20748
|
body?: never;
|
|
20749
|
+
headers?: {
|
|
20750
|
+
/**
|
|
20751
|
+
* The project a request acts in. The operations that list it are the
|
|
20752
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
20753
|
+
* one. Absent means the workspace's default project, which is how
|
|
20754
|
+
* existing clients keep working.
|
|
20755
|
+
*
|
|
20756
|
+
* An operation on one existing workflow, run or asset does not take
|
|
20757
|
+
* it: the row's own project decides. Any other operation that creates
|
|
20758
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
20759
|
+
* this parameter.
|
|
20760
|
+
*
|
|
20761
|
+
* The project must be in the workspace the request resolves to. A
|
|
20762
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
20763
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
20764
|
+
* the workspace the header is ignored.
|
|
20765
|
+
*
|
|
20766
|
+
*/
|
|
20767
|
+
'X-Comfy-Project-ID'?: string;
|
|
20768
|
+
};
|
|
19628
20769
|
path?: never;
|
|
19629
20770
|
query?: {
|
|
19630
20771
|
limit?: number;
|
|
@@ -19676,6 +20817,26 @@ export type ListWorkflowsResponses = {
|
|
|
19676
20817
|
export type ListWorkflowsResponse = ListWorkflowsResponses[keyof ListWorkflowsResponses];
|
|
19677
20818
|
export type CreateWorkflowData = {
|
|
19678
20819
|
body: CreateWorkflowRequest;
|
|
20820
|
+
headers?: {
|
|
20821
|
+
/**
|
|
20822
|
+
* The project a request acts in. The operations that list it are the
|
|
20823
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
20824
|
+
* one. Absent means the workspace's default project, which is how
|
|
20825
|
+
* existing clients keep working.
|
|
20826
|
+
*
|
|
20827
|
+
* An operation on one existing workflow, run or asset does not take
|
|
20828
|
+
* it: the row's own project decides. Any other operation that creates
|
|
20829
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
20830
|
+
* this parameter.
|
|
20831
|
+
*
|
|
20832
|
+
* The project must be in the workspace the request resolves to. A
|
|
20833
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
20834
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
20835
|
+
* the workspace the header is ignored.
|
|
20836
|
+
*
|
|
20837
|
+
*/
|
|
20838
|
+
'X-Comfy-Project-ID'?: string;
|
|
20839
|
+
};
|
|
19679
20840
|
path?: never;
|
|
19680
20841
|
query?: never;
|
|
19681
20842
|
url: '/api/workflows';
|
|
@@ -19880,6 +21041,26 @@ export type GetWorkflowContentResponses = {
|
|
|
19880
21041
|
export type GetWorkflowContentResponse = GetWorkflowContentResponses[keyof GetWorkflowContentResponses];
|
|
19881
21042
|
export type ForkWorkflowData = {
|
|
19882
21043
|
body: ForkWorkflowRequest;
|
|
21044
|
+
headers?: {
|
|
21045
|
+
/**
|
|
21046
|
+
* The project a request acts in. The operations that list it are the
|
|
21047
|
+
* ones that read it: they list workflows, runs or assets, or create
|
|
21048
|
+
* one. Absent means the workspace's default project, which is how
|
|
21049
|
+
* existing clients keep working.
|
|
21050
|
+
*
|
|
21051
|
+
* An operation on one existing workflow, run or asset does not take
|
|
21052
|
+
* it: the row's own project decides. Any other operation that creates
|
|
21053
|
+
* a workflow, run or asset acts in the default project until it lists
|
|
21054
|
+
* this parameter.
|
|
21055
|
+
*
|
|
21056
|
+
* The project must be in the workspace the request resolves to. A
|
|
21057
|
+
* project that does not exist, or that the caller may not view, is 404
|
|
21058
|
+
* `not_found`; the two look the same. Where Projects is not enabled for
|
|
21059
|
+
* the workspace the header is ignored.
|
|
21060
|
+
*
|
|
21061
|
+
*/
|
|
21062
|
+
'X-Comfy-Project-ID'?: string;
|
|
21063
|
+
};
|
|
19883
21064
|
path: {
|
|
19884
21065
|
/**
|
|
19885
21066
|
* The UUID of the source workflow to fork from.
|
|
@@ -20102,6 +21283,55 @@ export type CreateWorkflowUploadUrlResponses = {
|
|
|
20102
21283
|
200: UploadGrantResponse;
|
|
20103
21284
|
};
|
|
20104
21285
|
export type CreateWorkflowUploadUrlResponse = CreateWorkflowUploadUrlResponses[keyof CreateWorkflowUploadUrlResponses];
|
|
21286
|
+
export type ListWorkspaceAccessEventsData = {
|
|
21287
|
+
body?: never;
|
|
21288
|
+
path?: never;
|
|
21289
|
+
query?: {
|
|
21290
|
+
/**
|
|
21291
|
+
* Return only changes about this project
|
|
21292
|
+
*/
|
|
21293
|
+
project_id?: string;
|
|
21294
|
+
/**
|
|
21295
|
+
* The `next_cursor` of the previous page
|
|
21296
|
+
*/
|
|
21297
|
+
after?: string;
|
|
21298
|
+
/**
|
|
21299
|
+
* Maximum number of events to return
|
|
21300
|
+
*/
|
|
21301
|
+
limit?: number;
|
|
21302
|
+
};
|
|
21303
|
+
url: '/api/workspace/access-events';
|
|
21304
|
+
};
|
|
21305
|
+
export type ListWorkspaceAccessEventsErrors = {
|
|
21306
|
+
/**
|
|
21307
|
+
* `invalid_request`: a bad cursor or limit. Or `workspace_id_invalid`; see `SessionWorkspaceIDInvalid`.
|
|
21308
|
+
*/
|
|
21309
|
+
400: ErrorResponse;
|
|
21310
|
+
/**
|
|
21311
|
+
* Unauthorized
|
|
21312
|
+
*/
|
|
21313
|
+
401: ErrorResponse;
|
|
21314
|
+
/**
|
|
21315
|
+
* `permission_denied`: the caller lacks `workspace.audit` read; `details.permission` names it. Or `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off
|
|
21316
|
+
*/
|
|
21317
|
+
403: ErrorResponse;
|
|
21318
|
+
/**
|
|
21319
|
+
* `not_found`: Projects is not served for this workspace
|
|
21320
|
+
*/
|
|
21321
|
+
404: ErrorResponse;
|
|
21322
|
+
/**
|
|
21323
|
+
* Internal server error
|
|
21324
|
+
*/
|
|
21325
|
+
500: ErrorResponse;
|
|
21326
|
+
};
|
|
21327
|
+
export type ListWorkspaceAccessEventsError = ListWorkspaceAccessEventsErrors[keyof ListWorkspaceAccessEventsErrors];
|
|
21328
|
+
export type ListWorkspaceAccessEventsResponses = {
|
|
21329
|
+
/**
|
|
21330
|
+
* Access changes, newest first
|
|
21331
|
+
*/
|
|
21332
|
+
200: ListAccessEventsResponse;
|
|
21333
|
+
};
|
|
21334
|
+
export type ListWorkspaceAccessEventsResponse = ListWorkspaceAccessEventsResponses[keyof ListWorkspaceAccessEventsResponses];
|
|
20105
21335
|
export type ListWorkspaceApiKeysData = {
|
|
20106
21336
|
body?: never;
|
|
20107
21337
|
path?: never;
|
|
@@ -20516,14 +21746,100 @@ export type RemoveWorkspaceMemberData = {
|
|
|
20516
21746
|
body?: never;
|
|
20517
21747
|
path: {
|
|
20518
21748
|
/**
|
|
20519
|
-
* User ID to remove
|
|
21749
|
+
* User ID to remove
|
|
21750
|
+
*/
|
|
21751
|
+
userId: string;
|
|
21752
|
+
};
|
|
21753
|
+
query?: never;
|
|
21754
|
+
url: '/api/workspace/members/{userId}';
|
|
21755
|
+
};
|
|
21756
|
+
export type RemoveWorkspaceMemberErrors = {
|
|
21757
|
+
/**
|
|
21758
|
+
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
21759
|
+
*/
|
|
21760
|
+
400: ErrorResponse;
|
|
21761
|
+
/**
|
|
21762
|
+
* Unauthorized
|
|
21763
|
+
*/
|
|
21764
|
+
401: ErrorResponse;
|
|
21765
|
+
/**
|
|
21766
|
+
* Owner role required, cannot remove yourself, the original owner of a personal workspace cannot be removed (`CANNOT_REMOVE_ORIGINAL_OWNER`), or the creator of a team workspace cannot be removed (`CANNOT_REMOVE_CREATOR`)
|
|
21767
|
+
*/
|
|
21768
|
+
403: ErrorResponse;
|
|
21769
|
+
/**
|
|
21770
|
+
* Workspace or member not found
|
|
21771
|
+
*/
|
|
21772
|
+
404: ErrorResponse;
|
|
21773
|
+
/**
|
|
21774
|
+
* Internal server error
|
|
21775
|
+
*/
|
|
21776
|
+
500: ErrorResponse;
|
|
21777
|
+
};
|
|
21778
|
+
export type RemoveWorkspaceMemberError = RemoveWorkspaceMemberErrors[keyof RemoveWorkspaceMemberErrors];
|
|
21779
|
+
export type RemoveWorkspaceMemberResponses = {
|
|
21780
|
+
/**
|
|
21781
|
+
* Member removed
|
|
21782
|
+
*/
|
|
21783
|
+
204: void;
|
|
21784
|
+
};
|
|
21785
|
+
export type RemoveWorkspaceMemberResponse = RemoveWorkspaceMemberResponses[keyof RemoveWorkspaceMemberResponses];
|
|
21786
|
+
export type UpdateWorkspaceMemberRoleData = {
|
|
21787
|
+
body: UpdateMemberRoleRequest;
|
|
21788
|
+
path: {
|
|
21789
|
+
/**
|
|
21790
|
+
* User ID whose role is being changed
|
|
21791
|
+
*/
|
|
21792
|
+
userId: string;
|
|
21793
|
+
};
|
|
21794
|
+
query?: never;
|
|
21795
|
+
url: '/api/workspace/members/{userId}';
|
|
21796
|
+
};
|
|
21797
|
+
export type UpdateWorkspaceMemberRoleErrors = {
|
|
21798
|
+
/**
|
|
21799
|
+
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
21800
|
+
*/
|
|
21801
|
+
400: ErrorResponse;
|
|
21802
|
+
/**
|
|
21803
|
+
* Unauthorized
|
|
21804
|
+
*/
|
|
21805
|
+
401: ErrorResponse;
|
|
21806
|
+
/**
|
|
21807
|
+
* Owner role required, the original owner of a personal workspace cannot be demoted (`CANNOT_DEMOTE_ORIGINAL_OWNER`), the creator of a team workspace cannot be demoted (`CANNOT_DEMOTE_CREATOR`), or `DIRECTORY_MANAGED`: the member's role comes from their organization's directory (SSO) and is changed there
|
|
21808
|
+
*/
|
|
21809
|
+
403: ErrorResponse;
|
|
21810
|
+
/**
|
|
21811
|
+
* Workspace or member not found
|
|
21812
|
+
*/
|
|
21813
|
+
404: ErrorResponse;
|
|
21814
|
+
/**
|
|
21815
|
+
* Validation error
|
|
21816
|
+
*/
|
|
21817
|
+
422: ErrorResponse;
|
|
21818
|
+
/**
|
|
21819
|
+
* Internal server error
|
|
21820
|
+
*/
|
|
21821
|
+
500: ErrorResponse;
|
|
21822
|
+
};
|
|
21823
|
+
export type UpdateWorkspaceMemberRoleError = UpdateWorkspaceMemberRoleErrors[keyof UpdateWorkspaceMemberRoleErrors];
|
|
21824
|
+
export type UpdateWorkspaceMemberRoleResponses = {
|
|
21825
|
+
/**
|
|
21826
|
+
* Member role updated
|
|
21827
|
+
*/
|
|
21828
|
+
200: Member;
|
|
21829
|
+
};
|
|
21830
|
+
export type UpdateWorkspaceMemberRoleResponse = UpdateWorkspaceMemberRoleResponses[keyof UpdateWorkspaceMemberRoleResponses];
|
|
21831
|
+
export type RevokeWorkspaceAdminData = {
|
|
21832
|
+
body?: never;
|
|
21833
|
+
path: {
|
|
21834
|
+
/**
|
|
21835
|
+
* User ID of the workspace member
|
|
20520
21836
|
*/
|
|
20521
21837
|
userId: string;
|
|
20522
21838
|
};
|
|
20523
21839
|
query?: never;
|
|
20524
|
-
url: '/api/workspace/members/{userId}';
|
|
21840
|
+
url: '/api/workspace/members/{userId}/admin';
|
|
20525
21841
|
};
|
|
20526
|
-
export type
|
|
21842
|
+
export type RevokeWorkspaceAdminErrors = {
|
|
20527
21843
|
/**
|
|
20528
21844
|
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
20529
21845
|
*/
|
|
@@ -20533,38 +21849,42 @@ export type RemoveWorkspaceMemberErrors = {
|
|
|
20533
21849
|
*/
|
|
20534
21850
|
401: ErrorResponse;
|
|
20535
21851
|
/**
|
|
20536
|
-
*
|
|
21852
|
+
* `FORBIDDEN`, with the message `workspace owner required` and no `details`: the caller is not a workspace owner. The route's owner check answers before the handler runs, as on the other member-management routes, so there is no `permission_denied` here. Or `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off
|
|
20537
21853
|
*/
|
|
20538
21854
|
403: ErrorResponse;
|
|
20539
21855
|
/**
|
|
20540
|
-
*
|
|
21856
|
+
* `not_found`: the user is not a member of the workspace
|
|
20541
21857
|
*/
|
|
20542
21858
|
404: ErrorResponse;
|
|
21859
|
+
/**
|
|
21860
|
+
* `target_is_owner`: the member is an owner
|
|
21861
|
+
*/
|
|
21862
|
+
409: ErrorResponse;
|
|
20543
21863
|
/**
|
|
20544
21864
|
* Internal server error
|
|
20545
21865
|
*/
|
|
20546
21866
|
500: ErrorResponse;
|
|
20547
21867
|
};
|
|
20548
|
-
export type
|
|
20549
|
-
export type
|
|
21868
|
+
export type RevokeWorkspaceAdminError = RevokeWorkspaceAdminErrors[keyof RevokeWorkspaceAdminErrors];
|
|
21869
|
+
export type RevokeWorkspaceAdminResponses = {
|
|
20550
21870
|
/**
|
|
20551
|
-
*
|
|
21871
|
+
* The member, with `workspace_admin` false
|
|
20552
21872
|
*/
|
|
20553
|
-
|
|
21873
|
+
200: Member;
|
|
20554
21874
|
};
|
|
20555
|
-
export type
|
|
20556
|
-
export type
|
|
20557
|
-
body
|
|
21875
|
+
export type RevokeWorkspaceAdminResponse = RevokeWorkspaceAdminResponses[keyof RevokeWorkspaceAdminResponses];
|
|
21876
|
+
export type GrantWorkspaceAdminData = {
|
|
21877
|
+
body?: never;
|
|
20558
21878
|
path: {
|
|
20559
21879
|
/**
|
|
20560
|
-
* User ID
|
|
21880
|
+
* User ID of the workspace member
|
|
20561
21881
|
*/
|
|
20562
21882
|
userId: string;
|
|
20563
21883
|
};
|
|
20564
21884
|
query?: never;
|
|
20565
|
-
url: '/api/workspace/members/{userId}';
|
|
21885
|
+
url: '/api/workspace/members/{userId}/admin';
|
|
20566
21886
|
};
|
|
20567
|
-
export type
|
|
21887
|
+
export type GrantWorkspaceAdminErrors = {
|
|
20568
21888
|
/**
|
|
20569
21889
|
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` header or `workspace_id` query value is malformed, or conflicts with another value or with the workspace the credential resolves to. Answered only while `web_session_enabled` is on for the user. See the `WebSessionAuth` scheme.
|
|
20570
21890
|
*/
|
|
@@ -20574,30 +21894,30 @@ export type UpdateWorkspaceMemberRoleErrors = {
|
|
|
20574
21894
|
*/
|
|
20575
21895
|
401: ErrorResponse;
|
|
20576
21896
|
/**
|
|
20577
|
-
*
|
|
21897
|
+
* `FORBIDDEN`, with the message `workspace owner required` and no `details`: the caller is not a workspace owner. The route's owner check answers before the handler runs, as on the other member-management routes, so there is no `permission_denied` here. Or `projects_not_available`: the workspace's plan does not include Projects, or Projects is turned off
|
|
20578
21898
|
*/
|
|
20579
21899
|
403: ErrorResponse;
|
|
20580
21900
|
/**
|
|
20581
|
-
*
|
|
21901
|
+
* `not_found`: the user is not a member of the workspace
|
|
20582
21902
|
*/
|
|
20583
21903
|
404: ErrorResponse;
|
|
20584
21904
|
/**
|
|
20585
|
-
*
|
|
21905
|
+
* `target_is_owner`: the member is an owner, who already holds every permission
|
|
20586
21906
|
*/
|
|
20587
|
-
|
|
21907
|
+
409: ErrorResponse;
|
|
20588
21908
|
/**
|
|
20589
21909
|
* Internal server error
|
|
20590
21910
|
*/
|
|
20591
21911
|
500: ErrorResponse;
|
|
20592
21912
|
};
|
|
20593
|
-
export type
|
|
20594
|
-
export type
|
|
21913
|
+
export type GrantWorkspaceAdminError = GrantWorkspaceAdminErrors[keyof GrantWorkspaceAdminErrors];
|
|
21914
|
+
export type GrantWorkspaceAdminResponses = {
|
|
20595
21915
|
/**
|
|
20596
|
-
*
|
|
21916
|
+
* The member, with `workspace_admin` true
|
|
20597
21917
|
*/
|
|
20598
21918
|
200: Member;
|
|
20599
21919
|
};
|
|
20600
|
-
export type
|
|
21920
|
+
export type GrantWorkspaceAdminResponse = GrantWorkspaceAdminResponses[keyof GrantWorkspaceAdminResponses];
|
|
20601
21921
|
export type GetProviderPolicyData = {
|
|
20602
21922
|
body?: never;
|
|
20603
21923
|
path?: never;
|
|
@@ -21137,7 +22457,7 @@ export type ListWorkspaceDeploymentsErrors = {
|
|
|
21137
22457
|
*/
|
|
21138
22458
|
401: ErrorResponse;
|
|
21139
22459
|
/**
|
|
21140
|
-
* Not in the rollout, or an API key: listing needs a signed-in session
|
|
22460
|
+
* Not in the rollout, deployment picking is not configured in this environment, or an API key: listing needs a signed-in session
|
|
21141
22461
|
*/
|
|
21142
22462
|
403: ErrorResponse;
|
|
21143
22463
|
/**
|
|
@@ -21149,7 +22469,7 @@ export type ListWorkspaceDeploymentsErrors = {
|
|
|
21149
22469
|
*/
|
|
21150
22470
|
500: ErrorResponse;
|
|
21151
22471
|
/**
|
|
21152
|
-
* The platform could not be asked, or
|
|
22472
|
+
* The platform could not be asked, or it refused the minted token
|
|
21153
22473
|
*/
|
|
21154
22474
|
503: ErrorResponse;
|
|
21155
22475
|
};
|
|
@@ -21161,6 +22481,328 @@ export type ListWorkspaceDeploymentsResponses = {
|
|
|
21161
22481
|
200: WorkspaceDeploymentList;
|
|
21162
22482
|
};
|
|
21163
22483
|
export type ListWorkspaceDeploymentsResponse = ListWorkspaceDeploymentsResponses[keyof ListWorkspaceDeploymentsResponses];
|
|
22484
|
+
export type CreateWorkspaceDeploymentModelUploadData = {
|
|
22485
|
+
body: DeploymentModelUploadRequest;
|
|
22486
|
+
path: {
|
|
22487
|
+
/**
|
|
22488
|
+
* Workspace ID (w-{uuid} format)
|
|
22489
|
+
*/
|
|
22490
|
+
id: string;
|
|
22491
|
+
/**
|
|
22492
|
+
* One of the workspace's deployments (dep-{uuid} format)
|
|
22493
|
+
*/
|
|
22494
|
+
deployment_id: string;
|
|
22495
|
+
};
|
|
22496
|
+
query?: never;
|
|
22497
|
+
url: '/api/workspaces/{id}/deployments/{deployment_id}/model-uploads';
|
|
22498
|
+
};
|
|
22499
|
+
export type CreateWorkspaceDeploymentModelUploadErrors = {
|
|
22500
|
+
/**
|
|
22501
|
+
* comfy-builder's own refusal, with its status and body unchanged; or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid): the `X-Comfy-Workspace-ID` value is malformed or conflicts with the workspace the credential resolves to.
|
|
22502
|
+
*/
|
|
22503
|
+
400: DeploymentModelsRefusalBody;
|
|
22504
|
+
/**
|
|
22505
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
22506
|
+
*/
|
|
22507
|
+
401: ErrorResponse;
|
|
22508
|
+
/**
|
|
22509
|
+
* An API key (these routes need a signed-in session), or the rollout flag is off for this account, as `code` and `message`; or the platform's own 403, unchanged. For a web session, `code` may also be one of the SessionWriteForbidden refusals. A credential these routes never take, such as `X-ComfyAPI-Secret`, and the session while `web_session_enabled` is off for the user, get ingest's authentication refusal instead, AuthTypeNotAllowedError with `accepted` and no `code`, before any other check. See DeploymentModelsForbiddenBody.
|
|
22510
|
+
*/
|
|
22511
|
+
403: DeploymentModelsForbiddenBody;
|
|
22512
|
+
/**
|
|
22513
|
+
* Workspace not found, the caller is not a member, the deployment id is not one, or the model id (on the remove) or blob id (on the parts and complete) is only dot segments: ingest's own refusal, `code` `NOT_FOUND`, before any platform call. Or the platform's own 404, its body unchanged and without `code`: on the add, list and remove, the deployment is not one of the workspace's, comfy-deploy's models switch is off, or the upload or entry is not found; on the parts and complete, comfy-builder has no such upload in the workspace (the upload routes do not check the deployment). A body with `code` is ingest's; read comfy-deploy's 404 as "not on yet" only when `code` is absent. See DeploymentModelsRefusalBody.
|
|
22514
|
+
*/
|
|
22515
|
+
404: PlatformPassthroughBody;
|
|
22516
|
+
/**
|
|
22517
|
+
* Ingest could not read the workspace or mint the caller's token (`code` `INTERNAL_ERROR` and `message`, before any platform call); or the platform's own 500, unchanged, which need not carry a `code`: comfy-builder answers a storage or database failure with only `message`.
|
|
22518
|
+
*/
|
|
22519
|
+
500: PlatformPassthroughBody;
|
|
22520
|
+
/**
|
|
22521
|
+
* comfy-deploy or comfy-builder could not be asked, refused the token ingest minted (its 401), or is not configured in this environment, as `code` and `message`; or the platform's own 503, unchanged, such as comfy-deploy's `{error, message}` for a request that ran past its deadline.
|
|
22522
|
+
*/
|
|
22523
|
+
503: PlatformPassthroughBody;
|
|
22524
|
+
};
|
|
22525
|
+
export type CreateWorkspaceDeploymentModelUploadError = CreateWorkspaceDeploymentModelUploadErrors[keyof CreateWorkspaceDeploymentModelUploadErrors];
|
|
22526
|
+
export type CreateWorkspaceDeploymentModelUploadResponses = {
|
|
22527
|
+
/**
|
|
22528
|
+
* comfy-builder's BlobUpload, unchanged
|
|
22529
|
+
*/
|
|
22530
|
+
201: DeploymentModelUpload;
|
|
22531
|
+
};
|
|
22532
|
+
export type CreateWorkspaceDeploymentModelUploadResponse = CreateWorkspaceDeploymentModelUploadResponses[keyof CreateWorkspaceDeploymentModelUploadResponses];
|
|
22533
|
+
export type CompleteWorkspaceDeploymentModelUploadData = {
|
|
22534
|
+
body?: never;
|
|
22535
|
+
path: {
|
|
22536
|
+
/**
|
|
22537
|
+
* Workspace ID (w-{uuid} format)
|
|
22538
|
+
*/
|
|
22539
|
+
id: string;
|
|
22540
|
+
/**
|
|
22541
|
+
* One of the workspace's deployments (dep-{uuid} format)
|
|
22542
|
+
*/
|
|
22543
|
+
deployment_id: string;
|
|
22544
|
+
/**
|
|
22545
|
+
* The blobId the model upload route answered
|
|
22546
|
+
*/
|
|
22547
|
+
blob_id: string;
|
|
22548
|
+
};
|
|
22549
|
+
query?: never;
|
|
22550
|
+
url: '/api/workspaces/{id}/deployments/{deployment_id}/model-uploads/{blob_id}/complete';
|
|
22551
|
+
};
|
|
22552
|
+
export type CompleteWorkspaceDeploymentModelUploadErrors = {
|
|
22553
|
+
/**
|
|
22554
|
+
* `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid): the `X-Comfy-Workspace-ID` value is malformed or conflicts with the workspace the credential resolves to.
|
|
22555
|
+
*/
|
|
22556
|
+
400: DeploymentModelsRefusalBody;
|
|
22557
|
+
/**
|
|
22558
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
22559
|
+
*/
|
|
22560
|
+
401: ErrorResponse;
|
|
22561
|
+
/**
|
|
22562
|
+
* An API key (these routes need a signed-in session), or the rollout flag is off for this account, as `code` and `message`; or the platform's own 403, unchanged. For a web session, `code` may also be one of the SessionWriteForbidden refusals. A credential these routes never take, such as `X-ComfyAPI-Secret`, and the session while `web_session_enabled` is off for the user, get ingest's authentication refusal instead, AuthTypeNotAllowedError with `accepted` and no `code`, before any other check. See DeploymentModelsForbiddenBody.
|
|
22563
|
+
*/
|
|
22564
|
+
403: DeploymentModelsForbiddenBody;
|
|
22565
|
+
/**
|
|
22566
|
+
* Workspace not found, the caller is not a member, the deployment id is not one, or the model id (on the remove) or blob id (on the parts and complete) is only dot segments: ingest's own refusal, `code` `NOT_FOUND`, before any platform call. Or the platform's own 404, its body unchanged and without `code`: on the add, list and remove, the deployment is not one of the workspace's, comfy-deploy's models switch is off, or the upload or entry is not found; on the parts and complete, comfy-builder has no such upload in the workspace (the upload routes do not check the deployment). A body with `code` is ingest's; read comfy-deploy's 404 as "not on yet" only when `code` is absent. See DeploymentModelsRefusalBody.
|
|
22567
|
+
*/
|
|
22568
|
+
404: PlatformPassthroughBody;
|
|
22569
|
+
/**
|
|
22570
|
+
* comfy-builder's refusal, unchanged: `error` `PART_MISSING` or `PART_WRONG_SIZE`, its `message` naming the first piece that is not right, or `UPLOAD_NOT_IN_PARTS` (the upload was made without `parts` and its bytes are not there).
|
|
22571
|
+
*/
|
|
22572
|
+
409: DeploymentModelUploadConflict;
|
|
22573
|
+
/**
|
|
22574
|
+
* Ingest could not read the workspace or mint the caller's token (`code` `INTERNAL_ERROR` and `message`, before any platform call); or the platform's own 500, unchanged, which need not carry a `code`: comfy-builder answers a storage or database failure with only `message`.
|
|
22575
|
+
*/
|
|
22576
|
+
500: PlatformPassthroughBody;
|
|
22577
|
+
/**
|
|
22578
|
+
* comfy-deploy or comfy-builder could not be asked, refused the token ingest minted (its 401), or is not configured in this environment, as `code` and `message`; or the platform's own 503, unchanged, such as comfy-deploy's `{error, message}` for a request that ran past its deadline.
|
|
22579
|
+
*/
|
|
22580
|
+
503: PlatformPassthroughBody;
|
|
22581
|
+
};
|
|
22582
|
+
export type CompleteWorkspaceDeploymentModelUploadError = CompleteWorkspaceDeploymentModelUploadErrors[keyof CompleteWorkspaceDeploymentModelUploadErrors];
|
|
22583
|
+
export type CompleteWorkspaceDeploymentModelUploadResponses = {
|
|
22584
|
+
/**
|
|
22585
|
+
* comfy-builder's BlobUploadComplete, unchanged
|
|
22586
|
+
*/
|
|
22587
|
+
200: DeploymentModelUploadComplete;
|
|
22588
|
+
};
|
|
22589
|
+
export type CompleteWorkspaceDeploymentModelUploadResponse = CompleteWorkspaceDeploymentModelUploadResponses[keyof CompleteWorkspaceDeploymentModelUploadResponses];
|
|
22590
|
+
export type RefreshWorkspaceDeploymentModelUploadPartsData = {
|
|
22591
|
+
body?: never;
|
|
22592
|
+
path: {
|
|
22593
|
+
/**
|
|
22594
|
+
* Workspace ID (w-{uuid} format)
|
|
22595
|
+
*/
|
|
22596
|
+
id: string;
|
|
22597
|
+
/**
|
|
22598
|
+
* One of the workspace's deployments (dep-{uuid} format)
|
|
22599
|
+
*/
|
|
22600
|
+
deployment_id: string;
|
|
22601
|
+
/**
|
|
22602
|
+
* The blobId the model upload route answered
|
|
22603
|
+
*/
|
|
22604
|
+
blob_id: string;
|
|
22605
|
+
};
|
|
22606
|
+
query?: never;
|
|
22607
|
+
url: '/api/workspaces/{id}/deployments/{deployment_id}/model-uploads/{blob_id}/parts';
|
|
22608
|
+
};
|
|
22609
|
+
export type RefreshWorkspaceDeploymentModelUploadPartsErrors = {
|
|
22610
|
+
/**
|
|
22611
|
+
* `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid): the `X-Comfy-Workspace-ID` value is malformed or conflicts with the workspace the credential resolves to.
|
|
22612
|
+
*/
|
|
22613
|
+
400: DeploymentModelsRefusalBody;
|
|
22614
|
+
/**
|
|
22615
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
22616
|
+
*/
|
|
22617
|
+
401: ErrorResponse;
|
|
22618
|
+
/**
|
|
22619
|
+
* An API key (these routes need a signed-in session), or the rollout flag is off for this account, as `code` and `message`; or the platform's own 403, unchanged. For a web session, `code` may also be one of the SessionWriteForbidden refusals. A credential these routes never take, such as `X-ComfyAPI-Secret`, and the session while `web_session_enabled` is off for the user, get ingest's authentication refusal instead, AuthTypeNotAllowedError with `accepted` and no `code`, before any other check. See DeploymentModelsForbiddenBody.
|
|
22620
|
+
*/
|
|
22621
|
+
403: DeploymentModelsForbiddenBody;
|
|
22622
|
+
/**
|
|
22623
|
+
* Workspace not found, the caller is not a member, the deployment id is not one, or the model id (on the remove) or blob id (on the parts and complete) is only dot segments: ingest's own refusal, `code` `NOT_FOUND`, before any platform call. Or the platform's own 404, its body unchanged and without `code`: on the add, list and remove, the deployment is not one of the workspace's, comfy-deploy's models switch is off, or the upload or entry is not found; on the parts and complete, comfy-builder has no such upload in the workspace (the upload routes do not check the deployment). A body with `code` is ingest's; read comfy-deploy's 404 as "not on yet" only when `code` is absent. See DeploymentModelsRefusalBody.
|
|
22624
|
+
*/
|
|
22625
|
+
404: PlatformPassthroughBody;
|
|
22626
|
+
/**
|
|
22627
|
+
* comfy-builder's refusal, unchanged: `error` `UPLOAD_NOT_IN_PARTS` (the upload was made without `parts`) or `UPLOAD_COMPLETE` (its pieces are already joined).
|
|
22628
|
+
*/
|
|
22629
|
+
409: DeploymentModelUploadConflict;
|
|
22630
|
+
/**
|
|
22631
|
+
* Ingest could not read the workspace or mint the caller's token (`code` `INTERNAL_ERROR` and `message`, before any platform call); or the platform's own 500, unchanged, which need not carry a `code`: comfy-builder answers a storage or database failure with only `message`.
|
|
22632
|
+
*/
|
|
22633
|
+
500: PlatformPassthroughBody;
|
|
22634
|
+
/**
|
|
22635
|
+
* comfy-deploy or comfy-builder could not be asked, refused the token ingest minted (its 401), or is not configured in this environment, as `code` and `message`; or the platform's own 503, unchanged, such as comfy-deploy's `{error, message}` for a request that ran past its deadline.
|
|
22636
|
+
*/
|
|
22637
|
+
503: PlatformPassthroughBody;
|
|
22638
|
+
};
|
|
22639
|
+
export type RefreshWorkspaceDeploymentModelUploadPartsError = RefreshWorkspaceDeploymentModelUploadPartsErrors[keyof RefreshWorkspaceDeploymentModelUploadPartsErrors];
|
|
22640
|
+
export type RefreshWorkspaceDeploymentModelUploadPartsResponses = {
|
|
22641
|
+
/**
|
|
22642
|
+
* comfy-builder's BlobUploadParts, unchanged
|
|
22643
|
+
*/
|
|
22644
|
+
200: DeploymentModelUploadParts;
|
|
22645
|
+
};
|
|
22646
|
+
export type RefreshWorkspaceDeploymentModelUploadPartsResponse = RefreshWorkspaceDeploymentModelUploadPartsResponses[keyof RefreshWorkspaceDeploymentModelUploadPartsResponses];
|
|
22647
|
+
export type ListWorkspaceDeploymentModelsData = {
|
|
22648
|
+
body?: never;
|
|
22649
|
+
path: {
|
|
22650
|
+
/**
|
|
22651
|
+
* Workspace ID (w-{uuid} format)
|
|
22652
|
+
*/
|
|
22653
|
+
id: string;
|
|
22654
|
+
/**
|
|
22655
|
+
* One of the workspace's deployments (dep-{uuid} format)
|
|
22656
|
+
*/
|
|
22657
|
+
deployment_id: string;
|
|
22658
|
+
};
|
|
22659
|
+
query?: never;
|
|
22660
|
+
url: '/api/workspaces/{id}/deployments/{deployment_id}/models';
|
|
22661
|
+
};
|
|
22662
|
+
export type ListWorkspaceDeploymentModelsErrors = {
|
|
22663
|
+
/**
|
|
22664
|
+
* comfy-deploy's own refusal, with its status and body unchanged; or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid): the `X-Comfy-Workspace-ID` value is malformed or conflicts with the workspace the credential resolves to.
|
|
22665
|
+
*/
|
|
22666
|
+
400: DeploymentModelsRefusalBody;
|
|
22667
|
+
/**
|
|
22668
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
22669
|
+
*/
|
|
22670
|
+
401: ErrorResponse;
|
|
22671
|
+
/**
|
|
22672
|
+
* An API key (these routes need a signed-in session), or the rollout flag is off for this account, as `code` and `message`; or the platform's own 403, unchanged. For a web session, `code` may also be one of the SessionForbidden refusals. A credential these routes never take, such as `X-ComfyAPI-Secret`, and the session while `web_session_enabled` is off for the user, get ingest's authentication refusal instead, AuthTypeNotAllowedError with `accepted` and no `code`, before any other check. See DeploymentModelsForbiddenBody.
|
|
22673
|
+
*/
|
|
22674
|
+
403: DeploymentModelsForbiddenBody;
|
|
22675
|
+
/**
|
|
22676
|
+
* Workspace not found, the caller is not a member, the deployment id is not one, or the model id (on the remove) or blob id (on the parts and complete) is only dot segments: ingest's own refusal, `code` `NOT_FOUND`, before any platform call. Or the platform's own 404, its body unchanged and without `code`: on the add, list and remove, the deployment is not one of the workspace's, comfy-deploy's models switch is off, or the upload or entry is not found; on the parts and complete, comfy-builder has no such upload in the workspace (the upload routes do not check the deployment). A body with `code` is ingest's; read comfy-deploy's 404 as "not on yet" only when `code` is absent. See DeploymentModelsRefusalBody.
|
|
22677
|
+
*/
|
|
22678
|
+
404: PlatformPassthroughBody;
|
|
22679
|
+
/**
|
|
22680
|
+
* Ingest could not read the workspace or mint the caller's token (`code` `INTERNAL_ERROR` and `message`, before any platform call); or the platform's own 500, unchanged, which need not carry a `code`: comfy-builder answers a storage or database failure with only `message`.
|
|
22681
|
+
*/
|
|
22682
|
+
500: PlatformPassthroughBody;
|
|
22683
|
+
/**
|
|
22684
|
+
* comfy-deploy or comfy-builder could not be asked, refused the token ingest minted (its 401), or is not configured in this environment, as `code` and `message`; or the platform's own 503, unchanged, such as comfy-deploy's `{error, message}` for a request that ran past its deadline.
|
|
22685
|
+
*/
|
|
22686
|
+
503: PlatformPassthroughBody;
|
|
22687
|
+
};
|
|
22688
|
+
export type ListWorkspaceDeploymentModelsError = ListWorkspaceDeploymentModelsErrors[keyof ListWorkspaceDeploymentModelsErrors];
|
|
22689
|
+
export type ListWorkspaceDeploymentModelsResponses = {
|
|
22690
|
+
/**
|
|
22691
|
+
* comfy-deploy's model list, unchanged
|
|
22692
|
+
*/
|
|
22693
|
+
200: PlatformPassthroughBody;
|
|
22694
|
+
};
|
|
22695
|
+
export type ListWorkspaceDeploymentModelsResponse = ListWorkspaceDeploymentModelsResponses[keyof ListWorkspaceDeploymentModelsResponses];
|
|
22696
|
+
export type AddWorkspaceDeploymentModelData = {
|
|
22697
|
+
body: AddDeploymentModelRequest;
|
|
22698
|
+
path: {
|
|
22699
|
+
/**
|
|
22700
|
+
* Workspace ID (w-{uuid} format)
|
|
22701
|
+
*/
|
|
22702
|
+
id: string;
|
|
22703
|
+
/**
|
|
22704
|
+
* One of the workspace's deployments (dep-{uuid} format)
|
|
22705
|
+
*/
|
|
22706
|
+
deployment_id: string;
|
|
22707
|
+
};
|
|
22708
|
+
query?: never;
|
|
22709
|
+
url: '/api/workspaces/{id}/deployments/{deployment_id}/models';
|
|
22710
|
+
};
|
|
22711
|
+
export type AddWorkspaceDeploymentModelErrors = {
|
|
22712
|
+
/**
|
|
22713
|
+
* comfy-deploy's own refusal, with its status and body unchanged; or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid): the `X-Comfy-Workspace-ID` value is malformed or conflicts with the workspace the credential resolves to.
|
|
22714
|
+
*/
|
|
22715
|
+
400: DeploymentModelsRefusalBody;
|
|
22716
|
+
/**
|
|
22717
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
22718
|
+
*/
|
|
22719
|
+
401: ErrorResponse;
|
|
22720
|
+
/**
|
|
22721
|
+
* An API key (these routes need a signed-in session), or the rollout flag is off for this account, as `code` and `message`; or the platform's own 403, unchanged. For a web session, `code` may also be one of the SessionWriteForbidden refusals. A credential these routes never take, such as `X-ComfyAPI-Secret`, and the session while `web_session_enabled` is off for the user, get ingest's authentication refusal instead, AuthTypeNotAllowedError with `accepted` and no `code`, before any other check. See DeploymentModelsForbiddenBody.
|
|
22722
|
+
*/
|
|
22723
|
+
403: DeploymentModelsForbiddenBody;
|
|
22724
|
+
/**
|
|
22725
|
+
* Workspace not found, the caller is not a member, the deployment id is not one, or the model id (on the remove) or blob id (on the parts and complete) is only dot segments: ingest's own refusal, `code` `NOT_FOUND`, before any platform call. Or the platform's own 404, its body unchanged and without `code`: on the add, list and remove, the deployment is not one of the workspace's, comfy-deploy's models switch is off, or the upload or entry is not found; on the parts and complete, comfy-builder has no such upload in the workspace (the upload routes do not check the deployment). A body with `code` is ingest's; read comfy-deploy's 404 as "not on yet" only when `code` is absent. See DeploymentModelsRefusalBody.
|
|
22726
|
+
*/
|
|
22727
|
+
404: PlatformPassthroughBody;
|
|
22728
|
+
/**
|
|
22729
|
+
* comfy-deploy's or comfy-builder's own refusal, with its status and body unchanged: `{error, message}`, `error` its machine-readable code and `message` written for the person.
|
|
22730
|
+
*/
|
|
22731
|
+
409: PlatformPassthroughBody;
|
|
22732
|
+
/**
|
|
22733
|
+
* Ingest could not read the workspace or mint the caller's token (`code` `INTERNAL_ERROR` and `message`, before any platform call); or the platform's own 500, unchanged, which need not carry a `code`: comfy-builder answers a storage or database failure with only `message`.
|
|
22734
|
+
*/
|
|
22735
|
+
500: PlatformPassthroughBody;
|
|
22736
|
+
/**
|
|
22737
|
+
* comfy-deploy or comfy-builder could not be asked, refused the token ingest minted (its 401), or is not configured in this environment, as `code` and `message`; or the platform's own 503, unchanged, such as comfy-deploy's `{error, message}` for a request that ran past its deadline.
|
|
22738
|
+
*/
|
|
22739
|
+
503: PlatformPassthroughBody;
|
|
22740
|
+
};
|
|
22741
|
+
export type AddWorkspaceDeploymentModelError = AddWorkspaceDeploymentModelErrors[keyof AddWorkspaceDeploymentModelErrors];
|
|
22742
|
+
export type AddWorkspaceDeploymentModelResponses = {
|
|
22743
|
+
/**
|
|
22744
|
+
* comfy-deploy's new entry, unchanged
|
|
22745
|
+
*/
|
|
22746
|
+
202: PlatformPassthroughBody;
|
|
22747
|
+
};
|
|
22748
|
+
export type AddWorkspaceDeploymentModelResponse = AddWorkspaceDeploymentModelResponses[keyof AddWorkspaceDeploymentModelResponses];
|
|
22749
|
+
export type RemoveWorkspaceDeploymentModelData = {
|
|
22750
|
+
body?: never;
|
|
22751
|
+
path: {
|
|
22752
|
+
/**
|
|
22753
|
+
* Workspace ID (w-{uuid} format)
|
|
22754
|
+
*/
|
|
22755
|
+
id: string;
|
|
22756
|
+
/**
|
|
22757
|
+
* One of the workspace's deployments (dep-{uuid} format)
|
|
22758
|
+
*/
|
|
22759
|
+
deployment_id: string;
|
|
22760
|
+
/**
|
|
22761
|
+
* The added model's entry id, from the model list
|
|
22762
|
+
*/
|
|
22763
|
+
model_id: string;
|
|
22764
|
+
};
|
|
22765
|
+
query?: never;
|
|
22766
|
+
url: '/api/workspaces/{id}/deployments/{deployment_id}/models/{model_id}';
|
|
22767
|
+
};
|
|
22768
|
+
export type RemoveWorkspaceDeploymentModelErrors = {
|
|
22769
|
+
/**
|
|
22770
|
+
* comfy-deploy's own refusal, with its status and body unchanged; or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid): the `X-Comfy-Workspace-ID` value is malformed or conflicts with the workspace the credential resolves to.
|
|
22771
|
+
*/
|
|
22772
|
+
400: DeploymentModelsRefusalBody;
|
|
22773
|
+
/**
|
|
22774
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
22775
|
+
*/
|
|
22776
|
+
401: ErrorResponse;
|
|
22777
|
+
/**
|
|
22778
|
+
* An API key (these routes need a signed-in session), or the rollout flag is off for this account, as `code` and `message`; or the platform's own 403, unchanged. For a web session, `code` may also be one of the SessionWriteForbidden refusals. A credential these routes never take, such as `X-ComfyAPI-Secret`, and the session while `web_session_enabled` is off for the user, get ingest's authentication refusal instead, AuthTypeNotAllowedError with `accepted` and no `code`, before any other check. See DeploymentModelsForbiddenBody.
|
|
22779
|
+
*/
|
|
22780
|
+
403: DeploymentModelsForbiddenBody;
|
|
22781
|
+
/**
|
|
22782
|
+
* Workspace not found, the caller is not a member, the deployment id is not one, or the model id (on the remove) or blob id (on the parts and complete) is only dot segments: ingest's own refusal, `code` `NOT_FOUND`, before any platform call. Or the platform's own 404, its body unchanged and without `code`: on the add, list and remove, the deployment is not one of the workspace's, comfy-deploy's models switch is off, or the upload or entry is not found; on the parts and complete, comfy-builder has no such upload in the workspace (the upload routes do not check the deployment). A body with `code` is ingest's; read comfy-deploy's 404 as "not on yet" only when `code` is absent. See DeploymentModelsRefusalBody.
|
|
22783
|
+
*/
|
|
22784
|
+
404: PlatformPassthroughBody;
|
|
22785
|
+
/**
|
|
22786
|
+
* comfy-deploy's or comfy-builder's own refusal, with its status and body unchanged: `{error, message}`, `error` its machine-readable code and `message` written for the person.
|
|
22787
|
+
*/
|
|
22788
|
+
409: PlatformPassthroughBody;
|
|
22789
|
+
/**
|
|
22790
|
+
* Ingest could not read the workspace or mint the caller's token (`code` `INTERNAL_ERROR` and `message`, before any platform call); or the platform's own 500, unchanged, which need not carry a `code`: comfy-builder answers a storage or database failure with only `message`.
|
|
22791
|
+
*/
|
|
22792
|
+
500: PlatformPassthroughBody;
|
|
22793
|
+
/**
|
|
22794
|
+
* comfy-deploy or comfy-builder could not be asked, refused the token ingest minted (its 401), or is not configured in this environment, as `code` and `message`; or the platform's own 503, unchanged, such as comfy-deploy's `{error, message}` for a request that ran past its deadline.
|
|
22795
|
+
*/
|
|
22796
|
+
503: PlatformPassthroughBody;
|
|
22797
|
+
};
|
|
22798
|
+
export type RemoveWorkspaceDeploymentModelError = RemoveWorkspaceDeploymentModelErrors[keyof RemoveWorkspaceDeploymentModelErrors];
|
|
22799
|
+
export type RemoveWorkspaceDeploymentModelResponses = {
|
|
22800
|
+
/**
|
|
22801
|
+
* comfy-deploy's entry, now removing, unchanged
|
|
22802
|
+
*/
|
|
22803
|
+
202: PlatformPassthroughBody;
|
|
22804
|
+
};
|
|
22805
|
+
export type RemoveWorkspaceDeploymentModelResponse = RemoveWorkspaceDeploymentModelResponses[keyof RemoveWorkspaceDeploymentModelResponses];
|
|
21164
22806
|
export type StartWorkspaceDeploymentData = {
|
|
21165
22807
|
body?: never;
|
|
21166
22808
|
path: {
|
|
@@ -21394,6 +23036,55 @@ export type GetHealthResponses = {
|
|
|
21394
23036
|
200: string;
|
|
21395
23037
|
};
|
|
21396
23038
|
export type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
|
|
23039
|
+
export type AgentGetSupportReplayData = {
|
|
23040
|
+
body?: never;
|
|
23041
|
+
headers: {
|
|
23042
|
+
'X-Comfy-Replay-Support-Secret': string;
|
|
23043
|
+
'X-Comfy-Workspace-ID': string;
|
|
23044
|
+
'X-Comfy-Replay-Requester': string;
|
|
23045
|
+
'X-Comfy-Replay-Reason': string;
|
|
23046
|
+
};
|
|
23047
|
+
path: {
|
|
23048
|
+
id: string;
|
|
23049
|
+
};
|
|
23050
|
+
query?: never;
|
|
23051
|
+
url: '/internal/agent/replays/{id}';
|
|
23052
|
+
};
|
|
23053
|
+
export type AgentGetSupportReplayErrors = {
|
|
23054
|
+
/**
|
|
23055
|
+
* Invalid thread id or missing tenant or audit context.
|
|
23056
|
+
*/
|
|
23057
|
+
400: unknown;
|
|
23058
|
+
/**
|
|
23059
|
+
* Invalid replay support credential.
|
|
23060
|
+
*/
|
|
23061
|
+
401: unknown;
|
|
23062
|
+
/**
|
|
23063
|
+
* No thread exists in the supplied workspace.
|
|
23064
|
+
*/
|
|
23065
|
+
404: unknown;
|
|
23066
|
+
/**
|
|
23067
|
+
* The thread exists but has no replayable messages.
|
|
23068
|
+
*/
|
|
23069
|
+
409: unknown;
|
|
23070
|
+
/**
|
|
23071
|
+
* Agent service unavailable.
|
|
23072
|
+
*/
|
|
23073
|
+
502: unknown;
|
|
23074
|
+
/**
|
|
23075
|
+
* Replay support or the Agent M2M hop is not configured.
|
|
23076
|
+
*/
|
|
23077
|
+
503: unknown;
|
|
23078
|
+
};
|
|
23079
|
+
export type AgentGetSupportReplayResponses = {
|
|
23080
|
+
/**
|
|
23081
|
+
* A degraded or full AgentReplayBundleV1.
|
|
23082
|
+
*/
|
|
23083
|
+
200: {
|
|
23084
|
+
[key: string]: unknown;
|
|
23085
|
+
};
|
|
23086
|
+
};
|
|
23087
|
+
export type AgentGetSupportReplayResponse = AgentGetSupportReplayResponses[keyof AgentGetSupportReplayResponses];
|
|
21397
23088
|
export type GetInternalFolderPathsData = {
|
|
21398
23089
|
body?: never;
|
|
21399
23090
|
path?: never;
|