@comfyorg/ingest-types 1.0.0 → 1.1.0
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/dist/index.d.ts +1 -1
- package/dist/types.gen.d.ts +1494 -89
- package/dist/zod.gen.d.ts +915 -84
- package/dist/zod.gen.js +300 -13
- package/package.json +2 -2
package/dist/types.gen.d.ts
CHANGED
|
@@ -253,6 +253,43 @@ export type WorkflowApiAssetsRequest = {
|
|
|
253
253
|
[key: string]: unknown;
|
|
254
254
|
};
|
|
255
255
|
};
|
|
256
|
+
/**
|
|
257
|
+
* The user a web session belongs to
|
|
258
|
+
*/
|
|
259
|
+
export type WebSessionUser = {
|
|
260
|
+
email: string;
|
|
261
|
+
/**
|
|
262
|
+
* The identity provider's verified-email claim when the session was created
|
|
263
|
+
*/
|
|
264
|
+
email_verified: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Comfy user id
|
|
267
|
+
*/
|
|
268
|
+
id: string;
|
|
269
|
+
name?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Sign-in method, for example `google.com` or `password`
|
|
272
|
+
*/
|
|
273
|
+
sign_in_provider?: string;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* The live web session and the user it belongs to
|
|
277
|
+
*/
|
|
278
|
+
export type WebSessionResponse = {
|
|
279
|
+
/**
|
|
280
|
+
* The session ends at this time regardless of use
|
|
281
|
+
*/
|
|
282
|
+
absolute_expires_at: string;
|
|
283
|
+
/**
|
|
284
|
+
* Send as `X-CSRF-Token` on requests that change data with this session
|
|
285
|
+
*/
|
|
286
|
+
csrf_token: string;
|
|
287
|
+
/**
|
|
288
|
+
* Idle expiry. Real use slides it; reading the session does not.
|
|
289
|
+
*/
|
|
290
|
+
expires_at: string;
|
|
291
|
+
user: WebSessionUser;
|
|
292
|
+
};
|
|
256
293
|
/**
|
|
257
294
|
* Result of validating a set of asset operations.
|
|
258
295
|
*/
|
|
@@ -424,6 +461,56 @@ export type UpdateHubProfileRequest = {
|
|
|
424
461
|
*/
|
|
425
462
|
website_urls?: Array<string>;
|
|
426
463
|
};
|
|
464
|
+
/**
|
|
465
|
+
* What a credit top-up of the requested amount would grant.
|
|
466
|
+
*/
|
|
467
|
+
export type TopupQuoteResponse = {
|
|
468
|
+
/**
|
|
469
|
+
* The quoted amount, in cents.
|
|
470
|
+
*/
|
|
471
|
+
amount_cents: number;
|
|
472
|
+
/**
|
|
473
|
+
* Display credits at 211 per dollar, rounded half up. The top-up
|
|
474
|
+
* itself grants `amount_cents` of balance.
|
|
475
|
+
*
|
|
476
|
+
*/
|
|
477
|
+
credits: number;
|
|
478
|
+
/**
|
|
479
|
+
* Approximately 12 months from now (the default top-up window); the
|
|
480
|
+
* actual grant may start an hour or two earlier, and a price-level
|
|
481
|
+
* validity setting can change it.
|
|
482
|
+
*
|
|
483
|
+
*/
|
|
484
|
+
expires_at: string;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* One persisted tool call attached to an assistant message's content.tool_calls (services/agent/internal/persist.ToolCallSummary), so a chat reload can render the tool-call history a turn produced. Display data only — raw arguments/results are never projected here. Only terminal rows (status ok/error) are ever surfaced; a row a dead turn left in pending/running has no wire-status mapping and is dropped rather than shown as a perpetual-progress chip.
|
|
488
|
+
*/
|
|
489
|
+
export type ToolCallSummary = {
|
|
490
|
+
/**
|
|
491
|
+
* Omitted when zero.
|
|
492
|
+
*/
|
|
493
|
+
duration_ms?: number;
|
|
494
|
+
/**
|
|
495
|
+
* Present only when status is error.
|
|
496
|
+
*/
|
|
497
|
+
error_code?: string;
|
|
498
|
+
finished_at?: string;
|
|
499
|
+
/**
|
|
500
|
+
* This tool-call row's own primary key.
|
|
501
|
+
*/
|
|
502
|
+
id: string;
|
|
503
|
+
started_at?: string;
|
|
504
|
+
/**
|
|
505
|
+
* The WIRE status vocabulary (api/agent_events.schema.json's agent_tool_call), translated from the audit-row vocabulary (pending/running/ok/error) via ToolCallWireStatus — the same function the live agent_tool_call broadcast uses, so reloaded history and a live frame for the same call never disagree on the vocabulary. "running" never appears here: only terminal rows are queried, so a call still in flight when its turn died is omitted rather than shown as a perpetually in-progress chip.
|
|
506
|
+
*/
|
|
507
|
+
status: 'success' | 'error';
|
|
508
|
+
/**
|
|
509
|
+
* The provider tool-use id, the same id a live agent_tool_call WebSocket frame carries as tool_call_id — the frontend keys its tool chip on this value so a reload and a resumed live frame for the same call render as one chip, not two. Rows recorded before this id existed have none; id (this row's own primary key) is emitted instead, so the field is never empty, though it then cannot match any live frame.
|
|
510
|
+
*/
|
|
511
|
+
tool_call_id: string;
|
|
512
|
+
tool_name: string;
|
|
513
|
+
};
|
|
427
514
|
/**
|
|
428
515
|
* Credit-stop ladder for the pricing slider (BE-1254). Returned by GET /api/billing/plans for every workspace regardless of the caller's token or workspace type (the personal/team distinction was removed); omitted only when the catalog defines no stops.
|
|
429
516
|
*/
|
|
@@ -701,6 +788,19 @@ export type SubscriptionDiscount = {
|
|
|
701
788
|
*/
|
|
702
789
|
amount_off_cents?: number;
|
|
703
790
|
code: string;
|
|
791
|
+
/**
|
|
792
|
+
* How long the underlying coupon keeps applying. May be absent when
|
|
793
|
+
* the coupon's term is not known, e.g. a plan coupon Stripe does not
|
|
794
|
+
* echo back.
|
|
795
|
+
*
|
|
796
|
+
*/
|
|
797
|
+
duration?: 'once' | 'repeating' | 'forever';
|
|
798
|
+
/**
|
|
799
|
+
* The coupon's total term in months when duration is repeating.
|
|
800
|
+
* Omitted for discounts carried over from the current subscription.
|
|
801
|
+
*
|
|
802
|
+
*/
|
|
803
|
+
duration_in_months?: number;
|
|
704
804
|
kind: 'plan' | 'promotion';
|
|
705
805
|
/**
|
|
706
806
|
* Customer-facing display name of the underlying coupon. `code` can
|
|
@@ -904,6 +1004,7 @@ export type DocOpsResultFrame = {
|
|
|
904
1004
|
};
|
|
905
1005
|
export type DocResetData = {
|
|
906
1006
|
actor?: string;
|
|
1007
|
+
lineage_seq: number;
|
|
907
1008
|
seq: number;
|
|
908
1009
|
v: number;
|
|
909
1010
|
workflow_id: string;
|
|
@@ -917,6 +1018,11 @@ export type DocResetFrame = {
|
|
|
917
1018
|
};
|
|
918
1019
|
export type DocUpdateData = {
|
|
919
1020
|
actor?: string;
|
|
1021
|
+
lineage_seq: number;
|
|
1022
|
+
/**
|
|
1023
|
+
* Semantic op IDs whose effects are encoded in this live update. Absent on state-vector catch-up updates, which can fold arbitrary history and have no bounded one-frame op set.
|
|
1024
|
+
*/
|
|
1025
|
+
op_ids?: Array<string>;
|
|
920
1026
|
seq: number;
|
|
921
1027
|
/**
|
|
922
1028
|
* Standard-base64 encoded Yjs update. Host-to-follower only.
|
|
@@ -1044,6 +1150,15 @@ export type SavedPaymentMethod = {
|
|
|
1044
1150
|
last4?: string;
|
|
1045
1151
|
type: string;
|
|
1046
1152
|
};
|
|
1153
|
+
/**
|
|
1154
|
+
* Response after signing out of all devices
|
|
1155
|
+
*/
|
|
1156
|
+
export type RevokeAllSessionsResponse = {
|
|
1157
|
+
/**
|
|
1158
|
+
* How many web sessions were ended
|
|
1159
|
+
*/
|
|
1160
|
+
revoked: number;
|
|
1161
|
+
};
|
|
1047
1162
|
/**
|
|
1048
1163
|
* Response after accepting a resubscribe request.
|
|
1049
1164
|
*/
|
|
@@ -1072,6 +1187,27 @@ export type ResubscribeRequest = {
|
|
|
1072
1187
|
*/
|
|
1073
1188
|
idempotency_key?: string;
|
|
1074
1189
|
};
|
|
1190
|
+
/**
|
|
1191
|
+
* The newest open renewal invoice of the workspace's Stripe subscription (active, or canceled but not yet ended). Returned only to workspace owners on the stripe billing rail while billing_status is payment_failed or paused, and not while a payment for it is processing. hosted_invoice_url is a bearer payment link.
|
|
1192
|
+
*/
|
|
1193
|
+
export type RenewalInvoice = {
|
|
1194
|
+
/**
|
|
1195
|
+
* Amount due in the currency's smallest unit (e.g. cents).
|
|
1196
|
+
*/
|
|
1197
|
+
amount_due: number;
|
|
1198
|
+
/**
|
|
1199
|
+
* Lowercase ISO currency code.
|
|
1200
|
+
*/
|
|
1201
|
+
currency: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* Stripe-hosted page where the customer can pay the invoice.
|
|
1204
|
+
*/
|
|
1205
|
+
hosted_invoice_url: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* When Stripe will next retry automatically; absent when no retry is scheduled.
|
|
1208
|
+
*/
|
|
1209
|
+
next_payment_attempt?: string;
|
|
1210
|
+
};
|
|
1075
1211
|
/**
|
|
1076
1212
|
* Response after a queue management action (delete or clear).
|
|
1077
1213
|
*/
|
|
@@ -1340,6 +1476,16 @@ export type PreviewSubscribeResponse = {
|
|
|
1340
1476
|
*/
|
|
1341
1477
|
allowed: boolean;
|
|
1342
1478
|
amount_due_cents?: number;
|
|
1479
|
+
/**
|
|
1480
|
+
* Credit from the customer's existing account balance applied to
|
|
1481
|
+
* today's charge (the invoice's starting balance, capped at the
|
|
1482
|
+
* total). Present only on Stripe-rated quotes that invoice today in
|
|
1483
|
+
* embedded checkout, when a credit balance is applied; otherwise
|
|
1484
|
+
* absent. Display only: amount_due_cents already reflects it
|
|
1485
|
+
* (an absent amount_due_cents means 0).
|
|
1486
|
+
*
|
|
1487
|
+
*/
|
|
1488
|
+
balance_applied_cents?: number;
|
|
1343
1489
|
/**
|
|
1344
1490
|
* Amount that will be charged at next billing period in cents
|
|
1345
1491
|
*/
|
|
@@ -1370,11 +1516,11 @@ export type PreviewSubscribeResponse = {
|
|
|
1370
1516
|
new_plan: PreviewPlanInfo;
|
|
1371
1517
|
/**
|
|
1372
1518
|
* The Stripe payment method configuration governing which payment
|
|
1373
|
-
* methods
|
|
1374
|
-
*
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1377
|
-
*
|
|
1519
|
+
* methods a checkout offers for this environment. Mount Stripe
|
|
1520
|
+
* Elements with `paymentMethodConfiguration` set to this id instead
|
|
1521
|
+
* of hardcoding payment method types. Present on every successful
|
|
1522
|
+
* preview whenever the environment has one configured, independent
|
|
1523
|
+
* of embedded_checked_enabled; absent when it is not configured.
|
|
1378
1524
|
*
|
|
1379
1525
|
*/
|
|
1380
1526
|
payment_method_configuration_id?: string;
|
|
@@ -1419,6 +1565,17 @@ export type PreviewSubscribeResponse = {
|
|
|
1419
1565
|
*
|
|
1420
1566
|
*/
|
|
1421
1567
|
requires_reactivation_confirmation?: boolean;
|
|
1568
|
+
/**
|
|
1569
|
+
* Stripe's subtotal for today's invoice: before invoice-level
|
|
1570
|
+
* discounts and any customer credit balance, and before tax only for
|
|
1571
|
+
* tax-exclusive prices. On an immediate plan change it is net of the
|
|
1572
|
+
* unused-time credit, so it can be zero or negative. Present only on
|
|
1573
|
+
* Stripe-rated quotes that invoice today and itemize every applied
|
|
1574
|
+
* discount in discounts. The charge is always
|
|
1575
|
+
* cost_today_cents / amount_due_cents.
|
|
1576
|
+
*
|
|
1577
|
+
*/
|
|
1578
|
+
subtotal_cents?: number;
|
|
1422
1579
|
/**
|
|
1423
1580
|
* Type of subscription transition
|
|
1424
1581
|
*/
|
|
@@ -1450,6 +1607,14 @@ export type PreviewPlanInfo = {
|
|
|
1450
1607
|
*/
|
|
1451
1608
|
credits_cents: number;
|
|
1452
1609
|
duration: SubscriptionDuration;
|
|
1610
|
+
/**
|
|
1611
|
+
* The plan's price for one billing period before invoice-level
|
|
1612
|
+
* discounts, as rated by Stripe. Present only on new_plan of
|
|
1613
|
+
* Stripe-rated quotes that itemize every applied discount in
|
|
1614
|
+
* discounts.
|
|
1615
|
+
*
|
|
1616
|
+
*/
|
|
1617
|
+
list_price_cents?: number;
|
|
1453
1618
|
/**
|
|
1454
1619
|
* Current billing period end (only for current_plan)
|
|
1455
1620
|
*/
|
|
@@ -1519,6 +1684,16 @@ export type PlanAvailability = {
|
|
|
1519
1684
|
*/
|
|
1520
1685
|
export type Plan = {
|
|
1521
1686
|
availability: PlanAvailability;
|
|
1687
|
+
/**
|
|
1688
|
+
* Raw credit count (not cents) the plan grants for one billing period,
|
|
1689
|
+
* read from the catalog grant the subscription actually receives. An
|
|
1690
|
+
* annual plan carries the whole year's grant. Omitted when the plan
|
|
1691
|
+
* grants no flat credit amount: per-credit Team plans (see
|
|
1692
|
+
* team_credit_stops), team-only seat plans, zero-grant plans and plans
|
|
1693
|
+
* absent from the catalog.
|
|
1694
|
+
*
|
|
1695
|
+
*/
|
|
1696
|
+
credits?: number;
|
|
1522
1697
|
/**
|
|
1523
1698
|
* Per-member credits in cents (base + one seat)
|
|
1524
1699
|
*/
|
|
@@ -1953,6 +2128,16 @@ export type Member = {
|
|
|
1953
2128
|
*/
|
|
1954
2129
|
role: 'owner' | 'member';
|
|
1955
2130
|
};
|
|
2131
|
+
/**
|
|
2132
|
+
* 400 for a missing `filename` or a `res` that is not a number, on the media routes served outside the generated wrapper.
|
|
2133
|
+
*/
|
|
2134
|
+
export type MediaQueryError = {
|
|
2135
|
+
error: string;
|
|
2136
|
+
};
|
|
2137
|
+
/**
|
|
2138
|
+
* A 400 from a media route served outside the generated wrapper: ErrorResponse, or MediaQueryError for a bad query parameter.
|
|
2139
|
+
*/
|
|
2140
|
+
export type MediaBadRequestError = ErrorResponse | MediaQueryError;
|
|
1956
2141
|
/**
|
|
1957
2142
|
* Paginated list of workspaces the authenticated user belongs to.
|
|
1958
2143
|
*/
|
|
@@ -3064,6 +3249,20 @@ export type ForkWorkflowRequest = {
|
|
|
3064
3249
|
*/
|
|
3065
3250
|
source_version: number;
|
|
3066
3251
|
};
|
|
3252
|
+
/**
|
|
3253
|
+
* A 403 body: ErrorResponse, or AuthTypeNotAllowedError for a credential the route does not take.
|
|
3254
|
+
*/
|
|
3255
|
+
export type ForbiddenError = ErrorResponse | AuthTypeNotAllowedError;
|
|
3256
|
+
/**
|
|
3257
|
+
* 403 for a credential the route does not take. `accepted` names the ones it does, as `WWW-Authenticate` does.
|
|
3258
|
+
*/
|
|
3259
|
+
export type AuthTypeNotAllowedError = {
|
|
3260
|
+
accepted: Array<string>;
|
|
3261
|
+
error: {
|
|
3262
|
+
message: string;
|
|
3263
|
+
type: 'auth_type_not_allowed';
|
|
3264
|
+
};
|
|
3265
|
+
};
|
|
3067
3266
|
/**
|
|
3068
3267
|
* Response after submitting feedback
|
|
3069
3268
|
*/
|
|
@@ -3241,6 +3440,10 @@ export type CurrentWorkspaceResponse = {
|
|
|
3241
3440
|
auth_method: string;
|
|
3242
3441
|
id: string;
|
|
3243
3442
|
name: string;
|
|
3443
|
+
/**
|
|
3444
|
+
* What the caller may do in this workspace, the same list a workspace token minted for it would carry. Read from the live membership on every request. Omitted, like role, when no role resolves. New values are additive.
|
|
3445
|
+
*/
|
|
3446
|
+
permissions?: Array<string>;
|
|
3244
3447
|
/**
|
|
3245
3448
|
* The requesting user's role in this workspace. Omitted (absent from the object, never an explicit null) when the credential carries no resolvable user membership.
|
|
3246
3449
|
*/
|
|
@@ -3402,6 +3605,15 @@ export type CreateTopupRequest = {
|
|
|
3402
3605
|
*/
|
|
3403
3606
|
idempotency_key?: string;
|
|
3404
3607
|
};
|
|
3608
|
+
/**
|
|
3609
|
+
* Request body for previewing a credit top-up.
|
|
3610
|
+
*/
|
|
3611
|
+
export type CreateTopupQuoteRequest = {
|
|
3612
|
+
/**
|
|
3613
|
+
* Amount to quote, in cents.
|
|
3614
|
+
*/
|
|
3615
|
+
amount_cents: number;
|
|
3616
|
+
};
|
|
3405
3617
|
/**
|
|
3406
3618
|
* A hosted Stripe Checkout session for a credit top-up.
|
|
3407
3619
|
*/
|
|
@@ -3425,7 +3637,7 @@ export type CreateTopupCheckoutResponse = {
|
|
|
3425
3637
|
export type CreateTopupCheckoutRequest = {
|
|
3426
3638
|
/**
|
|
3427
3639
|
* Amount to charge in cents, before any promotion code the customer
|
|
3428
|
-
* enters. Whole dollars only, from $5.00 to $
|
|
3640
|
+
* enters. Whole dollars only, from $5.00 to $16,000.00. The ceiling is
|
|
3429
3641
|
* a fixed business limit (not a Stripe technical constraint) on how
|
|
3430
3642
|
* much a single unauthenticated-approval session may sell. The
|
|
3431
3643
|
* credits granted are derived server-side from this amount and
|
|
@@ -3534,6 +3746,16 @@ export type ChurnkeyAuthResponse = {
|
|
|
3534
3746
|
* Churnkey environment matching the configured app
|
|
3535
3747
|
*/
|
|
3536
3748
|
mode: 'live' | 'test' | 'sandbox';
|
|
3749
|
+
/**
|
|
3750
|
+
* Stripe subscription a native Churnkey retention offer may apply to.
|
|
3751
|
+
* Present only when the caller is in the native-offer rollout and owns
|
|
3752
|
+
* a Personal workspace on an active paid monthly plan with no billing
|
|
3753
|
+
* change in flight; absent otherwise, and the client then keeps offers
|
|
3754
|
+
* disabled. Present in any mode. Not a signed authorization: the HMAC
|
|
3755
|
+
* covers only the customer ID.
|
|
3756
|
+
*
|
|
3757
|
+
*/
|
|
3758
|
+
offer_subscription_id?: string;
|
|
3537
3759
|
};
|
|
3538
3760
|
/**
|
|
3539
3761
|
* Response after successfully cancelling a subscription.
|
|
@@ -3674,10 +3896,23 @@ export type BillingStatusResponse = {
|
|
|
3674
3896
|
* When the current billing period ends and the next one begins
|
|
3675
3897
|
*/
|
|
3676
3898
|
renewal_date?: string;
|
|
3899
|
+
renewal_invoice?: RenewalInvoice;
|
|
3677
3900
|
/**
|
|
3678
3901
|
* The authoritative successor scheduled for the current Stripe subscription. Always present; null when no valid scheduled plan transition exists.
|
|
3679
3902
|
*/
|
|
3680
3903
|
scheduled_change: ScheduledPlanChange | null;
|
|
3904
|
+
/**
|
|
3905
|
+
* Per-product funds verdict, keyed by product name (currently only "agent" is populated): shared credits OR that product's own scoped balance. This is what decides whether the product still has funds to spend, so a gratis-only workspace correctly reads true even though has_funds (the shared-only verdict) is false. It is not the complete admission verdict — a funded workspace can still be denied for other reasons, e.g. manual_block — so treat it as necessary but not sufficient for gating funds-exhaustion UI. Defaults to agent: true when billing is disabled; omitted only by older servers.
|
|
3906
|
+
*/
|
|
3907
|
+
scoped_effective_has_funds?: {
|
|
3908
|
+
[key: string]: boolean;
|
|
3909
|
+
};
|
|
3910
|
+
/**
|
|
3911
|
+
* Per-product scoped balance state, keyed by product name (currently only "agent" is populated). True while that product's own dedicated balance remains; false once it is exhausted, regardless of shared credits, and also false if that product has never held a scoped balance of its own — both read the same way: no exclusive allowance to draw from right now. Use this to detect that, not to gate admission — use scoped_effective_has_funds for that. Defaults to agent: true when billing is disabled; omitted only by older servers.
|
|
3912
|
+
*/
|
|
3913
|
+
scoped_has_funds?: {
|
|
3914
|
+
[key: string]: boolean;
|
|
3915
|
+
};
|
|
3681
3916
|
subscription_duration?: SubscriptionDuration;
|
|
3682
3917
|
/**
|
|
3683
3918
|
* Subscription activity status (scheduled subscriptions are not returned)
|
|
@@ -3717,6 +3952,16 @@ export type BillingOpStatusResponse = {
|
|
|
3717
3952
|
*
|
|
3718
3953
|
*/
|
|
3719
3954
|
action_url?: string;
|
|
3955
|
+
/**
|
|
3956
|
+
* Display only. What the operation's Stripe invoice collected, in
|
|
3957
|
+
* cents, tax included. Present only for a succeeded operation billed
|
|
3958
|
+
* through a Stripe invoice, and absent whenever that amount could not
|
|
3959
|
+
* be read. Top-ups paid on a hosted checkout page or through
|
|
3960
|
+
* Metronome get neither this nor credits_added. Returned only to
|
|
3961
|
+
* workspace billing managers, like the other payment details.
|
|
3962
|
+
*
|
|
3963
|
+
*/
|
|
3964
|
+
amount_charged_cents?: number;
|
|
3720
3965
|
/**
|
|
3721
3966
|
* State derived from the PaymentIntent attached to this operation's
|
|
3722
3967
|
* exact stored Stripe invoice. Absent when the operation has no
|
|
@@ -3728,6 +3973,15 @@ export type BillingOpStatusResponse = {
|
|
|
3728
3973
|
* When the operation completed (success or failure)
|
|
3729
3974
|
*/
|
|
3730
3975
|
completed_at?: string;
|
|
3976
|
+
/**
|
|
3977
|
+
* Display only. Credits (not cents) actually granted for the
|
|
3978
|
+
* operation's Stripe invoice — for a plan change, the prorated
|
|
3979
|
+
* difference. Present only for a succeeded operation whose grant has
|
|
3980
|
+
* been recorded. Visible to any workspace member who can read the
|
|
3981
|
+
* operation.
|
|
3982
|
+
*
|
|
3983
|
+
*/
|
|
3984
|
+
credits_added?: number;
|
|
3731
3985
|
/**
|
|
3732
3986
|
* Coarse classification of why the correlated PaymentIntent's last
|
|
3733
3987
|
* payment attempt failed, derived at read time from the provider's
|
|
@@ -3736,10 +3990,12 @@ export type BillingOpStatusResponse = {
|
|
|
3736
3990
|
* intent has recorded a failed attempt and the operation is either
|
|
3737
3991
|
* still pending with authentication_state failed_retryable or has
|
|
3738
3992
|
* terminally failed. generic means the attempt failed for a reason
|
|
3739
|
-
* outside this vocabulary.
|
|
3993
|
+
* outside this vocabulary. payment_not_completed means Stripe explicitly
|
|
3994
|
+
* reported customer non-approval or an expired attempt. Generic failed
|
|
3995
|
+
* attempts and ambiguous provider declines retain their failure meaning.
|
|
3740
3996
|
*
|
|
3741
3997
|
*/
|
|
3742
|
-
decline_reason?: 'card_declined' | 'insufficient_funds' | 'expired_card' | 'incorrect_cvc' | 'authentication_required' | 'authentication_failed' | 'processing_error' | 'generic';
|
|
3998
|
+
decline_reason?: 'card_declined' | 'insufficient_funds' | 'expired_card' | 'incorrect_cvc' | 'authentication_required' | 'authentication_failed' | 'processing_error' | 'payment_not_completed' | 'generic';
|
|
3743
3999
|
/**
|
|
3744
4000
|
* PII-safe failure code or generic failure message
|
|
3745
4001
|
*/
|
|
@@ -3770,6 +4026,7 @@ export type BillingOpStatusResponse = {
|
|
|
3770
4026
|
*
|
|
3771
4027
|
*/
|
|
3772
4028
|
phase?: 'awaiting_payment_method' | 'awaiting_invoice_payment' | 'in_progress';
|
|
4029
|
+
plan?: BillingOpReceiptPlan;
|
|
3773
4030
|
/**
|
|
3774
4031
|
* Typed next action for a failed operation. Absent for pending and succeeded operations.
|
|
3775
4032
|
*/
|
|
@@ -3789,6 +4046,17 @@ export type BillingOpStatusResponse = {
|
|
|
3789
4046
|
*/
|
|
3790
4047
|
status: 'pending' | 'succeeded' | 'failed' | 'reconciliation_needed';
|
|
3791
4048
|
};
|
|
4049
|
+
/**
|
|
4050
|
+
* Display only. The plan the operation targets; for a scheduled change,
|
|
4051
|
+
* the plan it switches to at period end. Present only for succeeded
|
|
4052
|
+
* plan changes, initial subscriptions and resubscribes. Visible to any
|
|
4053
|
+
* workspace member who can read the operation.
|
|
4054
|
+
*
|
|
4055
|
+
*/
|
|
4056
|
+
export type BillingOpReceiptPlan = {
|
|
4057
|
+
duration: SubscriptionDuration;
|
|
4058
|
+
slug: string;
|
|
4059
|
+
};
|
|
3792
4060
|
/**
|
|
3793
4061
|
* Paginated list of billing events for a workspace.
|
|
3794
4062
|
*/
|
|
@@ -4248,7 +4516,11 @@ export type AgentPostMessageRequest = {
|
|
|
4248
4516
|
*/
|
|
4249
4517
|
current_tab?: string;
|
|
4250
4518
|
/**
|
|
4251
|
-
* The client's
|
|
4519
|
+
* The client's active editor tab has no workflow yet (a fresh, unsaved tab), so it sends neither workflow_id nor current_tab. Without this signal the turn falls back to the thread's remembered workflow and the fresh tab is presented to the model as having no workflow selected. With it, the turn mints a workflow for the tab instead and that workflow is treated as selected. An explicit workflow_id or a resolvable current_tab still wins.
|
|
4520
|
+
*/
|
|
4521
|
+
current_tab_unbound?: boolean;
|
|
4522
|
+
/**
|
|
4523
|
+
* The client's live canvas, sent so the agent operates on what the user currently sees instead of an empty or stale draft. The canvas is authoritative for this send and carries no version token — the draft version returned by GET /api/agent/draft is a projection-cache snapshot counter, not a concurrency token, so there is no version to reconcile and no 409 on this field. Additive — older clients omit the whole object and the agent falls back to the stored draft.
|
|
4252
4524
|
*/
|
|
4253
4525
|
draft?: {
|
|
4254
4526
|
/**
|
|
@@ -4257,10 +4529,6 @@ export type AgentPostMessageRequest = {
|
|
|
4257
4529
|
content?: {
|
|
4258
4530
|
[key: string]: unknown;
|
|
4259
4531
|
};
|
|
4260
|
-
/**
|
|
4261
|
-
* The draft version the client last saw; null or 0 on first send. If it does not match the server's current draft version, the server returns 409 with the current version (an agent write landed since the client last saw the draft).
|
|
4262
|
-
*/
|
|
4263
|
-
version?: number | null;
|
|
4264
4532
|
};
|
|
4265
4533
|
/**
|
|
4266
4534
|
* Snapshot of the client's open editor tabs in editor order. Advisory context, not a grant — entries outside the caller's workspace are ignored. With workflow_references present, only the editable target and explicit references enter the model's workflow context.
|
|
@@ -4328,9 +4596,10 @@ export type AgentPendingAsk = {
|
|
|
4328
4596
|
*/
|
|
4329
4597
|
export type AgentMessage = {
|
|
4330
4598
|
/**
|
|
4331
|
-
* Message payload. User turns carry {text, attachments?, attachment_refs?, workflow_references?}. Attachments are the input-image filenames from the request. attachment_refs is the server's own resolution of those same filenames to library assets, as {name, id?, kind?} objects, and exists so a later turn in the thread can reach an earlier turn's file — clients should keep reading attachments. workflow_references is an optional array of explicit non-target references, each with workflow_id and name (an empty string when no name was supplied). An optional unavailable: true records that the reference could not be authorized at turn start, without distinguishing unknown IDs, inaccessible workflows, or lookup failures. These entries preserve the user's reference intent without exposing workflow content; the frontend restores reference chips from this metadata. The field is omitted when there are no references. Assistant turns carry {text} — the final answer text (or error copy on a failed turn). Omitted when empty (e.g. an assistant message still streaming). Per-turn token accounting is NOT included here; it is surfaced on the agent_message_done WebSocket broadcast.
|
|
4599
|
+
* Message payload. User turns carry {text, attachments?, attachment_refs?, workflow_references?}. Attachments are the input-image filenames from the request. attachment_refs is the server's own resolution of those same filenames to library assets, as {name, id?, kind?} objects, and exists so a later turn in the thread can reach an earlier turn's file — clients should keep reading attachments. workflow_references is an optional array of explicit non-target references, each with workflow_id and name (an empty string when no name was supplied). An optional unavailable: true records that the reference could not be authorized at turn start, without distinguishing unknown IDs, inaccessible workflows, or lookup failures. These entries preserve the user's reference intent without exposing workflow content; the frontend restores reference chips from this metadata. The field is omitted when there are no references. Assistant turns carry {text} — the final answer text (or error copy on a failed turn). Omitted when empty (e.g. an assistant message still streaming). Per-turn token accounting is NOT included here; it is surfaced on the agent_message_done WebSocket broadcast. tool_calls is an optional array of ToolCallSummary, attached to an assistant message that has persisted terminal (ok/error) tool-call rows — it lets a chat reload render the tool history a turn produced instead of showing nothing until the next live turn. Omitted when the message has no such rows.
|
|
4332
4600
|
*/
|
|
4333
4601
|
content?: {
|
|
4602
|
+
tool_calls?: Array<ToolCallSummary>;
|
|
4334
4603
|
[key: string]: unknown;
|
|
4335
4604
|
};
|
|
4336
4605
|
id: string;
|
|
@@ -4543,6 +4812,22 @@ export type AssetCreatedWritable = AssetWritable & {
|
|
|
4543
4812
|
*/
|
|
4544
4813
|
created_new: boolean;
|
|
4545
4814
|
};
|
|
4815
|
+
/**
|
|
4816
|
+
* The workspace a media request reads from, where a media tag cannot
|
|
4817
|
+
* send `X-Comfy-Workspace-ID`. It applies only while
|
|
4818
|
+
* `web_session_enabled` is on for the user; with it off, and always on
|
|
4819
|
+
* the `CookieAuth` cookie, it is ignored.
|
|
4820
|
+
*
|
|
4821
|
+
* On a `WebSessionAuth` request it selects the workspace: a workspace
|
|
4822
|
+
* the user cannot access is 403 `workspace_access_denied`, and a
|
|
4823
|
+
* malformed value, or one that disagrees with `X-Comfy-Workspace-ID`,
|
|
4824
|
+
* is 400 `workspace_id_invalid`. A token or API key keeps its own
|
|
4825
|
+
* workspace, and naming another is 400 `workspace_id_invalid`. A cookie
|
|
4826
|
+
* request that names no workspace looks a filename up across all of the
|
|
4827
|
+
* user's workspaces, and an asset id up in the personal one.
|
|
4828
|
+
*
|
|
4829
|
+
*/
|
|
4830
|
+
export type MediaWorkspaceId = string;
|
|
4546
4831
|
export type GetJwksData = {
|
|
4547
4832
|
body?: never;
|
|
4548
4833
|
path?: never;
|
|
@@ -4634,14 +4919,19 @@ export type GetCustomNodeProxyData = {
|
|
|
4634
4919
|
};
|
|
4635
4920
|
export type GetCustomNodeProxyErrors = {
|
|
4636
4921
|
/**
|
|
4637
|
-
*
|
|
4922
|
+
* `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.
|
|
4638
4923
|
*/
|
|
4639
|
-
|
|
4924
|
+
400: ErrorResponse;
|
|
4640
4925
|
/**
|
|
4641
|
-
*
|
|
4926
|
+
* 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`.
|
|
4642
4927
|
*/
|
|
4643
|
-
|
|
4928
|
+
401: ErrorResponse;
|
|
4929
|
+
/**
|
|
4930
|
+
* `code` `FORBIDDEN`: the path is not in the allowlist, or the route's own check failed, such as an unverified email. For a web session, `workspace_access_denied`, `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. A credential this route does not take gets AuthTypeNotAllowedError.
|
|
4931
|
+
*/
|
|
4932
|
+
403: ForbiddenError;
|
|
4644
4933
|
};
|
|
4934
|
+
export type GetCustomNodeProxyError = GetCustomNodeProxyErrors[keyof GetCustomNodeProxyErrors];
|
|
4645
4935
|
export type GetCustomNodeProxyResponses = {
|
|
4646
4936
|
/**
|
|
4647
4937
|
* Proxied response
|
|
@@ -4661,14 +4951,19 @@ export type PostCustomNodeProxyData = {
|
|
|
4661
4951
|
};
|
|
4662
4952
|
export type PostCustomNodeProxyErrors = {
|
|
4663
4953
|
/**
|
|
4664
|
-
*
|
|
4954
|
+
* `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.
|
|
4665
4955
|
*/
|
|
4666
|
-
|
|
4956
|
+
400: ErrorResponse;
|
|
4667
4957
|
/**
|
|
4668
|
-
*
|
|
4958
|
+
* 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`.
|
|
4669
4959
|
*/
|
|
4670
|
-
|
|
4960
|
+
401: ErrorResponse;
|
|
4961
|
+
/**
|
|
4962
|
+
* `code` `FORBIDDEN`: the path is not in the allowlist, or the route's own check failed, such as an unverified email. For a web session, `csrf_invalid`, `workspace_access_denied`, `origin_not_allowed` or `cross_site_request`, and for the `CookieAuth` cookie the last two; see the `WebSessionAuth` and `CookieAuth` schemes. A credential this route does not take gets AuthTypeNotAllowedError.
|
|
4963
|
+
*/
|
|
4964
|
+
403: ForbiddenError;
|
|
4671
4965
|
};
|
|
4966
|
+
export type PostCustomNodeProxyError = PostCustomNodeProxyErrors[keyof PostCustomNodeProxyErrors];
|
|
4672
4967
|
export type PostCustomNodeProxyResponses = {
|
|
4673
4968
|
/**
|
|
4674
4969
|
* Proxied response
|
|
@@ -4688,17 +4983,17 @@ export type AgentGetDraftData = {
|
|
|
4688
4983
|
};
|
|
4689
4984
|
export type AgentGetDraftErrors = {
|
|
4690
4985
|
/**
|
|
4691
|
-
* Missing workflow_id
|
|
4986
|
+
* Missing workflow_id. An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
4692
4987
|
*/
|
|
4693
|
-
400: AgentError;
|
|
4988
|
+
400: ErrorResponse | AgentError;
|
|
4694
4989
|
/**
|
|
4695
4990
|
* Unauthorized
|
|
4696
4991
|
*/
|
|
4697
4992
|
401: ErrorResponse;
|
|
4698
4993
|
/**
|
|
4699
|
-
* Forbidden (workflow not found or cross-workspace)
|
|
4994
|
+
* Forbidden (workflow not found or cross-workspace). An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
4700
4995
|
*/
|
|
4701
|
-
403: AgentError;
|
|
4996
|
+
403: ErrorResponse | AgentError;
|
|
4702
4997
|
/**
|
|
4703
4998
|
* No draft exists for the workflow
|
|
4704
4999
|
*/
|
|
@@ -4748,6 +5043,10 @@ export type AgentLlmAdmitErrors = {
|
|
|
4748
5043
|
* Unauthorized
|
|
4749
5044
|
*/
|
|
4750
5045
|
401: ErrorResponse;
|
|
5046
|
+
/**
|
|
5047
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5048
|
+
*/
|
|
5049
|
+
403: ForbiddenError;
|
|
4751
5050
|
/**
|
|
4752
5051
|
* The agent in-app experience is disabled for this caller (FlagAgentInAppExperience off). Kept invisible when off, so 404 rather than 403.
|
|
4753
5052
|
*/
|
|
@@ -4799,6 +5098,10 @@ export type AgentLlmMessagesData = {
|
|
|
4799
5098
|
url: '/api/agent/llm/v1/messages';
|
|
4800
5099
|
};
|
|
4801
5100
|
export type AgentLlmMessagesErrors = {
|
|
5101
|
+
/**
|
|
5102
|
+
* `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.
|
|
5103
|
+
*/
|
|
5104
|
+
400: ErrorResponse;
|
|
4802
5105
|
/**
|
|
4803
5106
|
* Unauthorized
|
|
4804
5107
|
*/
|
|
@@ -4807,6 +5110,10 @@ export type AgentLlmMessagesErrors = {
|
|
|
4807
5110
|
* The pre-turn admission gate declined the turn for a payment reason: the workspace is out of credits or has been blocked. Not retryable as-is — resolve the account condition first.
|
|
4808
5111
|
*/
|
|
4809
5112
|
402: AgentAdmissionError;
|
|
5113
|
+
/**
|
|
5114
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5115
|
+
*/
|
|
5116
|
+
403: ForbiddenError;
|
|
4810
5117
|
/**
|
|
4811
5118
|
* The agent in-app experience is disabled for this caller (FlagAgentInAppExperience off). The feature is kept invisible when off, so ingest returns 404 rather than 403.
|
|
4812
5119
|
*/
|
|
@@ -4835,10 +5142,18 @@ export type AgentGetRunModeData = {
|
|
|
4835
5142
|
url: '/api/agent/run-mode';
|
|
4836
5143
|
};
|
|
4837
5144
|
export type AgentGetRunModeErrors = {
|
|
5145
|
+
/**
|
|
5146
|
+
* `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.
|
|
5147
|
+
*/
|
|
5148
|
+
400: ErrorResponse;
|
|
4838
5149
|
/**
|
|
4839
5150
|
* Unauthorized
|
|
4840
5151
|
*/
|
|
4841
5152
|
401: ErrorResponse;
|
|
5153
|
+
/**
|
|
5154
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5155
|
+
*/
|
|
5156
|
+
403: ForbiddenError;
|
|
4842
5157
|
/**
|
|
4843
5158
|
* The run-mode surface is not reachable, from either of two sources, and the two do NOT share a body shape — a client must accept both. Ingest-raised (standard ErrorResponse): the caller is not enrolled in the agent-in-app-experience flag gating the whole /api/agent surface, which defaults off and fails closed, so this is the common answer for a non-enrolled caller. Agent-raised (AgentError): the caller is enrolled but AGENT_RUN_MODE_ENABLED is off in the comfy-agent service. Both answer 404 rather than 403 so the surface is invisible when off. Clients should treat either as "not available" and keep any local state.
|
|
4844
5159
|
*/
|
|
@@ -4872,13 +5187,17 @@ export type AgentPutRunModeData = {
|
|
|
4872
5187
|
};
|
|
4873
5188
|
export type AgentPutRunModeErrors = {
|
|
4874
5189
|
/**
|
|
4875
|
-
* The body was rejected: not JSON, a mode outside the three values, a missing, non-positive or above-maximum credit_limit for auto_limited, or a credit_limit on a limitless mode. The message names what to change.
|
|
5190
|
+
* The body was rejected: not JSON, a mode outside the three values, a missing, non-positive or above-maximum credit_limit for auto_limited, or a credit_limit on a limitless mode. The message names what to change. An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
4876
5191
|
*/
|
|
4877
|
-
400: AgentError;
|
|
5192
|
+
400: ErrorResponse | AgentError;
|
|
4878
5193
|
/**
|
|
4879
5194
|
* Unauthorized
|
|
4880
5195
|
*/
|
|
4881
5196
|
401: ErrorResponse;
|
|
5197
|
+
/**
|
|
5198
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5199
|
+
*/
|
|
5200
|
+
403: ForbiddenError;
|
|
4882
5201
|
/**
|
|
4883
5202
|
* The run-mode surface is not reachable, from either of two sources, and the two do NOT share a body shape — a client must accept both. Ingest-raised (standard ErrorResponse): the caller is not enrolled in the agent-in-app-experience flag gating the whole /api/agent surface, which defaults off and fails closed, so this is the common answer for a non-enrolled caller. Agent-raised (AgentError): the caller is enrolled but AGENT_RUN_MODE_ENABLED is off in the comfy-agent service. Both answer 404 rather than 403 so the surface is invisible when off. Clients should treat either as "not available" and keep any local state.
|
|
4884
5203
|
*/
|
|
@@ -4915,10 +5234,18 @@ export type AgentListSkillsData = {
|
|
|
4915
5234
|
url: '/api/agent/skills';
|
|
4916
5235
|
};
|
|
4917
5236
|
export type AgentListSkillsErrors = {
|
|
5237
|
+
/**
|
|
5238
|
+
* `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.
|
|
5239
|
+
*/
|
|
5240
|
+
400: ErrorResponse;
|
|
4918
5241
|
/**
|
|
4919
5242
|
* Unauthorized
|
|
4920
5243
|
*/
|
|
4921
5244
|
401: ErrorResponse;
|
|
5245
|
+
/**
|
|
5246
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5247
|
+
*/
|
|
5248
|
+
403: ForbiddenError;
|
|
4922
5249
|
/**
|
|
4923
5250
|
* The caller is not enrolled in the cohort gate fronting these CRUD routes: the agent-skill-packs flag, or the agent-in-app-experience flag gating the whole /api/agent surface. Both default off and fail closed (a missing evaluation context resolves to false), and both answer 404 rather than 403 so the surface is invisible when off. Ingest-raised, so the body is the standard ErrorResponse shape.
|
|
4924
5251
|
*/
|
|
@@ -4952,13 +5279,17 @@ export type AgentPublishSkillData = {
|
|
|
4952
5279
|
};
|
|
4953
5280
|
export type AgentPublishSkillErrors = {
|
|
4954
5281
|
/**
|
|
4955
|
-
* The pack was rejected by publish-time validation (name shape, empty description or body, control characters in either, body over the per-pack size cap, always:true, a reserved always-on name, or comfy-cli shell syntax in the body). The message names what to change.
|
|
5282
|
+
* The pack was rejected by publish-time validation (name shape, empty description or body, control characters in either, body over the per-pack size cap, always:true, a reserved always-on name, or comfy-cli shell syntax in the body). The message names what to change. An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
4956
5283
|
*/
|
|
4957
|
-
400: AgentError;
|
|
5284
|
+
400: ErrorResponse | AgentError;
|
|
4958
5285
|
/**
|
|
4959
5286
|
* Unauthorized
|
|
4960
5287
|
*/
|
|
4961
5288
|
401: ErrorResponse;
|
|
5289
|
+
/**
|
|
5290
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5291
|
+
*/
|
|
5292
|
+
403: ForbiddenError;
|
|
4962
5293
|
/**
|
|
4963
5294
|
* The caller is not enrolled in the cohort gate fronting these CRUD routes: the agent-skill-packs flag, or the agent-in-app-experience flag gating the whole /api/agent surface. Both default off and fail closed (a missing evaluation context resolves to false), and both answer 404 rather than 403 so the surface is invisible when off. Ingest-raised, so the body is the standard ErrorResponse shape.
|
|
4964
5295
|
*/
|
|
@@ -5016,6 +5347,10 @@ export type AgentDeleteSkillErrors = {
|
|
|
5016
5347
|
* Unauthorized
|
|
5017
5348
|
*/
|
|
5018
5349
|
401: ErrorResponse;
|
|
5350
|
+
/**
|
|
5351
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5352
|
+
*/
|
|
5353
|
+
403: ForbiddenError;
|
|
5019
5354
|
/**
|
|
5020
5355
|
* The caller holds no pack with that name, or the caller is not enrolled in the cohort gate fronting these CRUD routes (the agent-skill-packs flag, or the agent-in-app-experience flag gating the whole /api/agent surface). Both flags default off and fail closed, and both answer 404 rather than 403 so the surface is invisible when off. The schema below is the agent-raised no-such-pack body; the gate-off 404 is ingest-raised and uses the standard ErrorResponse shape instead.
|
|
5021
5356
|
*/
|
|
@@ -5060,13 +5395,17 @@ export type AgentListThreadsData = {
|
|
|
5060
5395
|
};
|
|
5061
5396
|
export type AgentListThreadsErrors = {
|
|
5062
5397
|
/**
|
|
5063
|
-
* Invalid limit or cursor
|
|
5398
|
+
* Invalid limit or cursor. An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
5064
5399
|
*/
|
|
5065
|
-
400: AgentError;
|
|
5400
|
+
400: ErrorResponse | AgentError;
|
|
5066
5401
|
/**
|
|
5067
5402
|
* Unauthorized
|
|
5068
5403
|
*/
|
|
5069
5404
|
401: ErrorResponse;
|
|
5405
|
+
/**
|
|
5406
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5407
|
+
*/
|
|
5408
|
+
403: ForbiddenError;
|
|
5070
5409
|
/**
|
|
5071
5410
|
* Internal server error (ingest-raised failures use the standard ErrorResponse shape instead)
|
|
5072
5411
|
*/
|
|
@@ -5091,10 +5430,18 @@ export type AgentCreateThreadData = {
|
|
|
5091
5430
|
url: '/api/agent/threads';
|
|
5092
5431
|
};
|
|
5093
5432
|
export type AgentCreateThreadErrors = {
|
|
5433
|
+
/**
|
|
5434
|
+
* `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.
|
|
5435
|
+
*/
|
|
5436
|
+
400: ErrorResponse;
|
|
5094
5437
|
/**
|
|
5095
5438
|
* Unauthorized
|
|
5096
5439
|
*/
|
|
5097
5440
|
401: ErrorResponse;
|
|
5441
|
+
/**
|
|
5442
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5443
|
+
*/
|
|
5444
|
+
403: ForbiddenError;
|
|
5098
5445
|
/**
|
|
5099
5446
|
* Internal server error (ingest-raised failures use the standard ErrorResponse shape instead)
|
|
5100
5447
|
*/
|
|
@@ -5132,14 +5479,18 @@ export type AgentAnswerAskData = {
|
|
|
5132
5479
|
url: '/api/agent/threads/{id}/asks/{ask_id}/answer';
|
|
5133
5480
|
};
|
|
5134
5481
|
export type AgentAnswerAskErrors = {
|
|
5482
|
+
/**
|
|
5483
|
+
* `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.
|
|
5484
|
+
*/
|
|
5485
|
+
400: ErrorResponse;
|
|
5135
5486
|
/**
|
|
5136
5487
|
* Unauthorized
|
|
5137
5488
|
*/
|
|
5138
5489
|
401: ErrorResponse;
|
|
5139
5490
|
/**
|
|
5140
|
-
* Forbidden (ask not found or not owned by the caller)
|
|
5491
|
+
* Forbidden (ask not found or not owned by the caller). An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
5141
5492
|
*/
|
|
5142
|
-
403: AgentError;
|
|
5493
|
+
403: ErrorResponse | AgentError;
|
|
5143
5494
|
/**
|
|
5144
5495
|
* Ask not found
|
|
5145
5496
|
*/
|
|
@@ -5185,10 +5536,18 @@ export type AgentGetMessagesData = {
|
|
|
5185
5536
|
url: '/api/agent/threads/{id}/messages';
|
|
5186
5537
|
};
|
|
5187
5538
|
export type AgentGetMessagesErrors = {
|
|
5539
|
+
/**
|
|
5540
|
+
* `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.
|
|
5541
|
+
*/
|
|
5542
|
+
400: ErrorResponse;
|
|
5188
5543
|
/**
|
|
5189
5544
|
* Unauthorized
|
|
5190
5545
|
*/
|
|
5191
5546
|
401: ErrorResponse;
|
|
5547
|
+
/**
|
|
5548
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5549
|
+
*/
|
|
5550
|
+
403: ForbiddenError;
|
|
5192
5551
|
/**
|
|
5193
5552
|
* Thread not found or has no messages
|
|
5194
5553
|
*/
|
|
@@ -5223,9 +5582,9 @@ export type AgentPostMessageData = {
|
|
|
5223
5582
|
};
|
|
5224
5583
|
export type AgentPostMessageErrors = {
|
|
5225
5584
|
/**
|
|
5226
|
-
* Invalid request body
|
|
5585
|
+
* Invalid request body. An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
5227
5586
|
*/
|
|
5228
|
-
400: AgentError;
|
|
5587
|
+
400: ErrorResponse | AgentError;
|
|
5229
5588
|
/**
|
|
5230
5589
|
* Unauthorized
|
|
5231
5590
|
*/
|
|
@@ -5235,9 +5594,9 @@ export type AgentPostMessageErrors = {
|
|
|
5235
5594
|
*/
|
|
5236
5595
|
402: AgentAdmissionError;
|
|
5237
5596
|
/**
|
|
5238
|
-
* Forbidden (workflow or thread not owned by the caller)
|
|
5597
|
+
* Forbidden (workflow or thread not owned by the caller). An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
5239
5598
|
*/
|
|
5240
|
-
403: AgentError;
|
|
5599
|
+
403: ErrorResponse | AgentError;
|
|
5241
5600
|
/**
|
|
5242
5601
|
* Internal server error (ingest-raised failures use the standard ErrorResponse shape instead)
|
|
5243
5602
|
*/
|
|
@@ -5275,14 +5634,18 @@ export type AgentCancelMessageData = {
|
|
|
5275
5634
|
url: '/api/agent/threads/{id}/messages/{message_id}/cancel';
|
|
5276
5635
|
};
|
|
5277
5636
|
export type AgentCancelMessageErrors = {
|
|
5637
|
+
/**
|
|
5638
|
+
* `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.
|
|
5639
|
+
*/
|
|
5640
|
+
400: ErrorResponse;
|
|
5278
5641
|
/**
|
|
5279
5642
|
* Unauthorized
|
|
5280
5643
|
*/
|
|
5281
5644
|
401: ErrorResponse;
|
|
5282
5645
|
/**
|
|
5283
|
-
* Forbidden (message not found or not owned by the caller)
|
|
5646
|
+
* Forbidden (message not found or not owned by the caller). An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
5284
5647
|
*/
|
|
5285
|
-
403: AgentError;
|
|
5648
|
+
403: ErrorResponse | AgentError;
|
|
5286
5649
|
/**
|
|
5287
5650
|
* The message is not a running assistant turn
|
|
5288
5651
|
*/
|
|
@@ -5423,6 +5786,10 @@ export type ListAssetsErrors = {
|
|
|
5423
5786
|
* Unauthorized
|
|
5424
5787
|
*/
|
|
5425
5788
|
401: ErrorResponse;
|
|
5789
|
+
/**
|
|
5790
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5791
|
+
*/
|
|
5792
|
+
403: ForbiddenError;
|
|
5426
5793
|
/**
|
|
5427
5794
|
* Internal server error
|
|
5428
5795
|
*/
|
|
@@ -5484,6 +5851,10 @@ export type CreateAssetErrors = {
|
|
|
5484
5851
|
* Unauthorized
|
|
5485
5852
|
*/
|
|
5486
5853
|
401: ErrorResponse;
|
|
5854
|
+
/**
|
|
5855
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5856
|
+
*/
|
|
5857
|
+
403: ForbiddenError;
|
|
5487
5858
|
/**
|
|
5488
5859
|
* File too large
|
|
5489
5860
|
*/
|
|
@@ -5527,10 +5898,18 @@ export type DeleteAssetData = {
|
|
|
5527
5898
|
url: '/api/assets/{id}';
|
|
5528
5899
|
};
|
|
5529
5900
|
export type DeleteAssetErrors = {
|
|
5901
|
+
/**
|
|
5902
|
+
* `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.
|
|
5903
|
+
*/
|
|
5904
|
+
400: ErrorResponse;
|
|
5530
5905
|
/**
|
|
5531
5906
|
* Unauthorized
|
|
5532
5907
|
*/
|
|
5533
5908
|
401: ErrorResponse;
|
|
5909
|
+
/**
|
|
5910
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5911
|
+
*/
|
|
5912
|
+
403: ForbiddenError;
|
|
5534
5913
|
/**
|
|
5535
5914
|
* Asset not found
|
|
5536
5915
|
*/
|
|
@@ -5564,10 +5943,18 @@ export type GetAssetByIdData = {
|
|
|
5564
5943
|
url: '/api/assets/{id}';
|
|
5565
5944
|
};
|
|
5566
5945
|
export type GetAssetByIdErrors = {
|
|
5946
|
+
/**
|
|
5947
|
+
* `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.
|
|
5948
|
+
*/
|
|
5949
|
+
400: ErrorResponse;
|
|
5567
5950
|
/**
|
|
5568
5951
|
* Unauthorized
|
|
5569
5952
|
*/
|
|
5570
5953
|
401: ErrorResponse;
|
|
5954
|
+
/**
|
|
5955
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
5956
|
+
*/
|
|
5957
|
+
403: ForbiddenError;
|
|
5571
5958
|
/**
|
|
5572
5959
|
* Asset not found
|
|
5573
5960
|
*/
|
|
@@ -5626,6 +6013,10 @@ export type UpdateAssetErrors = {
|
|
|
5626
6013
|
* Unauthorized
|
|
5627
6014
|
*/
|
|
5628
6015
|
401: ErrorResponse;
|
|
6016
|
+
/**
|
|
6017
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6018
|
+
*/
|
|
6019
|
+
403: ForbiddenError;
|
|
5629
6020
|
/**
|
|
5630
6021
|
* Asset not found — returned both when the asset being updated does
|
|
5631
6022
|
* not exist and when `preview_id` does not reference an asset
|
|
@@ -5661,10 +6052,26 @@ export type GetAssetContentData = {
|
|
|
5661
6052
|
*
|
|
5662
6053
|
*/
|
|
5663
6054
|
disposition?: 'inline' | 'attachment';
|
|
6055
|
+
/**
|
|
6056
|
+
* The workspace a media request reads from, where a media tag cannot send `X-Comfy-Workspace-ID`; see the `MediaWorkspaceID` parameter.
|
|
6057
|
+
*/
|
|
6058
|
+
workspace_id?: string;
|
|
5664
6059
|
};
|
|
5665
6060
|
url: '/api/assets/{id}/content';
|
|
5666
6061
|
};
|
|
5667
6062
|
export type GetAssetContentErrors = {
|
|
6063
|
+
/**
|
|
6064
|
+
* `code` `workspace_id_invalid`: the `workspace_id` or `X-Comfy-Workspace-ID` value is malformed, the two disagree, or, with the flag on, a token or API key names another workspace than its own. Or `BAD_REQUEST` from the generated wrapper when a parameter does not bind, such as a repeated `disposition`.
|
|
6065
|
+
*/
|
|
6066
|
+
400: ErrorResponse;
|
|
6067
|
+
/**
|
|
6068
|
+
* 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`.
|
|
6069
|
+
*/
|
|
6070
|
+
401: ErrorResponse;
|
|
6071
|
+
/**
|
|
6072
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6073
|
+
*/
|
|
6074
|
+
403: ForbiddenError;
|
|
5668
6075
|
/**
|
|
5669
6076
|
* Asset not found
|
|
5670
6077
|
*/
|
|
@@ -5707,6 +6114,10 @@ export type RemoveAssetTagsErrors = {
|
|
|
5707
6114
|
* Unauthorized
|
|
5708
6115
|
*/
|
|
5709
6116
|
401: ErrorResponse;
|
|
6117
|
+
/**
|
|
6118
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6119
|
+
*/
|
|
6120
|
+
403: ForbiddenError;
|
|
5710
6121
|
/**
|
|
5711
6122
|
* Asset not found
|
|
5712
6123
|
*/
|
|
@@ -5753,6 +6164,10 @@ export type AddAssetTagsErrors = {
|
|
|
5753
6164
|
* Unauthorized
|
|
5754
6165
|
*/
|
|
5755
6166
|
401: ErrorResponse;
|
|
6167
|
+
/**
|
|
6168
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6169
|
+
*/
|
|
6170
|
+
403: ForbiddenError;
|
|
5756
6171
|
/**
|
|
5757
6172
|
* Asset not found
|
|
5758
6173
|
*/
|
|
@@ -5808,6 +6223,10 @@ export type CreateAssetDownloadErrors = {
|
|
|
5808
6223
|
* Unauthorized
|
|
5809
6224
|
*/
|
|
5810
6225
|
401: ErrorResponse;
|
|
6226
|
+
/**
|
|
6227
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6228
|
+
*/
|
|
6229
|
+
403: ForbiddenError;
|
|
5811
6230
|
/**
|
|
5812
6231
|
* Validation errors
|
|
5813
6232
|
*/
|
|
@@ -5875,6 +6294,10 @@ export type CreateAssetExportErrors = {
|
|
|
5875
6294
|
* Unauthorized
|
|
5876
6295
|
*/
|
|
5877
6296
|
401: ErrorResponse;
|
|
6297
|
+
/**
|
|
6298
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6299
|
+
*/
|
|
6300
|
+
403: ForbiddenError;
|
|
5878
6301
|
/**
|
|
5879
6302
|
* Internal server error
|
|
5880
6303
|
*/
|
|
@@ -5908,6 +6331,10 @@ export type DownloadExportErrors = {
|
|
|
5908
6331
|
* Unauthorized
|
|
5909
6332
|
*/
|
|
5910
6333
|
401: ErrorResponse;
|
|
6334
|
+
/**
|
|
6335
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6336
|
+
*/
|
|
6337
|
+
403: ForbiddenError;
|
|
5911
6338
|
/**
|
|
5912
6339
|
* Export not found or not owned by user
|
|
5913
6340
|
*/
|
|
@@ -5963,6 +6390,10 @@ export type CreateAssetFromHashErrors = {
|
|
|
5963
6390
|
* Unauthorized
|
|
5964
6391
|
*/
|
|
5965
6392
|
401: ErrorResponse;
|
|
6393
|
+
/**
|
|
6394
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6395
|
+
*/
|
|
6396
|
+
403: ForbiddenError;
|
|
5966
6397
|
/**
|
|
5967
6398
|
* Source asset with given hash not found
|
|
5968
6399
|
*/
|
|
@@ -6005,6 +6436,10 @@ export type PostAssetsFromWorkflowErrors = {
|
|
|
6005
6436
|
* Unauthorized
|
|
6006
6437
|
*/
|
|
6007
6438
|
401: ErrorResponse;
|
|
6439
|
+
/**
|
|
6440
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6441
|
+
*/
|
|
6442
|
+
403: ForbiddenError;
|
|
6008
6443
|
/**
|
|
6009
6444
|
* Not found
|
|
6010
6445
|
*/
|
|
@@ -6039,9 +6474,13 @@ export type CheckAssetByHashErrors = {
|
|
|
6039
6474
|
*/
|
|
6040
6475
|
400: ErrorResponse;
|
|
6041
6476
|
/**
|
|
6042
|
-
*
|
|
6477
|
+
* No valid credential (see SessionUnauthorized). No body.
|
|
6043
6478
|
*/
|
|
6044
|
-
401:
|
|
6479
|
+
401: unknown;
|
|
6480
|
+
/**
|
|
6481
|
+
* A refused web session request, or the route's own authorization check failing (see SessionForbidden). A HEAD response has no body, so the code is not sent.
|
|
6482
|
+
*/
|
|
6483
|
+
403: unknown;
|
|
6045
6484
|
/**
|
|
6046
6485
|
* Asset not found
|
|
6047
6486
|
*/
|
|
@@ -6073,6 +6512,10 @@ export type ImportPublishedAssetsErrors = {
|
|
|
6073
6512
|
* Unauthorized
|
|
6074
6513
|
*/
|
|
6075
6514
|
401: ErrorResponse;
|
|
6515
|
+
/**
|
|
6516
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6517
|
+
*/
|
|
6518
|
+
403: ForbiddenError;
|
|
6076
6519
|
/**
|
|
6077
6520
|
* Internal server error
|
|
6078
6521
|
*/
|
|
@@ -6125,6 +6568,10 @@ export type GetRemoteAssetMetadataErrors = {
|
|
|
6125
6568
|
* Unauthorized
|
|
6126
6569
|
*/
|
|
6127
6570
|
401: ErrorResponse;
|
|
6571
|
+
/**
|
|
6572
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6573
|
+
*/
|
|
6574
|
+
403: ForbiddenError;
|
|
6128
6575
|
/**
|
|
6129
6576
|
* Failed to retrieve metadata from source
|
|
6130
6577
|
*/
|
|
@@ -6266,6 +6713,10 @@ export type GetAssetTagHistogramErrors = {
|
|
|
6266
6713
|
* Unauthorized
|
|
6267
6714
|
*/
|
|
6268
6715
|
401: ErrorResponse;
|
|
6716
|
+
/**
|
|
6717
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6718
|
+
*/
|
|
6719
|
+
403: ForbiddenError;
|
|
6269
6720
|
/**
|
|
6270
6721
|
* Internal server error
|
|
6271
6722
|
*/
|
|
@@ -6391,23 +6842,62 @@ export type DeleteSessionResponses = {
|
|
|
6391
6842
|
200: DeleteSessionResponse;
|
|
6392
6843
|
};
|
|
6393
6844
|
export type DeleteSessionResponse2 = DeleteSessionResponses[keyof DeleteSessionResponses];
|
|
6394
|
-
export type
|
|
6845
|
+
export type GetSessionData = {
|
|
6395
6846
|
body?: never;
|
|
6396
6847
|
path?: never;
|
|
6397
6848
|
query?: never;
|
|
6398
6849
|
url: '/api/auth/session';
|
|
6399
6850
|
};
|
|
6400
|
-
export type
|
|
6401
|
-
/**
|
|
6402
|
-
* Bad request - Invalid or old ID token
|
|
6403
|
-
*/
|
|
6404
|
-
400: ErrorResponse;
|
|
6851
|
+
export type GetSessionErrors = {
|
|
6405
6852
|
/**
|
|
6406
|
-
*
|
|
6853
|
+
* No live session. `code` is `session_expired`, `session_revoked`,
|
|
6854
|
+
* or `no_session`: no cookie, a cookie the server never issued, a
|
|
6855
|
+
* session whose user no longer exists, or `web_session_enabled` off
|
|
6856
|
+
* for the session's user.
|
|
6857
|
+
*
|
|
6407
6858
|
*/
|
|
6408
6859
|
401: ErrorResponse;
|
|
6409
6860
|
/**
|
|
6410
|
-
*
|
|
6861
|
+
* Refused. `code` is `origin_not_allowed` (untrusted or missing
|
|
6862
|
+
* Origin), `cross_site_request`, or `FORBIDDEN` when the account is
|
|
6863
|
+
* scheduled for deletion.
|
|
6864
|
+
*
|
|
6865
|
+
*/
|
|
6866
|
+
403: ErrorResponse;
|
|
6867
|
+
/**
|
|
6868
|
+
* The session store is unreachable; retry with backoff
|
|
6869
|
+
*/
|
|
6870
|
+
500: ErrorResponse;
|
|
6871
|
+
};
|
|
6872
|
+
export type GetSessionError = GetSessionErrors[keyof GetSessionErrors];
|
|
6873
|
+
export type GetSessionResponses = {
|
|
6874
|
+
/**
|
|
6875
|
+
* The live session
|
|
6876
|
+
*/
|
|
6877
|
+
200: WebSessionResponse;
|
|
6878
|
+
};
|
|
6879
|
+
export type GetSessionResponse = GetSessionResponses[keyof GetSessionResponses];
|
|
6880
|
+
export type CreateSessionData = {
|
|
6881
|
+
body?: never;
|
|
6882
|
+
path?: never;
|
|
6883
|
+
query?: never;
|
|
6884
|
+
url: '/api/auth/session';
|
|
6885
|
+
};
|
|
6886
|
+
export type CreateSessionErrors = {
|
|
6887
|
+
/**
|
|
6888
|
+
* Bad request - Invalid or old ID token
|
|
6889
|
+
*/
|
|
6890
|
+
400: ErrorResponse;
|
|
6891
|
+
/**
|
|
6892
|
+
* Unauthorized - Authentication required
|
|
6893
|
+
*/
|
|
6894
|
+
401: ErrorResponse;
|
|
6895
|
+
/**
|
|
6896
|
+
* Too many sessions created for this user in the past hour
|
|
6897
|
+
*/
|
|
6898
|
+
429: ErrorResponse;
|
|
6899
|
+
/**
|
|
6900
|
+
* Internal server error
|
|
6411
6901
|
*/
|
|
6412
6902
|
500: ErrorResponse;
|
|
6413
6903
|
};
|
|
@@ -6419,6 +6909,42 @@ export type CreateSessionResponses = {
|
|
|
6419
6909
|
200: CreateSessionResponse;
|
|
6420
6910
|
};
|
|
6421
6911
|
export type CreateSessionResponse2 = CreateSessionResponses[keyof CreateSessionResponses];
|
|
6912
|
+
export type RevokeAllSessionsData = {
|
|
6913
|
+
body?: never;
|
|
6914
|
+
path?: never;
|
|
6915
|
+
query?: never;
|
|
6916
|
+
url: '/api/auth/sessions/revoke-all';
|
|
6917
|
+
};
|
|
6918
|
+
export type RevokeAllSessionsErrors = {
|
|
6919
|
+
/**
|
|
6920
|
+
* 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`.
|
|
6921
|
+
*/
|
|
6922
|
+
401: ErrorResponse;
|
|
6923
|
+
/**
|
|
6924
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
6925
|
+
*/
|
|
6926
|
+
403: ForbiddenError;
|
|
6927
|
+
/**
|
|
6928
|
+
* Web sessions are not enabled for this user
|
|
6929
|
+
*/
|
|
6930
|
+
404: ErrorResponse;
|
|
6931
|
+
/**
|
|
6932
|
+
* The caller spent its successful calls for this hour (counted per presented web session, or per user without one) or the user spent their 30 failed calls (counted per user); nothing was revoked. `code` is `RATE_LIMITED`.
|
|
6933
|
+
*/
|
|
6934
|
+
429: ErrorResponse;
|
|
6935
|
+
/**
|
|
6936
|
+
* Internal server error
|
|
6937
|
+
*/
|
|
6938
|
+
500: ErrorResponse;
|
|
6939
|
+
};
|
|
6940
|
+
export type RevokeAllSessionsError = RevokeAllSessionsErrors[keyof RevokeAllSessionsErrors];
|
|
6941
|
+
export type RevokeAllSessionsResponses = {
|
|
6942
|
+
/**
|
|
6943
|
+
* Every session ended
|
|
6944
|
+
*/
|
|
6945
|
+
200: RevokeAllSessionsResponse;
|
|
6946
|
+
};
|
|
6947
|
+
export type RevokeAllSessionsResponse2 = RevokeAllSessionsResponses[keyof RevokeAllSessionsResponses];
|
|
6422
6948
|
export type ExchangeTokenData = {
|
|
6423
6949
|
body?: ExchangeTokenRequest;
|
|
6424
6950
|
path?: never;
|
|
@@ -6427,17 +6953,33 @@ export type ExchangeTokenData = {
|
|
|
6427
6953
|
};
|
|
6428
6954
|
export type ExchangeTokenErrors = {
|
|
6429
6955
|
/**
|
|
6430
|
-
*
|
|
6956
|
+
* A session request, or with `web_session_enabled` on any request, whose `X-Comfy-Workspace-ID` or `workspace_id` query value is malformed, or names another workspace than the body (the personal workspace when the body names none). `code` is `workspace_id_invalid`.
|
|
6957
|
+
*/
|
|
6958
|
+
400: ErrorResponse;
|
|
6959
|
+
/**
|
|
6960
|
+
* 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.
|
|
6431
6961
|
*/
|
|
6432
6962
|
401: ErrorResponse;
|
|
6433
6963
|
/**
|
|
6434
|
-
*
|
|
6964
|
+
* A refused web session request. `code` is `origin_not_allowed`, `cross_site_request` or `csrf_invalid` (see the `WebSessionAuth` scheme). While `web_session_enabled` is off for the user, and for a credential this route does not take, the body is instead `{"error": {"message", "type": "auth_type_not_allowed"}, "accepted": [...]}`. An API key whose user is not allowed to use it, whose workspace was deleted, or whose registry account is on the free tier gets `code` `FORBIDDEN`.
|
|
6965
|
+
*/
|
|
6966
|
+
403: ErrorResponse;
|
|
6967
|
+
/**
|
|
6968
|
+
* Workspace not found or user not a member, or an API key's request names another workspace than the key's own.
|
|
6435
6969
|
*/
|
|
6436
6970
|
404: ErrorResponse;
|
|
6971
|
+
/**
|
|
6972
|
+
* The user minted 240 tokens from the session this hour. `code` is `rate_limited`, in lower case like the session codes.
|
|
6973
|
+
*/
|
|
6974
|
+
429: ErrorResponse;
|
|
6437
6975
|
/**
|
|
6438
6976
|
* Internal server error
|
|
6439
6977
|
*/
|
|
6440
6978
|
500: ErrorResponse;
|
|
6979
|
+
/**
|
|
6980
|
+
* The comfy-api registry could not verify an API key. `code` is `SERVICE_UNAVAILABLE`; retry, since the key may be good.
|
|
6981
|
+
*/
|
|
6982
|
+
503: ErrorResponse;
|
|
6441
6983
|
};
|
|
6442
6984
|
export type ExchangeTokenError = ExchangeTokenErrors[keyof ExchangeTokenErrors];
|
|
6443
6985
|
export type ExchangeTokenResponses = {
|
|
@@ -6454,14 +6996,26 @@ export type GetBillingBalanceData = {
|
|
|
6454
6996
|
url: '/api/billing/balance';
|
|
6455
6997
|
};
|
|
6456
6998
|
export type GetBillingBalanceErrors = {
|
|
6999
|
+
/**
|
|
7000
|
+
* `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.
|
|
7001
|
+
*/
|
|
7002
|
+
400: ErrorResponse;
|
|
6457
7003
|
/**
|
|
6458
7004
|
* Unauthorized
|
|
6459
7005
|
*/
|
|
6460
7006
|
401: ErrorResponse;
|
|
7007
|
+
/**
|
|
7008
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7009
|
+
*/
|
|
7010
|
+
403: ForbiddenError;
|
|
6461
7011
|
/**
|
|
6462
7012
|
* Internal server error
|
|
6463
7013
|
*/
|
|
6464
7014
|
500: ErrorResponse;
|
|
7015
|
+
/**
|
|
7016
|
+
* Balance read temporarily unavailable
|
|
7017
|
+
*/
|
|
7018
|
+
503: ErrorResponse;
|
|
6465
7019
|
};
|
|
6466
7020
|
export type GetBillingBalanceError = GetBillingBalanceErrors[keyof GetBillingBalanceErrors];
|
|
6467
7021
|
export type GetBillingBalanceResponses = {
|
|
@@ -6478,6 +7032,10 @@ export type GetBillingCapabilitiesData = {
|
|
|
6478
7032
|
url: '/api/billing/capabilities';
|
|
6479
7033
|
};
|
|
6480
7034
|
export type GetBillingCapabilitiesErrors = {
|
|
7035
|
+
/**
|
|
7036
|
+
* `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.
|
|
7037
|
+
*/
|
|
7038
|
+
400: ErrorResponse;
|
|
6481
7039
|
/**
|
|
6482
7040
|
* Workspace or user context required
|
|
6483
7041
|
*/
|
|
@@ -6510,10 +7068,18 @@ export type GetChurnkeyAuthData = {
|
|
|
6510
7068
|
url: '/api/billing/churnkey/auth';
|
|
6511
7069
|
};
|
|
6512
7070
|
export type GetChurnkeyAuthErrors = {
|
|
7071
|
+
/**
|
|
7072
|
+
* `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.
|
|
7073
|
+
*/
|
|
7074
|
+
400: ErrorResponse;
|
|
6513
7075
|
/**
|
|
6514
7076
|
* Unauthorized
|
|
6515
7077
|
*/
|
|
6516
7078
|
401: ErrorResponse;
|
|
7079
|
+
/**
|
|
7080
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7081
|
+
*/
|
|
7082
|
+
403: ForbiddenError;
|
|
6517
7083
|
/**
|
|
6518
7084
|
* Workspace has no Stripe customer (never subscribed)
|
|
6519
7085
|
*/
|
|
@@ -6542,6 +7108,10 @@ export type GetBillingCompanyDetailsData = {
|
|
|
6542
7108
|
url: '/api/billing/company-details';
|
|
6543
7109
|
};
|
|
6544
7110
|
export type GetBillingCompanyDetailsErrors = {
|
|
7111
|
+
/**
|
|
7112
|
+
* `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.
|
|
7113
|
+
*/
|
|
7114
|
+
400: ErrorResponse;
|
|
6545
7115
|
/**
|
|
6546
7116
|
* Unauthorized
|
|
6547
7117
|
*/
|
|
@@ -6578,6 +7148,10 @@ export type UpdateBillingCompanyDetailsErrors = {
|
|
|
6578
7148
|
* Unauthorized
|
|
6579
7149
|
*/
|
|
6580
7150
|
401: ErrorResponse;
|
|
7151
|
+
/**
|
|
7152
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7153
|
+
*/
|
|
7154
|
+
403: ForbiddenError;
|
|
6581
7155
|
/**
|
|
6582
7156
|
* Internal server error
|
|
6583
7157
|
*/
|
|
@@ -6664,10 +7238,18 @@ export type GetBillingOpStatusData = {
|
|
|
6664
7238
|
url: '/api/billing/ops/{id}';
|
|
6665
7239
|
};
|
|
6666
7240
|
export type GetBillingOpStatusErrors = {
|
|
7241
|
+
/**
|
|
7242
|
+
* `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.
|
|
7243
|
+
*/
|
|
7244
|
+
400: ErrorResponse;
|
|
6667
7245
|
/**
|
|
6668
7246
|
* Unauthorized
|
|
6669
7247
|
*/
|
|
6670
7248
|
401: ErrorResponse;
|
|
7249
|
+
/**
|
|
7250
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7251
|
+
*/
|
|
7252
|
+
403: ForbiddenError;
|
|
6671
7253
|
/**
|
|
6672
7254
|
* Billing operation not found
|
|
6673
7255
|
*/
|
|
@@ -6732,6 +7314,10 @@ export type GetPaymentPortalErrors = {
|
|
|
6732
7314
|
* Unauthorized
|
|
6733
7315
|
*/
|
|
6734
7316
|
401: ErrorResponse;
|
|
7317
|
+
/**
|
|
7318
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7319
|
+
*/
|
|
7320
|
+
403: ForbiddenError;
|
|
6735
7321
|
/**
|
|
6736
7322
|
* Internal server error
|
|
6737
7323
|
*/
|
|
@@ -6752,10 +7338,18 @@ export type GetBillingPlansData = {
|
|
|
6752
7338
|
url: '/api/billing/plans';
|
|
6753
7339
|
};
|
|
6754
7340
|
export type GetBillingPlansErrors = {
|
|
7341
|
+
/**
|
|
7342
|
+
* `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.
|
|
7343
|
+
*/
|
|
7344
|
+
400: ErrorResponse;
|
|
6755
7345
|
/**
|
|
6756
7346
|
* Unauthorized
|
|
6757
7347
|
*/
|
|
6758
7348
|
401: ErrorResponse;
|
|
7349
|
+
/**
|
|
7350
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7351
|
+
*/
|
|
7352
|
+
403: ForbiddenError;
|
|
6759
7353
|
/**
|
|
6760
7354
|
* Internal server error
|
|
6761
7355
|
*/
|
|
@@ -6808,10 +7402,18 @@ export type GetBillingStatusData = {
|
|
|
6808
7402
|
url: '/api/billing/status';
|
|
6809
7403
|
};
|
|
6810
7404
|
export type GetBillingStatusErrors = {
|
|
7405
|
+
/**
|
|
7406
|
+
* `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.
|
|
7407
|
+
*/
|
|
7408
|
+
400: ErrorResponse;
|
|
6811
7409
|
/**
|
|
6812
7410
|
* Unauthorized
|
|
6813
7411
|
*/
|
|
6814
7412
|
401: ErrorResponse;
|
|
7413
|
+
/**
|
|
7414
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7415
|
+
*/
|
|
7416
|
+
403: ForbiddenError;
|
|
6815
7417
|
/**
|
|
6816
7418
|
* Workspace not found
|
|
6817
7419
|
*/
|
|
@@ -6844,6 +7446,10 @@ export type SubscribeErrors = {
|
|
|
6844
7446
|
* Unauthorized
|
|
6845
7447
|
*/
|
|
6846
7448
|
401: ErrorResponse;
|
|
7449
|
+
/**
|
|
7450
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7451
|
+
*/
|
|
7452
|
+
403: ForbiddenError;
|
|
6847
7453
|
/**
|
|
6848
7454
|
* Internal server error
|
|
6849
7455
|
*/
|
|
@@ -6872,6 +7478,10 @@ export type CancelSubscriptionErrors = {
|
|
|
6872
7478
|
* Unauthorized
|
|
6873
7479
|
*/
|
|
6874
7480
|
401: ErrorResponse;
|
|
7481
|
+
/**
|
|
7482
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7483
|
+
*/
|
|
7484
|
+
403: ForbiddenError;
|
|
6875
7485
|
/**
|
|
6876
7486
|
* Internal server error
|
|
6877
7487
|
*/
|
|
@@ -6904,6 +7514,10 @@ export type ResubscribeErrors = {
|
|
|
6904
7514
|
* Unauthorized
|
|
6905
7515
|
*/
|
|
6906
7516
|
401: ErrorResponse;
|
|
7517
|
+
/**
|
|
7518
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7519
|
+
*/
|
|
7520
|
+
403: ForbiddenError;
|
|
6907
7521
|
/**
|
|
6908
7522
|
* Internal server error
|
|
6909
7523
|
*/
|
|
@@ -6932,6 +7546,10 @@ export type CreateTopupErrors = {
|
|
|
6932
7546
|
* Unauthorized
|
|
6933
7547
|
*/
|
|
6934
7548
|
401: ErrorResponse;
|
|
7549
|
+
/**
|
|
7550
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7551
|
+
*/
|
|
7552
|
+
403: ForbiddenError;
|
|
6935
7553
|
/**
|
|
6936
7554
|
* Internal server error
|
|
6937
7555
|
*/
|
|
@@ -6985,6 +7603,42 @@ export type CreateTopupCheckoutResponses = {
|
|
|
6985
7603
|
200: CreateTopupCheckoutResponse;
|
|
6986
7604
|
};
|
|
6987
7605
|
export type CreateTopupCheckoutResponse2 = CreateTopupCheckoutResponses[keyof CreateTopupCheckoutResponses];
|
|
7606
|
+
export type CreateTopupQuoteData = {
|
|
7607
|
+
body: CreateTopupQuoteRequest;
|
|
7608
|
+
path?: never;
|
|
7609
|
+
query?: never;
|
|
7610
|
+
url: '/api/billing/topup/quote';
|
|
7611
|
+
};
|
|
7612
|
+
export type CreateTopupQuoteErrors = {
|
|
7613
|
+
/**
|
|
7614
|
+
* Refused: `INVALID_REQUEST`, `INVALID_AMOUNT`,
|
|
7615
|
+
* `LEGACY_STRIPE_CHECKOUT_REQUIRED` (use Stripe Checkout),
|
|
7616
|
+
* `BILLING_PLAN_ENDED` (sales-managed plan has ended), or
|
|
7617
|
+
* `BILLING_DISABLED`.
|
|
7618
|
+
*
|
|
7619
|
+
*/
|
|
7620
|
+
400: ErrorResponse;
|
|
7621
|
+
/**
|
|
7622
|
+
* Unauthorized
|
|
7623
|
+
*/
|
|
7624
|
+
401: ErrorResponse;
|
|
7625
|
+
/**
|
|
7626
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7627
|
+
*/
|
|
7628
|
+
403: ForbiddenError;
|
|
7629
|
+
/**
|
|
7630
|
+
* Internal server error
|
|
7631
|
+
*/
|
|
7632
|
+
500: ErrorResponse;
|
|
7633
|
+
};
|
|
7634
|
+
export type CreateTopupQuoteError = CreateTopupQuoteErrors[keyof CreateTopupQuoteErrors];
|
|
7635
|
+
export type CreateTopupQuoteResponses = {
|
|
7636
|
+
/**
|
|
7637
|
+
* Top-up quote
|
|
7638
|
+
*/
|
|
7639
|
+
200: TopupQuoteResponse;
|
|
7640
|
+
};
|
|
7641
|
+
export type CreateTopupQuoteResponse = CreateTopupQuoteResponses[keyof CreateTopupQuoteResponses];
|
|
6988
7642
|
export type GetBillingUsageTimeSeriesData = {
|
|
6989
7643
|
body?: never;
|
|
6990
7644
|
path?: never;
|
|
@@ -7006,6 +7660,10 @@ export type GetBillingUsageTimeSeriesErrors = {
|
|
|
7006
7660
|
* Workspace context required
|
|
7007
7661
|
*/
|
|
7008
7662
|
401: ErrorResponse;
|
|
7663
|
+
/**
|
|
7664
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7665
|
+
*/
|
|
7666
|
+
403: ForbiddenError;
|
|
7009
7667
|
/**
|
|
7010
7668
|
* Upstream or internal error
|
|
7011
7669
|
*/
|
|
@@ -7039,6 +7697,14 @@ export type GetModelFoldersData = {
|
|
|
7039
7697
|
url: '/api/experiment/models';
|
|
7040
7698
|
};
|
|
7041
7699
|
export type GetModelFoldersErrors = {
|
|
7700
|
+
/**
|
|
7701
|
+
* `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.
|
|
7702
|
+
*/
|
|
7703
|
+
400: ErrorResponse;
|
|
7704
|
+
/**
|
|
7705
|
+
* `code` is `workspace_access_denied`: the selected workspace is unknown, deleted, or the user is not a member; the three look the same. This route also serves anonymous callers, so the session's other refusals fall back to an anonymous request. See the `WebSessionAuth` scheme.
|
|
7706
|
+
*/
|
|
7707
|
+
403: ErrorResponse;
|
|
7042
7708
|
/**
|
|
7043
7709
|
* Internal server error
|
|
7044
7710
|
*/
|
|
@@ -7064,6 +7730,14 @@ export type GetModelsInFolderData = {
|
|
|
7064
7730
|
url: '/api/experiment/models/{folder}';
|
|
7065
7731
|
};
|
|
7066
7732
|
export type GetModelsInFolderErrors = {
|
|
7733
|
+
/**
|
|
7734
|
+
* `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.
|
|
7735
|
+
*/
|
|
7736
|
+
400: ErrorResponse;
|
|
7737
|
+
/**
|
|
7738
|
+
* `code` is `workspace_access_denied`: the selected workspace is unknown, deleted, or the user is not a member; the three look the same. This route also serves anonymous callers, so the session's other refusals fall back to an anonymous request. See the `WebSessionAuth` scheme.
|
|
7739
|
+
*/
|
|
7740
|
+
403: ErrorResponse;
|
|
7067
7741
|
/**
|
|
7068
7742
|
* Folder not found or no models in folder
|
|
7069
7743
|
*/
|
|
@@ -7112,6 +7786,21 @@ export type GetNodeInfoSchemaData = {
|
|
|
7112
7786
|
query?: never;
|
|
7113
7787
|
url: '/api/experiment/nodes';
|
|
7114
7788
|
};
|
|
7789
|
+
export type GetNodeInfoSchemaErrors = {
|
|
7790
|
+
/**
|
|
7791
|
+
* `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.
|
|
7792
|
+
*/
|
|
7793
|
+
400: ErrorResponse;
|
|
7794
|
+
/**
|
|
7795
|
+
* 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`.
|
|
7796
|
+
*/
|
|
7797
|
+
401: ErrorResponse;
|
|
7798
|
+
/**
|
|
7799
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7800
|
+
*/
|
|
7801
|
+
403: ForbiddenError;
|
|
7802
|
+
};
|
|
7803
|
+
export type GetNodeInfoSchemaError = GetNodeInfoSchemaErrors[keyof GetNodeInfoSchemaErrors];
|
|
7115
7804
|
export type GetNodeInfoSchemaResponses = {
|
|
7116
7805
|
/**
|
|
7117
7806
|
* Full node schema JSON
|
|
@@ -7130,11 +7819,24 @@ export type GetNodeByIdData = {
|
|
|
7130
7819
|
url: '/api/experiment/nodes/{id}';
|
|
7131
7820
|
};
|
|
7132
7821
|
export type GetNodeByIdErrors = {
|
|
7822
|
+
/**
|
|
7823
|
+
* `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.
|
|
7824
|
+
*/
|
|
7825
|
+
400: ErrorResponse;
|
|
7826
|
+
/**
|
|
7827
|
+
* 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`.
|
|
7828
|
+
*/
|
|
7829
|
+
401: ErrorResponse;
|
|
7830
|
+
/**
|
|
7831
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7832
|
+
*/
|
|
7833
|
+
403: ForbiddenError;
|
|
7133
7834
|
/**
|
|
7134
7835
|
* Node not found
|
|
7135
7836
|
*/
|
|
7136
7837
|
404: unknown;
|
|
7137
7838
|
};
|
|
7839
|
+
export type GetNodeByIdError = GetNodeByIdErrors[keyof GetNodeByIdErrors];
|
|
7138
7840
|
export type GetNodeByIdResponses = {
|
|
7139
7841
|
/**
|
|
7140
7842
|
* Node definition JSON
|
|
@@ -7160,11 +7862,26 @@ export type GetFeaturesData = {
|
|
|
7160
7862
|
query?: never;
|
|
7161
7863
|
url: '/api/features';
|
|
7162
7864
|
};
|
|
7865
|
+
export type GetFeaturesErrors = {
|
|
7866
|
+
/**
|
|
7867
|
+
* `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.
|
|
7868
|
+
*/
|
|
7869
|
+
400: ErrorResponse;
|
|
7870
|
+
/**
|
|
7871
|
+
* `code` is `workspace_access_denied`: the selected workspace is unknown, deleted, or the user is not a member; the three look the same. This route also serves anonymous callers, so the session's other refusals fall back to an anonymous request. See the `WebSessionAuth` scheme.
|
|
7872
|
+
*/
|
|
7873
|
+
403: ErrorResponse;
|
|
7874
|
+
};
|
|
7875
|
+
export type GetFeaturesError = GetFeaturesErrors[keyof GetFeaturesErrors];
|
|
7163
7876
|
export type GetFeaturesResponses = {
|
|
7164
7877
|
/**
|
|
7165
7878
|
* Success
|
|
7166
7879
|
*/
|
|
7167
7880
|
200: {
|
|
7881
|
+
/**
|
|
7882
|
+
* Origin of the billing-web deployment paired with this Cloud environment (e.g. https://billing.comfy.org). Absent when BILLING_WEB_URL is not configured on the server, so a client can tell "not configured" from "configured as empty".
|
|
7883
|
+
*/
|
|
7884
|
+
billing_web_url?: string;
|
|
7168
7885
|
/**
|
|
7169
7886
|
* Free-tier job allowance for an authenticated non-paid (FREE-tier) user in the rollout. Absent for paid users and unauthenticated requests. Synthesized from config before a grant row exists so a brand-new user still sees their full allowance.
|
|
7170
7887
|
*/
|
|
@@ -7186,10 +7903,18 @@ export type GetFeaturesResponses = {
|
|
|
7186
7903
|
* Maximum upload size in bytes
|
|
7187
7904
|
*/
|
|
7188
7905
|
max_upload_size?: number;
|
|
7906
|
+
/**
|
|
7907
|
+
* Stripe publishable key (pk_...) for the environment's Stripe account. Public by design (the secret key is never exposed here). Absent when STRIPE_PUBLISHABLE_KEY is not configured on the server, so a client can tell "not configured" from "configured as empty".
|
|
7908
|
+
*/
|
|
7909
|
+
stripe_publishable_key?: string;
|
|
7189
7910
|
/**
|
|
7190
7911
|
* Whether the server supports preview metadata
|
|
7191
7912
|
*/
|
|
7192
7913
|
supports_preview_metadata?: boolean;
|
|
7914
|
+
/**
|
|
7915
|
+
* Global switch, the same for every caller and readable without credentials. When true, first-party sites send the credentialed /api/features read and take behaviour from its per-user unified_web_session. It grants nothing itself. Defaults to false.
|
|
7916
|
+
*/
|
|
7917
|
+
web_session_probe?: boolean;
|
|
7193
7918
|
[key: string]: unknown;
|
|
7194
7919
|
};
|
|
7195
7920
|
};
|
|
@@ -7209,6 +7934,10 @@ export type SubmitFeedbackErrors = {
|
|
|
7209
7934
|
* Unauthorized
|
|
7210
7935
|
*/
|
|
7211
7936
|
401: ErrorResponse;
|
|
7937
|
+
/**
|
|
7938
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7939
|
+
*/
|
|
7940
|
+
403: ForbiddenError;
|
|
7212
7941
|
/**
|
|
7213
7942
|
* Internal server error
|
|
7214
7943
|
*/
|
|
@@ -7234,6 +7963,18 @@ export type GetMaskLayersData = {
|
|
|
7234
7963
|
url: '/api/files/mask-layers';
|
|
7235
7964
|
};
|
|
7236
7965
|
export type GetMaskLayersErrors = {
|
|
7966
|
+
/**
|
|
7967
|
+
* `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.
|
|
7968
|
+
*/
|
|
7969
|
+
400: ErrorResponse;
|
|
7970
|
+
/**
|
|
7971
|
+
* 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`.
|
|
7972
|
+
*/
|
|
7973
|
+
401: ErrorResponse;
|
|
7974
|
+
/**
|
|
7975
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
7976
|
+
*/
|
|
7977
|
+
403: ForbiddenError;
|
|
7237
7978
|
/**
|
|
7238
7979
|
* File not found or not a mask file
|
|
7239
7980
|
*/
|
|
@@ -7489,6 +8230,10 @@ export type ManageHistoryErrors = {
|
|
|
7489
8230
|
* Unauthorized - Authentication required
|
|
7490
8231
|
*/
|
|
7491
8232
|
401: ErrorResponse;
|
|
8233
|
+
/**
|
|
8234
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8235
|
+
*/
|
|
8236
|
+
403: ForbiddenError;
|
|
7492
8237
|
/**
|
|
7493
8238
|
* Internal server error
|
|
7494
8239
|
*/
|
|
@@ -7531,10 +8276,18 @@ export type GetHistoryData = {
|
|
|
7531
8276
|
url: '/api/history_v2';
|
|
7532
8277
|
};
|
|
7533
8278
|
export type GetHistoryErrors = {
|
|
8279
|
+
/**
|
|
8280
|
+
* `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.
|
|
8281
|
+
*/
|
|
8282
|
+
400: ErrorResponse;
|
|
7534
8283
|
/**
|
|
7535
8284
|
* Unauthorized - Authentication required
|
|
7536
8285
|
*/
|
|
7537
8286
|
401: ErrorResponse;
|
|
8287
|
+
/**
|
|
8288
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8289
|
+
*/
|
|
8290
|
+
403: ForbiddenError;
|
|
7538
8291
|
/**
|
|
7539
8292
|
* Internal server error
|
|
7540
8293
|
*/
|
|
@@ -7560,10 +8313,18 @@ export type GetHistoryForPromptData = {
|
|
|
7560
8313
|
url: '/api/history_v2/{prompt_id}';
|
|
7561
8314
|
};
|
|
7562
8315
|
export type GetHistoryForPromptErrors = {
|
|
8316
|
+
/**
|
|
8317
|
+
* `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.
|
|
8318
|
+
*/
|
|
8319
|
+
400: ErrorResponse;
|
|
7563
8320
|
/**
|
|
7564
8321
|
* Unauthorized - Authentication required
|
|
7565
8322
|
*/
|
|
7566
8323
|
401: ErrorResponse;
|
|
8324
|
+
/**
|
|
8325
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8326
|
+
*/
|
|
8327
|
+
403: ForbiddenError;
|
|
7567
8328
|
/**
|
|
7568
8329
|
* Prompt not found
|
|
7569
8330
|
*/
|
|
@@ -7596,6 +8357,10 @@ export type CreateHubAssetUploadUrlErrors = {
|
|
|
7596
8357
|
* Unauthorized
|
|
7597
8358
|
*/
|
|
7598
8359
|
401: ErrorResponse;
|
|
8360
|
+
/**
|
|
8361
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8362
|
+
*/
|
|
8363
|
+
403: ForbiddenError;
|
|
7599
8364
|
/**
|
|
7600
8365
|
* Not found
|
|
7601
8366
|
*/
|
|
@@ -7629,6 +8394,14 @@ export type ListHubLabelsErrors = {
|
|
|
7629
8394
|
* Bad request (e.g. invalid type parameter)
|
|
7630
8395
|
*/
|
|
7631
8396
|
400: ErrorResponse;
|
|
8397
|
+
/**
|
|
8398
|
+
* 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`.
|
|
8399
|
+
*/
|
|
8400
|
+
401: ErrorResponse;
|
|
8401
|
+
/**
|
|
8402
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8403
|
+
*/
|
|
8404
|
+
403: ForbiddenError;
|
|
7632
8405
|
/**
|
|
7633
8406
|
* Internal server error
|
|
7634
8407
|
*/
|
|
@@ -7657,6 +8430,10 @@ export type CreateHubProfileErrors = {
|
|
|
7657
8430
|
* Unauthorized
|
|
7658
8431
|
*/
|
|
7659
8432
|
401: ErrorResponse;
|
|
8433
|
+
/**
|
|
8434
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8435
|
+
*/
|
|
8436
|
+
403: ForbiddenError;
|
|
7660
8437
|
/**
|
|
7661
8438
|
* Not found
|
|
7662
8439
|
*/
|
|
@@ -7727,6 +8504,10 @@ export type UpdateHubProfileErrors = {
|
|
|
7727
8504
|
* Unauthorized
|
|
7728
8505
|
*/
|
|
7729
8506
|
401: ErrorResponse;
|
|
8507
|
+
/**
|
|
8508
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8509
|
+
*/
|
|
8510
|
+
403: ForbiddenError;
|
|
7730
8511
|
/**
|
|
7731
8512
|
* No hub profile exists with this username
|
|
7732
8513
|
*/
|
|
@@ -7753,10 +8534,18 @@ export type CheckHubUsernameData = {
|
|
|
7753
8534
|
url: '/api/hub/profiles/check';
|
|
7754
8535
|
};
|
|
7755
8536
|
export type CheckHubUsernameErrors = {
|
|
8537
|
+
/**
|
|
8538
|
+
* `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.
|
|
8539
|
+
*/
|
|
8540
|
+
400: ErrorResponse;
|
|
7756
8541
|
/**
|
|
7757
8542
|
* Unauthorized
|
|
7758
8543
|
*/
|
|
7759
8544
|
401: ErrorResponse;
|
|
8545
|
+
/**
|
|
8546
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8547
|
+
*/
|
|
8548
|
+
403: ForbiddenError;
|
|
7760
8549
|
/**
|
|
7761
8550
|
* Not found
|
|
7762
8551
|
*/
|
|
@@ -7781,10 +8570,18 @@ export type GetMyHubProfileData = {
|
|
|
7781
8570
|
url: '/api/hub/profiles/me';
|
|
7782
8571
|
};
|
|
7783
8572
|
export type GetMyHubProfileErrors = {
|
|
8573
|
+
/**
|
|
8574
|
+
* `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.
|
|
8575
|
+
*/
|
|
8576
|
+
400: ErrorResponse;
|
|
7784
8577
|
/**
|
|
7785
8578
|
* Unauthorized
|
|
7786
8579
|
*/
|
|
7787
8580
|
401: ErrorResponse;
|
|
8581
|
+
/**
|
|
8582
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8583
|
+
*/
|
|
8584
|
+
403: ForbiddenError;
|
|
7788
8585
|
/**
|
|
7789
8586
|
* No hub profile exists
|
|
7790
8587
|
*/
|
|
@@ -7836,6 +8633,10 @@ export type ListHubWorkflowsErrors = {
|
|
|
7836
8633
|
* Bad request (e.g. malformed pagination cursor)
|
|
7837
8634
|
*/
|
|
7838
8635
|
400: ErrorResponse;
|
|
8636
|
+
/**
|
|
8637
|
+
* `code` is `workspace_access_denied`: the selected workspace is unknown, deleted, or the user is not a member; the three look the same. This route also serves anonymous callers, so the session's other refusals fall back to an anonymous request. See the `WebSessionAuth` scheme.
|
|
8638
|
+
*/
|
|
8639
|
+
403: ErrorResponse;
|
|
7839
8640
|
/**
|
|
7840
8641
|
* Profile not found (when filtering by username)
|
|
7841
8642
|
*/
|
|
@@ -7868,6 +8669,10 @@ export type PublishHubWorkflowErrors = {
|
|
|
7868
8669
|
* Unauthorized
|
|
7869
8670
|
*/
|
|
7870
8671
|
401: ErrorResponse;
|
|
8672
|
+
/**
|
|
8673
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8674
|
+
*/
|
|
8675
|
+
403: ForbiddenError;
|
|
7871
8676
|
/**
|
|
7872
8677
|
* Workflow or profile not found
|
|
7873
8678
|
*/
|
|
@@ -7897,10 +8702,18 @@ export type DeleteHubWorkflowData = {
|
|
|
7897
8702
|
url: '/api/hub/workflows/{share_id}';
|
|
7898
8703
|
};
|
|
7899
8704
|
export type DeleteHubWorkflowErrors = {
|
|
8705
|
+
/**
|
|
8706
|
+
* `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.
|
|
8707
|
+
*/
|
|
8708
|
+
400: ErrorResponse;
|
|
7900
8709
|
/**
|
|
7901
8710
|
* Unauthorized
|
|
7902
8711
|
*/
|
|
7903
8712
|
401: ErrorResponse;
|
|
8713
|
+
/**
|
|
8714
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8715
|
+
*/
|
|
8716
|
+
403: ForbiddenError;
|
|
7904
8717
|
/**
|
|
7905
8718
|
* Workflow not found
|
|
7906
8719
|
*/
|
|
@@ -7930,6 +8743,14 @@ export type GetHubWorkflowData = {
|
|
|
7930
8743
|
url: '/api/hub/workflows/{share_id}';
|
|
7931
8744
|
};
|
|
7932
8745
|
export type GetHubWorkflowErrors = {
|
|
8746
|
+
/**
|
|
8747
|
+
* `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.
|
|
8748
|
+
*/
|
|
8749
|
+
400: ErrorResponse;
|
|
8750
|
+
/**
|
|
8751
|
+
* `code` is `workspace_access_denied`: the selected workspace is unknown, deleted, or the user is not a member; the three look the same. This route also serves anonymous callers, so the session's other refusals fall back to an anonymous request. See the `WebSessionAuth` scheme.
|
|
8752
|
+
*/
|
|
8753
|
+
403: ErrorResponse;
|
|
7933
8754
|
/**
|
|
7934
8755
|
* Workflow not found
|
|
7935
8756
|
*/
|
|
@@ -7963,6 +8784,14 @@ export type ListHubWorkflowIndexData = {
|
|
|
7963
8784
|
url: '/api/hub/workflows/index';
|
|
7964
8785
|
};
|
|
7965
8786
|
export type ListHubWorkflowIndexErrors = {
|
|
8787
|
+
/**
|
|
8788
|
+
* `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.
|
|
8789
|
+
*/
|
|
8790
|
+
400: ErrorResponse;
|
|
8791
|
+
/**
|
|
8792
|
+
* `code` is `workspace_access_denied`: the selected workspace is unknown, deleted, or the user is not a member; the three look the same. This route also serves anonymous callers, so the session's other refusals fall back to an anonymous request. See the `WebSessionAuth` scheme.
|
|
8793
|
+
*/
|
|
8794
|
+
403: ErrorResponse;
|
|
7966
8795
|
/**
|
|
7967
8796
|
* Internal server error
|
|
7968
8797
|
*/
|
|
@@ -7998,10 +8827,18 @@ export type CreateInputUploadUrlData = {
|
|
|
7998
8827
|
url: '/api/inputs/upload-url';
|
|
7999
8828
|
};
|
|
8000
8829
|
export type CreateInputUploadUrlErrors = {
|
|
8830
|
+
/**
|
|
8831
|
+
* `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.
|
|
8832
|
+
*/
|
|
8833
|
+
400: ErrorResponse;
|
|
8001
8834
|
/**
|
|
8002
8835
|
* Unauthorized
|
|
8003
8836
|
*/
|
|
8004
8837
|
401: ErrorResponse;
|
|
8838
|
+
/**
|
|
8839
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8840
|
+
*/
|
|
8841
|
+
403: ForbiddenError;
|
|
8005
8842
|
/**
|
|
8006
8843
|
* Validation error (e.g. unsupported content type)
|
|
8007
8844
|
*/
|
|
@@ -8030,10 +8867,18 @@ export type InterruptJobData = {
|
|
|
8030
8867
|
url: '/api/interrupt';
|
|
8031
8868
|
};
|
|
8032
8869
|
export type InterruptJobErrors = {
|
|
8870
|
+
/**
|
|
8871
|
+
* `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.
|
|
8872
|
+
*/
|
|
8873
|
+
400: ErrorResponse;
|
|
8033
8874
|
/**
|
|
8034
8875
|
* Unauthorized - Authentication required
|
|
8035
8876
|
*/
|
|
8036
8877
|
401: ErrorResponse;
|
|
8878
|
+
/**
|
|
8879
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
8880
|
+
*/
|
|
8881
|
+
403: ForbiddenError;
|
|
8037
8882
|
/**
|
|
8038
8883
|
* Internal server error
|
|
8039
8884
|
*/
|
|
@@ -8127,6 +8972,10 @@ export type GetJobStatusData = {
|
|
|
8127
8972
|
url: '/api/job/{job_id}/status';
|
|
8128
8973
|
};
|
|
8129
8974
|
export type GetJobStatusErrors = {
|
|
8975
|
+
/**
|
|
8976
|
+
* `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.
|
|
8977
|
+
*/
|
|
8978
|
+
400: ErrorResponse;
|
|
8130
8979
|
/**
|
|
8131
8980
|
* Unauthorized
|
|
8132
8981
|
*/
|
|
@@ -8209,6 +9058,10 @@ export type ListJobsErrors = {
|
|
|
8209
9058
|
* Unauthorized - Authentication required
|
|
8210
9059
|
*/
|
|
8211
9060
|
401: ErrorResponse;
|
|
9061
|
+
/**
|
|
9062
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9063
|
+
*/
|
|
9064
|
+
403: ForbiddenError;
|
|
8212
9065
|
/**
|
|
8213
9066
|
* Internal server error
|
|
8214
9067
|
*/
|
|
@@ -8240,6 +9093,10 @@ export type GetJobDetailData = {
|
|
|
8240
9093
|
url: '/api/jobs/{job_id}';
|
|
8241
9094
|
};
|
|
8242
9095
|
export type GetJobDetailErrors = {
|
|
9096
|
+
/**
|
|
9097
|
+
* `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.
|
|
9098
|
+
*/
|
|
9099
|
+
400: ErrorResponse;
|
|
8243
9100
|
/**
|
|
8244
9101
|
* Unauthorized - Authentication required
|
|
8245
9102
|
*/
|
|
@@ -8294,6 +9151,10 @@ export type GetJobAssetsErrors = {
|
|
|
8294
9151
|
* Unauthorized - Authentication required
|
|
8295
9152
|
*/
|
|
8296
9153
|
401: ErrorResponse;
|
|
9154
|
+
/**
|
|
9155
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9156
|
+
*/
|
|
9157
|
+
403: ForbiddenError;
|
|
8297
9158
|
/**
|
|
8298
9159
|
* Job not found or does not belong to the user
|
|
8299
9160
|
*/
|
|
@@ -8331,6 +9192,10 @@ export type CancelJobErrors = {
|
|
|
8331
9192
|
* Unauthorized - Authentication required
|
|
8332
9193
|
*/
|
|
8333
9194
|
401: ErrorResponse;
|
|
9195
|
+
/**
|
|
9196
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9197
|
+
*/
|
|
9198
|
+
403: ForbiddenError;
|
|
8334
9199
|
/**
|
|
8335
9200
|
* Job not found for this user
|
|
8336
9201
|
*/
|
|
@@ -8363,6 +9228,10 @@ export type CancelJobsErrors = {
|
|
|
8363
9228
|
* Unauthorized - Authentication required
|
|
8364
9229
|
*/
|
|
8365
9230
|
401: ErrorResponse;
|
|
9231
|
+
/**
|
|
9232
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9233
|
+
*/
|
|
9234
|
+
403: ForbiddenError;
|
|
8366
9235
|
/**
|
|
8367
9236
|
* One or more job IDs not found for this user (no jobs cancelled)
|
|
8368
9237
|
*/
|
|
@@ -8434,6 +9303,21 @@ export type GetNodeInfoData = {
|
|
|
8434
9303
|
query?: never;
|
|
8435
9304
|
url: '/api/object_info';
|
|
8436
9305
|
};
|
|
9306
|
+
export type GetNodeInfoErrors = {
|
|
9307
|
+
/**
|
|
9308
|
+
* `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.
|
|
9309
|
+
*/
|
|
9310
|
+
400: ErrorResponse;
|
|
9311
|
+
/**
|
|
9312
|
+
* 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`.
|
|
9313
|
+
*/
|
|
9314
|
+
401: ErrorResponse;
|
|
9315
|
+
/**
|
|
9316
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9317
|
+
*/
|
|
9318
|
+
403: ForbiddenError;
|
|
9319
|
+
};
|
|
9320
|
+
export type GetNodeInfoError = GetNodeInfoErrors[keyof GetNodeInfoErrors];
|
|
8437
9321
|
export type GetNodeInfoResponses = {
|
|
8438
9322
|
/**
|
|
8439
9323
|
* Success
|
|
@@ -8464,10 +9348,18 @@ export type GetPromptInfoData = {
|
|
|
8464
9348
|
url: '/api/prompt';
|
|
8465
9349
|
};
|
|
8466
9350
|
export type GetPromptInfoErrors = {
|
|
9351
|
+
/**
|
|
9352
|
+
* `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.
|
|
9353
|
+
*/
|
|
9354
|
+
400: ErrorResponse;
|
|
8467
9355
|
/**
|
|
8468
9356
|
* Unauthorized
|
|
8469
9357
|
*/
|
|
8470
9358
|
401: ErrorResponse;
|
|
9359
|
+
/**
|
|
9360
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9361
|
+
*/
|
|
9362
|
+
403: ForbiddenError;
|
|
8471
9363
|
/**
|
|
8472
9364
|
* Internal server error
|
|
8473
9365
|
*/
|
|
@@ -8489,15 +9381,19 @@ export type ExecutePromptData = {
|
|
|
8489
9381
|
};
|
|
8490
9382
|
export type ExecutePromptErrors = {
|
|
8491
9383
|
/**
|
|
8492
|
-
* Invalid prompt
|
|
9384
|
+
* Invalid prompt, or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
8493
9385
|
*/
|
|
8494
9386
|
400: PromptErrorResponse;
|
|
9387
|
+
/**
|
|
9388
|
+
* 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`.
|
|
9389
|
+
*/
|
|
9390
|
+
401: ErrorResponse;
|
|
8495
9391
|
/**
|
|
8496
9392
|
* Payment required - Insufficient credits
|
|
8497
9393
|
*/
|
|
8498
9394
|
402: PromptErrorResponse;
|
|
8499
9395
|
/**
|
|
8500
|
-
* 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)
|
|
9396
|
+
* 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).
|
|
8501
9397
|
*/
|
|
8502
9398
|
403: PromptErrorResponse;
|
|
8503
9399
|
/**
|
|
@@ -8546,6 +9442,10 @@ export type GetProvidersData = {
|
|
|
8546
9442
|
url: '/api/providers';
|
|
8547
9443
|
};
|
|
8548
9444
|
export type GetProvidersErrors = {
|
|
9445
|
+
/**
|
|
9446
|
+
* `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.
|
|
9447
|
+
*/
|
|
9448
|
+
400: ErrorResponse;
|
|
8549
9449
|
/**
|
|
8550
9450
|
* Unauthorized
|
|
8551
9451
|
*/
|
|
@@ -8582,6 +9482,10 @@ export type GetQueueInfoErrors = {
|
|
|
8582
9482
|
* Unauthorized - Authentication required
|
|
8583
9483
|
*/
|
|
8584
9484
|
401: ErrorResponse;
|
|
9485
|
+
/**
|
|
9486
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9487
|
+
*/
|
|
9488
|
+
403: ForbiddenError;
|
|
8585
9489
|
/**
|
|
8586
9490
|
* Invalid request parameters
|
|
8587
9491
|
*/
|
|
@@ -8610,6 +9514,10 @@ export type ManageQueueErrors = {
|
|
|
8610
9514
|
* Unauthorized
|
|
8611
9515
|
*/
|
|
8612
9516
|
401: ErrorResponse;
|
|
9517
|
+
/**
|
|
9518
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9519
|
+
*/
|
|
9520
|
+
403: ForbiddenError;
|
|
8613
9521
|
/**
|
|
8614
9522
|
* Internal server error
|
|
8615
9523
|
*/
|
|
@@ -8630,10 +9538,18 @@ export type ListSecretsData = {
|
|
|
8630
9538
|
url: '/api/secrets';
|
|
8631
9539
|
};
|
|
8632
9540
|
export type ListSecretsErrors = {
|
|
9541
|
+
/**
|
|
9542
|
+
* `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.
|
|
9543
|
+
*/
|
|
9544
|
+
400: ErrorResponse;
|
|
8633
9545
|
/**
|
|
8634
9546
|
* Unauthorized
|
|
8635
9547
|
*/
|
|
8636
9548
|
401: ErrorResponse;
|
|
9549
|
+
/**
|
|
9550
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9551
|
+
*/
|
|
9552
|
+
403: ForbiddenError;
|
|
8637
9553
|
/**
|
|
8638
9554
|
* Internal server error
|
|
8639
9555
|
*/
|
|
@@ -8707,6 +9623,10 @@ export type DeleteSecretData = {
|
|
|
8707
9623
|
url: '/api/secrets/{id}';
|
|
8708
9624
|
};
|
|
8709
9625
|
export type DeleteSecretErrors = {
|
|
9626
|
+
/**
|
|
9627
|
+
* `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.
|
|
9628
|
+
*/
|
|
9629
|
+
400: ErrorResponse;
|
|
8710
9630
|
/**
|
|
8711
9631
|
* Unauthorized
|
|
8712
9632
|
*/
|
|
@@ -8748,6 +9668,10 @@ export type GetSecretData = {
|
|
|
8748
9668
|
url: '/api/secrets/{id}';
|
|
8749
9669
|
};
|
|
8750
9670
|
export type GetSecretErrors = {
|
|
9671
|
+
/**
|
|
9672
|
+
* `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.
|
|
9673
|
+
*/
|
|
9674
|
+
400: ErrorResponse;
|
|
8751
9675
|
/**
|
|
8752
9676
|
* Unauthorized
|
|
8753
9677
|
*/
|
|
@@ -8837,10 +9761,18 @@ export type ListSecretProvidersData = {
|
|
|
8837
9761
|
url: '/api/secrets/providers';
|
|
8838
9762
|
};
|
|
8839
9763
|
export type ListSecretProvidersErrors = {
|
|
9764
|
+
/**
|
|
9765
|
+
* `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.
|
|
9766
|
+
*/
|
|
9767
|
+
400: ErrorResponse;
|
|
8840
9768
|
/**
|
|
8841
9769
|
* Unauthorized
|
|
8842
9770
|
*/
|
|
8843
9771
|
401: ErrorResponse;
|
|
9772
|
+
/**
|
|
9773
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9774
|
+
*/
|
|
9775
|
+
403: ForbiddenError;
|
|
8844
9776
|
/**
|
|
8845
9777
|
* Service unavailable - secrets feature disabled
|
|
8846
9778
|
*/
|
|
@@ -8861,10 +9793,18 @@ export type GetAllSettingsData = {
|
|
|
8861
9793
|
url: '/api/settings';
|
|
8862
9794
|
};
|
|
8863
9795
|
export type GetAllSettingsErrors = {
|
|
9796
|
+
/**
|
|
9797
|
+
* `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.
|
|
9798
|
+
*/
|
|
9799
|
+
400: ErrorResponse;
|
|
8864
9800
|
/**
|
|
8865
9801
|
* Unauthorized
|
|
8866
9802
|
*/
|
|
8867
9803
|
401: ErrorResponse;
|
|
9804
|
+
/**
|
|
9805
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9806
|
+
*/
|
|
9807
|
+
403: ForbiddenError;
|
|
8868
9808
|
};
|
|
8869
9809
|
export type GetAllSettingsError = GetAllSettingsErrors[keyof GetAllSettingsErrors];
|
|
8870
9810
|
export type GetAllSettingsResponses = {
|
|
@@ -8896,6 +9836,10 @@ export type UpdateMultipleSettingsErrors = {
|
|
|
8896
9836
|
* Unauthorized
|
|
8897
9837
|
*/
|
|
8898
9838
|
401: ErrorResponse;
|
|
9839
|
+
/**
|
|
9840
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9841
|
+
*/
|
|
9842
|
+
403: ForbiddenError;
|
|
8899
9843
|
};
|
|
8900
9844
|
export type UpdateMultipleSettingsError = UpdateMultipleSettingsErrors[keyof UpdateMultipleSettingsErrors];
|
|
8901
9845
|
export type UpdateMultipleSettingsResponses = {
|
|
@@ -8919,10 +9863,18 @@ export type GetSettingByIdData = {
|
|
|
8919
9863
|
url: '/api/settings/{id}';
|
|
8920
9864
|
};
|
|
8921
9865
|
export type GetSettingByIdErrors = {
|
|
9866
|
+
/**
|
|
9867
|
+
* `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.
|
|
9868
|
+
*/
|
|
9869
|
+
400: ErrorResponse;
|
|
8922
9870
|
/**
|
|
8923
9871
|
* Unauthorized
|
|
8924
9872
|
*/
|
|
8925
9873
|
401: ErrorResponse;
|
|
9874
|
+
/**
|
|
9875
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9876
|
+
*/
|
|
9877
|
+
403: ForbiddenError;
|
|
8926
9878
|
/**
|
|
8927
9879
|
* Setting not found
|
|
8928
9880
|
*/
|
|
@@ -8964,6 +9916,10 @@ export type UpdateSettingByIdErrors = {
|
|
|
8964
9916
|
* Unauthorized
|
|
8965
9917
|
*/
|
|
8966
9918
|
401: ErrorResponse;
|
|
9919
|
+
/**
|
|
9920
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9921
|
+
*/
|
|
9922
|
+
403: ForbiddenError;
|
|
8967
9923
|
};
|
|
8968
9924
|
export type UpdateSettingByIdError = UpdateSettingByIdErrors[keyof UpdateSettingByIdErrors];
|
|
8969
9925
|
export type UpdateSettingByIdResponses = {
|
|
@@ -9038,6 +9994,10 @@ export type ListTagsErrors = {
|
|
|
9038
9994
|
* Unauthorized
|
|
9039
9995
|
*/
|
|
9040
9996
|
401: ErrorResponse;
|
|
9997
|
+
/**
|
|
9998
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9999
|
+
*/
|
|
10000
|
+
403: ForbiddenError;
|
|
9041
10001
|
/**
|
|
9042
10002
|
* Internal server error
|
|
9043
10003
|
*/
|
|
@@ -9091,10 +10051,18 @@ export type ListTasksData = {
|
|
|
9091
10051
|
url: '/api/tasks';
|
|
9092
10052
|
};
|
|
9093
10053
|
export type ListTasksErrors = {
|
|
10054
|
+
/**
|
|
10055
|
+
* `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.
|
|
10056
|
+
*/
|
|
10057
|
+
400: ErrorResponse;
|
|
9094
10058
|
/**
|
|
9095
10059
|
* Unauthorized - Authentication required
|
|
9096
10060
|
*/
|
|
9097
10061
|
401: ErrorResponse;
|
|
10062
|
+
/**
|
|
10063
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10064
|
+
*/
|
|
10065
|
+
403: ForbiddenError;
|
|
9098
10066
|
/**
|
|
9099
10067
|
* Validation error - Invalid filter values
|
|
9100
10068
|
*/
|
|
@@ -9124,10 +10092,18 @@ export type GetTaskData = {
|
|
|
9124
10092
|
url: '/api/tasks/{task_id}';
|
|
9125
10093
|
};
|
|
9126
10094
|
export type GetTaskErrors = {
|
|
10095
|
+
/**
|
|
10096
|
+
* `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.
|
|
10097
|
+
*/
|
|
10098
|
+
400: ErrorResponse;
|
|
9127
10099
|
/**
|
|
9128
10100
|
* Unauthorized - Authentication required
|
|
9129
10101
|
*/
|
|
9130
10102
|
401: ErrorResponse;
|
|
10103
|
+
/**
|
|
10104
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10105
|
+
*/
|
|
10106
|
+
403: ForbiddenError;
|
|
9131
10107
|
/**
|
|
9132
10108
|
* Task not found (also returned for ownership failures to avoid leaking task existence)
|
|
9133
10109
|
*/
|
|
@@ -9177,6 +10153,10 @@ export type UploadImageErrors = {
|
|
|
9177
10153
|
* Unauthorized
|
|
9178
10154
|
*/
|
|
9179
10155
|
401: ErrorResponse;
|
|
10156
|
+
/**
|
|
10157
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10158
|
+
*/
|
|
10159
|
+
403: ForbiddenError;
|
|
9180
10160
|
/**
|
|
9181
10161
|
* Internal server error
|
|
9182
10162
|
*/
|
|
@@ -9227,6 +10207,10 @@ export type UploadMaskErrors = {
|
|
|
9227
10207
|
* Unauthorized
|
|
9228
10208
|
*/
|
|
9229
10209
|
401: ErrorResponse;
|
|
10210
|
+
/**
|
|
10211
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10212
|
+
*/
|
|
10213
|
+
403: ForbiddenError;
|
|
9230
10214
|
/**
|
|
9231
10215
|
* Internal server error
|
|
9232
10216
|
*/
|
|
@@ -9305,10 +10289,18 @@ export type GetUserData = {
|
|
|
9305
10289
|
url: '/api/user';
|
|
9306
10290
|
};
|
|
9307
10291
|
export type GetUserErrors = {
|
|
10292
|
+
/**
|
|
10293
|
+
* `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.
|
|
10294
|
+
*/
|
|
10295
|
+
400: ErrorResponse;
|
|
9308
10296
|
/**
|
|
9309
10297
|
* Unauthorized
|
|
9310
10298
|
*/
|
|
9311
10299
|
401: ErrorResponse;
|
|
10300
|
+
/**
|
|
10301
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10302
|
+
*/
|
|
10303
|
+
403: ForbiddenError;
|
|
9312
10304
|
};
|
|
9313
10305
|
export type GetUserError = GetUserErrors[keyof GetUserErrors];
|
|
9314
10306
|
export type GetUserResponses = {
|
|
@@ -9345,11 +10337,15 @@ export type GetUserdataErrors = {
|
|
|
9345
10337
|
/**
|
|
9346
10338
|
* Bad request (e.g., invalid filename).
|
|
9347
10339
|
*/
|
|
9348
|
-
400:
|
|
10340
|
+
400: ErrorResponse;
|
|
9349
10341
|
/**
|
|
9350
10342
|
* Unauthorized.
|
|
9351
10343
|
*/
|
|
9352
|
-
401:
|
|
10344
|
+
401: ErrorResponse;
|
|
10345
|
+
/**
|
|
10346
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10347
|
+
*/
|
|
10348
|
+
403: ForbiddenError;
|
|
9353
10349
|
/**
|
|
9354
10350
|
* File not found or invalid path.
|
|
9355
10351
|
*/
|
|
@@ -9379,10 +10375,18 @@ export type DeleteUserdataFileData = {
|
|
|
9379
10375
|
url: '/api/userdata/{file}';
|
|
9380
10376
|
};
|
|
9381
10377
|
export type DeleteUserdataFileErrors = {
|
|
10378
|
+
/**
|
|
10379
|
+
* `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.
|
|
10380
|
+
*/
|
|
10381
|
+
400: ErrorResponse;
|
|
9382
10382
|
/**
|
|
9383
10383
|
* Unauthorized.
|
|
9384
10384
|
*/
|
|
9385
|
-
401:
|
|
10385
|
+
401: ErrorResponse;
|
|
10386
|
+
/**
|
|
10387
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10388
|
+
*/
|
|
10389
|
+
403: ForbiddenError;
|
|
9386
10390
|
/**
|
|
9387
10391
|
* File not found.
|
|
9388
10392
|
*/
|
|
@@ -9415,11 +10419,15 @@ export type GetUserdataFileErrors = {
|
|
|
9415
10419
|
/**
|
|
9416
10420
|
* Bad request (e.g., invalid filename).
|
|
9417
10421
|
*/
|
|
9418
|
-
400:
|
|
10422
|
+
400: ErrorResponse;
|
|
9419
10423
|
/**
|
|
9420
10424
|
* Unauthorized.
|
|
9421
10425
|
*/
|
|
9422
|
-
401:
|
|
10426
|
+
401: ErrorResponse;
|
|
10427
|
+
/**
|
|
10428
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10429
|
+
*/
|
|
10430
|
+
403: ForbiddenError;
|
|
9423
10431
|
/**
|
|
9424
10432
|
* File not found or invalid path.
|
|
9425
10433
|
*/
|
|
@@ -9461,15 +10469,15 @@ export type PostUserdataFileErrors = {
|
|
|
9461
10469
|
/**
|
|
9462
10470
|
* Missing or invalid 'file' parameter.
|
|
9463
10471
|
*/
|
|
9464
|
-
400:
|
|
10472
|
+
400: ErrorResponse;
|
|
9465
10473
|
/**
|
|
9466
10474
|
* Unauthorized.
|
|
9467
10475
|
*/
|
|
9468
|
-
401:
|
|
10476
|
+
401: ErrorResponse;
|
|
9469
10477
|
/**
|
|
9470
10478
|
* The requested path is not allowed.
|
|
9471
10479
|
*/
|
|
9472
|
-
403:
|
|
10480
|
+
403: ErrorResponse;
|
|
9473
10481
|
/**
|
|
9474
10482
|
* File already exists and overwrite is set to false.
|
|
9475
10483
|
*/
|
|
@@ -9511,11 +10519,15 @@ export type MoveUserdataFileErrors = {
|
|
|
9511
10519
|
/**
|
|
9512
10520
|
* Missing or invalid parameters.
|
|
9513
10521
|
*/
|
|
9514
|
-
400:
|
|
10522
|
+
400: ErrorResponse;
|
|
10523
|
+
/**
|
|
10524
|
+
* Unauthorized.
|
|
10525
|
+
*/
|
|
10526
|
+
401: ErrorResponse;
|
|
9515
10527
|
/**
|
|
9516
|
-
*
|
|
10528
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
9517
10529
|
*/
|
|
9518
|
-
|
|
10530
|
+
403: ForbiddenError;
|
|
9519
10531
|
/**
|
|
9520
10532
|
* Source file not found.
|
|
9521
10533
|
*/
|
|
@@ -9549,10 +10561,18 @@ export type GetUserdataFilePublishData = {
|
|
|
9549
10561
|
url: '/api/userdata/{file}/publish';
|
|
9550
10562
|
};
|
|
9551
10563
|
export type GetUserdataFilePublishErrors = {
|
|
10564
|
+
/**
|
|
10565
|
+
* `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.
|
|
10566
|
+
*/
|
|
10567
|
+
400: ErrorResponse;
|
|
9552
10568
|
/**
|
|
9553
10569
|
* Unauthorized
|
|
9554
10570
|
*/
|
|
9555
10571
|
401: ErrorResponse;
|
|
10572
|
+
/**
|
|
10573
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10574
|
+
*/
|
|
10575
|
+
403: ForbiddenError;
|
|
9556
10576
|
/**
|
|
9557
10577
|
* Workflow not found
|
|
9558
10578
|
*/
|
|
@@ -9590,6 +10610,10 @@ export type PostUserdataFilePublishErrors = {
|
|
|
9590
10610
|
* Unauthorized
|
|
9591
10611
|
*/
|
|
9592
10612
|
401: ErrorResponse;
|
|
10613
|
+
/**
|
|
10614
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10615
|
+
*/
|
|
10616
|
+
403: ForbiddenError;
|
|
9593
10617
|
/**
|
|
9594
10618
|
* Workflow not found
|
|
9595
10619
|
*/
|
|
@@ -9614,10 +10638,18 @@ export type GetUsersInfoData = {
|
|
|
9614
10638
|
url: '/api/users';
|
|
9615
10639
|
};
|
|
9616
10640
|
export type GetUsersInfoErrors = {
|
|
10641
|
+
/**
|
|
10642
|
+
* `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.
|
|
10643
|
+
*/
|
|
10644
|
+
400: ErrorResponse;
|
|
9617
10645
|
/**
|
|
9618
10646
|
* Unauthorized
|
|
9619
10647
|
*/
|
|
9620
10648
|
401: ErrorResponse;
|
|
10649
|
+
/**
|
|
10650
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10651
|
+
*/
|
|
10652
|
+
403: ForbiddenError;
|
|
9621
10653
|
};
|
|
9622
10654
|
export type GetUsersInfoError = GetUsersInfoErrors[keyof GetUsersInfoErrors];
|
|
9623
10655
|
export type GetUsersInfoResponses = {
|
|
@@ -9656,6 +10688,10 @@ export type GetVhsQueryVideoData = {
|
|
|
9656
10688
|
* Name of the video file to query
|
|
9657
10689
|
*/
|
|
9658
10690
|
filename: string;
|
|
10691
|
+
/**
|
|
10692
|
+
* The workspace a media request reads from, where a media tag cannot send `X-Comfy-Workspace-ID`; see the `MediaWorkspaceID` parameter.
|
|
10693
|
+
*/
|
|
10694
|
+
workspace_id?: string;
|
|
9659
10695
|
};
|
|
9660
10696
|
url: '/api/vhs/queryvideo';
|
|
9661
10697
|
};
|
|
@@ -9664,14 +10700,25 @@ export type GetVhsQueryVideoErrors = {
|
|
|
9664
10700
|
* Missing required query parameter. Produced by the oapi-codegen
|
|
9665
10701
|
* wrapper via echo.NewHTTPError; the custom Echo HTTPErrorHandler
|
|
9666
10702
|
* normalizes it to the standard ErrorResponse {code, message} shape
|
|
9667
|
-
* (BE-1178).
|
|
10703
|
+
* (BE-1178). Or `code` `workspace_id_invalid`: the `workspace_id` or
|
|
10704
|
+
* `X-Comfy-Workspace-ID` value is malformed, the two disagree, or,
|
|
10705
|
+
* with the flag on, a token or API key names another workspace than
|
|
10706
|
+
* its own.
|
|
9668
10707
|
*
|
|
9669
10708
|
*/
|
|
9670
10709
|
400: ErrorResponse;
|
|
9671
10710
|
/**
|
|
9672
|
-
*
|
|
10711
|
+
* 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`.
|
|
9673
10712
|
*/
|
|
9674
10713
|
401: ErrorResponse;
|
|
10714
|
+
/**
|
|
10715
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10716
|
+
*/
|
|
10717
|
+
403: ForbiddenError;
|
|
10718
|
+
/**
|
|
10719
|
+
* Internal server error, such as the auth policy failing to look up the workspace `workspace_id` names.
|
|
10720
|
+
*/
|
|
10721
|
+
500: ErrorResponse;
|
|
9675
10722
|
};
|
|
9676
10723
|
export type GetVhsQueryVideoError = GetVhsQueryVideoErrors[keyof GetVhsQueryVideoErrors];
|
|
9677
10724
|
export type GetVhsQueryVideoResponses = {
|
|
@@ -9719,21 +10766,63 @@ export type GetVhsViewAudioData = {
|
|
|
9719
10766
|
* Subfolder path where the file is located
|
|
9720
10767
|
*/
|
|
9721
10768
|
subfolder?: string;
|
|
10769
|
+
/**
|
|
10770
|
+
* Image channel to extract from a PNG: `rgb`, or `a`/`alpha` for the alpha channel as a grayscale image (see `/api/view`).
|
|
10771
|
+
*/
|
|
10772
|
+
channel?: string;
|
|
10773
|
+
/**
|
|
10774
|
+
* Maximum side to resize a raster image to, answered as a JPEG thumbnail (see `/api/view`). The handler reads it as an integer: a value that is not one is 400 `{"error": ...}`, and one outside 64 to 1024 is 400 `INVALID_RES`.
|
|
10775
|
+
*/
|
|
10776
|
+
res?: number;
|
|
10777
|
+
/**
|
|
10778
|
+
* The workspace a media request reads from, where a media tag cannot
|
|
10779
|
+
* send `X-Comfy-Workspace-ID`. It applies only while
|
|
10780
|
+
* `web_session_enabled` is on for the user; with it off, and always on
|
|
10781
|
+
* the `CookieAuth` cookie, it is ignored.
|
|
10782
|
+
*
|
|
10783
|
+
* On a `WebSessionAuth` request it selects the workspace: a workspace
|
|
10784
|
+
* the user cannot access is 403 `workspace_access_denied`, and a
|
|
10785
|
+
* malformed value, or one that disagrees with `X-Comfy-Workspace-ID`,
|
|
10786
|
+
* is 400 `workspace_id_invalid`. A token or API key keeps its own
|
|
10787
|
+
* workspace, and naming another is 400 `workspace_id_invalid`. A cookie
|
|
10788
|
+
* request that names no workspace looks a filename up across all of the
|
|
10789
|
+
* user's workspaces, and an asset id up in the personal one.
|
|
10790
|
+
*
|
|
10791
|
+
*/
|
|
10792
|
+
workspace_id?: string;
|
|
9722
10793
|
};
|
|
9723
10794
|
url: '/api/vhs/viewaudio';
|
|
9724
10795
|
};
|
|
9725
10796
|
export type GetVhsViewAudioErrors = {
|
|
9726
10797
|
/**
|
|
9727
|
-
*
|
|
10798
|
+
* `{"error": ...}` when `filename` is missing or `res` is not a number; otherwise an ErrorResponse: a parameter `/api/view` also refuses, or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
9728
10799
|
*/
|
|
9729
|
-
|
|
10800
|
+
400: MediaBadRequestError;
|
|
10801
|
+
/**
|
|
10802
|
+
* 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`.
|
|
10803
|
+
*/
|
|
10804
|
+
401: ErrorResponse;
|
|
10805
|
+
/**
|
|
10806
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10807
|
+
*/
|
|
10808
|
+
403: ForbiddenError;
|
|
10809
|
+
/**
|
|
10810
|
+
* `FILE_NOT_FOUND`: no file by that name the caller can read, or no user on the request.
|
|
10811
|
+
*/
|
|
10812
|
+
404: ErrorResponse;
|
|
10813
|
+
/**
|
|
10814
|
+
* Internal server error
|
|
10815
|
+
*/
|
|
10816
|
+
500: ErrorResponse;
|
|
9730
10817
|
};
|
|
10818
|
+
export type GetVhsViewAudioError = GetVhsViewAudioErrors[keyof GetVhsViewAudioErrors];
|
|
9731
10819
|
export type GetVhsViewAudioResponses = {
|
|
9732
10820
|
/**
|
|
9733
|
-
*
|
|
10821
|
+
* JPEG thumbnail for `res`
|
|
9734
10822
|
*/
|
|
9735
|
-
200:
|
|
10823
|
+
200: Blob | File;
|
|
9736
10824
|
};
|
|
10825
|
+
export type GetVhsViewAudioResponse = GetVhsViewAudioResponses[keyof GetVhsViewAudioResponses];
|
|
9737
10826
|
export type GetVhsViewVideoData = {
|
|
9738
10827
|
body?: never;
|
|
9739
10828
|
path?: never;
|
|
@@ -9750,21 +10839,63 @@ export type GetVhsViewVideoData = {
|
|
|
9750
10839
|
* Subfolder path where the file is located
|
|
9751
10840
|
*/
|
|
9752
10841
|
subfolder?: string;
|
|
10842
|
+
/**
|
|
10843
|
+
* Image channel to extract from a PNG: `rgb`, or `a`/`alpha` for the alpha channel as a grayscale image (see `/api/view`).
|
|
10844
|
+
*/
|
|
10845
|
+
channel?: string;
|
|
10846
|
+
/**
|
|
10847
|
+
* Maximum side to resize a raster image to, answered as a JPEG thumbnail (see `/api/view`). The handler reads it as an integer: a value that is not one is 400 `{"error": ...}`, and one outside 64 to 1024 is 400 `INVALID_RES`.
|
|
10848
|
+
*/
|
|
10849
|
+
res?: number;
|
|
10850
|
+
/**
|
|
10851
|
+
* The workspace a media request reads from, where a media tag cannot
|
|
10852
|
+
* send `X-Comfy-Workspace-ID`. It applies only while
|
|
10853
|
+
* `web_session_enabled` is on for the user; with it off, and always on
|
|
10854
|
+
* the `CookieAuth` cookie, it is ignored.
|
|
10855
|
+
*
|
|
10856
|
+
* On a `WebSessionAuth` request it selects the workspace: a workspace
|
|
10857
|
+
* the user cannot access is 403 `workspace_access_denied`, and a
|
|
10858
|
+
* malformed value, or one that disagrees with `X-Comfy-Workspace-ID`,
|
|
10859
|
+
* is 400 `workspace_id_invalid`. A token or API key keeps its own
|
|
10860
|
+
* workspace, and naming another is 400 `workspace_id_invalid`. A cookie
|
|
10861
|
+
* request that names no workspace looks a filename up across all of the
|
|
10862
|
+
* user's workspaces, and an asset id up in the personal one.
|
|
10863
|
+
*
|
|
10864
|
+
*/
|
|
10865
|
+
workspace_id?: string;
|
|
9753
10866
|
};
|
|
9754
10867
|
url: '/api/vhs/viewvideo';
|
|
9755
10868
|
};
|
|
9756
10869
|
export type GetVhsViewVideoErrors = {
|
|
9757
10870
|
/**
|
|
9758
|
-
*
|
|
10871
|
+
* `{"error": ...}` when `filename` is missing or `res` is not a number; otherwise an ErrorResponse: a parameter `/api/view` also refuses, or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
9759
10872
|
*/
|
|
9760
|
-
|
|
10873
|
+
400: MediaBadRequestError;
|
|
10874
|
+
/**
|
|
10875
|
+
* 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`.
|
|
10876
|
+
*/
|
|
10877
|
+
401: ErrorResponse;
|
|
10878
|
+
/**
|
|
10879
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10880
|
+
*/
|
|
10881
|
+
403: ForbiddenError;
|
|
10882
|
+
/**
|
|
10883
|
+
* `FILE_NOT_FOUND`: no file by that name the caller can read, or no user on the request.
|
|
10884
|
+
*/
|
|
10885
|
+
404: ErrorResponse;
|
|
10886
|
+
/**
|
|
10887
|
+
* Internal server error
|
|
10888
|
+
*/
|
|
10889
|
+
500: ErrorResponse;
|
|
9761
10890
|
};
|
|
10891
|
+
export type GetVhsViewVideoError = GetVhsViewVideoErrors[keyof GetVhsViewVideoErrors];
|
|
9762
10892
|
export type GetVhsViewVideoResponses = {
|
|
9763
10893
|
/**
|
|
9764
|
-
*
|
|
10894
|
+
* JPEG thumbnail for `res`
|
|
9765
10895
|
*/
|
|
9766
|
-
200:
|
|
10896
|
+
200: Blob | File;
|
|
9767
10897
|
};
|
|
10898
|
+
export type GetVhsViewVideoResponse = GetVhsViewVideoResponses[keyof GetVhsViewVideoResponses];
|
|
9768
10899
|
export type ViewFileData = {
|
|
9769
10900
|
body?: never;
|
|
9770
10901
|
path?: never;
|
|
@@ -9816,14 +10947,26 @@ export type ViewFileData = {
|
|
|
9816
10947
|
*
|
|
9817
10948
|
*/
|
|
9818
10949
|
res?: number;
|
|
10950
|
+
/**
|
|
10951
|
+
* The workspace a media request reads from, where a media tag cannot send `X-Comfy-Workspace-ID`; see the `MediaWorkspaceID` parameter.
|
|
10952
|
+
*/
|
|
10953
|
+
workspace_id?: string;
|
|
9819
10954
|
};
|
|
9820
10955
|
url: '/api/view';
|
|
9821
10956
|
};
|
|
9822
10957
|
export type ViewFileErrors = {
|
|
9823
10958
|
/**
|
|
9824
|
-
* Invalid request parameters
|
|
10959
|
+
* Invalid request parameters, or `code` `workspace_id_invalid`: the `workspace_id` or `X-Comfy-Workspace-ID` value is malformed, the two disagree, or, with the flag on, a token or API key names another workspace than its own.
|
|
9825
10960
|
*/
|
|
9826
10961
|
400: ErrorResponse;
|
|
10962
|
+
/**
|
|
10963
|
+
* 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`.
|
|
10964
|
+
*/
|
|
10965
|
+
401: ErrorResponse;
|
|
10966
|
+
/**
|
|
10967
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
10968
|
+
*/
|
|
10969
|
+
403: ForbiddenError;
|
|
9827
10970
|
/**
|
|
9828
10971
|
* File not found or unauthorized
|
|
9829
10972
|
*/
|
|
@@ -9863,21 +11006,63 @@ export type GetApiViewVideoAliasData = {
|
|
|
9863
11006
|
* Name of the file to view (see `/api/view` for the full handler contract)
|
|
9864
11007
|
*/
|
|
9865
11008
|
filename: string;
|
|
11009
|
+
/**
|
|
11010
|
+
* Image channel to extract from a PNG: `rgb`, or `a`/`alpha` for the alpha channel as a grayscale image (see `/api/view`).
|
|
11011
|
+
*/
|
|
11012
|
+
channel?: string;
|
|
11013
|
+
/**
|
|
11014
|
+
* Maximum side to resize a raster image to, answered as a JPEG thumbnail (see `/api/view`). The handler reads it as an integer: a value that is not one is 400 `{"error": ...}`, and one outside 64 to 1024 is 400 `INVALID_RES`.
|
|
11015
|
+
*/
|
|
11016
|
+
res?: number;
|
|
11017
|
+
/**
|
|
11018
|
+
* The workspace a media request reads from, where a media tag cannot
|
|
11019
|
+
* send `X-Comfy-Workspace-ID`. It applies only while
|
|
11020
|
+
* `web_session_enabled` is on for the user; with it off, and always on
|
|
11021
|
+
* the `CookieAuth` cookie, it is ignored.
|
|
11022
|
+
*
|
|
11023
|
+
* On a `WebSessionAuth` request it selects the workspace: a workspace
|
|
11024
|
+
* the user cannot access is 403 `workspace_access_denied`, and a
|
|
11025
|
+
* malformed value, or one that disagrees with `X-Comfy-Workspace-ID`,
|
|
11026
|
+
* is 400 `workspace_id_invalid`. A token or API key keeps its own
|
|
11027
|
+
* workspace, and naming another is 400 `workspace_id_invalid`. A cookie
|
|
11028
|
+
* request that names no workspace looks a filename up across all of the
|
|
11029
|
+
* user's workspaces, and an asset id up in the personal one.
|
|
11030
|
+
*
|
|
11031
|
+
*/
|
|
11032
|
+
workspace_id?: string;
|
|
9866
11033
|
};
|
|
9867
11034
|
url: '/api/viewvideo';
|
|
9868
11035
|
};
|
|
9869
11036
|
export type GetApiViewVideoAliasErrors = {
|
|
9870
11037
|
/**
|
|
9871
|
-
*
|
|
11038
|
+
* `{"error": ...}` when `filename` is missing or `res` is not a number; otherwise an ErrorResponse: a parameter `/api/view` also refuses, or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
9872
11039
|
*/
|
|
9873
|
-
|
|
11040
|
+
400: MediaBadRequestError;
|
|
11041
|
+
/**
|
|
11042
|
+
* 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`.
|
|
11043
|
+
*/
|
|
11044
|
+
401: ErrorResponse;
|
|
11045
|
+
/**
|
|
11046
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
11047
|
+
*/
|
|
11048
|
+
403: ForbiddenError;
|
|
11049
|
+
/**
|
|
11050
|
+
* `FILE_NOT_FOUND`: no file by that name the caller can read, or no user on the request.
|
|
11051
|
+
*/
|
|
11052
|
+
404: ErrorResponse;
|
|
11053
|
+
/**
|
|
11054
|
+
* Internal server error
|
|
11055
|
+
*/
|
|
11056
|
+
500: ErrorResponse;
|
|
9874
11057
|
};
|
|
11058
|
+
export type GetApiViewVideoAliasError = GetApiViewVideoAliasErrors[keyof GetApiViewVideoAliasErrors];
|
|
9875
11059
|
export type GetApiViewVideoAliasResponses = {
|
|
9876
11060
|
/**
|
|
9877
|
-
*
|
|
11061
|
+
* JPEG thumbnail for `res`
|
|
9878
11062
|
*/
|
|
9879
|
-
200:
|
|
11063
|
+
200: Blob | File;
|
|
9880
11064
|
};
|
|
11065
|
+
export type GetApiViewVideoAliasResponse = GetApiViewVideoAliasResponses[keyof GetApiViewVideoAliasResponses];
|
|
9881
11066
|
export type GetWorkflowTemplatesData = {
|
|
9882
11067
|
body?: never;
|
|
9883
11068
|
path?: never;
|
|
@@ -9919,10 +11104,18 @@ export type ListWorkflowsData = {
|
|
|
9919
11104
|
url: '/api/workflows';
|
|
9920
11105
|
};
|
|
9921
11106
|
export type ListWorkflowsErrors = {
|
|
11107
|
+
/**
|
|
11108
|
+
* `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.
|
|
11109
|
+
*/
|
|
11110
|
+
400: ErrorResponse;
|
|
9922
11111
|
/**
|
|
9923
11112
|
* Unauthorized
|
|
9924
11113
|
*/
|
|
9925
11114
|
401: ErrorResponse;
|
|
11115
|
+
/**
|
|
11116
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
11117
|
+
*/
|
|
11118
|
+
403: ForbiddenError;
|
|
9926
11119
|
/**
|
|
9927
11120
|
* Internal server error
|
|
9928
11121
|
*/
|
|
@@ -9943,10 +11136,18 @@ export type CreateWorkflowData = {
|
|
|
9943
11136
|
url: '/api/workflows';
|
|
9944
11137
|
};
|
|
9945
11138
|
export type CreateWorkflowErrors = {
|
|
11139
|
+
/**
|
|
11140
|
+
* `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.
|
|
11141
|
+
*/
|
|
11142
|
+
400: ErrorResponse;
|
|
9946
11143
|
/**
|
|
9947
11144
|
* Unauthorized
|
|
9948
11145
|
*/
|
|
9949
11146
|
401: ErrorResponse;
|
|
11147
|
+
/**
|
|
11148
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
11149
|
+
*/
|
|
11150
|
+
403: ForbiddenError;
|
|
9950
11151
|
/**
|
|
9951
11152
|
* Validation error
|
|
9952
11153
|
*/
|
|
@@ -9976,10 +11177,18 @@ export type DeleteWorkflowData = {
|
|
|
9976
11177
|
url: '/api/workflows/{workflow_id}';
|
|
9977
11178
|
};
|
|
9978
11179
|
export type DeleteWorkflowErrors = {
|
|
11180
|
+
/**
|
|
11181
|
+
* `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.
|
|
11182
|
+
*/
|
|
11183
|
+
400: ErrorResponse;
|
|
9979
11184
|
/**
|
|
9980
11185
|
* Unauthorized
|
|
9981
11186
|
*/
|
|
9982
11187
|
401: ErrorResponse;
|
|
11188
|
+
/**
|
|
11189
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
11190
|
+
*/
|
|
11191
|
+
403: ForbiddenError;
|
|
9983
11192
|
/**
|
|
9984
11193
|
* Workflow not found
|
|
9985
11194
|
*/
|
|
@@ -10009,6 +11218,10 @@ export type GetWorkflowData = {
|
|
|
10009
11218
|
url: '/api/workflows/{workflow_id}';
|
|
10010
11219
|
};
|
|
10011
11220
|
export type GetWorkflowErrors = {
|
|
11221
|
+
/**
|
|
11222
|
+
* `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.
|
|
11223
|
+
*/
|
|
11224
|
+
400: ErrorResponse;
|
|
10012
11225
|
/**
|
|
10013
11226
|
* Unauthorized
|
|
10014
11227
|
*/
|
|
@@ -10046,10 +11259,18 @@ export type UpdateWorkflowData = {
|
|
|
10046
11259
|
url: '/api/workflows/{workflow_id}';
|
|
10047
11260
|
};
|
|
10048
11261
|
export type UpdateWorkflowErrors = {
|
|
11262
|
+
/**
|
|
11263
|
+
* `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.
|
|
11264
|
+
*/
|
|
11265
|
+
400: ErrorResponse;
|
|
10049
11266
|
/**
|
|
10050
11267
|
* Unauthorized
|
|
10051
11268
|
*/
|
|
10052
11269
|
401: ErrorResponse;
|
|
11270
|
+
/**
|
|
11271
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
11272
|
+
*/
|
|
11273
|
+
403: ForbiddenError;
|
|
10053
11274
|
/**
|
|
10054
11275
|
* Workflow not found
|
|
10055
11276
|
*/
|
|
@@ -10083,6 +11304,10 @@ export type GetWorkflowContentData = {
|
|
|
10083
11304
|
url: '/api/workflows/{workflow_id}/content';
|
|
10084
11305
|
};
|
|
10085
11306
|
export type GetWorkflowContentErrors = {
|
|
11307
|
+
/**
|
|
11308
|
+
* `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.
|
|
11309
|
+
*/
|
|
11310
|
+
400: ErrorResponse;
|
|
10086
11311
|
/**
|
|
10087
11312
|
* Unauthorized
|
|
10088
11313
|
*/
|
|
@@ -10120,6 +11345,10 @@ export type ForkWorkflowData = {
|
|
|
10120
11345
|
url: '/api/workflows/{workflow_id}/fork';
|
|
10121
11346
|
};
|
|
10122
11347
|
export type ForkWorkflowErrors = {
|
|
11348
|
+
/**
|
|
11349
|
+
* `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.
|
|
11350
|
+
*/
|
|
11351
|
+
400: ErrorResponse;
|
|
10123
11352
|
/**
|
|
10124
11353
|
* Unauthorized
|
|
10125
11354
|
*/
|
|
@@ -10161,6 +11390,10 @@ export type CreateWorkflowVersionData = {
|
|
|
10161
11390
|
url: '/api/workflows/{workflow_id}/versions';
|
|
10162
11391
|
};
|
|
10163
11392
|
export type CreateWorkflowVersionErrors = {
|
|
11393
|
+
/**
|
|
11394
|
+
* `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.
|
|
11395
|
+
*/
|
|
11396
|
+
400: ErrorResponse;
|
|
10164
11397
|
/**
|
|
10165
11398
|
* Unauthorized
|
|
10166
11399
|
*/
|
|
@@ -10206,10 +11439,18 @@ export type GetPublishedWorkflowData = {
|
|
|
10206
11439
|
url: '/api/workflows/published/{share_id}';
|
|
10207
11440
|
};
|
|
10208
11441
|
export type GetPublishedWorkflowErrors = {
|
|
11442
|
+
/**
|
|
11443
|
+
* `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.
|
|
11444
|
+
*/
|
|
11445
|
+
400: ErrorResponse;
|
|
10209
11446
|
/**
|
|
10210
11447
|
* Unauthorized
|
|
10211
11448
|
*/
|
|
10212
11449
|
401: ErrorResponse;
|
|
11450
|
+
/**
|
|
11451
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
11452
|
+
*/
|
|
11453
|
+
403: ForbiddenError;
|
|
10213
11454
|
/**
|
|
10214
11455
|
* Share not found
|
|
10215
11456
|
*/
|
|
@@ -10238,10 +11479,18 @@ export type CreateWorkflowUploadUrlData = {
|
|
|
10238
11479
|
url: '/api/workflows/upload-url';
|
|
10239
11480
|
};
|
|
10240
11481
|
export type CreateWorkflowUploadUrlErrors = {
|
|
11482
|
+
/**
|
|
11483
|
+
* `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.
|
|
11484
|
+
*/
|
|
11485
|
+
400: ErrorResponse;
|
|
10241
11486
|
/**
|
|
10242
11487
|
* Unauthorized
|
|
10243
11488
|
*/
|
|
10244
11489
|
401: ErrorResponse;
|
|
11490
|
+
/**
|
|
11491
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
11492
|
+
*/
|
|
11493
|
+
403: ForbiddenError;
|
|
10245
11494
|
/**
|
|
10246
11495
|
* Validation error (metadata field over its maximum length)
|
|
10247
11496
|
*/
|
|
@@ -10275,6 +11524,10 @@ export type ListWorkspaceApiKeysData = {
|
|
|
10275
11524
|
url: '/api/workspace/api-keys';
|
|
10276
11525
|
};
|
|
10277
11526
|
export type ListWorkspaceApiKeysErrors = {
|
|
11527
|
+
/**
|
|
11528
|
+
* `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.
|
|
11529
|
+
*/
|
|
11530
|
+
400: ErrorResponse;
|
|
10278
11531
|
/**
|
|
10279
11532
|
* Unauthorized
|
|
10280
11533
|
*/
|
|
@@ -10303,6 +11556,10 @@ export type CreateWorkspaceApiKeyData = {
|
|
|
10303
11556
|
url: '/api/workspace/api-keys';
|
|
10304
11557
|
};
|
|
10305
11558
|
export type CreateWorkspaceApiKeyErrors = {
|
|
11559
|
+
/**
|
|
11560
|
+
* `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.
|
|
11561
|
+
*/
|
|
11562
|
+
400: ErrorResponse;
|
|
10306
11563
|
/**
|
|
10307
11564
|
* Unauthorized
|
|
10308
11565
|
*/
|
|
@@ -10348,6 +11605,10 @@ export type RevokeWorkspaceApiKeyData = {
|
|
|
10348
11605
|
url: '/api/workspace/api-keys/{id}';
|
|
10349
11606
|
};
|
|
10350
11607
|
export type RevokeWorkspaceApiKeyErrors = {
|
|
11608
|
+
/**
|
|
11609
|
+
* `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.
|
|
11610
|
+
*/
|
|
11611
|
+
400: ErrorResponse;
|
|
10351
11612
|
/**
|
|
10352
11613
|
* Unauthorized
|
|
10353
11614
|
*/
|
|
@@ -10380,6 +11641,10 @@ export type ListWorkspaceInvitesData = {
|
|
|
10380
11641
|
url: '/api/workspace/invites';
|
|
10381
11642
|
};
|
|
10382
11643
|
export type ListWorkspaceInvitesErrors = {
|
|
11644
|
+
/**
|
|
11645
|
+
* `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.
|
|
11646
|
+
*/
|
|
11647
|
+
400: ErrorResponse;
|
|
10383
11648
|
/**
|
|
10384
11649
|
* Unauthorized
|
|
10385
11650
|
*/
|
|
@@ -10408,6 +11673,10 @@ export type CreateWorkspaceInviteData = {
|
|
|
10408
11673
|
url: '/api/workspace/invites';
|
|
10409
11674
|
};
|
|
10410
11675
|
export type CreateWorkspaceInviteErrors = {
|
|
11676
|
+
/**
|
|
11677
|
+
* `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.
|
|
11678
|
+
*/
|
|
11679
|
+
400: ErrorResponse;
|
|
10411
11680
|
/**
|
|
10412
11681
|
* Unauthorized
|
|
10413
11682
|
*/
|
|
@@ -10453,6 +11722,10 @@ export type RevokeWorkspaceInviteData = {
|
|
|
10453
11722
|
url: '/api/workspace/invites/{inviteId}';
|
|
10454
11723
|
};
|
|
10455
11724
|
export type RevokeWorkspaceInviteErrors = {
|
|
11725
|
+
/**
|
|
11726
|
+
* `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.
|
|
11727
|
+
*/
|
|
11728
|
+
400: ErrorResponse;
|
|
10456
11729
|
/**
|
|
10457
11730
|
* Unauthorized
|
|
10458
11731
|
*/
|
|
@@ -10490,6 +11763,10 @@ export type ResendWorkspaceInviteData = {
|
|
|
10490
11763
|
url: '/api/workspace/invites/{inviteId}/resend';
|
|
10491
11764
|
};
|
|
10492
11765
|
export type ResendWorkspaceInviteErrors = {
|
|
11766
|
+
/**
|
|
11767
|
+
* `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.
|
|
11768
|
+
*/
|
|
11769
|
+
400: ErrorResponse;
|
|
10493
11770
|
/**
|
|
10494
11771
|
* Unauthorized
|
|
10495
11772
|
*/
|
|
@@ -10526,6 +11803,10 @@ export type LeaveWorkspaceData = {
|
|
|
10526
11803
|
url: '/api/workspace/leave';
|
|
10527
11804
|
};
|
|
10528
11805
|
export type LeaveWorkspaceErrors = {
|
|
11806
|
+
/**
|
|
11807
|
+
* `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.
|
|
11808
|
+
*/
|
|
11809
|
+
400: ErrorResponse;
|
|
10529
11810
|
/**
|
|
10530
11811
|
* Unauthorized
|
|
10531
11812
|
*/
|
|
@@ -10567,6 +11848,10 @@ export type ListWorkspaceMembersData = {
|
|
|
10567
11848
|
url: '/api/workspace/members';
|
|
10568
11849
|
};
|
|
10569
11850
|
export type ListWorkspaceMembersErrors = {
|
|
11851
|
+
/**
|
|
11852
|
+
* `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.
|
|
11853
|
+
*/
|
|
11854
|
+
400: ErrorResponse;
|
|
10570
11855
|
/**
|
|
10571
11856
|
* Unauthorized
|
|
10572
11857
|
*/
|
|
@@ -10608,6 +11893,10 @@ export type BulkRevokeWorkspaceMemberApiKeysData = {
|
|
|
10608
11893
|
url: '/api/workspace/members/{user_id}/api-keys';
|
|
10609
11894
|
};
|
|
10610
11895
|
export type BulkRevokeWorkspaceMemberApiKeysErrors = {
|
|
11896
|
+
/**
|
|
11897
|
+
* `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.
|
|
11898
|
+
*/
|
|
11899
|
+
400: ErrorResponse;
|
|
10611
11900
|
/**
|
|
10612
11901
|
* Unauthorized
|
|
10613
11902
|
*/
|
|
@@ -10645,6 +11934,10 @@ export type RemoveWorkspaceMemberData = {
|
|
|
10645
11934
|
url: '/api/workspace/members/{userId}';
|
|
10646
11935
|
};
|
|
10647
11936
|
export type RemoveWorkspaceMemberErrors = {
|
|
11937
|
+
/**
|
|
11938
|
+
* `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.
|
|
11939
|
+
*/
|
|
11940
|
+
400: ErrorResponse;
|
|
10648
11941
|
/**
|
|
10649
11942
|
* Unauthorized
|
|
10650
11943
|
*/
|
|
@@ -10682,6 +11975,10 @@ export type UpdateWorkspaceMemberRoleData = {
|
|
|
10682
11975
|
url: '/api/workspace/members/{userId}';
|
|
10683
11976
|
};
|
|
10684
11977
|
export type UpdateWorkspaceMemberRoleErrors = {
|
|
11978
|
+
/**
|
|
11979
|
+
* `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.
|
|
11980
|
+
*/
|
|
11981
|
+
400: ErrorResponse;
|
|
10685
11982
|
/**
|
|
10686
11983
|
* Unauthorized
|
|
10687
11984
|
*/
|
|
@@ -10718,6 +12015,10 @@ export type GetProviderPolicyData = {
|
|
|
10718
12015
|
url: '/api/workspace/provider-policy';
|
|
10719
12016
|
};
|
|
10720
12017
|
export type GetProviderPolicyErrors = {
|
|
12018
|
+
/**
|
|
12019
|
+
* `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.
|
|
12020
|
+
*/
|
|
12021
|
+
400: ErrorResponse;
|
|
10721
12022
|
/**
|
|
10722
12023
|
* Unauthorized
|
|
10723
12024
|
*/
|
|
@@ -10790,10 +12091,18 @@ export type ListWorkspacesData = {
|
|
|
10790
12091
|
url: '/api/workspaces';
|
|
10791
12092
|
};
|
|
10792
12093
|
export type ListWorkspacesErrors = {
|
|
12094
|
+
/**
|
|
12095
|
+
* `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.
|
|
12096
|
+
*/
|
|
12097
|
+
400: ErrorResponse;
|
|
10793
12098
|
/**
|
|
10794
12099
|
* Unauthorized
|
|
10795
12100
|
*/
|
|
10796
12101
|
401: ErrorResponse;
|
|
12102
|
+
/**
|
|
12103
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
12104
|
+
*/
|
|
12105
|
+
403: ForbiddenError;
|
|
10797
12106
|
/**
|
|
10798
12107
|
* Feature not enabled for user
|
|
10799
12108
|
*/
|
|
@@ -10818,10 +12127,18 @@ export type CreateWorkspaceData = {
|
|
|
10818
12127
|
url: '/api/workspaces';
|
|
10819
12128
|
};
|
|
10820
12129
|
export type CreateWorkspaceErrors = {
|
|
12130
|
+
/**
|
|
12131
|
+
* `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.
|
|
12132
|
+
*/
|
|
12133
|
+
400: ErrorResponse;
|
|
10821
12134
|
/**
|
|
10822
12135
|
* Unauthorized
|
|
10823
12136
|
*/
|
|
10824
12137
|
401: ErrorResponse;
|
|
12138
|
+
/**
|
|
12139
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
12140
|
+
*/
|
|
12141
|
+
403: ForbiddenError;
|
|
10825
12142
|
/**
|
|
10826
12143
|
* Feature not enabled for user
|
|
10827
12144
|
*/
|
|
@@ -10855,6 +12172,10 @@ export type DeleteWorkspaceData = {
|
|
|
10855
12172
|
url: '/api/workspaces/{id}';
|
|
10856
12173
|
};
|
|
10857
12174
|
export type DeleteWorkspaceErrors = {
|
|
12175
|
+
/**
|
|
12176
|
+
* `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.
|
|
12177
|
+
*/
|
|
12178
|
+
400: ErrorResponse;
|
|
10858
12179
|
/**
|
|
10859
12180
|
* Unauthorized
|
|
10860
12181
|
*/
|
|
@@ -10892,10 +12213,18 @@ export type GetWorkspaceData = {
|
|
|
10892
12213
|
url: '/api/workspaces/{id}';
|
|
10893
12214
|
};
|
|
10894
12215
|
export type GetWorkspaceErrors = {
|
|
12216
|
+
/**
|
|
12217
|
+
* `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.
|
|
12218
|
+
*/
|
|
12219
|
+
400: ErrorResponse;
|
|
10895
12220
|
/**
|
|
10896
12221
|
* Unauthorized
|
|
10897
12222
|
*/
|
|
10898
12223
|
401: ErrorResponse;
|
|
12224
|
+
/**
|
|
12225
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
12226
|
+
*/
|
|
12227
|
+
403: ForbiddenError;
|
|
10899
12228
|
/**
|
|
10900
12229
|
* Workspace not found or user not a member
|
|
10901
12230
|
*/
|
|
@@ -10925,6 +12254,10 @@ export type UpdateWorkspaceData = {
|
|
|
10925
12254
|
url: '/api/workspaces/{id}';
|
|
10926
12255
|
};
|
|
10927
12256
|
export type UpdateWorkspaceErrors = {
|
|
12257
|
+
/**
|
|
12258
|
+
* `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.
|
|
12259
|
+
*/
|
|
12260
|
+
400: ErrorResponse;
|
|
10928
12261
|
/**
|
|
10929
12262
|
* Unauthorized
|
|
10930
12263
|
*/
|
|
@@ -10961,10 +12294,18 @@ export type GetCurrentWorkspaceData = {
|
|
|
10961
12294
|
url: '/api/workspaces/current';
|
|
10962
12295
|
};
|
|
10963
12296
|
export type GetCurrentWorkspaceErrors = {
|
|
12297
|
+
/**
|
|
12298
|
+
* `code` is `workspace_id_invalid`: the `X-Comfy-Workspace-ID` or `workspace_id` value is malformed, or conflicts with another value or with the workspace the credential resolves to.
|
|
12299
|
+
*/
|
|
12300
|
+
400: ErrorResponse;
|
|
10964
12301
|
/**
|
|
10965
12302
|
* Unauthorized
|
|
10966
12303
|
*/
|
|
10967
12304
|
401: ErrorResponse;
|
|
12305
|
+
/**
|
|
12306
|
+
* A refused web session request. `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `origin_not_allowed` or `cross_site_request`. See the `WebSessionAuth` scheme.
|
|
12307
|
+
*/
|
|
12308
|
+
403: ErrorResponse;
|
|
10968
12309
|
/**
|
|
10969
12310
|
* No workspace resolves for this credential — it carries no workspace binding, the workspace was deleted, or the credential's user is no longer a member. Deliberately not 401: the credential itself is valid, so clients must not discard it or re-authenticate.
|
|
10970
12311
|
*/
|
|
@@ -11188,7 +12529,7 @@ export type GetOAuthAuthorizeData = {
|
|
|
11188
12529
|
};
|
|
11189
12530
|
export type GetOAuthAuthorizeErrors = {
|
|
11190
12531
|
/**
|
|
11191
|
-
* Invalid authorize request (pre-redirect failure — unknown client, redirect mismatch, malformed params). Content-negotiated; browser navigations (Accept includes text/html without application/json) receive a self-contained HTML error page instead of JSON.
|
|
12532
|
+
* Invalid authorize request (pre-redirect failure — unknown client, redirect mismatch, malformed params). Content-negotiated; browser navigations (Accept includes text/html without application/json) receive a self-contained HTML error page instead of JSON. Or, always as JSON, `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid) for a token or API key whose workspace selector is malformed or names another workspace than its own, while `web_session_enabled` is on for its user.
|
|
11192
12533
|
*/
|
|
11193
12534
|
400: ErrorResponse;
|
|
11194
12535
|
/**
|
|
@@ -11218,11 +12559,11 @@ export type PostOAuthAuthorizeData = {
|
|
|
11218
12559
|
};
|
|
11219
12560
|
export type PostOAuthAuthorizeErrors = {
|
|
11220
12561
|
/**
|
|
11221
|
-
* Bad request (CSRF mismatch, expired/consumed request, inaccessible workspace)
|
|
12562
|
+
* Bad request (CSRF mismatch, expired/consumed request, inaccessible workspace, no signed-in user), or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
11222
12563
|
*/
|
|
11223
12564
|
400: ErrorResponse;
|
|
11224
12565
|
/**
|
|
11225
|
-
*
|
|
12566
|
+
* From the handler, `code` `scope_broadening`: the requested scopes broaden a prior consent, so a fresh consent flow is required. From the auth policy, before the handler runs: `cross_site_request` when the `WebSessionAuth` or `CookieAuth` cookie comes on a request the browser labels cross-site, `origin_not_allowed` when it comes from any other origin than this page's own, a trusted one included, with no `Origin`, or with repeated `Origin` or `Sec-Fetch-Site` headers; or `workspace_access_denied`: the session's workspace selector names a workspace the user cannot use (see the `WebSessionAuth` scheme).
|
|
11226
12567
|
*/
|
|
11227
12568
|
403: ErrorResponse;
|
|
11228
12569
|
/**
|
|
@@ -11335,25 +12676,80 @@ export type GetViewCompatAliasData = {
|
|
|
11335
12676
|
* Name of the file to view (see `/api/view` for the full handler contract)
|
|
11336
12677
|
*/
|
|
11337
12678
|
filename: string;
|
|
12679
|
+
/**
|
|
12680
|
+
* Image channel to extract from a PNG: `rgb`, or `a`/`alpha` for the alpha channel as a grayscale image (see `/api/view`).
|
|
12681
|
+
*/
|
|
12682
|
+
channel?: string;
|
|
12683
|
+
/**
|
|
12684
|
+
* Maximum side to resize a raster image to, answered as a JPEG thumbnail (see `/api/view`). The handler reads it as an integer: a value that is not one is 400 `{"error": ...}`, and one outside 64 to 1024 is 400 `INVALID_RES`.
|
|
12685
|
+
*/
|
|
12686
|
+
res?: number;
|
|
12687
|
+
/**
|
|
12688
|
+
* The workspace a media request reads from, where a media tag cannot
|
|
12689
|
+
* send `X-Comfy-Workspace-ID`. It applies only while
|
|
12690
|
+
* `web_session_enabled` is on for the user; with it off, and always on
|
|
12691
|
+
* the `CookieAuth` cookie, it is ignored.
|
|
12692
|
+
*
|
|
12693
|
+
* On a `WebSessionAuth` request it selects the workspace: a workspace
|
|
12694
|
+
* the user cannot access is 403 `workspace_access_denied`, and a
|
|
12695
|
+
* malformed value, or one that disagrees with `X-Comfy-Workspace-ID`,
|
|
12696
|
+
* is 400 `workspace_id_invalid`. A token or API key keeps its own
|
|
12697
|
+
* workspace, and naming another is 400 `workspace_id_invalid`. A cookie
|
|
12698
|
+
* request that names no workspace looks a filename up across all of the
|
|
12699
|
+
* user's workspaces, and an asset id up in the personal one.
|
|
12700
|
+
*
|
|
12701
|
+
*/
|
|
12702
|
+
workspace_id?: string;
|
|
11338
12703
|
};
|
|
11339
12704
|
url: '/view';
|
|
11340
12705
|
};
|
|
11341
12706
|
export type GetViewCompatAliasErrors = {
|
|
11342
12707
|
/**
|
|
11343
|
-
*
|
|
12708
|
+
* `{"error": ...}` when `filename` is missing or `res` is not a number; otherwise an ErrorResponse: a parameter `/api/view` also refuses, or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
11344
12709
|
*/
|
|
11345
|
-
|
|
12710
|
+
400: MediaBadRequestError;
|
|
12711
|
+
/**
|
|
12712
|
+
* 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`.
|
|
12713
|
+
*/
|
|
12714
|
+
401: ErrorResponse;
|
|
12715
|
+
/**
|
|
12716
|
+
* 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), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. 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.
|
|
12717
|
+
*/
|
|
12718
|
+
403: ForbiddenError;
|
|
12719
|
+
/**
|
|
12720
|
+
* `FILE_NOT_FOUND`: no file by that name the caller can read, or no user on the request.
|
|
12721
|
+
*/
|
|
12722
|
+
404: ErrorResponse;
|
|
12723
|
+
/**
|
|
12724
|
+
* Internal server error
|
|
12725
|
+
*/
|
|
12726
|
+
500: ErrorResponse;
|
|
11346
12727
|
};
|
|
12728
|
+
export type GetViewCompatAliasError = GetViewCompatAliasErrors[keyof GetViewCompatAliasErrors];
|
|
11347
12729
|
export type GetViewCompatAliasResponses = {
|
|
11348
12730
|
/**
|
|
11349
|
-
*
|
|
12731
|
+
* JPEG thumbnail for `res`
|
|
11350
12732
|
*/
|
|
11351
|
-
200:
|
|
12733
|
+
200: Blob | File;
|
|
11352
12734
|
};
|
|
12735
|
+
export type GetViewCompatAliasResponse = GetViewCompatAliasResponses[keyof GetViewCompatAliasResponses];
|
|
11353
12736
|
export type GetWebsocketData = {
|
|
11354
12737
|
body?: never;
|
|
11355
12738
|
path?: never;
|
|
11356
12739
|
query?: {
|
|
12740
|
+
/**
|
|
12741
|
+
* The credential, where a browser cannot send a header: a Firebase ID
|
|
12742
|
+
* token, a Cloud JWT or an API key. It wins over the cookie.
|
|
12743
|
+
*
|
|
12744
|
+
*/
|
|
12745
|
+
token?: string;
|
|
12746
|
+
/**
|
|
12747
|
+
* The workspace a `WebSessionAuth` socket runs in; absent means the
|
|
12748
|
+
* personal workspace. With `web_session_enabled` on, a token or API
|
|
12749
|
+
* key bound to another workspace is refused with 400.
|
|
12750
|
+
*
|
|
12751
|
+
*/
|
|
12752
|
+
workspace_id?: string;
|
|
11357
12753
|
/**
|
|
11358
12754
|
* Stable client identifier used to associate the WebSocket
|
|
11359
12755
|
* connection with the frontend session. If omitted, the server
|
|
@@ -11366,7 +12762,16 @@ export type GetWebsocketData = {
|
|
|
11366
12762
|
};
|
|
11367
12763
|
export type GetWebsocketErrors = {
|
|
11368
12764
|
/**
|
|
11369
|
-
*
|
|
12765
|
+
* `code` is `workspace_id_invalid`: the `workspace_id` value is malformed, conflicts with `X-Comfy-Workspace-ID`, or, with the flag on, names another workspace than the token's own.
|
|
11370
12766
|
*/
|
|
11371
|
-
|
|
12767
|
+
400: ErrorResponse;
|
|
12768
|
+
/**
|
|
12769
|
+
* No credential, or one that failed. `code` is `UNAUTHORIZED`, with a `message` such as `authentication required`, `invalid auth token` or `invalid session cookie`.
|
|
12770
|
+
*/
|
|
12771
|
+
401: ErrorResponse;
|
|
12772
|
+
/**
|
|
12773
|
+
* A refused upgrade. A web session refusal has `code` `origin_not_allowed` (no `Origin`, or one that is not trusted), `cross_site_request` or `workspace_access_denied` (see the `WebSessionAuth` scheme). An unverified email or an account scheduled for deletion is `FORBIDDEN`. With the flag off, the cookie gets AuthTypeNotAllowedError instead.
|
|
12774
|
+
*/
|
|
12775
|
+
403: ForbiddenError;
|
|
11372
12776
|
};
|
|
12777
|
+
export type GetWebsocketError = GetWebsocketErrors[keyof GetWebsocketErrors];
|