@comfyorg/ingest-types 1.1.0 → 1.2.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.
@@ -288,6 +288,19 @@ export type WebSessionResponse = {
288
288
  * Idle expiry. Real use slides it; reading the session does not.
289
289
  */
290
290
  expires_at: string;
291
+ /**
292
+ * Whether personal billing and personal workspace UI apply to the
293
+ * account. True for a live personal workspace, and for a legacy
294
+ * account whose personal workspace is created lazily
295
+ * (personal_workspace_id still NULL), linked to SSO or not. False
296
+ * for an account SSO sign-in or the directory created, which has
297
+ * none, for a personal workspace that was deleted, and for an
298
+ * account scheduled for deletion. Read from the account's record
299
+ * (whether SSO created it is recorded when it is made), not inferred
300
+ * from the sign-in provider.
301
+ *
302
+ */
303
+ has_personal_workspace: boolean;
291
304
  user: WebSessionUser;
292
305
  };
293
306
  /**
@@ -353,21 +366,98 @@ export type UsageTimeSeries = {
353
366
  buckets: Array<UsageBucket>;
354
367
  ending_before: string;
355
368
  granularity: 'hour' | 'day' | 'month';
356
- group_by: 'model' | 'endpoint' | 'product';
369
+ group_by: 'model' | 'endpoint' | 'product' | 'product_line' | 'person' | 'source';
370
+ /**
371
+ * One entry per value in `groups` for `product_line`, `person` and `source`; absent for the other groupings.
372
+ */
373
+ group_labels?: Array<UsageGroupLabel>;
357
374
  groups: Array<string>;
375
+ not_available?: UsageNotAvailable;
358
376
  starting_on: string;
359
377
  summary: UsageSummary;
360
378
  };
379
+ /**
380
+ * Current remaining balance, mirroring /billing/balance. Every amount is CENTS of `currency`; the `*_micros` names are a misnomer kept for wire compatibility.
381
+ */
361
382
  export type UsageBalance = {
383
+ /**
384
+ * The total remaining balance. Cents of `currency`, the same value as `amount_micros`, which is misnamed. A fractional `number`, deliberately not the integer-cents convention other `*_cents` fields in this spec use -- do not decode it as an integer.
385
+ */
386
+ amount_cents?: number;
387
+ /**
388
+ * DEPRECATED misnomer: this value is CENTS, not micros. Divide by 100. Use `amount_cents`. The total remaining balance.
389
+ *
390
+ * @deprecated
391
+ */
362
392
  amount_micros?: number;
393
+ /**
394
+ * The remaining balance from cloud credits (subscription). Cents of `currency`, the same value as `cloud_credit_balance_micros`, which is misnamed. A fractional `number`, deliberately not the integer-cents convention other `*_cents` fields in this spec use -- do not decode it as an integer.
395
+ */
396
+ cloud_credit_balance_cents?: number;
397
+ /**
398
+ * DEPRECATED misnomer: this value is CENTS, not micros. Divide by 100. Use `cloud_credit_balance_cents`. The remaining balance from cloud credits (subscription).
399
+ *
400
+ * @deprecated
401
+ */
363
402
  cloud_credit_balance_micros?: number;
364
403
  currency?: string;
404
+ /**
405
+ * The remaining balance from prepaid commits (top-ups). Cents of `currency`, the same value as `prepaid_balance_micros`, which is misnamed. A fractional `number`, deliberately not the integer-cents convention other `*_cents` fields in this spec use -- do not decode it as an integer.
406
+ */
407
+ prepaid_balance_cents?: number;
408
+ /**
409
+ * DEPRECATED misnomer: this value is CENTS, not micros. Divide by 100. Use `prepaid_balance_cents`. The remaining balance from prepaid commits (top-ups).
410
+ *
411
+ * @deprecated
412
+ */
365
413
  prepaid_balance_micros?: number;
366
414
  };
415
+ /**
416
+ * Mixed units, deliberately. `spend_micros` here (and `cost_micros` on UsageBucket / UsageBreakdownRow) is genuinely MICROS -- 1/1,000,000 of the currency unit -- because it comes from Metronome's usage figures. The `balance` breakdown below is CENTS, and its `*_micros` names are a misnomer; use its `*_cents` fields.
417
+ */
367
418
  export type UsageSummary = {
368
419
  balance?: UsageBalance;
420
+ /**
421
+ * Total gross spend over the range, in microamount (1/1,000,000 of the currency unit). Genuinely micros, unlike the balance breakdown.
422
+ */
369
423
  spend_micros: number;
370
424
  };
