@comfyorg/ingest-types 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -2
- package/dist/types.gen.d.ts +2410 -245
- package/dist/zod.gen.d.ts +5997 -17404
- package/dist/zod.gen.js +4755 -4709
- package/package.json +7 -5
- package/dist/types.gen.js +0 -2
package/dist/types.gen.d.ts
CHANGED
|
@@ -31,6 +31,99 @@ export type WorkspaceSummary = {
|
|
|
31
31
|
name: string;
|
|
32
32
|
type: 'personal' | 'team';
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Per-member action guidance for the authenticated actor; render each field as received rather than deriving it from roles.
|
|
36
|
+
*/
|
|
37
|
+
export type WorkspaceMemberCapabilities = {
|
|
38
|
+
/**
|
|
39
|
+
* Whether the actor may switch this member to the other supported role. Requires current owner authority and respects directory management, creator protection and the last-owner guard. Non-creator self-demotion is allowed when another owner remains. Not mutation authorization.
|
|
40
|
+
*/
|
|
41
|
+
can_change_role: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the actor may remove this member. Requires current owner authority, refuses self-removal and protects the creator. Directory management alone does not refuse the existing removal route. Not permission to leave the workspace; use can_leave_workspace.
|
|
44
|
+
*/
|
|
45
|
+
can_remove: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether a persisted member credit-limit mutation is available. Currently false: no such backend mutation exists. Not a balance, local UI setting, permission to change roles or permission to remove.
|
|
48
|
+
*/
|
|
49
|
+
can_set_credit_limit: boolean;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The deployments a browser in this workspace may pick, newest first by created_at (always present). A row without a Build name keeps its place in that order.
|
|
53
|
+
*/
|
|
54
|
+
export type WorkspaceDeploymentList = {
|
|
55
|
+
/**
|
|
56
|
+
* False when comfy-builder refused the caller's token when asked to name the rows' Releases, or its Builds listing (401 or 403); no row then carries a Build name or Release version. True does not mean every row is named: a row whose Release comfy-builder does not name carries none either, nor does one it could not name because a read of its Builds or their Releases failed (one Build's Releases refused with 401 or 403 included), or because its Build is past the first 50 Builds its Builds listing shows (on a comfy-builder released before it could name the rows for any member).
|
|
57
|
+
*/
|
|
58
|
+
builds_visible: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The workspace's default deployment, set by an owner through PUT /api/workspaces/{id}/default-deployment; absent when none is set, or when the one set is gone (see gone_default_deployment_id). Present whether or not this browser follows it, so the switcher can label the row.
|
|
61
|
+
*/
|
|
62
|
+
default_deployment_id?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The workspace's default deployment, present only when it is no longer one of the workspace's live deployments (deleted, or no longer the workspace's). Members with no pick of their own run on Comfy Cloud, and default_deployment_id is absent. The default stays recorded until an owner sets or clears it, so this is reported on every listing until then.
|
|
65
|
+
*/
|
|
66
|
+
gone_default_deployment_id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The deployment this browser had picked, present only when it is no longer one of the workspace's live deployments (deleted, or no longer the workspace's). Every catalog read and submit already ran this browser on Comfy Cloud for it. The response leaves the cookie untouched, so an older listing cannot overwrite a newer pick. The stale cookie remains an explicit browser pick (pick_source `browser`), so a workspace default set later does not move this browser. The browser is on Comfy Cloud and picked_deployment_id is absent. Subsequent listings report the same gone id until the cookie changes or expires.
|
|
69
|
+
*/
|
|
70
|
+
gone_picked_deployment_id?: string;
|
|
71
|
+
items: Array<WorkspaceDeployment>;
|
|
72
|
+
/**
|
|
73
|
+
* Where the current pick came from: `browser`, this browser's own pick cookie (a deployment, or Comfy Cloud with picked_deployment_id absent); `workspace_default`, the workspace's default deployment because the browser has no pick. Absent when there is neither.
|
|
74
|
+
*/
|
|
75
|
+
pick_source?: 'browser' | 'workspace_default';
|
|
76
|
+
/**
|
|
77
|
+
* The deployment this browser is on: its own pick, read from its pick cookie, or the workspace's default deployment when the browser has no pick (BE-17480); absent when the browser runs on Comfy Cloud. It is always one of the listed deployments: a pick or a default whose deployment is not among them (deleted, or no longer the workspace's) runs on Comfy Cloud, and is reported in gone_picked_deployment_id or gone_default_deployment_id instead. pick_source says which of the two it is.
|
|
78
|
+
*/
|
|
79
|
+
picked_deployment_id?: string;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* One live deployment of the workspace, as the editor's switcher shows it.
|
|
83
|
+
*/
|
|
84
|
+
export type WorkspaceDeployment = {
|
|
85
|
+
/**
|
|
86
|
+
* The Build the Release was cut from. Absent when comfy-builder did not name the Release (see builds_visible).
|
|
87
|
+
*/
|
|
88
|
+
build_id?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The Build's name. Absent when comfy-builder did not name the Release (see builds_visible).
|
|
91
|
+
*/
|
|
92
|
+
build_name?: string;
|
|
93
|
+
/**
|
|
94
|
+
* When the deployment was created.
|
|
95
|
+
*/
|
|
96
|
+
created_at: string;
|
|
97
|
+
/**
|
|
98
|
+
* Developer-platform deployment id; what PUT /api/workspaces/{id}/deployment takes.
|
|
99
|
+
*/
|
|
100
|
+
deployment_id: string;
|
|
101
|
+
/**
|
|
102
|
+
* The deployment's name in comfy-deploy: the one its owner gave it, or the default comfy-deploy gives it at create. It is unique among its Build's live deployments, and it stays the same when the deployment moves to another Release. Absent only on a deployment created before deployments had names, until it is given one.
|
|
103
|
+
*/
|
|
104
|
+
deployment_name?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The Release the deployment runs now. It changes when the deployment's owner updates it; a browser that picked the deployment follows.
|
|
107
|
+
*/
|
|
108
|
+
release_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* The Release's version number within its Build. Absent when comfy-builder did not name the Release (see builds_visible).
|
|
111
|
+
*/
|
|
112
|
+
release_version?: number;
|
|
113
|
+
/**
|
|
114
|
+
* The deployment's status (ready, provisioning, stopped, ...). Any of them may be picked; a job is taken only while it is ready.
|
|
115
|
+
*/
|
|
116
|
+
status: string;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Present only for can_delete_workspace denied with plan_ending when all live subscription rows carry a known future cancel_at. This is guidance, not a promise that deletion will succeed at that time; writes recheck.
|
|
120
|
+
*/
|
|
121
|
+
export type WorkspaceDeletionDenialParams = {
|
|
122
|
+
/**
|
|
123
|
+
* Latest authoritative cancel_at across live subscription rows. Absent means no known boundary; never synthesize a date.
|
|
124
|
+
*/
|
|
125
|
+
effective_at?: string;
|
|
126
|
+
};
|
|
34
127
|
/**
|
|
35
128
|
* Metadata for a workspace-scoped API key (secret is never returned).
|
|
36
129
|
*/
|
|
@@ -362,6 +455,14 @@ export type UserDataResponseFull = {
|
|
|
362
455
|
size?: number;
|
|
363
456
|
};
|
|
364
457
|
export type UsageTimeSeries = {
|
|
458
|
+
/**
|
|
459
|
+
* When the numbers were read. An open billing period is still moving.
|
|
460
|
+
*/
|
|
461
|
+
as_of?: string;
|
|
462
|
+
/**
|
|
463
|
+
* When per-charge recording began for this environment. The `person` and `source` groupings, and every `filter_*`, hold spend from this instant on: a range starting earlier shows only the recorded part under them, while `product_line` and `model` from the invoice show all of it. Absent where no charges are recorded yet.
|
|
464
|
+
*/
|
|
465
|
+
attribution_since?: string;
|
|
365
466
|
breakdown: Array<UsageBreakdownRow>;
|
|
366
467
|
buckets: Array<UsageBucket>;
|
|
367
468
|
ending_before: string;
|
|
@@ -373,6 +474,10 @@ export type UsageTimeSeries = {
|
|
|
373
474
|
group_labels?: Array<UsageGroupLabel>;
|
|
374
475
|
groups: Array<string>;
|
|
375
476
|
not_available?: UsageNotAvailable;
|
|
477
|
+
/**
|
|
478
|
+
* `ledger` when `groups` are the usage ledger's keys, which the `filter_*` parameters accept; absent for an invoice-served answer.
|
|
479
|
+
*/
|
|
480
|
+
served_from?: 'ledger';
|
|
376
481
|
starting_on: string;
|
|
377
482
|
summary: UsageSummary;
|
|
378
483
|
};
|
|
@@ -426,13 +531,33 @@ export type UsageSummary = {
|
|
|
426
531
|
* 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
532
|
*/
|
|
428
533
|
export type UsageNotAvailable = {
|
|
429
|
-
reason: 'no_attribution_source';
|
|
534
|
+
reason: 'no_attribution_source' | 'filter_needs_ledger';
|
|
430
535
|
};
|
|
431
536
|
export type UsageGroupLabel = {
|
|
432
537
|
/**
|
|
433
|
-
*
|
|
538
|
+
* Only for `model` when the key is a Serverless deployment: `gpu` for the deployment's GPU time, `storage` for its network-volume and container-disk storage.
|
|
539
|
+
*/
|
|
540
|
+
cost_kind?: 'gpu' | 'storage';
|
|
541
|
+
/**
|
|
542
|
+
* For `model` and `source` when the key is a Serverless deployment: the deployment's id. Under Serverless the model level is the deployment, with its GPU time and its storage as separate keys; under `source` each deployment is one key.
|
|
543
|
+
*/
|
|
544
|
+
deployment_id?: string;
|
|
545
|
+
/**
|
|
546
|
+
* For `model` and `source` when the key is a Serverless deployment and the caller is a signed-in session comfy-deploy can name it for; absent on an API-key read or when comfy-deploy could not be reached, and `display_name` then carries the id.
|
|
547
|
+
*/
|
|
548
|
+
deployment_name?: string;
|
|
549
|
+
/**
|
|
550
|
+
* Human-readable name for the key: a person's name, a product line's label, a model's name (`Not specified` for `unspecified`), or the key's owner and prefix.
|
|
434
551
|
*/
|
|
435
552
|
display_name?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Only for `person` when the member is known; tells two members with one name apart.
|
|
555
|
+
*/
|
|
556
|
+
email?: string;
|
|
557
|
+
/**
|
|
558
|
+
* Only for `person`: true when the person is no longer a member of this workspace. Their spend stays under their name.
|
|
559
|
+
*/
|
|
560
|
+
former_member?: boolean;
|
|
436
561
|
/**
|
|
437
562
|
* The value as it appears in `groups`, `buckets` and `breakdown`.
|
|
438
563
|
*/
|
|
@@ -446,15 +571,19 @@ export type UsageGroupLabel = {
|
|
|
446
571
|
*/
|
|
447
572
|
key_prefix?: string;
|
|
448
573
|
/**
|
|
449
|
-
* Only for `source`.
|
|
574
|
+
* Only for `source`. A `deployment` key is one Serverless deployment's id (`deployment_id` set); the bare key `deployment` is deployment spend recorded without an id.
|
|
450
575
|
*/
|
|
451
576
|
kind?: 'api_key' | 'session' | 'deployment';
|
|
452
577
|
/**
|
|
453
|
-
* Only for `source` when the key's owner is known.
|
|
578
|
+
* Only for `source` when the key's or deployment's owner is known.
|
|
454
579
|
*/
|
|
455
580
|
owner_display_name?: string;
|
|
456
581
|
/**
|
|
457
|
-
* Only for `source` when the key is known
|
|
582
|
+
* Only for `source` when the key's or deployment's owner is known; tells two owners with one name apart.
|
|
583
|
+
*/
|
|
584
|
+
owner_email?: string;
|
|
585
|
+
/**
|
|
586
|
+
* Only for `source`: the API key's owner when the key is known to this workspace, or the member who deployed a deployment when comfy-deploy names it.
|
|
458
587
|
*/
|
|
459
588
|
owner_user_id?: string;
|
|
460
589
|
};
|
|
@@ -467,6 +596,10 @@ export type UsageBucket = {
|
|
|
467
596
|
export type UsageBreakdownRow = {
|
|
468
597
|
cost_micros: number;
|
|
469
598
|
group_key: string;
|
|
599
|
+
/**
|
|
600
|
+
* Only on a ledger-served answer (`served_from: ledger`): how many distinct charges — jobs, calls, metered hours — the group's spend came from over the range.
|
|
601
|
+
*/
|
|
602
|
+
run_count?: number;
|
|
470
603
|
share: number;
|
|
471
604
|
};
|
|
472
605
|
/**
|
|
@@ -574,7 +707,8 @@ export type TopupQuoteResponse = {
|
|
|
574
707
|
expires_at: string;
|
|
575
708
|
};
|
|
576
709
|
/**
|
|
577
|
-
* One persisted tool call attached to an assistant message's content.tool_calls (services/agent/internal/persist.ToolCallSummary), so a chat reload can render the tool-call history a turn produced. Display data only — raw arguments/results are never projected here. Only terminal rows (status ok/error) are ever surfaced; a row a dead turn left in pending/running has no wire-status mapping and is dropped rather than shown as a perpetual-progress chip.
|
|
710
|
+
* One persisted tool call attached to an assistant message's content.tool_calls (services/agent/internal/persist.ToolCallSummary), so a chat reload can render the tool-call history a turn produced. Display data only — raw arguments/results are never projected here. The optional produced_asset field is a strict exception containing only the server-recorded id/hash from a successful asset-producing media call. Only terminal rows (status ok/error) are ever surfaced; a row a dead turn left in pending/running has no wire-status mapping and is dropped rather than shown as a perpetual-progress chip.
|
|
711
|
+
* This object is projected at read time by services/agent/internal/persist.ToolCallsForThread from agent_tool_calls; it is never stored in agent_messages.content, so there is no legacy persisted shape. Because of that projection the contract holds for every row ever served: tool_call_id is always present (it falls back to id for rows written before the column existed), status is always one of the enum values (the audit-table word "ok" is translated by ToolCallWireStatus), and duration_ms is always an integer when present. Clients (the frontend's zPersistedToolCallSummary) must not relax these fields to parse "historical" rows — a row that fails this schema is a server bug (BE-20134).
|
|
578
712
|
*/
|
|
579
713
|
export type ToolCallSummary = {
|
|
580
714
|
/**
|
|
@@ -594,6 +728,19 @@ export type ToolCallSummary = {
|
|
|
594
728
|
* 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
729
|
*/
|
|
596
730
|
job_id?: string;
|
|
731
|
+
/**
|
|
732
|
+
* Present only when this exact row is a successful process_media or combine_media call whose persisted audit result contains a complete saved_asset identity. It binds an assistant message and tool call to the asset representing that call's output bytes. Ingest may dedupe identical bytes to an existing asset, so this does not prove the call created the asset, and multiple calls may name the same id. Consumers must still authenticate the asset id and match the hash against the candidate selector. Omitted for failed calls, non-producing tools, malformed/legacy results, and rows outside the history window. Raw results, arguments, asset names, URLs, credentials, notes, and unrelated metadata are never exposed.
|
|
733
|
+
*/
|
|
734
|
+
produced_asset?: {
|
|
735
|
+
/**
|
|
736
|
+
* The canonical asset hash/filename selector recorded by the producing call, including its media extension.
|
|
737
|
+
*/
|
|
738
|
+
hash: string;
|
|
739
|
+
/**
|
|
740
|
+
* The server-assigned asset id recorded by the producing call.
|
|
741
|
+
*/
|
|
742
|
+
id: string;
|
|
743
|
+
};
|
|
597
744
|
started_at?: string;
|
|
598
745
|
/**
|
|
599
746
|
* 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.
|
|
@@ -615,10 +762,27 @@ export type TeamCreditStops = {
|
|
|
615
762
|
default_stop_index: number;
|
|
616
763
|
stops: Array<TeamCreditStop>;
|
|
617
764
|
};
|
|
765
|
+
export type PlanActionDeniedReasonParams = {
|
|
766
|
+
/**
|
|
767
|
+
* Billing boundary when the already-scheduled successor takes effect.
|
|
768
|
+
*/
|
|
769
|
+
effective_at?: string;
|
|
770
|
+
};
|
|
771
|
+
/**
|
|
772
|
+
* Why action is none. Permission refusals precede sales management, parked and running operations, a scheduled successor, transition restrictions, and seats. Scheduled successors include effective_at in denied_reason_params. Unknown or unavailable state fails closed with billing_state_unknown. Absent for an actionable choice.
|
|
773
|
+
*/
|
|
774
|
+
export type PlanActionDeniedReason = 'not_a_member' | 'not_workspace_owner' | 'not_original_owner' | 'sales_managed' | 'billing_operation_parked' | 'billing_operation_in_progress' | 'subscription_change_in_progress' | 'annual_to_monthly_unsupported' | 'same_plan' | 'incompatible_transition' | 'exceeds_max_seats' | 'billing_state_unknown';
|
|
775
|
+
/**
|
|
776
|
+
* Action for this exact plan and billing interval. Render as received. Subscribe starts or resumes checkout, change changes the plan now, reactivate removes a scheduled cancellation, downgrade schedules a reduction at the billing boundary, and none disables the choice. This is presentation guidance, not authorization; writes recheck policy.
|
|
777
|
+
*/
|
|
778
|
+
export type PlanAction = 'subscribe' | 'change' | 'reactivate' | 'downgrade' | 'none';
|
|
618
779
|
/**
|
|
619
780
|
* Pre/post-discount price for a team credit stop, in cents.
|
|
620
781
|
*/
|
|
621
782
|
export type TeamCreditStopPrice = {
|
|
783
|
+
action: PlanAction;
|
|
784
|
+
denied_reason?: PlanActionDeniedReason;
|
|
785
|
+
denied_reason_params?: PlanActionDeniedReasonParams;
|
|
622
786
|
/**
|
|
623
787
|
* Pre-discount (struck-through) price in cents
|
|
624
788
|
*/
|
|
@@ -872,6 +1036,10 @@ export type SystemStatsResponse = {
|
|
|
872
1036
|
workflow_templates_version?: string;
|
|
873
1037
|
};
|
|
874
1038
|
};
|
|
1039
|
+
/**
|
|
1040
|
+
* Server-owned subscription presentation state. A future scheduled plan change remains active, with its target in scheduled_change. Paused means a recoverable renewal collection failure; past_due requires direct subscription payment evidence, never an unattributed workspace or top-up failure. Activating means the initial subscription is awaiting payment. This is not an authorization or workflow admission decision; use capabilities.
|
|
1041
|
+
*/
|
|
1042
|
+
export type SubscriptionState = 'never_subscribed' | 'active' | 'cancel_scheduled' | 'past_due' | 'paused' | 'activating' | 'ended';
|
|
875
1043
|
/**
|
|
876
1044
|
* Billing period (uppercase to match comfy-api)
|
|
877
1045
|
*/
|
|
@@ -1079,7 +1247,7 @@ export type AgentConsentSettingValue = {
|
|
|
1079
1247
|
/**
|
|
1080
1248
|
* Server-to-client CRDT document frame carried by the /ws envelope.
|
|
1081
1249
|
*/
|
|
1082
|
-
export type ServerDocFrame = DocUpdateFrame | DocResetFrame | DocOpsResultFrame;
|
|
1250
|
+
export type ServerDocFrame = DocSubscribedFrame | DocUpdateFrame | DocResetFrame | DocOpsResultFrame;
|
|
1083
1251
|
/**
|
|
1084
1252
|
* First rejected op in an abort-remainder batch.
|
|
1085
1253
|
*/
|
|
@@ -1143,6 +1311,35 @@ export type DocUpdateFrame = {
|
|
|
1143
1311
|
data: DocUpdateData;
|
|
1144
1312
|
type: 'doc_update';
|
|
1145
1313
|
};
|
|
1314
|
+
export type DocSubscribedData = {
|
|
1315
|
+
code?: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* Binds a stale-schema refusal to the exact row the client may re-mint. Present only with stale_schema_reseed_required.
|
|
1318
|
+
*/
|
|
1319
|
+
expected_seq?: number;
|
|
1320
|
+
/**
|
|
1321
|
+
* Current lineage sequence. On an accepted subscription, omission means lineage 0 (the document has not been minted yet).
|
|
1322
|
+
*/
|
|
1323
|
+
lineage_seq?: number;
|
|
1324
|
+
/**
|
|
1325
|
+
* Human-readable rejection reason. The generated Go field is named Reason so it does not collide with the frame's Message method.
|
|
1326
|
+
*/
|
|
1327
|
+
message?: string;
|
|
1328
|
+
ok: boolean;
|
|
1329
|
+
/**
|
|
1330
|
+
* Current document sequence. On an accepted subscription, omission means sequence 0 (the document has not been minted yet).
|
|
1331
|
+
*/
|
|
1332
|
+
seq?: number;
|
|
1333
|
+
v: number;
|
|
1334
|
+
workflow_id: string;
|
|
1335
|
+
};
|
|
1336
|
+
/**
|
|
1337
|
+
* Server acknowledgement for a doc_subscribe request.
|
|
1338
|
+
*/
|
|
1339
|
+
export type DocSubscribedFrame = {
|
|
1340
|
+
data: DocSubscribedData;
|
|
1341
|
+
type: 'doc_subscribed';
|
|
1342
|
+
};
|
|
1146
1343
|
/**
|
|
1147
1344
|
* User secret metadata (the secret value itself is never returned after creation).
|
|
1148
1345
|
*/
|
|
@@ -1917,15 +2114,24 @@ export type PreviewSubscribeRequest = {
|
|
|
1917
2114
|
team_credit_stop_id?: string;
|
|
1918
2115
|
};
|
|
1919
2116
|
/**
|
|
1920
|
-
*
|
|
2117
|
+
* Why a plan is unavailable. Present exactly when available is false and
|
|
2118
|
+
* absent when it is true. Only the first reason that applies is reported,
|
|
2119
|
+
* in the order below. Render the value as received; do not recompute it.
|
|
2120
|
+
* same_plan: (a) Why can this plan not be picked? (b) It is the plan the workspace is already on. (c) Absent means the plan is not the current one. (d) Not a refusal of a different plan; see incompatible_transition. (e) The plan slug equals the slug of the workspace's active subscription.
|
|
2121
|
+
* incompatible_transition: (a) Why is this plan closed for the workspace's current plan? (b) The transition rules never allow it: the Free plan, which is provisioned only through free-tier eligibility, or a switch into the Founders plan. (c) Absent means no such rule applies. (d) Not a temporary state, and not billing_operation_in_progress, billing_operation_parked or annual_to_monthly_unsupported. (e) The target is the Free plan, or the transition matrix refuses the pair for a reason other than annual_to_monthly_unsupported.
|
|
2122
|
+
* billing_operation_in_progress: (a) Why can no other plan be picked for now? (b) A subscription-changing billing operation is running for the workspace's active subscription. It settles on its own, so a client may say that plans will be available again shortly. (c) Absent means no such operation is running. (d) Not billing_operation_parked, which does not clear on its own, not a successor already scheduled for a future billing boundary, and not a seat problem. (e) The workspace has a non-scheduled active subscription and a subscription-changing billing operation is running and none is parked.
|
|
2123
|
+
* billing_operation_parked: (a) Why can no other plan be picked until support steps in? (b) A subscription-changing billing operation is parked for reconciliation for the workspace's active subscription: it is either paid but credits not granted, or a replacement subscription that could not finish superseding the old one. It does not clear on its own, so a client must route the user to support and never imply a wait. (c) Absent means no operation is parked. (d) Not billing_operation_in_progress, which settles on its own, not a successor already scheduled for a future billing boundary, and not a seat problem. (e) The workspace has a non-scheduled active subscription and a subscription-changing billing operation is parked; reported instead of billing_operation_in_progress when both exist.
|
|
2124
|
+
* annual_to_monthly_unsupported: (a) Why can a monthly plan not be chosen from an annual plan? (b) The annual commitment binds, so a move to a higher-tier monthly plan is not supported before the term ends. (c) Absent means the transition is not an annual to higher-tier monthly move. (d) Not a downgrade, which is allowed and scheduled, and not incompatible_transition. (e) The transition matrix refuses the pair with its annual-to-monthly tier upgrade rule.
|
|
2125
|
+
* exceeds_max_seats: (a) Why is this plan closed to a workspace with many people? (b) The occupied seats exceed the plan's seat limit, counted as the subscribe request counts them: a team plan counts members plus unexpired pending invitations, any other plan counts members alone. (c) Absent means the occupied seats fit the plan. (d) Not a pending-invitation count for non-team plans, where an invitation does not occupy a seat. (e) For a team plan, members + pending invitations is greater than the seat limit; for any other plan, members is greater than the seat limit; a positive workspace override replaces the plan default in both cases.
|
|
2126
|
+
* requires_team and requires_personal are part of this enum but are not reported today.
|
|
1921
2127
|
*/
|
|
1922
|
-
export type PlanAvailabilityReason = 'same_plan' | 'incompatible_transition' | '
|
|
2128
|
+
export type PlanAvailabilityReason = 'same_plan' | 'incompatible_transition' | 'billing_operation_in_progress' | 'billing_operation_parked' | 'annual_to_monthly_unsupported' | 'exceeds_max_seats' | 'requires_team' | 'requires_personal';
|
|
1923
2129
|
/**
|
|
1924
2130
|
* Availability and eligibility information for a billing plan.
|
|
1925
2131
|
*/
|
|
1926
2132
|
export type PlanAvailability = {
|
|
1927
2133
|
/**
|
|
1928
|
-
* Whether the workspace can
|
|
2134
|
+
* Whether the workspace can switch to this plan right now. False exactly when reason is present.
|
|
1929
2135
|
*/
|
|
1930
2136
|
available: boolean;
|
|
1931
2137
|
reason?: PlanAvailabilityReason;
|
|
@@ -1934,6 +2140,7 @@ export type PlanAvailability = {
|
|
|
1934
2140
|
* Billing plan details including pricing, limits, and features.
|
|
1935
2141
|
*/
|
|
1936
2142
|
export type Plan = {
|
|
2143
|
+
action: PlanAction;
|
|
1937
2144
|
availability: PlanAvailability;
|
|
1938
2145
|
/**
|
|
1939
2146
|
* Raw credit count (not cents) the plan grants for one billing period,
|
|
@@ -1949,6 +2156,8 @@ export type Plan = {
|
|
|
1949
2156
|
* Per-member credits in cents (base + one seat)
|
|
1950
2157
|
*/
|
|
1951
2158
|
credits_cents: number;
|
|
2159
|
+
denied_reason?: PlanActionDeniedReason;
|
|
2160
|
+
denied_reason_params?: PlanActionDeniedReasonParams;
|
|
1952
2161
|
duration: SubscriptionDuration;
|
|
1953
2162
|
/**
|
|
1954
2163
|
* Maximum number of seats allowed for this plan
|
|
@@ -1965,6 +2174,15 @@ export type Plan = {
|
|
|
1965
2174
|
slug: string;
|
|
1966
2175
|
tier: SubscriptionTier;
|
|
1967
2176
|
};
|
|
2177
|
+
/**
|
|
2178
|
+
* Which developer-platform deployment this browser should run on.
|
|
2179
|
+
*/
|
|
2180
|
+
export type PickWorkspaceDeploymentRequest = {
|
|
2181
|
+
/**
|
|
2182
|
+
* Developer-platform deployment id: one of this workspace's, not deleted. The error message names which check failed.
|
|
2183
|
+
*/
|
|
2184
|
+
deployment_id: string;
|
|
2185
|
+
};
|
|
1968
2186
|
/**
|
|
1969
2187
|
* An outstanding workspace invitation that has not yet been accepted.
|
|
1970
2188
|
*/
|
|
@@ -2003,6 +2221,15 @@ export type PaymentPortalResponse = {
|
|
|
2003
2221
|
* Request body for generating a payment portal session URL.
|
|
2004
2222
|
*/
|
|
2005
2223
|
export type PaymentPortalRequest = {
|
|
2224
|
+
/**
|
|
2225
|
+
* Omitted or empty opens the generic Billing and invoices portal.
|
|
2226
|
+
* payment_method_update opens Stripe's dedicated add-payment-method flow;
|
|
2227
|
+
* completing it sets only customer.invoice_settings.default_payment_method.
|
|
2228
|
+
* It does not update subscription-specific defaults or guarantee renewal recovery.
|
|
2229
|
+
* Completion uses Stripe's hosted confirmation page.
|
|
2230
|
+
*
|
|
2231
|
+
*/
|
|
2232
|
+
flow_type?: '' | 'payment_method_update';
|
|
2006
2233
|
/**
|
|
2007
2234
|
* URL to redirect after the user exits the portal
|
|
2008
2235
|
*/
|
|
@@ -2122,7 +2349,7 @@ export type OAuthRegisterRequest = {
|
|
|
2122
2349
|
*/
|
|
2123
2350
|
response_types?: Array<'code'>;
|
|
2124
2351
|
/**
|
|
2125
|
-
* **ACCEPTED AND IGNORED.** Dynamic clients do not pick scopes — the server
|
|
2352
|
+
* **ACCEPTED AND IGNORED.** Dynamic clients do not pick scopes — the server grants the published scope lists of `comfy-mcp` and, when active, `comfy-router`, so a caller-supplied value cannot escalate. The field is accepted (RFC 7591 §2 defines it and the MCP SDK always sends it) but the value is dropped: it is never persisted and never echoed in the registration response.
|
|
2126
2353
|
*
|
|
2127
2354
|
*/
|
|
2128
2355
|
scope?: string | null;
|
|
@@ -2168,7 +2395,7 @@ export type ErrorResponse = {
|
|
|
2168
2395
|
};
|
|
2169
2396
|
message: string;
|
|
2170
2397
|
/**
|
|
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.
|
|
2398
|
+
* 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 but `account_outside_organization`, where it is the workspace's organization, which no sign-in of the account joins.
|
|
2172
2399
|
*/
|
|
2173
2400
|
organization_id?: string;
|
|
2174
2401
|
};
|
|
@@ -2369,6 +2596,10 @@ export type ModelFile = {
|
|
|
2369
2596
|
* Workspace member with profile and role information.
|
|
2370
2597
|
*/
|
|
2371
2598
|
export type Member = {
|
|
2599
|
+
/**
|
|
2600
|
+
* Actions the authenticated actor may offer for this exact member row. Supplied by the member list; role-update responses may omit it. Absent means unknown, not permission. Writes recheck current membership.
|
|
2601
|
+
*/
|
|
2602
|
+
capabilities?: WorkspaceMemberCapabilities;
|
|
2372
2603
|
/**
|
|
2373
2604
|
* User's email address, or an empty string if none is on file.
|
|
2374
2605
|
*/
|
|
@@ -2413,15 +2644,16 @@ export type MediaBadRequestError = ErrorResponse | MediaQueryError;
|
|
|
2413
2644
|
*/
|
|
2414
2645
|
export type ListWorkspacesResponse = {
|
|
2415
2646
|
/**
|
|
2416
|
-
* Whether
|
|
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
|
-
*
|
|
2647
|
+
* Whether the client should offer creating another workspace. False for an account managed by an SSO organization or an actor with ten or more owner workspace memberships, including the personal workspace. This is guidance only: POST /api/workspaces does not enforce this ten-membership limit. It is not write authorization.
|
|
2423
2648
|
*/
|
|
2424
2649
|
can_create_workspace: boolean;
|
|
2650
|
+
/**
|
|
2651
|
+
* The workspace the app should open on sign-in: the workspace of the
|
|
2652
|
+
* SSO organization that manages the caller's account, when the caller
|
|
2653
|
+
* is a member of it. Absent for accounts no SSO organization manages.
|
|
2654
|
+
*
|
|
2655
|
+
*/
|
|
2656
|
+
default_workspace_id?: string;
|
|
2425
2657
|
workspaces: Array<WorkspaceWithRole>;
|
|
2426
2658
|
};
|
|
2427
2659
|
/**
|
|
@@ -2652,6 +2884,31 @@ export type ExecutionError = {
|
|
|
2652
2884
|
*/
|
|
2653
2885
|
traceback: Array<string>;
|
|
2654
2886
|
};
|
|
2887
|
+
/**
|
|
2888
|
+
* The deployment a job ran on and the Release it ran, as they were when the job was sent: deployment_id and release_id stay the same after the deployment is updated to another Release or deleted. build_name and release_version are read from comfy-builder when the job is read, so a renamed Build shows its new name within a few minutes.
|
|
2889
|
+
*/
|
|
2890
|
+
export type JobDeployment = {
|
|
2891
|
+
/**
|
|
2892
|
+
* The name of the Build the Release was cut from, as comfy-builder names it now. Absent when it is not named for this caller: an API-key caller, a caller reading a job outside their active workspace (an admin reading another workspace's job), comfy-builder not configured on this server, minting the token to ask comfy-builder failing, comfy-builder failing or not answering in time, or a Release or Build since deleted.
|
|
2893
|
+
*/
|
|
2894
|
+
build_name?: string;
|
|
2895
|
+
/**
|
|
2896
|
+
* Developer-platform deployment id.
|
|
2897
|
+
*/
|
|
2898
|
+
deployment_id: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* The deployment's own name from comfy-deploy, including for a deleted deployment. Read when the job is read and cached for five minutes, so a rename appears after the cache expires; not a job-time snapshot. Absent for unnamed or unavailable deployments, API-key callers, jobs outside the caller's active workspace, or when the service or token mint is unavailable. Does not replace build_name or the stable IDs.
|
|
2901
|
+
*/
|
|
2902
|
+
name?: string;
|
|
2903
|
+
/**
|
|
2904
|
+
* The Release the job ran.
|
|
2905
|
+
*/
|
|
2906
|
+
release_id: string;
|
|
2907
|
+
/**
|
|
2908
|
+
* The Release's version number within its Build. Absent whenever build_name is.
|
|
2909
|
+
*/
|
|
2910
|
+
release_version?: number;
|
|
2911
|
+
};
|
|
2655
2912
|
/**
|
|
2656
2913
|
* Lightweight job data for list views (workflow and full outputs excluded)
|
|
2657
2914
|
*/
|
|
@@ -2660,6 +2917,10 @@ export type JobEntry = {
|
|
|
2660
2917
|
* Job creation timestamp (Unix timestamp in milliseconds)
|
|
2661
2918
|
*/
|
|
2662
2919
|
create_time: number;
|
|
2920
|
+
/**
|
|
2921
|
+
* Where a platform_gateway job ran. Absent for cloud_inference jobs. Also absent when the platform has not taken the job, refused it, failed before dispatch, or removed its platform record; when the record names no deployment; or when that record could not be read. Absence does not mean the job is pending: use status for its state. A failed job can retain executor=platform_gateway without a known deployment. No deployment is inferred from the caller's current pick.
|
|
2922
|
+
*/
|
|
2923
|
+
deployment?: JobDeployment;
|
|
2663
2924
|
/**
|
|
2664
2925
|
* Workflow execution completion timestamp (Unix milliseconds, only present for terminal states)
|
|
2665
2926
|
*/
|
|
@@ -2672,6 +2933,10 @@ export type JobEntry = {
|
|
|
2672
2933
|
* Workflow execution start timestamp (Unix milliseconds, only present for terminal states)
|
|
2673
2934
|
*/
|
|
2674
2935
|
execution_start_time?: number;
|
|
2936
|
+
/**
|
|
2937
|
+
* What ran the job: cloud_inference is Comfy Cloud's own GPUs; platform_gateway is a deployment of the workspace's own Build, which deployment names.
|
|
2938
|
+
*/
|
|
2939
|
+
executor?: 'cloud_inference' | 'platform_gateway';
|
|
2675
2940
|
/**
|
|
2676
2941
|
* Unique job identifier
|
|
2677
2942
|
*/
|
|
@@ -2810,6 +3075,10 @@ export type JobDetailResponse = {
|
|
|
2810
3075
|
* Job creation timestamp (Unix timestamp in milliseconds)
|
|
2811
3076
|
*/
|
|
2812
3077
|
create_time: number;
|
|
3078
|
+
/**
|
|
3079
|
+
* Where a platform_gateway job ran. Absent for cloud_inference jobs. Also absent when the platform has not taken the job, refused it, failed before dispatch, or removed its platform record; when the record names no deployment; or when that record could not be read. Absence does not mean the job is pending: use status for its state. A failed job can retain executor=platform_gateway without a known deployment. No deployment is inferred from the caller's current pick.
|
|
3080
|
+
*/
|
|
3081
|
+
deployment?: JobDeployment;
|
|
2813
3082
|
/**
|
|
2814
3083
|
* Workflow execution completion timestamp (Unix milliseconds, only present for terminal states)
|
|
2815
3084
|
*/
|
|
@@ -2834,6 +3103,10 @@ export type JobDetailResponse = {
|
|
|
2834
3103
|
execution_status?: {
|
|
2835
3104
|
[key: string]: unknown;
|
|
2836
3105
|
};
|
|
3106
|
+
/**
|
|
3107
|
+
* What ran the job: cloud_inference is Comfy Cloud's own GPUs; platform_gateway is a deployment of the workspace's own Build, which deployment names.
|
|
3108
|
+
*/
|
|
3109
|
+
executor?: 'cloud_inference' | 'platform_gateway';
|
|
2837
3110
|
/**
|
|
2838
3111
|
* Unique job identifier
|
|
2839
3112
|
*/
|
|
@@ -2884,10 +3157,12 @@ export type JobDetailResponse = {
|
|
|
2884
3157
|
* (the frontend's filter categories depend on that), so this field
|
|
2885
3158
|
* is the one that tells the two kinds of waiting apart:
|
|
2886
3159
|
*
|
|
2887
|
-
* - `concurrency_limit` — the job is
|
|
2888
|
-
* per-user/per-auth-method concurrent-job
|
|
2889
|
-
*
|
|
2890
|
-
*
|
|
3160
|
+
* - `concurrency_limit` — the job is awaiting admission under the
|
|
3161
|
+
* per-user/per-auth-method or aggregate workspace concurrent-job
|
|
3162
|
+
* cap. Other members' running jobs can fill the workspace cap
|
|
3163
|
+
* even when this job's owner has no running jobs. This field
|
|
3164
|
+
* does not distinguish which cap is full.
|
|
3165
|
+
* - `capacity` — the job has passed concurrency admission and is
|
|
2891
3166
|
* waiting for an inference worker to become free.
|
|
2892
3167
|
*
|
|
2893
3168
|
* Detail-only: this field is NOT present on the list view's
|
|
@@ -2983,8 +3258,7 @@ export type InputUploadUrlRequest = {
|
|
|
2983
3258
|
* MIME type of the file to upload. Must be one of the image types
|
|
2984
3259
|
* image/jpeg, image/png, image/webp, image/gif, the audio types
|
|
2985
3260
|
* audio/mpeg, audio/mp3, audio/wav, audio/wave, audio/x-wav,
|
|
2986
|
-
* audio/flac, audio/x-flac, audio/ogg, or
|
|
2987
|
-
* enabled video input uploads — the video types video/mp4,
|
|
3261
|
+
* audio/flac, audio/x-flac, audio/ogg, or the video types video/mp4,
|
|
2988
3262
|
* video/webm, video/quicktime.
|
|
2989
3263
|
* Advisory: the stored asset's format always follows the uploaded
|
|
2990
3264
|
* bytes as identified server-side (decoded for images, sniffed for
|
|
@@ -3326,6 +3600,38 @@ export type HubAssetUploadUrlRequest = {
|
|
|
3326
3600
|
*/
|
|
3327
3601
|
filename: string;
|
|
3328
3602
|
};
|
|
3603
|
+
/**
|
|
3604
|
+
* Durable discovery record only. Fetch the session endpoint for current payment and credit-fulfillment state; a summary proves neither. An unavailable session remains discoverable without hiding other rows.
|
|
3605
|
+
*
|
|
3606
|
+
*/
|
|
3607
|
+
export type HostedTopupCheckoutSummary = {
|
|
3608
|
+
amount_cents: number;
|
|
3609
|
+
created_at: string;
|
|
3610
|
+
session_id: string;
|
|
3611
|
+
};
|
|
3612
|
+
export type HostedTopupCheckoutList = {
|
|
3613
|
+
checkouts: Array<HostedTopupCheckoutSummary>;
|
|
3614
|
+
/**
|
|
3615
|
+
* Opaque cursor for the next page, null when exhausted.
|
|
3616
|
+
*/
|
|
3617
|
+
next_cursor: string | null;
|
|
3618
|
+
};
|
|
3619
|
+
export type HostedTopupCheckout = {
|
|
3620
|
+
/**
|
|
3621
|
+
* Original credit purchase amount before promotions, not the settled payment amount.
|
|
3622
|
+
*/
|
|
3623
|
+
amount_cents: number;
|
|
3624
|
+
/**
|
|
3625
|
+
* Actual USD Stripe total after promotions, including a confirmed fully discounted zero. Null when unavailable; use this for payment messages, not amount_cents.
|
|
3626
|
+
*/
|
|
3627
|
+
payment_amount_cents: number | null;
|
|
3628
|
+
session_id: string;
|
|
3629
|
+
/**
|
|
3630
|
+
* open means payment has not completed; payment_processing means Checkout completed but payment is not settled; credits_applying means payment is confirmed (including a fully discounted purchase) but the durable credit grant is not yet recorded; fulfilled confirms that grant. expired is an unpaid expired link; failed is a completed checkout whose delayed payment failed. A failed credit grant remains credits_applying until fulfillment succeeds. Render this fact; do not infer payment from a return redirect or Checkout completion.
|
|
3631
|
+
*
|
|
3632
|
+
*/
|
|
3633
|
+
state: 'open' | 'payment_processing' | 'credits_applying' | 'fulfilled' | 'expired' | 'failed';
|
|
3634
|
+
};
|
|
3329
3635
|
/**
|
|
3330
3636
|
* Execution history response with history array.
|
|
3331
3637
|
* Returns an object with a "history" key containing an array of history entries.
|
|
@@ -3652,6 +3958,19 @@ export type ExchangeTokenResponse = {
|
|
|
3652
3958
|
*
|
|
3653
3959
|
*/
|
|
3654
3960
|
export type ExchangeTokenRequest = {
|
|
3961
|
+
/**
|
|
3962
|
+
* What the token is for. Omitted mints today's workspace token.
|
|
3963
|
+
* `partner-node` mints a partner-node token: audience
|
|
3964
|
+
* `comfy-partner-node` only, a `sid` claim naming a new renewable
|
|
3965
|
+
* session, and the partner-node lifetime. Only a sign-in mints one
|
|
3966
|
+
* (a Firebase JWT, the web session, or an OAuth access token from a
|
|
3967
|
+
* client in `PARTNER_NODE_OAUTH_CLIENTS`); an API key gets 403
|
|
3968
|
+
* `partner_node_requires_sign_in`. While the mint is switched off
|
|
3969
|
+
* it is 503 `partner_node_token_disabled`. Any other value is 400
|
|
3970
|
+
* `resource_invalid`.
|
|
3971
|
+
*
|
|
3972
|
+
*/
|
|
3973
|
+
resource?: 'partner-node';
|
|
3655
3974
|
/**
|
|
3656
3975
|
* Workspace ID to get token for. Defaults to personal workspace if omitted.
|
|
3657
3976
|
*/
|
|
@@ -3739,6 +4058,52 @@ export type DesktopLoginCodeCreateRequest = {
|
|
|
3739
4058
|
*/
|
|
3740
4059
|
platform: string;
|
|
3741
4060
|
};
|
|
4061
|
+
export type DeploymentNodeCompatibility = {
|
|
4062
|
+
deployment_id: string;
|
|
4063
|
+
/**
|
|
4064
|
+
* The posted node types this deployment's Release does not have, in the order they were posted. Empty when it has them all, and when unknown is true.
|
|
4065
|
+
*/
|
|
4066
|
+
missing_node_types: Array<string>;
|
|
4067
|
+
/**
|
|
4068
|
+
* True when the node list of the Release this deployment runs could not be read, so it was not checked: the Release is not built yet or is gone, comfy-builder could not be reached or refused the caller, its extensions list could not be read, a browser that picked the deployment failed to load it on the same ingest pod (for good when the Release is gone or its archive is corrupt or too large to ever load, see below; for any other fault, an archive missing from storage among them, only within its 30-second retry window, after which the check follows what a browser's next load gets), its catalog fails to build (in each of the last three a browser that picked the deployment is served Comfy Cloud's catalog), it is past the 16 distinct Releases one check reads (the newest deployments' Releases are read first), or the request ended before it was read. The check reads the catalog and the extensions list but not the extensions archive: a Release whose archive fails to load (missing from storage, corrupt, too large, past 64 MiB unpacked, or an entry whose path escapes the extensions folder) is answered from its catalog, not unknown, until a browser that picked it has failed to load it on the same ingest pod (each pod keeps its own record).
|
|
4069
|
+
*/
|
|
4070
|
+
unknown: boolean;
|
|
4071
|
+
};
|
|
4072
|
+
/**
|
|
4073
|
+
* The node types of the workflow open in the editor.
|
|
4074
|
+
*/
|
|
4075
|
+
export type DeploymentCompatibilityRequest = {
|
|
4076
|
+
/**
|
|
4077
|
+
* The workflow's node types (class_type), subgraphs included. Duplicates are dropped before counting; more than 2,000 distinct types is a 400.
|
|
4078
|
+
*/
|
|
4079
|
+
node_types: Array<string>;
|
|
4080
|
+
};
|
|
4081
|
+
/**
|
|
4082
|
+
* Which of the posted node types each of the workspace's deployments, and Comfy Cloud, does not have.
|
|
4083
|
+
*/
|
|
4084
|
+
export type DeploymentCompatibility = {
|
|
4085
|
+
cloud: CloudNodeCompatibility;
|
|
4086
|
+
/**
|
|
4087
|
+
* Every live deployment GET /api/workspaces/{id}/deployments lists, in the same order (newest first).
|
|
4088
|
+
*/
|
|
4089
|
+
deployments: Array<DeploymentNodeCompatibility>;
|
|
4090
|
+
};
|
|
4091
|
+
export type CloudNodeCompatibility = {
|
|
4092
|
+
/**
|
|
4093
|
+
* The posted node types a browser on Comfy Cloud (no pick) is not served, hidden ones included, in the order they were posted.
|
|
4094
|
+
*/
|
|
4095
|
+
missing_node_types: Array<string>;
|
|
4096
|
+
};
|
|
4097
|
+
/**
|
|
4098
|
+
* Error body of local ComfyUI's /api/deploy* routes. Branch on `error`, never on `message`.
|
|
4099
|
+
*/
|
|
4100
|
+
export type DeployToCloudError = {
|
|
4101
|
+
error: 'offline' | 'multiple_credentials' | 'invalid_api_key_format' | 'invalid_body' | 'missing_credentials' | 'unauthorized' | 'too_large' | 'too_many_bundles' | 'builder_rejected' | 'builder_unavailable' | 'builder_busy';
|
|
4102
|
+
/**
|
|
4103
|
+
* Human-readable detail, present for invalid_body and builder_rejected.
|
|
4104
|
+
*/
|
|
4105
|
+
message?: string;
|
|
4106
|
+
};
|
|
3742
4107
|
/**
|
|
3743
4108
|
* Response after deleting a session cookie
|
|
3744
4109
|
*/
|
|
@@ -3790,7 +4155,7 @@ export type CreateWorkspaceApiKeyResponse = {
|
|
|
3790
4155
|
*/
|
|
3791
4156
|
description: string;
|
|
3792
4157
|
/**
|
|
3793
|
-
*
|
|
4158
|
+
* The effective expiration timestamp, which may differ from the one requested: a key minted by an OAuth-authenticated session is capped to the OAuth refresh-token lifetime, so clients must read the lifetime they actually got from this field rather than assume the requested one. Absent only for first-party keys created with no expiry.
|
|
3794
4159
|
*/
|
|
3795
4160
|
expires_at?: string;
|
|
3796
4161
|
/**
|
|
@@ -3819,7 +4184,7 @@ export type CreateWorkspaceApiKeyRequest = {
|
|
|
3819
4184
|
*/
|
|
3820
4185
|
description?: string;
|
|
3821
4186
|
/**
|
|
3822
|
-
* Optional expiration timestamp
|
|
4187
|
+
* Optional expiration timestamp. Keys created by an OAuth-authenticated session (an access token issued by the Comfy OAuth server to a registered client) are always capped to the OAuth refresh-token lifetime (OAUTH_REFRESH_TOKEN_TTL, 30 days by default): omitting this field yields that cap, a longer value is reduced to it, and a shorter value is honoured as-is. Keys created by a first-party session (browser workspace JWT, Firebase) are unaffected and may still be created with no expiry.
|
|
3823
4188
|
*/
|
|
3824
4189
|
expires_at?: string;
|
|
3825
4190
|
/**
|
|
@@ -4232,6 +4597,10 @@ export type BillingStatusResponse = {
|
|
|
4232
4597
|
[key: string]: boolean;
|
|
4233
4598
|
};
|
|
4234
4599
|
subscription_duration?: SubscriptionDuration;
|
|
4600
|
+
/**
|
|
4601
|
+
* Render this state without recombining payment, tier, dates or activity. Native and legacy provider history distinguish never-subscribed from ended. Ended means a historical provider Cloud subscription ended, regardless of whether an invoice was ever paid. Omitted when an older upstream/server exposes no usable history facts. Optional history failures leave guidance unknown while ordinary status remains available. Also omitted for a native live subscription when a workspace payment_failed label has no authoritative subscription-payment provenance. Unknown states must not be inferred from missing fields.
|
|
4602
|
+
*/
|
|
4603
|
+
subscription_state?: SubscriptionState;
|
|
4235
4604
|
/**
|
|
4236
4605
|
* Subscription activity status (scheduled subscriptions are not returned)
|
|
4237
4606
|
*/
|
|
@@ -4512,10 +4881,26 @@ export type BillingEventsResponse = {
|
|
|
4512
4881
|
* A single history event. The cloud history-events store is the single source of truth for both billing events (charges, credits, adjustments) and user-facing usage events.
|
|
4513
4882
|
*/
|
|
4514
4883
|
export type BillingEvent = {
|
|
4884
|
+
/**
|
|
4885
|
+
* That key's name, when the key is known to this workspace (revoked keys included).
|
|
4886
|
+
*/
|
|
4887
|
+
api_key_name?: string;
|
|
4888
|
+
/**
|
|
4889
|
+
* The API key the charge came through, from the event's `spend_source`; absent for a signed-in session or a deployment.
|
|
4890
|
+
*/
|
|
4891
|
+
api_key_prefix?: string;
|
|
4515
4892
|
/**
|
|
4516
4893
|
* When the event occurred
|
|
4517
4894
|
*/
|
|
4518
4895
|
createdAt: string;
|
|
4896
|
+
/**
|
|
4897
|
+
* The Serverless deployment the charge came through, from the event's `deployment_id`; absent for a session or an API key.
|
|
4898
|
+
*/
|
|
4899
|
+
deployment_id?: string;
|
|
4900
|
+
/**
|
|
4901
|
+
* That deployment's name, when the caller is a signed-in session comfy-deploy can name it for; absent on an API-key read or when comfy-deploy could not be reached.
|
|
4902
|
+
*/
|
|
4903
|
+
deployment_name?: string;
|
|
4519
4904
|
/**
|
|
4520
4905
|
* Unique event identifier
|
|
4521
4906
|
*/
|
|
@@ -4524,6 +4909,22 @@ export type BillingEvent = {
|
|
|
4524
4909
|
* Type of history event. Billing types (e.g. invoice_paid, checkout_completed, topup_completed) and the migrated user-facing usage types (account_created, credit_added, api_usage_completed, cloud_subscription_created, cloud_subscription_paid, cloud_subscription_credit_added, cloud_workflow_executed, free_tier_credit_granted). Kept as a free-form string for back-compat with existing billing-event consumers.
|
|
4525
4910
|
*/
|
|
4526
4911
|
event_type: string;
|
|
4912
|
+
/**
|
|
4913
|
+
* That member's name, or their email when they have no name set.
|
|
4914
|
+
*/
|
|
4915
|
+
member_display_name?: string;
|
|
4916
|
+
/**
|
|
4917
|
+
* That member's email, so two members with one name can be told apart.
|
|
4918
|
+
*/
|
|
4919
|
+
member_email?: string;
|
|
4920
|
+
/**
|
|
4921
|
+
* True when that person is no longer a member of this workspace.
|
|
4922
|
+
*/
|
|
4923
|
+
member_former?: boolean;
|
|
4924
|
+
/**
|
|
4925
|
+
* The member the charge counts toward, from the event's `user_id`; absent when the event names none.
|
|
4926
|
+
*/
|
|
4927
|
+
member_user_id?: string;
|
|
4527
4928
|
/**
|
|
4528
4929
|
* Event-specific parameters
|
|
4529
4930
|
*/
|
|
@@ -4593,12 +4994,24 @@ export type BillingCapabilityRolloutDefaults = {
|
|
|
4593
4994
|
* names the policy branch that decided, not customer-facing wording: the
|
|
4594
4995
|
* client owns the message.
|
|
4595
4996
|
*
|
|
4997
|
+
* How to read this: render each capability from `capabilities` as received, and
|
|
4998
|
+
* use a reason only to explain a capability that is false. Never recombine
|
|
4999
|
+
* capabilities or reasons into a new decision, and never derive a reason from
|
|
5000
|
+
* tier, role, status or plan slug. A missing reason is not a grant. A refused
|
|
5001
|
+
* capability usually has a key here naming the branch that refused it. A false
|
|
5002
|
+
* capability with no matching key is an unexplained refusal: no recognised
|
|
5003
|
+
* explanation, still false. A true capability never has a key.
|
|
5004
|
+
* Within a key the values are listed in the order the resolver reaches them,
|
|
5005
|
+
* and the first one reached is the one reported. Capabilities are UI guidance,
|
|
5006
|
+
* not authorization: the write endpoints decide.
|
|
5007
|
+
*
|
|
4596
5008
|
* The invariant runs one way only. **Presence implies refusal**: a key is
|
|
4597
5009
|
* present only alongside `capabilities.<key> == false`, reconciled before
|
|
4598
5010
|
* the response is built, so a reason never accompanies a granted
|
|
4599
|
-
* capability. **Absence implies nothing
|
|
4600
|
-
* explanation,
|
|
4601
|
-
* `capabilities`, which stays authoritative for what
|
|
5011
|
+
* capability. **Absence implies nothing**: on a false capability it
|
|
5012
|
+
* means no recognised explanation, and on a true capability it is the
|
|
5013
|
+
* expected state. Consult `capabilities`, which stays authoritative for what
|
|
5014
|
+
* the client may offer.
|
|
4602
5015
|
*
|
|
4603
5016
|
* A key is absent for a refused capability whenever this service is
|
|
4604
5017
|
* talking to a billing-api that predates the field, and whenever it drops
|
|
@@ -4613,27 +5026,433 @@ export type BillingCapabilityRolloutDefaults = {
|
|
|
4613
5026
|
*/
|
|
4614
5027
|
export type BillingCapabilityDenials = {
|
|
4615
5028
|
/**
|
|
4616
|
-
*
|
|
4617
|
-
*
|
|
4618
|
-
*
|
|
4619
|
-
*
|
|
4620
|
-
*
|
|
4621
|
-
*
|
|
4622
|
-
*
|
|
4623
|
-
*
|
|
4624
|
-
|
|
4625
|
-
|
|
5029
|
+
* Present only when can_cancel is false. The value names the resolver branch
|
|
5030
|
+
* that decided, not customer wording. Values are listed in the order the
|
|
5031
|
+
* resolver reaches them; the first one reached wins. cancellation_scheduled,
|
|
5032
|
+
* subscription_ended, subscription_not_started and
|
|
5033
|
+
* subscription_status_unrecognized belong to different subscription statuses and
|
|
5034
|
+
* are alternatives that never compete. Absent while the capability is false
|
|
5035
|
+
* means no recognised explanation, not a grant.
|
|
5036
|
+
* - not_a_member: the caller is not a member of the workspace. Unreachable
|
|
5037
|
+
* over HTTP: a non-member is answered 403 before capabilities resolve.
|
|
5038
|
+
* - not_workspace_owner: the caller is a member whose role is not owner. Not
|
|
5039
|
+
* the same as not_a_member.
|
|
5040
|
+
* - not_original_owner: the caller is an owner but not the workspace's creator;
|
|
5041
|
+
* only the creator may start, change, cancel or reactivate the plan. Reached
|
|
5042
|
+
* after not_workspace_owner. Reported only when the rollout mode is not
|
|
5043
|
+
* `owner`. Not not_workspace_owner (role) and not creator_only_provisioning
|
|
5044
|
+
* (provisioning a personal workspace's billing identity).
|
|
5045
|
+
* - free_plan: the current tier is FREE. Checked on the tier alone, whatever
|
|
5046
|
+
* the status, and before the no-subscription check. A FREE plan is not a paid
|
|
5047
|
+
* subscription, so there is nothing to cancel.
|
|
5048
|
+
* - no_subscription: there is no subscription row and the server treats that
|
|
5049
|
+
* absence as authoritative. Where the absence is only unknown (a legacy
|
|
5050
|
+
* Stripe workspace) can_cancel stays true and no reason is sent. A leftover
|
|
5051
|
+
* reserved row with no live operation behind it, on a self-serve tier, is
|
|
5052
|
+
* reported as no subscription.
|
|
5053
|
+
* - tier_not_self_serve: the subscription's tier is sales-managed or
|
|
5054
|
+
* unrecognised, so its lifecycle is not customer-driven.
|
|
5055
|
+
* - billing_operation_in_progress: an initial subscription, plan change,
|
|
5056
|
+
* cancel, resubscribe, seat change, revert or retention offer is running,
|
|
5057
|
+
* either a pending workflow or the retention-offer gate between the Stripe
|
|
5058
|
+
* write and its confirmation. It settles on its own, so a client may tell the
|
|
5059
|
+
* user to wait, and cancel is refused until it does. Not
|
|
5060
|
+
* subscription_change_in_progress, where a successor plan is scheduled. Not
|
|
5061
|
+
* evaluated for a reserved subscription, which reports
|
|
5062
|
+
* subscription_not_started. Reached before cancellation_scheduled.
|
|
5063
|
+
* - billing_operation_parked: such an operation is parked for reconciliation,
|
|
5064
|
+
* either paid but credits not granted or a replacement subscription that
|
|
5065
|
+
* could not finish superseding the old one. It does not clear on its own, so
|
|
5066
|
+
* a client must route the user to support and never imply a wait. Reported
|
|
5067
|
+
* instead of billing_operation_in_progress when both kinds exist, and reached
|
|
5068
|
+
* at the same point, before cancellation_scheduled.
|
|
5069
|
+
* - cancellation_scheduled: a cancellation is already scheduled, so cancelling
|
|
5070
|
+
* again is refused. The opposite of cancellation_not_scheduled on
|
|
5071
|
+
* can_reactivate.
|
|
5072
|
+
* - subscription_ended: the subscription has stopped for good: ended, or
|
|
5073
|
+
* canceled with no cancellation date. Never competes with
|
|
5074
|
+
* billing_operation_in_progress or billing_operation_parked, which a stopped
|
|
5075
|
+
* subscription does not evaluate.
|
|
5076
|
+
* - subscription_not_started: a subscription row is reserved but not running.
|
|
5077
|
+
* Not no_subscription (no row at all) and not subscription_ended.
|
|
5078
|
+
* - subscription_status_unrecognized: the subscription status is one the
|
|
5079
|
+
* resolver has no guidance for. The server is undetermined, which is not a
|
|
5080
|
+
* deliberate refusal.
|
|
5081
|
+
*
|
|
5082
|
+
*/
|
|
5083
|
+
can_cancel?: 'not_a_member' | 'not_workspace_owner' | 'not_original_owner' | 'free_plan' | 'no_subscription' | 'tier_not_self_serve' | 'billing_operation_in_progress' | 'billing_operation_parked' | 'cancellation_scheduled' | 'subscription_ended' | 'subscription_not_started' | 'subscription_status_unrecognized';
|
|
5084
|
+
/**
|
|
5085
|
+
* Why can_change_seats is false. Present only when that capability is false; absent means no recognized explanation, never permission. This does not authorize the action or explain a sibling capability. First reached wins in the order below; mutually exclusive lifecycle statuses do not compete.
|
|
5086
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5087
|
+
* - not_workspace_owner: The actor does not have the workspace owner role.
|
|
5088
|
+
* - no_subscription: No subscription exists for the action to apply to.
|
|
5089
|
+
* - tier_not_self_serve: The existing plan is sales-managed or unrecognized.
|
|
5090
|
+
* - subscription_ended: The subscription has ended.
|
|
5091
|
+
* - subscription_not_started: The subscription has not started.
|
|
5092
|
+
* - subscription_status_unrecognized: The subscription status is unrecognized.
|
|
5093
|
+
*
|
|
5094
|
+
*/
|
|
5095
|
+
can_change_seats?: 'not_a_member' | 'not_workspace_owner' | 'no_subscription' | 'tier_not_self_serve' | 'subscription_ended' | 'subscription_not_started' | 'subscription_status_unrecognized';
|
|
5096
|
+
/**
|
|
5097
|
+
* Present only when can_delete_workspace is false. The value names the
|
|
5098
|
+
* resolver branch that decided, not customer wording. The list follows the
|
|
5099
|
+
* order the resolver reaches the branches, and the first one reached wins.
|
|
5100
|
+
* Absent while the capability is false means no recognised explanation, not
|
|
5101
|
+
* a grant: a fact could not be read, or the team-workspaces feature is off.
|
|
5102
|
+
* - not_a_member: the caller is not a member of the workspace. Unreachable
|
|
5103
|
+
* through this endpoint: a non-member is answered 403 before capabilities
|
|
5104
|
+
* resolve.
|
|
5105
|
+
* - sales_managed_plan: a live subscription row is on a sales-managed tier
|
|
5106
|
+
* (plan_kind sales_managed), so sales ends the plan, not the customer, and
|
|
5107
|
+
* there is no customer step to point at. Reported to every member, owner
|
|
5108
|
+
* or not, before any role or workspace refusal; it reveals only what
|
|
5109
|
+
* plan_kind already does. An ended or reserved sales-managed row does not
|
|
5110
|
+
* report it. Not plan_not_ended, which the customer can end by cancelling.
|
|
5111
|
+
* - not_workspace_owner: the caller is a member whose role is not owner. A
|
|
5112
|
+
* non-owner is told nothing below this branch, so it never learns whether
|
|
5113
|
+
* an SSO organization holds the workspace.
|
|
5114
|
+
* - not_original_owner: the caller is an owner who did not create the
|
|
5115
|
+
* workspace and the rollout mode is not owner. Reached after
|
|
5116
|
+
* not_workspace_owner and before any workspace-specific refusal.
|
|
5117
|
+
* - workspace_sso_attached: the workspace belongs to an SSO organization and
|
|
5118
|
+
* only an operator detach can delete it.
|
|
5119
|
+
* - personal_workspace: a personal workspace, which is never deleted.
|
|
5120
|
+
* - billing_operation_in_progress: an initial subscription, plan change,
|
|
5121
|
+
* cancel, resubscribe, seat change, revert or retention offer is running,
|
|
5122
|
+
* either a pending workflow or the retention-offer gate between the
|
|
5123
|
+
* Stripe write and its confirmation. It settles on its own, so a client
|
|
5124
|
+
* may tell the user to wait. The same fact as the reason of that name on
|
|
5125
|
+
* can_cancel and can_reactivate. Not plan_not_ended, which is about a
|
|
5126
|
+
* subscription row.
|
|
5127
|
+
* - billing_operation_parked: such an operation is parked for
|
|
5128
|
+
* reconciliation, either paid but credits not granted or a replacement
|
|
5129
|
+
* subscription that could not finish superseding the old one. It does
|
|
5130
|
+
* not clear on its own, so a client must route the user to support and
|
|
5131
|
+
* never imply a wait. Reported instead of billing_operation_in_progress
|
|
5132
|
+
* when both kinds exist. The same fact as the reason of that name on
|
|
5133
|
+
* can_cancel and can_reactivate.
|
|
5134
|
+
* - plan_not_ended: at least one live subscription row has not started
|
|
5135
|
+
* ending, so deleting the workspace would leave a plan charging.
|
|
5136
|
+
* Reached after permission, workspace and operation refusals.
|
|
5137
|
+
* - plan_ending: every live subscription is ending (a canceled row or a
|
|
5138
|
+
* future cancel_at). When all cancellation boundaries are known,
|
|
5139
|
+
* denied_reason_params.can_delete_workspace.effective_at gives the
|
|
5140
|
+
* latest one. Missing params mean an unknown date. This and
|
|
5141
|
+
* plan_not_ended describe different states and never compete.
|
|
5142
|
+
*
|
|
5143
|
+
*/
|
|
5144
|
+
can_delete_workspace?: 'not_a_member' | 'sales_managed_plan' | 'not_workspace_owner' | 'not_original_owner' | 'workspace_sso_attached' | 'personal_workspace' | 'billing_operation_in_progress' | 'billing_operation_parked' | 'plan_not_ended' | 'plan_ending';
|
|
5145
|
+
/**
|
|
5146
|
+
* Why can_downgrade_to_personal is false. Present only when that capability is false; absent means no recognized explanation, never permission. This does not authorize the action or explain a sibling capability. First reached wins in the order below; mutually exclusive lifecycle statuses do not compete.
|
|
5147
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5148
|
+
* - not_workspace_owner: The actor does not have the workspace owner role.
|
|
5149
|
+
* - not_original_owner: The action requires the workspace creator.
|
|
5150
|
+
* - no_subscription: No subscription exists for the action to apply to.
|
|
5151
|
+
* - tier_not_self_serve: The existing plan is sales-managed or unrecognized.
|
|
5152
|
+
* - subscription_change_in_progress: A successor plan change is already scheduled.
|
|
5153
|
+
* - subscription_ended: The subscription has ended.
|
|
5154
|
+
* - subscription_not_started: The subscription has not started.
|
|
5155
|
+
* - subscription_status_unrecognized: The subscription status is unrecognized.
|
|
5156
|
+
* - rollout_disabled: The server read default keeps this action disabled independently of its policy permission.
|
|
5157
|
+
*
|
|
5158
|
+
*/
|
|
5159
|
+
can_downgrade_to_personal?: 'not_a_member' | 'not_workspace_owner' | 'not_original_owner' | 'no_subscription' | 'tier_not_self_serve' | 'subscription_change_in_progress' | 'subscription_ended' | 'subscription_not_started' | 'subscription_status_unrecognized' | 'rollout_disabled';
|
|
5160
|
+
/**
|
|
5161
|
+
* Why can_edit_workspace is false. Permission refusals precede unavailable feature or entitlement facts; first reached wins in enum order. A present key implies refusal. Missing means unknown, including a disabled team-workspaces feature or an unavailable membership read, never permission. This explains only this capability and does not authorize a mutation.
|
|
5162
|
+
*/
|
|
5163
|
+
can_edit_workspace?: 'not_a_member' | 'not_workspace_owner';
|
|
5164
|
+
/**
|
|
5165
|
+
* Why can_invite_members is false. Present only when that capability is false; absent means no recognized explanation, never permission. This does not authorize the action or explain a sibling capability. First reached wins in the order below; mutually exclusive lifecycle statuses do not compete.
|
|
5166
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5167
|
+
* - not_workspace_owner: The actor does not have the workspace owner role.
|
|
5168
|
+
* - invite_capacity_reached: No invitation capacity is available, including a failed capacity read.
|
|
5169
|
+
*
|
|
5170
|
+
*/
|
|
5171
|
+
can_invite_members?: 'not_a_member' | 'not_workspace_owner' | 'invite_capacity_reached';
|
|
5172
|
+
/**
|
|
5173
|
+
* Present only when can_leave_workspace is false. The value names the
|
|
5174
|
+
* resolver branch that decided, not customer wording. The list follows the
|
|
5175
|
+
* order the resolver reaches the branches, and the first one reached wins.
|
|
5176
|
+
* Absent while the capability is false means no recognised explanation, not
|
|
5177
|
+
* a grant: a fact could not be read, or the team-workspaces feature is off.
|
|
5178
|
+
* - not_a_member: the caller is not a member of the workspace. Unreachable
|
|
5179
|
+
* through this endpoint: a non-member is answered 403 before capabilities
|
|
5180
|
+
* resolve.
|
|
5181
|
+
* - membership_managed_by_directory: the workspace's SSO organization is
|
|
5182
|
+
* attached and holds this account, so the membership is the organization's
|
|
5183
|
+
* to manage and leaving would strand an SSO account with no workspace.
|
|
5184
|
+
* - personal_workspace_creator: the caller created this personal workspace
|
|
5185
|
+
* and can never leave it. Not personal_workspace on can_delete_workspace,
|
|
5186
|
+
* which is about deleting the workspace.
|
|
5187
|
+
* - workspace_creator: the caller created this team workspace and can never
|
|
5188
|
+
* leave it, even while other owners remain. Reached after
|
|
5189
|
+
* personal_workspace_creator and before only_owner, which a creator who
|
|
5190
|
+
* is the sole owner therefore never sees.
|
|
5191
|
+
* - only_owner: the caller is the sole owner, so leaving would leave the
|
|
5192
|
+
* workspace with no owner. Another owner must exist first.
|
|
5193
|
+
*
|
|
5194
|
+
*/
|
|
5195
|
+
can_leave_workspace?: 'not_a_member' | 'membership_managed_by_directory' | 'personal_workspace_creator' | 'workspace_creator' | 'only_owner';
|
|
5196
|
+
/**
|
|
5197
|
+
* Why can_manage_auto_top_up is false. Present only when that capability is false; absent means no recognized explanation, never permission. This does not authorize the action or explain a sibling capability. First reached wins in the order below; mutually exclusive lifecycle statuses do not compete.
|
|
5198
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5199
|
+
* - not_workspace_owner: The actor does not have the workspace owner role.
|
|
5200
|
+
*
|
|
5201
|
+
*/
|
|
5202
|
+
can_manage_auto_top_up?: 'not_a_member' | 'not_workspace_owner';
|
|
5203
|
+
/**
|
|
5204
|
+
* Why can_manage_billing is false. Present only when that capability is false; absent means no recognized explanation, never permission. This does not authorize the action or explain a sibling capability. First reached wins in the order below; mutually exclusive lifecycle statuses do not compete.
|
|
5205
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5206
|
+
* - not_workspace_owner: The actor does not have the workspace owner role.
|
|
5207
|
+
* - creator_only_provisioning: Only the creator can provision this workspace billing identity.
|
|
5208
|
+
*
|
|
5209
|
+
*/
|
|
5210
|
+
can_manage_billing?: 'not_a_member' | 'not_workspace_owner' | 'creator_only_provisioning';
|
|
5211
|
+
/**
|
|
5212
|
+
* Why can_manage_members is false. Present only when that capability is false; absent means no recognized explanation, never permission. This does not authorize the action or explain a sibling capability. First reached wins in the order below; mutually exclusive lifecycle statuses do not compete.
|
|
5213
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5214
|
+
* - not_workspace_owner: The actor does not have the workspace owner role.
|
|
5215
|
+
*
|
|
5216
|
+
*/
|
|
5217
|
+
can_manage_members?: 'not_a_member' | 'not_workspace_owner';
|
|
5218
|
+
/**
|
|
5219
|
+
* Why can_manage_partner_node_access is false. Permission refusals precede unavailable feature or entitlement facts; first reached wins in enum order. A present key implies refusal. Missing means unknown, including a disabled team-workspaces feature or an unavailable membership read, never permission. This explains only this capability and does not authorize a mutation.
|
|
5220
|
+
*/
|
|
5221
|
+
can_manage_partner_node_access?: 'not_a_member' | 'not_workspace_owner' | 'partner_governance_not_entitled';
|
|
5222
|
+
/**
|
|
5223
|
+
* Why can_manage_subscription is false. Present only when that capability is false; absent means no recognized explanation, never permission. This does not authorize the action or explain a sibling capability. First reached wins in the order below; mutually exclusive lifecycle statuses do not compete.
|
|
5224
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5225
|
+
* - not_workspace_owner: The actor does not have the workspace owner role.
|
|
5226
|
+
*
|
|
5227
|
+
*/
|
|
5228
|
+
can_manage_subscription?: 'not_a_member' | 'not_workspace_owner';
|
|
5229
|
+
/**
|
|
5230
|
+
* Present only when can_reactivate is false. The value names the resolver
|
|
5231
|
+
* branch that decided, not customer wording. Values are listed in the order the
|
|
5232
|
+
* resolver reaches them; the first one reached wins. cancellation_not_scheduled,
|
|
5233
|
+
* subscription_ended, subscription_not_started and
|
|
5234
|
+
* subscription_status_unrecognized belong to different subscription statuses and
|
|
5235
|
+
* are alternatives that never compete. Absent while the capability is false
|
|
5236
|
+
* means no recognised explanation, not a grant.
|
|
5237
|
+
* - not_a_member: the caller is not a member of the workspace. Unreachable
|
|
5238
|
+
* over HTTP: a non-member is answered 403 before capabilities resolve.
|
|
5239
|
+
* - not_workspace_owner: the caller is a member whose role is not owner. Not
|
|
5240
|
+
* the same as not_a_member.
|
|
5241
|
+
* - not_original_owner: the caller is an owner but not the workspace's creator;
|
|
5242
|
+
* only the creator may start, change, cancel or reactivate the plan. Reached
|
|
5243
|
+
* after not_workspace_owner. Reported only when the rollout mode is not
|
|
5244
|
+
* `owner`. Not not_workspace_owner (role) and not creator_only_provisioning
|
|
5245
|
+
* (provisioning a personal workspace's billing identity).
|
|
5246
|
+
* - no_subscription: there is no subscription row, so there is nothing to
|
|
5247
|
+
* reactivate. Unlike can_cancel, reported even where the absence is only
|
|
5248
|
+
* unknown, because reactivation needs a subscription id that does not exist
|
|
5249
|
+
* without a row.
|
|
5250
|
+
* - tier_not_self_serve: the subscription's tier is sales-managed or
|
|
5251
|
+
* unrecognised, so its lifecycle is not customer-driven.
|
|
5252
|
+
* - billing_operation_in_progress: an initial subscription, plan change,
|
|
5253
|
+
* cancel, resubscribe, seat change, revert or retention offer is running,
|
|
5254
|
+
* either a pending workflow or the retention-offer gate between the Stripe
|
|
5255
|
+
* write and its confirmation. It settles on its own, so a client may tell the
|
|
5256
|
+
* user to wait, and reactivate is refused until it does. Not
|
|
5257
|
+
* subscription_change_in_progress, where a successor plan is scheduled. Not
|
|
5258
|
+
* evaluated for a reserved subscription, which reports
|
|
5259
|
+
* subscription_not_started. Reached before cancellation_not_scheduled.
|
|
5260
|
+
* - billing_operation_parked: such an operation is parked for reconciliation,
|
|
5261
|
+
* either paid but credits not granted or a replacement subscription that
|
|
5262
|
+
* could not finish superseding the old one. It does not clear on its own, so
|
|
5263
|
+
* a client must route the user to support and never imply a wait. Reported
|
|
5264
|
+
* instead of billing_operation_in_progress when both kinds exist, and reached
|
|
5265
|
+
* at the same point, before cancellation_not_scheduled.
|
|
5266
|
+
* - cancellation_not_scheduled: the subscription is running with no
|
|
5267
|
+
* cancellation scheduled, so there is nothing to undo. The opposite of
|
|
5268
|
+
* cancellation_scheduled on can_cancel. A FREE plan reports this too, since
|
|
5269
|
+
* free_plan is a reason for can_cancel only.
|
|
5270
|
+
* - subscription_ended: the subscription has stopped for good: ended, or
|
|
5271
|
+
* canceled with no cancellation date. A plan that has ended is not recovered
|
|
5272
|
+
* by reactivating; can_subscribe_self_serve is the way back.
|
|
5273
|
+
* - subscription_not_started: a subscription row is reserved but not running.
|
|
5274
|
+
* Not no_subscription (no row at all) and not subscription_ended.
|
|
5275
|
+
* - subscription_status_unrecognized: the subscription status is one the
|
|
5276
|
+
* resolver has no guidance for. The server is undetermined, which is not a
|
|
5277
|
+
* deliberate refusal.
|
|
5278
|
+
*
|
|
5279
|
+
*/
|
|
5280
|
+
can_reactivate?: 'not_a_member' | 'not_workspace_owner' | 'not_original_owner' | 'no_subscription' | 'tier_not_self_serve' | 'billing_operation_in_progress' | 'billing_operation_parked' | 'cancellation_not_scheduled' | 'subscription_ended' | 'subscription_not_started' | 'subscription_status_unrecognized';
|
|
5281
|
+
/**
|
|
5282
|
+
* Why can_revert_scheduled_change is false. Present only when that capability is false; absent means no recognized explanation, never permission. This does not authorize the action or explain a sibling capability. First reached wins in the order below; mutually exclusive lifecycle statuses do not compete.
|
|
5283
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5284
|
+
* - not_workspace_owner: The actor does not have the workspace owner role.
|
|
5285
|
+
* - not_original_owner: The action requires the workspace creator.
|
|
5286
|
+
* - tier_not_self_serve: The existing plan is sales-managed or unrecognized.
|
|
5287
|
+
* - subscription_ended: The subscription has ended.
|
|
5288
|
+
* - subscription_not_started: The subscription has not started.
|
|
5289
|
+
* - subscription_status_unrecognized: The subscription status is unrecognized.
|
|
5290
|
+
* - no_revertible_scheduled_change: No scheduled change is currently revertible; it may be absent or past its revert window.
|
|
5291
|
+
*
|
|
5292
|
+
*/
|
|
5293
|
+
can_revert_scheduled_change?: 'not_a_member' | 'not_workspace_owner' | 'not_original_owner' | 'tier_not_self_serve' | 'subscription_ended' | 'subscription_not_started' | 'subscription_status_unrecognized' | 'no_revertible_scheduled_change';
|
|
5294
|
+
/**
|
|
5295
|
+
* Why can_run_workflows is false, present only for a refused capability. Missing means no recognized explanation, never permission. Values describe the existing deciding policy branches, not authorization or sibling capabilities. Workflow rules short-circuit in policy order.
|
|
5296
|
+
* - manual_block: The workspace is manually blocked.
|
|
5297
|
+
* - subscription_inactive: Cloud workflow billing admission requires an active or eligible Free subscription.
|
|
5298
|
+
* - payment_past_due: Subscription inactivity blocks workflow billing admission and a bound live subscription has a recoverable payment failure. Visible to workspace members; does not grant payment management.
|
|
5299
|
+
* - no_funds: The applicable balance is exhausted and allowance does not bypass it.
|
|
5300
|
+
* - workspace_cap_exceeded: The workspace spend cap is exceeded.
|
|
5301
|
+
* - project_cap_exceeded: The applicable project spend cap is exceeded.
|
|
5302
|
+
* - user_cap_exceeded: The actor spend cap is exceeded.
|
|
5303
|
+
* - free_tier_exhausted: The acting user has used their available free job allowance.
|
|
5304
|
+
*
|
|
5305
|
+
*/
|
|
5306
|
+
can_run_workflows?: 'manual_block' | 'subscription_inactive' | 'payment_past_due' | 'no_funds' | 'workspace_cap_exceeded' | 'project_cap_exceeded' | 'user_cap_exceeded' | 'free_tier_exhausted';
|
|
5307
|
+
/**
|
|
5308
|
+
* Present only when can_subscribe_self_serve is false. The value names the
|
|
5309
|
+
* resolver branch that decided, not customer wording. Values are listed in the
|
|
5310
|
+
* order the resolver reaches them; the first one reached wins.
|
|
5311
|
+
* subscription_not_started and subscription_status_unrecognized are
|
|
5312
|
+
* alternatives for different subscription statuses and never compete. Absent
|
|
5313
|
+
* while the capability is false means no recognised explanation, not a grant.
|
|
5314
|
+
* - not_a_member: the caller is not a member of the workspace. Unreachable
|
|
5315
|
+
* over HTTP: a non-member is answered 403 before capabilities resolve.
|
|
5316
|
+
* - not_workspace_owner: the caller is a member whose role is not owner. Not
|
|
5317
|
+
* the same as not_a_member.
|
|
5318
|
+
* - not_original_owner: the caller is an owner but not the workspace's creator;
|
|
5319
|
+
* only the creator may start, change, cancel or reactivate the plan. Reached
|
|
5320
|
+
* after not_workspace_owner. Reported only when the rollout mode is not
|
|
5321
|
+
* `owner`. Not not_workspace_owner (role) and not creator_only_provisioning
|
|
5322
|
+
* (provisioning a personal workspace's billing identity).
|
|
5323
|
+
* - creator_only_provisioning: the caller is an owner but not the creator of a
|
|
5324
|
+
* personal workspace whose billing identity (Stripe customer, Metronome
|
|
5325
|
+
* customer or Metronome contract) is not provisioned yet. Subscribing
|
|
5326
|
+
* provisions it first, and only the creator may. The same reason appears on
|
|
5327
|
+
* can_top_up. When the rollout mode is not `owner`, such an owner is told
|
|
5328
|
+
* not_original_owner first, so this reason is reached only in mode `owner`.
|
|
5329
|
+
* - tier_not_self_serve: the subscription's tier is sales-managed or
|
|
5330
|
+
* unrecognised, so its lifecycle is not customer-driven.
|
|
5331
|
+
* - subscription_change_in_progress: the current subscription already has a
|
|
5332
|
+
* successor plan scheduled for a future billing boundary. Reached before
|
|
5333
|
+
* subscription_not_started and subscription_status_unrecognized. Not
|
|
5334
|
+
* billing_operation_in_progress, which names an operation that is running or
|
|
5335
|
+
* parked and is a reason for can_cancel and can_reactivate only.
|
|
5336
|
+
* - subscription_not_started: a subscription row is reserved but not running
|
|
5337
|
+
* and no live checkout can safely be resumed for it. Not no_subscription (no
|
|
5338
|
+
* row at all) and not subscription_ended (a plan that ran and stopped).
|
|
5339
|
+
* - subscription_status_unrecognized: the subscription status is one the
|
|
5340
|
+
* resolver has no guidance for. The server is undetermined, which is not a
|
|
5341
|
+
* deliberate refusal.
|
|
5342
|
+
*
|
|
5343
|
+
*/
|
|
5344
|
+
can_subscribe_self_serve?: 'not_a_member' | 'not_workspace_owner' | 'not_original_owner' | 'creator_only_provisioning' | 'tier_not_self_serve' | 'subscription_change_in_progress' | 'subscription_not_started' | 'subscription_status_unrecognized';
|
|
5345
|
+
/**
|
|
5346
|
+
* Present only when can_top_up is false. Current reach order: membership,
|
|
5347
|
+
* owner role, initial personal provisioning, past-due billing, then unknown
|
|
5348
|
+
* existing tier or status. tier_not_self_serve here means an unknown tier;
|
|
5349
|
+
* recognised Enterprise and Free qualify. Known absence and ended terms
|
|
5350
|
+
* do not refuse purchases. Legacy free_plan, no_subscription and
|
|
5351
|
+
* subscription_ended remain accepted from older servers during rollout;
|
|
5352
|
+
* the current resolver does not emit these three values.
|
|
5353
|
+
*
|
|
5354
|
+
*/
|
|
5355
|
+
can_top_up?: 'not_a_member' | 'not_workspace_owner' | 'creator_only_provisioning' | 'payment_past_due' | 'tier_not_self_serve' | 'subscription_status_unrecognized' | 'free_plan' | 'no_subscription' | 'subscription_ended';
|
|
5356
|
+
/**
|
|
5357
|
+
* Why can_upgrade is false, present only for a refused capability. Missing means no recognized explanation, never permission. Values describe the existing deciding policy branches, not authorization or sibling capabilities. Upgrade permission and current-state refusals precede catalog choice evaluation.
|
|
5358
|
+
* - not_a_member: The actor is not a workspace member.
|
|
5359
|
+
* - not_workspace_owner: The actor does not hold the workspace owner role.
|
|
5360
|
+
* - not_original_owner: Plan changes require the workspace creator.
|
|
5361
|
+
* - creator_only_provisioning: Only the creator can provision this billing identity.
|
|
5362
|
+
* - tier_not_self_serve: The current tier is sales-managed or unrecognized.
|
|
5363
|
+
* - subscription_change_in_progress: A successor plan change is already scheduled.
|
|
5364
|
+
* - subscription_not_started: The existing subscription has not started.
|
|
5365
|
+
* - subscription_status_unrecognized: The existing subscription status is unrecognized.
|
|
5366
|
+
* - billing_state_unknown: The current plan is not authoritative or its binding cannot be classified.
|
|
5367
|
+
* - no_subscription: No current plan exists; subscribe is a separate action.
|
|
5368
|
+
* - subscription_ended: The prior subscription has ended; resubscribe is a separate action.
|
|
5369
|
+
* - payment_past_due: An outstanding payment must be recovered before changing plans.
|
|
5370
|
+
* - billing_operation_parked: A subscription operation requires reconciliation.
|
|
5371
|
+
* - billing_operation_in_progress: A subscription operation is still processing.
|
|
5372
|
+
* - sales_managed: This plan is managed through sales.
|
|
5373
|
+
* - no_upgrade_available: No active catalog choice is a valid upgrade for the actor, interval, credit stop and seat occupancy.
|
|
5374
|
+
*
|
|
5375
|
+
*/
|
|
5376
|
+
can_upgrade?: 'not_a_member' | 'not_workspace_owner' | 'not_original_owner' | 'creator_only_provisioning' | 'tier_not_self_serve' | 'subscription_change_in_progress' | 'subscription_not_started' | 'subscription_status_unrecognized' | 'billing_state_unknown' | 'no_subscription' | 'subscription_ended' | 'payment_past_due' | 'billing_operation_parked' | 'billing_operation_in_progress' | 'sales_managed' | 'no_upgrade_available';
|
|
5377
|
+
/**
|
|
5378
|
+
* Why can_view_own_usage is false, in enum order. Attribution disabled emits usage_attribution_unavailable. Missing means no recognized explanation, including disabled team-workspaces or unreadable membership, never permission. This does not explain can_view_team_usage.
|
|
5379
|
+
*/
|
|
5380
|
+
can_view_own_usage?: 'not_a_member' | 'usage_attribution_unavailable';
|
|
5381
|
+
/**
|
|
5382
|
+
* Why can_view_pending_invites is false. Permission refusals precede unavailable feature or entitlement facts; first reached wins in enum order. A present key implies refusal. Missing means unknown, including a disabled team-workspaces feature or an unavailable membership read, never permission. This explains only this capability and does not authorize a mutation.
|
|
5383
|
+
*/
|
|
5384
|
+
can_view_pending_invites?: 'not_a_member' | 'not_workspace_owner';
|
|
5385
|
+
/**
|
|
5386
|
+
* Why can_view_team_usage is false. Disabled usage attribution emits usage_attribution_unavailable. Permission refusals precede unavailable feature or entitlement facts; first reached wins in enum order. A present key implies refusal. Missing means unknown, including a disabled team-workspaces feature or an unavailable membership read, never permission. This explains only this capability and does not authorize a mutation.
|
|
5387
|
+
*/
|
|
5388
|
+
can_view_team_usage?: 'not_a_member' | 'not_workspace_owner' | 'usage_attribution_unavailable';
|
|
5389
|
+
};
|
|
5390
|
+
/**
|
|
5391
|
+
* Optional facts for the matching denied_reasons key; absent facts are unknown and must not be inferred from other fields.
|
|
5392
|
+
*/
|
|
5393
|
+
export type BillingCapabilityDenialParams = {
|
|
5394
|
+
can_delete_workspace?: WorkspaceDeletionDenialParams;
|
|
4626
5395
|
};
|
|
4627
5396
|
/**
|
|
4628
5397
|
* Effective billing UI guidance for one authenticated user and workspace.
|
|
4629
5398
|
*/
|
|
4630
5399
|
export type BillingCapabilitiesResponse = {
|
|
5400
|
+
auto_top_up_setup?: AutoTopUpSetup;
|
|
4631
5401
|
capabilities: BillingCapabilities;
|
|
5402
|
+
denied_reason_params?: BillingCapabilityDenialParams;
|
|
4632
5403
|
denied_reasons?: BillingCapabilityDenials;
|
|
4633
5404
|
/**
|
|
4634
5405
|
* Time after which the client must refetch this snapshot.
|
|
4635
5406
|
*/
|
|
4636
5407
|
expires_at: string;
|
|
5408
|
+
/**
|
|
5409
|
+
* Whether this actor may use payment management to recover an outstanding
|
|
5410
|
+
* subscription payment. True only when can_manage_billing is true, the
|
|
5411
|
+
* workspace payment state is payment_failed or paused, and the provider
|
|
5412
|
+
* confirms its bound live Stripe subscription is past_due, unpaid, or paused.
|
|
5413
|
+
* False when known ineligible or healthy; no denied_reasons key explains it.
|
|
5414
|
+
* Absent when the live binding or provider state cannot be verified, on
|
|
5415
|
+
* older servers, or when billing is disabled; absence means unknown.
|
|
5416
|
+
* This is not authorization, a promise that a payable invoice or hosted
|
|
5417
|
+
* payment link exists, or permission to subscribe or run workflows.
|
|
5418
|
+
* Use can_manage_billing for general payment-method and invoice management.
|
|
5419
|
+
*
|
|
5420
|
+
*/
|
|
5421
|
+
payment_recovery_available?: boolean;
|
|
5422
|
+
/**
|
|
5423
|
+
* Who runs the plan lifecycle. Rendered as received; never derive it from
|
|
5424
|
+
* tier names or slugs.
|
|
5425
|
+
* - none: the workspace has no subscription in the capability facts. An
|
|
5426
|
+
* orphaned reserved row on a self-serve tier is reported as none.
|
|
5427
|
+
* - self_serve: a subscription on a tier with a customer-driven lifecycle,
|
|
5428
|
+
* including a FREE plan.
|
|
5429
|
+
* - sales_managed: a subscription on a sales-managed tier. It also covers a
|
|
5430
|
+
* tier the resolver does not recognise.
|
|
5431
|
+
* It classifies the plan by tier only. It says nothing about whether the plan
|
|
5432
|
+
* is running (a reserved or ended subscription still has a kind) and nothing
|
|
5433
|
+
* about what the user may do; that is capabilities. Absent in the same cases as
|
|
5434
|
+
* recovery_route.
|
|
5435
|
+
*
|
|
5436
|
+
*/
|
|
5437
|
+
plan_kind?: 'none' | 'self_serve' | 'sales_managed';
|
|
5438
|
+
/**
|
|
5439
|
+
* Where the customer goes when the plan has ended. Rendered as received;
|
|
5440
|
+
* never derive it from tier names or slugs.
|
|
5441
|
+
* - none: there is no subscription, or it has not stopped for good (a
|
|
5442
|
+
* canceled plan that still has a cancellation date has not).
|
|
5443
|
+
* - resubscribe: the subscription has stopped for good (ended, or canceled
|
|
5444
|
+
* with no cancellation date) on a self-serve tier. The route is subscribing
|
|
5445
|
+
* again.
|
|
5446
|
+
* - contact_sales: the subscription has stopped for good on a sales-managed
|
|
5447
|
+
* or unrecognised tier. The route is through sales.
|
|
5448
|
+
* It names the route only and deliberately ignores the user's role. Whether
|
|
5449
|
+
* the control is enabled stays with capabilities.can_subscribe_self_serve
|
|
5450
|
+
* and its denied reason. It is not a capability and not authorization.
|
|
5451
|
+
* Absent when billing is disabled, when talking to a billing-api version
|
|
5452
|
+
* that predates it, and when the upstream value is not recognised.
|
|
5453
|
+
*
|
|
5454
|
+
*/
|
|
5455
|
+
recovery_route?: 'none' | 'resubscribe' | 'contact_sales';
|
|
4637
5456
|
resolved_for: BillingCapabilityScope;
|
|
4638
5457
|
/**
|
|
4639
5458
|
* JavaScript-safe, time-sortable revision for this snapshot. It
|
|
@@ -4657,19 +5476,351 @@ export type BillingCapabilitiesResponse = {
|
|
|
4657
5476
|
* Conservative UI guidance. These values do not authorize billing writes;
|
|
4658
5477
|
* each write endpoint independently enforces its permission policy.
|
|
4659
5478
|
*
|
|
5479
|
+
* Each field answers one UI question for the authenticated user in the
|
|
5480
|
+
* authenticated workspace. Render each as received and never combine fields
|
|
5481
|
+
* into a new decision. False without a matching key in denied_reasons means no
|
|
5482
|
+
* recognised explanation, not necessarily a refusal. A field is never
|
|
5483
|
+
* per-surface: one value serves every screen. The plan-lifecycle fields
|
|
5484
|
+
* (can_subscribe_self_serve, can_cancel, can_reactivate,
|
|
5485
|
+
* can_revert_scheduled_change) require the workspace's creator only when the
|
|
5486
|
+
* rollout mode is not `owner`; every other owner-level field stays open to
|
|
5487
|
+
* every owner.
|
|
5488
|
+
*
|
|
5489
|
+
* When the deployment has billing disabled, this endpoint answers without
|
|
5490
|
+
* consulting billing-api: can_top_up is true; can_manage_members,
|
|
5491
|
+
* can_invite_members, can_manage_subscription and can_manage_auto_top_up
|
|
5492
|
+
* follow the owner role. Other billing-action fields are false. These role
|
|
5493
|
+
* facts do not promise that billing endpoints are available.
|
|
5494
|
+
*
|
|
4660
5495
|
*/
|
|
4661
5496
|
export type BillingCapabilities = {
|
|
5497
|
+
/**
|
|
5498
|
+
* - Answers: should the client offer cancelling the subscription?
|
|
5499
|
+
* - True: the user is a workspace owner (the workspace's creator when the
|
|
5500
|
+
* rollout mode is not `owner`) of a paid self-serve subscription that is
|
|
5501
|
+
* running with no cancellation scheduled and no billing operation in flight.
|
|
5502
|
+
* It is also true where there is no local subscription row but that absence
|
|
5503
|
+
* is not authoritative (the state is unknown, not none).
|
|
5504
|
+
* - False: denied_reasons.can_cancel names the branch that decided. False
|
|
5505
|
+
* without that key means no recognised explanation, not necessarily a
|
|
5506
|
+
* refusal, for example when billing-api predates the field.
|
|
5507
|
+
* - Not: authorization (the cancel route enforces its own rules). Not
|
|
5508
|
+
* can_reactivate, which undoes a scheduled cancellation, and not
|
|
5509
|
+
* can_subscribe_self_serve. Not can_top_up or can_manage_billing, which stay
|
|
5510
|
+
* open to every owner. A FREE plan is not a paid subscription, so it has
|
|
5511
|
+
* nothing to cancel.
|
|
5512
|
+
* - False when: the user is not an owner; the user is an owner who is not the
|
|
5513
|
+
* workspace's creator (rollout mode not `owner`); the tier is FREE; there is no
|
|
5514
|
+
* subscription row and the absence is authoritative; the tier is
|
|
5515
|
+
* sales-managed or unrecognised; the subscription is reserved but not
|
|
5516
|
+
* running; its status is not recognised; it has ended or been canceled for
|
|
5517
|
+
* good; a billing operation is running or parked; a cancellation is already
|
|
5518
|
+
* scheduled.
|
|
5519
|
+
*
|
|
5520
|
+
*/
|
|
4662
5521
|
can_cancel: boolean;
|
|
5522
|
+
/**
|
|
5523
|
+
* - Answers: should the client offer changing the seat quantity of the
|
|
5524
|
+
* subscription?
|
|
5525
|
+
* - True: the user is a workspace owner with a subscription row on a
|
|
5526
|
+
* self-serve tier whose status is active, or canceled with a cancellation
|
|
5527
|
+
* date still set.
|
|
5528
|
+
* - False: never explained. There is no denied_reasons key for this field, so
|
|
5529
|
+
* false without a reason is the normal case, not a gap.
|
|
5530
|
+
* - Not: authorization (the seat-change route enforces its own rules). Not room
|
|
5531
|
+
* to invite (can_invite_members) and not member management
|
|
5532
|
+
* (can_manage_members). The resolver tests the tier only against the
|
|
5533
|
+
* self-serve list and does not check that the plan is seat-based, so true
|
|
5534
|
+
* does not mean the plan has seats to change: an owner on a FREE plan gets
|
|
5535
|
+
* true. A scheduled cancellation, a scheduled successor plan, a running
|
|
5536
|
+
* billing operation and a past-due payment do not change it.
|
|
5537
|
+
* - False when: the user is not an owner; there is no subscription row, even
|
|
5538
|
+
* where that absence is only unknown; the tier is sales-managed or
|
|
5539
|
+
* unrecognised; the subscription is reserved but not running; its status is
|
|
5540
|
+
* not recognised; it has ended or been canceled for good.
|
|
5541
|
+
*
|
|
5542
|
+
*/
|
|
4663
5543
|
can_change_seats: boolean;
|
|
5544
|
+
/**
|
|
5545
|
+
* - Answers: should the client offer deleting this workspace?
|
|
5546
|
+
* - True: the user is an owner of a team workspace and, when the answer was
|
|
5547
|
+
* read, the user is also its creator when the rollout mode is not owner,
|
|
5548
|
+
* the workspace is not attached to an SSO organization, has no
|
|
5549
|
+
* subscription-changing billing operation running or parked, and has no
|
|
5550
|
+
* live subscription, sales-managed or not.
|
|
5551
|
+
* - False: denied_reasons.can_delete_workspace names the branch that
|
|
5552
|
+
* decided. False without that key means no recognised explanation, not a
|
|
5553
|
+
* refusal: a fact it depends on could not be read, or the team-workspaces
|
|
5554
|
+
* feature is off.
|
|
5555
|
+
* - Not: authorization. It reports what the DELETE /api/workspaces/{id}
|
|
5556
|
+
* handler guards, except creator_guidance applies the creator restriction
|
|
5557
|
+
* to guidance while writes still accept any owner. Only creator mode
|
|
5558
|
+
* enforces that restriction. The handler stays authoritative and re-checks
|
|
5559
|
+
* under the workspace lock, so this answer can be stale. Not a billing
|
|
5560
|
+
* capability: use can_cancel to ask about cancelling a subscription.
|
|
5561
|
+
* - False when: a live subscription is on a sales-managed plan; the user is
|
|
5562
|
+
* not an owner; the user is a non-creator owner and the rollout mode is
|
|
5563
|
+
* not owner; the workspace is personal; the
|
|
5564
|
+
* workspace is attached to an SSO organization; a billing operation is
|
|
5565
|
+
* running or parked; a subscription is still live; a dependent fact could
|
|
5566
|
+
* not be read; the team-workspaces feature is off.
|
|
5567
|
+
*
|
|
5568
|
+
*/
|
|
5569
|
+
can_delete_workspace: boolean;
|
|
5570
|
+
/**
|
|
5571
|
+
* - Answers: may the user downgrade the workspace's subscription to a personal
|
|
5572
|
+
* plan?
|
|
5573
|
+
* - True: not in practice today. billing-api forces this field to false in
|
|
5574
|
+
* every response, a retired rollout's closed default, so a client must not
|
|
5575
|
+
* wait for it to become true.
|
|
5576
|
+
* - False: always on this server version. There is no denied_reasons key for
|
|
5577
|
+
* this field.
|
|
5578
|
+
* - Not: authorization. Not the same as
|
|
5579
|
+
* rollout_defaults_applied.can_downgrade_to_personal, which is true by design
|
|
5580
|
+
* and says nothing about this value.
|
|
5581
|
+
* - Before that override the resolver would grant it only to the workspace's
|
|
5582
|
+
* original owner (its creator) who also has the owner role, on a running
|
|
5583
|
+
* self-serve subscription with no successor plan scheduled.
|
|
5584
|
+
*
|
|
5585
|
+
*/
|
|
4664
5586
|
can_downgrade_to_personal: boolean;
|
|
5587
|
+
/**
|
|
5588
|
+
* Whether to offer workspace name editing to this actor. True for a current owner while workspace features are available. False with no denied_reasons key is unknown or unavailable guidance. Not member management or write authorization; the update route rechecks owner membership. A permission refusal has its matching denial key.
|
|
5589
|
+
*/
|
|
5590
|
+
can_edit_workspace: boolean;
|
|
5591
|
+
/**
|
|
5592
|
+
* - Answers: should the client offer sending a new workspace invitation right
|
|
5593
|
+
* now?
|
|
5594
|
+
* - True: the user is a workspace owner and the workspace has room: members
|
|
5595
|
+
* plus unexpired pending invitations are below the seat limit, or the limit
|
|
5596
|
+
* is not positive (unlimited).
|
|
5597
|
+
* - False: never explained. There is no denied_reasons key for this field.
|
|
5598
|
+
* - Not: authorization (invitation creation enforces the same limit itself).
|
|
5599
|
+
* Not member management (can_manage_members) and not buying seats
|
|
5600
|
+
* (can_change_seats). Pending invitations count toward capacity. The
|
|
5601
|
+
* resolver ignores tier, subscription status, cancellation and past-due
|
|
5602
|
+
* payment; only the seat limit, which can come from the active plan, reflects
|
|
5603
|
+
* the plan.
|
|
5604
|
+
* - False when: the user is not an owner; the seat limit is 1 (the limit is the
|
|
5605
|
+
* workspace override if set, else the active plan's default max seats, and
|
|
5606
|
+
* defaults to one seat with no active subscription); members plus unexpired
|
|
5607
|
+
* pending invitations have reached the limit; the capacity could not be
|
|
5608
|
+
* read, which fails closed.
|
|
5609
|
+
*
|
|
5610
|
+
*/
|
|
4665
5611
|
can_invite_members: boolean;
|
|
5612
|
+
/**
|
|
5613
|
+
* - Answers: should the client offer leaving this workspace?
|
|
5614
|
+
* - True: the user is a member and no branch below applies. A plain member
|
|
5615
|
+
* of a team workspace who did not create it can leave; an owner who did
|
|
5616
|
+
* not create it can leave only when another owner remains.
|
|
5617
|
+
* - False: denied_reasons.can_leave_workspace names the branch that decided.
|
|
5618
|
+
* False without that key means no recognised explanation, not a refusal: a
|
|
5619
|
+
* fact it depends on could not be read, or the team-workspaces feature is
|
|
5620
|
+
* off.
|
|
5621
|
+
* - Not: authorization. It reports what POST /api/workspace/leave would
|
|
5622
|
+
* decide for the authenticated workspace; the route stays authoritative.
|
|
5623
|
+
* Not can_delete_workspace: leaving ends one membership, deleting removes
|
|
5624
|
+
* the workspace.
|
|
5625
|
+
* - False when: the user is not a member; the membership is managed by the
|
|
5626
|
+
* workspace's SSO organization; the user created this personal workspace;
|
|
5627
|
+
* the user created this team workspace; the user is the only owner.
|
|
5628
|
+
*
|
|
5629
|
+
*/
|
|
5630
|
+
can_leave_workspace: boolean;
|
|
5631
|
+
/**
|
|
5632
|
+
* - Answers: does this workspace member have owner authority to view
|
|
5633
|
+
* and manage auto top-up, including reading or disabling saved settings?
|
|
5634
|
+
* - When billing-api omits this field, ingest resolves owner authority
|
|
5635
|
+
* from the authenticated workspace role. Explicit upstream booleans are
|
|
5636
|
+
* preserved; null or non-boolean values fail the response. False means
|
|
5637
|
+
* non-owner fallback or an explicit upstream false. No denied_reasons
|
|
5638
|
+
* key explains this role fact.
|
|
5639
|
+
* - Not: service or setup readiness, write authorization or permission
|
|
5640
|
+
* to charge. Missing payment methods, frozen billing or a disabled
|
|
5641
|
+
* billing service do not remove owner authority; these deployment and
|
|
5642
|
+
* setup checks remain separate from whether the actor is an owner.
|
|
5643
|
+
*
|
|
5644
|
+
*/
|
|
5645
|
+
can_manage_auto_top_up: boolean;
|
|
5646
|
+
/**
|
|
5647
|
+
* - Answers: should the client offer payment-method, invoice, payment-update
|
|
5648
|
+
* and company-details management?
|
|
5649
|
+
* - True: the user is a member of the workspace whose role is owner, except in
|
|
5650
|
+
* the false case below.
|
|
5651
|
+
* - False: never explained. There is no denied_reasons key for this field.
|
|
5652
|
+
* - Not: authorization. Not member management (can_manage_members) and not
|
|
5653
|
+
* buying or subscribing (can_top_up, can_subscribe_self_serve). Independent
|
|
5654
|
+
* of tier, subscription status, cancellation, past-due payment, a running
|
|
5655
|
+
* billing operation and invite capacity.
|
|
5656
|
+
* - False when: the user is not an owner, or is a non-creator owner of a
|
|
5657
|
+
* personal workspace that is missing a billing provider id (not yet
|
|
5658
|
+
* provisioned).
|
|
5659
|
+
*
|
|
5660
|
+
*/
|
|
5661
|
+
can_manage_billing: boolean;
|
|
5662
|
+
/**
|
|
5663
|
+
* - Answers: should the client offer member-management controls?
|
|
5664
|
+
* - True: the user is a member of the workspace whose role is owner.
|
|
5665
|
+
* - False: never explained. There is no denied_reasons key for this field.
|
|
5666
|
+
* - Not: authorization; individual target restrictions still apply. Not invite
|
|
5667
|
+
* capacity (can_invite_members), seat quantity (can_change_seats) or billing
|
|
5668
|
+
* management (can_manage_billing). Independent of tier, subscription status,
|
|
5669
|
+
* cancellation, past-due payment and billing provisioning.
|
|
5670
|
+
* - False when: the user is not a member, or is a member whose role is not
|
|
5671
|
+
* owner. Nothing else closes it.
|
|
5672
|
+
*
|
|
5673
|
+
*/
|
|
5674
|
+
can_manage_members: boolean;
|
|
5675
|
+
/**
|
|
5676
|
+
* Whether to offer editing the workspace partner-provider access policy. Requires current owner membership and the partner governance entitlement. A false capability may have its matching denial key; absence means no recognized explanation, including disabled workspace features or unavailable membership. Not permission to read the policy, manage members or authorize a write; the policy route rechecks.
|
|
5677
|
+
*/
|
|
5678
|
+
can_manage_partner_node_access: boolean;
|
|
5679
|
+
/**
|
|
5680
|
+
* - Answers: does this workspace member have owner authority for the
|
|
5681
|
+
* subscription-management section?
|
|
5682
|
+
* - When billing-api omits this field, ingest resolves owner authority
|
|
5683
|
+
* from the authenticated workspace role. Explicit upstream booleans are
|
|
5684
|
+
* preserved; null or non-boolean values fail the response. False means
|
|
5685
|
+
* non-owner fallback or an explicit upstream false. No denied_reasons
|
|
5686
|
+
* key explains this role fact.
|
|
5687
|
+
* - Not: action availability, service readiness or write authorization.
|
|
5688
|
+
* Portal, payment-method and invoice guidance still uses can_manage_billing,
|
|
5689
|
+
* with provisioning and endpoint-specific checks. Lifecycle actions use
|
|
5690
|
+
* their dedicated capabilities and permissions. This role authority is
|
|
5691
|
+
* independent of plan, billing state and personal-workspace creator.
|
|
5692
|
+
*
|
|
5693
|
+
*/
|
|
5694
|
+
can_manage_subscription: boolean;
|
|
5695
|
+
/**
|
|
5696
|
+
* - Answers: may the user undo a SCHEDULED cancellation on a subscription that
|
|
5697
|
+
* is still running?
|
|
5698
|
+
* - True: the user is a workspace owner (the workspace's creator when the
|
|
5699
|
+
* rollout mode is not `owner`), the subscription is active or canceled with a
|
|
5700
|
+
* cancellation date still set (running until that date), and no billing
|
|
5701
|
+
* operation is in flight.
|
|
5702
|
+
* - False: denied_reasons.can_reactivate names the branch that decided. False
|
|
5703
|
+
* without that key means no recognised explanation, not necessarily a
|
|
5704
|
+
* refusal, for example when billing-api predates the field.
|
|
5705
|
+
* - Not: authorization (the resubscribe route enforces its own rules). Not a
|
|
5706
|
+
* way back from a plan that has ended: that is can_subscribe_self_serve,
|
|
5707
|
+
* which stays open there. Not an undo of a scheduled plan change, which is
|
|
5708
|
+
* can_revert_scheduled_change. Not can_top_up or can_manage_billing, which stay
|
|
5709
|
+
* open to every owner.
|
|
5710
|
+
* - False when: the user is not an owner; the user is an owner who is not the
|
|
5711
|
+
* workspace's creator (rollout mode not `owner`); there is no subscription row at all,
|
|
5712
|
+
* even where that absence is only unknown; the tier is sales-managed or
|
|
5713
|
+
* unrecognised; the subscription is reserved but not running; its status is
|
|
5714
|
+
* not recognised; it has ended or been canceled for good; a billing
|
|
5715
|
+
* operation is running or parked; no cancellation is scheduled.
|
|
5716
|
+
*
|
|
5717
|
+
*/
|
|
4666
5718
|
can_reactivate: boolean;
|
|
4667
5719
|
/**
|
|
4668
|
-
*
|
|
5720
|
+
* - Answers: may the user undo a plan change that is already scheduled for a
|
|
5721
|
+
* future billing boundary?
|
|
5722
|
+
* - True: the user is a workspace owner (the workspace's creator when the
|
|
5723
|
+
* rollout mode is not `owner`), the subscription is Stripe-billed and has a
|
|
5724
|
+
* pending scheduled change from it, and the revert window is open: more than
|
|
5725
|
+
* one hour before the change takes effect and, when reverting would restore a
|
|
5726
|
+
* cancellation, more than one hour before that cancellation date.
|
|
5727
|
+
* - False: never explained. There is no denied_reasons key for this field, so
|
|
5728
|
+
* it does not say which of the conditions failed, including that the user is
|
|
5729
|
+
* an owner who is not the creator.
|
|
5730
|
+
* - Not: authorization. Not can_reactivate (undo a scheduled cancellation) and
|
|
5731
|
+
* not can_subscribe_self_serve. Not can_top_up or can_manage_billing, which
|
|
5732
|
+
* stay open to every owner. When subscribe is refused with
|
|
5733
|
+
* subscription_change_in_progress, a successor plan is scheduled; this field
|
|
5734
|
+
* says whether that change can still be reverted.
|
|
5735
|
+
* - False when: the user is not an owner; the user is an owner who is not the
|
|
5736
|
+
* workspace's creator (rollout mode not `owner`); there is no pending
|
|
5737
|
+
* scheduled change from this subscription; the cutoff has passed; the tier is
|
|
5738
|
+
* sales-managed or unrecognised; the subscription has ended or been canceled
|
|
5739
|
+
* for good.
|
|
5740
|
+
*
|
|
4669
5741
|
*/
|
|
4670
5742
|
can_revert_scheduled_change: boolean;
|
|
5743
|
+
/**
|
|
5744
|
+
* Point-in-time Cloud billing guidance for this actor, combining the supplied workflow_run decision with ingest's existing account gate and cutover mode, local enrollment, Google-session requirement, and acting-user allowance. Legacy authority includes the same fail-open behavior as submission. True means these account gates allow the attempt; false has a denial when recognized. Billing-disabled environments return true. False without a reason is unknown where authoritative guidance is unavailable. No allowance is consumed or reserved. This is not authorization for a specific job or project: the submission path rechecks its full context.
|
|
5745
|
+
*/
|
|
5746
|
+
can_run_workflows: boolean;
|
|
5747
|
+
/**
|
|
5748
|
+
* - Answers: may this user start, recover or change a self-serve plan?
|
|
5749
|
+
* - True: the user is a workspace owner and no resolver branch closed it. When
|
|
5750
|
+
* the rollout mode is not `owner`, the user must also be the workspace's
|
|
5751
|
+
* creator; in mode `owner` any owner qualifies. That includes a workspace
|
|
5752
|
+
* with no plan, a running self-serve plan, and a plan that has ended or been
|
|
5753
|
+
* canceled for good, where it stays open because it is the only path back.
|
|
5754
|
+
* - False: the user is not an owner, the user is an owner who is not the
|
|
5755
|
+
* workspace's creator (rollout mode not `owner`), the user is a non-creator
|
|
5756
|
+
* owner of a personal workspace whose billing is not yet provisioned, the
|
|
5757
|
+
* tier is sales-managed or unrecognised, a successor plan is already
|
|
5758
|
+
* scheduled, the subscription is reserved but not running and has no
|
|
5759
|
+
* recoverable checkout, or its status is not recognised.
|
|
5760
|
+
* denied_reasons.can_subscribe_self_serve names the branch that decided.
|
|
5761
|
+
* False without that key means no recognised explanation, not necessarily a
|
|
5762
|
+
* refusal, for example when billing-api predates the field.
|
|
5763
|
+
* - Not: authorization (the subscribe route enforces its own rules). Not
|
|
5764
|
+
* can_top_up (buy credits) or can_manage_billing, which stay open to every
|
|
5765
|
+
* owner. Not can_reactivate (undo a scheduled cancellation) or can_cancel.
|
|
5766
|
+
* One value serves every surface; there is no per-surface variant.
|
|
5767
|
+
*
|
|
5768
|
+
*/
|
|
4671
5769
|
can_subscribe_self_serve: boolean;
|
|
5770
|
+
/**
|
|
5771
|
+
* Should this owner be offered a one-off prepaid credit purchase? Known
|
|
5772
|
+
* Free, no-subscription, ended and inactive Enterprise states qualify.
|
|
5773
|
+
* Non-members, non-owner members, non-creator initial personal billing
|
|
5774
|
+
* provisioning and past-due billing (payment_failed or paused) are refused.
|
|
5775
|
+
* Unknown existing subscription tier or status is refused, matching purchase
|
|
5776
|
+
* and quote validation. This is guidance, not authorization: write routes
|
|
5777
|
+
* retain workspace, rail, provider, amount and operation checks. Cloud
|
|
5778
|
+
* workflow execution still requires its existing subscription/run policy.
|
|
5779
|
+
*
|
|
5780
|
+
*/
|
|
4672
5781
|
can_top_up: boolean;
|
|
5782
|
+
/**
|
|
5783
|
+
* Whether at least one active catalog choice is an actionable upgrade from the current plan for this actor, including a Free-to-paid choice, longer interval or higher Team credit commitment. Uses the same exact target selector as plan actions, including seats, processing operations and scheduled changes. No current or ended plan is false: subscribe or resubscribe is a separate action. Unknown legacy bindings fail closed. False with no reason is unknown; this guidance does not authorize writes.
|
|
5784
|
+
*/
|
|
5785
|
+
can_upgrade: boolean;
|
|
5786
|
+
/**
|
|
5787
|
+
* Whether to offer the actor's own usage attribution view. Optional for rolling deployments; absent means unknown. True for a current workspace member with usage attribution enabled. Clients must use person/source ledger groupings or person/source filters, which the existing route scopes to the actor for members. This is not permission for the default model grouping, whole-workspace analytics, or other unscoped queries. Query authorization and filters are unchanged. Attribution disabled emits usage_attribution_unavailable; missing denial means unknown.
|
|
5788
|
+
*/
|
|
5789
|
+
can_view_own_usage?: boolean;
|
|
5790
|
+
/**
|
|
5791
|
+
* Whether to offer the workspace invitation list. True for a current owner while workspace features are available. A false capability may have its matching denied_reasons key; absence means no recognized explanation. This is not capacity to send another invitation; use can_invite_members. The owner-only list route stays authoritative and can include expired invitations despite the word pending.
|
|
5792
|
+
*/
|
|
5793
|
+
can_view_pending_invites: boolean;
|
|
5794
|
+
/**
|
|
5795
|
+
* Whether to offer whole-workspace usage analytics. True only for a current workspace owner with usage attribution enabled. Members use can_view_own_usage instead. False with no matching denied_reasons key means unknown or unavailable guidance. This does not authorize a read.
|
|
5796
|
+
*/
|
|
5797
|
+
can_view_team_usage: boolean;
|
|
5798
|
+
};
|
|
5799
|
+
/**
|
|
5800
|
+
* Recorded account setup guidance, separate from owner authority in
|
|
5801
|
+
* can_manage_auto_top_up. Frozen prevents enabling/editing; unavailable
|
|
5802
|
+
* means setup is not available. Owner read/disable authority remains separate.
|
|
5803
|
+
* These states do not determine surface visibility. Unified billing settings
|
|
5804
|
+
* hide the auto top-up card when can_top_up is false, including paused or
|
|
5805
|
+
* payment-failed billing.
|
|
5806
|
+
* Ready does not authorize a charge or guarantee an off-session payment method.
|
|
5807
|
+
* This fact ignores saved consent and monthly budget. An absent fact is unknown.
|
|
5808
|
+
*
|
|
5809
|
+
*/
|
|
5810
|
+
export type AutoTopUpSetup = {
|
|
5811
|
+
/**
|
|
5812
|
+
* Absent for ready; required for frozen or unavailable. Frozen reasons are
|
|
5813
|
+
* payment_past_due, billing_paused, billing_awaiting_payment_method,
|
|
5814
|
+
* billing_payment_pending, default_payment_method_missing and
|
|
5815
|
+
* billing_operation_parked. Remaining reasons are unavailable. The first
|
|
5816
|
+
* recorded workspace, provider, rail, billing, subscription, parked-operation
|
|
5817
|
+
* or default-payment-method check that refuses setup supplies the reason.
|
|
5818
|
+
* Creator-only provisioning replaces otherwise ready or frozen guidance
|
|
5819
|
+
* for a noncreator; existing unavailable account reasons remain.
|
|
5820
|
+
*
|
|
5821
|
+
*/
|
|
5822
|
+
reason?: 'workspace_deleted' | 'workspace_blocked' | 'billing_not_provisioned' | 'billing_rail_not_supported' | 'billing_status_unrecognized' | 'payment_past_due' | 'billing_paused' | 'billing_awaiting_payment_method' | 'billing_payment_pending' | 'subscription_tier_unrecognized' | 'subscription_status_unrecognized' | 'subscription_state_unknown' | 'billing_operation_parked' | 'default_payment_method_missing' | 'creator_only_provisioning';
|
|
5823
|
+
state: 'ready' | 'frozen' | 'unavailable';
|
|
4673
5824
|
};
|
|
4674
5825
|
/**
|
|
4675
5826
|
* 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.
|
|
@@ -4713,6 +5864,10 @@ export type BillingBalanceResponse = {
|
|
|
4713
5864
|
* @deprecated
|
|
4714
5865
|
*/
|
|
4715
5866
|
effective_balance_micros?: number;
|
|
5867
|
+
/**
|
|
5868
|
+
* True when the effective balance is above 0 and at or below the low-balance threshold ($5 of credits). False when the balance is not authoritative.
|
|
5869
|
+
*/
|
|
5870
|
+
low_balance?: boolean;
|
|
4716
5871
|
/**
|
|
4717
5872
|
* 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
5873
|
*/
|
|
@@ -4733,6 +5888,112 @@ export type BillingBalanceResponse = {
|
|
|
4733
5888
|
* @deprecated
|
|
4734
5889
|
*/
|
|
4735
5890
|
prepaid_balance_micros?: number;
|
|
5891
|
+
/**
|
|
5892
|
+
* Amount in cents to prefill for a top-up when the effective balance is negative: covers the shortfall plus the minimum top-up, rounded up to a whole dollar, and never below the default amount. Null when the balance is zero or positive, or not authoritative.
|
|
5893
|
+
*/
|
|
5894
|
+
suggested_topup_amount_cents?: number | null;
|
|
5895
|
+
};
|
|
5896
|
+
/**
|
|
5897
|
+
* Every field is required. On every save, disabled included,
|
|
5898
|
+
* threshold_credits and reload_credits must be positive whole credits
|
|
5899
|
+
* and a non-null monthly_budget_cents must be positive. When enabled is
|
|
5900
|
+
* true, monthly_budget_cents must also be non-null and at most
|
|
5901
|
+
* max_monthly_budget_cents, reload_credits must be at least
|
|
5902
|
+
* min_reload_credits and greater than threshold_credits, and one reload
|
|
5903
|
+
* must cost no more than the budget. A save with enabled false accepts a
|
|
5904
|
+
* null budget and skips the enabled-only rules.
|
|
5905
|
+
*
|
|
5906
|
+
*/
|
|
5907
|
+
export type AutoReloadSettingsRequest = {
|
|
5908
|
+
enabled: boolean;
|
|
5909
|
+
monthly_budget_cents: number | null;
|
|
5910
|
+
reload_credits: number;
|
|
5911
|
+
threshold_credits: number;
|
|
5912
|
+
};
|
|
5913
|
+
/**
|
|
5914
|
+
* billing-api's automatic top-up settings, server prices and automatic
|
|
5915
|
+
* spend this cycle, passed through unchanged. Credits are whole credits;
|
|
5916
|
+
* amounts are US cents. When `configured` is false, `enabled` is false
|
|
5917
|
+
* and the other setting fields are null.
|
|
5918
|
+
*
|
|
5919
|
+
*/
|
|
5920
|
+
export type AutoReloadSettings = {
|
|
5921
|
+
/**
|
|
5922
|
+
* True when the validated default card is already expired or its expiry-month boundary (00:00 UTC on the first day of the following month) is within the next 30 days. Absent or null means unknown, never a healthy-card claim. This includes non-card methods, malformed data, provider errors or a live Stripe default that differs from the recorded default payment method (for example, before a portal-change webhook syncs). Independent of status and charge eligibility; save responses omit the fact. Missing on an older server also means unknown.
|
|
5923
|
+
*
|
|
5924
|
+
*/
|
|
5925
|
+
card_expiring_soon?: boolean | null;
|
|
5926
|
+
configured: boolean;
|
|
5927
|
+
/**
|
|
5928
|
+
* When the budget cycle resets; null when no cycle anchor is known.
|
|
5929
|
+
*/
|
|
5930
|
+
cycle_resets_at: string | null;
|
|
5931
|
+
/**
|
|
5932
|
+
* Why the system, not an owner, turned automatic reload off: consecutive_declines. Null after any owner save, or once a different default card re-enables it.
|
|
5933
|
+
*/
|
|
5934
|
+
disabled_reason: string | null;
|
|
5935
|
+
enabled: boolean;
|
|
5936
|
+
/**
|
|
5937
|
+
* When the most recent automatic reload declined, or null.
|
|
5938
|
+
*/
|
|
5939
|
+
last_failure_at: string | null;
|
|
5940
|
+
/**
|
|
5941
|
+
* Decline code of the most recent declined automatic reload, or null. Fraud codes read as generic_decline. Kept after a later success; read paused_by_decline for the current state.
|
|
5942
|
+
*/
|
|
5943
|
+
last_failure_reason: string | null;
|
|
5944
|
+
/**
|
|
5945
|
+
* The largest monthly_budget_cents an enabled save accepts.
|
|
5946
|
+
*/
|
|
5947
|
+
max_monthly_budget_cents: number;
|
|
5948
|
+
/**
|
|
5949
|
+
* The smallest reload_credits an enabled save accepts.
|
|
5950
|
+
*/
|
|
5951
|
+
min_reload_credits: number;
|
|
5952
|
+
monthly_budget_cents: number | null;
|
|
5953
|
+
/**
|
|
5954
|
+
* Enabled, but no budget cycle is known, monthly_budget_cents is null, or the remaining budget cannot fund one full reload. Always false when disabled. Read guidance only; it does not enforce charging.
|
|
5955
|
+
*/
|
|
5956
|
+
paused_by_budget: boolean;
|
|
5957
|
+
/**
|
|
5958
|
+
* Enabled, but the default card is the one that last declined an automatic reload, so none is attempted until the default card changes. Not the workspace billing status.
|
|
5959
|
+
*/
|
|
5960
|
+
paused_by_decline: boolean;
|
|
5961
|
+
/**
|
|
5962
|
+
* Current server price of reload_credits. Display only; never sent back.
|
|
5963
|
+
*/
|
|
5964
|
+
reload_amount_cents: number | null;
|
|
5965
|
+
/**
|
|
5966
|
+
* Credits bought by each automatic reload.
|
|
5967
|
+
*/
|
|
5968
|
+
reload_credits: number | null;
|
|
5969
|
+
/**
|
|
5970
|
+
* Automatic reload spend counted in the current budget cycle.
|
|
5971
|
+
*/
|
|
5972
|
+
spent_this_cycle_cents: number;
|
|
5973
|
+
/**
|
|
5974
|
+
* The one automatic reload state the card renders, decided by
|
|
5975
|
+
* billing-api so clients never order the separate facts themselves.
|
|
5976
|
+
* Render it as received. Values are listed in precedence order; the
|
|
5977
|
+
* first that holds wins:
|
|
5978
|
+
* - failed: paused_by_decline is true, or the system turned automatic
|
|
5979
|
+
* reload off after consecutive declines (disabled_reason is
|
|
5980
|
+
* consecutive_declines). The card asks for a new payment method.
|
|
5981
|
+
* - off: not configured, or an owner turned it off.
|
|
5982
|
+
* - on_hold: enabled, but the workspace has no default payment method
|
|
5983
|
+
* recorded, so no automatic reload can be attempted.
|
|
5984
|
+
* - paused_by_budget: enabled, and paused_by_budget is true; it
|
|
5985
|
+
* resumes at cycle_resets_at.
|
|
5986
|
+
* - on: enabled and able to reload.
|
|
5987
|
+
* Read guidance, not charging enforcement or the workspace billing
|
|
5988
|
+
* status. An expired card that is still the default reads as on
|
|
5989
|
+
* until a reload declines, then failed. Treat an unknown value as off.
|
|
5990
|
+
*
|
|
5991
|
+
*/
|
|
5992
|
+
status: 'failed' | 'off' | 'on_hold' | 'paused_by_budget' | 'on';
|
|
5993
|
+
/**
|
|
5994
|
+
* Reload when the balance falls below this many credits.
|
|
5995
|
+
*/
|
|
5996
|
+
threshold_credits: number | null;
|
|
4736
5997
|
};
|
|
4737
5998
|
export type AuthenticateResponse = {
|
|
4738
5999
|
/**
|
|
@@ -4893,7 +6154,15 @@ export type AssetCreated = Asset & {
|
|
|
4893
6154
|
created_new: boolean;
|
|
4894
6155
|
};
|
|
4895
6156
|
/**
|
|
4896
|
-
*
|
|
6157
|
+
* Attachment extensions whose content the model can see: the raster formats Go's image
|
|
6158
|
+
* package decodes, plus HEIC/HEIF stills (iPhone photos), which view_asset converts to JPEG
|
|
6159
|
+
* first. view_asset always re-encodes to PNG or JPEG, so the provider's own four-type image
|
|
6160
|
+
* allowlist is satisfied by construction rather than by matching this list.
|
|
6161
|
+
*
|
|
6162
|
+
*/
|
|
6163
|
+
export type AgentViewableAttachmentExtension = '.png' | '.jpg' | '.jpeg' | '.gif' | '.webp' | '.bmp' | '.tif' | '.tiff' | '.heic' | '.heif';
|
|
6164
|
+
/**
|
|
6165
|
+
* Acknowledgement that a turn was accepted. The agent runs asynchronously; output streams over the WebSocket (agent_message_delta, agent_tool_call, agent_message_done); canvas edits arrive as doc_update frames.
|
|
4897
6166
|
*/
|
|
4898
6167
|
export type AgentTurnAccepted = {
|
|
4899
6168
|
/**
|
|
@@ -4902,6 +6171,45 @@ export type AgentTurnAccepted = {
|
|
|
4902
6171
|
message_id: string;
|
|
4903
6172
|
thread_id: string;
|
|
4904
6173
|
};
|
|
6174
|
+
/**
|
|
6175
|
+
* Server-to-client agent_tool_call frame on /ws. A tool invocation started or reached a terminal state. Closed, like the canonical envelope.
|
|
6176
|
+
*/
|
|
6177
|
+
export type AgentToolCallFrame = {
|
|
6178
|
+
data: AgentToolCallData;
|
|
6179
|
+
type: 'agent_tool_call';
|
|
6180
|
+
};
|
|
6181
|
+
/**
|
|
6182
|
+
* The `data` of an agent_tool_call WebSocket event: one tool invocation's lifecycle. Mirrors `$defs.agent_tool_call.data` in services/agent/api/agent_events.schema.json, which also states the presence rules: the document correlation fields appear only on a terminal (success or error) frame, workflow_id and op_ids appear together, and doc_seq and doc_lineage_seq appear together and only with both of them. This schema leaves those rules out on purpose. A oneOf over closed variants could express them, but it would turn the generated frontend type into a union the consumer cannot extend field by field. The producer enforces them instead: the Publisher omits incomplete correlation, and TestToolCallEmissionsSatisfyBothContracts validates every emitted shape against the canonical schema. Consumers treat correlation as advisory and use it only when workflow_id and op_ids are both present on a terminal frame. TestToolCallFrameMatchesContract holds the two definitions to the same fields and constraints.
|
|
6183
|
+
*/
|
|
6184
|
+
export type AgentToolCallData = {
|
|
6185
|
+
/**
|
|
6186
|
+
* Present with doc_seq. The lineage containing every correlated update, so a follower can detect replacement and resync.
|
|
6187
|
+
*/
|
|
6188
|
+
doc_lineage_seq?: number;
|
|
6189
|
+
/**
|
|
6190
|
+
* Optional terminal recovery barrier. The highest published doc_update sequence carrying this call's op_ids.
|
|
6191
|
+
*/
|
|
6192
|
+
doc_seq?: number;
|
|
6193
|
+
duration_ms?: number;
|
|
6194
|
+
error_code?: string;
|
|
6195
|
+
message_id: string;
|
|
6196
|
+
/**
|
|
6197
|
+
* Terminal success or error only. The semantic operations whose effects are carried by published doc_update frames for this call.
|
|
6198
|
+
*/
|
|
6199
|
+
op_ids?: Array<string>;
|
|
6200
|
+
/**
|
|
6201
|
+
* load_skill only. The skill pack name the call's input names, on its running frame and on its terminal frame, including an unknown_skill error. Omitted on every other tool.
|
|
6202
|
+
*/
|
|
6203
|
+
skill?: string;
|
|
6204
|
+
status: 'running' | 'success' | 'error';
|
|
6205
|
+
thread_id: string;
|
|
6206
|
+
tool_call_id: string;
|
|
6207
|
+
tool_name: string;
|
|
6208
|
+
/**
|
|
6209
|
+
* Terminal success or error only. The workflow whose published doc_update contains op_ids. Replace-canvas doc_reset calls do not carry this correlation.
|
|
6210
|
+
*/
|
|
6211
|
+
workflow_id?: string;
|
|
6212
|
+
};
|
|
4905
6213
|
/**
|
|
4906
6214
|
* One agent thread row for the history sidebar.
|
|
4907
6215
|
*/
|
|
@@ -5061,6 +6369,46 @@ export type AgentRunApprovalContext = {
|
|
|
5061
6369
|
*/
|
|
5062
6370
|
workflow_name?: string;
|
|
5063
6371
|
};
|
|
6372
|
+
/**
|
|
6373
|
+
* Attachment extensions that are accepted so a user can keep them beside a workflow, and
|
|
6374
|
+
* nothing more — the agent can neither read the contents nor wire the file in.
|
|
6375
|
+
*
|
|
6376
|
+
* .avif is the only one: it is an image the turn cannot decode (no registry entry, so
|
|
6377
|
+
* view_asset would fail) and it is not text, so read_asset would return mojibake. It stays
|
|
6378
|
+
* accepted because it was attachable before the policy existed.
|
|
6379
|
+
*
|
|
6380
|
+
*/
|
|
6381
|
+
export type AgentRetainedAttachmentExtension = '.avif';
|
|
6382
|
+
/**
|
|
6383
|
+
* Attachment extensions the agent cannot open but wires into a load node by filename. The 3D
|
|
6384
|
+
* models go into Load3D's model_file widget and are exactly the set Load3D accepts
|
|
6385
|
+
* (comfy_extras/nodes_load_3d.py); .usdz is absent from both lists, so it is not an exclusion
|
|
6386
|
+
* this tier makes. .exr goes into LoadImage's image widget: ComfyUI core v0.40.0 registers it
|
|
6387
|
+
* as an image type, but it is HDR, so view_asset cannot decode it and it is not on the view
|
|
6388
|
+
* tier.
|
|
6389
|
+
*
|
|
6390
|
+
*/
|
|
6391
|
+
export type AgentReferenceAttachmentExtension = '.glb' | '.obj' | '.fbx' | '.gltf' | '.stl' | '.ply' | '.spz' | '.splat' | '.ksplat' | '.exr';
|
|
6392
|
+
/**
|
|
6393
|
+
* Attachment extensions whose contents the agent reads verbatim, with read_asset. The bytes
|
|
6394
|
+
* are decoded as UTF-8 and returned as text, bounded and truncation-marked.
|
|
6395
|
+
*
|
|
6396
|
+
* This tier describes CONTENT ACCESS only and says nothing about whether the file can be
|
|
6397
|
+
* wired into a graph. Those are separate questions, so a format becoming a node input later
|
|
6398
|
+
* does not move it out of this tier.
|
|
6399
|
+
*
|
|
6400
|
+
* .svg is here rather than with the images because it is XML: view_asset cannot decode it,
|
|
6401
|
+
* but its markup is exactly what a caller would want read.
|
|
6402
|
+
*
|
|
6403
|
+
*/
|
|
6404
|
+
export type AgentReadableAttachmentExtension = '.md' | '.markdown' | '.txt' | '.json' | '.csv' | '.yaml' | '.yml' | '.xml' | '.log' | '.svg';
|
|
6405
|
+
/**
|
|
6406
|
+
* Attachment extensions the agent can only describe from metadata. A subset of the containers
|
|
6407
|
+
* ingest sorts into a load node's video/audio lists: that categoriser also accepts .wmv, .flv,
|
|
6408
|
+
* .aac and .wma, which the agreed attachment list rejects.
|
|
6409
|
+
*
|
|
6410
|
+
*/
|
|
6411
|
+
export type AgentProbeableAttachmentExtension = '.mp4' | '.webm' | '.mov' | '.m4v' | '.avi' | '.mkv' | '.mp3' | '.wav' | '.ogg' | '.opus' | '.flac' | '.m4a';
|
|
5064
6412
|
/**
|
|
5065
6413
|
* A user turn posted to the agent.
|
|
5066
6414
|
*/
|
|
@@ -5070,7 +6418,24 @@ export type AgentPostMessageRequest = {
|
|
|
5070
6418
|
*/
|
|
5071
6419
|
ask_kinds?: Array<AgentAskKind>;
|
|
5072
6420
|
/**
|
|
5073
|
-
* Optional input filenames the client already uploaded to the ComfyUI input namespace (via
|
|
6421
|
+
* Optional input filenames the client already uploaded to the ComfyUI input namespace (via
|
|
6422
|
+
* /api/upload/image, which returns the {name, subfolder, type} reference). The agent never
|
|
6423
|
+
* receives file bytes here; what it can read or wire depends on the policy tier.
|
|
6424
|
+
*
|
|
6425
|
+
* Each entry's extension must appear in AgentAttachmentPolicy; a reference outside it is
|
|
6426
|
+
* rejected with 422 (AgentAttachmentRejected). A reference with NO extension is the one
|
|
6427
|
+
* exception: not every reference is a filename — an asset hash may be a bare hex digest or
|
|
6428
|
+
* "blake3:<hex>" — so one with nothing to judge is admitted here and checked again once it
|
|
6429
|
+
* resolves to a stored name. A refusal there costs the attachment its asset id and its
|
|
6430
|
+
* kind, so the agent gets no tool for it and the turn is not refused; the reference itself
|
|
6431
|
+
* is still echoed back by GET .../messages. Which tier of that policy an extension lands
|
|
6432
|
+
* in says what the agent can do with it, and the tiers differ sharply — a client that
|
|
6433
|
+
* presents them as one flat list misleads the user.
|
|
6434
|
+
*
|
|
6435
|
+
* The constraint is expressed as extension enums rather than on this array because the array
|
|
6436
|
+
* carries FILENAMES, not content types: an extension is what both ends can actually agree
|
|
6437
|
+
* on, and the upload route this list references stores no MIME type for what it accepts.
|
|
6438
|
+
*
|
|
5074
6439
|
*/
|
|
5075
6440
|
attachments?: Array<string>;
|
|
5076
6441
|
/**
|
|
@@ -5081,6 +6446,10 @@ export type AgentPostMessageRequest = {
|
|
|
5081
6446
|
* 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
6447
|
*/
|
|
5083
6448
|
client_message_id?: string;
|
|
6449
|
+
/**
|
|
6450
|
+
* The frontend build that sent this turn (ComfyUI_frontend __COMFYUI_FRONTEND_VERSION__, optionally +commit). Observability only; never changes the turn. Recorded on the turn's trace as `comfy.client.version`. A value longer than 64 bytes, or one containing anything other than ASCII letters, digits, `.`, `+` and `-`, is DROPPED, not rejected — accepted with 202 exactly like omitting the field. Surrounding whitespace is trimmed.
|
|
6451
|
+
*/
|
|
6452
|
+
client_version?: string;
|
|
5084
6453
|
/**
|
|
5085
6454
|
* The user's message.
|
|
5086
6455
|
*/
|
|
@@ -5252,9 +6621,16 @@ export type AgentPendingAsk = ({
|
|
|
5252
6621
|
*/
|
|
5253
6622
|
export type AgentMessage = {
|
|
5254
6623
|
/**
|
|
5255
|
-
* Message payload. User turns carry {text, attachments?, attachment_refs?, workflow_references?}. Attachments are the input-image filenames from the request. attachment_refs is the server's own resolution of those same filenames to library assets, as {name, id?, kind?} objects,
|
|
6624
|
+
* Message payload. User turns carry {text, attachments?, attachment_refs?, workflow_references?}. Attachments are the input-image filenames from the request. attachment_refs is the server's own resolution of those same filenames to library assets, as {name, id?, kind?, display_name?} objects. display_name carries the validated user-facing filename when name is an opaque storage key; the server may remove a registered emoji selector that does not change the displayed glyph. To bound denormalized data, repeated entries with the same name carry display_name only on the first occurrence; clients should apply it to every entry sharing that name. The sibling exists so a later turn in the thread can reach an earlier turn's file — clients should keep reading attachments. workflow_references is an optional array of explicit non-target references, each with workflow_id and name (an empty string when no name was supplied). An optional unavailable: true records that the reference could not be authorized at turn start, without distinguishing unknown IDs, inaccessible workflows, or lookup failures. These entries preserve the user's reference intent without exposing workflow content; the frontend restores reference chips from this metadata. The field is omitted when there are no references. Assistant turns carry {text} — the final answer text (or error copy on a failed turn). Omitted when empty (e.g. an assistant message still streaming). Per-turn token accounting is NOT included here; it is surfaced on the agent_message_done WebSocket broadcast. tool_calls is an optional array of ToolCallSummary, attached to an assistant message that has persisted terminal (ok/error) tool-call rows — it lets a chat reload render the tool history a turn produced instead of showing nothing until the next live turn. Omitted when the message has no such rows.
|
|
5256
6625
|
*/
|
|
5257
6626
|
content?: {
|
|
6627
|
+
attachment_refs?: Array<{
|
|
6628
|
+
display_name?: string;
|
|
6629
|
+
id?: string;
|
|
6630
|
+
kind?: string;
|
|
6631
|
+
name?: string;
|
|
6632
|
+
[key: string]: unknown;
|
|
6633
|
+
}>;
|
|
5258
6634
|
tool_calls?: Array<ToolCallSummary>;
|
|
5259
6635
|
[key: string]: unknown;
|
|
5260
6636
|
};
|
|
@@ -5293,7 +6669,7 @@ export type AgentError = {
|
|
|
5293
6669
|
error: string;
|
|
5294
6670
|
};
|
|
5295
6671
|
/**
|
|
5296
|
-
* Authoritative snapshot of a workflow's agent draft —
|
|
6672
|
+
* Authoritative snapshot of a workflow's agent draft — a snapshot for recovery and tooling.
|
|
5297
6673
|
*/
|
|
5298
6674
|
export type AgentDraftSnapshot = {
|
|
5299
6675
|
/**
|
|
@@ -5303,7 +6679,7 @@ export type AgentDraftSnapshot = {
|
|
|
5303
6679
|
[key: string]: unknown;
|
|
5304
6680
|
};
|
|
5305
6681
|
/**
|
|
5306
|
-
* Monotonic draft version
|
|
6682
|
+
* Monotonic draft version of the snapshot, for recovery and tooling; not a concurrency token.
|
|
5307
6683
|
*/
|
|
5308
6684
|
version: number;
|
|
5309
6685
|
};
|
|
@@ -5330,6 +6706,77 @@ export type AgentCancelUnconfirmed = {
|
|
|
5330
6706
|
export type AgentCancelAccepted = {
|
|
5331
6707
|
status: 'cancelling';
|
|
5332
6708
|
};
|
|
6709
|
+
/**
|
|
6710
|
+
* 422 body when a posted attachment's extension is outside the accepted list. It carries the
|
|
6711
|
+
* policy rather than only an error string so a client never has to hardcode the list to
|
|
6712
|
+
* explain the refusal — the same reason the list is expressed as enums the frontend generates
|
|
6713
|
+
* its types from.
|
|
6714
|
+
*
|
|
6715
|
+
*/
|
|
6716
|
+
export type AgentAttachmentRejected = {
|
|
6717
|
+
accepted: AgentAttachmentPolicy;
|
|
6718
|
+
error: string;
|
|
6719
|
+
/**
|
|
6720
|
+
* The offending references, in the order they were posted. Capped, so it can be shorter than rejected_count — a client that reports "N were refused" must read that field rather than this array's length.
|
|
6721
|
+
*/
|
|
6722
|
+
rejected: Array<string>;
|
|
6723
|
+
/**
|
|
6724
|
+
* How many references were refused in total, before the list above was capped.
|
|
6725
|
+
*/
|
|
6726
|
+
rejected_count: number;
|
|
6727
|
+
type: 'ATTACHMENT_TYPE_NOT_ACCEPTED';
|
|
6728
|
+
};
|
|
6729
|
+
/**
|
|
6730
|
+
* Every extension the agent accepts as an attachment, grouped by what it can actually DO with
|
|
6731
|
+
* one. The grouping is the point: the tiers differ sharply, and a client that renders them as
|
|
6732
|
+
* one flat "supported files" list tells the user something false (PM-1855).
|
|
6733
|
+
*
|
|
6734
|
+
* - `view`: the model sees the content. view_asset decodes the still (converting HEIC/HEIF to
|
|
6735
|
+
* JPEG first) and re-encodes it as PNG/JPEG into the turn, so the model reasons about actual
|
|
6736
|
+
* pixels.
|
|
6737
|
+
* - `probe`: metadata only. probe_media reports duration, resolution, frame rate and codecs;
|
|
6738
|
+
* nothing in the model's input can carry a clip, so the CONTENT stays unreadable. Seeing a
|
|
6739
|
+
* video means cutting a frame out with process_media and viewing that.
|
|
6740
|
+
* - `reference`: the agent knows what the file is, with its kind and id, and wires its
|
|
6741
|
+
* filename into the load node that takes it: a 3D model into a Load3D node's model_file
|
|
6742
|
+
* widget, an .exr into a LoadImage node's image widget. No tool opens the file itself: the
|
|
6743
|
+
* cloud turn registers neither a shell nor a file-read tool, by design, as it is a shared
|
|
6744
|
+
* multi-tenant pod, and view_asset cannot decode an EXR.
|
|
6745
|
+
* - `read`: the agent reads the contents verbatim with read_asset — UTF-8 decoded, bounded
|
|
6746
|
+
* and truncation-marked. The tier describes CONTENT ACCESS only; whether the file can also
|
|
6747
|
+
* be wired into a graph is a separate axis, so a format gaining an upload-backed node input
|
|
6748
|
+
* later stays in this tier.
|
|
6749
|
+
* - `retain`: the file is attached and nothing more — neither readable nor wirable. Only
|
|
6750
|
+
* .avif, which the turn cannot decode as an image and is not text.
|
|
6751
|
+
*
|
|
6752
|
+
* The union of the five arrays is the accepted list. Anything absent is rejected.
|
|
6753
|
+
*
|
|
6754
|
+
*/
|
|
6755
|
+
export type AgentAttachmentPolicy = {
|
|
6756
|
+
probe: Array<AgentProbeableAttachmentExtension>;
|
|
6757
|
+
read: Array<AgentReadableAttachmentExtension>;
|
|
6758
|
+
reference: Array<AgentReferenceAttachmentExtension>;
|
|
6759
|
+
retain: Array<AgentRetainedAttachmentExtension>;
|
|
6760
|
+
view: Array<AgentViewableAttachmentExtension>;
|
|
6761
|
+
};
|
|
6762
|
+
export type AgentAttachmentError = ({
|
|
6763
|
+
type: 'ATTACHMENT_TYPE_NOT_ACCEPTED';
|
|
6764
|
+
} & AgentAttachmentRejected) | ({
|
|
6765
|
+
type: 'ATTACHMENT_BOUNDS_EXCEEDED';
|
|
6766
|
+
} & AgentAttachmentBoundsExceeded);
|
|
6767
|
+
export type AgentAttachmentBoundsExceeded = {
|
|
6768
|
+
error: string;
|
|
6769
|
+
limits: {
|
|
6770
|
+
max_item_length: number;
|
|
6771
|
+
max_items: number;
|
|
6772
|
+
};
|
|
6773
|
+
/**
|
|
6774
|
+
* A bounded example of the first overlong reference; empty for count-only violations.
|
|
6775
|
+
*/
|
|
6776
|
+
overlong_ref: string;
|
|
6777
|
+
received_count: number;
|
|
6778
|
+
type: 'ATTACHMENT_BOUNDS_EXCEEDED';
|
|
6779
|
+
};
|
|
5333
6780
|
/**
|
|
5334
6781
|
* 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
6782
|
*/
|
|
@@ -5820,7 +7267,7 @@ export type AgentGetIdentityErrors = {
|
|
|
5820
7267
|
*/
|
|
5821
7268
|
401: ErrorResponse;
|
|
5822
7269
|
/**
|
|
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.
|
|
7270
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
5824
7271
|
*/
|
|
5825
7272
|
403: ForbiddenError;
|
|
5826
7273
|
/**
|
|
@@ -5873,7 +7320,7 @@ export type AgentLlmAdmitErrors = {
|
|
|
5873
7320
|
*/
|
|
5874
7321
|
401: ErrorResponse;
|
|
5875
7322
|
/**
|
|
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.
|
|
7323
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
5877
7324
|
*/
|
|
5878
7325
|
403: ForbiddenError;
|
|
5879
7326
|
/**
|
|
@@ -5940,7 +7387,7 @@ export type AgentLlmMessagesErrors = {
|
|
|
5940
7387
|
*/
|
|
5941
7388
|
402: AgentAdmissionError;
|
|
5942
7389
|
/**
|
|
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.
|
|
7390
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
5944
7391
|
*/
|
|
5945
7392
|
403: ForbiddenError;
|
|
5946
7393
|
/**
|
|
@@ -5983,7 +7430,7 @@ export type AgentLlmTracesErrors = {
|
|
|
5983
7430
|
*/
|
|
5984
7431
|
401: ErrorResponse;
|
|
5985
7432
|
/**
|
|
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.
|
|
7433
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
5987
7434
|
*/
|
|
5988
7435
|
403: ForbiddenError;
|
|
5989
7436
|
/**
|
|
@@ -6035,7 +7482,7 @@ export type AgentGetRunModeErrors = {
|
|
|
6035
7482
|
*/
|
|
6036
7483
|
401: ErrorResponse;
|
|
6037
7484
|
/**
|
|
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.
|
|
7485
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
6039
7486
|
*/
|
|
6040
7487
|
403: ForbiddenError;
|
|
6041
7488
|
/**
|
|
@@ -6079,7 +7526,7 @@ export type AgentPutRunModeErrors = {
|
|
|
6079
7526
|
*/
|
|
6080
7527
|
401: ErrorResponse;
|
|
6081
7528
|
/**
|
|
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.
|
|
7529
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
6083
7530
|
*/
|
|
6084
7531
|
403: ForbiddenError;
|
|
6085
7532
|
/**
|
|
@@ -6127,7 +7574,7 @@ export type AgentListSkillsErrors = {
|
|
|
6127
7574
|
*/
|
|
6128
7575
|
401: ErrorResponse;
|
|
6129
7576
|
/**
|
|
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.
|
|
7577
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
6131
7578
|
*/
|
|
6132
7579
|
403: ForbiddenError;
|
|
6133
7580
|
/**
|
|
@@ -6171,7 +7618,7 @@ export type AgentPublishSkillErrors = {
|
|
|
6171
7618
|
*/
|
|
6172
7619
|
401: ErrorResponse;
|
|
6173
7620
|
/**
|
|
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.
|
|
7621
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
6175
7622
|
*/
|
|
6176
7623
|
403: ForbiddenError;
|
|
6177
7624
|
/**
|
|
@@ -6232,7 +7679,7 @@ export type AgentDeleteSkillErrors = {
|
|
|
6232
7679
|
*/
|
|
6233
7680
|
401: ErrorResponse;
|
|
6234
7681
|
/**
|
|
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.
|
|
7682
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
6236
7683
|
*/
|
|
6237
7684
|
403: ForbiddenError;
|
|
6238
7685
|
/**
|
|
@@ -6274,6 +7721,25 @@ export type AgentListThreadsData = {
|
|
|
6274
7721
|
*
|
|
6275
7722
|
*/
|
|
6276
7723
|
after?: string;
|
|
7724
|
+
/**
|
|
7725
|
+
* Return only the threads currently associated with this workflow.
|
|
7726
|
+
* The association is the thread's current target and may change on a
|
|
7727
|
+
* later turn. `workflow_id` is not unique across threads, so this can
|
|
7728
|
+
* still match several, and the page ordering is unchanged
|
|
7729
|
+
* (newest-created first).
|
|
7730
|
+
*
|
|
7731
|
+
* Use this rather than listing threads and matching `workflow_id`
|
|
7732
|
+
* client-side: an unfiltered list is one page of at most 100, so a
|
|
7733
|
+
* client-side match silently misses a workflow's thread once the
|
|
7734
|
+
* caller has more threads than the page holds. A workflow with no
|
|
7735
|
+
* threads returns an empty page, not an error.
|
|
7736
|
+
*
|
|
7737
|
+
* Narrowing applies within the caller's own workspace and user scope
|
|
7738
|
+
* and cannot widen it. `total` in the response counts the narrowed
|
|
7739
|
+
* set.
|
|
7740
|
+
*
|
|
7741
|
+
*/
|
|
7742
|
+
workflow_id?: string;
|
|
6277
7743
|
};
|
|
6278
7744
|
url: '/api/agent/threads';
|
|
6279
7745
|
};
|
|
@@ -6287,7 +7753,7 @@ export type AgentListThreadsErrors = {
|
|
|
6287
7753
|
*/
|
|
6288
7754
|
401: ErrorResponse;
|
|
6289
7755
|
/**
|
|
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.
|
|
7756
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
6291
7757
|
*/
|
|
6292
7758
|
403: ForbiddenError;
|
|
6293
7759
|
/**
|
|
@@ -6323,7 +7789,7 @@ export type AgentCreateThreadErrors = {
|
|
|
6323
7789
|
*/
|
|
6324
7790
|
401: ErrorResponse;
|
|
6325
7791
|
/**
|
|
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.
|
|
7792
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
6327
7793
|
*/
|
|
6328
7794
|
403: ForbiddenError;
|
|
6329
7795
|
/**
|
|
@@ -6428,7 +7894,7 @@ export type AgentGetMessagesErrors = {
|
|
|
6428
7894
|
*/
|
|
6429
7895
|
401: ErrorResponse;
|
|
6430
7896
|
/**
|
|
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.
|
|
7897
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
6432
7898
|
*/
|
|
6433
7899
|
403: ForbiddenError;
|
|
6434
7900
|
/**
|
|
@@ -6480,6 +7946,10 @@ export type AgentPostMessageErrors = {
|
|
|
6480
7946
|
* Forbidden (workflow or thread not owned by the caller). An ingest refusal, such as the web session's, is ErrorResponse; the agent service's is AgentError.
|
|
6481
7947
|
*/
|
|
6482
7948
|
403: ErrorResponse | AgentError;
|
|
7949
|
+
/**
|
|
7950
|
+
* One or more attachments name a file type the agent does not accept. The body names the offending references and carries the full accepted policy, so the client can explain the refusal without hardcoding the list.
|
|
7951
|
+
*/
|
|
7952
|
+
422: AgentAttachmentError;
|
|
6483
7953
|
/**
|
|
6484
7954
|
* Internal server error (ingest-raised failures use the standard ErrorResponse shape instead)
|
|
6485
7955
|
*/
|
|
@@ -6678,7 +8148,7 @@ export type ListAssetsErrors = {
|
|
|
6678
8148
|
*/
|
|
6679
8149
|
401: ErrorResponse;
|
|
6680
8150
|
/**
|
|
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.
|
|
8151
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
6682
8152
|
*/
|
|
6683
8153
|
403: ForbiddenError;
|
|
6684
8154
|
/**
|
|
@@ -6705,7 +8175,7 @@ export type CreateAssetData = {
|
|
|
6705
8175
|
*/
|
|
6706
8176
|
hash?: string;
|
|
6707
8177
|
/**
|
|
6708
|
-
* Optional asset ID
|
|
8178
|
+
* Optional caller-chosen asset ID. If the upload's content matches an asset you already own in this workspace, that asset is returned and its `id` may differ from the one requested. Otherwise, an ID already taken by any asset is refused with 400 `ASSET_ID_UNAVAILABLE`.
|
|
6709
8179
|
*/
|
|
6710
8180
|
id?: string;
|
|
6711
8181
|
/**
|
|
@@ -6717,7 +8187,7 @@ export type CreateAssetData = {
|
|
|
6717
8187
|
*/
|
|
6718
8188
|
name?: string;
|
|
6719
8189
|
/**
|
|
6720
|
-
* Optional preview asset ID. If not provided, images
|
|
8190
|
+
* Optional preview asset ID. Must be your own asset in this workspace; anything else (including a catalog asset, another user's published asset, or an ID that does not exist) is refused with 400 `INVALID_PREVIEW_ID`. If not provided, images use their own ID as preview, except OpenEXR and Radiance HDR, which get no preview; a preview_id equal to the asset's own id is ignored for those.
|
|
6721
8191
|
*/
|
|
6722
8192
|
preview_id?: string;
|
|
6723
8193
|
/**
|
|
@@ -6735,7 +8205,7 @@ export type CreateAssetData = {
|
|
|
6735
8205
|
};
|
|
6736
8206
|
export type CreateAssetErrors = {
|
|
6737
8207
|
/**
|
|
6738
|
-
* Invalid request (bad file, invalid content type, etc.)
|
|
8208
|
+
* Invalid request (bad file, invalid content type, etc.), `INVALID_PREVIEW_ID` when `preview_id` is not your own asset in this workspace, or `ASSET_ID_UNAVAILABLE` when a caller-chosen `id` is already taken
|
|
6739
8209
|
*/
|
|
6740
8210
|
400: ErrorResponse;
|
|
6741
8211
|
/**
|
|
@@ -6743,7 +8213,7 @@ export type CreateAssetErrors = {
|
|
|
6743
8213
|
*/
|
|
6744
8214
|
401: ErrorResponse;
|
|
6745
8215
|
/**
|
|
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.
|
|
8216
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
6747
8217
|
*/
|
|
6748
8218
|
403: ForbiddenError;
|
|
6749
8219
|
/**
|
|
@@ -6798,7 +8268,7 @@ export type DeleteAssetErrors = {
|
|
|
6798
8268
|
*/
|
|
6799
8269
|
401: ErrorResponse;
|
|
6800
8270
|
/**
|
|
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.
|
|
8271
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
6802
8272
|
*/
|
|
6803
8273
|
403: ForbiddenError;
|
|
6804
8274
|
/**
|
|
@@ -6806,7 +8276,7 @@ export type DeleteAssetErrors = {
|
|
|
6806
8276
|
*/
|
|
6807
8277
|
404: ErrorResponse;
|
|
6808
8278
|
/**
|
|
6809
|
-
* Asset cannot be deleted because it is referenced by another resource, e.g. a workflow version (error code: ASSET_IN_USE)
|
|
8279
|
+
* Asset cannot be deleted because it is referenced by another resource, e.g. a workflow version, or because content moderation still holds it (error code: ASSET_IN_USE for both; a moderation hold is deliberately not distinguishable)
|
|
6810
8280
|
*/
|
|
6811
8281
|
409: ErrorResponse;
|
|
6812
8282
|
/**
|
|
@@ -6843,7 +8313,7 @@ export type GetAssetByIdErrors = {
|
|
|
6843
8313
|
*/
|
|
6844
8314
|
401: ErrorResponse;
|
|
6845
8315
|
/**
|
|
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.
|
|
8316
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
6847
8317
|
*/
|
|
6848
8318
|
403: ForbiddenError;
|
|
6849
8319
|
/**
|
|
@@ -6874,7 +8344,7 @@ export type UpdateAssetData = {
|
|
|
6874
8344
|
*/
|
|
6875
8345
|
name?: string;
|
|
6876
8346
|
/**
|
|
6877
|
-
* Updated preview asset ID
|
|
8347
|
+
* Updated preview asset ID. Must be your own asset in this workspace.
|
|
6878
8348
|
*/
|
|
6879
8349
|
preview_id?: string;
|
|
6880
8350
|
/**
|
|
@@ -6905,13 +8375,14 @@ export type UpdateAssetErrors = {
|
|
|
6905
8375
|
*/
|
|
6906
8376
|
401: ErrorResponse;
|
|
6907
8377
|
/**
|
|
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.
|
|
8378
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
6909
8379
|
*/
|
|
6910
8380
|
403: ForbiddenError;
|
|
6911
8381
|
/**
|
|
6912
8382
|
* Asset not found — returned both when the asset being updated does
|
|
6913
|
-
* not exist and when `preview_id`
|
|
6914
|
-
*
|
|
8383
|
+
* not exist and when `preview_id` is not your own asset in this
|
|
8384
|
+
* workspace (a catalog asset or another user's published asset
|
|
8385
|
+
* does not qualify).
|
|
6915
8386
|
*
|
|
6916
8387
|
*/
|
|
6917
8388
|
404: ErrorResponse;
|
|
@@ -6960,7 +8431,7 @@ export type GetAssetContentErrors = {
|
|
|
6960
8431
|
*/
|
|
6961
8432
|
401: ErrorResponse;
|
|
6962
8433
|
/**
|
|
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.
|
|
8434
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
6964
8435
|
*/
|
|
6965
8436
|
403: ForbiddenError;
|
|
6966
8437
|
/**
|
|
@@ -7006,7 +8477,7 @@ export type RemoveAssetTagsErrors = {
|
|
|
7006
8477
|
*/
|
|
7007
8478
|
401: ErrorResponse;
|
|
7008
8479
|
/**
|
|
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.
|
|
8480
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
7010
8481
|
*/
|
|
7011
8482
|
403: ForbiddenError;
|
|
7012
8483
|
/**
|
|
@@ -7056,7 +8527,7 @@ export type AddAssetTagsErrors = {
|
|
|
7056
8527
|
*/
|
|
7057
8528
|
401: ErrorResponse;
|
|
7058
8529
|
/**
|
|
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.
|
|
8530
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
7060
8531
|
*/
|
|
7061
8532
|
403: ForbiddenError;
|
|
7062
8533
|
/**
|
|
@@ -7083,7 +8554,7 @@ export type AddAssetTagsResponse = AddAssetTagsResponses[keyof AddAssetTagsRespo
|
|
|
7083
8554
|
export type CreateAssetDownloadData = {
|
|
7084
8555
|
body: {
|
|
7085
8556
|
/**
|
|
7086
|
-
* Optional preview asset ID to associate with the downloaded asset
|
|
8557
|
+
* Optional preview asset ID to associate with the downloaded asset. Must be your own asset in this workspace; otherwise the request is refused with 400 `INVALID_PREVIEW_ID`.
|
|
7087
8558
|
*/
|
|
7088
8559
|
preview_id?: string;
|
|
7089
8560
|
/**
|
|
@@ -7107,7 +8578,7 @@ export type CreateAssetDownloadData = {
|
|
|
7107
8578
|
};
|
|
7108
8579
|
export type CreateAssetDownloadErrors = {
|
|
7109
8580
|
/**
|
|
7110
|
-
* Invalid URL or unsupported source
|
|
8581
|
+
* Invalid URL or unsupported source, or `INVALID_PREVIEW_ID` when `preview_id` is not your own asset in this workspace
|
|
7111
8582
|
*/
|
|
7112
8583
|
400: ErrorResponse;
|
|
7113
8584
|
/**
|
|
@@ -7115,7 +8586,7 @@ export type CreateAssetDownloadErrors = {
|
|
|
7115
8586
|
*/
|
|
7116
8587
|
401: ErrorResponse;
|
|
7117
8588
|
/**
|
|
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.
|
|
8589
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
7119
8590
|
*/
|
|
7120
8591
|
403: ForbiddenError;
|
|
7121
8592
|
/**
|
|
@@ -7186,7 +8657,7 @@ export type CreateAssetExportErrors = {
|
|
|
7186
8657
|
*/
|
|
7187
8658
|
401: ErrorResponse;
|
|
7188
8659
|
/**
|
|
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.
|
|
8660
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
7190
8661
|
*/
|
|
7191
8662
|
403: ForbiddenError;
|
|
7192
8663
|
/**
|
|
@@ -7223,7 +8694,7 @@ export type DownloadExportErrors = {
|
|
|
7223
8694
|
*/
|
|
7224
8695
|
401: ErrorResponse;
|
|
7225
8696
|
/**
|
|
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.
|
|
8697
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
7227
8698
|
*/
|
|
7228
8699
|
403: ForbiddenError;
|
|
7229
8700
|
/**
|
|
@@ -7282,7 +8753,7 @@ export type CreateAssetFromHashErrors = {
|
|
|
7282
8753
|
*/
|
|
7283
8754
|
401: ErrorResponse;
|
|
7284
8755
|
/**
|
|
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.
|
|
8756
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
7286
8757
|
*/
|
|
7287
8758
|
403: ForbiddenError;
|
|
7288
8759
|
/**
|
|
@@ -7328,7 +8799,7 @@ export type PostAssetsFromWorkflowErrors = {
|
|
|
7328
8799
|
*/
|
|
7329
8800
|
401: ErrorResponse;
|
|
7330
8801
|
/**
|
|
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.
|
|
8802
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
7332
8803
|
*/
|
|
7333
8804
|
403: ForbiddenError;
|
|
7334
8805
|
/**
|
|
@@ -7404,7 +8875,7 @@ export type ImportPublishedAssetsErrors = {
|
|
|
7404
8875
|
*/
|
|
7405
8876
|
401: ErrorResponse;
|
|
7406
8877
|
/**
|
|
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.
|
|
8878
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
7408
8879
|
*/
|
|
7409
8880
|
403: ForbiddenError;
|
|
7410
8881
|
/**
|
|
@@ -7460,7 +8931,7 @@ export type GetRemoteAssetMetadataErrors = {
|
|
|
7460
8931
|
*/
|
|
7461
8932
|
401: ErrorResponse;
|
|
7462
8933
|
/**
|
|
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.
|
|
8934
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
7464
8935
|
*/
|
|
7465
8936
|
403: ForbiddenError;
|
|
7466
8937
|
/**
|
|
@@ -7605,7 +9076,7 @@ export type GetAssetTagHistogramErrors = {
|
|
|
7605
9076
|
*/
|
|
7606
9077
|
401: ErrorResponse;
|
|
7607
9078
|
/**
|
|
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.
|
|
9079
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
7609
9080
|
*/
|
|
7610
9081
|
403: ForbiddenError;
|
|
7611
9082
|
/**
|
|
@@ -7852,7 +9323,7 @@ export type RevokeAllSessionsErrors = {
|
|
|
7852
9323
|
*/
|
|
7853
9324
|
401: ErrorResponse;
|
|
7854
9325
|
/**
|
|
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.
|
|
9326
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
7856
9327
|
*/
|
|
7857
9328
|
403: ForbiddenError;
|
|
7858
9329
|
/**
|
|
@@ -7967,7 +9438,7 @@ export type ExchangeTokenErrors = {
|
|
|
7967
9438
|
*/
|
|
7968
9439
|
401: ErrorResponse;
|
|
7969
9440
|
/**
|
|
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.
|
|
9441
|
+
* 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. `account_outside_organization`: the target workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization.
|
|
7971
9442
|
*/
|
|
7972
9443
|
403: ErrorResponse;
|
|
7973
9444
|
/**
|
|
@@ -7983,7 +9454,7 @@ export type ExchangeTokenErrors = {
|
|
|
7983
9454
|
*/
|
|
7984
9455
|
500: ErrorResponse;
|
|
7985
9456
|
/**
|
|
7986
|
-
* The comfy-api registry could not verify an API key. `code` is `SERVICE_UNAVAILABLE`; retry, since the key may be good.
|
|
9457
|
+
* The comfy-api registry could not verify an API key. `code` is `SERVICE_UNAVAILABLE`; retry, since the key may be good. `partner_node_token_disabled`: a partner-node mint while ops have switched those off (`PartnerNodeTokenMintDisabled`); mint without `resource` instead.
|
|
7987
9458
|
*/
|
|
7988
9459
|
503: ErrorResponse;
|
|
7989
9460
|
};
|
|
@@ -7995,6 +9466,118 @@ export type ExchangeTokenResponses = {
|
|
|
7995
9466
|
200: ExchangeTokenResponse;
|
|
7996
9467
|
};
|
|
7997
9468
|
export type ExchangeTokenResponse2 = ExchangeTokenResponses[keyof ExchangeTokenResponses];
|
|
9469
|
+
export type RevokePartnerNodeSessionsData = {
|
|
9470
|
+
body?: never;
|
|
9471
|
+
path?: never;
|
|
9472
|
+
query?: never;
|
|
9473
|
+
url: '/api/auth/token/revoke';
|
|
9474
|
+
};
|
|
9475
|
+
export type RevokePartnerNodeSessionsErrors = {
|
|
9476
|
+
/**
|
|
9477
|
+
* No credential, an invalid one, or a partner-node token whose session is unknown.
|
|
9478
|
+
*/
|
|
9479
|
+
401: ErrorResponse;
|
|
9480
|
+
/**
|
|
9481
|
+
* A credential this route does not take (`auth_type_not_allowed`: an API key or a workspace token), a web session request that fails the session guard (`csrf_invalid`, `origin_not_allowed`), or `partner_node_requires_sign_in` for a credential that names no sign-in, such as an OAuth access token for another audience.
|
|
9482
|
+
*/
|
|
9483
|
+
403: ErrorResponse;
|
|
9484
|
+
/**
|
|
9485
|
+
* Internal server error
|
|
9486
|
+
*/
|
|
9487
|
+
500: ErrorResponse;
|
|
9488
|
+
};
|
|
9489
|
+
export type RevokePartnerNodeSessionsError = RevokePartnerNodeSessionsErrors[keyof RevokePartnerNodeSessionsErrors];
|
|
9490
|
+
export type RevokePartnerNodeSessionsResponses = {
|
|
9491
|
+
/**
|
|
9492
|
+
* The sessions are revoked
|
|
9493
|
+
*/
|
|
9494
|
+
204: void;
|
|
9495
|
+
};
|
|
9496
|
+
export type RevokePartnerNodeSessionsResponse = RevokePartnerNodeSessionsResponses[keyof RevokePartnerNodeSessionsResponses];
|
|
9497
|
+
export type GetBillingAutoReloadData = {
|
|
9498
|
+
body?: never;
|
|
9499
|
+
path?: never;
|
|
9500
|
+
query?: never;
|
|
9501
|
+
url: '/api/billing/auto-reload';
|
|
9502
|
+
};
|
|
9503
|
+
export type GetBillingAutoReloadErrors = {
|
|
9504
|
+
/**
|
|
9505
|
+
* `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.
|
|
9506
|
+
*/
|
|
9507
|
+
400: ErrorResponse;
|
|
9508
|
+
/**
|
|
9509
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
9510
|
+
*/
|
|
9511
|
+
401: ErrorResponse;
|
|
9512
|
+
/**
|
|
9513
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9514
|
+
*/
|
|
9515
|
+
403: ForbiddenError;
|
|
9516
|
+
/**
|
|
9517
|
+
* `SUBSCRIPTION_CHANGE_IN_PROGRESS`: a subscription change holds the workspace; retry after it completes.
|
|
9518
|
+
*/
|
|
9519
|
+
409: ErrorResponse;
|
|
9520
|
+
/**
|
|
9521
|
+
* Internal server error
|
|
9522
|
+
*/
|
|
9523
|
+
500: ErrorResponse;
|
|
9524
|
+
};
|
|
9525
|
+
export type GetBillingAutoReloadError = GetBillingAutoReloadErrors[keyof GetBillingAutoReloadErrors];
|
|
9526
|
+
export type GetBillingAutoReloadResponses = {
|
|
9527
|
+
/**
|
|
9528
|
+
* Success
|
|
9529
|
+
*/
|
|
9530
|
+
200: AutoReloadSettings;
|
|
9531
|
+
};
|
|
9532
|
+
export type GetBillingAutoReloadResponse = GetBillingAutoReloadResponses[keyof GetBillingAutoReloadResponses];
|
|
9533
|
+
export type PutBillingAutoReloadData = {
|
|
9534
|
+
body: AutoReloadSettingsRequest;
|
|
9535
|
+
path?: never;
|
|
9536
|
+
query?: never;
|
|
9537
|
+
url: '/api/billing/auto-reload';
|
|
9538
|
+
};
|
|
9539
|
+
export type PutBillingAutoReloadErrors = {
|
|
9540
|
+
/**
|
|
9541
|
+
* `INVALID_REQUEST` (a field is absent), `INVALID_AUTO_TOP_UP` (a
|
|
9542
|
+
* value the rules on AutoReloadSettingsRequest refuse), or
|
|
9543
|
+
* `workspace_id_invalid` (see SessionWorkspaceIDInvalid).
|
|
9544
|
+
*
|
|
9545
|
+
*/
|
|
9546
|
+
400: ErrorResponse;
|
|
9547
|
+
/**
|
|
9548
|
+
* No valid credential, or an `Authorization` header, `X-API-Key` header or `?token=` next to the session cookie that could not be read, which is refused rather than answered with the session. `code` is `UNAUTHORIZED`.
|
|
9549
|
+
*/
|
|
9550
|
+
401: ErrorResponse;
|
|
9551
|
+
/**
|
|
9552
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
9553
|
+
*/
|
|
9554
|
+
403: ForbiddenError;
|
|
9555
|
+
/**
|
|
9556
|
+
* `SUBSCRIPTION_CHANGE_IN_PROGRESS`: a subscription change holds the workspace; retry after it completes.
|
|
9557
|
+
*/
|
|
9558
|
+
409: ErrorResponse;
|
|
9559
|
+
/**
|
|
9560
|
+
* `AUTO_TOP_UP_NOT_ELIGIBLE`: enabling needs provisioned billing, a
|
|
9561
|
+
* default payment method and an eligible billing state.
|
|
9562
|
+
*
|
|
9563
|
+
*/
|
|
9564
|
+
422: ErrorResponse;
|
|
9565
|
+
/**
|
|
9566
|
+
* The save may have committed, so re-read with GET after any 5xx.
|
|
9567
|
+
* `AUTO_TOP_UP_DISABLED_ACCOUNTING_UNAVAILABLE` means the disable
|
|
9568
|
+
* did commit but its accounting could not be read.
|
|
9569
|
+
*
|
|
9570
|
+
*/
|
|
9571
|
+
500: ErrorResponse;
|
|
9572
|
+
};
|
|
9573
|
+
export type PutBillingAutoReloadError = PutBillingAutoReloadErrors[keyof PutBillingAutoReloadErrors];
|
|
9574
|
+
export type PutBillingAutoReloadResponses = {
|
|
9575
|
+
/**
|
|
9576
|
+
* The saved settings and current accounting
|
|
9577
|
+
*/
|
|
9578
|
+
200: AutoReloadSettings;
|
|
9579
|
+
};
|
|
9580
|
+
export type PutBillingAutoReloadResponse = PutBillingAutoReloadResponses[keyof PutBillingAutoReloadResponses];
|
|
7998
9581
|
export type GetBillingBalanceData = {
|
|
7999
9582
|
body?: never;
|
|
8000
9583
|
path?: never;
|
|
@@ -8011,7 +9594,7 @@ export type GetBillingBalanceErrors = {
|
|
|
8011
9594
|
*/
|
|
8012
9595
|
401: ErrorResponse;
|
|
8013
9596
|
/**
|
|
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.
|
|
9597
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
8015
9598
|
*/
|
|
8016
9599
|
403: ForbiddenError;
|
|
8017
9600
|
/**
|
|
@@ -8083,7 +9666,7 @@ export type GetChurnkeyAuthErrors = {
|
|
|
8083
9666
|
*/
|
|
8084
9667
|
401: ErrorResponse;
|
|
8085
9668
|
/**
|
|
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.
|
|
9669
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
8087
9670
|
*/
|
|
8088
9671
|
403: ForbiddenError;
|
|
8089
9672
|
/**
|
|
@@ -8155,7 +9738,7 @@ export type UpdateBillingCompanyDetailsErrors = {
|
|
|
8155
9738
|
*/
|
|
8156
9739
|
401: ErrorResponse;
|
|
8157
9740
|
/**
|
|
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.
|
|
9741
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8159
9742
|
*/
|
|
8160
9743
|
403: ForbiddenError;
|
|
8161
9744
|
/**
|
|
@@ -8191,6 +9774,10 @@ export type GetBillingEventsData = {
|
|
|
8191
9774
|
* Current workspace member to filter by when scope is user
|
|
8192
9775
|
*/
|
|
8193
9776
|
user_id?: string;
|
|
9777
|
+
/**
|
|
9778
|
+
* Keep only charges made through this source: `session`; one deployment's id or one API key's display prefix (`comfyui-` plus eight hex characters), as the usage `source` grouping returns them; or every source of a kind, `deployment` for every deployment and `api_key` for every API key. Combines with `scope`, so a member sees only their own charges through it. Any other value is a 400 `INVALID_FILTER`.
|
|
9779
|
+
*/
|
|
9780
|
+
spend_source?: string;
|
|
8194
9781
|
/**
|
|
8195
9782
|
* Event type to filter
|
|
8196
9783
|
*/
|
|
@@ -8253,7 +9840,7 @@ export type GetBillingOpStatusErrors = {
|
|
|
8253
9840
|
*/
|
|
8254
9841
|
401: ErrorResponse;
|
|
8255
9842
|
/**
|
|
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.
|
|
9843
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
8257
9844
|
*/
|
|
8258
9845
|
403: ForbiddenError;
|
|
8259
9846
|
/**
|
|
@@ -8294,7 +9881,7 @@ export type CancelBillingOpErrors = {
|
|
|
8294
9881
|
*/
|
|
8295
9882
|
401: ErrorResponse;
|
|
8296
9883
|
/**
|
|
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.
|
|
9884
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8298
9885
|
*/
|
|
8299
9886
|
403: ForbiddenError;
|
|
8300
9887
|
/**
|
|
@@ -8362,7 +9949,7 @@ export type GetPaymentPortalData = {
|
|
|
8362
9949
|
};
|
|
8363
9950
|
export type GetPaymentPortalErrors = {
|
|
8364
9951
|
/**
|
|
8365
|
-
* Bad request (e.g., missing return_url)
|
|
9952
|
+
* Bad request (e.g., missing return_url or unsupported flow_type)
|
|
8366
9953
|
*/
|
|
8367
9954
|
400: ErrorResponse;
|
|
8368
9955
|
/**
|
|
@@ -8370,7 +9957,7 @@ export type GetPaymentPortalErrors = {
|
|
|
8370
9957
|
*/
|
|
8371
9958
|
401: ErrorResponse;
|
|
8372
9959
|
/**
|
|
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.
|
|
9960
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8374
9961
|
*/
|
|
8375
9962
|
403: ForbiddenError;
|
|
8376
9963
|
/**
|
|
@@ -8402,9 +9989,13 @@ export type GetBillingPlansErrors = {
|
|
|
8402
9989
|
*/
|
|
8403
9990
|
401: ErrorResponse;
|
|
8404
9991
|
/**
|
|
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.
|
|
9992
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
8406
9993
|
*/
|
|
8407
9994
|
403: ForbiddenError;
|
|
9995
|
+
/**
|
|
9996
|
+
* Workspace not found
|
|
9997
|
+
*/
|
|
9998
|
+
404: ErrorResponse;
|
|
8408
9999
|
/**
|
|
8409
10000
|
* Internal server error
|
|
8410
10001
|
*/
|
|
@@ -8434,7 +10025,7 @@ export type PreviewSubscribeErrors = {
|
|
|
8434
10025
|
*/
|
|
8435
10026
|
401: ErrorResponse;
|
|
8436
10027
|
/**
|
|
8437
|
-
*
|
|
10028
|
+
* `FORBIDDEN`: workspace owner role required. `NOT_ORIGINAL_OWNER`: the caller is an owner but not the workspace's creator, and only the creator may change the plan; returned only when the rollout mode is `creator`.
|
|
8438
10029
|
*/
|
|
8439
10030
|
403: ErrorResponse;
|
|
8440
10031
|
/**
|
|
@@ -8466,7 +10057,7 @@ export type AcceptRetentionOfferErrors = {
|
|
|
8466
10057
|
*/
|
|
8467
10058
|
401: ErrorResponse;
|
|
8468
10059
|
/**
|
|
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.
|
|
10060
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8470
10061
|
*/
|
|
8471
10062
|
403: ForbiddenError;
|
|
8472
10063
|
/**
|
|
@@ -8506,7 +10097,7 @@ export type RecordRetentionFlowEventErrors = {
|
|
|
8506
10097
|
*/
|
|
8507
10098
|
401: ErrorResponse;
|
|
8508
10099
|
/**
|
|
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.
|
|
10100
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8510
10101
|
*/
|
|
8511
10102
|
403: ForbiddenError;
|
|
8512
10103
|
/**
|
|
@@ -8546,11 +10137,11 @@ export type PrepareRetentionFlowErrors = {
|
|
|
8546
10137
|
*/
|
|
8547
10138
|
401: ErrorResponse;
|
|
8548
10139
|
/**
|
|
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.
|
|
10140
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8550
10141
|
*/
|
|
8551
10142
|
403: ForbiddenError;
|
|
8552
10143
|
/**
|
|
8553
|
-
* Subscription does not support this flow
|
|
10144
|
+
* Subscription does not support this flow, or cancellation offers are switched off
|
|
8554
10145
|
*/
|
|
8555
10146
|
422: ErrorResponse;
|
|
8556
10147
|
/**
|
|
@@ -8586,7 +10177,7 @@ export type GetBillingStatusErrors = {
|
|
|
8586
10177
|
*/
|
|
8587
10178
|
401: ErrorResponse;
|
|
8588
10179
|
/**
|
|
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.
|
|
10180
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
8590
10181
|
*/
|
|
8591
10182
|
403: ForbiddenError;
|
|
8592
10183
|
/**
|
|
@@ -8622,7 +10213,7 @@ export type SubscribeErrors = {
|
|
|
8622
10213
|
*/
|
|
8623
10214
|
401: ErrorResponse;
|
|
8624
10215
|
/**
|
|
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.
|
|
10216
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8626
10217
|
*/
|
|
8627
10218
|
403: ForbiddenError;
|
|
8628
10219
|
/**
|
|
@@ -8654,7 +10245,7 @@ export type CancelSubscriptionErrors = {
|
|
|
8654
10245
|
*/
|
|
8655
10246
|
401: ErrorResponse;
|
|
8656
10247
|
/**
|
|
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.
|
|
10248
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8658
10249
|
*/
|
|
8659
10250
|
403: ForbiddenError;
|
|
8660
10251
|
/**
|
|
@@ -8690,7 +10281,7 @@ export type ResubscribeErrors = {
|
|
|
8690
10281
|
*/
|
|
8691
10282
|
401: ErrorResponse;
|
|
8692
10283
|
/**
|
|
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.
|
|
10284
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8694
10285
|
*/
|
|
8695
10286
|
403: ForbiddenError;
|
|
8696
10287
|
/**
|
|
@@ -8725,7 +10316,7 @@ export type RevertScheduledChangeErrors = {
|
|
|
8725
10316
|
*/
|
|
8726
10317
|
401: ErrorResponse;
|
|
8727
10318
|
/**
|
|
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.
|
|
10319
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8729
10320
|
*/
|
|
8730
10321
|
403: ForbiddenError;
|
|
8731
10322
|
/**
|
|
@@ -8757,7 +10348,7 @@ export type CreateTopupErrors = {
|
|
|
8757
10348
|
*/
|
|
8758
10349
|
401: ErrorResponse;
|
|
8759
10350
|
/**
|
|
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.
|
|
10351
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
8761
10352
|
*/
|
|
8762
10353
|
403: ForbiddenError;
|
|
8763
10354
|
/**
|
|
@@ -8800,10 +10391,18 @@ export type CreateTopupCheckoutErrors = {
|
|
|
8800
10391
|
* Not found (feature flag disabled for this caller)
|
|
8801
10392
|
*/
|
|
8802
10393
|
404: ErrorResponse;
|
|
10394
|
+
/**
|
|
10395
|
+
* Checkout cannot proceed. `TOPUP_CHECKOUT_BUSY` means retry shortly; `TOPUP_CHECKOUT_NOT_PAYABLE` requires a new purchase key.
|
|
10396
|
+
*/
|
|
10397
|
+
409: ErrorResponse;
|
|
8803
10398
|
/**
|
|
8804
10399
|
* Internal server error
|
|
8805
10400
|
*/
|
|
8806
10401
|
500: ErrorResponse;
|
|
10402
|
+
/**
|
|
10403
|
+
* Temporary checkout or cleanup failure. `TOPUP_CHECKOUT_UNAVAILABLE`; retry the same purchase key, when supplied.
|
|
10404
|
+
*/
|
|
10405
|
+
503: ErrorResponse;
|
|
8807
10406
|
};
|
|
8808
10407
|
export type CreateTopupCheckoutError = CreateTopupCheckoutErrors[keyof CreateTopupCheckoutErrors];
|
|
8809
10408
|
export type CreateTopupCheckoutResponses = {
|
|
@@ -8813,63 +10412,188 @@ export type CreateTopupCheckoutResponses = {
|
|
|
8813
10412
|
200: CreateTopupCheckoutResponse;
|
|
8814
10413
|
};
|
|
8815
10414
|
export type CreateTopupCheckoutResponse2 = CreateTopupCheckoutResponses[keyof CreateTopupCheckoutResponses];
|
|
8816
|
-
export type
|
|
8817
|
-
body
|
|
10415
|
+
export type ListTopupCheckoutsData = {
|
|
10416
|
+
body?: never;
|
|
8818
10417
|
path?: never;
|
|
8819
|
-
query?:
|
|
8820
|
-
|
|
10418
|
+
query?: {
|
|
10419
|
+
cursor?: string;
|
|
10420
|
+
};
|
|
10421
|
+
url: '/api/billing/topup/checkouts';
|
|
8821
10422
|
};
|
|
8822
|
-
export type
|
|
10423
|
+
export type ListTopupCheckoutsErrors = {
|
|
8823
10424
|
/**
|
|
8824
|
-
*
|
|
8825
|
-
* `LEGACY_STRIPE_CHECKOUT_REQUIRED` (use Stripe Checkout),
|
|
8826
|
-
* `BILLING_PLAN_ENDED` (sales-managed plan has ended), or
|
|
8827
|
-
* `BILLING_DISABLED`.
|
|
8828
|
-
*
|
|
10425
|
+
* Invalid cursor or request
|
|
8829
10426
|
*/
|
|
8830
10427
|
400: ErrorResponse;
|
|
8831
10428
|
/**
|
|
8832
|
-
*
|
|
10429
|
+
* Authentication required
|
|
8833
10430
|
*/
|
|
8834
10431
|
401: ErrorResponse;
|
|
8835
10432
|
/**
|
|
8836
|
-
*
|
|
10433
|
+
* Workspace billing owner required
|
|
8837
10434
|
*/
|
|
8838
|
-
403:
|
|
10435
|
+
403: ErrorResponse;
|
|
8839
10436
|
/**
|
|
8840
|
-
*
|
|
10437
|
+
* Checkout not in the authorized workspace or environment
|
|
10438
|
+
*/
|
|
10439
|
+
404: ErrorResponse;
|
|
10440
|
+
/**
|
|
10441
|
+
* Could not read checkout state
|
|
8841
10442
|
*/
|
|
8842
10443
|
500: ErrorResponse;
|
|
10444
|
+
/**
|
|
10445
|
+
* Stripe state could not be confirmed
|
|
10446
|
+
*/
|
|
10447
|
+
502: ErrorResponse;
|
|
10448
|
+
/**
|
|
10449
|
+
* Billing unavailable
|
|
10450
|
+
*/
|
|
10451
|
+
503: ErrorResponse;
|
|
8843
10452
|
};
|
|
8844
|
-
export type
|
|
8845
|
-
export type
|
|
10453
|
+
export type ListTopupCheckoutsError = ListTopupCheckoutsErrors[keyof ListTopupCheckoutsErrors];
|
|
10454
|
+
export type ListTopupCheckoutsResponses = {
|
|
8846
10455
|
/**
|
|
8847
|
-
*
|
|
10456
|
+
* Durable discovery summaries; Cache-Control no-store.
|
|
8848
10457
|
*/
|
|
8849
|
-
200:
|
|
10458
|
+
200: HostedTopupCheckoutList;
|
|
8850
10459
|
};
|
|
8851
|
-
export type
|
|
8852
|
-
export type
|
|
10460
|
+
export type ListTopupCheckoutsResponse = ListTopupCheckoutsResponses[keyof ListTopupCheckoutsResponses];
|
|
10461
|
+
export type GetTopupCheckoutData = {
|
|
8853
10462
|
body?: never;
|
|
8854
|
-
path
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
10463
|
+
path: {
|
|
10464
|
+
id: string;
|
|
10465
|
+
};
|
|
10466
|
+
query?: never;
|
|
10467
|
+
url: '/api/billing/topup/checkouts/{id}';
|
|
10468
|
+
};
|
|
10469
|
+
export type GetTopupCheckoutErrors = {
|
|
10470
|
+
/**
|
|
10471
|
+
* Invalid cursor or request
|
|
10472
|
+
*/
|
|
10473
|
+
400: ErrorResponse;
|
|
10474
|
+
/**
|
|
10475
|
+
* Authentication required
|
|
10476
|
+
*/
|
|
10477
|
+
401: ErrorResponse;
|
|
10478
|
+
/**
|
|
10479
|
+
* Workspace billing owner required
|
|
10480
|
+
*/
|
|
10481
|
+
403: ErrorResponse;
|
|
10482
|
+
/**
|
|
10483
|
+
* Checkout not in the authorized workspace or environment
|
|
10484
|
+
*/
|
|
10485
|
+
404: ErrorResponse;
|
|
10486
|
+
/**
|
|
10487
|
+
* Could not read checkout state
|
|
10488
|
+
*/
|
|
10489
|
+
500: ErrorResponse;
|
|
10490
|
+
/**
|
|
10491
|
+
* Stripe state could not be confirmed
|
|
10492
|
+
*/
|
|
10493
|
+
502: ErrorResponse;
|
|
10494
|
+
/**
|
|
10495
|
+
* Billing unavailable
|
|
10496
|
+
*/
|
|
10497
|
+
503: ErrorResponse;
|
|
10498
|
+
};
|
|
10499
|
+
export type GetTopupCheckoutError = GetTopupCheckoutErrors[keyof GetTopupCheckoutErrors];
|
|
10500
|
+
export type GetTopupCheckoutResponses = {
|
|
10501
|
+
/**
|
|
10502
|
+
* Current checkout facts; Cache-Control no-store.
|
|
10503
|
+
*/
|
|
10504
|
+
200: HostedTopupCheckout;
|
|
10505
|
+
};
|
|
10506
|
+
export type GetTopupCheckoutResponse = GetTopupCheckoutResponses[keyof GetTopupCheckoutResponses];
|
|
10507
|
+
export type CreateTopupQuoteData = {
|
|
10508
|
+
body: CreateTopupQuoteRequest;
|
|
10509
|
+
path?: never;
|
|
10510
|
+
query?: never;
|
|
10511
|
+
url: '/api/billing/topup/quote';
|
|
10512
|
+
};
|
|
10513
|
+
export type CreateTopupQuoteErrors = {
|
|
10514
|
+
/**
|
|
10515
|
+
* Refused: `INVALID_REQUEST`, `INVALID_AMOUNT`,
|
|
10516
|
+
* `LEGACY_STRIPE_CHECKOUT_REQUIRED` (use Stripe Checkout),
|
|
10517
|
+
* `BILLING_PLAN_ENDED` (retained code for unresolved existing plan/tier/status), or
|
|
10518
|
+
* `BILLING_DISABLED`.
|
|
10519
|
+
*
|
|
10520
|
+
*/
|
|
10521
|
+
400: ErrorResponse;
|
|
10522
|
+
/**
|
|
10523
|
+
* Unauthorized
|
|
10524
|
+
*/
|
|
10525
|
+
401: ErrorResponse;
|
|
10526
|
+
/**
|
|
10527
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
10528
|
+
*/
|
|
10529
|
+
403: ForbiddenError;
|
|
10530
|
+
/**
|
|
10531
|
+
* Internal server error
|
|
10532
|
+
*/
|
|
10533
|
+
500: ErrorResponse;
|
|
10534
|
+
};
|
|
10535
|
+
export type CreateTopupQuoteError = CreateTopupQuoteErrors[keyof CreateTopupQuoteErrors];
|
|
10536
|
+
export type CreateTopupQuoteResponses = {
|
|
10537
|
+
/**
|
|
10538
|
+
* Top-up quote
|
|
10539
|
+
*/
|
|
10540
|
+
200: TopupQuoteResponse;
|
|
10541
|
+
};
|
|
10542
|
+
export type CreateTopupQuoteResponse = CreateTopupQuoteResponses[keyof CreateTopupQuoteResponses];
|
|
10543
|
+
export type GetBillingUsageTimeSeriesData = {
|
|
10544
|
+
body?: never;
|
|
10545
|
+
path?: never;
|
|
10546
|
+
query?: {
|
|
10547
|
+
/**
|
|
10548
|
+
* `product_line` folds products into the customer-facing lines (Agent,
|
|
10549
|
+
* Third-Party Partner API, Comfy Cloud, Serverless) plus an
|
|
10550
|
+
* `unattributed` bucket that is always counted in the total.
|
|
10551
|
+
* `person` and `source` attribute spend to the member or to the API
|
|
10552
|
+
* key (`spend_source`) that caused it, read from the usage ledger
|
|
10553
|
+
* where the workspace is enabled for it (feature
|
|
10554
|
+
* `usage_attribution_enabled`): owners see every member and every
|
|
10555
|
+
* key, a member's `person` and `source` views hold only their own
|
|
10556
|
+
* rows, and an `unattributed` group carries spend with no usable
|
|
10557
|
+
* identity so the groups still sum to the total. Elsewhere the response is an empty series with
|
|
10558
|
+
* `not_available` set. For an enabled workspace `product_line` and
|
|
10559
|
+
* `model` are also read from the ledger when the range starts on or
|
|
10560
|
+
* after the environment's ledger start, and from the invoice otherwise; a model the
|
|
10561
|
+
* ledger has no name for is `unspecified`. Under Serverless the model
|
|
10562
|
+
* level is the deployment: `<deployment id>` for its GPU time and
|
|
10563
|
+
* `<deployment id>/storage` for its storage, each with a
|
|
10564
|
+
* `group_labels` entry naming the deployment and the `cost_kind`. Group keys for
|
|
10565
|
+
* `product_line`, `model`, `person` and `source` carry a matching
|
|
10566
|
+
* entry in `group_labels`.
|
|
10567
|
+
*
|
|
10568
|
+
*/
|
|
10569
|
+
group_by?: 'model' | 'endpoint' | 'product' | 'product_line' | 'person' | 'source';
|
|
10570
|
+
/**
|
|
10571
|
+
* Keep only spend on this product line (a key the `product_line`
|
|
10572
|
+
* grouping returns). The four `filter_*` parameters combine with each
|
|
10573
|
+
* other and with the ledger groupings `product_line`, `model`,
|
|
10574
|
+
* `person` and `source`, so a page can drill from a line to its
|
|
10575
|
+
* models to the people behind one model. They apply only to
|
|
10576
|
+
* ledger-served reads of an enabled workspace: on any other read,
|
|
10577
|
+
* including the invoice groupings `product` and `endpoint`, the
|
|
10578
|
+
* response is an empty series with `not_available` reason
|
|
10579
|
+
* `filter_needs_ledger`. A member's view is still only their own
|
|
10580
|
+
* rows: filtering on a colleague returns nothing.
|
|
10581
|
+
*
|
|
10582
|
+
*/
|
|
10583
|
+
filter_product_line?: string;
|
|
10584
|
+
/**
|
|
10585
|
+
* Keep only spend on this model (a key the `model` grouping returns, `unspecified` for none). See `filter_product_line`.
|
|
10586
|
+
*/
|
|
10587
|
+
filter_model?: string;
|
|
10588
|
+
/**
|
|
10589
|
+
* Keep only spend by this member (a key the `person` grouping returns, or `unattributed`). See `filter_product_line`.
|
|
10590
|
+
*/
|
|
10591
|
+
filter_person?: string;
|
|
10592
|
+
/**
|
|
10593
|
+
* Keep only spend from this source (a key the `source` grouping returns, or `unattributed`), or every source of one kind (`api_key` for every API key, `deployment` for every deployment). See `filter_product_line`.
|
|
10594
|
+
*/
|
|
10595
|
+
filter_source?: string;
|
|
10596
|
+
granularity?: 'hour' | 'day' | 'month';
|
|
8873
10597
|
starting_on?: string;
|
|
8874
10598
|
ending_before?: string;
|
|
8875
10599
|
months?: number;
|
|
@@ -8878,7 +10602,7 @@ export type GetBillingUsageTimeSeriesData = {
|
|
|
8878
10602
|
};
|
|
8879
10603
|
export type GetBillingUsageTimeSeriesErrors = {
|
|
8880
10604
|
/**
|
|
8881
|
-
* Invalid time range
|
|
10605
|
+
* Invalid time range or filter value
|
|
8882
10606
|
*/
|
|
8883
10607
|
400: ErrorResponse;
|
|
8884
10608
|
/**
|
|
@@ -8886,7 +10610,7 @@ export type GetBillingUsageTimeSeriesErrors = {
|
|
|
8886
10610
|
*/
|
|
8887
10611
|
401: ErrorResponse;
|
|
8888
10612
|
/**
|
|
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.
|
|
10613
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
8890
10614
|
*/
|
|
8891
10615
|
403: ForbiddenError;
|
|
8892
10616
|
/**
|
|
@@ -8902,6 +10626,122 @@ export type GetBillingUsageTimeSeriesResponses = {
|
|
|
8902
10626
|
200: UsageTimeSeries;
|
|
8903
10627
|
};
|
|
8904
10628
|
export type GetBillingUsageTimeSeriesResponse = GetBillingUsageTimeSeriesResponses[keyof GetBillingUsageTimeSeriesResponses];
|
|
10629
|
+
export type GetDefaultWorkflowData = {
|
|
10630
|
+
body?: never;
|
|
10631
|
+
path?: never;
|
|
10632
|
+
query?: never;
|
|
10633
|
+
url: '/api/default_workflow';
|
|
10634
|
+
};
|
|
10635
|
+
export type GetDefaultWorkflowResponses = {
|
|
10636
|
+
/**
|
|
10637
|
+
* Default workflow JSON
|
|
10638
|
+
*/
|
|
10639
|
+
200: {
|
|
10640
|
+
[key: string]: unknown;
|
|
10641
|
+
};
|
|
10642
|
+
};
|
|
10643
|
+
export type GetDefaultWorkflowResponse = GetDefaultWorkflowResponses[keyof GetDefaultWorkflowResponses];
|
|
10644
|
+
export type CreateDeployBundleData = {
|
|
10645
|
+
/**
|
|
10646
|
+
* A JSON object; `{}` is valid. Null members count as absent.
|
|
10647
|
+
*/
|
|
10648
|
+
body: {
|
|
10649
|
+
/**
|
|
10650
|
+
* Optional label for the bundle.
|
|
10651
|
+
*/
|
|
10652
|
+
name?: string | null;
|
|
10653
|
+
/**
|
|
10654
|
+
* The workflow open in ComfyUI, sent as is.
|
|
10655
|
+
*/
|
|
10656
|
+
workflow?: {
|
|
10657
|
+
[key: string]: unknown;
|
|
10658
|
+
} | null;
|
|
10659
|
+
};
|
|
10660
|
+
path?: never;
|
|
10661
|
+
query?: never;
|
|
10662
|
+
url: '/api/deploy/bundle';
|
|
10663
|
+
};
|
|
10664
|
+
export type CreateDeployBundleErrors = {
|
|
10665
|
+
/**
|
|
10666
|
+
* Rejected before upload: `multiple_credentials` (both headers sent), `invalid_api_key_format` (X-API-Key is not comfyui- followed by 64 hex characters) or `invalid_body` (not a JSON object, or a bad workflow or name).
|
|
10667
|
+
*/
|
|
10668
|
+
400: DeployToCloudError;
|
|
10669
|
+
/**
|
|
10670
|
+
* `missing_credentials` (no credential sent) or `unauthorized` (the builder refused the credential).
|
|
10671
|
+
*/
|
|
10672
|
+
401: DeployToCloudError;
|
|
10673
|
+
/**
|
|
10674
|
+
* `offline` (the server runs with --offline) or `unauthorized` (the builder refused the credential).
|
|
10675
|
+
*/
|
|
10676
|
+
403: DeployToCloudError;
|
|
10677
|
+
/**
|
|
10678
|
+
* The bundle exceeds the builder's size cap (`too_large`).
|
|
10679
|
+
*/
|
|
10680
|
+
413: DeployToCloudError;
|
|
10681
|
+
/**
|
|
10682
|
+
* The user already holds the builder's limit of unexpired bundles in this workspace (`too_many_bundles`); clears as older bundles expire.
|
|
10683
|
+
*/
|
|
10684
|
+
429: DeployToCloudError;
|
|
10685
|
+
/**
|
|
10686
|
+
* `builder_rejected` (the builder refused the bundle as invalid; `message` carries its reason, at most 500 characters) or `builder_unavailable` (the builder could not be reached or answered unexpectedly).
|
|
10687
|
+
*/
|
|
10688
|
+
502: DeployToCloudError;
|
|
10689
|
+
/**
|
|
10690
|
+
* The builder is busy (`builder_busy`); retry after Retry-After seconds when present.
|
|
10691
|
+
*/
|
|
10692
|
+
503: DeployToCloudError;
|
|
10693
|
+
};
|
|
10694
|
+
export type CreateDeployBundleError = CreateDeployBundleErrors[keyof CreateDeployBundleErrors];
|
|
10695
|
+
export type CreateDeployBundleResponses = {
|
|
10696
|
+
/**
|
|
10697
|
+
* Bundle stored on comfy-builder
|
|
10698
|
+
*/
|
|
10699
|
+
200: {
|
|
10700
|
+
bundle_id: string;
|
|
10701
|
+
/**
|
|
10702
|
+
* When the bundle stops being readable (24 hours after creation).
|
|
10703
|
+
*/
|
|
10704
|
+
expires_at: string;
|
|
10705
|
+
/**
|
|
10706
|
+
* The Create a Build wizard link that opens the bundle (/profile/builds/new?step=import&bundle=&workspace=&bundle_workspace=).
|
|
10707
|
+
*/
|
|
10708
|
+
url: string;
|
|
10709
|
+
/**
|
|
10710
|
+
* The workspace the bundle belongs to (the credential's).
|
|
10711
|
+
*/
|
|
10712
|
+
workspace_id: string;
|
|
10713
|
+
};
|
|
10714
|
+
};
|
|
10715
|
+
export type CreateDeployBundleResponse = CreateDeployBundleResponses[keyof CreateDeployBundleResponses];
|
|
10716
|
+
export type GetDeploySummaryData = {
|
|
10717
|
+
body?: never;
|
|
10718
|
+
path?: never;
|
|
10719
|
+
query?: never;
|
|
10720
|
+
url: '/api/deploy/summary';
|
|
10721
|
+
};
|
|
10722
|
+
export type GetDeploySummaryErrors = {
|
|
10723
|
+
/**
|
|
10724
|
+
* The server runs with --offline (error `offline`)
|
|
10725
|
+
*/
|
|
10726
|
+
403: DeployToCloudError;
|
|
10727
|
+
};
|
|
10728
|
+
export type GetDeploySummaryError = GetDeploySummaryErrors[keyof GetDeploySummaryErrors];
|
|
10729
|
+
export type GetDeploySummaryResponses = {
|
|
10730
|
+
/**
|
|
10731
|
+
* Counts of what the bundle would include
|
|
10732
|
+
*/
|
|
10733
|
+
200: {
|
|
10734
|
+
/**
|
|
10735
|
+
* Custom node packages found in the custom_nodes folders
|
|
10736
|
+
*/
|
|
10737
|
+
custom_nodes: number;
|
|
10738
|
+
/**
|
|
10739
|
+
* Model files found across the model folders
|
|
10740
|
+
*/
|
|
10741
|
+
models: number;
|
|
10742
|
+
};
|
|
10743
|
+
};
|
|
10744
|
+
export type GetDeploySummaryResponse = GetDeploySummaryResponses[keyof GetDeploySummaryResponses];
|
|
8905
10745
|
export type GetEmbeddingsData = {
|
|
8906
10746
|
body?: never;
|
|
8907
10747
|
path?: never;
|
|
@@ -9021,7 +10861,7 @@ export type GetNodeInfoSchemaErrors = {
|
|
|
9021
10861
|
*/
|
|
9022
10862
|
401: ErrorResponse;
|
|
9023
10863
|
/**
|
|
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.
|
|
10864
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9025
10865
|
*/
|
|
9026
10866
|
403: ForbiddenError;
|
|
9027
10867
|
};
|
|
@@ -9053,7 +10893,7 @@ export type GetNodeByIdErrors = {
|
|
|
9053
10893
|
*/
|
|
9054
10894
|
401: ErrorResponse;
|
|
9055
10895
|
/**
|
|
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.
|
|
10896
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9057
10897
|
*/
|
|
9058
10898
|
403: ForbiddenError;
|
|
9059
10899
|
/**
|
|
@@ -9074,6 +10914,17 @@ export type GetExtensionsData = {
|
|
|
9074
10914
|
query?: never;
|
|
9075
10915
|
url: '/api/extensions';
|
|
9076
10916
|
};
|
|
10917
|
+
export type GetExtensionsErrors = {
|
|
10918
|
+
/**
|
|
10919
|
+
* `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.
|
|
10920
|
+
*/
|
|
10921
|
+
400: ErrorResponse;
|
|
10922
|
+
/**
|
|
10923
|
+
* `code` is `workspace_access_denied`: the selected workspace is unknown, deleted, or the user is not a member; the three look the same. This route also serves anonymous callers, so the session's other refusals fall back to an anonymous request. See the `WebSessionAuth` scheme.
|
|
10924
|
+
*/
|
|
10925
|
+
403: ErrorResponse;
|
|
10926
|
+
};
|
|
10927
|
+
export type GetExtensionsError = GetExtensionsErrors[keyof GetExtensionsErrors];
|
|
9077
10928
|
export type GetExtensionsResponses = {
|
|
9078
10929
|
/**
|
|
9079
10930
|
* URL paths (relative to web root) of available extension JS files
|
|
@@ -9104,9 +10955,15 @@ export type GetFeaturesResponses = {
|
|
|
9104
10955
|
*/
|
|
9105
10956
|
200: {
|
|
9106
10957
|
/**
|
|
9107
|
-
*
|
|
10958
|
+
* Present when the caller passes the agent-in-app-experience rollout gate that /api/agent* also enforces; the frontend mounts the agent panel only when it is. Absent when the gate is off and for unauthenticated requests. It answers the rollout question only: it does not reflect a scoped OAuth token's agent scope or whether the agent service is currently reachable.
|
|
9108
10959
|
*/
|
|
9109
|
-
|
|
10960
|
+
agent?: {
|
|
10961
|
+
state: 'ready';
|
|
10962
|
+
};
|
|
10963
|
+
/**
|
|
10964
|
+
* Authenticated assignment for the Agent free-use notice placement 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, as agent-starter-prompt-set does, so older environments mid-rolling-deploy and partial feature fixtures fail closed rather than decoding an absent field as the empty string, which is not a member of this enum.
|
|
10965
|
+
*/
|
|
10966
|
+
'agent-free-use-message-placement'?: 'control' | 'top-banner' | 'near-composer' | 'above-input' | 'inside-input';
|
|
9110
10967
|
/**
|
|
9111
10968
|
* 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
10969
|
*/
|
|
@@ -9125,6 +10982,10 @@ export type GetFeaturesResponses = {
|
|
|
9125
10982
|
* 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
10983
|
*/
|
|
9127
10984
|
can_run_partner_nodes?: boolean;
|
|
10985
|
+
/**
|
|
10986
|
+
* Local ComfyUI only: whether the UI should offer Deploy to Cloud. True when the server is not --offline and this installation has ever had a prompt queued by a non-browser client (a persistent marker in the user directory). A discovery hint only: it grants nothing, and the /api/deploy* routes do not check it. Not settable with --feature-flag.
|
|
10987
|
+
*/
|
|
10988
|
+
deploy_to_cloud?: boolean;
|
|
9128
10989
|
/**
|
|
9129
10990
|
* 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.
|
|
9130
10991
|
*/
|
|
@@ -9199,7 +11060,7 @@ export type SubmitFeedbackErrors = {
|
|
|
9199
11060
|
*/
|
|
9200
11061
|
401: ErrorResponse;
|
|
9201
11062
|
/**
|
|
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.
|
|
11063
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
9203
11064
|
*/
|
|
9204
11065
|
403: ForbiddenError;
|
|
9205
11066
|
/**
|
|
@@ -9236,7 +11097,7 @@ export type GetMaskLayersErrors = {
|
|
|
9236
11097
|
*/
|
|
9237
11098
|
401: ErrorResponse;
|
|
9238
11099
|
/**
|
|
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.
|
|
11100
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9240
11101
|
*/
|
|
9241
11102
|
403: ForbiddenError;
|
|
9242
11103
|
/**
|
|
@@ -9495,7 +11356,7 @@ export type ManageHistoryErrors = {
|
|
|
9495
11356
|
*/
|
|
9496
11357
|
401: ErrorResponse;
|
|
9497
11358
|
/**
|
|
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.
|
|
11359
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
9499
11360
|
*/
|
|
9500
11361
|
403: ForbiddenError;
|
|
9501
11362
|
/**
|
|
@@ -9549,7 +11410,7 @@ export type GetHistoryErrors = {
|
|
|
9549
11410
|
*/
|
|
9550
11411
|
401: ErrorResponse;
|
|
9551
11412
|
/**
|
|
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.
|
|
11413
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9553
11414
|
*/
|
|
9554
11415
|
403: ForbiddenError;
|
|
9555
11416
|
/**
|
|
@@ -9586,7 +11447,7 @@ export type GetHistoryForPromptErrors = {
|
|
|
9586
11447
|
*/
|
|
9587
11448
|
401: ErrorResponse;
|
|
9588
11449
|
/**
|
|
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.
|
|
11450
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9590
11451
|
*/
|
|
9591
11452
|
403: ForbiddenError;
|
|
9592
11453
|
/**
|
|
@@ -9622,7 +11483,7 @@ export type CreateHubAssetUploadUrlErrors = {
|
|
|
9622
11483
|
*/
|
|
9623
11484
|
401: ErrorResponse;
|
|
9624
11485
|
/**
|
|
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.
|
|
11486
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
9626
11487
|
*/
|
|
9627
11488
|
403: ForbiddenError;
|
|
9628
11489
|
/**
|
|
@@ -9663,7 +11524,7 @@ export type ListHubLabelsErrors = {
|
|
|
9663
11524
|
*/
|
|
9664
11525
|
401: ErrorResponse;
|
|
9665
11526
|
/**
|
|
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.
|
|
11527
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9667
11528
|
*/
|
|
9668
11529
|
403: ForbiddenError;
|
|
9669
11530
|
/**
|
|
@@ -9695,7 +11556,7 @@ export type CreateHubProfileErrors = {
|
|
|
9695
11556
|
*/
|
|
9696
11557
|
401: ErrorResponse;
|
|
9697
11558
|
/**
|
|
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.
|
|
11559
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
9699
11560
|
*/
|
|
9700
11561
|
403: ForbiddenError;
|
|
9701
11562
|
/**
|
|
@@ -9769,7 +11630,7 @@ export type UpdateHubProfileErrors = {
|
|
|
9769
11630
|
*/
|
|
9770
11631
|
401: ErrorResponse;
|
|
9771
11632
|
/**
|
|
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.
|
|
11633
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
9773
11634
|
*/
|
|
9774
11635
|
403: ForbiddenError;
|
|
9775
11636
|
/**
|
|
@@ -9807,7 +11668,7 @@ export type CheckHubUsernameErrors = {
|
|
|
9807
11668
|
*/
|
|
9808
11669
|
401: ErrorResponse;
|
|
9809
11670
|
/**
|
|
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.
|
|
11671
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9811
11672
|
*/
|
|
9812
11673
|
403: ForbiddenError;
|
|
9813
11674
|
/**
|
|
@@ -9843,7 +11704,7 @@ export type GetMyHubProfileErrors = {
|
|
|
9843
11704
|
*/
|
|
9844
11705
|
401: ErrorResponse;
|
|
9845
11706
|
/**
|
|
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.
|
|
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. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
9847
11708
|
*/
|
|
9848
11709
|
403: ForbiddenError;
|
|
9849
11710
|
/**
|
|
@@ -9934,7 +11795,7 @@ export type PublishHubWorkflowErrors = {
|
|
|
9934
11795
|
*/
|
|
9935
11796
|
401: ErrorResponse;
|
|
9936
11797
|
/**
|
|
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.
|
|
11798
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
9938
11799
|
*/
|
|
9939
11800
|
403: ForbiddenError;
|
|
9940
11801
|
/**
|
|
@@ -9975,7 +11836,7 @@ export type DeleteHubWorkflowErrors = {
|
|
|
9975
11836
|
*/
|
|
9976
11837
|
401: ErrorResponse;
|
|
9977
11838
|
/**
|
|
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.
|
|
11839
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
9979
11840
|
*/
|
|
9980
11841
|
403: ForbiddenError;
|
|
9981
11842
|
/**
|
|
@@ -10100,7 +11961,7 @@ export type CreateInputUploadUrlErrors = {
|
|
|
10100
11961
|
*/
|
|
10101
11962
|
401: ErrorResponse;
|
|
10102
11963
|
/**
|
|
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.
|
|
11964
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
10104
11965
|
*/
|
|
10105
11966
|
403: ForbiddenError;
|
|
10106
11967
|
/**
|
|
@@ -10140,7 +12001,7 @@ export type InterruptJobErrors = {
|
|
|
10140
12001
|
*/
|
|
10141
12002
|
401: ErrorResponse;
|
|
10142
12003
|
/**
|
|
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.
|
|
12004
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
10144
12005
|
*/
|
|
10145
12006
|
403: ForbiddenError;
|
|
10146
12007
|
/**
|
|
@@ -10150,13 +12011,6 @@ export type InterruptJobErrors = {
|
|
|
10150
12011
|
*
|
|
10151
12012
|
*/
|
|
10152
12013
|
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;
|
|
10160
12014
|
/**
|
|
10161
12015
|
* Internal server error
|
|
10162
12016
|
*/
|
|
@@ -10339,7 +12193,7 @@ export type ListJobsErrors = {
|
|
|
10339
12193
|
*/
|
|
10340
12194
|
401: ErrorResponse;
|
|
10341
12195
|
/**
|
|
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.
|
|
12196
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
10343
12197
|
*/
|
|
10344
12198
|
403: ForbiddenError;
|
|
10345
12199
|
/**
|
|
@@ -10355,6 +12209,51 @@ export type ListJobsResponses = {
|
|
|
10355
12209
|
200: JobsListResponse;
|
|
10356
12210
|
};
|
|
10357
12211
|
export type ListJobsResponse = ListJobsResponses[keyof ListJobsResponses];
|
|
12212
|
+
export type DeleteJobData = {
|
|
12213
|
+
body?: never;
|
|
12214
|
+
path: {
|
|
12215
|
+
/**
|
|
12216
|
+
* Job identifier (UUID)
|
|
12217
|
+
*/
|
|
12218
|
+
job_id: string;
|
|
12219
|
+
};
|
|
12220
|
+
query?: never;
|
|
12221
|
+
url: '/api/jobs/{job_id}';
|
|
12222
|
+
};
|
|
12223
|
+
export type DeleteJobErrors = {
|
|
12224
|
+
/**
|
|
12225
|
+
* `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.
|
|
12226
|
+
*/
|
|
12227
|
+
400: ErrorResponse;
|
|
12228
|
+
/**
|
|
12229
|
+
* Unauthorized - Authentication required
|
|
12230
|
+
*/
|
|
12231
|
+
401: ErrorResponse;
|
|
12232
|
+
/**
|
|
12233
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
12234
|
+
*/
|
|
12235
|
+
403: ForbiddenError;
|
|
12236
|
+
/**
|
|
12237
|
+
* Job not found or does not belong to the user
|
|
12238
|
+
*/
|
|
12239
|
+
404: ErrorResponse;
|
|
12240
|
+
/**
|
|
12241
|
+
* A linked asset cannot be deleted because it is referenced by another resource, e.g. a workflow version (error code: ASSET_IN_USE); the job is left in place
|
|
12242
|
+
*/
|
|
12243
|
+
409: ErrorResponse;
|
|
12244
|
+
/**
|
|
12245
|
+
* Internal server error
|
|
12246
|
+
*/
|
|
12247
|
+
500: ErrorResponse;
|
|
12248
|
+
};
|
|
12249
|
+
export type DeleteJobError = DeleteJobErrors[keyof DeleteJobErrors];
|
|
12250
|
+
export type DeleteJobResponses = {
|
|
12251
|
+
/**
|
|
12252
|
+
* Job and its assets deleted successfully, or the job was not in a deletable state (pending/in-progress/already-deleted) and no change was made (no-op)
|
|
12253
|
+
*/
|
|
12254
|
+
204: void;
|
|
12255
|
+
};
|
|
12256
|
+
export type DeleteJobResponse = DeleteJobResponses[keyof DeleteJobResponses];
|
|
10358
12257
|
export type GetJobDetailData = {
|
|
10359
12258
|
body?: never;
|
|
10360
12259
|
path: {
|
|
@@ -10432,7 +12331,7 @@ export type GetJobAssetsErrors = {
|
|
|
10432
12331
|
*/
|
|
10433
12332
|
401: ErrorResponse;
|
|
10434
12333
|
/**
|
|
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.
|
|
12334
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
10436
12335
|
*/
|
|
10437
12336
|
403: ForbiddenError;
|
|
10438
12337
|
/**
|
|
@@ -10473,20 +12372,13 @@ export type CancelJobErrors = {
|
|
|
10473
12372
|
*/
|
|
10474
12373
|
401: ErrorResponse;
|
|
10475
12374
|
/**
|
|
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.
|
|
12375
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
10477
12376
|
*/
|
|
10478
12377
|
403: ForbiddenError;
|
|
10479
12378
|
/**
|
|
10480
12379
|
* Job not found for this user
|
|
10481
12380
|
*/
|
|
10482
12381
|
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;
|
|
10490
12382
|
/**
|
|
10491
12383
|
* Internal server error - cancellation failed
|
|
10492
12384
|
*/
|
|
@@ -10516,21 +12408,13 @@ export type CancelJobsErrors = {
|
|
|
10516
12408
|
*/
|
|
10517
12409
|
401: ErrorResponse;
|
|
10518
12410
|
/**
|
|
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.
|
|
12411
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
10520
12412
|
*/
|
|
10521
12413
|
403: ForbiddenError;
|
|
10522
12414
|
/**
|
|
10523
12415
|
* One or more job IDs not found for this user (no jobs cancelled)
|
|
10524
12416
|
*/
|
|
10525
12417
|
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;
|
|
10534
12418
|
/**
|
|
10535
12419
|
* Internal server error - cancellation failed
|
|
10536
12420
|
*/
|
|
@@ -10620,7 +12504,7 @@ export type GetNodeInfoErrors = {
|
|
|
10620
12504
|
*/
|
|
10621
12505
|
401: ErrorResponse;
|
|
10622
12506
|
/**
|
|
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.
|
|
12507
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
10624
12508
|
*/
|
|
10625
12509
|
403: ForbiddenError;
|
|
10626
12510
|
};
|
|
@@ -10664,7 +12548,7 @@ export type GetPromptInfoErrors = {
|
|
|
10664
12548
|
*/
|
|
10665
12549
|
401: ErrorResponse;
|
|
10666
12550
|
/**
|
|
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.
|
|
12551
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
10668
12552
|
*/
|
|
10669
12553
|
403: ForbiddenError;
|
|
10670
12554
|
/**
|
|
@@ -10708,7 +12592,7 @@ export type ExecutePromptErrors = {
|
|
|
10708
12592
|
*/
|
|
10709
12593
|
413: PromptErrorResponse;
|
|
10710
12594
|
/**
|
|
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.
|
|
12595
|
+
* Retryable backpressure, disambiguated by the body's `error.type`: `QUEUE_LIMIT` (this workspace's bounded job queue is full - retrying after some queued jobs complete will succeed) or `FREE_TIER_UNAVAILABLE` (the free tier is switched off for now - retrying once it is back will succeed), or `BILLING_UNAVAILABLE` with `error.reason` `funds_unavailable` (ingest got no billing verdict for the workspace because the billing service was unreachable or rejected the check, or the billing-status read behind a no-funds verdict failed - nothing was queued, and retrying the same submission after `Retry-After` seconds will succeed once billing answers). Of the billing outcomes, a plan or billing policy refusal is a 402; only billing being unavailable is a 429. For a browser that picked a developer-platform deployment, also `PLATFORM_REFUSED` with `error.details` `deployment_not_ready` (the deployment is on its way to ready - nothing was queued, and retrying after `Retry-After` seconds will succeed once it is ready) or another platform 429 passed through.
|
|
10712
12596
|
*/
|
|
10713
12597
|
429: PromptErrorResponse;
|
|
10714
12598
|
/**
|
|
@@ -10790,7 +12674,7 @@ export type GetQueueInfoErrors = {
|
|
|
10790
12674
|
*/
|
|
10791
12675
|
401: ErrorResponse;
|
|
10792
12676
|
/**
|
|
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.
|
|
12677
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
10794
12678
|
*/
|
|
10795
12679
|
403: ForbiddenError;
|
|
10796
12680
|
/**
|
|
@@ -10822,17 +12706,9 @@ export type ManageQueueErrors = {
|
|
|
10822
12706
|
*/
|
|
10823
12707
|
401: ErrorResponse;
|
|
10824
12708
|
/**
|
|
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.
|
|
12709
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
10826
12710
|
*/
|
|
10827
12711
|
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;
|
|
10836
12712
|
/**
|
|
10837
12713
|
* Internal server error
|
|
10838
12714
|
*/
|
|
@@ -10862,7 +12738,7 @@ export type ListSecretsErrors = {
|
|
|
10862
12738
|
*/
|
|
10863
12739
|
401: ErrorResponse;
|
|
10864
12740
|
/**
|
|
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.
|
|
12741
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
10866
12742
|
*/
|
|
10867
12743
|
403: ForbiddenError;
|
|
10868
12744
|
/**
|
|
@@ -11085,7 +12961,7 @@ export type ListSecretProvidersErrors = {
|
|
|
11085
12961
|
*/
|
|
11086
12962
|
401: ErrorResponse;
|
|
11087
12963
|
/**
|
|
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.
|
|
12964
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11089
12965
|
*/
|
|
11090
12966
|
403: ForbiddenError;
|
|
11091
12967
|
/**
|
|
@@ -11117,7 +12993,7 @@ export type GetAllSettingsErrors = {
|
|
|
11117
12993
|
*/
|
|
11118
12994
|
401: ErrorResponse;
|
|
11119
12995
|
/**
|
|
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.
|
|
12996
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11121
12997
|
*/
|
|
11122
12998
|
403: ForbiddenError;
|
|
11123
12999
|
};
|
|
@@ -11152,7 +13028,7 @@ export type UpdateMultipleSettingsErrors = {
|
|
|
11152
13028
|
*/
|
|
11153
13029
|
401: ErrorResponse;
|
|
11154
13030
|
/**
|
|
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.
|
|
13031
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
11156
13032
|
*/
|
|
11157
13033
|
403: ForbiddenError;
|
|
11158
13034
|
};
|
|
@@ -11187,7 +13063,7 @@ export type GetSettingByIdErrors = {
|
|
|
11187
13063
|
*/
|
|
11188
13064
|
401: ErrorResponse;
|
|
11189
13065
|
/**
|
|
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.
|
|
13066
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11191
13067
|
*/
|
|
11192
13068
|
403: ForbiddenError;
|
|
11193
13069
|
/**
|
|
@@ -11232,7 +13108,7 @@ export type UpdateSettingByIdErrors = {
|
|
|
11232
13108
|
*/
|
|
11233
13109
|
401: ErrorResponse;
|
|
11234
13110
|
/**
|
|
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.
|
|
13111
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
11236
13112
|
*/
|
|
11237
13113
|
403: ForbiddenError;
|
|
11238
13114
|
};
|
|
@@ -11310,7 +13186,7 @@ export type ListTagsErrors = {
|
|
|
11310
13186
|
*/
|
|
11311
13187
|
401: ErrorResponse;
|
|
11312
13188
|
/**
|
|
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.
|
|
13189
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11314
13190
|
*/
|
|
11315
13191
|
403: ForbiddenError;
|
|
11316
13192
|
/**
|
|
@@ -11375,7 +13251,7 @@ export type ListTasksErrors = {
|
|
|
11375
13251
|
*/
|
|
11376
13252
|
401: ErrorResponse;
|
|
11377
13253
|
/**
|
|
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.
|
|
13254
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11379
13255
|
*/
|
|
11380
13256
|
403: ForbiddenError;
|
|
11381
13257
|
/**
|
|
@@ -11413,7 +13289,7 @@ export type CancelTaskErrors = {
|
|
|
11413
13289
|
*/
|
|
11414
13290
|
401: ErrorResponse;
|
|
11415
13291
|
/**
|
|
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.
|
|
13292
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
11417
13293
|
*/
|
|
11418
13294
|
403: ForbiddenError;
|
|
11419
13295
|
/**
|
|
@@ -11462,7 +13338,7 @@ export type GetTaskErrors = {
|
|
|
11462
13338
|
*/
|
|
11463
13339
|
401: ErrorResponse;
|
|
11464
13340
|
/**
|
|
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.
|
|
13341
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11466
13342
|
*/
|
|
11467
13343
|
403: ForbiddenError;
|
|
11468
13344
|
/**
|
|
@@ -11515,7 +13391,7 @@ export type UploadImageErrors = {
|
|
|
11515
13391
|
*/
|
|
11516
13392
|
401: ErrorResponse;
|
|
11517
13393
|
/**
|
|
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.
|
|
13394
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
11519
13395
|
*/
|
|
11520
13396
|
403: ForbiddenError;
|
|
11521
13397
|
/**
|
|
@@ -11569,7 +13445,7 @@ export type UploadMaskErrors = {
|
|
|
11569
13445
|
*/
|
|
11570
13446
|
401: ErrorResponse;
|
|
11571
13447
|
/**
|
|
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.
|
|
13448
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
11573
13449
|
*/
|
|
11574
13450
|
403: ForbiddenError;
|
|
11575
13451
|
/**
|
|
@@ -11659,7 +13535,7 @@ export type GetUserErrors = {
|
|
|
11659
13535
|
*/
|
|
11660
13536
|
401: ErrorResponse;
|
|
11661
13537
|
/**
|
|
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.
|
|
13538
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11663
13539
|
*/
|
|
11664
13540
|
403: ForbiddenError;
|
|
11665
13541
|
};
|
|
@@ -11704,7 +13580,7 @@ export type GetUserdataErrors = {
|
|
|
11704
13580
|
*/
|
|
11705
13581
|
401: ErrorResponse;
|
|
11706
13582
|
/**
|
|
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.
|
|
13583
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11708
13584
|
*/
|
|
11709
13585
|
403: ForbiddenError;
|
|
11710
13586
|
/**
|
|
@@ -11745,7 +13621,7 @@ export type DeleteUserdataFileErrors = {
|
|
|
11745
13621
|
*/
|
|
11746
13622
|
401: ErrorResponse;
|
|
11747
13623
|
/**
|
|
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.
|
|
13624
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
11749
13625
|
*/
|
|
11750
13626
|
403: ForbiddenError;
|
|
11751
13627
|
/**
|
|
@@ -11786,7 +13662,7 @@ export type GetUserdataFileErrors = {
|
|
|
11786
13662
|
*/
|
|
11787
13663
|
401: ErrorResponse;
|
|
11788
13664
|
/**
|
|
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.
|
|
13665
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11790
13666
|
*/
|
|
11791
13667
|
403: ForbiddenError;
|
|
11792
13668
|
/**
|
|
@@ -11886,7 +13762,7 @@ export type MoveUserdataFileErrors = {
|
|
|
11886
13762
|
*/
|
|
11887
13763
|
401: ErrorResponse;
|
|
11888
13764
|
/**
|
|
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.
|
|
13765
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
11890
13766
|
*/
|
|
11891
13767
|
403: ForbiddenError;
|
|
11892
13768
|
/**
|
|
@@ -11931,7 +13807,7 @@ export type GetUserdataFilePublishErrors = {
|
|
|
11931
13807
|
*/
|
|
11932
13808
|
401: ErrorResponse;
|
|
11933
13809
|
/**
|
|
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.
|
|
13810
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
11935
13811
|
*/
|
|
11936
13812
|
403: ForbiddenError;
|
|
11937
13813
|
/**
|
|
@@ -11972,7 +13848,7 @@ export type PostUserdataFilePublishErrors = {
|
|
|
11972
13848
|
*/
|
|
11973
13849
|
401: ErrorResponse;
|
|
11974
13850
|
/**
|
|
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.
|
|
13851
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
11976
13852
|
*/
|
|
11977
13853
|
403: ForbiddenError;
|
|
11978
13854
|
/**
|
|
@@ -12008,7 +13884,7 @@ export type GetUsersInfoErrors = {
|
|
|
12008
13884
|
*/
|
|
12009
13885
|
401: ErrorResponse;
|
|
12010
13886
|
/**
|
|
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.
|
|
13887
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
12012
13888
|
*/
|
|
12013
13889
|
403: ForbiddenError;
|
|
12014
13890
|
};
|
|
@@ -12073,7 +13949,7 @@ export type GetVhsQueryVideoErrors = {
|
|
|
12073
13949
|
*/
|
|
12074
13950
|
401: ErrorResponse;
|
|
12075
13951
|
/**
|
|
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.
|
|
13952
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
12077
13953
|
*/
|
|
12078
13954
|
403: ForbiddenError;
|
|
12079
13955
|
/**
|
|
@@ -12164,7 +14040,7 @@ export type GetVhsViewAudioErrors = {
|
|
|
12164
14040
|
*/
|
|
12165
14041
|
401: ErrorResponse;
|
|
12166
14042
|
/**
|
|
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.
|
|
14043
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
12168
14044
|
*/
|
|
12169
14045
|
403: ForbiddenError;
|
|
12170
14046
|
/**
|
|
@@ -12237,7 +14113,7 @@ export type GetVhsViewVideoErrors = {
|
|
|
12237
14113
|
*/
|
|
12238
14114
|
401: ErrorResponse;
|
|
12239
14115
|
/**
|
|
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.
|
|
14116
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
12241
14117
|
*/
|
|
12242
14118
|
403: ForbiddenError;
|
|
12243
14119
|
/**
|
|
@@ -12325,7 +14201,7 @@ export type ViewFileErrors = {
|
|
|
12325
14201
|
*/
|
|
12326
14202
|
401: ErrorResponse;
|
|
12327
14203
|
/**
|
|
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.
|
|
14204
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
12329
14205
|
*/
|
|
12330
14206
|
403: ForbiddenError;
|
|
12331
14207
|
/**
|
|
@@ -12404,7 +14280,7 @@ export type GetApiViewVideoAliasErrors = {
|
|
|
12404
14280
|
*/
|
|
12405
14281
|
401: ErrorResponse;
|
|
12406
14282
|
/**
|
|
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.
|
|
14283
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
12408
14284
|
*/
|
|
12409
14285
|
403: ForbiddenError;
|
|
12410
14286
|
/**
|
|
@@ -12474,7 +14350,7 @@ export type ListWorkflowsErrors = {
|
|
|
12474
14350
|
*/
|
|
12475
14351
|
401: ErrorResponse;
|
|
12476
14352
|
/**
|
|
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.
|
|
14353
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
12478
14354
|
*/
|
|
12479
14355
|
403: ForbiddenError;
|
|
12480
14356
|
/**
|
|
@@ -12506,7 +14382,7 @@ export type CreateWorkflowErrors = {
|
|
|
12506
14382
|
*/
|
|
12507
14383
|
401: ErrorResponse;
|
|
12508
14384
|
/**
|
|
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.
|
|
14385
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
12510
14386
|
*/
|
|
12511
14387
|
403: ForbiddenError;
|
|
12512
14388
|
/**
|
|
@@ -12547,7 +14423,7 @@ export type DeleteWorkflowErrors = {
|
|
|
12547
14423
|
*/
|
|
12548
14424
|
401: ErrorResponse;
|
|
12549
14425
|
/**
|
|
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.
|
|
14426
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
12551
14427
|
*/
|
|
12552
14428
|
403: ForbiddenError;
|
|
12553
14429
|
/**
|
|
@@ -12629,7 +14505,7 @@ export type UpdateWorkflowErrors = {
|
|
|
12629
14505
|
*/
|
|
12630
14506
|
401: ErrorResponse;
|
|
12631
14507
|
/**
|
|
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.
|
|
14508
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
12633
14509
|
*/
|
|
12634
14510
|
403: ForbiddenError;
|
|
12635
14511
|
/**
|
|
@@ -12809,7 +14685,7 @@ export type GetPublishedWorkflowErrors = {
|
|
|
12809
14685
|
*/
|
|
12810
14686
|
401: ErrorResponse;
|
|
12811
14687
|
/**
|
|
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.
|
|
14688
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
12813
14689
|
*/
|
|
12814
14690
|
403: ForbiddenError;
|
|
12815
14691
|
/**
|
|
@@ -12849,7 +14725,7 @@ export type CreateWorkflowUploadUrlErrors = {
|
|
|
12849
14725
|
*/
|
|
12850
14726
|
401: ErrorResponse;
|
|
12851
14727
|
/**
|
|
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.
|
|
14728
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
12853
14729
|
*/
|
|
12854
14730
|
403: ForbiddenError;
|
|
12855
14731
|
/**
|
|
@@ -13173,7 +15049,7 @@ export type LeaveWorkspaceErrors = {
|
|
|
13173
15049
|
*/
|
|
13174
15050
|
401: ErrorResponse;
|
|
13175
15051
|
/**
|
|
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.
|
|
15052
|
+
* Cannot leave as the only owner (`ONLY_OWNER`), cannot leave a personal workspace (`PERSONAL_WORKSPACE`), cannot leave a team workspace the caller created (`CANNOT_LEAVE_AS_CREATOR`), 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.
|
|
13177
15053
|
*/
|
|
13178
15054
|
403: ErrorResponse;
|
|
13179
15055
|
/**
|
|
@@ -13304,7 +15180,7 @@ export type RemoveWorkspaceMemberErrors = {
|
|
|
13304
15180
|
*/
|
|
13305
15181
|
401: ErrorResponse;
|
|
13306
15182
|
/**
|
|
13307
|
-
* Owner role required or cannot
|
|
15183
|
+
* Owner role required, cannot remove yourself, the original owner of a personal workspace cannot be removed (`CANNOT_REMOVE_ORIGINAL_OWNER`), or the creator of a team workspace cannot be removed (`CANNOT_REMOVE_CREATOR`)
|
|
13308
15184
|
*/
|
|
13309
15185
|
403: ErrorResponse;
|
|
13310
15186
|
/**
|
|
@@ -13345,7 +15221,7 @@ export type UpdateWorkspaceMemberRoleErrors = {
|
|
|
13345
15221
|
*/
|
|
13346
15222
|
401: ErrorResponse;
|
|
13347
15223
|
/**
|
|
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
|
|
15224
|
+
* Owner role required, the original owner of a personal workspace cannot be demoted (`CANNOT_DEMOTE_ORIGINAL_OWNER`), the creator of a team workspace cannot be demoted (`CANNOT_DEMOTE_CREATOR`), or `DIRECTORY_MANAGED`: the member's role comes from their organization's directory (SSO) and is changed there
|
|
13349
15225
|
*/
|
|
13350
15226
|
403: ErrorResponse;
|
|
13351
15227
|
/**
|
|
@@ -13461,7 +15337,7 @@ export type ListWorkspacesErrors = {
|
|
|
13461
15337
|
*/
|
|
13462
15338
|
401: ErrorResponse;
|
|
13463
15339
|
/**
|
|
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.
|
|
15340
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
13465
15341
|
*/
|
|
13466
15342
|
403: ForbiddenError;
|
|
13467
15343
|
/**
|
|
@@ -13497,7 +15373,7 @@ export type CreateWorkspaceErrors = {
|
|
|
13497
15373
|
*/
|
|
13498
15374
|
401: ErrorResponse;
|
|
13499
15375
|
/**
|
|
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.
|
|
15376
|
+
* A refused request that changes data. For a web session, `code` is `csrf_invalid` (no `X-CSRF-Token`, or not the session's), `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email, or, on `POST /api/workspaces`, an account an SSO organization holds (its organization manages its workspaces; signing in again does not change it). On the plan-lifecycle writes (`POST /api/billing/subscribe`, `POST /api/billing/subscription/cancel`, `POST /api/billing/subscription/resubscribe`, `POST /api/billing/subscription/revert-scheduled-change`, `POST /api/billing/ops/{id}/cancel` and the `/api/billing/retention*` routes), `NOT_ORIGINAL_OWNER` means the caller is an owner but not the workspace's creator, and only the creator may change the plan; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever the flag.
|
|
13501
15377
|
*/
|
|
13502
15378
|
403: ForbiddenError;
|
|
13503
15379
|
/**
|
|
@@ -13542,7 +15418,7 @@ export type DeleteWorkspaceErrors = {
|
|
|
13542
15418
|
*/
|
|
13543
15419
|
401: ErrorResponse;
|
|
13544
15420
|
/**
|
|
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).
|
|
15421
|
+
* Owner role required, cannot delete personal workspace, `NOT_ORIGINAL_OWNER` when creator authority is enforced, `SUBSCRIPTION_ACTIVE`, or `SSO_ATTACHED` (the workspace belongs to an SSO organization; an operator detaches it first).
|
|
13546
15422
|
*/
|
|
13547
15423
|
403: ErrorResponse;
|
|
13548
15424
|
/**
|
|
@@ -13583,7 +15459,7 @@ export type GetWorkspaceErrors = {
|
|
|
13583
15459
|
*/
|
|
13584
15460
|
401: ErrorResponse;
|
|
13585
15461
|
/**
|
|
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.
|
|
15462
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
13587
15463
|
*/
|
|
13588
15464
|
403: ForbiddenError;
|
|
13589
15465
|
/**
|
|
@@ -13648,6 +15524,281 @@ export type UpdateWorkspaceResponses = {
|
|
|
13648
15524
|
200: Workspace;
|
|
13649
15525
|
};
|
|
13650
15526
|
export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
|
|
15527
|
+
export type ClearWorkspaceDefaultDeploymentData = {
|
|
15528
|
+
body?: never;
|
|
15529
|
+
path: {
|
|
15530
|
+
/**
|
|
15531
|
+
* Workspace ID (w-{uuid} format)
|
|
15532
|
+
*/
|
|
15533
|
+
id: string;
|
|
15534
|
+
};
|
|
15535
|
+
query?: never;
|
|
15536
|
+
url: '/api/workspaces/{id}/default-deployment';
|
|
15537
|
+
};
|
|
15538
|
+
export type ClearWorkspaceDefaultDeploymentErrors = {
|
|
15539
|
+
/**
|
|
15540
|
+
* `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.
|
|
15541
|
+
*/
|
|
15542
|
+
400: ErrorResponse;
|
|
15543
|
+
/**
|
|
15544
|
+
* Unauthorized
|
|
15545
|
+
*/
|
|
15546
|
+
401: ErrorResponse;
|
|
15547
|
+
/**
|
|
15548
|
+
* Not the workspace owner. For a web session, `code` may also be one of the SessionWriteForbidden refusals (`csrf_invalid`, `workspace_access_denied`, `origin_not_allowed`, `cross_site_request`).
|
|
15549
|
+
*/
|
|
15550
|
+
403: ErrorResponse;
|
|
15551
|
+
/**
|
|
15552
|
+
* Workspace not found, or the caller is not a member of it
|
|
15553
|
+
*/
|
|
15554
|
+
404: ErrorResponse;
|
|
15555
|
+
/**
|
|
15556
|
+
* Internal server error
|
|
15557
|
+
*/
|
|
15558
|
+
500: ErrorResponse;
|
|
15559
|
+
};
|
|
15560
|
+
export type ClearWorkspaceDefaultDeploymentError = ClearWorkspaceDefaultDeploymentErrors[keyof ClearWorkspaceDefaultDeploymentErrors];
|
|
15561
|
+
export type ClearWorkspaceDefaultDeploymentResponses = {
|
|
15562
|
+
/**
|
|
15563
|
+
* Cleared
|
|
15564
|
+
*/
|
|
15565
|
+
204: void;
|
|
15566
|
+
};
|
|
15567
|
+
export type ClearWorkspaceDefaultDeploymentResponse = ClearWorkspaceDefaultDeploymentResponses[keyof ClearWorkspaceDefaultDeploymentResponses];
|
|
15568
|
+
export type SetWorkspaceDefaultDeploymentData = {
|
|
15569
|
+
body: PickWorkspaceDeploymentRequest;
|
|
15570
|
+
path: {
|
|
15571
|
+
/**
|
|
15572
|
+
* Workspace ID (w-{uuid} format)
|
|
15573
|
+
*/
|
|
15574
|
+
id: string;
|
|
15575
|
+
};
|
|
15576
|
+
query?: never;
|
|
15577
|
+
url: '/api/workspaces/{id}/default-deployment';
|
|
15578
|
+
};
|
|
15579
|
+
export type SetWorkspaceDefaultDeploymentErrors = {
|
|
15580
|
+
/**
|
|
15581
|
+
* `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.
|
|
15582
|
+
*/
|
|
15583
|
+
400: ErrorResponse;
|
|
15584
|
+
/**
|
|
15585
|
+
* Unauthorized
|
|
15586
|
+
*/
|
|
15587
|
+
401: ErrorResponse;
|
|
15588
|
+
/**
|
|
15589
|
+
* Not the workspace owner, an API key (setting the default needs a signed-in session), or the rollout flag is off for this account. For a web session, `code` may also be one of the SessionWriteForbidden refusals (`csrf_invalid`, `workspace_access_denied`, `origin_not_allowed`, `cross_site_request`).
|
|
15590
|
+
*/
|
|
15591
|
+
403: ErrorResponse;
|
|
15592
|
+
/**
|
|
15593
|
+
* Workspace not found
|
|
15594
|
+
*/
|
|
15595
|
+
404: ErrorResponse;
|
|
15596
|
+
/**
|
|
15597
|
+
* Validation error, including a deployment_id that is not one of the workspace's deployments or has been deleted
|
|
15598
|
+
*/
|
|
15599
|
+
422: ErrorResponse;
|
|
15600
|
+
/**
|
|
15601
|
+
* Internal server error
|
|
15602
|
+
*/
|
|
15603
|
+
500: ErrorResponse;
|
|
15604
|
+
/**
|
|
15605
|
+
* comfy-deploy could not be asked whether the deployment is valid, or deployment picking is not configured in this environment
|
|
15606
|
+
*/
|
|
15607
|
+
503: ErrorResponse;
|
|
15608
|
+
};
|
|
15609
|
+
export type SetWorkspaceDefaultDeploymentError = SetWorkspaceDefaultDeploymentErrors[keyof SetWorkspaceDefaultDeploymentErrors];
|
|
15610
|
+
export type SetWorkspaceDefaultDeploymentResponses = {
|
|
15611
|
+
/**
|
|
15612
|
+
* Set; members with no pick are on this deployment from their next request
|
|
15613
|
+
*/
|
|
15614
|
+
204: void;
|
|
15615
|
+
};
|
|
15616
|
+
export type SetWorkspaceDefaultDeploymentResponse = SetWorkspaceDefaultDeploymentResponses[keyof SetWorkspaceDefaultDeploymentResponses];
|
|
15617
|
+
export type ClearWorkspaceDeploymentData = {
|
|
15618
|
+
body?: never;
|
|
15619
|
+
path: {
|
|
15620
|
+
/**
|
|
15621
|
+
* Workspace ID (w-{uuid} format)
|
|
15622
|
+
*/
|
|
15623
|
+
id: string;
|
|
15624
|
+
};
|
|
15625
|
+
query?: {
|
|
15626
|
+
/**
|
|
15627
|
+
* `workspace`: drop this browser's own pick and follow the workspace's default deployment (BE-17480).
|
|
15628
|
+
*/
|
|
15629
|
+
follow?: 'workspace';
|
|
15630
|
+
};
|
|
15631
|
+
url: '/api/workspaces/{id}/deployment';
|
|
15632
|
+
};
|
|
15633
|
+
export type ClearWorkspaceDeploymentErrors = {
|
|
15634
|
+
/**
|
|
15635
|
+
* `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.
|
|
15636
|
+
*/
|
|
15637
|
+
400: ErrorResponse;
|
|
15638
|
+
/**
|
|
15639
|
+
* Unauthorized
|
|
15640
|
+
*/
|
|
15641
|
+
401: ErrorResponse;
|
|
15642
|
+
/**
|
|
15643
|
+
* For a web session, one of the SessionWriteForbidden refusals (`csrf_invalid`, `workspace_access_denied`, `origin_not_allowed`, `cross_site_request`).
|
|
15644
|
+
*/
|
|
15645
|
+
403: ErrorResponse;
|
|
15646
|
+
/**
|
|
15647
|
+
* Workspace not found, or the caller is not a member of it
|
|
15648
|
+
*/
|
|
15649
|
+
404: ErrorResponse;
|
|
15650
|
+
/**
|
|
15651
|
+
* Internal server error
|
|
15652
|
+
*/
|
|
15653
|
+
500: ErrorResponse;
|
|
15654
|
+
};
|
|
15655
|
+
export type ClearWorkspaceDeploymentError = ClearWorkspaceDeploymentErrors[keyof ClearWorkspaceDeploymentErrors];
|
|
15656
|
+
export type ClearWorkspaceDeploymentResponses = {
|
|
15657
|
+
/**
|
|
15658
|
+
* Cleared
|
|
15659
|
+
*/
|
|
15660
|
+
204: void;
|
|
15661
|
+
};
|
|
15662
|
+
export type ClearWorkspaceDeploymentResponse = ClearWorkspaceDeploymentResponses[keyof ClearWorkspaceDeploymentResponses];
|
|
15663
|
+
export type PickWorkspaceDeploymentData = {
|
|
15664
|
+
body: PickWorkspaceDeploymentRequest;
|
|
15665
|
+
path: {
|
|
15666
|
+
/**
|
|
15667
|
+
* Workspace ID (w-{uuid} format)
|
|
15668
|
+
*/
|
|
15669
|
+
id: string;
|
|
15670
|
+
};
|
|
15671
|
+
query?: never;
|
|
15672
|
+
url: '/api/workspaces/{id}/deployment';
|
|
15673
|
+
};
|
|
15674
|
+
export type PickWorkspaceDeploymentErrors = {
|
|
15675
|
+
/**
|
|
15676
|
+
* `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.
|
|
15677
|
+
*/
|
|
15678
|
+
400: ErrorResponse;
|
|
15679
|
+
/**
|
|
15680
|
+
* Unauthorized
|
|
15681
|
+
*/
|
|
15682
|
+
401: ErrorResponse;
|
|
15683
|
+
/**
|
|
15684
|
+
* An API key (picking a deployment needs a signed-in session), or the rollout flag is off for this account. For a web session, `code` may also be one of the SessionWriteForbidden refusals (`csrf_invalid`, `workspace_access_denied`, `origin_not_allowed`, `cross_site_request`).
|
|
15685
|
+
*/
|
|
15686
|
+
403: ErrorResponse;
|
|
15687
|
+
/**
|
|
15688
|
+
* Workspace not found, or the caller is not a member of it
|
|
15689
|
+
*/
|
|
15690
|
+
404: ErrorResponse;
|
|
15691
|
+
/**
|
|
15692
|
+
* Validation error, including a deployment_id that is not one of the workspace's deployments or has been deleted
|
|
15693
|
+
*/
|
|
15694
|
+
422: ErrorResponse;
|
|
15695
|
+
/**
|
|
15696
|
+
* Internal server error
|
|
15697
|
+
*/
|
|
15698
|
+
500: ErrorResponse;
|
|
15699
|
+
/**
|
|
15700
|
+
* comfy-deploy could not be asked whether the deployment is valid, or deployment picking is not configured in this environment
|
|
15701
|
+
*/
|
|
15702
|
+
503: ErrorResponse;
|
|
15703
|
+
};
|
|
15704
|
+
export type PickWorkspaceDeploymentError = PickWorkspaceDeploymentErrors[keyof PickWorkspaceDeploymentErrors];
|
|
15705
|
+
export type PickWorkspaceDeploymentResponses = {
|
|
15706
|
+
/**
|
|
15707
|
+
* Picked; the cookie on this response carries it
|
|
15708
|
+
*/
|
|
15709
|
+
204: void;
|
|
15710
|
+
};
|
|
15711
|
+
export type PickWorkspaceDeploymentResponse = PickWorkspaceDeploymentResponses[keyof PickWorkspaceDeploymentResponses];
|
|
15712
|
+
export type ListWorkspaceDeploymentsData = {
|
|
15713
|
+
body?: never;
|
|
15714
|
+
path: {
|
|
15715
|
+
/**
|
|
15716
|
+
* Workspace ID (w-{uuid} format)
|
|
15717
|
+
*/
|
|
15718
|
+
id: string;
|
|
15719
|
+
};
|
|
15720
|
+
query?: never;
|
|
15721
|
+
url: '/api/workspaces/{id}/deployments';
|
|
15722
|
+
};
|
|
15723
|
+
export type ListWorkspaceDeploymentsErrors = {
|
|
15724
|
+
/**
|
|
15725
|
+
* `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.
|
|
15726
|
+
*/
|
|
15727
|
+
400: ErrorResponse;
|
|
15728
|
+
/**
|
|
15729
|
+
* Unauthorized
|
|
15730
|
+
*/
|
|
15731
|
+
401: ErrorResponse;
|
|
15732
|
+
/**
|
|
15733
|
+
* Not in the rollout, or an API key: listing needs a signed-in session
|
|
15734
|
+
*/
|
|
15735
|
+
403: ErrorResponse;
|
|
15736
|
+
/**
|
|
15737
|
+
* Workspace not found, or the caller is not a member
|
|
15738
|
+
*/
|
|
15739
|
+
404: ErrorResponse;
|
|
15740
|
+
/**
|
|
15741
|
+
* Internal server error
|
|
15742
|
+
*/
|
|
15743
|
+
500: ErrorResponse;
|
|
15744
|
+
/**
|
|
15745
|
+
* The platform could not be asked, or deployment picking is not configured in this environment
|
|
15746
|
+
*/
|
|
15747
|
+
503: ErrorResponse;
|
|
15748
|
+
};
|
|
15749
|
+
export type ListWorkspaceDeploymentsError = ListWorkspaceDeploymentsErrors[keyof ListWorkspaceDeploymentsErrors];
|
|
15750
|
+
export type ListWorkspaceDeploymentsResponses = {
|
|
15751
|
+
/**
|
|
15752
|
+
* The workspace's live deployments, newest first
|
|
15753
|
+
*/
|
|
15754
|
+
200: WorkspaceDeploymentList;
|
|
15755
|
+
};
|
|
15756
|
+
export type ListWorkspaceDeploymentsResponse = ListWorkspaceDeploymentsResponses[keyof ListWorkspaceDeploymentsResponses];
|
|
15757
|
+
export type CheckWorkspaceDeploymentCompatibilityData = {
|
|
15758
|
+
body: DeploymentCompatibilityRequest;
|
|
15759
|
+
path: {
|
|
15760
|
+
/**
|
|
15761
|
+
* Workspace ID (w-{uuid} format)
|
|
15762
|
+
*/
|
|
15763
|
+
id: string;
|
|
15764
|
+
};
|
|
15765
|
+
query?: never;
|
|
15766
|
+
url: '/api/workspaces/{id}/deployments/compatibility';
|
|
15767
|
+
};
|
|
15768
|
+
export type CheckWorkspaceDeploymentCompatibilityErrors = {
|
|
15769
|
+
/**
|
|
15770
|
+
* More than 2,000 distinct node types, or `code` `workspace_id_invalid` (see SessionWorkspaceIDInvalid): the `X-Comfy-Workspace-ID` value is malformed or conflicts with the workspace the credential resolves to.
|
|
15771
|
+
*/
|
|
15772
|
+
400: ErrorResponse;
|
|
15773
|
+
/**
|
|
15774
|
+
* Unauthorized
|
|
15775
|
+
*/
|
|
15776
|
+
401: ErrorResponse;
|
|
15777
|
+
/**
|
|
15778
|
+
* An API key (the check needs a signed-in session), or the rollout flag is off for this account. For a web session, `code` may also be one of the SessionWriteForbidden refusals (`csrf_invalid`, `workspace_access_denied`, `origin_not_allowed`, `cross_site_request`).
|
|
15779
|
+
*/
|
|
15780
|
+
403: ErrorResponse;
|
|
15781
|
+
/**
|
|
15782
|
+
* Workspace not found, or the caller is not a member
|
|
15783
|
+
*/
|
|
15784
|
+
404: ErrorResponse;
|
|
15785
|
+
/**
|
|
15786
|
+
* Internal server error
|
|
15787
|
+
*/
|
|
15788
|
+
500: ErrorResponse;
|
|
15789
|
+
/**
|
|
15790
|
+
* The platform could not be asked for the workspace's deployments, deployment picking is not configured in this environment, or Comfy Cloud's node list is not loaded yet
|
|
15791
|
+
*/
|
|
15792
|
+
503: ErrorResponse;
|
|
15793
|
+
};
|
|
15794
|
+
export type CheckWorkspaceDeploymentCompatibilityError = CheckWorkspaceDeploymentCompatibilityErrors[keyof CheckWorkspaceDeploymentCompatibilityErrors];
|
|
15795
|
+
export type CheckWorkspaceDeploymentCompatibilityResponses = {
|
|
15796
|
+
/**
|
|
15797
|
+
* The missing node types per deployment, newest first, and for Comfy Cloud
|
|
15798
|
+
*/
|
|
15799
|
+
200: DeploymentCompatibility;
|
|
15800
|
+
};
|
|
15801
|
+
export type CheckWorkspaceDeploymentCompatibilityResponse = CheckWorkspaceDeploymentCompatibilityResponses[keyof CheckWorkspaceDeploymentCompatibilityResponses];
|
|
13651
15802
|
export type GetCurrentWorkspaceData = {
|
|
13652
15803
|
body?: never;
|
|
13653
15804
|
path?: never;
|
|
@@ -13697,10 +15848,24 @@ export type GetStaticExtensionsData = {
|
|
|
13697
15848
|
};
|
|
13698
15849
|
export type GetStaticExtensionsErrors = {
|
|
13699
15850
|
/**
|
|
13700
|
-
*
|
|
15851
|
+
* `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.
|
|
13701
15852
|
*/
|
|
13702
|
-
|
|
15853
|
+
400: ErrorResponse;
|
|
15854
|
+
/**
|
|
15855
|
+
* `code` is `workspace_access_denied`: the selected workspace is unknown, deleted, or the user is not a member; the three look the same. This route also serves anonymous callers, so the session's other refusals fall back to an anonymous request. See the `WebSessionAuth` scheme.
|
|
15856
|
+
*/
|
|
15857
|
+
403: ErrorResponse;
|
|
15858
|
+
/**
|
|
15859
|
+
* File not found. A Release-scoped path answers the same 404 whether
|
|
15860
|
+
* the file is missing, the caller is not a member of the workspace the
|
|
15861
|
+
* path names, the Release is not that workspace's, or the browser
|
|
15862
|
+
* labels the request as included by a page other than Cloud's own
|
|
15863
|
+
* (`Sec-Fetch-Site` other than `same-origin` or `none`).
|
|
15864
|
+
*
|
|
15865
|
+
*/
|
|
15866
|
+
404: ErrorResponse;
|
|
13703
15867
|
};
|
|
15868
|
+
export type GetStaticExtensionsError = GetStaticExtensionsErrors[keyof GetStaticExtensionsErrors];
|
|
13704
15869
|
export type GetStaticExtensionsResponses = {
|
|
13705
15870
|
/**
|
|
13706
15871
|
* Static file
|
|
@@ -14074,7 +16239,7 @@ export type GetViewCompatAliasErrors = {
|
|
|
14074
16239
|
*/
|
|
14075
16240
|
401: ErrorResponse;
|
|
14076
16241
|
/**
|
|
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.
|
|
16242
|
+
* A refused request. For a web session, `code` is `workspace_access_denied` (the selected workspace is unknown, deleted, or the user is not a member; the three look the same), `no_workspace_access` (the account has no personal workspace and is a member of no live workspace), `origin_not_allowed` or `cross_site_request`; see the `WebSessionAuth` scheme. For any credential, `sso_required` means an SSO organization holds the account (its email is on the organization's verified domains) and the credential is not an SSO sign-in, or the workspace is an SSO organization's and the account is not on its domains or the credential is not an SSO sign-in; `organization_id`, when present, names the organization to sign in with. `account_outside_organization` means the workspace is an SSO organization's and the account is on none of its domains, so no sign-in admits it; `organization_id` names the workspace's organization. `FORBIDDEN` is the route's own authorization check failing, such as an unverified email. On `GET /api/billing/churnkey/auth`, `NOT_ORIGINAL_OWNER` means the caller is not the workspace's creator; it is returned only when the rollout mode is `creator`. A credential this route does not take gets AuthTypeNotAllowedError instead, and so does the session while `web_session_enabled` is off for the user, unless the operation says it takes the session whatever `web_session_enabled` says.
|
|
14078
16243
|
*/
|
|
14079
16244
|
403: ForbiddenError;
|
|
14080
16245
|
/**
|