425
+ /**
426
+ * Present, with empty groups, buckets and breakdown, when the requested grouping is not served for this workspace. Render as unavailable, not as zero spend.
427
+ */
428
+ export type UsageNotAvailable = {
429
+ reason: 'no_attribution_source';
430
+ };
431
+ export type UsageGroupLabel = {
432
+ /**
433
+ * Human-readable name for the key: a person's name, a product line's label, or the key's owner and prefix.
434
+ */
435
+ display_name?: string;
436
+ /**
437
+ * The value as it appears in `groups`, `buckets` and `breakdown`.
438
+ */
439
+ key: string;
440
+ /**
441
+ * Only for `source` when the key is known to this workspace.
442
+ */
443
+ key_name?: string;
444
+ /**
445
+ * Only for `source` when kind is `api_key`.
446
+ */
447
+ key_prefix?: string;
448
+ /**
449
+ * Only for `source`.
450
+ */
451
+ kind?: 'api_key' | 'session' | 'deployment';
452
+ /**
453
+ * Only for `source` when the key's owner is known.
454
+ */
455
+ owner_display_name?: string;
456
+ /**
457
+ * Only for `source` when the key is known to this workspace.
458
+ */
459
+ owner_user_id?: string;
460
+ };
371
461
  export type UsageBucket = {
372
462
  cost_micros: number;
373
463
  group_key: string;
@@ -500,6 +590,10 @@ export type ToolCallSummary = {
500
590
  * This tool-call row's own primary key.
501
591
  */
502
592
  id: string;
593
+ /**
594
+ * Mirrors agent_tool_calls.prompt_id at read time. This is the exact-attempt ownership signal an eval driver needs to prove which job a given turn submitted — a model-authored result string, workflow id, or URL in the assistant's final text is not equivalent evidence. It is parsed from the comfy-cli runner's stdout envelope and never cross-checked against the job table, so it is proof of turn-to-job submission only, not proof the job completed or that any output URL belongs to it; a consumer must still authenticate job detail and bind the artifact to this id. Absence does NOT prove no job was submitted: most tool calls never submit one, but a call that submitted a job and then errored (for example while polling) also omits this field, as does any row outside the history window.
595
+ */
596
+ job_id?: string;
503
597
  started_at?: string;
504
598
  /**
505
599
  * 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.
@@ -590,7 +684,7 @@ export type TasksListResponse = {
590
684
  */
591
685
  export type TaskEntry = {
592
686
  /**
593
- * When task completed or failed (null if not finished)
687
+ * When task completed, failed, or was cancelled (null if not finished)
594
688
  */
595
689
  completed_at?: string;
596
690
  /**
@@ -608,7 +702,7 @@ export type TaskEntry = {
608
702
  /**
609
703
  * Current task status
610
704
  */
611
- status: 'created' | 'running' | 'completed' | 'failed';
705
+ status: 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
612
706
  /**
613
707
  * Task type name (e.g., model_upload)
614
708
  */
@@ -657,7 +751,7 @@ export type TaskResponse = {
657
751
  /**
658
752
  * Current task status
659
753
  */
660
- status: 'created' | 'running' | 'completed' | 'failed';
754
+ status: 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
661
755
  /**
662
756
  * Task type name (e.g., model_upload)
663
757
  */
@@ -809,6 +903,17 @@ export type SubscriptionDiscount = {
809
903
  *
810
904
  */
811
905
  name?: string;
906
+ /**
907
+ * How long the discount applies, as the checkout should state it.
908
+ * this_payment: a one-time code on a change to a monthly plan, which
909
+ * covers only today's charge. first_month / first_year: a one-time
910
+ * code on a new monthly or yearly subscription, or on a change to a
911
+ * yearly plan. months: a repeating discount, for duration_in_months
912
+ * months. ongoing: a forever discount. Absent when the term is not
913
+ * known.
914
+ *
915
+ */
916
+ term?: 'this_payment' | 'first_month' | 'first_year' | 'months' | 'ongoing';
812
917
  };
813
918
  /**
814
919
  * Response after successfully subscribing to a billing plan.
@@ -1150,6 +1255,20 @@ export type SavedPaymentMethod = {
1150
1255
  last4?: string;
1151
1256
  type: string;
1152
1257
  };
1258
+ export type SsoDiscoverResponse = {
1259
+ /**
1260
+ * Display name of the organization, when `sso` is true
1261
+ */
1262
+ organization_name?: string;
1263
+ /**
1264
+ * When `sso` is true: whether the organization requires SSO (true) or only offers it (false, an organization in optional mode, whose people keep their other sign-ins). Absent means required.
1265
+ */
1266
+ required?: boolean;
1267
+ /**
1268
+ * The email signs in through its organization's SSO
1269
+ */
1270
+ sso: boolean;
1271
+ };
1153
1272
  /**
1154
1273
  * Response after signing out of all devices
1155
1274
  */
@@ -1159,6 +1278,77 @@ export type RevokeAllSessionsResponse = {
1159
1278
  */
1160
1279
  revoked: number;
1161
1280
  };
1281
+ /**
1282
+ * Response after accepting a scheduled-change revert.
1283
+ */
1284
+ export type RevertScheduledChangeResponse = {
1285
+ billing_op_id: string;
1286
+ /**
1287
+ * `pending`: poll GET /api/billing/ops/{id}.
1288
+ */
1289
+ status: 'reverted' | 'pending';
1290
+ };
1291
+ /**
1292
+ * Request body for undoing a pending scheduled plan change.
1293
+ */
1294
+ export type RevertScheduledChangeRequest = {
1295
+ idempotency_key?: string;
1296
+ };
1297
+ /**
1298
+ * Present only when the session's arm is an offer. Terms come from the server catalog.
1299
+ */
1300
+ export type RetentionOffer = {
1301
+ duration_in_months: number;
1302
+ id: string;
1303
+ percent_off: number;
1304
+ };
1305
+ export type RetentionFlowSubscription = {
1306
+ currency: string;
1307
+ /**
1308
+ * Unix seconds of the next renewal.
1309
+ */
1310
+ period_end: number;
1311
+ quantity: number;
1312
+ /**
1313
+ * Recurring unit price in the currency's smallest unit.
1314
+ */
1315
+ unit_amount: number;
1316
+ };
1317
+ export type RetentionFlowResponse = {
1318
+ /**
1319
+ * The PostHog arm: control or a retention offer ID. Absent when the
1320
+ * subscription is ineligible or the owner is outside the experiment.
1321
+ *
1322
+ */
1323
+ experiment_variant?: string;
1324
+ /**
1325
+ * Unix seconds; reopen cancellation to refresh the offer after expiry.
1326
+ */
1327
+ expires_at: number;
1328
+ offer?: RetentionOffer;
1329
+ session_id: string;
1330
+ subscription: RetentionFlowSubscription;
1331
+ };
1332
+ export type RetentionFlowEventRequest = {
1333
+ /**
1334
+ * flow_opened is reported at the same point for every arm.
1335
+ */
1336
+ event: 'flow_opened' | 'offer_shown';
1337
+ session_id: string;
1338
+ };
1339
+ export type RetentionAcceptance = {
1340
+ billing_op_id: string;
1341
+ /**
1342
+ * Show success only once this is succeeded; otherwise poll the billing operation.
1343
+ */
1344
+ status: 'pending' | 'succeeded';
1345
+ };
1346
+ export type RetentionAcceptRequest = {
1347
+ /**
1348
+ * Server-issued session; carries no client-selected coupon or variant.
1349
+ */
1350
+ session_id: string;
1351
+ };
1162
1352
  /**
1163
1353
  * Response after accepting a resubscribe request.
1164
1354
  */
@@ -1188,7 +1378,7 @@ export type ResubscribeRequest = {
1188
1378
  idempotency_key?: string;
1189
1379
  };
1190
1380
  /**
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.
1381
+ * 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, or on the legacy_stripe billing rail while billing_status is payment_failed and its legacy subscription is past_due or unpaid, and not while a payment for it is processing. hosted_invoice_url is a bearer payment link.
1192
1382
  */
1193
1383
  export type RenewalInvoice = {
1194
1384
  /**
@@ -1494,10 +1684,26 @@ export type PreviewSubscribeResponse = {
1494
1684
  * Amount to charge today in cents (0 for downgrades)
1495
1685
  */
1496
1686
  cost_today_cents: number;
1687
+ /**
1688
+ * Credits granted at the next billing period, as a whole credit count,
1689
+ * resolved the same way as credits_today. Absent when the quote was not
1690
+ * priced against Stripe.
1691
+ *
1692
+ */
1693
+ credits_next_period?: number;
1497
1694
  /**
1498
1695
  * Credits that will be granted at next billing period in cents
1499
1696
  */
1500
1697
  credits_next_period_cents: number;
1698
+ /**
1699
+ * Credits granted today, as a whole credit count. Resolved from the
1700
+ * Stripe price metadata by the same rule the invoice grant uses, so it
1701
+ * equals credits_added on the succeeded operation. Display this rather
1702
+ * than converting credits_today_cents, which rounds. Absent when the
1703
+ * quote was not priced against Stripe.
1704
+ *
1705
+ */
1706
+ credits_today?: number;
1501
1707
  /**
1502
1708
  * Credits granted today in cents (prorated for mid-period upgrades)
1503
1709
  */
@@ -1537,6 +1743,26 @@ export type PreviewSubscribeResponse = {
1537
1743
  *
1538
1744
  */
1539
1745
  proration_at?: string;
1746
+ /**
1747
+ * Stripe's prorated charge for the rest of the current period on the
1748
+ * new plan, before discounts. In embedded checkout, present on an
1749
+ * immediate plan change that Stripe prorates, when every discount on
1750
+ * today's invoice is itemized in discounts or none applies; absent on
1751
+ * the monthly-to-yearly reset, scheduled changes and a first
1752
+ * subscription.
1753
+ * When present, proration_remaining_cents minus proration_unused_cents
1754
+ * is the invoice's proration before discounts; other invoice lines are
1755
+ * not itemized.
1756
+ *
1757
+ */
1758
+ proration_remaining_cents?: number;
1759
+ /**
1760
+ * Stripe's credit for unused time on the old plan, as a positive
1761
+ * amount to subtract. Present exactly when proration_remaining_cents
1762
+ * is.
1763
+ *
1764
+ */
1765
+ proration_unused_cents?: number;
1540
1766
  /**
1541
1767
  * Opaque short-lived quote identifier to echo on Subscribe.
1542
1768
  */
@@ -1609,12 +1835,37 @@ export type PreviewPlanInfo = {
1609
1835
  duration: SubscriptionDuration;
1610
1836
  /**
1611
1837
  * The plan's price for one billing period before invoice-level
1612
- * discounts, as rated by Stripe. Present only on new_plan of
1838
+ * discounts, as rated by Stripe: the compare-at price a checkout
1839
+ * strikes through beside price_cents. Present only on new_plan of
1613
1840
  * Stripe-rated quotes that itemize every applied discount in
1614
- * discounts.
1841
+ * discounts, and only when it is above price_cents, so a client
1842
+ * shows the strikethrough exactly when this field is present.
1843
+ * Same basis as price_cents: the whole subscription for one
1844
+ * billing period. No plan on sale is priced by seat (personal plans
1845
+ * are one seat; Team is priced by its credit stop), so the seat
1846
+ * count changes neither.
1615
1847
  *
1616
1848
  */
1617
1849
  list_price_cents?: number;
1850
+ /**
1851
+ * list_price_cents divided by 12 and rounded half up to the nearest
1852
+ * cent, for showing a yearly plan's pre-discount per-month price.
1853
+ * Display only, like monthly_price_cents. Present exactly when
1854
+ * list_price_cents is present on an ANNUAL new_plan, so a client
1855
+ * strikes it through beside monthly_price_cents whenever it is
1856
+ * present.
1857
+ *
1858
+ */
1859
+ monthly_list_price_cents?: number;
1860
+ /**
1861
+ * price_cents divided by 12 and rounded half up to the nearest cent,
1862
+ * for showing a yearly plan as a per-month price. Display only: the
1863
+ * yearly charge is still price_cents, and 12 times this value can
1864
+ * differ from it by up to 6 cents. Present only on new_plan, and only
1865
+ * when duration is ANNUAL.
1866
+ *
1867
+ */
1868
+ monthly_price_cents?: number;
1618
1869
  /**
1619
1870
  * Current billing period end (only for current_plan)
1620
1871
  */
@@ -1916,6 +2167,10 @@ export type ErrorResponse = {
1916
2167
  [key: string]: unknown;
1917
2168
  };
1918
2169
  message: string;
2170
+ /**
2171
+ * On `sso_required`: the SSO organization the caller must sign in with (its WorkOS id, `org_...`), the value `GET /api/auth/sso/start?organization=` takes: the organization that owns the account's email domain, else the workspace's. Absent when no sign-in would admit the caller (an account another organization holds, in an SSO organization's workspace), when unknown, and on every other code.
2172
+ */
2173
+ organization_id?: string;
1919
2174
  };
1920
2175
  /**
1921
2176
  * OAuth 2.1 protected-resource metadata (RFC 9728).
@@ -1945,6 +2200,17 @@ export type OAuthConsentChallenge = {
1945
2200
  * Human-readable name of the OAuth client requesting authorization, from oauth_clients.display_name.
1946
2201
  */
1947
2202
  client_display_name: string;
2203
+ /**
2204
+ * Whether the client requesting authorization is a seeded first-party
2205
+ * client (`first_party`) or was created through RFC 7591 dynamic client
2206
+ * registration (`dynamic`). Derived from the client_id: every dynamically
2207
+ * registered client carries the `comfy-dyn-` prefix. `client_display_name`
2208
+ * on a `dynamic` client is registrant-supplied and unverified; the consent
2209
+ * UI must present it as such. Consumers must treat an absent value as
2210
+ * `dynamic`.
2211
+ *
2212
+ */
2213
+ client_provenance: 'first_party' | 'dynamic';
1948
2214
  /**
1949
2215
  * Per-row CSRF token bound to this authorization request (not to the session). Must be echoed back on POST.
1950
2216
  */
@@ -2104,7 +2370,7 @@ export type ModelFile = {
2104
2370
  */
2105
2371
  export type Member = {
2106
2372
  /**
2107
- * User's email address
2373
+ * User's email address, or an empty string if none is on file.
2108
2374
  */
2109
2375
  email: string;
2110
2376
  /**
@@ -2119,6 +2385,10 @@ export type Member = {
2119
2385
  * When the user joined the workspace
2120
2386
  */
2121
2387
  joined_at: string;
2388
+ /**
2389
+ * The member's role comes from their organization's directory (SSO): it is changed in the organization's identity provider, and a role change here is refused.
2390
+ */
2391
+ managed_by_directory?: boolean;
2122
2392
  /**
2123
2393
  * User's display name
2124
2394
  */
@@ -2142,6 +2412,16 @@ export type MediaBadRequestError = ErrorResponse | MediaQueryError;
2142
2412
  * Paginated list of workspaces the authenticated user belongs to.
2143
2413
  */
2144
2414
  export type ListWorkspacesResponse = {
2415
+ /**
2416
+ * Whether `POST /api/workspaces` accepts this account. False for an
2417
+ * account an SSO organization holds (its email is on the
2418
+ * organization's verified domains): the organization manages its
2419
+ * workspaces, and signing in again does not change it. Lets a client
2420
+ * disable workspace creation up front instead of after the request
2421
+ * is refused with 403 `FORBIDDEN`.
2422
+ *
2423
+ */
2424
+ can_create_workspace: boolean;
2145
2425
  workspaces: Array<WorkspaceWithRole>;
2146
2426
  };
2147
2427
  /**
@@ -2578,6 +2858,44 @@ export type JobDetailResponse = {
2578
2858
  * Count of outputs classified as previewable media types (images, video, audio, 3D, text) — a subset of outputs_count (omitted for non-terminal states)
2579
2859
  */
2580
2860
  previewable_outputs_count?: number;
2861
+ /**
2862
+ * 1-based position of this job among the caller's OWN jobs held
2863
+ * behind the same concurrency cap (same user, workspace and auth
2864
+ * method), in the dispatcher's admission order — i.e. the number of
2865
+ * the caller's own capped jobs that will be admitted before this
2866
+ * one, plus one. It is NOT a fleet-wide queue position and says
2867
+ * nothing about other users' jobs. (For an admin reading someone
2868
+ * else's job, the set is that job owner's, not the admin's — the
2869
+ * same scoping `workspace_id`/`user_id` already describe.)
2870
+ *
2871
+ * Null unless `queue_reason` is `concurrency_limit`. May also be
2872
+ * null in that state on the rare rows whose admission ordering
2873
+ * cannot be determined (no recorded state-change timestamp), or if
2874
+ * the count query fails — a missing position never fails the
2875
+ * request.
2876
+ *
2877
+ */
2878
+ queue_position?: number | null;
2879
+ /**
2880
+ * Why a still-queued job has not started yet. Present only while
2881
+ * `status` is `pending`; null for every other status.
2882
+ *
2883
+ * `status` deliberately folds every waiting state into `pending`
2884
+ * (the frontend's filter categories depend on that), so this field
2885
+ * is the one that tells the two kinds of waiting apart:
2886
+ *
2887
+ * - `concurrency_limit` — the job is held behind the caller's OWN
2888
+ * per-user/per-auth-method concurrent-job cap. Nothing in the
2889
+ * fleet is blocking it; the caller's other running jobs are.
2890
+ * - `capacity` — the job is past that cap and admitted, and is now
2891
+ * waiting for an inference worker to become free.
2892
+ *
2893
+ * Detail-only: this field is NOT present on the list view's
2894
+ * `JobEntry`, because deriving `queue_position` for a page of jobs
2895
+ * would cost one extra query per row.
2896
+ *
2897
+ */
2898
+ queue_reason?: 'concurrency_limit' | 'capacity';
2581
2899
  /**
2582
2900
  * User-friendly job status
2583
2901
  */
@@ -3096,7 +3414,7 @@ export type HistoryDetailResponse = {
3096
3414
  [key: string]: HistoryDetailEntry;
3097
3415
  };
3098
3416
  /**
3099
- * History entry with full prompt data
3417
+ * History entry with full prompt data. The workflow graph (extra_data.extra_pnginfo) is omitted from records persisted after it stopped being stored; older records may still contain it.
3100
3418
  */
3101
3419
  export type HistoryDetailEntry = {
3102
3420
  /**
@@ -3116,7 +3434,7 @@ export type HistoryDetailEntry = {
3116
3434
  */
3117
3435
  prompt?: {
3118
3436
  /**
3119
- * Additional execution data
3437
+ * Additional execution data. extra_pnginfo (the workflow graph) is omitted from records persisted after it stopped being stored; older records may still contain it.
3120
3438
  */
3121
3439
  extra_data?: {
3122
3440
  [key: string]: unknown;
@@ -3969,6 +4287,20 @@ export type BillingOpStatusResponse = {
3969
4287
  *
3970
4288
  */
3971
4289
  authentication_state?: 'requires_action' | 'processing' | 'failed_retryable' | 'succeeded' | 'reconciliation_needed';
4290
+ /**
4291
+ * true exactly when POST /api/billing/ops/{id}/cancel would deliver
4292
+ * the abandon for this caller: a pending plan change or initial
4293
+ * subscription whose workflow is waiting on the customer's
4294
+ * authentication. An already-canceled operation is false even though
4295
+ * the cancel call still answers 200 for it. Decided by the same
4296
+ * check the cancel endpoint runs, so clients must not derive it from
4297
+ * status, phase or authentication_state. false for terminal
4298
+ * operations, other operation types and callers who may not cancel.
4299
+ * Absent when it could not be determined; absent means no claim.
4300
+ *
4301
+ */
4302
+ cancelable?: boolean;
4303
+ charge_breakdown?: BillingOpChargeBreakdown;
3972
4304
  /**
3973
4305
  * When the operation completed (success or failure)
3974
4306
  */
@@ -4048,14 +4380,111 @@ export type BillingOpStatusResponse = {
4048
4380
  };
4049
4381
  /**
4050
4382
  * 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.
4383
+ * the plan it switches to at period end. Present for plan changes,
4384
+ * initial subscriptions and resubscribes in every status (pending,
4385
+ * failed and succeeded alike), so a recovered pending operation can be
4386
+ * labelled with its own plan. Absent when the target plan could not be
4387
+ * resolved. Visible to any workspace member who can read the operation.
4388
+ * tier and the price fields are absent when the server cannot describe
4389
+ * the plan, as for the retired seat-based Team plans, whose rows carry a
4390
+ * personal tier and whose price depends on the workspace's seats.
4054
4391
  *
4055
4392
  */
4056
4393
  export type BillingOpReceiptPlan = {
4394
+ /**
4395
+ * ISO 4217 currency of price_cents, lowercase (e.g. usd). Present
4396
+ * exactly when price_cents is present.
4397
+ *
4398
+ */
4399
+ currency?: string;
4057
4400
  duration: SubscriptionDuration;
4401
+ /**
4402
+ * price_cents divided by 12 and rounded half up to the nearest cent,
4403
+ * as on the subscribe preview's new_plan. Display only. Present
4404
+ * exactly when price_cents is present on an ANNUAL plan.
4405
+ *
4406
+ */
4407
+ monthly_price_cents?: number;
4408
+ /**
4409
+ * The plan's recurring price for one billing period, at
4410
+ * team_credit_stop_id for a per-credit Team plan: a whole year for
4411
+ * ANNUAL. The same figure as new_plan.price_cents on the subscribe
4412
+ * preview, before tax, promotions, account balance and proration,
4413
+ * so it is not what the operation charged; amount_charged_cents is.
4414
+ * Present together with currency, and absent when the plan could
4415
+ * not be priced, including the retired seat-based Team plans.
4416
+ *
4417
+ */
4418
+ price_cents?: number;
4058
4419
  slug: string;
4420
+ /**
4421
+ * The per-credit Team credit stop the operation targets (e.g.
4422
+ * team_200). Absent for personal plans and for Team plans without a
4423
+ * credit stop.
4424
+ *
4425
+ */
4426
+ team_credit_stop_id?: string;
4427
+ tier?: SubscriptionTier;
4428
+ };
4429
+ /**
4430
+ * One deduction from today's charge. discount is the promotion in the
4431
+ * quote's discount shape (kind promotion, without amount_off_cents; the
4432
+ * amount is amount_cents), present exactly for promo_code and
4433
+ * subscription_discount. Its duration_in_months is set only for
4434
+ * promo_code: a carried promotion's remaining term is not the coupon's.
4435
+ *
4436
+ */
4437
+ export type BillingOpChargeReason = {
4438
+ /**
4439
+ * What this reason removed from today's charge, as a positive amount.
4440
+ */
4441
+ amount_cents: number;
4442
+ discount?: SubscriptionDiscount;
4443
+ /**
4444
+ * promo_code is the promotion code entered for this operation;
4445
+ * subscription_discount is a promotion the subscription already
4446
+ * carried; account_balance is existing customer credit applied.
4447
+ *
4448
+ */
4449
+ kind: 'promo_code' | 'subscription_discount' | 'account_balance';
4450
+ };
4451
+ /**
4452
+ * Display only. Why a succeeded subscription operation charged other
4453
+ * than its plan rate, read from the operation's paid Stripe invoice.
4454
+ * Present only when that invoice collected more than zero and a
4455
+ * promotion, the account balance or proration moved the charge off the
4456
+ * plan rate; absent means no rows. Plan coupons (the annual or team
4457
+ * commitment rate) are part of the rate and are never a reason. Never
4458
+ * present for top-ups. Returned only to workspace billing managers,
4459
+ * like amount_charged_cents.
4460
+ *
4461
+ */
4462
+ export type BillingOpChargeBreakdown = {
4463
+ /**
4464
+ * What the invoice collected, tax included.
4465
+ */
4466
+ amount_charged_cents: number;
4467
+ currency: string;
4468
+ /**
4469
+ * The invoice billed the new plan for the rest of the current
4470
+ * period. A prorated charge is named, never itemized, so reasons is
4471
+ * empty exactly when this is true.
4472
+ *
4473
+ */
4474
+ prorated: boolean;
4475
+ /**
4476
+ * One row per deduction from today's charge, in display order:
4477
+ * promotions in the invoice's order, then the account balance.
4478
+ *
4479
+ */
4480
+ reasons: Array<BillingOpChargeReason>;
4481
+ };
4482
+ export type BillingOpCancelResponse = {
4483
+ billing_op_id: string;
4484
+ /**
4485
+ * canceled: the operation was dropped and nothing was charged. cancel_requested: the cancel was delivered but has not settled yet.
4486
+ */
4487
+ status: 'canceled' | 'cancel_requested';
4059
4488
  };
4060
4489
  /**
4061
4490
  * Paginated list of billing events for a workspace.
@@ -4159,11 +4588,48 @@ export type BillingCapabilityRolloutDefaults = {
4159
4588
  can_subscribe_self_serve: boolean;
4160
4589
  can_top_up: boolean;
4161
4590
  };
4591
+ /**
4592
+ * Why a capability resolved false, keyed by the capability. The value
4593
+ * names the policy branch that decided, not customer-facing wording: the
4594
+ * client owns the message.
4595
+ *
4596
+ * The invariant runs one way only. **Presence implies refusal**: a key is
4597
+ * present only alongside `capabilities.<key> == false`, reconciled before
4598
+ * the response is built, so a reason never accompanies a granted
4599
+ * capability. **Absence implies nothing** -- it means no recognised
4600
+ * explanation, not that the capability was granted. Consult
4601
+ * `capabilities`, which stays authoritative for what the client may offer.
4602
+ *
4603
+ * A key is absent for a refused capability whenever this service is
4604
+ * talking to a billing-api that predates the field, and whenever it drops
4605
+ * a reason it does not recognise rather than forwarding a value outside
4606
+ * the enum below. Both are supported states, so a client must never infer
4607
+ * a capability's value from a missing reason -- only from `capabilities`.
4608
+ *
4609
+ * This endpoint omits the entire `denied_reasons` object when no recognised
4610
+ * reason survives. The billing-api endpoint may emit `{}` for the same
4611
+ * logical state, so object presence must not be used to detect support.
4612
+ *
4613
+ */
4614
+ export type BillingCapabilityDenials = {
4615
+ /**
4616
+ * not_a_member is unreachable through this endpoint -- a non-member is
4617
+ * answered 403 before capabilities resolve. subscription_not_started
4618
+ * is a subscription row reserved before payment that never began.
4619
+ * subscription_change_in_progress means the current subscription
4620
+ * already has a successor scheduled for a future billing boundary.
4621
+ * subscription_status_unrecognized is the server having no guidance
4622
+ * for the row, as distinct from a deliberate refusal.
4623
+ *
4624
+ */
4625
+ can_subscribe_self_serve?: 'not_a_member' | 'not_workspace_owner' | 'tier_not_self_serve' | 'subscription_not_started' | 'subscription_change_in_progress' | 'subscription_status_unrecognized';
4626
+ };
4162
4627
  /**
4163
4628
  * Effective billing UI guidance for one authenticated user and workspace.
4164
4629
  */
4165
4630
  export type BillingCapabilitiesResponse = {
4166
4631
  capabilities: BillingCapabilities;
4632
+ denied_reasons?: BillingCapabilityDenials;
4167
4633
  /**
4168
4634
  * Time after which the client must refetch this snapshot.
4169
4635
  */
@@ -4178,6 +4644,14 @@ export type BillingCapabilitiesResponse = {
4178
4644
  */
4179
4645
  revision: number;
4180
4646
  rollout_defaults_applied: BillingCapabilityRolloutDefaults;
4647
+ /**
4648
+ * Whether a missing subscription row authoritatively means the
4649
+ * workspace has no paid plan. False means a legacy Stripe plan may
4650
+ * exist outside the local projection. The field is absent when
4651
+ * talking to a billing-api version that predates this signal.
4652
+ *
4653
+ */
4654
+ subscription_state_authoritative?: boolean;
4181
4655
  };
4182
4656
  /**
4183
4657
  * Conservative UI guidance. These values do not authorize billing writes;
@@ -4190,19 +4664,35 @@ export type BillingCapabilities = {
4190
4664
  can_downgrade_to_personal: boolean;
4191
4665
  can_invite_members: boolean;
4192
4666
  can_reactivate: boolean;
4667
+ /**
4668
+ * Stripe-billed only; false within 1 hour of the change.
4669
+ */
4670
+ can_revert_scheduled_change: boolean;
4193
4671
  can_subscribe_self_serve: boolean;
4194
4672
  can_top_up: boolean;
4195
4673
  };
4196
4674
  /**
4197
- * Current credit balance and usage details for a workspace.
4675
+ * Current credit balance and usage details for a workspace. Every amount here is CENTS of `currency`. The `*_micros` fields are a misnamed legacy set kept for wire compatibility; the `*_cents` fields beside them carry the identical values under honest names. `amount_micros` stays required and `amount_cents` is optional so existing strict clients are unaffected.
4198
4676
  */
4199
4677
  export type BillingBalanceResponse = {
4200
4678
  /**
4201
- * The total remaining balance in microamount (1/1,000,000 of the currency unit)
4679
+ * The total remaining balance. Cents of `currency`, the same value as `amount_micros`, which is misnamed. A fractional `number`, deliberately not the integer-cents convention other `*_cents` fields in this spec use -- do not decode it as an integer.
4680
+ */
4681
+ amount_cents?: number;
4682
+ /**
4683
+ * DEPRECATED misnomer: this value is CENTS, not micros. Divide by 100. Use `amount_cents`. The total remaining balance.
4684
+ *
4685
+ * @deprecated
4202
4686
  */
4203
4687
  amount_micros: number;
4204
4688
  /**
4205
- * The remaining balance from cloud credits in microamount
4689
+ * The remaining balance from cloud credits (subscription). Cents of `currency`, the same value as `cloud_credit_balance_micros`, which is misnamed. A fractional `number`, deliberately not the integer-cents convention other `*_cents` fields in this spec use -- do not decode it as an integer.
4690
+ */
4691
+ cloud_credit_balance_cents?: number;
4692
+ /**
4693
+ * DEPRECATED misnomer: this value is CENTS, not micros. Divide by 100. Use `cloud_credit_balance_cents`. The remaining balance from cloud credits (subscription).
4694
+ *
4695
+ * @deprecated
4206
4696
  */
4207
4697
  cloud_credit_balance_micros?: number;
4208
4698
  /**
@@ -4210,18 +4700,77 @@ export type BillingBalanceResponse = {
4210
4700
  */
4211
4701
  currency: string;
4212
4702
  /**
4213
- * The effective balance (total balance minus pending charges). Can be negative if pending charges exceed the balance.
4703
+ * False when pending charges could not be read. effective_balance_* and pending_charges_* are then omitted, because total minus an unread pending amount would overstate spendable credit. Present on every 200: the zero-balance response for an unprovisioned workspace reports true, because no draft-invoice read happened there to fail. Treat an absent flag as "server predates this field", not as false.
4704
+ */
4705
+ effective_balance_authoritative?: boolean;
4706
+ /**
4707
+ * The total balance minus pending charges; negative when charges exceed credit. Cents of `currency`, the same value as `effective_balance_micros`, which is misnamed. A fractional `number`, deliberately not the integer-cents convention other `*_cents` fields in this spec use -- do not decode it as an integer.
4708
+ */
4709
+ effective_balance_cents?: number;
4710
+ /**
4711
+ * DEPRECATED misnomer: this value is CENTS, not micros. Divide by 100. Use `effective_balance_cents`. The total balance minus pending charges; negative when charges exceed credit.
4712
+ *
4713
+ * @deprecated
4214
4714
  */
4215
4715
  effective_balance_micros?: number;
4216
4716
  /**
4217
- * The total amount of pending/unbilled charges from draft invoices in microamount
4717
+ * Pending/unbilled charges from draft invoices. Cents of `currency`, the same value as `pending_charges_micros`, which is misnamed. A fractional `number`, deliberately not the integer-cents convention other `*_cents` fields in this spec use -- do not decode it as an integer.
4718
+ */
4719
+ pending_charges_cents?: number;
4720
+ /**
4721
+ * DEPRECATED misnomer: this value is CENTS, not micros. Divide by 100. Use `pending_charges_cents`. Pending/unbilled charges from draft invoices.
4722
+ *
4723
+ * @deprecated
4218
4724
  */
4219
4725
  pending_charges_micros?: number;
4220
4726
  /**
4221
- * The remaining balance from prepaid commits in microamount
4727
+ * The remaining balance from prepaid commits (top-ups). Cents of `currency`, the same value as `prepaid_balance_micros`, which is misnamed. A fractional `number`, deliberately not the integer-cents convention other `*_cents` fields in this spec use -- do not decode it as an integer.
4728
+ */
4729
+ prepaid_balance_cents?: number;
4730
+ /**
4731
+ * DEPRECATED misnomer: this value is CENTS, not micros. Divide by 100. Use `prepaid_balance_cents`. The remaining balance from prepaid commits (top-ups).
4732
+ *
4733
+ * @deprecated
4222
4734
  */
4223
4735
  prepaid_balance_micros?: number;
4224
4736
  };
4737
+ export type AuthenticateResponse = {
4738
+ /**
4739
+ * Seconds until the session ends, when `method` is `session`
4740
+ */
4741
+ expires_in?: number;
4742
+ /**
4743
+ * `sso`: go to `start_url`. `password`: ask for the password. `session`: signed in; the web session cookie is set. `firebase`: the password is right but this account still signs in with Firebase on the client.
4744
+ */
4745
+ method: 'sso' | 'password' | 'session' | 'firebase';
4746
+ /**
4747
+ * The SSO organization's display name, when `method` is `sso`
4748
+ */
4749
+ organization_name?: string;
4750
+ /**
4751
+ * Path that starts the organization's SSO, when `method` is `sso`; add `return_to`
4752
+ */
4753
+ start_url?: string;
4754
+ };
4755
+ export type AuthenticateRequest = {
4756
+ email: string;
4757
+ /**
4758
+ * Omit to only ask where the email signs in
4759
+ */
4760
+ password?: string;
4761
+ };
4762
+ export type AuthenticateRefusal = {
4763
+ code: string;
4764
+ message: string;
4765
+ /**
4766
+ * The SSO organization to sign in with, for `sso_required` when it is known; the value `GET /api/auth/sso/start?organization=` takes
4767
+ */
4768
+ organization_id?: string;
4769
+ /**
4770
+ * Path that starts the organization's SSO, for `sso_required`
4771
+ */
4772
+ start_url?: string;
4773
+ };
4225
4774
  /**
4226
4775
  * Response returned when an existing asset is successfully updated.
4227
4776
  */
@@ -4328,7 +4877,7 @@ export type AssetDownloadResponse = {
4328
4877
  /**
4329
4878
  * Current task status
4330
4879
  */
4331
- status: 'created' | 'running' | 'completed' | 'failed';
4880
+ status: 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
4332
4881
  /**
4333
4882
  * Task ID for tracking download progress via GET /api/tasks/{task_id}
4334
4883
  */
@@ -4499,14 +5048,39 @@ export type AgentRunMode = {
4499
5048
  */
4500
5049
  mode: 'ask_approval' | 'auto' | 'auto_limited';
4501
5050
  };
5051
+ /**
5052
+ * The `context` of a `run_approval` ask. Ids and a display name, never the user's prose.
5053
+ */
5054
+ export type AgentRunApprovalContext = {
5055
+ /**
5056
+ * The workflow the run will execute.
5057
+ */
5058
+ workflow_id: string;
5059
+ /**
5060
+ * The workflow's display name, when the turn knows it.
5061
+ */
5062
+ workflow_name?: string;
5063
+ };
4502
5064
  /**
4503
5065
  * A user turn posted to the agent.
4504
5066
  */
4505
5067
  export type AgentPostMessageRequest = {
5068
+ /**
5069
+ * The ask cards this client can render. `run_approval` is the run consent card, `ask_user` the generic question card, and `delete_approval` the delete consent card. A turn only parks on a card its client listed here. Omitted means an older client and is read as `["run_approval"]`; an empty array means the client renders none. Per kind: without `run_approval`, a run that the user's run mode requires approval for is not parked and not executed; the `run` tool fails with `run_approval_unavailable` and the agent tells the user to approve it from a client that can, or run it themselves. Without `ask_user`, the agent asks its question in the reply instead of a card. `delete_approval` raises no card yet. Unknown values are ignored, duplicates collapse, and only the first 8 entries are read. `paused` is not negotiated: the pause card is raised for every client, so listing it changes nothing.
5070
+ */
5071
+ ask_kinds?: Array<AgentAskKind>;
4506
5072
  /**
4507
5073
  * Optional input filenames the client already uploaded to the ComfyUI input namespace (via /api/upload/image, which returns the {name, subfolder, type} reference). Images, video and audio are all accepted. The agent wires them into the workflow by filename — it never receives file bytes here, and reads an attachment's contents through its own asset tools when a request depends on them.
4508
5074
  */
4509
5075
  attachments?: Array<string>;
5076
+ /**
5077
+ * The client's live ComfyUI WebSocket clientId (the `sid` the server hands back on the socket's first status message). Local runs the agent submits on the caller's behalf are submitted under this id, so ComfyUI addresses their execution events — node highlights, progress and outputs — to this client instead of to the short-lived CLI socket that submitted them. Additive and advisory; omitting it restores the previous behaviour, where an agent-started run leaves the canvas with no execution feedback. Ignored on the cloud target, which fans execution events out per user/workspace regardless of submitter. A value that could not be a ComfyUI socket id is DROPPED, not rejected — no turn fails over it — so an id longer than 128 bytes, or one containing whitespace or non-printable characters, or one starting with `-`, is accepted with 202 and behaves exactly like omitting the field. Surrounding whitespace is trimmed.
5078
+ */
5079
+ client_id?: string;
5080
+ /**
5081
+ * Client-generated identifier for this send attempt. The frontend emits the same value on app:agent_message_sent; the agent echoes it on agent_turn_started so accepted turns can be joined to their originating sends without using timestamp proximity. Retries mint a new value. Older clients may omit it.
5082
+ */
5083
+ client_message_id?: string;
4510
5084
  /**
4511
5085
  * The user's message.
4512
5086
  */
@@ -4562,35 +5136,117 @@ export type AgentPostMessageRequest = {
4562
5136
  }>;
4563
5137
  };
4564
5138
  /**
4565
- * An unanswered ask attached to its assistant message, so a reload rehydrates the prompt from the ROW rather than from the agent_ask WebSocket event the client missed. Present only while the ask is pending; answer it via POST /agent/threads/{id}/asks/{ask_id}/answer.
5139
+ * Which card renders an ask. `ask_user` is the generic prompt raised by the ask_user tool. `run_approval` is the run consent card raised when the caller's ask_approval run mode gates a run: exactly the Run and Cancel options, never free text. `paused` is the admission pause card: one Resume option, never free text. `delete_approval` is the delete consent card for nodes the user made: exactly the Delete and Keep options, never free text. The same value is the agent_ask event's `kind`, the message list's `pending_ask.kind`, and an entry of `ask_kinds` on the message POST.
4566
5140
  */
4567
- export type AgentPendingAsk = {
4568
- /**
4569
- * When true the UI offers a free-text answer, returned as other_text.
4570
- */
4571
- allow_other: boolean;
4572
- ask_id: string;
4573
- /**
4574
- * Kind-specific renderer payload. For `run_approval`: `workflow_id`, and `workflow_name` when the workflow's display name is known. Omitted for `ask_user`. Carries ids and a display name, never the user's prose.
4575
- */
4576
- context?: {
4577
- [key: string]: unknown;
4578
- };
5141
+ export type AgentAskKind = 'ask_user' | 'run_approval' | 'paused' | 'delete_approval';
5142
+ /**
5143
+ * A pending `run_approval` consent card.
5144
+ */
5145
+ export type AgentPendingRunApproval = AgentPendingAskBase & {
5146
+ context: AgentRunApprovalContext;
5147
+ kind: 'run_approval';
5148
+ };
5149
+ export type AgentAskOption = {
5150
+ description?: string;
5151
+ id: string;
5152
+ label: string;
5153
+ };
5154
+ /**
5155
+ * The fields every pending ask carries, whatever its kind.
5156
+ */
5157
+ export type AgentPendingAskBase = {
4579
5158
  /**
4580
- * Which UI renders the ask. `ask_user` is the generic prompt raised by the ask_user tool. `run_approval` is the run consent card raised when the caller's ask_approval run mode gates a run: exactly the Run and Cancel options, never free text, with the workflow named in `context`. Same value as the agent_ask event's `kind`, so a reload rehydrates the identical widget.
5159
+ * When true the UI offers a free-text answer, returned as other_text.
4581
5160
  */
4582
- kind: 'ask_user' | 'run_approval';
5161
+ allow_other: boolean;
5162
+ ask_id: string;
5163
+ kind: AgentAskKind;
4583
5164
  max_selections: number;
4584
5165
  message_id: string;
4585
5166
  min_selections: number;
4586
5167
  /**
4587
- * Selectable options, each with an `id` and a `label`.
5168
+ * Selectable options.
4588
5169
  */
4589
- options: Array<{
4590
- [key: string]: unknown;
4591
- }>;
5170
+ options: Array<AgentAskOption>;
4592
5171
  prompt: string;
4593
5172
  };
5173
+ /**
5174
+ * A pending `paused` admission card.
5175
+ */
5176
+ export type AgentPendingPaused = AgentPendingAskBase & {
5177
+ context: AgentPausedContext;
5178
+ kind: 'paused';
5179
+ };
5180
+ /**
5181
+ * The `context` of a `paused` ask.
5182
+ */
5183
+ export type AgentPausedContext = {
5184
+ /**
5185
+ * The card copy (same as the ask's prompt).
5186
+ */
5187
+ message: string;
5188
+ /**
5189
+ * The binding policy reason, e.g. workspace_paused or no_funds.
5190
+ */
5191
+ reason: string;
5192
+ /**
5193
+ * When the turn rechecks admission on its own if nobody presses Resume, so Resume is a shortcut, not the only way out.
5194
+ */
5195
+ recheck_after_seconds: number;
5196
+ };
5197
+ /**
5198
+ * A pending `delete_approval` consent card.
5199
+ */
5200
+ export type AgentPendingDeleteApproval = AgentPendingAskBase & {
5201
+ context: AgentDeleteApprovalContext;
5202
+ kind: 'delete_approval';
5203
+ };
5204
+ /**
5205
+ * One node a `delete_approval` ask names, read from the turn's workflow.
5206
+ */
5207
+ export type AgentAskNodeRef = {
5208
+ /**
5209
+ * The node id in the workflow.
5210
+ */
5211
+ id: string;
5212
+ /**
5213
+ * The node's title, when it has one.
5214
+ */
5215
+ title?: string;
5216
+ /**
5217
+ * The node's class type, when the workflow names it.
5218
+ */
5219
+ type?: string;
5220
+ };
5221
+ /**
5222
+ * The `context` of a `delete_approval` ask: the user-made nodes the agent's delete would remove. The server always lists at least one node, and lists at most 50; any more are counted in `hidden_node_count`, so the card can say how many it did not list.
5223
+ */
5224
+ export type AgentDeleteApprovalContext = {
5225
+ action: 'delete_nodes';
5226
+ /**
5227
+ * Nodes the delete would remove past the 50 listed. Omitted when every node is listed.
5228
+ */
5229
+ hidden_node_count?: number;
5230
+ nodes: Array<AgentAskNodeRef>;
5231
+ };
5232
+ /**
5233
+ * A pending `ask_user` prompt. It carries no context.
5234
+ */
5235
+ export type AgentPendingAskUser = AgentPendingAskBase & {
5236
+ kind: 'ask_user';
5237
+ };
5238
+ /**
5239
+ * An unanswered ask attached to its assistant message, so a reload rehydrates the prompt from the ROW rather than from the agent_ask WebSocket event the client missed. Present only while the ask is pending; answer it via POST /agent/threads/{id}/asks/{ask_id}/answer. Discriminated on `kind`: narrowing on it gives the kind's `context` schema. The agent_ask WebSocket event's `data` is this same shape plus `thread_id`.
5240
+ */
5241
+ export type AgentPendingAsk = ({
5242
+ kind: 'ask_user';
5243
+ } & AgentPendingAskUser) | ({
5244
+ kind: 'run_approval';
5245
+ } & AgentPendingRunApproval) | ({
5246
+ kind: 'paused';
5247
+ } & AgentPendingPaused) | ({
5248
+ kind: 'delete_approval';
5249
+ } & AgentPendingDeleteApproval);
4594
5250
  /**
4595
5251
  * A persisted message in an agent thread.
4596
5252
  */
@@ -4620,6 +5276,13 @@ export type AgentMessage = {
4620
5276
  */
4621
5277
  workflow_id?: string;
4622
5278
  };
5279
+ /**
5280
+ * The (workspace, user) the agent service attributes the caller's requests to.
5281
+ */
5282
+ export type AgentIdentity = {
5283
+ user_id: string;
5284
+ workspace_id: string;
5285
+ };
4623
5286
  /**
4624
5287
  * Error body authored by the comfy-agent service and proxied verbatim through ingest. Errors raised by ingest itself (authentication, an unreachable agent service) use the standard ErrorResponse shape instead.
4625
5288
  */
@@ -4644,12 +5307,91 @@ export type AgentDraftSnapshot = {
4644
5307
  */
4645
5308
  version: number;
4646
5309
  };
5310
+ /**
5311
+ * A stop whose cancellation request did not land, or could not be confirmed as landed, on the durable engine. The turn is unaffected and still streaming, so the same request may be retried; cancellation is idempotent per turn. Distinct from the 500, which means the failure was one the service could not classify and a retry may never work.
5312
+ */
5313
+ export type AgentCancelUnconfirmed = {
5314
+ /**
5315
+ * `cancel_not_requested` — the engine positively reports no cancellation recorded against a run it can still see, so the stop provably did not land. `cancel_outcome_unknown` — neither answer could be established; the stop may or may not have landed.
5316
+ */
5317
+ code: 'cancel_not_requested' | 'cancel_outcome_unknown';
5318
+ /**
5319
+ * Human-readable error message.
5320
+ */
5321
+ error: string;
5322
+ /**
5323
+ * Always true on this response; retrying the same stop is safe.
5324
+ */
5325
+ retryable: boolean;
5326
+ };
4647
5327
  /**
4648
5328
  * Acknowledgement that a turn cancellation was requested. Cancellation is asynchronous; the terminal message state (status=error with stop copy) arrives over the WebSocket.
4649
5329
  */
4650
5330
  export type AgentCancelAccepted = {
4651
5331
  status: 'cancelling';
4652
5332
  };
5333
+ /**
5334
+ * How an ask left pending, as stored on the ask row. `answered` means an answer was committed and delivered to the turn; `cancelled` means the turn ended, was stopped, or could not take the answer; `expired` means the ask timed out. There is no "unknown" status: when an answer request fails with a 5xx the client does not know the outcome and should wait for agent_ask_resolved or refetch the thread.
5335
+ */
5336
+ export type AgentAskStatus = 'answered' | 'cancelled' | 'expired';
5337
+ /**
5338
+ * The ask frames the server sends on /ws, discriminated on `type`.
5339
+ */
5340
+ export type AgentAskServerFrame = AgentAskFrame | AgentAskResolvedFrame;
5341
+ /**
5342
+ * The `data` of an agent_ask_resolved WebSocket event: the outcome the server committed to the ask row. Every open tab gets the same frame, including tabs that did not send the answer, so a client reads the answer that won from here and never infers it from what it sent.
5343
+ */
5344
+ export type AgentAskResolvedData = {
5345
+ ask_id: string;
5346
+ message_id: string;
5347
+ /**
5348
+ * The committed free-text answer. Present only when `status` is `answered` and the answer had free text.
5349
+ */
5350
+ other_text?: string;
5351
+ /**
5352
+ * The committed option ids when `status` is `answered` (empty when the answer was free text only). Null for every other status: an answer that was never delivered is not reported as taking effect.
5353
+ */
5354
+ selected: Array<string> | null;
5355
+ status: AgentAskStatus;
5356
+ thread_id: string;
5357
+ };
5358
+ /**
5359
+ * Server-to-client agent_ask_resolved frame on /ws. An ask left pending.
5360
+ */
5361
+ export type AgentAskResolvedFrame = {
5362
+ data: AgentAskResolvedData;
5363
+ type: 'agent_ask_resolved';
5364
+ };
5365
+ /**
5366
+ * Server-to-client agent_ask frame on /ws. A turn is parked on this ask.
5367
+ */
5368
+ export type AgentAskFrame = {
5369
+ /**
5370
+ * The pending ask, discriminated on `kind`, plus the thread it belongs to.
5371
+ */
5372
+ data: AgentPendingAsk & {
5373
+ thread_id: string;
5374
+ };
5375
+ type: 'agent_ask';
5376
+ };
5377
+ /**
5378
+ * 409 from the answer route: the ask is no longer pending, or its turn is gone so the answer can never be delivered. `status`, `selected` and `other_text` report the outcome stored on the ask row when the server knows it, with the same rules as the agent_ask_resolved event.
5379
+ */
5380
+ export type AgentAskConflict = {
5381
+ /**
5382
+ * Human-readable error message.
5383
+ */
5384
+ error: string;
5385
+ /**
5386
+ * The committed free-text answer, only when `status` is `answered`.
5387
+ */
5388
+ other_text?: string;
5389
+ /**
5390
+ * The committed option ids when `status` is `answered`; null otherwise.
5391
+ */
5392
+ selected?: Array<string> | null;
5393
+ status?: AgentAskStatus;
5394
+ };
4653
5395
  /**
4654
5396
  * The user's answer to a pending ask_user prompt. `selected` holds the chosen option ids; a permission gate answers with one id (e.g. the Approve/Deny option). `other_text` carries a free-text answer when the ask set allow_other.
4655
5397
  */
@@ -4664,9 +5406,17 @@ export type AgentAnswerRequest = {
4664
5406
  selected: Array<string>;
4665
5407
  };
4666
5408
  /**
4667
- * Acknowledgement that an ask answer was accepted. The parked turn resumes and its continuation streams over the WebSocket.
5409
+ * Acknowledgement that the ask is answered and the parked turn was woken; its continuation streams over the WebSocket. `selected` and `other_text` are the answer committed to the ask row. The first answer wins: when an earlier request already committed one (a retry, or another tab), this carries THAT answer, not the request body, so compare it with what you sent before showing it as the user's choice.
4668
5410
  */
4669
5411
  export type AgentAnswerAccepted = {
5412
+ /**
5413
+ * The committed free-text answer, when there is one.
5414
+ */
5415
+ other_text?: string;
5416
+ /**
5417
+ * The committed option ids (empty when the answer was free text only).
5418
+ */
5419
+ selected: Array<string>;
4670
5420
  status: 'answered';
4671
5421
  };
4672
5422
  /**
@@ -5015,6 +5765,85 @@ export type AgentGetDraftResponses = {
5015
5765
  200: AgentDraftSnapshot;
5016
5766
  };
5017
5767
  export type AgentGetDraftResponse = AgentGetDraftResponses[keyof AgentGetDraftResponses];
5768
+ export type GetAgentEventsData = {
5769
+ body?: never;
5770
+ path?: never;
5771
+ query?: {
5772
+ /**
5773
+ * The credential, where a browser cannot send a header: a Firebase ID
5774
+ * token, a Cloud JWT or an API key. It wins over the cookie.
5775
+ *
5776
+ */
5777
+ token?: string;
5778
+ /**
5779
+ * The workspace a `WebSessionAuth` socket runs in; absent means the
5780
+ * personal workspace. With `web_session_enabled` on, a token or API
5781
+ * key bound to another workspace is refused with 400.
5782
+ *
5783
+ */
5784
+ workspace_id?: string;
5785
+ };
5786
+ url: '/api/agent/events';
5787
+ };
5788
+ export type GetAgentEventsErrors = {
5789
+ /**
5790
+ * `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.
5791
+ */
5792
+ 400: ErrorResponse;
5793
+ /**
5794
+ * No credential, or one that failed. `code` is `UNAUTHORIZED`, with a `message` such as `authentication required`, `invalid auth token` or `invalid session cookie`.
5795
+ */
5796
+ 401: ErrorResponse;
5797
+ /**
5798
+ * 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 (when email verification is enforced) or an account scheduled for deletion is `FORBIDDEN`. With the flag off, the cookie gets AuthTypeNotAllowedError instead.
5799
+ */
5800
+ 403: ForbiddenError;
5801
+ /**
5802
+ * The caller is not enrolled in the agent-in-app-experience flag gating the whole /api/agent surface (defaults off, fails closed).
5803
+ */
5804
+ 404: unknown;
5805
+ };
5806
+ export type GetAgentEventsError = GetAgentEventsErrors[keyof GetAgentEventsErrors];
5807
+ export type AgentGetIdentityData = {
5808
+ body?: never;
5809
+ path?: never;
5810
+ query?: never;
5811
+ url: '/api/agent/identity';
5812
+ };
5813
+ export type AgentGetIdentityErrors = {
5814
+ /**
5815
+ * `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.
5816
+ */
5817
+ 400: ErrorResponse;
5818
+ /**
5819
+ * Unauthorized
5820
+ */
5821
+ 401: ErrorResponse;
5822
+ /**
5823
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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.
5824
+ */
5825
+ 403: ForbiddenError;
5826
+ /**
5827
+ * The caller is not enrolled in the agent-in-app-experience flag gating the whole /api/agent surface (defaults off, fails closed). 404 rather than 403 so the surface is invisible when off.
5828
+ */
5829
+ 404: ErrorResponse;
5830
+ /**
5831
+ * Agent service unavailable
5832
+ */
5833
+ 502: ErrorResponse;
5834
+ /**
5835
+ * Agent service misconfigured (no M2M secret for a non-local agent URL)
5836
+ */
5837
+ 503: ErrorResponse;
5838
+ };
5839
+ export type AgentGetIdentityError = AgentGetIdentityErrors[keyof AgentGetIdentityErrors];
5840
+ export type AgentGetIdentityResponses = {
5841
+ /**
5842
+ * The caller's agent identity.
5843
+ */
5844
+ 200: AgentIdentity;
5845
+ };
5846
+ export type AgentGetIdentityResponse = AgentGetIdentityResponses[keyof AgentGetIdentityResponses];
5018
5847
  export type AgentLlmAdmitData = {
5019
5848
  body: {
5020
5849
  /**
@@ -5044,7 +5873,7 @@ export type AgentLlmAdmitErrors = {
5044
5873
  */
5045
5874
  401: ErrorResponse;
5046
5875
  /**
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.
5876
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
5877
  */
5049
5878
  403: ForbiddenError;
5050
5879
  /**
@@ -5111,7 +5940,7 @@ export type AgentLlmMessagesErrors = {
5111
5940
  */
5112
5941
  402: AgentAdmissionError;
5113
5942
  /**
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.
5943
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
5944
  */
5116
5945
  403: ForbiddenError;
5117
5946
  /**
@@ -5135,6 +5964,61 @@ export type AgentLlmMessagesResponses = {
5135
5964
  200: string;
5136
5965
  };
5137
5966
  export type AgentLlmMessagesResponse = AgentLlmMessagesResponses[keyof AgentLlmMessagesResponses];
5967
+ export type AgentLlmTracesData = {
5968
+ /**
5969
+ * An OTLP ExportTraceServiceRequest, optionally gzip-encoded (Content-Encoding gzip); at most 4 MiB encoded and decoded, and 4096 spans.
5970
+ */
5971
+ body: Blob | File;
5972
+ path?: never;
5973
+ query?: never;
5974
+ url: '/api/agent/llm/v1/traces';
5975
+ };
5976
+ export type AgentLlmTracesErrors = {
5977
+ /**
5978
+ * Malformed export, or Langfuse rejected it (not retryable).
5979
+ */
5980
+ 400: ErrorResponse;
5981
+ /**
5982
+ * Unauthorized
5983
+ */
5984
+ 401: ErrorResponse;
5985
+ /**
5986
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
5987
+ */
5988
+ 403: ForbiddenError;
5989
+ /**
5990
+ * The agent in-app experience is disabled for this caller (FlagAgentInAppExperience off), or the relay is not enabled on the agent service (AGENT_LOCAL_TRACES off).
5991
+ */
5992
+ 404: ErrorResponse;
5993
+ /**
5994
+ * The export exceeds 4 MiB or 4096 spans.
5995
+ */
5996
+ 413: ErrorResponse;
5997
+ /**
5998
+ * Not application/x-protobuf, or an unsupported Content-Encoding.
5999
+ */
6000
+ 415: ErrorResponse;
6001
+ /**
6002
+ * The caller's trace rate limit is exhausted.
6003
+ */
6004
+ 429: ErrorResponse;
6005
+ /**
6006
+ * The agent service or Langfuse is unavailable (retryable).
6007
+ */
6008
+ 502: ErrorResponse;
6009
+ /**
6010
+ * The agent proxy is not configured to forward safely (a non-local agent service URL with no shared machine-to-machine secret).
6011
+ */
6012
+ 503: ErrorResponse;
6013
+ };
6014
+ export type AgentLlmTracesError = AgentLlmTracesErrors[keyof AgentLlmTracesErrors];
6015
+ export type AgentLlmTracesResponses = {
6016
+ /**
6017
+ * Accepted; the body is an empty OTLP ExportTraceServiceResponse.
6018
+ */
6019
+ 200: Blob | File;
6020
+ };
6021
+ export type AgentLlmTracesResponse = AgentLlmTracesResponses[keyof AgentLlmTracesResponses];
5138
6022
  export type AgentGetRunModeData = {
5139
6023
  body?: never;
5140
6024
  path?: never;
@@ -5151,7 +6035,7 @@ export type AgentGetRunModeErrors = {
5151
6035
  */
5152
6036
  401: ErrorResponse;
5153
6037
  /**
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.
6038
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
6039
  */
5156
6040
  403: ForbiddenError;
5157
6041
  /**
@@ -5195,7 +6079,7 @@ export type AgentPutRunModeErrors = {
5195
6079
  */
5196
6080
  401: ErrorResponse;
5197
6081
  /**
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.
6082
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
6083
  */
5200
6084
  403: ForbiddenError;
5201
6085
  /**
@@ -5243,7 +6127,7 @@ export type AgentListSkillsErrors = {
5243
6127
  */
5244
6128
  401: ErrorResponse;
5245
6129
  /**
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.
6130
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
6131
  */
5248
6132
  403: ForbiddenError;
5249
6133
  /**
@@ -5287,7 +6171,7 @@ export type AgentPublishSkillErrors = {
5287
6171
  */
5288
6172
  401: ErrorResponse;
5289
6173
  /**
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.
6174
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
6175
  */
5292
6176
  403: ForbiddenError;
5293
6177
  /**
@@ -5348,7 +6232,7 @@ export type AgentDeleteSkillErrors = {
5348
6232
  */
5349
6233
  401: ErrorResponse;
5350
6234
  /**
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.
6235
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
6236
  */
5353
6237
  403: ForbiddenError;
5354
6238
  /**
@@ -5403,7 +6287,7 @@ export type AgentListThreadsErrors = {
5403
6287
  */
5404
6288
  401: ErrorResponse;
5405
6289
  /**
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.
6290
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
6291
  */
5408
6292
  403: ForbiddenError;
5409
6293
  /**
@@ -5439,7 +6323,7 @@ export type AgentCreateThreadErrors = {
5439
6323
  */
5440
6324
  401: ErrorResponse;
5441
6325
  /**
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.
6326
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
6327
  */
5444
6328
  403: ForbiddenError;
5445
6329
  /**
@@ -5468,9 +6352,8 @@ export type AgentAnswerAskData = {
5468
6352
  id: string;
5469
6353
  /**
5470
6354
  * Ask ID (from the agent_ask event or the message list's pending_ask).
5471
- * The same event/row also carries `kind` (ask_user | run_approval),
5472
- * which selects the widget, and, for run_approval, a `context` naming
5473
- * the workflow.
6355
+ * The same event/row also carries `kind` (AgentAskKind), which
6356
+ * selects the widget, and the kind's `context` (see AgentPendingAsk).
5474
6357
  *
5475
6358
  */
5476
6359
  ask_id: string;
@@ -5496,9 +6379,9 @@ export type AgentAnswerAskErrors = {
5496
6379
  */
5497
6380
  404: AgentError;
5498
6381
  /**
5499
- * The ask was already resolved (answered, cancelled, or expired)
6382
+ * The ask was already resolved (answered, cancelled, or expired), or its turn is gone. The body reports the stored outcome when known.
5500
6383
  */
5501
- 409: AgentError;
6384
+ 409: AgentAskConflict;
5502
6385
  /**
5503
6386
  * The selection is invalid for this ask (unknown option or wrong count)
5504
6387
  */
@@ -5545,7 +6428,7 @@ export type AgentGetMessagesErrors = {
5545
6428
  */
5546
6429
  401: ErrorResponse;
5547
6430
  /**
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.
6431
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
6432
  */
5550
6433
  403: ForbiddenError;
5551
6434
  /**
@@ -5646,6 +6529,10 @@ export type AgentCancelMessageErrors = {
5646
6529
  * 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.
5647
6530
  */
5648
6531
  403: ErrorResponse | AgentError;
6532
+ /**
6533
+ * The turn is no longer running, so there is nothing left to cancel. Two different situations answer this way and they do not repeat alike. Either the durable turn reached its terminal state before (or during) this stop — its terminal message state has already been announced, and a repeat gets the 409 above — or the message row itself no longer exists (a thread deletion or an erasure racing the stop), in which case nothing was announced and a repeat gets the 403 above, because the ownership lookup cannot tell a deleted row from one in another workspace. Not retryable either way.
6534
+ */
6535
+ 404: AgentError;
5649
6536
  /**
5650
6537
  * The message is not a running assistant turn
5651
6538
  */
@@ -5662,6 +6549,10 @@ export type AgentCancelMessageErrors = {
5662
6549
  * Agent service unavailable
5663
6550
  */
5664
6551
  502: ErrorResponse;
6552
+ /**
6553
+ * The cancellation request did not reach the durable engine, or reaching it could not be confirmed. The turn is still running and still stoppable: retry the same request. `code` says which of the two it was, and `Retry-After` carries the suggested delay in seconds.
6554
+ */
6555
+ 503: AgentCancelUnconfirmed;
5665
6556
  };
5666
6557
  export type AgentCancelMessageError = AgentCancelMessageErrors[keyof AgentCancelMessageErrors];
5667
6558
  export type AgentCancelMessageResponses = {
@@ -5787,7 +6678,7 @@ export type ListAssetsErrors = {
5787
6678
  */
5788
6679
  401: ErrorResponse;
5789
6680
  /**
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.
6681
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
6682
  */
5792
6683
  403: ForbiddenError;
5793
6684
  /**
@@ -5852,7 +6743,7 @@ export type CreateAssetErrors = {
5852
6743
  */
5853
6744
  401: ErrorResponse;
5854
6745
  /**
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.
6746
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
6747
  */
5857
6748
  403: ForbiddenError;
5858
6749
  /**
@@ -5907,7 +6798,7 @@ export type DeleteAssetErrors = {
5907
6798
  */
5908
6799
  401: ErrorResponse;
5909
6800
  /**
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.
6801
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
6802
  */
5912
6803
  403: ForbiddenError;
5913
6804
  /**
@@ -5952,7 +6843,7 @@ export type GetAssetByIdErrors = {
5952
6843
  */
5953
6844
  401: ErrorResponse;
5954
6845
  /**
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.
6846
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
6847
  */
5957
6848
  403: ForbiddenError;
5958
6849
  /**
@@ -6014,7 +6905,7 @@ export type UpdateAssetErrors = {
6014
6905
  */
6015
6906
  401: ErrorResponse;
6016
6907
  /**
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.
6908
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
6909
  */
6019
6910
  403: ForbiddenError;
6020
6911
  /**
@@ -6069,7 +6960,7 @@ export type GetAssetContentErrors = {
6069
6960
  */
6070
6961
  401: ErrorResponse;
6071
6962
  /**
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.
6963
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
6964
  */
6074
6965
  403: ForbiddenError;
6075
6966
  /**
@@ -6115,7 +7006,7 @@ export type RemoveAssetTagsErrors = {
6115
7006
  */
6116
7007
  401: ErrorResponse;
6117
7008
  /**
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.
7009
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
7010
  */
6120
7011
  403: ForbiddenError;
6121
7012
  /**
@@ -6165,7 +7056,7 @@ export type AddAssetTagsErrors = {
6165
7056
  */
6166
7057
  401: ErrorResponse;
6167
7058
  /**
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.
7059
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
7060
  */
6170
7061
  403: ForbiddenError;
6171
7062
  /**
@@ -6224,7 +7115,7 @@ export type CreateAssetDownloadErrors = {
6224
7115
  */
6225
7116
  401: ErrorResponse;
6226
7117
  /**
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.
7118
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
7119
  */
6229
7120
  403: ForbiddenError;
6230
7121
  /**
@@ -6295,7 +7186,7 @@ export type CreateAssetExportErrors = {
6295
7186
  */
6296
7187
  401: ErrorResponse;
6297
7188
  /**
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.
7189
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
7190
  */
6300
7191
  403: ForbiddenError;
6301
7192
  /**
@@ -6332,7 +7223,7 @@ export type DownloadExportErrors = {
6332
7223
  */
6333
7224
  401: ErrorResponse;
6334
7225
  /**
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.
7226
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
7227
  */
6337
7228
  403: ForbiddenError;
6338
7229
  /**
@@ -6391,7 +7282,7 @@ export type CreateAssetFromHashErrors = {
6391
7282
  */
6392
7283
  401: ErrorResponse;
6393
7284
  /**
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.
7285
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
7286
  */
6396
7287
  403: ForbiddenError;
6397
7288
  /**
@@ -6437,7 +7328,7 @@ export type PostAssetsFromWorkflowErrors = {
6437
7328
  */
6438
7329
  401: ErrorResponse;
6439
7330
  /**
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.
7331
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
7332
  */
6442
7333
  403: ForbiddenError;
6443
7334
  /**
@@ -6513,7 +7404,7 @@ export type ImportPublishedAssetsErrors = {
6513
7404
  */
6514
7405
  401: ErrorResponse;
6515
7406
  /**
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.
7407
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
7408
  */
6518
7409
  403: ForbiddenError;
6519
7410
  /**
@@ -6569,7 +7460,7 @@ export type GetRemoteAssetMetadataErrors = {
6569
7460
  */
6570
7461
  401: ErrorResponse;
6571
7462
  /**
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.
7463
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
7464
  */
6574
7465
  403: ForbiddenError;
6575
7466
  /**
@@ -6714,7 +7605,7 @@ export type GetAssetTagHistogramErrors = {
6714
7605
  */
6715
7606
  401: ErrorResponse;
6716
7607
  /**
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.
7608
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
7609
  */
6719
7610
  403: ForbiddenError;
6720
7611
  /**
@@ -6730,6 +7621,46 @@ export type GetAssetTagHistogramResponses = {
6730
7621
  200: AssetTagHistogramResponse;
6731
7622
  };
6732
7623
  export type GetAssetTagHistogramResponse = GetAssetTagHistogramResponses[keyof GetAssetTagHistogramResponses];
7624
+ export type AuthenticateData = {
7625
+ body: AuthenticateRequest;
7626
+ path?: never;
7627
+ query?: never;
7628
+ url: '/api/auth/authenticate';
7629
+ };
7630
+ export type AuthenticateErrors = {
7631
+ /**
7632
+ * `INVALID_EMAIL`: not an email address
7633
+ */
7634
+ 400: ErrorResponse;
7635
+ /**
7636
+ * `INVALID_CREDENTIALS` (wrong email or password), or `SESSION_REVOKED`
7637
+ */
7638
+ 401: ErrorResponse;
7639
+ /**
7640
+ * `sso_required`: the account signs in with its organization's SSO; `start_url` is set when the email's domain names the organization. Also the session guard's `origin_not_allowed` and `cross_site_request`.
7641
+ */
7642
+ 403: AuthenticateRefusal;
7643
+ /**
7644
+ * `RATE_LIMITED`: too many attempts; try again later
7645
+ */
7646
+ 429: ErrorResponse;
7647
+ /**
7648
+ * Internal server error
7649
+ */
7650
+ 500: ErrorResponse;
7651
+ /**
7652
+ * `SIGN_IN_UNAVAILABLE`: Firebase could not be reached
7653
+ */
7654
+ 502: ErrorResponse;
7655
+ };
7656
+ export type AuthenticateError = AuthenticateErrors[keyof AuthenticateErrors];
7657
+ export type AuthenticateResponses = {
7658
+ /**
7659
+ * Where the email signs in, or a signed-in session
7660
+ */
7661
+ 200: AuthenticateResponse;
7662
+ };
7663
+ export type AuthenticateResponse2 = AuthenticateResponses[keyof AuthenticateResponses];
6733
7664
  export type CreateDesktopLoginCodeData = {
6734
7665
  body: DesktopLoginCodeCreateRequest;
6735
7666
  path?: never;
@@ -6921,30 +7852,105 @@ export type RevokeAllSessionsErrors = {
6921
7852
  */
6922
7853
  401: ErrorResponse;
6923
7854
  /**
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.
7855
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
7856
+ */
7857
+ 403: ForbiddenError;
7858
+ /**
7859
+ * Web sessions are not enabled for this user
7860
+ */
7861
+ 404: ErrorResponse;
7862
+ /**
7863
+ * 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`.
7864
+ */
7865
+ 429: ErrorResponse;
7866
+ /**
7867
+ * Internal server error
7868
+ */
7869
+ 500: ErrorResponse;
7870
+ };
7871
+ export type RevokeAllSessionsError = RevokeAllSessionsErrors[keyof RevokeAllSessionsErrors];
7872
+ export type RevokeAllSessionsResponses = {
7873
+ /**
7874
+ * Every session ended
7875
+ */
7876
+ 200: RevokeAllSessionsResponse;
7877
+ };
7878
+ export type RevokeAllSessionsResponse2 = RevokeAllSessionsResponses[keyof RevokeAllSessionsResponses];
7879
+ export type FinishSsoData = {
7880
+ body?: never;
7881
+ path?: never;
7882
+ query?: never;
7883
+ url: '/api/auth/sso/callback';
7884
+ };
7885
+ export type FinishSsoErrors = {
7886
+ /**
7887
+ * Error
7888
+ */
7889
+ '4XX': ErrorResponse;
7890
+ /**
7891
+ * Error
7892
+ */
7893
+ '5XX': ErrorResponse;
7894
+ };
7895
+ export type FinishSsoError = FinishSsoErrors[keyof FinishSsoErrors];
7896
+ export type DiscoverSsoData = {
7897
+ body: {
7898
+ email: string;
7899
+ };
7900
+ path?: never;
7901
+ query?: never;
7902
+ url: '/api/auth/sso/discover';
7903
+ };
7904
+ export type DiscoverSsoErrors = {
7905
+ /**
7906
+ * `INVALID_EMAIL`: not an email address
7907
+ */
7908
+ 400: ErrorResponse;
7909
+ /**
7910
+ * Internal server error
6925
7911
  */
6926
- 403: ForbiddenError;
7912
+ 500: ErrorResponse;
7913
+ };
7914
+ export type DiscoverSsoError = DiscoverSsoErrors[keyof DiscoverSsoErrors];
7915
+ export type DiscoverSsoResponses = {
6927
7916
  /**
6928
- * Web sessions are not enabled for this user
7917
+ * Whether the email's domain belongs to an SSO organization
6929
7918
  */
6930
- 404: ErrorResponse;
7919
+ 200: SsoDiscoverResponse;
7920
+ };
7921
+ export type DiscoverSsoResponse = DiscoverSsoResponses[keyof DiscoverSsoResponses];
7922
+ export type StartSsoData = {
7923
+ body?: never;
7924
+ path?: never;
7925
+ query?: never;
7926
+ url: '/api/auth/sso/start';
7927
+ };
7928
+ export type StartSsoErrors = {
6931
7929
  /**
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`.
7930
+ * Error
6933
7931
  */
6934
- 429: ErrorResponse;
7932
+ '4XX': ErrorResponse;
7933
+ };
7934
+ export type StartSsoError = StartSsoErrors[keyof StartSsoErrors];
7935
+ export type StartSsoResponses = {
6935
7936
  /**
6936
- * Internal server error
7937
+ * Confirmation page (text/html) for a start from another site
6937
7938
  */
6938
- 500: ErrorResponse;
7939
+ 200: unknown;
6939
7940
  };
6940
- export type RevokeAllSessionsError = RevokeAllSessionsErrors[keyof RevokeAllSessionsErrors];
6941
- export type RevokeAllSessionsResponses = {
7941
+ export type StartSsoConfirmedData = {
7942
+ body?: never;
7943
+ path?: never;
7944
+ query?: never;
7945
+ url: '/api/auth/sso/start';
7946
+ };
7947
+ export type StartSsoConfirmedErrors = {
6942
7948
  /**
6943
- * Every session ended
7949
+ * Error
6944
7950
  */
6945
- 200: RevokeAllSessionsResponse;
7951
+ '4XX': ErrorResponse;
6946
7952
  };
6947
- export type RevokeAllSessionsResponse2 = RevokeAllSessionsResponses[keyof RevokeAllSessionsResponses];
7953
+ export type StartSsoConfirmedError = StartSsoConfirmedErrors[keyof StartSsoConfirmedErrors];
6948
7954
  export type ExchangeTokenData = {
6949
7955
  body?: ExchangeTokenRequest;
6950
7956
  path?: never;
@@ -6961,7 +7967,7 @@ export type ExchangeTokenErrors = {
6961
7967
  */
6962
7968
  401: ErrorResponse;
6963
7969
  /**
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`.
7970
+ * 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`. `sso_required`: an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not that organization's, or the target workspace is an SSO organization's and the account is not on its domains or the credential is not its SSO sign-in; `organization_id`, when present, names the organization to sign in with.
6965
7971
  */
6966
7972
  403: ErrorResponse;
6967
7973
  /**
@@ -7005,7 +8011,7 @@ export type GetBillingBalanceErrors = {
7005
8011
  */
7006
8012
  401: ErrorResponse;
7007
8013
  /**
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.
8014
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
8015
  */
7010
8016
  403: ForbiddenError;
7011
8017
  /**
@@ -7077,7 +8083,7 @@ export type GetChurnkeyAuthErrors = {
7077
8083
  */
7078
8084
  401: ErrorResponse;
7079
8085
  /**
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.
8086
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
8087
  */
7082
8088
  403: ForbiddenError;
7083
8089
  /**
@@ -7149,7 +8155,7 @@ export type UpdateBillingCompanyDetailsErrors = {
7149
8155
  */
7150
8156
  401: ErrorResponse;
7151
8157
  /**
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.
8158
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
8159
  */
7154
8160
  403: ForbiddenError;
7155
8161
  /**
@@ -7247,7 +8253,7 @@ export type GetBillingOpStatusErrors = {
7247
8253
  */
7248
8254
  401: ErrorResponse;
7249
8255
  /**
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.
8256
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
8257
  */
7252
8258
  403: ForbiddenError;
7253
8259
  /**
@@ -7267,6 +8273,55 @@ export type GetBillingOpStatusResponses = {
7267
8273
  200: BillingOpStatusResponse;
7268
8274
  };
7269
8275
  export type GetBillingOpStatusResponse = GetBillingOpStatusResponses[keyof GetBillingOpStatusResponses];
8276
+ export type CancelBillingOpData = {
8277
+ body?: never;
8278
+ path: {
8279
+ /**
8280
+ * The billing operation ID
8281
+ */
8282
+ id: string;
8283
+ };
8284
+ query?: never;
8285
+ url: '/api/billing/ops/{id}/cancel';
8286
+ };
8287
+ export type CancelBillingOpErrors = {
8288
+ /**
8289
+ * `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.
8290
+ */
8291
+ 400: ErrorResponse;
8292
+ /**
8293
+ * Unauthorized
8294
+ */
8295
+ 401: ErrorResponse;
8296
+ /**
8297
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
8298
+ */
8299
+ 403: ForbiddenError;
8300
+ /**
8301
+ * Billing operation not found
8302
+ */
8303
+ 404: ErrorResponse;
8304
+ /**
8305
+ * Not canceled. `code` is `NOT_CANCELABLE` or `PAYMENT_IN_FLIGHT`.
8306
+ */
8307
+ 409: ErrorResponse;
8308
+ /**
8309
+ * Internal server error
8310
+ */
8311
+ 500: ErrorResponse;
8312
+ };
8313
+ export type CancelBillingOpError = CancelBillingOpErrors[keyof CancelBillingOpErrors];
8314
+ export type CancelBillingOpResponses = {
8315
+ /**
8316
+ * Canceled; nothing was charged. Also returned for an operation already discarded or expired without authentication, so a repeat is safe.
8317
+ */
8318
+ 200: BillingOpCancelResponse;
8319
+ /**
8320
+ * Cancel requested but not yet settled. Poll `GET /api/billing/ops/{id}` for the final outcome.
8321
+ */
8322
+ 202: BillingOpCancelResponse;
8323
+ };
8324
+ export type CancelBillingOpResponse = CancelBillingOpResponses[keyof CancelBillingOpResponses];
7270
8325
  export type ListSavedPaymentMethodsData = {
7271
8326
  body?: never;
7272
8327
  path?: never;
@@ -7315,7 +8370,7 @@ export type GetPaymentPortalErrors = {
7315
8370
  */
7316
8371
  401: ErrorResponse;
7317
8372
  /**
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.
8373
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
8374
  */
7320
8375
  403: ForbiddenError;
7321
8376
  /**
@@ -7347,7 +8402,7 @@ export type GetBillingPlansErrors = {
7347
8402
  */
7348
8403
  401: ErrorResponse;
7349
8404
  /**
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.
8405
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
8406
  */
7352
8407
  403: ForbiddenError;
7353
8408
  /**
@@ -7395,6 +8450,126 @@ export type PreviewSubscribeResponses = {
7395
8450
  200: PreviewSubscribeResponse;
7396
8451
  };
7397
8452
  export type PreviewSubscribeResponse2 = PreviewSubscribeResponses[keyof PreviewSubscribeResponses];
8453
+ export type AcceptRetentionOfferData = {
8454
+ body: RetentionAcceptRequest;
8455
+ path?: never;
8456
+ query?: never;
8457
+ url: '/api/billing/retention/accept';
8458
+ };
8459
+ export type AcceptRetentionOfferErrors = {
8460
+ /**
8461
+ * Invalid request
8462
+ */
8463
+ 400: ErrorResponse;
8464
+ /**
8465
+ * Unauthorized
8466
+ */
8467
+ 401: ErrorResponse;
8468
+ /**
8469
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
8470
+ */
8471
+ 403: ForbiddenError;
8472
+ /**
8473
+ * Session stale or a billing operation conflicts
8474
+ */
8475
+ 409: ErrorResponse;
8476
+ /**
8477
+ * Internal server error
8478
+ */
8479
+ 500: ErrorResponse;
8480
+ /**
8481
+ * Cancellation offers unavailable
8482
+ */
8483
+ 503: ErrorResponse;
8484
+ };
8485
+ export type AcceptRetentionOfferError = AcceptRetentionOfferErrors[keyof AcceptRetentionOfferErrors];
8486
+ export type AcceptRetentionOfferResponses = {
8487
+ /**
8488
+ * Success
8489
+ */
8490
+ 202: RetentionAcceptance;
8491
+ };
8492
+ export type AcceptRetentionOfferResponse = AcceptRetentionOfferResponses[keyof AcceptRetentionOfferResponses];
8493
+ export type RecordRetentionFlowEventData = {
8494
+ body: RetentionFlowEventRequest;
8495
+ path?: never;
8496
+ query?: never;
8497
+ url: '/api/billing/retention/events';
8498
+ };
8499
+ export type RecordRetentionFlowEventErrors = {
8500
+ /**
8501
+ * Invalid request
8502
+ */
8503
+ 400: ErrorResponse;
8504
+ /**
8505
+ * Unauthorized
8506
+ */
8507
+ 401: ErrorResponse;
8508
+ /**
8509
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
8510
+ */
8511
+ 403: ForbiddenError;
8512
+ /**
8513
+ * Session stale or a billing operation conflicts
8514
+ */
8515
+ 409: ErrorResponse;
8516
+ /**
8517
+ * Internal server error
8518
+ */
8519
+ 500: ErrorResponse;
8520
+ /**
8521
+ * Cancellation offers unavailable
8522
+ */
8523
+ 503: ErrorResponse;
8524
+ };
8525
+ export type RecordRetentionFlowEventError = RecordRetentionFlowEventErrors[keyof RecordRetentionFlowEventErrors];
8526
+ export type RecordRetentionFlowEventResponses = {
8527
+ /**
8528
+ * Success
8529
+ */
8530
+ 204: void;
8531
+ };
8532
+ export type RecordRetentionFlowEventResponse = RecordRetentionFlowEventResponses[keyof RecordRetentionFlowEventResponses];
8533
+ export type PrepareRetentionFlowData = {
8534
+ body?: never;
8535
+ path?: never;
8536
+ query?: never;
8537
+ url: '/api/billing/retention/prepare';
8538
+ };
8539
+ export type PrepareRetentionFlowErrors = {
8540
+ /**
8541
+ * `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.
8542
+ */
8543
+ 400: ErrorResponse;
8544
+ /**
8545
+ * Unauthorized
8546
+ */
8547
+ 401: ErrorResponse;
8548
+ /**
8549
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
8550
+ */
8551
+ 403: ForbiddenError;
8552
+ /**
8553
+ * Subscription does not support this flow
8554
+ */
8555
+ 422: ErrorResponse;
8556
+ /**
8557
+ * Internal server error
8558
+ */
8559
+ 500: ErrorResponse;
8560
+ /**
8561
+ * Cancellation offers unavailable
8562
+ */
8563
+ 503: ErrorResponse;
8564
+ };
8565
+ export type PrepareRetentionFlowError = PrepareRetentionFlowErrors[keyof PrepareRetentionFlowErrors];
8566
+ export type PrepareRetentionFlowResponses = {
8567
+ /**
8568
+ * Success
8569
+ */
8570
+ 200: RetentionFlowResponse;
8571
+ };
8572
+ export type PrepareRetentionFlowResponse = PrepareRetentionFlowResponses[keyof PrepareRetentionFlowResponses];
7398
8573
  export type GetBillingStatusData = {
7399
8574
  body?: never;
7400
8575
  path?: never;
@@ -7411,7 +8586,7 @@ export type GetBillingStatusErrors = {
7411
8586
  */
7412
8587
  401: ErrorResponse;
7413
8588
  /**
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.
8589
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
8590
  */
7416
8591
  403: ForbiddenError;
7417
8592
  /**
@@ -7447,7 +8622,7 @@ export type SubscribeErrors = {
7447
8622
  */
7448
8623
  401: ErrorResponse;
7449
8624
  /**
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.
8625
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
8626
  */
7452
8627
  403: ForbiddenError;
7453
8628
  /**
@@ -7479,7 +8654,7 @@ export type CancelSubscriptionErrors = {
7479
8654
  */
7480
8655
  401: ErrorResponse;
7481
8656
  /**
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.
8657
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
8658
  */
7484
8659
  403: ForbiddenError;
7485
8660
  /**
@@ -7515,7 +8690,7 @@ export type ResubscribeErrors = {
7515
8690
  */
7516
8691
  401: ErrorResponse;
7517
8692
  /**
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.
8693
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
8694
  */
7520
8695
  403: ForbiddenError;
7521
8696
  /**
@@ -7531,6 +8706,41 @@ export type ResubscribeResponses = {
7531
8706
  200: ResubscribeResponse;
7532
8707
  };
7533
8708
  export type ResubscribeResponse2 = ResubscribeResponses[keyof ResubscribeResponses];
8709
+ export type RevertScheduledChangeData = {
8710
+ body: RevertScheduledChangeRequest;
8711
+ path?: never;
8712
+ query?: never;
8713
+ url: '/api/billing/subscription/revert-scheduled-change';
8714
+ };
8715
+ export type RevertScheduledChangeErrors = {
8716
+ /**
8717
+ * `NO_SCHEDULED_CHANGE`, `SCHEDULED_CHANGE_REVERT_CLOSED`,
8718
+ * `SUBSCRIPTION_CHANGE_IN_PROGRESS`, `BILLING_RECONCILIATION_REQUIRED`,
8719
+ * `PREVIOUS_OPERATION_FAILED`, `TRANSITION_NOT_ALLOWED`.
8720
+ *
8721
+ */
8722
+ 400: ErrorResponse;
8723
+ /**
8724
+ * Unauthorized
8725
+ */
8726
+ 401: ErrorResponse;
8727
+ /**
8728
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
8729
+ */
8730
+ 403: ForbiddenError;
8731
+ /**
8732
+ * Internal server error
8733
+ */
8734
+ 500: ErrorResponse;
8735
+ };
8736
+ export type RevertScheduledChangeError = RevertScheduledChangeErrors[keyof RevertScheduledChangeErrors];
8737
+ export type RevertScheduledChangeResponses = {
8738
+ /**
8739
+ * Revert accepted
8740
+ */
8741
+ 200: RevertScheduledChangeResponse;
8742
+ };
8743
+ export type RevertScheduledChangeResponse2 = RevertScheduledChangeResponses[keyof RevertScheduledChangeResponses];
7534
8744
  export type CreateTopupData = {
7535
8745
  body: CreateTopupRequest;
7536
8746
  path?: never;
@@ -7547,7 +8757,7 @@ export type CreateTopupErrors = {
7547
8757
  */
7548
8758
  401: ErrorResponse;
7549
8759
  /**
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.
8760
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
8761
  */
7552
8762
  403: ForbiddenError;
7553
8763
  /**
@@ -7623,7 +8833,7 @@ export type CreateTopupQuoteErrors = {
7623
8833
  */
7624
8834
  401: ErrorResponse;
7625
8835
  /**
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.
8836
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
8837
  */
7628
8838
  403: ForbiddenError;
7629
8839
  /**
@@ -7643,7 +8853,22 @@ export type GetBillingUsageTimeSeriesData = {
7643
8853
  body?: never;
7644
8854
  path?: never;
7645
8855
  query?: {
7646
- group_by?: 'model' | 'endpoint' | 'product';
8856
+ /**
8857
+ * `product_line` folds products into the customer-facing lines (Agent,
8858
+ * Third-Party Partner API, Comfy Cloud, Serverless) plus an
8859
+ * `unattributed` bucket that is always counted in the total.
8860
+ * `person` and `source` attribute spend to the member or to the API
8861
+ * key (`spend_source`) that caused it, read from the usage ledger
8862
+ * where the workspace is enabled for it (feature
8863
+ * `usage_attribution_enabled`): owners see every member and every
8864
+ * key, a member's `person` and `source` views hold only their own
8865
+ * rows, and an `unattributed` group carries spend with no usable
8866
+ * identity so the groups still sum to the total. Elsewhere the response is an empty series with
8867
+ * `not_available` set. Group keys for those three carry a matching
8868
+ * entry in `group_labels`.
8869
+ *
8870
+ */
8871
+ group_by?: 'model' | 'endpoint' | 'product' | 'product_line' | 'person' | 'source';
7647
8872
  granularity?: 'hour' | 'day' | 'month';
7648
8873
  starting_on?: string;
7649
8874
  ending_before?: string;
@@ -7661,7 +8886,7 @@ export type GetBillingUsageTimeSeriesErrors = {
7661
8886
  */
7662
8887
  401: ErrorResponse;
7663
8888
  /**
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.
8889
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
8890
  */
7666
8891
  403: ForbiddenError;
7667
8892
  /**
@@ -7796,7 +9021,7 @@ export type GetNodeInfoSchemaErrors = {
7796
9021
  */
7797
9022
  401: ErrorResponse;
7798
9023
  /**
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.
9024
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
9025
  */
7801
9026
  403: ForbiddenError;
7802
9027
  };
@@ -7828,7 +9053,7 @@ export type GetNodeByIdErrors = {
7828
9053
  */
7829
9054
  401: ErrorResponse;
7830
9055
  /**
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.
9056
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
9057
  */
7833
9058
  403: ForbiddenError;
7834
9059
  /**
@@ -7878,10 +9103,28 @@ export type GetFeaturesResponses = {
7878
9103
  * Success
7879
9104
  */
7880
9105
  200: {
9106
+ /**
9107
+ * Authenticated assignment for the Agent free-use notice placement experiment. Always present and defaults to control when the caller is unauthenticated, evaluation is unavailable, or no treatment is assigned.
9108
+ */
9109
+ 'agent-free-use-message-placement': 'control' | 'top-banner' | 'near-composer' | 'above-input' | 'inside-input';
9110
+ /**
9111
+ * Authenticated assignment for the Agent starter-prompt experiment. Current Cloud responses include it and default to control when the caller is unauthenticated, evaluation is unavailable, or no treatment is assigned. It remains optional in the client contract so older environments and partial feature fixtures fail closed. Reading this field does not constitute experiment exposure; the frontend emits the custom exposure event only after rendering the starter prompt surface.
9112
+ */
9113
+ 'agent-starter-prompt-set'?: 'control' | 'test';
7881
9114
  /**
7882
9115
  * 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
9116
  */
7884
9117
  billing_web_url?: string;
9118
+ /**
9119
+ * Whether a partner/API-node workflow from THIS authenticated caller could run. It is ingest's own submit-time account-level decision published as a capability, resolved from the same authority ExecutePrompt uses, so a consumer never re-derives it from a tier table.
9120
+ * The two values are NOT symmetric, and a consumer that treats them as symmetric will be wrong.
9121
+ * false is sound: a partner-node submission from this caller would be refused. Usually that refusal is PARTNER_NODE_PAYMENT_REQUIRED, but a caller who is FREE for a further reason (an API key, a non-Google session under FreeTierRequireGoogleSignIn, or no job allowance on the legacy rail) is refused earlier and by a different code. Either way the workflow does not run, which is what the field answers.
9122
+ * true is narrower than it reads: the partner-node paywall is not what refuses this caller. Another gate still might — an inactive subscription, a blocked workspace and a BlockedSubscriptionTiers entry all report true, because their refusal is account-wide rather than about partner nodes, and so do the exemptions and the fail-open outcomes that make ExecutePrompt admit a submission at all (a partner-execution workspace, a disabled subscription check, a failed subscription lookup). Two per-prompt refusals are not modelled here at all, because this field is per-account and they are not: FreeTierBlockedModels (MODEL_PAYMENT_REQUIRED, named open-weights models) and the workspace partner-provider governance gate, which keys on which providers a prompt names and answers 403 for an enforcing workspace or 503 when its policy cannot be verified. A paid caller in a governance-restricted workspace therefore reads true here and is still refused at submit.
9123
+ * So: read false as "do not build with partner nodes" and true as "the partner gate will not stop you". Do not read true as "this caller can submit".
9124
+ * Absent for an unauthenticated caller (the decision is per-identity and there is none) and absent while AgentPartnerCapabilityEnabled is off, which is its default — resolving it costs an account-level authority read that this endpoint does not otherwise make. A consumer must treat absence as "unknown" and fail open, never as false.
9125
+ * Because absence carries that meaning, the field is only ever the authority's answer: unlike the flags beside it, it cannot be set from dynamic configuration, and it is removed from the response rather than left at a configured value when it is unresolvable. It is likewise absent from the WebSocket feature_flags push, which resolves no capability, so a client refreshing from the socket reads "unknown" and fails open rather than inheriting a stale answer.
9126
+ */
9127
+ can_run_partner_nodes?: boolean;
7885
9128
  /**
7886
9129
  * 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.
7887
9130
  */
@@ -7899,10 +9142,31 @@ export type GetFeaturesResponses = {
7899
9142
  */
7900
9143
  used: number;
7901
9144
  };
9145
+ /**
9146
+ * The free-tier job allowance offered to new users, so a signed-out visitor sees the real offer before signing up. Same value for authenticated and unauthenticated requests. Absent when the free-tier allowance is disabled or zero.
9147
+ */
9148
+ free_tier_offer?: {
9149
+ /**
9150
+ * Number of free jobs granted to a new FREE-tier user
9151
+ */
9152
+ job_allowance: number;
9153
+ /**
9154
+ * True when only Google-authenticated sessions receive the allowance; email/password signups get none.
9155
+ */
9156
+ requires_google_sign_in: boolean;
9157
+ };
7902
9158
  /**
7903
9159
  * Maximum upload size in bytes
7904
9160
  */
7905
9161
  max_upload_size?: number;
9162
+ /**
9163
+ * Whether new free-tier subscriptions are enabled for this caller. Current servers always emit a boolean; clients should tolerate absence when talking to older servers that predate this declared field.
9164
+ */
9165
+ new_free_tier_subscriptions?: boolean;
9166
+ /**
9167
+ * Global switch, the same for every caller and readable without credentials. When true, the frontend shows enterprise single sign-on (the SSO sign-in entry and SSO workspace states); when false it shows today's app. It gates no backend behaviour. Defaults to false.
9168
+ */
9169
+ sso_enabled?: boolean;
7906
9170
  /**
7907
9171
  * 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
9172
  */
@@ -7935,7 +9199,7 @@ export type SubmitFeedbackErrors = {
7935
9199
  */
7936
9200
  401: ErrorResponse;
7937
9201
  /**
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.
9202
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
9203
  */
7940
9204
  403: ForbiddenError;
7941
9205
  /**
@@ -7972,7 +9236,7 @@ export type GetMaskLayersErrors = {
7972
9236
  */
7973
9237
  401: ErrorResponse;
7974
9238
  /**
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.
9239
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
9240
  */
7977
9241
  403: ForbiddenError;
7978
9242
  /**
@@ -8231,7 +9495,7 @@ export type ManageHistoryErrors = {
8231
9495
  */
8232
9496
  401: ErrorResponse;
8233
9497
  /**
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.
9498
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
9499
  */
8236
9500
  403: ForbiddenError;
8237
9501
  /**
@@ -8285,7 +9549,7 @@ export type GetHistoryErrors = {
8285
9549
  */
8286
9550
  401: ErrorResponse;
8287
9551
  /**
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.
9552
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
9553
  */
8290
9554
  403: ForbiddenError;
8291
9555
  /**
@@ -8322,7 +9586,7 @@ export type GetHistoryForPromptErrors = {
8322
9586
  */
8323
9587
  401: ErrorResponse;
8324
9588
  /**
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.
9589
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
9590
  */
8327
9591
  403: ForbiddenError;
8328
9592
  /**
@@ -8358,7 +9622,7 @@ export type CreateHubAssetUploadUrlErrors = {
8358
9622
  */
8359
9623
  401: ErrorResponse;
8360
9624
  /**
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.
9625
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
9626
  */
8363
9627
  403: ForbiddenError;
8364
9628
  /**
@@ -8399,7 +9663,7 @@ export type ListHubLabelsErrors = {
8399
9663
  */
8400
9664
  401: ErrorResponse;
8401
9665
  /**
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.
9666
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
9667
  */
8404
9668
  403: ForbiddenError;
8405
9669
  /**
@@ -8431,7 +9695,7 @@ export type CreateHubProfileErrors = {
8431
9695
  */
8432
9696
  401: ErrorResponse;
8433
9697
  /**
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.
9698
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
9699
  */
8436
9700
  403: ForbiddenError;
8437
9701
  /**
@@ -8505,7 +9769,7 @@ export type UpdateHubProfileErrors = {
8505
9769
  */
8506
9770
  401: ErrorResponse;
8507
9771
  /**
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.
9772
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
9773
  */
8510
9774
  403: ForbiddenError;
8511
9775
  /**
@@ -8543,7 +9807,7 @@ export type CheckHubUsernameErrors = {
8543
9807
  */
8544
9808
  401: ErrorResponse;
8545
9809
  /**
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.
9810
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
9811
  */
8548
9812
  403: ForbiddenError;
8549
9813
  /**
@@ -8579,7 +9843,7 @@ export type GetMyHubProfileErrors = {
8579
9843
  */
8580
9844
  401: ErrorResponse;
8581
9845
  /**
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.
9846
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
9847
  */
8584
9848
  403: ForbiddenError;
8585
9849
  /**
@@ -8670,7 +9934,7 @@ export type PublishHubWorkflowErrors = {
8670
9934
  */
8671
9935
  401: ErrorResponse;
8672
9936
  /**
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.
9937
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
9938
  */
8675
9939
  403: ForbiddenError;
8676
9940
  /**
@@ -8711,7 +9975,7 @@ export type DeleteHubWorkflowErrors = {
8711
9975
  */
8712
9976
  401: ErrorResponse;
8713
9977
  /**
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.
9978
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
9979
  */
8716
9980
  403: ForbiddenError;
8717
9981
  /**
@@ -8836,7 +10100,7 @@ export type CreateInputUploadUrlErrors = {
8836
10100
  */
8837
10101
  401: ErrorResponse;
8838
10102
  /**
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.
10103
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
10104
  */
8841
10105
  403: ForbiddenError;
8842
10106
  /**
@@ -8876,9 +10140,23 @@ export type InterruptJobErrors = {
8876
10140
  */
8877
10141
  401: ErrorResponse;
8878
10142
  /**
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.
10143
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
10144
  */
8881
10145
  403: ForbiddenError;
10146
+ /**
10147
+ * `prompt_id` is not one of the caller's jobs in this workspace, or
10148
+ * is not a job ID (a 36-character UUID) at all. Code NOT_FOUND;
10149
+ * nothing was cancelled.
10150
+ *
10151
+ */
10152
+ 404: ErrorResponse;
10153
+ /**
10154
+ * The job interrupt would act on runs on a Build's deployment and
10155
+ * cannot be interrupted from here yet. Code GATEWAY_JOB_NOT_CANCELLABLE;
10156
+ * the message names that job, and nothing was cancelled.
10157
+ *
10158
+ */
10159
+ 409: ErrorResponse;
8882
10160
  /**
8883
10161
  * Internal server error
8884
10162
  */
@@ -8887,7 +10165,9 @@ export type InterruptJobErrors = {
8887
10165
  export type InterruptJobError = InterruptJobErrors[keyof InterruptJobErrors];
8888
10166
  export type InterruptJobResponses = {
8889
10167
  /**
8890
- * Success - first active job cancelled, or no active job found
10168
+ * Success - the job was cancelled, was already finished or
10169
+ * cancelling, or (without `prompt_id`) no active job was found
10170
+ *
8891
10171
  */
8892
10172
  200: unknown;
8893
10173
  };
@@ -8908,7 +10188,7 @@ export type AcceptWorkspaceInviteErrors = {
8908
10188
  */
8909
10189
  401: ErrorResponse;
8910
10190
  /**
8911
- * Email does not match invite
10191
+ * Email does not match invite (`FORBIDDEN`), the workspace is blocked (`WORKSPACE_BLOCKED`), or `code` is `membership_managed_by_directory` with `message` "Your organization's admin manages membership" for a web session from an SSO sign-in. Any other web session is refused by the auth policy. The session guard's codes (`origin_not_allowed`, `cross_site_request`, `csrf_invalid`) and `sso_required` as in SessionWriteForbidden.
8912
10192
  */
8913
10193
  403: ErrorResponse;
8914
10194
  /**
@@ -9059,7 +10339,7 @@ export type ListJobsErrors = {
9059
10339
  */
9060
10340
  401: ErrorResponse;
9061
10341
  /**
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.
10342
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
10343
  */
9064
10344
  403: ForbiddenError;
9065
10345
  /**
@@ -9152,7 +10432,7 @@ export type GetJobAssetsErrors = {
9152
10432
  */
9153
10433
  401: ErrorResponse;
9154
10434
  /**
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.
10435
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
10436
  */
9157
10437
  403: ForbiddenError;
9158
10438
  /**
@@ -9193,13 +10473,20 @@ export type CancelJobErrors = {
9193
10473
  */
9194
10474
  401: ErrorResponse;
9195
10475
  /**
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.
10476
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
10477
  */
9198
10478
  403: ForbiddenError;
9199
10479
  /**
9200
10480
  * Job not found for this user
9201
10481
  */
9202
10482
  404: ErrorResponse;
10483
+ /**
10484
+ * The job runs on a Build's deployment, is still pending or running,
10485
+ * and cannot be cancelled from here yet. Code
10486
+ * GATEWAY_JOB_NOT_CANCELLABLE; nothing was cancelled.
10487
+ *
10488
+ */
10489
+ 409: ErrorResponse;
9203
10490
  /**
9204
10491
  * Internal server error - cancellation failed
9205
10492
  */
@@ -9229,13 +10516,21 @@ export type CancelJobsErrors = {
9229
10516
  */
9230
10517
  401: ErrorResponse;
9231
10518
  /**
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.
10519
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
10520
  */
9234
10521
  403: ForbiddenError;
9235
10522
  /**
9236
10523
  * One or more job IDs not found for this user (no jobs cancelled)
9237
10524
  */
9238
10525
  404: ErrorResponse;
10526
+ /**
10527
+ * One or more jobs run on a Build's deployment, are still pending or
10528
+ * running, and cannot be cancelled from here yet. Code
10529
+ * GATEWAY_JOB_NOT_CANCELLABLE; the message names those jobs, and no
10530
+ * jobs were cancelled.
10531
+ *
10532
+ */
10533
+ 409: ErrorResponse;
9239
10534
  /**
9240
10535
  * Internal server error - cancellation failed
9241
10536
  */
@@ -9300,7 +10595,19 @@ export type GetNodeReplacementsResponse = GetNodeReplacementsResponses[keyof Get
9300
10595
  export type GetNodeInfoData = {
9301
10596
  body?: never;
9302
10597
  path?: never;
9303
- query?: never;
10598
+ query?: {
10599
+ /**
10600
+ * Also list the models the caller can run that the models config
10601
+ * does not: their own imported models and the public model assets the
10602
+ * asset library shows them (assets tagged `models`), each in the model
10603
+ * dropdown of the directory it installs under, so a client that
10604
+ * validates widget values against this catalog accepts a model that
10605
+ * would run. Off by default: the frontend reads these models through
10606
+ * the asset browser instead.
10607
+ *
10608
+ */
10609
+ include_user_models?: boolean;
10610
+ };
9304
10611
  url: '/api/object_info';
9305
10612
  };
9306
10613
  export type GetNodeInfoErrors = {
@@ -9313,7 +10620,7 @@ export type GetNodeInfoErrors = {
9313
10620
  */
9314
10621
  401: ErrorResponse;
9315
10622
  /**
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.
10623
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
10624
  */
9318
10625
  403: ForbiddenError;
9319
10626
  };
@@ -9357,7 +10664,7 @@ export type GetPromptInfoErrors = {
9357
10664
  */
9358
10665
  401: ErrorResponse;
9359
10666
  /**
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.
10667
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
10668
  */
9362
10669
  403: ForbiddenError;
9363
10670
  /**
@@ -9389,7 +10696,7 @@ export type ExecutePromptErrors = {
9389
10696
  */
9390
10697
  401: ErrorResponse;
9391
10698
  /**
9392
- * Payment required - Insufficient credits
10699
+ * The account's plan does not allow this submission; nothing was queued and retrying without changing the plan never succeeds. Disambiguated by the body's `error.type`, NOT by parsing `error.message`: `PAYMENT_REQUIRED` (no active subscription, no funds, blocked tier), `CLOUD_SUBSCRIPTION_REQUIRED`, `FREE_TIER_EXHAUSTED`, `PARTNER_NODE_PAYMENT_REQUIRED`, or `MODEL_PAYMENT_REQUIRED`.
9393
10700
  */
9394
10701
  402: PromptErrorResponse;
9395
10702
  /**
@@ -9401,7 +10708,7 @@ export type ExecutePromptErrors = {
9401
10708
  */
9402
10709
  413: PromptErrorResponse;
9403
10710
  /**
9404
- * Retryable backpressure. Two distinct causes, disambiguated by the body's `error.type`, NOT by parsing `error.message`: `PAYMENT_REQUIRED` / `FREE_TIER_UNAVAILABLE` / `FREE_TIER_EXHAUSTED` / `PARTNER_NODE_PAYMENT_REQUIRED` (a billing gate - retrying without paying never succeeds), or `QUEUE_LIMIT` (this workspace's bounded job queue is full - retrying after some queued jobs complete will succeed).
10711
+ * Retryable backpressure, disambiguated by the body's `error.type`: `QUEUE_LIMIT` (this workspace's bounded job queue is full - retrying after some queued jobs complete will succeed) or `FREE_TIER_UNAVAILABLE` (the free tier is switched off for now - retrying once it is back will succeed), or `BILLING_UNAVAILABLE` with `error.reason` `funds_unavailable` (ingest got no billing verdict for the workspace because the billing service was unreachable or rejected the check, or the billing-status read behind a no-funds verdict failed - nothing was queued, and retrying the same submission after `Retry-After` seconds will succeed once billing answers). Of the billing outcomes, a plan or billing policy refusal is a 402; only billing being unavailable is a 429.
9405
10712
  */
9406
10713
  429: PromptErrorResponse;
9407
10714
  /**
@@ -9483,7 +10790,7 @@ export type GetQueueInfoErrors = {
9483
10790
  */
9484
10791
  401: ErrorResponse;
9485
10792
  /**
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.
10793
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
10794
  */
9488
10795
  403: ForbiddenError;
9489
10796
  /**
@@ -9515,9 +10822,17 @@ export type ManageQueueErrors = {
9515
10822
  */
9516
10823
  401: ErrorResponse;
9517
10824
  /**
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.
10825
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
10826
  */
9520
10827
  403: ForbiddenError;
10828
+ /**
10829
+ * A job listed in `delete` runs on a Build's deployment, is still
10830
+ * pending or running, and cannot be cancelled from here yet. Code
10831
+ * GATEWAY_JOB_NOT_CANCELLABLE; the message names those jobs, and no
10832
+ * jobs were cancelled.
10833
+ *
10834
+ */
10835
+ 409: ErrorResponse;
9521
10836
  /**
9522
10837
  * Internal server error
9523
10838
  */
@@ -9547,7 +10862,7 @@ export type ListSecretsErrors = {
9547
10862
  */
9548
10863
  401: ErrorResponse;
9549
10864
  /**
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.
10865
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
10866
  */
9552
10867
  403: ForbiddenError;
9553
10868
  /**
@@ -9770,7 +11085,7 @@ export type ListSecretProvidersErrors = {
9770
11085
  */
9771
11086
  401: ErrorResponse;
9772
11087
  /**
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.
11088
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11089
  */
9775
11090
  403: ForbiddenError;
9776
11091
  /**
@@ -9802,7 +11117,7 @@ export type GetAllSettingsErrors = {
9802
11117
  */
9803
11118
  401: ErrorResponse;
9804
11119
  /**
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.
11120
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11121
  */
9807
11122
  403: ForbiddenError;
9808
11123
  };
@@ -9837,7 +11152,7 @@ export type UpdateMultipleSettingsErrors = {
9837
11152
  */
9838
11153
  401: ErrorResponse;
9839
11154
  /**
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.
11155
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
11156
  */
9842
11157
  403: ForbiddenError;
9843
11158
  };
@@ -9872,7 +11187,7 @@ export type GetSettingByIdErrors = {
9872
11187
  */
9873
11188
  401: ErrorResponse;
9874
11189
  /**
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.
11190
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11191
  */
9877
11192
  403: ForbiddenError;
9878
11193
  /**
@@ -9917,7 +11232,7 @@ export type UpdateSettingByIdErrors = {
9917
11232
  */
9918
11233
  401: ErrorResponse;
9919
11234
  /**
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.
11235
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
11236
  */
9922
11237
  403: ForbiddenError;
9923
11238
  };
@@ -9995,7 +11310,7 @@ export type ListTagsErrors = {
9995
11310
  */
9996
11311
  401: ErrorResponse;
9997
11312
  /**
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.
11313
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11314
  */
10000
11315
  403: ForbiddenError;
10001
11316
  /**
@@ -10060,7 +11375,7 @@ export type ListTasksErrors = {
10060
11375
  */
10061
11376
  401: ErrorResponse;
10062
11377
  /**
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.
11378
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11379
  */
10065
11380
  403: ForbiddenError;
10066
11381
  /**
@@ -10080,6 +11395,52 @@ export type ListTasksResponses = {
10080
11395
  200: TasksListResponse;
10081
11396
  };
10082
11397
  export type ListTasksResponse = ListTasksResponses[keyof ListTasksResponses];
11398
+ export type CancelTaskData = {
11399
+ body?: never;
11400
+ path: {
11401
+ task_id: string;
11402
+ };
11403
+ query?: never;
11404
+ url: '/api/tasks/{task_id}';
11405
+ };
11406
+ export type CancelTaskErrors = {
11407
+ /**
11408
+ * `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.
11409
+ */
11410
+ 400: ErrorResponse;
11411
+ /**
11412
+ * Unauthorized
11413
+ */
11414
+ 401: ErrorResponse;
11415
+ /**
11416
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
11417
+ */
11418
+ 403: ForbiddenError;
11419
+ /**
11420
+ * Task not found
11421
+ */
11422
+ 404: ErrorResponse;
11423
+ /**
11424
+ * Task cannot be cancelled
11425
+ */
11426
+ 409: ErrorResponse;
11427
+ /**
11428
+ * Cancellation failed
11429
+ */
11430
+ 500: ErrorResponse;
11431
+ /**
11432
+ * Task queue unavailable
11433
+ */
11434
+ 503: ErrorResponse;
11435
+ };
11436
+ export type CancelTaskError = CancelTaskErrors[keyof CancelTaskErrors];
11437
+ export type CancelTaskResponses = {
11438
+ /**
11439
+ * Cancellation accepted
11440
+ */
11441
+ 204: void;
11442
+ };
11443
+ export type CancelTaskResponse = CancelTaskResponses[keyof CancelTaskResponses];
10083
11444
  export type GetTaskData = {
10084
11445
  body?: never;
10085
11446
  path: {
@@ -10101,7 +11462,7 @@ export type GetTaskErrors = {
10101
11462
  */
10102
11463
  401: ErrorResponse;
10103
11464
  /**
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.
11465
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11466
  */
10106
11467
  403: ForbiddenError;
10107
11468
  /**
@@ -10154,7 +11515,7 @@ export type UploadImageErrors = {
10154
11515
  */
10155
11516
  401: ErrorResponse;
10156
11517
  /**
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.
11518
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
11519
  */
10159
11520
  403: ForbiddenError;
10160
11521
  /**
@@ -10208,7 +11569,7 @@ export type UploadMaskErrors = {
10208
11569
  */
10209
11570
  401: ErrorResponse;
10210
11571
  /**
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.
11572
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
11573
  */
10213
11574
  403: ForbiddenError;
10214
11575
  /**
@@ -10298,7 +11659,7 @@ export type GetUserErrors = {
10298
11659
  */
10299
11660
  401: ErrorResponse;
10300
11661
  /**
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.
11662
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11663
  */
10303
11664
  403: ForbiddenError;
10304
11665
  };
@@ -10343,7 +11704,7 @@ export type GetUserdataErrors = {
10343
11704
  */
10344
11705
  401: ErrorResponse;
10345
11706
  /**
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.
11707
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11708
  */
10348
11709
  403: ForbiddenError;
10349
11710
  /**
@@ -10384,7 +11745,7 @@ export type DeleteUserdataFileErrors = {
10384
11745
  */
10385
11746
  401: ErrorResponse;
10386
11747
  /**
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.
11748
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
11749
  */
10389
11750
  403: ForbiddenError;
10390
11751
  /**
@@ -10425,7 +11786,7 @@ export type GetUserdataFileErrors = {
10425
11786
  */
10426
11787
  401: ErrorResponse;
10427
11788
  /**
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.
11789
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11790
  */
10430
11791
  403: ForbiddenError;
10431
11792
  /**
@@ -10525,7 +11886,7 @@ export type MoveUserdataFileErrors = {
10525
11886
  */
10526
11887
  401: ErrorResponse;
10527
11888
  /**
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.
11889
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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.
10529
11890
  */
10530
11891
  403: ForbiddenError;
10531
11892
  /**
@@ -10570,7 +11931,7 @@ export type GetUserdataFilePublishErrors = {
10570
11931
  */
10571
11932
  401: ErrorResponse;
10572
11933
  /**
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.
11934
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
11935
  */
10575
11936
  403: ForbiddenError;
10576
11937
  /**
@@ -10611,7 +11972,7 @@ export type PostUserdataFilePublishErrors = {
10611
11972
  */
10612
11973
  401: ErrorResponse;
10613
11974
  /**
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.
11975
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
11976
  */
10616
11977
  403: ForbiddenError;
10617
11978
  /**
@@ -10647,7 +12008,7 @@ export type GetUsersInfoErrors = {
10647
12008
  */
10648
12009
  401: ErrorResponse;
10649
12010
  /**
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.
12011
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
12012
  */
10652
12013
  403: ForbiddenError;
10653
12014
  };
@@ -10712,7 +12073,7 @@ export type GetVhsQueryVideoErrors = {
10712
12073
  */
10713
12074
  401: ErrorResponse;
10714
12075
  /**
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.
12076
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
12077
  */
10717
12078
  403: ForbiddenError;
10718
12079
  /**
@@ -10803,7 +12164,7 @@ export type GetVhsViewAudioErrors = {
10803
12164
  */
10804
12165
  401: ErrorResponse;
10805
12166
  /**
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.
12167
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
12168
  */
10808
12169
  403: ForbiddenError;
10809
12170
  /**
@@ -10876,7 +12237,7 @@ export type GetVhsViewVideoErrors = {
10876
12237
  */
10877
12238
  401: ErrorResponse;
10878
12239
  /**
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.
12240
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
12241
  */
10881
12242
  403: ForbiddenError;
10882
12243
  /**
@@ -10964,7 +12325,7 @@ export type ViewFileErrors = {
10964
12325
  */
10965
12326
  401: ErrorResponse;
10966
12327
  /**
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.
12328
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
12329
  */
10969
12330
  403: ForbiddenError;
10970
12331
  /**
@@ -11043,7 +12404,7 @@ export type GetApiViewVideoAliasErrors = {
11043
12404
  */
11044
12405
  401: ErrorResponse;
11045
12406
  /**
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.
12407
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
12408
  */
11048
12409
  403: ForbiddenError;
11049
12410
  /**
@@ -11113,7 +12474,7 @@ export type ListWorkflowsErrors = {
11113
12474
  */
11114
12475
  401: ErrorResponse;
11115
12476
  /**
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.
12477
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
12478
  */
11118
12479
  403: ForbiddenError;
11119
12480
  /**
@@ -11145,7 +12506,7 @@ export type CreateWorkflowErrors = {
11145
12506
  */
11146
12507
  401: ErrorResponse;
11147
12508
  /**
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.
12509
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
12510
  */
11150
12511
  403: ForbiddenError;
11151
12512
  /**
@@ -11186,7 +12547,7 @@ export type DeleteWorkflowErrors = {
11186
12547
  */
11187
12548
  401: ErrorResponse;
11188
12549
  /**
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.
12550
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
12551
  */
11191
12552
  403: ForbiddenError;
11192
12553
  /**
@@ -11268,7 +12629,7 @@ export type UpdateWorkflowErrors = {
11268
12629
  */
11269
12630
  401: ErrorResponse;
11270
12631
  /**
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.
12632
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
12633
  */
11273
12634
  403: ForbiddenError;
11274
12635
  /**
@@ -11448,7 +12809,7 @@ export type GetPublishedWorkflowErrors = {
11448
12809
  */
11449
12810
  401: ErrorResponse;
11450
12811
  /**
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.
12812
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
12813
  */
11453
12814
  403: ForbiddenError;
11454
12815
  /**
@@ -11488,7 +12849,7 @@ export type CreateWorkflowUploadUrlErrors = {
11488
12849
  */
11489
12850
  401: ErrorResponse;
11490
12851
  /**
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.
12852
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
12853
  */
11493
12854
  403: ForbiddenError;
11494
12855
  /**
@@ -11812,7 +13173,7 @@ export type LeaveWorkspaceErrors = {
11812
13173
  */
11813
13174
  401: ErrorResponse;
11814
13175
  /**
11815
- * Cannot leave as the only owner or cannot leave personal workspace
13176
+ * Cannot leave as the only owner (`ONLY_OWNER`), cannot leave a personal workspace (`PERSONAL_WORKSPACE`), or `code` is `membership_managed_by_directory` with `message` "Your organization's admin manages membership" for an account the workspace's attached SSO organization holds.
11816
13177
  */
11817
13178
  403: ErrorResponse;
11818
13179
  /**
@@ -11984,7 +13345,7 @@ export type UpdateWorkspaceMemberRoleErrors = {
11984
13345
  */
11985
13346
  401: ErrorResponse;
11986
13347
  /**
11987
- * Owner role required, or the original owner cannot be demoted
13348
+ * Owner role required, the original owner cannot be demoted, or `DIRECTORY_MANAGED`: the member's role comes from their organization's directory (SSO) and is changed there
11988
13349
  */
11989
13350
  403: ErrorResponse;
11990
13351
  /**
@@ -12100,7 +13461,7 @@ export type ListWorkspacesErrors = {
12100
13461
  */
12101
13462
  401: ErrorResponse;
12102
13463
  /**
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.
13464
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
13465
  */
12105
13466
  403: ForbiddenError;
12106
13467
  /**
@@ -12136,7 +13497,7 @@ export type CreateWorkspaceErrors = {
12136
13497
  */
12137
13498
  401: ErrorResponse;
12138
13499
  /**
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.
13500
+ * A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). 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
13501
  */
12141
13502
  403: ForbiddenError;
12142
13503
  /**
@@ -12181,7 +13542,7 @@ export type DeleteWorkspaceErrors = {
12181
13542
  */
12182
13543
  401: ErrorResponse;
12183
13544
  /**
12184
- * Owner role required or cannot delete personal workspace
13545
+ * Owner role required, cannot delete personal workspace, `SUBSCRIPTION_ACTIVE`, or `SSO_ATTACHED` (the workspace belongs to an SSO organization; an operator detaches it first).
12185
13546
  */
12186
13547
  403: ErrorResponse;
12187
13548
  /**
@@ -12222,7 +13583,7 @@ export type GetWorkspaceErrors = {
12222
13583
  */
12223
13584
  401: ErrorResponse;
12224
13585
  /**
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.
13586
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
13587
  */
12227
13588
  403: ForbiddenError;
12228
13589
  /**
@@ -12563,7 +13924,7 @@ export type PostOAuthAuthorizeErrors = {
12563
13924
  */
12564
13925
  400: ErrorResponse;
12565
13926
  /**
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).
13927
+ * 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). The handler itself never returns 403.
12567
13928
  */
12568
13929
  403: ErrorResponse;
12569
13930
  /**
@@ -12713,7 +14074,7 @@ export type GetViewCompatAliasErrors = {
12713
14074
  */
12714
14075
  401: ErrorResponse;
12715
14076
  /**
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.
14077
+ * A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `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
14078
  */
12718
14079
  403: ForbiddenError;
12719
14080
  /**